|
aligator
0.16.0
A versatile and efficient C++ library for real-time constrained trajectory optimization.
|
Convenience class to manage a stack of constraints. More...
#include <aligator/core/constraint.hpp>
Public Types | |
| using | PolyFunc = xyz::polymorphic<StageFunctionTpl<Scalar>> |
| using | PolySet = xyz::polymorphic<ConstraintSetTpl<Scalar>> |
Public Member Functions | |
| ALIGATOR_DYNAMIC_TYPEDEFS (Scalar) | |
| ConstraintStackTpl () | |
| ConstraintStackTpl (const ConstraintStackTpl &)=default | |
| ConstraintStackTpl & | operator= (const ConstraintStackTpl &)=default |
| ConstraintStackTpl (ConstraintStackTpl &&)=default | |
| ConstraintStackTpl & | operator= (ConstraintStackTpl &&)=default |
| std::size_t | size () const |
| bool | empty () const |
| void | clear () |
| template<typename Cstr> | |
| ALIGATOR_DEPRECATED void | pushBack (Cstr &&el) |
| void | pushBack (const PolyFunc &func, const PolySet &cstr_set) |
| const std::vector< long > & | dims () const |
| Get the set of dimensions for each constraint in the stack. | |
| long | totalDim () const |
| template<typename Derived> | |
| Derived * | getConstraint (const size_t id) |
| Get constraint function, cast down to the specified type. | |
| template<typename Derived> | |
| const Derived * | getConstraint (const size_t id) const |
| Get constraint function, cast down to the specified type. | |
Public Attributes | |
| std::vector< PolyFunc > | funcs |
| std::vector< PolySet > | sets |
Protected Attributes | |
| std::vector< long > | indices_ |
| std::vector< long > | dims_ |
| long | total_dim_ = 0 |
Convenience class to manage a stack of constraints.
Definition at line 14 of file constraint.hpp.
| using aligator::ConstraintStackTpl< Scalar >::PolyFunc = xyz::polymorphic<StageFunctionTpl<Scalar>> |
Definition at line 16 of file constraint.hpp.
| using aligator::ConstraintStackTpl< Scalar >::PolySet = xyz::polymorphic<ConstraintSetTpl<Scalar>> |
Definition at line 17 of file constraint.hpp.
|
inline |
Definition at line 19 of file constraint.hpp.
|
default |
|
default |
| aligator::ConstraintStackTpl< Scalar >::ALIGATOR_DYNAMIC_TYPEDEFS | ( | Scalar | ) |
|
default |
|
default |
|
inline |
Definition at line 26 of file constraint.hpp.
|
inline |
Definition at line 27 of file constraint.hpp.
| void aligator::ConstraintStackTpl< Scalar >::clear | ( | ) |
Definition at line 83 of file constraint.hpp.
|
inline |
Definition at line 30 of file constraint.hpp.
|
inline |
Definition at line 40 of file constraint.hpp.
|
inline |
Get the set of dimensions for each constraint in the stack.
Definition at line 51 of file constraint.hpp.
|
inline |
Definition at line 53 of file constraint.hpp.
|
inline |
Get constraint function, cast down to the specified type.
Definition at line 56 of file constraint.hpp.
|
inline |
Get constraint function, cast down to the specified type.
Definition at line 62 of file constraint.hpp.
| std::vector<PolyFunc> aligator::ConstraintStackTpl< Scalar >::funcs |
Definition at line 66 of file constraint.hpp.
| std::vector<PolySet> aligator::ConstraintStackTpl< Scalar >::sets |
Definition at line 67 of file constraint.hpp.
|
protected |
Definition at line 70 of file constraint.hpp.
|
protected |
Definition at line 71 of file constraint.hpp.
|
protected |
Definition at line 72 of file constraint.hpp.