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

#include <aligator/compat/crocoddyl/cost-wrap.hpp>

Inheritance diagram for aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >:
[legend]
Collaboration diagram for aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >:
[legend]

Public Types

using Scalar = _Scalar
 
using CrocCostModel = crocoddyl::CostModelAbstractTpl<Scalar>
 
using CrocActionModel = crocoddyl::ActionModelAbstractTpl<Scalar>
 
using Base = CostAbstractTpl<Scalar>
 
using BaseData = CostDataAbstractTpl<Scalar>
 
using StateWrap = StateWrapperTpl<Scalar>
 
- Public Types inherited from aligator::CostAbstractTpl< _Scalar >
using Scalar
 
using CostData
 
using Manifold
 

Public Member Functions

 ALIGATOR_DYNAMIC_TYPEDEFS (Scalar)
 
 CrocCostModelWrapperTpl (boost::shared_ptr< CrocCostModel > cost)
 Constructor from a crocoddyl cost model.
 
 CrocCostModelWrapperTpl (boost::shared_ptr< CrocActionModel > action_model)
 Constructor using a terminal action model.
 
void evaluate (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
 
void computeGradients (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
 
void computeHessians (const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
 
shared_ptr< BaseDatacreateData () const
 
- Public Member Functions inherited from aligator::CostAbstractTpl< _Scalar >
 ALIGATOR_DYNAMIC_TYPEDEFS (_Scalar)
 
int nx () const
 
int ndx () const
 
 CostAbstractTpl (U &&space, const int nu)
 
virtual void evaluate (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const
 Evaluate the cost function.
 
virtual void computeGradients (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const
 Compute the cost gradients \((\ell_x, \ell_u)\).
 
virtual void computeHessians (const ConstVectorRef &x, const ConstVectorRef &u, CostData &data) const
 Compute the cost Hessians \((\ell_{ij})_{i,j \in \{x,u\}}\).
 
virtual ~CostAbstractTpl ()=default
 

Public Attributes

boost::shared_ptr< CrocCostModelcroc_cost_
 
boost::shared_ptr< CrocActionModelaction_model_
 
- Public Attributes inherited from aligator::CostAbstractTpl< _Scalar >
xyz::polymorphic< Manifoldspace
 State dimension.
 
int nu
 Control dimension.
 

Detailed Description

template<typename Scalar>
struct aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >

Definition at line 13 of file fwd.hpp.

Member Typedef Documentation

◆ Scalar

template<typename Scalar >
using aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::Scalar = _Scalar

Definition at line 14 of file cost-wrap.hpp.

◆ CrocCostModel

template<typename Scalar >
using aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::CrocCostModel = crocoddyl::CostModelAbstractTpl<Scalar>

Definition at line 16 of file cost-wrap.hpp.

◆ CrocActionModel

template<typename Scalar >
using aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::CrocActionModel = crocoddyl::ActionModelAbstractTpl<Scalar>

Definition at line 17 of file cost-wrap.hpp.

◆ Base

Definition at line 18 of file cost-wrap.hpp.

◆ BaseData

Definition at line 19 of file cost-wrap.hpp.

◆ StateWrap

Definition at line 20 of file cost-wrap.hpp.

Constructor & Destructor Documentation

◆ CrocCostModelWrapperTpl() [1/2]

template<typename Scalar >
aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::CrocCostModelWrapperTpl ( boost::shared_ptr< CrocCostModel > cost)
inlineexplicit

Constructor from a crocoddyl cost model.

Definition at line 26 of file cost-wrap.hpp.

◆ CrocCostModelWrapperTpl() [2/2]

template<typename Scalar >
aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::CrocCostModelWrapperTpl ( boost::shared_ptr< CrocActionModel > action_model)
inlineexplicit

Constructor using a terminal action model.

Definition at line 31 of file cost-wrap.hpp.

Member Function Documentation

◆ ALIGATOR_DYNAMIC_TYPEDEFS()

template<typename Scalar >
aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS ( Scalar )

◆ evaluate()

template<typename Scalar >
void aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::evaluate ( const ConstVectorRef & x,
const ConstVectorRef & u,
BaseData & data ) const
inline

Definition at line 36 of file cost-wrap.hpp.

◆ computeGradients()

template<typename Scalar >
void aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::computeGradients ( const ConstVectorRef & x,
const ConstVectorRef & u,
BaseData & data ) const
inline

Definition at line 49 of file cost-wrap.hpp.

◆ computeHessians()

template<typename Scalar >
void aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::computeHessians ( const ConstVectorRef & x,
const ConstVectorRef & u,
BaseData & data ) const
inline

Definition at line 64 of file cost-wrap.hpp.

◆ createData()

template<typename Scalar >
shared_ptr< BaseData > aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::createData ( ) const
inlinevirtual

Reimplemented from aligator::CostAbstractTpl< _Scalar >.

Definition at line 81 of file cost-wrap.hpp.

Member Data Documentation

◆ croc_cost_

template<typename Scalar >
boost::shared_ptr<CrocCostModel> aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::croc_cost_

Definition at line 22 of file cost-wrap.hpp.

◆ action_model_

template<typename Scalar >
boost::shared_ptr<CrocActionModel> aligator::compat::croc::CrocCostModelWrapperTpl< Scalar >::action_model_

Definition at line 23 of file cost-wrap.hpp.


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