37 #include "ompl/base/goals/GoalState.h"
38 #include "ompl/base/SpaceInformation.h"
40 ompl::base::GoalState::~GoalState(
void)
48 return si_->distance(st, state_);
53 out <<
"Goal state, threshold = " << threshold_ <<
", memory address = " <<
this <<
", state = " << std::endl;
54 si_->printState(state_, out);
59 si_->copyState(st, state_);
70 si_->freeState(state_);
71 state_ = si_->cloneState(st);
Definition of a scoped state.
virtual unsigned int maxSampleCount(void) const
Return the maximum number of samples that can be asked for before repeating.
virtual void sampleGoal(State *st) const
Sample a state in the goal region.
void setState(const State *st)
Set the goal state.
StateType * get(void)
Returns a pointer to the contained state.
State * state_
The goal state.
virtual double distanceGoal(const State *st) const
Compute the distance to the goal (heuristic)
Definition of an abstract state.
SpaceInformationPtr si_
The space information for this goal.
const State * getState(void) const
Get the goal state.
virtual void print(std::ostream &out=std::cout) const
Print information about the goal data structure to a stream.