ControlDurationObjective.cpp
39 ompl::base::ControlDurationObjective::ControlDurationObjective(const control::SpaceInformationPtr &si)
51 ompl::base::Cost ompl::base::ControlDurationObjective::motionCost(const State *, const State *) const
Cost motionCost(const State *s1, const State *s2) const override
Returns a cost with a value of 0.
Definition: ControlDurationObjective.cpp:51
Cost controlCost(const control::Control *c, unsigned int steps) const override
Returns the cost with the value of steps*dt.
Definition: ControlDurationObjective.cpp:56
Definition of a cost value. Can represent the cost of a motion or the cost of a state.
Definition: Cost.h:111
Abstract definition of optimization objectives.
Definition: OptimizationObjective.h:138
ControlDurationObjective(const control::SpaceInformationPtr &si)
Requires a control::SpaceInformationPtr to access dt.
Definition: ControlDurationObjective.cpp:39
std::string description_
The description of this optimization objective.
Definition: OptimizationObjective.h:259
Cost stateCost(const State *s) const override
Returns a cost with a value of 0.
Definition: ControlDurationObjective.cpp:46