ValidStateSampler.h
134 using ValidStateSamplerAllocator = std::function<ValidStateSamplerPtr(const SpaceInformation *)>;
virtual bool sample(State *state)=0
Sample a state. Return false in case of failure.
const SpaceInformation * si_
The state space this sampler samples.
Definition: ValidStateSampler.h:185
std::function< ValidStateSamplerPtr(const SpaceInformation *)> ValidStateSamplerAllocator
Definition of a function that can allocate a valid state sampler.
Definition: ValidStateSampler.h:198
unsigned int getNrAttempts() const
Get the number of attempts to be performed by the sampling routine.
Definition: ValidStateSampler.h:166
ParamSet params_
The parameters for this instance of the valid state sampler.
Definition: ValidStateSampler.h:194
void setNrAttempts(unsigned int attempts)
Finding a valid sample usually requires performing multiple attempts. This call allows setting the nu...
Definition: ValidStateSampler.h:160
virtual bool sampleNear(State *state, const State *near, double distance)=0
Sample a state near another, within specified distance. Return false, in case of failure.
void setName(const std::string &name)
Set the name of the sampler.
Definition: ValidStateSampler.h:145
ParamSet & params()
Get the parameters for the valid state sampler.
Definition: ValidStateSampler.h:172
A shared pointer wrapper for ompl::base::ValidStateSampler.
Main namespace. Contains everything in this library.
Definition: MultiLevelPlanarManipulatorDemo.cpp:65