PrecomputedStateSampler.cpp
54 : StateSampler(space), states_(states), minStateIndex_(minStateIndex), maxStateIndex_(maxStateIndex)
69 void ompl::base::PrecomputedStateSampler::sampleUniformNear(State *state, const State *near, const double distance)
79 void ompl::base::PrecomputedStateSampler::sampleGaussian(State *state, const State *mean, const double stdDev)
void sampleUniformNear(State *state, const State *near, double distance) override
Sample a state near another, within a neighborhood controlled by a distance parameter.
Definition: PrecomputedStateSampler.cpp:69
std::size_t maxStateIndex_
The maximum index to stop sampling at.
Definition: PrecomputedStateSampler.h:165
Representation of a space in which planning can be performed. Topology specific sampling,...
Definition: StateSpace.h:134
std::size_t minStateIndex_
The minimum index to start sampling at.
Definition: PrecomputedStateSampler.h:162
const std::vector< const State * > & states_
The states to sample from.
Definition: PrecomputedStateSampler.h:159
void sampleGaussian(State *state, const State *mean, double stdDev) override
Sample a state using a Gaussian distribution with given mean and standard deviation (stdDev).
Definition: PrecomputedStateSampler.cpp:79
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