Class IterationTerminationCondition

Class Documentation

class IterationTerminationCondition

A class to run a planner for a specific number of iterations. Casts to a PTC for use with Planner::solve.

Public Functions

IterationTerminationCondition(unsigned int numIterations)

Construct a termination condition that can be evaluated numIterations times before returning true.

bool eval()

Increment the number of times eval has been called and check if the planner should now terminate.

void reset()

Reset the number of times the IterationTeriminationCondition has been called.

operator PlannerTerminationCondition()

Cast to a PlannerTerminationCondition.

inline unsigned int getTimesCalled() const