aligator
0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
This residual returns the linear momentum for a centroidal model with state \(x = (c, h, L) \). More...
#include <aligator/modelling/centroidal/linear-momentum.hpp>
Public Types | |
using | Scalar = _Scalar |
using | BaseData = typename Base::Data |
using | Data = LinearMomentumDataTpl<Scalar> |
Public Types inherited from aligator::UnaryFunctionTpl< _Scalar > | |
using | Scalar |
using | Base |
using | Data |
Public Types inherited from aligator::StageFunctionTpl< _Scalar > | |
using | Scalar |
using | Data |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
ALIGATOR_UNARY_FUNCTION_INTERFACE (Scalar) | |
LinearMomentumResidualTpl (const int ndx, const int nu, const Vector3s &h_ref) | |
const Vector3s & | getReference () const |
void | setReference (const Eigen::Ref< const Vector3s > &h_new) |
void | evaluate (const ConstVectorRef &x, BaseData &data) const |
void | computeJacobians (const ConstVectorRef &, BaseData &data) const |
shared_ptr< BaseData > | createData () const |
Instantiate a Data object. | |
Public Member Functions inherited from aligator::UnaryFunctionTpl< _Scalar > | |
ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar) | |
void | evaluate (const ConstVectorRef &x, const ConstVectorRef &, Data &data) const override |
void | computeJacobians (const ConstVectorRef &x, const ConstVectorRef &, Data &data) const override |
virtual void | computeVectorHessianProducts (const ConstVectorRef &, const ConstVectorRef &, Data &) const |
void | computeVectorHessianProducts (const ConstVectorRef &x, const ConstVectorRef &, const ConstVectorRef &lbda, Data &data) const override |
Public Member Functions inherited from aligator::StageFunctionTpl< _Scalar > | |
ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar) | |
StageFunctionTpl (const int ndx, const int nu, const int nr) | |
virtual | ~StageFunctionTpl ()=default |
Protected Attributes | |
Vector3s | h_ref_ |
Additional Inherited Members | |
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 linear momentum for a centroidal model with state \(x = (c, h, L) \).
The residual returns the middle three components of the state: \(r(x) = h - h_r \) with \( h \) linear momentym and \( h_r \) desired reference for linear momentum.
Definition at line 19 of file linear-momentum.hpp.
using aligator::LinearMomentumResidualTpl< _Scalar >::Scalar = _Scalar |
Definition at line 21 of file linear-momentum.hpp.
using aligator::LinearMomentumResidualTpl< _Scalar >::BaseData = typename Base::Data |
Definition at line 24 of file linear-momentum.hpp.
using aligator::LinearMomentumResidualTpl< _Scalar >::Data = LinearMomentumDataTpl<Scalar> |
Definition at line 25 of file linear-momentum.hpp.
|
inline |
Definition at line 27 of file linear-momentum.hpp.
aligator::LinearMomentumResidualTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
aligator::LinearMomentumResidualTpl< _Scalar >::ALIGATOR_UNARY_FUNCTION_INTERFACE | ( | Scalar | ) |
|
inline |
Definition at line 30 of file linear-momentum.hpp.
|
inline |
Definition at line 31 of file linear-momentum.hpp.
|
virtual |
Implements aligator::UnaryFunctionTpl< _Scalar >.
|
virtual |
Implements aligator::UnaryFunctionTpl< _Scalar >.
|
inlinevirtual |
Instantiate a Data object.
Reimplemented from aligator::StageFunctionTpl< _Scalar >.
Definition at line 37 of file linear-momentum.hpp.
|
protected |
Definition at line 42 of file linear-momentum.hpp.