Function OpenSoT::operator<<(OpenSoT::AutoStack::Ptr, const OpenSoT::constraints::Aggregated::ConstraintPtr)
Defined in File AutoStack.h
Function Documentation
-
OpenSoT::AutoStack::Ptr OpenSoT::operator<<(OpenSoT::AutoStack::Ptr stack1, const OpenSoT::constraints::Aggregated::ConstraintPtr bound)
operator << adds a new constraint/bound to the stack specified.
A unicity test will be made, so that if the stack already has the input bound in the list of bounds, it will not get added. (NOTICE that the equality test for the bounds is on pointers, so you can have duplicated bounds if you made multiple instances of the same bounds/constraints)
- Parameters
task – a pointer to the task
bound – a pointer to the bound/constraint
- Returns
a pointer to the same input stack, with a constraint/bound added (NOTICE the stack is NOT a copy, it’s the input stack to which we added a new constraint)