37 #ifndef OMPL_CONTROL_SIMPLE_DIRECTED_CONTROL_SAMPLER_
38 #define OMPL_CONTROL_SIMPLE_DIRECTED_CONTROL_SAMPLER_
40 #include "ompl/control/DirectedControlSampler.h"
41 #include "ompl/control/ControlSampler.h"
void setNumControlSamples(unsigned int numSamples)
Set the number of controls to generate when finding the best control.
Definition of an abstract control.
A boost shared pointer wrapper for ompl::control::ControlSampler.
virtual unsigned int sampleTo(Control *control, const base::State *source, base::State *dest)
Sample a control given that it will be applied to state state and the intention is to reach state des...
virtual unsigned int getBestControl(Control *control, const base::State *source, base::State *dest, const Control *previous)
Samples numControlSamples_ controls, and returns the control that brings the system the closest to ta...
SimpleDirectedControlSampler(const SpaceInformation *si, unsigned int k=1)
Constructor takes the state space to construct samples for as argument Optionally, a k value can be given to indicate the number of controls to try when directing a system toward a specific state. Default value is 1.
Implementation of a simple directed control sampler. This is a basic implementation that does not act...
ControlSamplerPtr cs_
An instance of the control sampler.
Abstract definition of a directed control sampler. Motion planners that need to sample controls that ...
Definition of an abstract state.
unsigned int getNumControlSamples(void) const
Retrieve the number of controls to generate when finding the best control.
unsigned int numControlSamples_
The number of controls to sample when finding the best control.