|
Aikido
|
ConstantSampler for RealVectorStates. More...
#include <aikido/constraint/uniform/RnConstantSampler.hpp>
Public Types | |
| using | VectorNd = Eigen::Matrix< double, N, 1 > |
Public Member Functions | |
| RConstantSampler (std::shared_ptr< const statespace::R< N >> _space, const VectorNd &_value) | |
| Constructor. More... | |
| statespace::ConstStateSpacePtr | getStateSpace () const override |
| Gets the StateSpace that this constraint operates on. More... | |
| std::unique_ptr< constraint::SampleGenerator > | createSampleGenerator () const override |
| Creates a SampleGenerator for sampling from this constraint. More... | |
| const VectorNd & | getConstantValue () const |
| Returns constant value to be generated by this sampler. More... | |
Public Member Functions inherited from aikido::constraint::Sampleable | |
| virtual | ~Sampleable ()=default |
Private Attributes | |
| std::shared_ptr< const statespace::R< N > > | mSpace |
| VectorNd | mValue |
ConstantSampler for RealVectorStates.
Stub sampler for WeldJoint or any fixed constant state space.
| using aikido::constraint::uniform::RConstantSampler< N >::VectorNd = Eigen::Matrix<double, N, 1> |
| aikido::constraint::uniform::RConstantSampler< N >::RConstantSampler | ( | std::shared_ptr< const statespace::R< N >> | _space, |
| const VectorNd & | _value | ||
| ) |
Constructor.
| _space | Space in which this constraint operates. |
| _value | Value to return when sampled. |
|
overridevirtual |
Creates a SampleGenerator for sampling from this constraint.
Implements aikido::constraint::Sampleable.
| const RConstantSampler< N >::VectorNd & aikido::constraint::uniform::RConstantSampler< N >::getConstantValue |
Returns constant value to be generated by this sampler.
|
overridevirtual |
Gets the StateSpace that this constraint operates on.
Implements aikido::constraint::Sampleable.
|
private |
|
private |