Loading...
Searching...
No Matches
BouncingBallPlanning.cpp
68 motion->state->as<ompl::base::CompoundState>()->as<ompl::base::RealVectorStateSpace::StateType>(0);
123 ->values[1] = velocity - u->as<ompl::control::RealVectorControlSpace::ControlType>()->values[0];
148 pow(st->as<ompl::base::CompoundState>()->as<ompl::base::RealVectorStateSpace::StateType>(0)->values[i] -
202 jumpControlSpace); // Doesn't do anything because the bounds for jump input are just [0, 0], but here for
211 ompl::control::CompoundControlSpace *controlSpace = new ompl::control::CompoundControlSpace(hybridSpacePtr);
218 ompl::control::SpaceInformationPtr si(new ompl::control::SpaceInformation(hybridSpacePtr, controlSpacePtr));
225 // Set start state to be 1 unit above the floor with zero velocity and gravitaional acceleration of 9.81
264 ompl::base::PlannerStatus solved = cHyRRT.solve(ompl::base::timedPlannerTerminationCondition(2));
A state space consisting of a space and a time component.
Definition HybridStateSpace.h:51
Definition of a problem to be solved. This includes the start state(s) for the system and a goal spec...
Definition ProblemDefinition.h:152
The lower and upper bounds for an Rn space.
Definition RealVectorBounds.h:48
The definition of a state in Rn.
Definition RealVectorStateSpace.h:78
A state space representing Rn. The distance function is the L2 norm.
Definition RealVectorStateSpace.h:74
void addDimension(double minBound=0.0, double maxBound=0.0)
Increase the dimensionality of the state space by 1. Optionally, bounds can be specified for this add...
Definition RealVectorStateSpace.cpp:112
ompl::base::State StateType
Define the type of state allocated by this space.
Definition StateSpace.h:78
A control space to allow the composition of control spaces.
Definition ControlSpace.h:202
virtual void addSubspace(const ControlSpacePtr &component)
Adds a control space as a component of the compound control space.
Definition ControlSpace.cpp:143
A control space representing the space of applicable controls.
Definition ControlSpace.h:64
void setControlSamplerAllocator(const ControlSamplerAllocator &csa)
Set the sampler allocator to use.
Definition ControlSpace.cpp:93
Basic solver for ordinary differential equations of the type q' = f(q, u), where q is the current sta...
Definition ODESolver.h:200
static StatePropagatorPtr getStatePropagator(ODESolverPtr solver, const PostPropagationEvent &postEvent=nullptr)
Retrieve a StatePropagator object that solves a system of ordinary differential equations defined by ...
Definition ODESolver.h:127
The definition of a control in Rn.
Definition RealVectorControlSpace.h:66
A control space representing Rn.
Definition RealVectorControlSpace.h:62
void setBounds(const base::RealVectorBounds &bounds)
Set the bounds (min max values for each dimension) for the control.
Definition RealVectorControlSpace.cpp:58
Uniform sampler for the Rn state space.
Definition RealVectorControlSpace.h:50
Space information containing necessary information for planning with controls. setup() needs to be ca...
Definition SpaceInformation.h:71
PlannerTerminationCondition timedPlannerTerminationCondition(double duration)
Return a termination condition that will become true duration seconds in the future (wall-time).
Definition PlannerTerminationCondition.cpp:201
duration seconds(double sec)
Return the time duration representing a given number of seconds.
Definition Time.h:64
A class to store the exit status of Planner::solve().
Definition PlannerStatus.h:49