CForestStateSampler.cpp
47 void ompl::base::CForestStateSampler::sampleUniformNear(State *state, const State *near, const double distance)
55 void ompl::base::CForestStateSampler::sampleGaussian(State *state, const State *mean, const double stdDev)
63 void ompl::base::CForestStateSampler::setStatesToSample(const std::vector<const State *> &states)
boost::mutex statesLock_
Lock to control the access to the statesToSample_ vector.
Definition: CForestStateSampler.h:101
StateSamplerPtr sampler_
Underlying, user-specified state sampler.
Definition: CForestStateSampler.h:98
void setStatesToSample(const std::vector< const State *> &states)
Fills the vector StatesToSample_ of states to be sampled in the next calls to sampleUniform(), sampleUniformNear() or sampleGaussian().
Definition: CForestStateSampler.cpp:63
virtual void sampleGaussian(State *state, const State *mean, const double stdDev)
It will sample the next state of the vector StatesToSample_. If this is empty, it will call the sampl...
Definition: CForestStateSampler.cpp:55
void getNextSample(State *state)
Extracts the next sample when statesToSample_ is not empty.
Definition: CForestStateSampler.cpp:80
virtual void freeState(State *state) const =0
Free the memory of the allocated state.
virtual void copyState(State *destination, const State *source) const =0
Copy a state to another. The memory of source and destination should NOT overlap. ...
virtual void sampleUniformNear(State *state, const State *near, const double distance)
It will sample the next state of the vector StatesToSample_. If this is empty, it will call the sampl...
Definition: CForestStateSampler.cpp:47
virtual State * allocState() const =0
Allocate a state that can store a point in the described space.
virtual void sampleUniform(State *state)
It will sample the next state of the vector StatesToSample_. If this is empty, it will call the sampl...
Definition: CForestStateSampler.cpp:39