|
Aikido
|
A Projectable for CompoundStates. More...
#include <aikido/constraint/CartesianProductProjectable.hpp>
Public Member Functions | |
| CartesianProductProjectable (std::shared_ptr< const statespace::CartesianProduct > _stateSpace, std::vector< ProjectablePtr > _constraints) | |
| Constructor. More... | |
| statespace::ConstStateSpacePtr | getStateSpace () const override |
| Gets the StateSpace that this constraint operates on. More... | |
| bool | project (const statespace::StateSpace::State *_s, statespace::StateSpace::State *_out) const override |
| Projection _s to _out. More... | |
Public Member Functions inherited from aikido::constraint::Projectable | |
| virtual | ~Projectable ()=default |
| virtual bool | project (statespace::StateSpace::State *_s) const |
| Performs an in-place projection. More... | |
Private Attributes | |
| std::shared_ptr< const statespace::CartesianProduct > | mStateSpace |
| std::vector< ProjectablePtr > | mConstraints |
A Projectable for CompoundStates.
It takes in a set of Projectables and project i-th substate to i-th constraint.
| aikido::constraint::CartesianProductProjectable::CartesianProductProjectable | ( | std::shared_ptr< const statespace::CartesianProduct > | _stateSpace, |
| std::vector< ProjectablePtr > | _constraints | ||
| ) |
Constructor.
| _stateSpace | CartesianProduct in which this constraint operates. |
| _constraints | Set of constraints. The size of _constraints should match the number of subspaces in _stateSpace. i-th constraint applies to i-th subspace. |
|
overridevirtual |
Gets the StateSpace that this constraint operates on.
Implements aikido::constraint::Projectable.
|
overridevirtual |
Projection _s to _out.
Returns false if projection cannot be done.
| _s | state to be projected. |
| _out | resulting projection. |
Implements aikido::constraint::Projectable.
|
private |
|
private |