planOpenDE.cpp
134 std::cout << "Reached: " << last->getBodyPosition(0)[0] << " " << last->getBodyPosition(0)[1] << std::endl;
141 const double *pos = pd.getVertex(i).getState()->as<oc::OpenDEStateSpace::StateType>()->getBodyPosition(0);
void setup() override
This method will create the necessary classes for planning. The solve() method will call this functio...
Definition: OpenDESimpleSetup.cpp:85
void setVolumeBounds(const base::RealVectorBounds &bounds)
Set the bounds for the planning volume.
Definition: OpenDESimpleSetup.h:180
const SpaceInformationPtr & getSpaceInformation() const
Get the current instance of the space information.
Definition: SimpleSetup.h:138
Create the set of classes typically needed to solve a control problem when forward propagation is com...
Definition: OpenDESimpleSetup.h:115
Object containing planner generated vertex and edge data. It is assumed that all vertices are unique,...
Definition: PlannerData.h:238
void getPlannerData(base::PlannerData &pd) const
Get information about the exploration data structure the motion planner used.
Definition: SimpleSetup.cpp:133
void playSolutionPath(double timeFactor=1.0) const
Call playPath() on the solution path, if one is available.
Definition: OpenDESimpleSetup.cpp:100
std::vector< base::State * > & getStates()
Get the states that make up the path (as a reference, so it can be modified, hence the function is no...
Definition: PathControl.h:168
virtual base::PlannerStatus solve(double time=1.0)
Run the planner for a specified amount of time (default is 1 second)
Definition: SimpleSetup.cpp:88
std::chrono::system_clock::duration duration
Representation of a time duration.
Definition: Time.h:119
ompl::base::CompoundState StateType
Define the type of state allocated by this state space.
Definition: StateSpace.h:641
PathControl & getSolutionPath() const
Get the solution path. Throw an exception if no solution is available.
Definition: SimpleSetup.cpp:116
void setGoal(const base::GoalPtr &goal)
Set the goal for planning. This call is not needed if setStartAndGoalStates() has been called.
Definition: SimpleSetup.h:280
duration seconds(double sec)
Return the time duration representing a given number of seconds.
Definition: Time.h:128
virtual void print(std::ostream &out=std::cout) const
Print information about the current setup.
Definition: SimpleSetup.cpp:140
The lower and upper bounds for an Rn space.
Definition: RealVectorBounds.h:111