aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
aligator::GravityCompensationResidualTpl< _Scalar > Struct Template Reference

#include <aligator/modelling/multibody/gravity-compensation-residual.hpp>

Inheritance diagram for aligator::GravityCompensationResidualTpl< _Scalar >:
[legend]
Collaboration diagram for aligator::GravityCompensationResidualTpl< _Scalar >:
[legend]

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< BaseDatacreateData () 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.
 

Detailed Description

template<typename _Scalar>
struct aligator::GravityCompensationResidualTpl< _Scalar >

Definition at line 11 of file gravity-compensation-residual.hpp.

Member Typedef Documentation

◆ Scalar

template<typename _Scalar >
using aligator::GravityCompensationResidualTpl< _Scalar >::Scalar = _Scalar

Definition at line 12 of file gravity-compensation-residual.hpp.

◆ Base

template<typename _Scalar >
using aligator::GravityCompensationResidualTpl< _Scalar >::Base = StageFunctionTpl<Scalar>

Definition at line 14 of file gravity-compensation-residual.hpp.

◆ BaseData

template<typename _Scalar >
using aligator::GravityCompensationResidualTpl< _Scalar >::BaseData = StageFunctionDataTpl<Scalar>

Definition at line 15 of file gravity-compensation-residual.hpp.

◆ Model

template<typename _Scalar >
using aligator::GravityCompensationResidualTpl< _Scalar >::Model = pinocchio::ModelTpl<Scalar>

Definition at line 16 of file gravity-compensation-residual.hpp.

Constructor & Destructor Documentation

◆ GravityCompensationResidualTpl() [1/2]

template<typename _Scalar >
aligator::GravityCompensationResidualTpl< _Scalar >::GravityCompensationResidualTpl ( int ndx,
const MatrixXs & actuation_matrix,
const Model & model )

Constructor with an actuation matrix.

◆ GravityCompensationResidualTpl() [2/2]

template<typename _Scalar >
aligator::GravityCompensationResidualTpl< _Scalar >::GravityCompensationResidualTpl ( int ndx,
const Model & model )

Full actuation constructor.

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

template<typename _Scalar >
aligator::GravityCompensationResidualTpl< _Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS ( Scalar )

◆ evaluate()

template<typename _Scalar >
void aligator::GravityCompensationResidualTpl< _Scalar >::evaluate ( const ConstVectorRef & x,
const ConstVectorRef & u,
BaseData & data ) const

◆ computeJacobians()

template<typename _Scalar >
void aligator::GravityCompensationResidualTpl< _Scalar >::computeJacobians ( const ConstVectorRef & x,
const ConstVectorRef & u,
BaseData & data ) const

◆ createData()

template<typename _Scalar >
shared_ptr< BaseData > aligator::GravityCompensationResidualTpl< _Scalar >::createData ( ) const
virtual

Instantiate a Data object.

Reimplemented from aligator::StageFunctionTpl< _Scalar >.

Member Data Documentation

◆ pin_model_

template<typename _Scalar >
Model aligator::GravityCompensationResidualTpl< _Scalar >::pin_model_

Definition at line 18 of file gravity-compensation-residual.hpp.

◆ actuation_matrix_

template<typename _Scalar >
MatrixXs aligator::GravityCompensationResidualTpl< _Scalar >::actuation_matrix_

Definition at line 19 of file gravity-compensation-residual.hpp.

◆ use_actuation_matrix

template<typename _Scalar >
bool aligator::GravityCompensationResidualTpl< _Scalar >::use_actuation_matrix

Definition at line 20 of file gravity-compensation-residual.hpp.


The documentation for this struct was generated from the following file: