Class SpaceTimeStateSpace
Defined in File SpaceTimeStateSpace.h
Inheritance Relationships
Base Type
public ompl::base::CompoundStateSpace
(Class CompoundStateSpace)
Class Documentation
-
class SpaceTimeStateSpace : public ompl::base::CompoundStateSpace
A state space consisting of a space and a time component.
Public Functions
-
explicit SpaceTimeStateSpace(const StateSpacePtr &spaceComponent, double vMax = 1.0, double timeWeight = 0.5)
Constructor. The maximum velocity and the weight of the time component for distance calculation need to be specified.
-
virtual double distance(const ompl::base::State *state1, const ompl::base::State *state2) const override
The distance from state1 to state2. May be infinite.
The distance is direction independent for compatibility to some planners (like RRTConnect). Make sure that the motion validator does not allow motions backwards in time or adjust the distance function in the Space Time State Space and the used planner.
-
double timeToCoverDistance(const ompl::base::State *state1, const ompl::base::State *state2) const
The time to get from state1 to state2 with respect to vMax.
-
double distanceSpace(const ompl::base::State *state1, const ompl::base::State *state2) const
The distance of just the space component.
-
double distanceTime(const ompl::base::State *state1, const ompl::base::State *state2) const
The distance of just the time component.
-
void setTimeBounds(double lb, double ub)
Set lower and upper time bounds for the time component.
-
double getVMax() const
Maximum velocity getter.
-
void setVMax(double vMax)
Maximum velocity setter.
-
StateSpacePtr getSpaceComponent()
The space component as a StateSpacePtr.
-
TimeStateSpace *getTimeComponent()
The time component as a TimeStateSpace pointer.
-
virtual bool isMetricSpace() const override
No metric state space, as the triangle inequality is not satisfied.
-
virtual double getMaximumExtent() const override
Maximum extent is infinite, as the distance can be infinite even with bounded time.
-
void updateEpsilon()
Scale epsilon appropriately after time or space bounds were set.
Public Static Functions
-
explicit SpaceTimeStateSpace(const StateSpacePtr &spaceComponent, double vMax = 1.0, double timeWeight = 0.5)