CForestStateSampler.h
void getNextSample(State *state)
Extracts the next sample when statesToSample_ is not empty.
Definition: CForestStateSampler.cpp:80
void sampleUniformNear(State *state, const State *near, double distance) override
It will sample the next state of the vector StatesToSample_. If this is empty, it will call the sampl...
Definition: CForestStateSampler.cpp:47
void setStatesToSample(const std::vector< const State * > &states)
Fills the vector StatesToSample_ of states to be sampled in the next calls to sampleUniform(),...
Definition: CForestStateSampler.cpp:63
void sampleGaussian(State *state, const State *mean, double stdDev) override
It will sample the next state of the vector StatesToSample_. If this is empty, it will call the sampl...
Definition: CForestStateSampler.cpp:55
StateSamplerPtr sampler_
Underlying, user-specified state sampler.
Definition: CForestStateSampler.h:193
std::mutex statesLock_
Lock to control the access to the statesToSample_ vector.
Definition: CForestStateSampler.h:196
CForestStateSampler(const StateSpace *space, StateSamplerPtr sampler)
Constructor.
Definition: CForestStateSampler.h:151
A shared pointer wrapper for ompl::base::StateSampler.
void sampleUniform(State *state) override
It will sample the next state of the vector StatesToSample_. If this is empty, it will call the sampl...
Definition: CForestStateSampler.cpp:39