Aikido
|
#include <aikido/constraint/uniform/detail/RnBoxConstraint-impl.hpp>
Public Types | |
using | VectorNd = Eigen::Matrix< double, N, 1 > |
Public Member Functions | |
statespace::ConstStateSpacePtr | getStateSpace () const override |
Gets the StateSpace that this SampleGenerator samples from. More... | |
bool | sample (statespace::StateSpace::State *_state) override |
Returns one sample from this constraint; returns true if succeeded. More... | |
int | getNumSamples () const override |
Gets an upper bound on the number of samples remaining or NO_LIMIT. More... | |
bool | canSample () const override |
Returns whether getNumSamples() > 0. More... | |
![]() | |
virtual | ~SampleGenerator ()=default |
Private Member Functions | |
RnBoxConstraintSampleGenerator (std::shared_ptr< const statespace::R< N >> _space, std::unique_ptr< common::RNG > _rng, const VectorNd &_lowerLimits, const VectorNd &_upperLimits) | |
Private Attributes | |
std::shared_ptr< const statespace::R< N > > | mSpace |
std::unique_ptr< common::RNG > | mRng |
std::vector< std::uniform_real_distribution< double > > | mDistributions |
Friends | |
class | RBoxConstraint< N > |
Additional Inherited Members | |
![]() | |
static constexpr int | NO_LIMIT = std::numeric_limits<int>::max() |
Value used to represent a potentially infinite number of samples. More... | |
using aikido::constraint::uniform::RnBoxConstraintSampleGenerator< N >::VectorNd = Eigen::Matrix<double, N, 1> |
|
private |
|
overridevirtual |
Returns whether getNumSamples() > 0.
Implements aikido::constraint::SampleGenerator.
|
overridevirtual |
Gets an upper bound on the number of samples remaining or NO_LIMIT.
Implements aikido::constraint::SampleGenerator.
|
overridevirtual |
Gets the StateSpace that this SampleGenerator samples from.
Implements aikido::constraint::SampleGenerator.
|
overridevirtual |
Returns one sample from this constraint; returns true if succeeded.
Implements aikido::constraint::SampleGenerator.
|
friend |
|
private |
|
private |
|
private |