aligator
0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Free-space multibody forward dynamics, using Pinocchio. More...
#include <aligator/modelling/dynamics/multibody-free-fwd.hpp>
Public Types | |
using | Scalar = _Scalar |
using | Base = ODEAbstractTpl<Scalar> |
using | BaseData = ContinuousDynamicsDataTpl<Scalar> |
using | ContDataAbstract = ContinuousDynamicsDataTpl<Scalar> |
using | Data = MultibodyFreeFwdDataTpl<Scalar> |
using | Manifold = proxsuite::nlp::MultibodyPhaseSpace<Scalar> |
using | ManifoldPtr = xyz::polymorphic<Manifold> |
Public Types inherited from aligator::dynamics::ODEAbstractTpl< _Scalar > | |
using | Scalar = _Scalar |
using | Base = ContinuousDynamicsAbstractTpl<Scalar> |
using | Data = ContinuousDynamicsDataTpl<Scalar> |
Public Types inherited from aligator::dynamics::ContinuousDynamicsAbstractTpl< _Scalar > | |
using | Scalar |
using | Manifold |
using | ManifoldPtr |
using | Data |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
const Manifold & | space () const |
int | ntau () const |
MultibodyFreeFwdDynamicsTpl (const Manifold &state, const MatrixXs &actuation) | |
MultibodyFreeFwdDynamicsTpl (const Manifold &state) | |
bool | isUnderactuated () const |
Determine whether the system is underactuated. | |
Eigen::Index | getActuationMatrixRank () const |
virtual void | forward (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const |
Evaluate the ODE vector field: this returns the value of \(\dot{x}\). | |
virtual void | dForward (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const |
Evaluate the vector field Jacobians. | |
shared_ptr< ContDataAbstract > | createData () const |
Create a data holder instance. | |
Public Member Functions inherited from aligator::dynamics::ODEAbstractTpl< _Scalar > | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
virtual | ~ODEAbstractTpl ()=default |
void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xdot, Data &data) const override |
void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xdot, Data &data) const override |
Public Member Functions inherited from aligator::dynamics::ContinuousDynamicsAbstractTpl< _Scalar > | |
ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar) | |
int | ndx () const |
int | nu () const |
const Manifold & | space () const |
Return a reference to the state space. | |
ContinuousDynamicsAbstractTpl (ManifoldPtr space, const int nu) | |
virtual | ~ContinuousDynamicsAbstractTpl ()=default |
virtual void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xdot, Data &data) const=0 |
Evaluate the vector field at a point \((x, u)\). | |
virtual void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &xdot, Data &data) const=0 |
Differentiate the vector field. | |
Public Attributes | |
Manifold | space_ |
MatrixXs | actuation_matrix_ |
Public Attributes inherited from aligator::dynamics::ODEAbstractTpl< _Scalar > | |
const int | nu_ |
Control space dimension. | |
ManifoldPtr | space_ |
State space. | |
Public Attributes inherited from aligator::dynamics::ContinuousDynamicsAbstractTpl< _Scalar > | |
ManifoldPtr | space_ |
State space. | |
const int | nu_ |
Control space dimension. | |
Free-space multibody forward dynamics, using Pinocchio.
This is described in state-space \(\mathcal{X} = T\mathcal{Q}\) (the phase space \(x = (q,v)\)) using the differential equation
\[ \dot{x} = f(x, u) = \begin{bmatrix} v \\ a(q, v, \tau(u)) \end{bmatrix} \]
where \(\tau(u) = Bu\), \(B\) is a given actuation matrix, and \(a(q,v,\tau)\) is the acceleration computed from the ABA algorithm.
Definition at line 24 of file multibody-free-fwd.hpp.
using aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::Scalar = _Scalar |
Definition at line 26 of file multibody-free-fwd.hpp.
using aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::Base = ODEAbstractTpl<Scalar> |
Definition at line 28 of file multibody-free-fwd.hpp.
using aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::BaseData = ContinuousDynamicsDataTpl<Scalar> |
Definition at line 29 of file multibody-free-fwd.hpp.
using aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::ContDataAbstract = ContinuousDynamicsDataTpl<Scalar> |
Definition at line 30 of file multibody-free-fwd.hpp.
using aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::Data = MultibodyFreeFwdDataTpl<Scalar> |
Definition at line 31 of file multibody-free-fwd.hpp.
using aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::Manifold = proxsuite::nlp::MultibodyPhaseSpace<Scalar> |
Definition at line 32 of file multibody-free-fwd.hpp.
using aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::ManifoldPtr = xyz::polymorphic<Manifold> |
Definition at line 33 of file multibody-free-fwd.hpp.
aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::MultibodyFreeFwdDynamicsTpl | ( | const Manifold & | state, |
const MatrixXs & | actuation ) |
aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::MultibodyFreeFwdDynamicsTpl | ( | const Manifold & | state | ) |
aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
inline |
Definition at line 40 of file multibody-free-fwd.hpp.
|
inline |
Definition at line 41 of file multibody-free-fwd.hpp.
|
inline |
Determine whether the system is underactuated.
This is the case when the actuation matrix rank is lower to the velocity dimension.
Definition at line 51 of file multibody-free-fwd.hpp.
|
inline |
Definition at line 56 of file multibody-free-fwd.hpp.
|
virtual |
Evaluate the ODE vector field: this returns the value of \(\dot{x}\).
Implements aligator::dynamics::ODEAbstractTpl< _Scalar >.
|
virtual |
Evaluate the vector field Jacobians.
Implements aligator::dynamics::ODEAbstractTpl< _Scalar >.
|
virtual |
Create a data holder instance.
Reimplemented from aligator::dynamics::ContinuousDynamicsAbstractTpl< _Scalar >.
Manifold aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::space_ |
Definition at line 37 of file multibody-free-fwd.hpp.
MatrixXs aligator::dynamics::MultibodyFreeFwdDynamicsTpl< _Scalar >::actuation_matrix_ |
Definition at line 38 of file multibody-free-fwd.hpp.