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

This residual returns the derivative of centroidal momentum for a kinodynamics model. More...

#include <aligator/modelling/multibody/centroidal-momentum-derivative.hpp>

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

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< 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_
 
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.
 

Detailed Description

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

This residual returns the derivative of centroidal momentum for a kinodynamics model.

Definition at line 17 of file centroidal-momentum-derivative.hpp.

Member Typedef Documentation

◆ Scalar

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

Definition at line 19 of file centroidal-momentum-derivative.hpp.

◆ Base

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

Definition at line 21 of file centroidal-momentum-derivative.hpp.

◆ BaseData

template<typename _Scalar >
using aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::BaseData = typename Base::Data

Definition at line 22 of file centroidal-momentum-derivative.hpp.

◆ Model

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

Definition at line 23 of file centroidal-momentum-derivative.hpp.

◆ SE3

template<typename _Scalar >
using aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::SE3 = pinocchio::SE3Tpl<Scalar>

Definition at line 24 of file centroidal-momentum-derivative.hpp.

◆ Data

Definition at line 25 of file centroidal-momentum-derivative.hpp.

Constructor & Destructor Documentation

◆ CentroidalMomentumDerivativeResidualTpl()

template<typename _Scalar >
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 )

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

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

◆ evaluate()

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

◆ computeJacobians()

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

◆ createData()

template<typename _Scalar >
shared_ptr< BaseData > aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::createData ( ) const
inlinevirtual

Instantiate a Data object.

Reimplemented from aligator::StageFunctionTpl< _Scalar >.

Definition at line 46 of file centroidal-momentum-derivative.hpp.

Member Data Documentation

◆ pin_model_

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

Definition at line 27 of file centroidal-momentum-derivative.hpp.

◆ mass_

template<typename _Scalar >
double aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::mass_

Definition at line 28 of file centroidal-momentum-derivative.hpp.

◆ gravity_

template<typename _Scalar >
Vector3s aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::gravity_

Definition at line 29 of file centroidal-momentum-derivative.hpp.

◆ contact_states_

template<typename _Scalar >
std::vector<bool> aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::contact_states_

Definition at line 30 of file centroidal-momentum-derivative.hpp.

◆ contact_ids_

template<typename _Scalar >
std::vector<pinocchio::FrameIndex> aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::contact_ids_

Definition at line 31 of file centroidal-momentum-derivative.hpp.

◆ force_size_

template<typename _Scalar >
int aligator::CentroidalMomentumDerivativeResidualTpl< _Scalar >::force_size_

Definition at line 32 of file centroidal-momentum-derivative.hpp.


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