PrecomputedStateSampler.cpp
41 ompl::base::PrecomputedStateSampler::PrecomputedStateSampler(const StateSpace *space, const std::vector<const State*> &states) :
50 ompl::base::PrecomputedStateSampler::PrecomputedStateSampler(const StateSpace *space, const std::vector<const State*> &states, std::size_t minStateIndex, std::size_t maxStateIndex) :
51 StateSampler(space), states_(states), minStateIndex_(minStateIndex), maxStateIndex_(maxStateIndex)
66 void ompl::base::PrecomputedStateSampler::sampleUniformNear(State *state, const State *near, const double distance)
76 void ompl::base::PrecomputedStateSampler::sampleGaussian(State *state, const State *mean, const double stdDev)
const std::vector< const State * > & states_
The states to sample from.
Definition: PrecomputedStateSampler.h:63
virtual void sampleUniformNear(State *state, const State *near, const double distance)
Sample a state near another, within specified distance.
Definition: PrecomputedStateSampler.cpp:66
std::size_t minStateIndex_
The minimum index to start sampling at.
Definition: PrecomputedStateSampler.h:66
std::size_t maxStateIndex_
The maximum index to stop sampling at.
Definition: PrecomputedStateSampler.h:69
Representation of a space in which planning can be performed. Topology specific sampling, interpolation and distance are defined.
Definition: StateSpace.h:73
virtual void sampleGaussian(State *state, const State *mean, const double stdDev)
Sample a state using a Gaussian distribution with given mean and standard deviation (stdDev) ...
Definition: PrecomputedStateSampler.cpp:76
PrecomputedStateSampler(const StateSpace *space, const std::vector< const State * > &states)
Constructor. Takes the state space to be sampled (space) and the set of states to draw samples from (...
Definition: PrecomputedStateSampler.cpp:41