Loading...
Searching...
No Matches
ompl::base::StateSampler Class Referenceabstract

Abstract definition of a state space sampler. More...

#include <ompl/base/StateSampler.h>

Inheritance diagram for ompl::base::StateSampler:

Public Member Functions

 StateSampler (const StateSampler &)=delete
 
StateSampleroperator= (const StateSampler &)=delete
 
 StateSampler (const StateSpace *space)
 Constructor.
 
virtual void sampleUniform (State *state)=0
 Sample a state.
 
virtual void sampleUniformNear (State *state, const State *near, double distance)=0
 Sample a state near another, within a neighborhood controlled by a distance parameter.
 
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).
 

Protected Attributes

const StateSpacespace_
 The state space this sampler samples.
 
RNG rng_
 An instance of a random number generator.
 

Detailed Description

Abstract definition of a state space sampler.

Definition at line 64 of file StateSampler.h.

Constructor & Destructor Documentation

◆ StateSampler()

ompl::base::StateSampler::StateSampler ( const StateSpace * space)
inline

Constructor.

Definition at line 72 of file StateSampler.h.

Member Function Documentation

◆ sampleGaussian()

virtual void ompl::base::StateSampler::sampleGaussian ( State * state,
const State * mean,
double stdDev )
pure virtual

◆ sampleUniform()

◆ sampleUniformNear()

virtual void ompl::base::StateSampler::sampleUniformNear ( State * state,
const State * near,
double distance )
pure virtual

Sample a state near another, within a neighborhood controlled by a distance parameter.

Typically, StateSampler-derived classes will return in state a state that is uniformly distributed within a ball with radius distance defined by the distance function from the corresponding state space. However, this is not guaranteed. For example, the default state sampler for the RealVectorStateSpace returns samples uniformly distributed using L_inf distance, while the default distance function is L_2 distance.

Implemented in ompl::base::DeterministicStateSampler, ompl::base::PrecomputedStateSampler, ompl::base::SO2DeterministicStateSampler, ompl::base::RealVectorDeterministicStateSampler, ompl::base::SE2DeterministicStateSampler, ompl::base::AtlasStateSampler, ompl::base::ProjectedStateSampler, ompl::base::DiscreteStateSampler, ompl::base::RealVectorStateSampler, ompl::base::SO2StateSampler, ompl::base::SO3StateSampler, ompl::base::TimeStateSampler, ompl::base::WrapperStateSampler, ompl::base::CompoundStateSampler, ompl::base::SubspaceStateSampler, ompl::base::CForestStateSampler, and ompl::base::InformedStateSampler.

Member Data Documentation

◆ rng_

RNG ompl::base::StateSampler::rng_
protected

An instance of a random number generator.

Definition at line 107 of file StateSampler.h.

◆ space_

const StateSpace* ompl::base::StateSampler::space_
protected

The state space this sampler samples.

Definition at line 104 of file StateSampler.h.


The documentation for this class was generated from the following file: