aligator
0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
#include <aligator/modelling/multibody/gravity-compensation-residual.hpp>
Classes | |
struct | Data |
Public Types | |
using | Scalar = _Scalar |
using | Base = StageFunctionTpl<Scalar> |
using | BaseData = StageFunctionDataTpl<Scalar> |
using | Model = pinocchio::ModelTpl<Scalar> |
Public Types inherited from aligator::StageFunctionTpl< _Scalar > | |
using | Scalar |
using | Data |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
GravityCompensationResidualTpl (int ndx, const MatrixXs &actuation_matrix, const Model &model) | |
Constructor with an actuation matrix. | |
GravityCompensationResidualTpl (int ndx, const Model &model) | |
Full actuation constructor. | |
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_ |
MatrixXs | actuation_matrix_ |
bool | use_actuation_matrix |
Public Attributes inherited from aligator::StageFunctionTpl< _Scalar > | |
const int | ndx1 |
Current state dimension. | |
const int | nu |
Control dimension. | |
const int | nr |
Function codimension. | |
Definition at line 11 of file gravity-compensation-residual.hpp.
using aligator::GravityCompensationResidualTpl< _Scalar >::Scalar = _Scalar |
Definition at line 12 of file gravity-compensation-residual.hpp.
using aligator::GravityCompensationResidualTpl< _Scalar >::Base = StageFunctionTpl<Scalar> |
Definition at line 14 of file gravity-compensation-residual.hpp.
using aligator::GravityCompensationResidualTpl< _Scalar >::BaseData = StageFunctionDataTpl<Scalar> |
Definition at line 15 of file gravity-compensation-residual.hpp.
using aligator::GravityCompensationResidualTpl< _Scalar >::Model = pinocchio::ModelTpl<Scalar> |
Definition at line 16 of file gravity-compensation-residual.hpp.
aligator::GravityCompensationResidualTpl< _Scalar >::GravityCompensationResidualTpl | ( | int | ndx, |
const MatrixXs & | actuation_matrix, | ||
const Model & | model ) |
Constructor with an actuation matrix.
aligator::GravityCompensationResidualTpl< _Scalar >::GravityCompensationResidualTpl | ( | int | ndx, |
const Model & | model ) |
Full actuation constructor.
aligator::GravityCompensationResidualTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
void aligator::GravityCompensationResidualTpl< _Scalar >::evaluate | ( | const ConstVectorRef & | x, |
const ConstVectorRef & | u, | ||
BaseData & | data ) const |
void aligator::GravityCompensationResidualTpl< _Scalar >::computeJacobians | ( | const ConstVectorRef & | x, |
const ConstVectorRef & | u, | ||
BaseData & | data ) const |
|
virtual |
Instantiate a Data object.
Reimplemented from aligator::StageFunctionTpl< _Scalar >.
Model aligator::GravityCompensationResidualTpl< _Scalar >::pin_model_ |
Definition at line 18 of file gravity-compensation-residual.hpp.
MatrixXs aligator::GravityCompensationResidualTpl< _Scalar >::actuation_matrix_ |
Definition at line 19 of file gravity-compensation-residual.hpp.
bool aligator::GravityCompensationResidualTpl< _Scalar >::use_actuation_matrix |
Definition at line 20 of file gravity-compensation-residual.hpp.