Aikido
|
Sampleable that wraps a sequence of Sampleables. More...
#include <aikido/constraint/SequentialSampleable.hpp>
Public Member Functions | |
SequentialSampleable (statespace::StateSpacePtr stateSpace, const std::vector< ConstSampleablePtr > &sampleables) | |
Constructor. More... | |
statespace::ConstStateSpacePtr | getStateSpace () const override |
Gets the StateSpace that this constraint operates on. More... | |
std::unique_ptr< SampleGenerator > | createSampleGenerator () const override |
Creates a SampleGenerator for sampling from this constraint. More... | |
![]() | |
virtual | ~Sampleable ()=default |
Private Attributes | |
statespace::ConstStateSpacePtr | mStateSpace |
StateSpace in which the constraint operates. More... | |
const std::vector< ConstSampleablePtr > | mSampleables |
Sequence of sampleables. More... | |
Sampleable that wraps a sequence of Sampleables.
Exhausts the current Sampleable before sampling from the next Sampleable in the sequence.
aikido::constraint::SequentialSampleable::SequentialSampleable | ( | statespace::StateSpacePtr | stateSpace, |
const std::vector< ConstSampleablePtr > & | sampleables | ||
) |
Constructor.
[in] | stateSpace | StateSpace in which this constraint operates. |
[in] | sampleables | Sequence of sampleables. |
|
overridevirtual |
Creates a SampleGenerator for sampling from this constraint.
Implements aikido::constraint::Sampleable.
|
overridevirtual |
Gets the StateSpace that this constraint operates on.
Implements aikido::constraint::Sampleable.
|
private |
Sequence of sampleables.
|
private |
StateSpace in which the constraint operates.