SpaceInformation.cpp
51 throw Exception("The minimum number of steps cannot be larger than the maximum number of steps");
56 OMPL_WARN("Assuming propagation will always have between %d and %d steps", minSteps_, maxSteps_);
74 ompl::control::DirectedControlSamplerPtr ompl::control::SpaceInformation::allocDirectedControlSampler() const
84 void ompl::control::SpaceInformation::setDirectedControlSamplerAllocator(const DirectedControlSamplerAllocator &dcsa)
101 FnStatePropagator(SpaceInformation *si, StatePropagatorFn fn) : StatePropagator(si), fn_(std::move(fn))
128 void ompl::control::SpaceInformation::propagate(const base::State *state, const Control *control, int steps,
147 unsigned int ompl::control::SpaceInformation::propagateWhileValid(const base::State *state, const Control *control,
202 void ompl::control::SpaceInformation::propagate(const base::State *state, const Control *control, int steps,
236 unsigned int ompl::control::SpaceInformation::propagateWhileValid(const base::State *state, const Control *control,
void setStatePropagator(const StatePropagatorFn &fn)
Set the function that performs state propagation.
Definition: SpaceInformation.cpp:95
DirectedControlSamplerPtr allocDirectedControlSampler() const
Allocate an instance of the DirectedControlSampler to use. This will be the default (SimpleDirectedCo...
Definition: SpaceInformation.cpp:73
double getMaximumExtent() const
Get the maximum extent of the space we are planning in. This is the maximum distance that could be re...
Definition: SpaceInformation.h:358
Model the effect of controls on system states.
Definition: StatePropagator.h:122
void setDirectedControlSamplerAllocator(const DirectedControlSamplerAllocator &dcsa)
Set the allocator to use for the DirectedControlSampler.
Definition: SpaceInformation.cpp:83
std::function< DirectedControlSamplerPtr(const SpaceInformation *)> DirectedControlSamplerAllocator
Definition of a function that can allocate a directed control sampler.
Definition: DirectedControlSampler.h:164
ControlSpacePtr controlSpace_
The control space describing the space of controls applicable to states in the state space.
Definition: SpaceInformation.h:353
std::function< void(const base::State *, const Control *, const double, base::State *)> StatePropagatorFn
A function that achieves state propagation.
Definition: SpaceInformation.h:127
void printSettings(std::ostream &out=std::cout) const override
Print information about the current instance of the state space.
Definition: SpaceInformation.cpp:293
Space information containing necessary information for planning with controls. setup() needs to be ca...
Definition: SpaceInformation.h:131
double getStateValidityCheckingResolution() const
Get the resolution at which state validity is verified. This call is only applicable if a ompl::base:...
Definition: SpaceInformation.h:263
virtual void printSettings(std::ostream &out=std::cout) const
Print information about the current instance of the state space.
Definition: SpaceInformation.cpp:428
unsigned int minSteps_
The minimum number of steps to apply a control for.
Definition: SpaceInformation.h:359
A shared pointer wrapper for ompl::control::DirectedControlSampler.
void propagate(const base::State *state, const Control *control, int steps, base::State *result) const
Propagate the model of the system forward, starting a a given state, with a given control,...
Definition: SpaceInformation.cpp:127
A shared pointer wrapper for ompl::control::StatePropagator.
StatePropagatorPtr statePropagator_
The state propagator used to model the motion of the system being planned for.
Definition: SpaceInformation.h:356
void clearDirectedSamplerAllocator()
Reset the DirectedControlSampler to be the default one.
Definition: SpaceInformation.cpp:89
virtual void setup()
Perform additional setup tasks (run once, before use). If state validity checking resolution has not ...
Definition: SpaceInformation.cpp:57
unsigned int maxSteps_
The maximum number of steps to apply a control for.
Definition: SpaceInformation.h:362
unsigned int propagateWhileValid(const base::State *state, const Control *control, int steps, base::State *result) const
Propagate the model of the system forward, starting at a given state, with a given control,...
Definition: SpaceInformation.cpp:146
bool canPropagateBackward() const
Some systems can only propagate forward in time (i.e., the steps argument for the propagate() functio...
Definition: SpaceInformation.cpp:122
void setup() override
Perform additional setup tasks (run once, before use)
Definition: SpaceInformation.cpp:44