Generate valid samples using the Gaussian sampling strategy. More...
#include <GaussianValidStateSampler.h>
Public Member Functions | |
GaussianValidStateSampler (const SpaceInformation *si) | |
Constructor. | |
virtual bool | sample (State *state) |
Sample a state. Return false in case of failure. | |
virtual bool | sampleNear (State *state, const State *near, const double distance) |
Sample a state near another, within specified distance. Return false, in case of failure. | |
double | getStdDev (void) const |
Get the standard deviation used when sampling. | |
void | setStdDev (double stddev) |
Set the standard deviation to use when sampling. | |
Protected Attributes | |
StateSamplerPtr | sampler_ |
The sampler to build upon. | |
double | stddev_ |
The standard deviation to use in the sampling process. |
Generate valid samples using the Gaussian sampling strategy.
Definition at line 49 of file GaussianValidStateSampler.h.
bool ompl::base::GaussianValidStateSampler::sampleNear | ( | State * | state, |
const State * | near, | ||
const double | distance | ||
) | [virtual] |
Sample a state near another, within specified distance. Return false, in case of failure.
Implements ompl::base::ValidStateSampler.
Definition at line 70 of file GaussianValidStateSampler.cpp.