SpaceInformation.cpp
72 throw Exception("The minimum number of steps cannot be larger than the maximum number of steps");
77 OMPL_WARN("Assuming propagation will always have between %d and %d steps", minSteps_, maxSteps_);
95 ompl::control::DirectedControlSamplerPtr ompl::control::SpaceInformation::allocDirectedControlSampler() const
105 void ompl::control::SpaceInformation::setDirectedControlSamplerAllocator(const DirectedControlSamplerAllocator &dcsa)
122 FnStatePropagator(SpaceInformation *si, StatePropagatorFn fn) : StatePropagator(si), fn_(std::move(fn))
149 void ompl::control::SpaceInformation::propagate(const base::State *state, const Control *control, int steps,
168 unsigned int ompl::control::SpaceInformation::propagateWhileValid(const base::State *state, const Control *control,
223 void ompl::control::SpaceInformation::propagate(const base::State *state, const Control *control, int steps,
257 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:117
SpaceInformation(const base::StateSpacePtr &stateSpace, ControlSpacePtr controlSpace)
Constructor. Sets the instance of the state and control spaces to plan with.
Definition: SpaceInformation.cpp:45
A shared pointer wrapper for ompl::control::ControlSpace.
DirectedControlSamplerPtr allocDirectedControlSampler() const
Allocate an instance of the DirectedControlSampler to use. This will be the default (SimpleDirectedCo...
Definition: SpaceInformation.cpp:95
Model the effect of controls on system states.
Definition: StatePropagator.h:125
void setDirectedControlSamplerAllocator(const DirectedControlSamplerAllocator &dcsa)
Set the allocator to use for the DirectedControlSampler.
Definition: SpaceInformation.cpp:105
std::function< DirectedControlSamplerPtr(const SpaceInformation *)> DirectedControlSamplerAllocator
Definition of a function that can allocate a directed control sampler.
Definition: DirectedControlSampler.h:167
void declareParams()
Definition: SpaceInformation.cpp:52
std::function< void(const base::State *, const Control *, const double, base::State *)> StatePropagatorFn
A function that achieves state propagation.
Definition: SpaceInformation.h:130
void printSettings(std::ostream &out=std::cout) const override
Print information about the current instance of the state space.
Definition: SpaceInformation.cpp:315
Space information containing necessary information for planning with controls. setup() needs to be ca...
Definition: SpaceInformation.h:134
virtual void printSettings(std::ostream &out=std::cout) const
Print information about the current instance of the state space.
Definition: SpaceInformation.cpp:429
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:149
A shared pointer wrapper for ompl::control::StatePropagator.
void clearDirectedSamplerAllocator()
Reset the DirectedControlSampler to be the default one.
Definition: SpaceInformation.cpp:111
virtual void setup()
Perform additional setup tasks (run once, before use). If state validity checking resolution has not ...
Definition: SpaceInformation.cpp:58
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:168
bool canPropagateBackward() const
Some systems can only propagate forward in time (i.e., the steps argument for the propagate() functio...
Definition: SpaceInformation.cpp:144
void setup() override
Perform additional setup tasks (run once, before use)
Definition: SpaceInformation.cpp:65