Class ConstrainedValidStateSampler

Inheritance Relationships

Base Type

Class Documentation

class ConstrainedValidStateSampler : public ompl::base::ValidStateSampler

Valid state sampler for constrained state spaces.

Public Functions

inline ConstrainedValidStateSampler(const SpaceInformation *si)

Constructor. Create a valid state sampler for a constrained state space.

inline virtual bool sample(State *state) override

Sample a state. Return false in case of failure.

inline virtual bool sampleNear(State *state, const State *near, double distance) override

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