OpenDESimpleSetup.cpp
41 ompl::control::OpenDESimpleSetup::OpenDESimpleSetup(const ControlSpacePtr &space) : SimpleSetup(space)
62 si_->setPropagationStepSize(getStateSpace()->as<OpenDEStateSpace>()->getEnvironment()->stepSize_);
63 si_->setMinMaxControlDuration(getStateSpace()->as<OpenDEStateSpace>()->getEnvironment()->minControlSteps_,
68 ompl::base::ScopedState<ompl::control::OpenDEStateSpace> ompl::control::OpenDESimpleSetup::getCurrentState() const
106 void ompl::control::OpenDESimpleSetup::playPath(const base::PathPtr &path, double timeFactor) const
114 const geometric::PathGeometric &pg = ctl ? static_cast<PathControl *>(path.get())->asGeometric() :
131 ompl::base::PathPtr ompl::control::OpenDESimpleSetup::simulateControl(const double *control, unsigned int steps) const
141 ompl::base::PathPtr ompl::control::OpenDESimpleSetup::simulateControl(const Control *control, unsigned int steps) const
base::ScopedState< OpenDEStateSpace > getCurrentState() const
Get the current OpenDE state (read parameters from OpenDE bodies)
Definition: OpenDESimpleSetup.cpp:68
base::PathPtr simulate(unsigned int steps) const
Simulate the OpenDE environment forward for steps simulation steps, using the null control (ompl::con...
Definition: OpenDESimpleSetup.cpp:158
void setup() override
This method will create the necessary classes for planning. The solve() method will call this functio...
Definition: OpenDESimpleSetup.cpp:85
A shared pointer wrapper for ompl::base::StateSpace.
base::PathPtr simulateControl(const double *control, unsigned int steps) const
Simulate the OpenDE environment forward for steps simulation steps, using the control control...
Definition: OpenDESimpleSetup.cpp:131
Create the set of classes typically needed to solve a control problem.
Definition: SimpleSetup.h:63
std::size_t getStateCount() const
Get the number of states (way-points) that make up this path.
Definition: PathGeometric.h:249
STL namespace.
base::State * getState(unsigned int index)
Get the state located at index along the path.
Definition: PathGeometric.h:237
virtual void setup()
This method will create the necessary classes for planning. The solve() method will call this functio...
Definition: SimpleSetup.cpp:59
A shared pointer wrapper for ompl::control::ControlSpace.
duration seconds(double sec)
Return the time duration representing a given number of seconds.
Definition: Time.h:76
State space representing OpenDE states.
Definition: OpenDEStateSpace.h:50
void playPath(const base::PathPtr &path, double timeFactor=1.0) const
Set the OpenDE world to the states that are contained in a given path, sequentially. Using timeFactor, the speed at which this sequence is iterated through is altered.
Definition: OpenDESimpleSetup.cpp:106
std::chrono::system_clock::duration duration
Representation of a time duration.
Definition: Time.h:67
The definition of a control in Rn
Definition: RealVectorControlSpace.h:65
OpenDESimpleSetup(const ControlSpacePtr &space)
Constructor needs the control space needed for planning.
Definition: OpenDESimpleSetup.cpp:41
void setCurrentState(const base::ScopedState<> &state)
Set the current OpenDE state (set parameters for OpenDE bodies)
Definition: OpenDESimpleSetup.cpp:80
Representation of controls applied in OpenDE environments. This is an array of double values...
Definition: OpenDEControlSpace.h:49
void playSolutionPath(double timeFactor=1.0) const
Call playPath() on the solution path, if one is available.
Definition: OpenDESimpleSetup.cpp:100
A shared pointer wrapper for ompl::base::Path.
A shared pointer wrapper for ompl::control::OpenDEEnvironment.
double * values
An array of length n, representing the value of the control.
Definition: RealVectorControlSpace.h:83