All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
ompl::base::PlannerAndTerminationCondition Class Reference

Combine two termination conditions into one. Both termination conditions need to return true for this one to return true. More...

#include <PlannerTerminationCondition.h>

Inheritance diagram for ompl::base::PlannerAndTerminationCondition:

Public Member Functions

 PlannerAndTerminationCondition (const PlannerTerminationCondition &c1, const PlannerTerminationCondition &c2)
- Public Member Functions inherited from ompl::base::PlannerTerminationCondition
 PlannerTerminationCondition (const PlannerTerminationConditionFn &fn=PlannerTerminationConditionFn())
 Construct a termination condition. By default, eval() will call the externally specified function fn to decide whether the planner should terminate. The function fn does not always need to be specified, if a different implementation of eval() is provided by a derived class.
bool operator() (void) const
 Return true if the planner should stop its computation.
void terminate (void) const
 Notify that the condition for termination should become true, regardless of what eval() returns. This function may be called while the condition is being evaluated by other threads.
virtual bool eval (void) const
 The implementation of some termination condition. By default, this just calls fn_()

Additional Inherited Members

- Protected Attributes inherited from ompl::base::PlannerTerminationCondition
PlannerTerminationConditionFn fn_
 Function pointer to the piece of code that decides whether a termination condition has been met.
bool terminate_
 Flag indicating whether the user has externally requested that the condition for termination should become true.

Detailed Description

Combine two termination conditions into one. Both termination conditions need to return true for this one to return true.

Definition at line 172 of file PlannerTerminationCondition.h.


The documentation for this class was generated from the following files: