ompl::base::PrecomputedStateSampler Class Reference
State space sampler for discrete states. More...
#include <ompl/base/PrecomputedStateSampler.h>
Inheritance diagram for ompl::base::PrecomputedStateSampler:

Public Member Functions | |
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 (states) | |
PrecomputedStateSampler (const StateSpace *space, const std::vector< const State *> &states, std::size_t minIndex, std::size_t maxIndex) | |
Constructor. Takes the state space to be sampled (space), the set of states to draw samples from (states) and a range to sample from: [minIndex, maxIndex]. | |
virtual void | sampleUniform (State *state) |
Sample a state. | |
virtual void | sampleUniformNear (State *state, const State *near, const double distance) |
Sample a state near another, within specified distance. | |
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) | |
![]() | |
StateSampler (const StateSpace *space) | |
Constructor. | |
Protected Attributes | |
const std::vector< const State * > & | states_ |
The states to sample from. | |
std::size_t | minStateIndex_ |
The minimum index to start sampling at. | |
std::size_t | maxStateIndex_ |
The maximum index to stop sampling at. | |
![]() | |
const StateSpace * | space_ |
The state space this sampler samples. | |
RNG | rng_ |
An instance of a random number generator. | |
Detailed Description
State space sampler for discrete states.
Definition at line 46 of file PrecomputedStateSampler.h.
The documentation for this class was generated from the following files:
- ompl/base/PrecomputedStateSampler.h
- ompl/base/src/PrecomputedStateSampler.cpp