Go to the documentation of this file.
30 #ifndef EXOTICA_PINOCCHIO_DYNAMICS_SOLVER_PINOCCHIO_GRAVITY_COMPENSATION_DYNAMICS_SOLVER_H_
31 #define EXOTICA_PINOCCHIO_DYNAMICS_SOLVER_PINOCCHIO_GRAVITY_COMPENSATION_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_gravity_compensation_dynamics_solver_initializer.h>
47 #include <pinocchio/multibody/data.hpp>
48 #include <pinocchio/multibody/model.hpp>
50 #pragma GCC diagnostic pop
80 #endif // EXOTICA_PINOCCHIO_DYNAMICS_SOLVER_PINOCCHIO_GRAVITY_COMPENSATION_DYNAMICS_SOLVER_H_
void Integrate(const StateVector &x, const StateVector &dx, const double dt, StateVector &xout) override
Integrates without performing dynamics.
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
ControlDerivative fu(const StateVector &x, const ControlVector &u) override
Derivative of the forward dynamics w.r.t. the control.
Definition: pinocchio_gravity_compensation_dynamics_solver.h:54
void AssignScene(ScenePtr scene_in) override
Eigen::Matrix< T, NX, NX > StateDerivative
Convenience definition for a StateDerivative.
Definition: dynamics_solver.h:60
Eigen::MatrixXd du_command_dq_
Definition: pinocchio_gravity_compensation_dynamics_solver.h:75
Definition: property.h:110
Definition: cartpole_dynamics_solver.h:38
StateVector f(const StateVector &x, const ControlVector &u) override
Forward dynamics. This computes the differential dynamics.
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
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, NU, 1 > ControlVector
Convenience definition for a ControlVector (dimension NU x 1)
Definition: dynamics_solver.h:59
std::unique_ptr< pinocchio::Data > pinocchio_data_
Definition: pinocchio_gravity_compensation_dynamics_solver.h:69
Eigen::VectorXd u_nle_
Definition: pinocchio_gravity_compensation_dynamics_solver.h:72
Eigen::VectorXd xdot_analytic_
Definition: pinocchio_gravity_compensation_dynamics_solver.h:71
StateDerivative fx(const StateVector &x, const ControlVector &u) override
Derivative of the forward dynamics w.r.t. the state.
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...
Eigen::MatrixXd du_nle_dq_
Definition: pinocchio_gravity_compensation_dynamics_solver.h:76
Eigen::VectorXd u_command_
Definition: pinocchio_gravity_compensation_dynamics_solver.h:73
Eigen::VectorXd a_
Definition: pinocchio_gravity_compensation_dynamics_solver.h:74
pinocchio::Model model_
Definition: pinocchio_gravity_compensation_dynamics_solver.h:68
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...