|
aligator
0.16.0
A versatile and efficient C++ library for real-time constrained 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 | CostAbstract = CostAbstractTpl<Scalar> |
| using | CrocActionModel = crocoddyl::ActionModelAbstractTpl<Scalar> |
| using | StateWrapper = StateWrapperTpl<Scalar> |
| using | ActionDataWrap = ActionDataWrapperTpl<Scalar> |
| using | DynDataWrap = DynamicsDataWrapperTpl<Scalar> |
| using | Manifold = ManifoldAbstractTpl<Scalar> |
Public Types inherited from aligator::StageModelTpl< Scalar > | |
| using | Scalar |
| using | Manifold |
| using | PolyManifold |
| using | Dynamics |
| using | PolyDynamics |
| using | PolyFunction |
| using | PolyConstraintSet |
| using | Cost |
| using | PolyCost |
| using | StageConstraint |
| using | Data |
| using | Scalar |
| using | Manifold |
| using | PolyManifold |
| using | Dynamics |
| using | PolyDynamics |
| using | PolyFunction |
| using | PolyConstraintSet |
| using | Cost |
| using | PolyCost |
| using | StageConstraint |
| using | Data |
Public Member Functions | |
| ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
| ActionModelWrapperTpl (shared_ptr< CrocActionModel > action_model) | |
| bool | hasDynModel () const override |
| void | evaluate (const ConstVectorRef &x, const ConstVectorRef &u, Data &data) const override |
| Evaluate all the functions (cost, dynamics, constraints) at this node. | |
| void | computeFirstOrderDerivatives (const ConstVectorRef &x, const ConstVectorRef &u, 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. | |
Public Member Functions inherited from aligator::StageModelTpl< Scalar > | |
| ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
| U * | getCost () |
| Get a pointer to an expected concrete type for the cost function. | |
| const U * | getCost () const |
| U * | getDynamics () |
| Get a pointer to an expected concrete type for the dynamics class. | |
| const U * | getDynamics () const |
| StageModelTpl (const PolyCost &cost, const PolyDynamics &dynamics) | |
| virtual | ~StageModelTpl ()=default |
| const Manifold & | xspace () const |
| const Manifold & | uspace () const |
| const Manifold & | xspace_next () const |
| const Cost & | cost () 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 | numDual () const |
| Number of dual variables, i.e. Lagrange multipliers. | |
| ALIGATOR_DEPRECATED void | addConstraint (Cstr &&cstr) |
| Add a constraint to the stage. | |
| void | addConstraint (const PolyFunction &func, const PolyConstraintSet &cstr_set) |
| Add a constraint to the stage. | |
| void | addConstraint (Cstr &&cstr) |
| ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
| U * | getCost () |
| Get a pointer to an expected concrete type for the cost function. | |
| const U * | getCost () const |
| U * | getDynamics () |
| Get a pointer to an expected concrete type for the dynamics class. | |
| const U * | getDynamics () const |
| StageModelTpl (const PolyCost &cost, const PolyDynamics &dynamics) | |
| virtual | ~StageModelTpl ()=default |
| const Manifold & | xspace () const |
| const Manifold & | uspace () const |
| const Manifold & | xspace_next () const |
| const Cost & | cost () 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 | numDual () const |
| Number of dual variables, i.e. Lagrange multipliers. | |
| ALIGATOR_DEPRECATED void | addConstraint (Cstr &&cstr) |
| Add a constraint to the stage. | |
| void | addConstraint (const PolyFunction &func, const PolyConstraintSet &cstr_set) |
| Add a constraint to the stage. | |
| void | addConstraint (Cstr &&cstr) |
Public Attributes | |
| shared_ptr< CrocActionModel > | action_model_ |
Public Attributes inherited from aligator::StageModelTpl< Scalar > | |
| PolyManifold | xspace_ |
| State space for the current state \(x_k\). | |
| PolyManifold | xspace_next_ |
| State space for the next state \(x_{k+1}\). | |
| PolyManifold | uspace_ |
| Control vector space – by default, a simple Euclidean space. | |
| ConstraintStackTpl< Scalar > | constraints_ |
| Constraint manager. | |
| PolyCost | cost_ |
| Stage cost function. | |
| PolyDynamics | dynamics_ |
| Dynamics model. | |
| PolyManifold | xspace_ |
| State space for the current state \(x_k\). | |
| PolyManifold | xspace_next_ |
| State space for the next state \(x_{k+1}\). | |
| PolyManifold | uspace_ |
| Control vector space – by default, a simple Euclidean space. | |
| ConstraintStackTpl< Scalar > | constraints_ |
| Constraint manager. | |
| PolyCost | cost_ |
| Stage cost function. | |
| PolyDynamics | dynamics_ |
| Dynamics model. | |
Wraps a crocoddyl::ActionModelAbstract.
This data structure rewires an ActionModel into a StageModel object.
Definition at line 48 of file action-model-wrap.hpp.
| using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::Base = StageModelTpl<Scalar> |
Definition at line 50 of file action-model-wrap.hpp.
| using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::Data = StageDataTpl<Scalar> |
Definition at line 51 of file action-model-wrap.hpp.
| using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::CostAbstract = CostAbstractTpl<Scalar> |
Definition at line 52 of file action-model-wrap.hpp.
| using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::CrocActionModel = crocoddyl::ActionModelAbstractTpl<Scalar> |
Definition at line 53 of file action-model-wrap.hpp.
| using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::StateWrapper = StateWrapperTpl<Scalar> |
Definition at line 54 of file action-model-wrap.hpp.
| using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::ActionDataWrap = ActionDataWrapperTpl<Scalar> |
Definition at line 55 of file action-model-wrap.hpp.
| using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::DynDataWrap = DynamicsDataWrapperTpl<Scalar> |
Definition at line 56 of file action-model-wrap.hpp.
| using aligator::compat::croc::ActionModelWrapperTpl< Scalar >::Manifold = ManifoldAbstractTpl<Scalar> |
Definition at line 57 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 63 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 73 of file action-model-wrap.hpp.
|
overridevirtual |
Create a StageData object.
Reimplemented from aligator::StageModelTpl< Scalar >.
| shared_ptr<CrocActionModel> aligator::compat::croc::ActionModelWrapperTpl< Scalar >::action_model_ |
Definition at line 59 of file action-model-wrap.hpp.