HillClimbing.cpp
52 bool ompl::geometric::HillClimbing::tryToImprove(const base::GoalRegion &goal, base::State *state, double nearDistance, double *betterGoalDistance) const
69 for (unsigned int i = 0 ; noUpdateSteps < magic::MAX_CLIMB_NO_UPDATE_STEPS && i < maxImproveSteps_ ; ++i)
111 return (bestDist < initialDistance) || (!wasSatisfiedStart && wasSatisfied) || (!wasValidStart && wasValid);
virtual bool isSatisfied(const State *st) const
Equivalent to calling isSatisfied(const State *, double *) with a NULL second argument.
Definition: GoalRegion.cpp:46
A boost shared pointer wrapper for ompl::base::StateSampler.
static const unsigned int MAX_CLIMB_NO_UPDATE_STEPS
Maximum number of consecutive failures to allow before giving up on improving a state. A failure consists of being unable to sample a state that is closer to the specified goal region.
Definition: HillClimbing.cpp:48
bool tryToImprove(const base::GoalRegion &goal, base::State *state, double nearDistance, double *betterGoalDistance=NULL) const
Try to improve a state (reduce distance to goal). The updates are performed by sampling near the stat...
Definition: HillClimbing.cpp:52