SpaceTimeStateSpace.h
55 explicit SpaceTimeStateSpace(const StateSpacePtr& spaceComponent, double vMax = 1.0, double timeWeight = 0.5);
63 double distance(const ompl::base::State *state1, const ompl::base::State *state2) const override;
66 double timeToCoverDistance(const ompl::base::State *state1, const ompl::base::State *state2) const;
double getMaximumExtent() const override
Maximum extent is infinite, as the distance can be infinite even with bounded time.
Definition: SpaceTimeStateSpace.cpp:123
void updateEpsilon()
Scale epsilon appropriately after time or space bounds were set.
Definition: SpaceTimeStateSpace.cpp:128
double distance(const ompl::base::State *state1, const ompl::base::State *state2) const override
The distance from state1 to state2. May be infinite.
Definition: SpaceTimeStateSpace.cpp:51
void setTimeBounds(double lb, double ub)
Set lower and upper time bounds for the time component.
Definition: SpaceTimeStateSpace.cpp:86
TimeStateSpace * getTimeComponent()
The time component as a TimeStateSpace pointer.
Definition: SpaceTimeStateSpace.cpp:113
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.
Definition: SpaceTimeStateSpace.cpp:101
static double getStateTime(const ompl::base::State *state)
The time value of the given state.
Definition: SpaceTimeStateSpace.cpp:135
bool isMetricSpace() const override
No metric state space, as the triangle inequality is not satisfied.
Definition: SpaceTimeStateSpace.cpp:118
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 ...
Definition: SpaceTimeStateSpace.cpp:39
A shared pointer wrapper for ompl::base::StateSpace.
double distanceTime(const ompl::base::State *state1, const ompl::base::State *state2) const
The distance of just the time component.
Definition: SpaceTimeStateSpace.cpp:77
StateSpacePtr getSpaceComponent()
The space component as a StateSpacePtr.
Definition: SpaceTimeStateSpace.cpp:108
double distanceSpace(const ompl::base::State *state1, const ompl::base::State *state2) const
The distance of just the space component.
Definition: SpaceTimeStateSpace.cpp:65
Main namespace. Contains everything in this library.
Definition: MultiLevelPlanarManipulatorDemo.cpp:65