aligator
0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
This residual returns the derivative of centroidal momentum for a kinodynamics model. More...
#include <aligator/modelling/multibody/centroidal-momentum-derivative.hpp>
Public Types | |
using | Scalar = _Scalar |
using | Base = StageFunctionTpl<Scalar> |
using | BaseData = typename Base::Data |
using | Model = pinocchio::ModelTpl<Scalar> |
using | SE3 = pinocchio::SE3Tpl<Scalar> |
using | Data = CentroidalMomentumDerivativeDataTpl<Scalar> |
Public Types inherited from aligator::StageFunctionTpl< _Scalar > | |
using | Scalar |
using | Data |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
CentroidalMomentumDerivativeResidualTpl (const int ndx, const Model &model, const Vector3s &gravity, const std::vector< bool > &contact_states, const std::vector< pinocchio::FrameIndex > &contact_ids, const int force_size) | |
void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const |
void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const |
shared_ptr< BaseData > | createData () const |
Instantiate a Data object. | |
Public Member Functions inherited from aligator::StageFunctionTpl< _Scalar > | |
ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar) | |
StageFunctionTpl (const int ndx, const int nu, const int nr) | |
virtual void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const=0 |
Evaluate the function. | |
virtual void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const=0 |
Compute Jacobians of this function. | |
virtual void | computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &lbda, Data &data) const |
Compute the vector-hessian products of this function. | |
virtual | ~StageFunctionTpl ()=default |
Public Attributes | |
Model | pin_model_ |
double | mass_ |
Vector3s | gravity_ |
std::vector< bool > | contact_states_ |
std::vector< pinocchio::FrameIndex > | contact_ids_ |
int | force_size_ |
Public Attributes inherited from aligator::StageFunctionTpl< _Scalar > | |
const int | ndx1 |
Current state dimension. | |
const int | nu |
Control dimension. | |
const int | nr |
Function codimension. | |
This residual returns the derivative of centroidal momentum for a kinodynamics model.
Definition at line 17 of file centroidal-momentum-derivative.hpp.
using aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::Scalar = _Scalar |
Definition at line 19 of file centroidal-momentum-derivative.hpp.
using aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::Base = StageFunctionTpl<Scalar> |
Definition at line 21 of file centroidal-momentum-derivative.hpp.
using aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::BaseData = typename Base::Data |
Definition at line 22 of file centroidal-momentum-derivative.hpp.
using aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::Model = pinocchio::ModelTpl<Scalar> |
Definition at line 23 of file centroidal-momentum-derivative.hpp.
using aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::SE3 = pinocchio::SE3Tpl<Scalar> |
Definition at line 24 of file centroidal-momentum-derivative.hpp.
using aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::Data = CentroidalMomentumDerivativeDataTpl<Scalar> |
Definition at line 25 of file centroidal-momentum-derivative.hpp.
aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::CentroidalMomentumDerivativeResidualTpl | ( | const int | ndx, |
const Model & | model, | ||
const Vector3s & | gravity, | ||
const std::vector< bool > & | contact_states, | ||
const std::vector< pinocchio::FrameIndex > & | contact_ids, | ||
const int | force_size ) |
aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
void aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::evaluate | ( | const ConstVectorRef & | x, |
const ConstVectorRef & | u, | ||
BaseData & | data ) const |
void aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::computeJacobians | ( | const ConstVectorRef & | x, |
const ConstVectorRef & | u, | ||
BaseData & | data ) const |
|
inlinevirtual |
Instantiate a Data object.
Reimplemented from aligator::StageFunctionTpl< _Scalar >.
Definition at line 46 of file centroidal-momentum-derivative.hpp.
Model aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::pin_model_ |
Definition at line 27 of file centroidal-momentum-derivative.hpp.
double aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::mass_ |
Definition at line 28 of file centroidal-momentum-derivative.hpp.
Vector3s aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::gravity_ |
Definition at line 29 of file centroidal-momentum-derivative.hpp.
std::vector<bool> aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::contact_states_ |
Definition at line 30 of file centroidal-momentum-derivative.hpp.
std::vector<pinocchio::FrameIndex> aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::contact_ids_ |
Definition at line 31 of file centroidal-momentum-derivative.hpp.
int aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::force_size_ |
Definition at line 32 of file centroidal-momentum-derivative.hpp.