Loading...
Searching...
No Matches
ompl::base::GaussianValidStateSampler Class Reference

Generate valid samples using the Gaussian sampling strategy. More...

#include <ompl/base/samplers/GaussianValidStateSampler.h>

Inheritance diagram for ompl::base::GaussianValidStateSampler:

Public Member Functions

 GaussianValidStateSampler (const SpaceInformation *si)
 Constructor.
bool sample (State *state) override
 Sample a state. Return false in case of failure.
bool sampleNear (State *state, const State *near, double distance) override
 Sample a state near another, within specified distance. Return false, in case of failure.
double getStdDev () const
 Get the standard deviation used when sampling.
void setStdDev (double stddev)
 Set the standard deviation to use when sampling.
Public Member Functions inherited from ompl::base::ValidStateSampler
 ValidStateSampler (const ValidStateSampler &)=delete
ValidStateSampleroperator= (const ValidStateSampler &)=delete
 ValidStateSampler (const SpaceInformation *si)
 Constructor.
const std::string & getName () const
 Get the name of the sampler.
void setName (const std::string &name)
 Set the name of the sampler.
void setNrAttempts (unsigned int attempts)
 Finding a valid sample usually requires performing multiple attempts. This call allows setting the number of such attempts.
unsigned int getNrAttempts () const
 Get the number of attempts to be performed by the sampling routine.
ParamSetparams ()
 Get the parameters for the valid state sampler.
const ParamSetparams () const
 Get the parameters for the valid state sampler.

Protected Attributes

StateSamplerPtr sampler_
 The sampler to build upon.
double stddev_
 The standard deviation to use in the sampling process.
Protected Attributes inherited from ompl::base::ValidStateSampler
const SpaceInformationsi_
 The state space this sampler samples.
unsigned int attempts_
 Number of attempts to find a valid sample.
std::string name_
 The name of the sampler.
ParamSet params_
 The parameters for this instance of the valid state sampler.

Detailed Description

Generate valid samples using the Gaussian sampling strategy.

Definition at line 48 of file GaussianValidStateSampler.h.

Constructor & Destructor Documentation

◆ GaussianValidStateSampler()

ompl::base::GaussianValidStateSampler::GaussianValidStateSampler ( const SpaceInformation * si)

Constructor.

Definition at line 41 of file GaussianValidStateSampler.cpp.

Member Function Documentation

◆ getStdDev()

double ompl::base::GaussianValidStateSampler::getStdDev ( ) const
inline

Get the standard deviation used when sampling.

Definition at line 60 of file GaussianValidStateSampler.h.

◆ sample()

bool ompl::base::GaussianValidStateSampler::sample ( State * state)
overridevirtual

Sample a state. Return false in case of failure.

Implements ompl::base::ValidStateSampler.

Definition at line 58 of file GaussianValidStateSampler.cpp.

◆ sampleNear()

bool ompl::base::GaussianValidStateSampler::sampleNear ( State * state,
const State * near,
double distance )
overridevirtual

Sample a state near another, within specified distance. Return false, in case of failure.

Note
The memory for near must be disjoint from the memory for state

Implements ompl::base::ValidStateSampler.

Definition at line 81 of file GaussianValidStateSampler.cpp.

◆ setStdDev()

void ompl::base::GaussianValidStateSampler::setStdDev ( double stddev)
inline

Set the standard deviation to use when sampling.

Definition at line 66 of file GaussianValidStateSampler.h.

Member Data Documentation

◆ sampler_

StateSamplerPtr ompl::base::GaussianValidStateSampler::sampler_
protected

The sampler to build upon.

Definition at line 73 of file GaussianValidStateSampler.h.

◆ stddev_

double ompl::base::GaussianValidStateSampler::stddev_
protected

The standard deviation to use in the sampling process.

Definition at line 76 of file GaussianValidStateSampler.h.


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