Class CompoundStateSampler
Defined in File StateSampler.h
Inheritance Relationships
Base Type
public ompl::base::StateSampler
(Class StateSampler)
Class Documentation
-
class CompoundStateSampler : public ompl::base::StateSampler
Definition of a compound state sampler. This is useful to construct samplers for compound states.
Public Functions
-
inline CompoundStateSampler(const StateSpace *space)
Constructor.
-
~CompoundStateSampler() override = default
Destructor. This frees the added samplers as well.
-
virtual void addSampler(const StateSamplerPtr &sampler, double weightImportance)
Add a sampler as part of the new compound sampler. This sampler is used to sample part of the compound state. When sampling near a state, the compound sampler calls in to added samplers. The distance passed to the called samplers is adjusted according to the specified importance.
Protected Attributes
-
std::vector<StateSamplerPtr> samplers_
The samplers that are composed.
-
std::vector<double> weightImportance_
The weight of each sampler (used when sampling near a state)
-
inline CompoundStateSampler(const StateSpace *space)