ompl::base::KleinBottleStateSampler Class Reference

State sampler for the Klein bottle state space. More...

#include <ompl/base/spaces/special/KleinBottleStateSpace.h>

Inheritance diagram for ompl::base::KleinBottleStateSampler:

Public Member Functions

 KleinBottleStateSampler (const StateSpace *space)
 
void sampleUniform (State *state) override
 Sample a state.
 
void sampleUniformNear (State *state, const State *near, double distance) override
 Sample a state near another, within a neighborhood controlled by a distance parameter. More...
 
void sampleGaussian (State *state, const State *mean, double stdDev) override
 Sample a state using a Gaussian distribution with given mean and standard deviation (stdDev). More...
 
- Public Member Functions inherited from ompl::base::StateSampler
 StateSampler (const StateSampler &)=delete
 
StateSampleroperator= (const StateSampler &)=delete
 
 StateSampler (const StateSpace *space)
 Constructor.
 

Additional Inherited Members

- Protected Attributes inherited from ompl::base::StateSampler
const StateSpacespace_
 The state space this sampler samples.
 
RNG rng_
 An instance of a random number generator.
 

Detailed Description

State sampler for the Klein bottle state space.

Definition at line 119 of file KleinBottleStateSpace.h.

Member Function Documentation

◆ sampleGaussian()

void KleinBottleStateSampler::sampleGaussian ( State state,
const State mean,
double  stdDev 
)
overridevirtual

Sample a state using a Gaussian distribution with given mean and standard deviation (stdDev).

As with sampleUniform, the implementation of sampleGaussian is specific to the derived class and few assumptions can be made about the distance between state and mean.

Implements ompl::base::StateSampler.

Definition at line 137 of file KleinBottleStateSpace.cpp.

◆ sampleUniformNear()

void KleinBottleStateSampler::sampleUniformNear ( State state,
const State near,
double  distance 
)
overridevirtual

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.

Implements ompl::base::StateSampler.

Definition at line 128 of file KleinBottleStateSpace.cpp.


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