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
Representation of controls applied in OpenDE environments. This is an array of double values.
Definition: OpenDEControlSpace.h:113
A shared pointer wrapper for ompl::base::Path.
void setup() override
This method will create the necessary classes for planning. The solve() method will call this functio...
Definition: OpenDESimpleSetup.cpp:85
void setCurrentState(const base::ScopedState<> &state)
Set the current OpenDE state (set parameters for OpenDE bodies)
Definition: OpenDESimpleSetup.cpp:80
base::ScopedState< OpenDEStateSpace > getCurrentState() const
Get the current OpenDE state (read parameters from OpenDE bodies)
Definition: OpenDESimpleSetup.cpp:68
A shared pointer wrapper for ompl::control::ControlSpace.
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
A shared pointer wrapper for ompl::control::OpenDEEnvironment.
OpenDESimpleSetup(const ControlSpacePtr &space)
Constructor needs the control space needed for planning.
Definition: OpenDESimpleSetup.cpp:41
void playSolutionPath(double timeFactor=1.0) const
Call playPath() on the solution path, if one is available.
Definition: OpenDESimpleSetup.cpp:100
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
virtual void setup()
This method will create the necessary classes for planning. The solve() method will call this functio...
Definition: SimpleSetup.cpp:54
Create the set of classes typically needed to solve a control problem.
Definition: SimpleSetup.h:126
std::size_t getStateCount() const
Get the number of states (way-points) that make up this path.
Definition: PathGeometric.h:292
std::chrono::system_clock::duration duration
Representation of a time duration.
Definition: Time.h:119
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....
Definition: OpenDESimpleSetup.cpp:106
State space representing OpenDE states.
Definition: OpenDEStateSpace.h:114
The definition of a control in Rn
Definition: RealVectorControlSpace.h:129
double * values
An array of length n, representing the value of the control.
Definition: RealVectorControlSpace.h:147
duration seconds(double sec)
Return the time duration representing a given number of seconds.
Definition: Time.h:128
base::State * getState(unsigned int index)
Get the state located at index along the path.
Definition: PathGeometric.h:280