Class WrapperStateSampler

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class WrapperStateSampler : public ompl::base::StateSampler

A state sampler that wraps around another state sampler.

Subclassed by ompl::base::ProjectedStateSampler

Public Functions

inline WrapperStateSampler(const StateSpace *space, StateSamplerPtr sampler)

Constructor. Requires the wrapper state space space and the underlying sampler sampler.

virtual void sampleUniform(State *state) override

Sample a state using underlying sampler.

virtual void sampleUniformNear(State *state, const State *near, double distance) override

Sample a nearby state using underlying sampler.

virtual void sampleGaussian(State *state, const State *mean, double stdDev) override

Sample a state within a Gaussian distribution using underlying sampler.

Protected Attributes

StateSamplerPtr sampler_

Underlying state sampler.