Class GoalStates
Defined in File GoalStates.h
Inheritance Relationships
Base Type
public ompl::base::GoalSampleableRegion
(Class GoalSampleableRegion)
Derived Type
public ompl::base::GoalLazySamples
(Class GoalLazySamples)
Class Documentation
-
class GoalStates : public ompl::base::GoalSampleableRegion
Definition of a set of goal states.
Subclassed by ompl::base::GoalLazySamples
Public Functions
-
inline GoalStates(const SpaceInformationPtr &si)
Create a goal representation that is in fact a set of states
-
~GoalStates() override
-
virtual unsigned int maxSampleCount() const override
Return the maximum number of samples that can be asked for before repeating.
-
virtual double distanceGoal(const State *st) const override
Compute the distance to the goal (heuristic). This function is the one used in computing the distance to the goal in a call to isSatisfied()
-
virtual void print(std::ostream &out = std::cout) const override
Print information about the goal data structure to a stream.
-
void addState(const ScopedState<> &st)
Add a goal state (calls the previous definition of addState())
-
virtual void clear()
Clear all goal states.
-
virtual bool hasStates() const
Check if there are any states in this goal region.
-
virtual const State *getState(unsigned int index) const
Return a pointer to the indexth state in the state list.
-
virtual std::size_t getStateCount() const
Return the number of valid goal states.
-
inline GoalStates(const SpaceInformationPtr &si)