GoalStates.cpp
74 out << states_.size() << " goal states, threshold = " << threshold_ << ", memory address = " << this << std::endl;
virtual void print(std::ostream &out=std::cout) const
Print information about the goal data structure to a stream.
Definition: GoalStates.cpp:72
virtual const State * getState(unsigned int index) const
Return a pointer to the indexth state in the state list.
Definition: GoalStates.cpp:105
virtual unsigned int maxSampleCount() const
Return the maximum number of samples that can be asked for before repeating.
Definition: GoalStates.cpp:90
std::vector< State * > states_
The goal states. Only ones that are valid are considered by the motion planner.
Definition: GoalStates.h:91
virtual void sampleGoal(State *st) const
Sample a state in the goal region.
Definition: GoalStates.cpp:82
virtual double distanceGoal(const State *st) const
Compute the distance to the goal (heuristic). This function is the one used in computing the distance...
Definition: GoalStates.cpp:60
virtual bool hasStates() const
Check if there are any states in this goal region.
Definition: GoalStates.cpp:118
virtual std::size_t getStateCount() const
Return the number of valid goal states.
Definition: GoalStates.cpp:113
double threshold_
The maximum distance that is allowed to the goal. By default, this is initialized to the minimum epsi...
Definition: GoalRegion.h:98