PrecomputedStateSampler.h
State space sampler for discrete states.
Definition: PrecomputedStateSampler.h:45
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:70
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
const std::vector< const State * > & states_
The states to sample from.
Definition: PrecomputedStateSampler.h:63
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
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