A state sampler that wraps around another state sampler. More...
#include <ompl/base/spaces/WrapperStateSpace.h>

Public Member Functions | |
WrapperStateSampler (const StateSpace *space, StateSamplerPtr sampler) | |
Constructor. Requires the wrapper state space space and the underlying sampler sampler. More... | |
void | sampleUniform (State *state) override |
Sample a state using underlying sampler. More... | |
void | sampleUniformNear (State *state, const State *near, double distance) override |
Sample a nearby state using underlying sampler. More... | |
void | sampleGaussian (State *state, const State *mean, double stdDev) override |
Sample a state within a Gaussian distribution using underlying sampler. More... | |
![]() | |
StateSampler (const StateSampler &)=delete | |
StateSampler & | operator= (const StateSampler &)=delete |
StateSampler (const StateSpace *space) | |
Constructor. More... | |
virtual void | sampleUniform (State *state)=0 |
Sample a state. More... | |
virtual void | sampleUniformNear (State *state, const State *near, double distance)=0 |
Sample a state near another, within a neighborhood controlled by a distance parameter. More... | |
virtual void | sampleGaussian (State *state, const State *mean, double stdDev)=0 |
Sample a state using a Gaussian distribution with given mean and standard deviation (stdDev). More... | |
Protected Attributes | |
StateSamplerPtr | sampler_ |
Underlying state sampler. More... | |
![]() | |
const StateSpace * | space_ |
The state space this sampler samples. More... | |
RNG | rng_ |
An instance of a random number generator. More... | |
Detailed Description
A state sampler that wraps around another state sampler.
Definition at line 54 of file WrapperStateSpace.h.
Constructor & Destructor Documentation
◆ WrapperStateSampler()
|
inline |
Constructor. Requires the wrapper state space space and the underlying sampler sampler.
Definition at line 59 of file WrapperStateSpace.h.
Member Function Documentation
◆ sampleGaussian()
|
overridevirtual |
Sample a state within a Gaussian distribution using underlying sampler.
Implements ompl::base::StateSampler.
Definition at line 50 of file WrapperStateSpace.cpp.
◆ sampleUniform()
|
overridevirtual |
Sample a state using underlying sampler.
Implements ompl::base::StateSampler.
Definition at line 39 of file WrapperStateSpace.cpp.
◆ sampleUniformNear()
|
overridevirtual |
Sample a nearby state using underlying sampler.
Implements ompl::base::StateSampler.
Definition at line 44 of file WrapperStateSpace.cpp.
Member Data Documentation
◆ sampler_
|
protected |
Underlying state sampler.
Definition at line 75 of file WrapperStateSpace.h.
The documentation for this class was generated from the following files:
- ompl/base/spaces/WrapperStateSpace.h
- ompl/base/spaces/src/WrapperStateSpace.cpp