Loading...
Searching...
No Matches
HybridSystemPlanning.cpp
50void propagate(const oc::SpaceInformation *si, const ob::State *state, const oc::Control *control,
145 setup.setStateValidityChecker([si](const ob::State *state) { return isStateValid(si, state); });
146 setup.setStatePropagator([si](const ob::State *state, const oc::Control *control, const double duration,
164 const auto *velocity = state->as<ob::CompoundState>()->as<ob::RealVectorStateSpace::StateType>(1);
166 std::cout << se2->getX() << ' ' << se2->getY() << ' ' << se2->getYaw() << ' ' << velocity->values[0] << ' '
174 const double *u = path.getControl(i - 1)->as<oc::RealVectorControlSpace::ControlType>()->values;
ompl::base::CompoundState StateType
Define the type of state allocated by this state space.
Definition StateSpace.h:577
const T * as(unsigned int index) const
Cast a component of this instance to a desired type.
Definition State.h:95
The definition of a discrete state.
Definition DiscreteStateSpace.h:72
The lower and upper bounds for an Rn space.
Definition RealVectorBounds.h:48
The definition of a state in Rn.
Definition RealVectorStateSpace.h:78
void setStateValidityChecker(const StateValidityCheckerPtr &svc)
Set the instance of the state validity checker to use. Parallel implementations of planners assume th...
Definition SpaceInformation.h:146
The definition of a control in Rn.
Definition RealVectorControlSpace.h:66
A control space representing Rn.
Definition RealVectorControlSpace.h:62
Create the set of classes typically needed to solve a control problem.
Definition SimpleSetup.h:63
Space information containing necessary information for planning with controls. setup() needs to be ca...
Definition SpaceInformation.h:71
This namespace contains sampling based planning routines shared by both planning under geometric cons...
Definition ConstrainedSpaceInformation.h:55
This namespace contains sampling based planning routines used by planning under differential constrai...
Definition Control.h:45