aligator
0.6.1
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
|
Wraps a crocoddyl::ActionModelAbstract. More...
#include <aligator/compat/crocoddyl/action-model-wrap.hpp>
Public Types | |
using | Base = StageModelTpl<Scalar> |
using | Data = StageDataTpl<Scalar> |
using | Constraint = StageConstraintTpl<Scalar> |
using | Dynamics = typename Base::Dynamics |
using | CrocActionModel = crocoddyl::ActionModelAbstractTpl<Scalar> |
using | StateWrapper = StateWrapperTpl<Scalar> |
using | ActionDataWrap = ActionDataWrapperTpl<Scalar> |
using | DynDataWrap = DynamicsDataWrapperTpl<Scalar> |
![]() | |
using | Scalar |
using | Manifold |
using | ManifoldPtr |
using | Dynamics |
using | DynamicsPtr |
using | FunctionPtr |
using | ConstraintSetPtr |
using | Constraint |
using | Cost |
using | CostPtr |
using | Data |
Public Member Functions | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
ActionModelWrapperTpl (boost::shared_ptr< CrocActionModel > action_model) | |
bool | has_dyn_model () const override |
void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &y, Data &data) const override |
Evaluate all the functions (cost, dynamics, constraints) at this node. | |
void | computeFirstOrderDerivatives (const ConstVectorRef &x, const ConstVectorRef &u, const ConstVectorRef &y, Data &data) const override |
Compute the first-order derivatives of the StageModelTpl. | |
void | computeSecondOrderDerivatives (const ConstVectorRef &, const ConstVectorRef &, Data &) const override |
Does nothing for this class. | |
shared_ptr< Data > | createData () const override |
Create a StageData object. | |
![]() | |
ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
StageModelTpl (CostPtr cost, DynamicsPtr dynamics) | |
virtual | ~StageModelTpl ()=default |
const Manifold & | xspace () const |
const Manifold & | uspace () const |
const Manifold & | xspace_next () const |
const Cost & | cost () const |
virtual ALIGATOR_DEPRECATED const Dynamics & | dyn_model () const |
int | nx1 () const |
int | ndx1 () const |
int | nu () const |
int | nx2 () const |
int | ndx2 () const |
int | nc () const |
Total number of constraints. | |
std::size_t | numConstraints () const |
Number of constraint objects. | |
int | numPrimal () const |
Number of primal optimization variables. | |
int | numDual () const |
Number of dual variables, i.e. Lagrange multipliers. | |
void | addConstraint (T &&cstr) |
Add a constraint to the stage. | |
void | addConstraint (FunctionPtr func, ConstraintSetPtr cstr_set) |
Add a constraint to the stage. | |
![]() | |
shared_ptr< T > | clone () const |
Public Attributes | |
boost::shared_ptr< CrocActionModel > | action_model_ |
![]() | |
ManifoldPtr | xspace_ |
State space for the current state \(x_k\). | |
ManifoldPtr | xspace_next_ |
State space for the next state \(x_{k+1}\). | |
ManifoldPtr | uspace_ |
Control vector space – by default, a simple Euclidean space. | |
ConstraintStackTpl< Scalar > | constraints_ |
Constraint manager. | |
CostPtr | cost_ |
Stage cost function. | |
DynamicsPtr | dynamics_ |
Dynamics model. | |
Additional Inherited Members | |
![]() | |
StageModelTpl (ManifoldPtr space, const int nu) | |
virtual StageModelTpl * | clone_impl () const override |
Wraps a crocoddyl::ActionModelAbstract.
This data structure rewires an ActionModel into a StageModel object.
Definition at line 22 of file action-model-wrap.hpp.
using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::Base = StageModelTpl<Scalar> |
Definition at line 24 of file action-model-wrap.hpp.
using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::Data = StageDataTpl<Scalar> |
Definition at line 25 of file action-model-wrap.hpp.
using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::Constraint = StageConstraintTpl<Scalar> |
Definition at line 26 of file action-model-wrap.hpp.
using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::Dynamics = typename Base::Dynamics |
Definition at line 27 of file action-model-wrap.hpp.
using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::CrocActionModel = crocoddyl::ActionModelAbstractTpl<Scalar> |
Definition at line 28 of file action-model-wrap.hpp.
using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::StateWrapper = StateWrapperTpl<Scalar> |
Definition at line 29 of file action-model-wrap.hpp.
using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::ActionDataWrap = ActionDataWrapperTpl<Scalar> |
Definition at line 30 of file action-model-wrap.hpp.
using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::DynDataWrap = DynamicsDataWrapperTpl<Scalar> |
Definition at line 31 of file action-model-wrap.hpp.
|
explicit |
aligator::compat::croc::ActionModelWrapperTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
inlineoverridevirtual |
Whether the stage's dynamics model can be accessed. This boolean allows flexibility in solvers when dealing with different frontends e.g. Crocoddyl's API.
Reimplemented from aligator::StageModelTpl< Scalar >.
Definition at line 38 of file action-model-wrap.hpp.
|
overridevirtual |
Evaluate all the functions (cost, dynamics, constraints) at this node.
Reimplemented from aligator::StageModelTpl< Scalar >.
|
overridevirtual |
Compute the first-order derivatives of the StageModelTpl.
Reimplemented from aligator::StageModelTpl< Scalar >.
|
inlineoverridevirtual |
Does nothing for this class.
Reimplemented from aligator::StageModelTpl< Scalar >.
Definition at line 49 of file action-model-wrap.hpp.
|
overridevirtual |
Create a StageData object.
Reimplemented from aligator::StageModelTpl< Scalar >.
boost::shared_ptr<CrocActionModel> aligator::compat::croc::ActionModelWrapperTpl< Scalar >::action_model_ |
Definition at line 33 of file action-model-wrap.hpp.