spatial-dyn
forward_dynamics.h
1 
10 #ifndef SPATIAL_DYN_ALGORITHMS_FORWARD_DYNAMICS_H_
11 #define SPATIAL_DYN_ALGORITHMS_FORWARD_DYNAMICS_H_
12 
13 #include <map> // std::map
14 
15 #include "spatial_dyn/eigen/spatial_math.h"
16 #include "spatial_dyn/structs/articulated_body.h"
17 #include "spatial_dyn/structs/options.h"
18 
19 namespace spatial_dyn {
20 
46 Eigen::VectorXd ForwardDynamics(const ArticulatedBody& ab,
47  Eigen::Ref<const Eigen::VectorXd> tau,
48  const std::map<size_t, SpatialForced>& f_external = {},
49  const ForwardDynamicsOptions& options = {});
50 
66 Eigen::VectorXd ForwardDynamicsAba(const ArticulatedBody& ab,
67  Eigen::Ref<const Eigen::VectorXd> tau,
68  const std::map<size_t, SpatialForced>& f_external = {},
69  const ForwardDynamicsOptions& options = {});
70 
82 const Eigen::LDLT<Eigen::MatrixXd>& InertiaInverse(const ArticulatedBody& ab);
83 
94 const Eigen::MatrixXd& InertiaInverseAba(const ArticulatedBody& ab);
95 
96 /*
97  * @}
98  */ // defgroup cpp_forward_dynamics
99 
100 } // namespace spatial_dyn
101 
102 #endif // SPATIAL_DYN_ALGORITHMS_FORWARD_DYNAMICS_H_
const Eigen::MatrixXd & InertiaInverseAba(const ArticulatedBody &ab)
Definition: forward_dynamics.cc:146
Eigen::VectorXd ForwardDynamicsAba(const ArticulatedBody &ab, Eigen::Ref< const Eigen::VectorXd > tau, const std::map< size_t, SpatialForced > &f_external, const ForwardDynamicsOptions &options)
Definition: forward_dynamics.cc:32
const Eigen::LDLT< Eigen::MatrixXd > & InertiaInverse(const ArticulatedBody &ab)
Definition: forward_dynamics.cc:137
Eigen::VectorXd ForwardDynamics(const ArticulatedBody &ab, Eigen::Ref< const Eigen::VectorXd > tau, const std::map< size_t, SpatialForced > &f_external, const ForwardDynamicsOptions &options)
Definition: forward_dynamics.cc:21
Definition: discrete_dynamics.cc:21