Go to the documentation of this file.
30 #ifndef EXOTICA_PINOCCHIO_DYNAMICS_SOLVER_PINOCCHIO_DYNAMICS_SOLVER_H_
31 #define EXOTICA_PINOCCHIO_DYNAMICS_SOLVER_PINOCCHIO_DYNAMICS_SOLVER_H_
35 #pragma GCC diagnostic push
36 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
40 #include <pinocchio/fwd.hpp>
45 #include <exotica_pinocchio_dynamics_solver/pinocchio_dynamics_solver_initializer.h>
47 #include <pinocchio/multibody/data.hpp>
48 #include <pinocchio/multibody/model.hpp>
50 #pragma GCC diagnostic pop
76 #endif // EXOTICA_PINOCCHIO_DYNAMICS_SOLVER_PINOCCHIO_DYNAMICS_SOLVER_H_
void AssignScene(ScenePtr scene_in) override
ControlDerivative fu(const StateVector &x, const ControlVector &u) override
Derivative of the forward dynamics w.r.t. the control.
Definition: dynamics_solver.h:55
Eigen::Matrix< T, NX, 1 > StateVector
Convenience definition for a StateVector containing both position and velocity (dimension NX x 1)
Definition: dynamics_solver.h:58
Eigen::MatrixXd dStateDelta(const StateVector &x_1, const StateVector &x_2, const ArgumentPosition first_or_second) override
Return the difference of the StateDelta operation between two state vectors. The ArgumentPosition arg...
StateVector StateDelta(const StateVector &x_1, const StateVector &x_2) override
Return the difference of two state vectors. Used when e.g. angle differences need to be wrapped from ...
Eigen::Matrix< T, NX, NX > StateDerivative
Convenience definition for a StateDerivative.
Definition: dynamics_solver.h:60
Definition: property.h:110
Definition: cartpole_dynamics_solver.h:38
std::unique_ptr< pinocchio::Data > pinocchio_data_
Definition: pinocchio_dynamics_solver.h:70
pinocchio::Model model_
Definition: pinocchio_dynamics_solver.h:69
Eigen::VectorXd xdot_analytic_
Definition: pinocchio_dynamics_solver.h:72
void ComputeDerivatives(const StateVector &x, const ControlVector &u) override
Computes derivatives fx, fu, Fx, Fu [single call for efficiency, derivatives can be retrieved with ge...
std::shared_ptr< Scene > ScenePtr
Definition: scene.h:246
Eigen::Matrix< T, NX, NU > ControlDerivative
Convenience definition for a ControlDerivative.
Definition: dynamics_solver.h:61
ArgumentPosition
Argument position. Used as parameter to refer to an argument.
Definition: tools.h:123
Eigen::Matrix< T, NU, 1 > ControlVector
Convenience definition for a ControlVector (dimension NU x 1)
Definition: dynamics_solver.h:59
ControlVector InverseDynamics(const StateVector &x) override
Returns a control vector corresponding to the state vector assuming zero acceleration.
void Integrate(const StateVector &x, const StateVector &dx, const double dt, StateVector &xout) override
Integrates without performing dynamics.
StateDerivative fx(const StateVector &x, const ControlVector &u) override
Derivative of the forward dynamics w.r.t. the state.
StateVector f(const StateVector &x, const ControlVector &u) override
Forward dynamics. This computes the differential dynamics.
Definition: pinocchio_dynamics_solver.h:54