StateSampler.h
virtual void sampleGaussian(State *state, const State *mean, const double stdDev)=0
Sample a state using a Gaussian distribution with given mean and standard deviation (stdDev)...
std::vector< std::string > subspaces_
The names of common subspaces between space_ and subspace_; these are the ones copied after sampling ...
Definition: StateSampler.h:188
A shared pointer wrapper for ompl::base::StateSampler.
std::vector< StateSamplerPtr > samplers_
The samplers that are composed.
Definition: StateSampler.h:149
std::function< StateSamplerPtr(const StateSpace *)> StateSamplerAllocator
Definition of a function that can allocate a state sampler.
Definition: StateSampler.h:200
Random number generation. An instance of this class cannot be used by multiple threads at once (membe...
Definition: RandomNumbers.h:58
virtual ~CompoundStateSampler()
Destructor. This frees the added samplers as well.
Definition: StateSampler.h:124
Representation of a space in which planning can be performed. Topology specific sampling, interpolation and distance are defined.
Definition: StateSpace.h:72
double weight_
The weigth factor to multiply distance and stdDev when sampling in the vicinity of a state...
Definition: StateSampler.h:185
virtual void sampleUniformNear(State *state, const State *near, const double distance)=0
Sample a state near another, within a neighborhood controlled by a distance parameter.
Definition of a compound state sampler. This is useful to construct samplers for compound states...
Definition: StateSampler.h:114
Construct a sampler that samples only within a subspace of the space.
Definition: StateSampler.h:162
std::vector< double > weightImportance_
The weight of each sampler (used when sampling near a state)
Definition: StateSampler.h:152