A class to store the exit status of Planner::solve() More...
#include <PlannerStatus.h>
Public Types | |
enum | StatusType { UNKNOWN = 0, INVALID_START, INVALID_GOAL, UNRECOGNIZED_GOAL_TYPE, TIMEOUT, APPROXIMATE_SOLUTION, EXACT_SOLUTION, CRASH, TYPE_COUNT } |
The possible values of the status returned by a planner. More... |
Public Member Functions | |
PlannerStatus (StatusType status=UNKNOWN) | |
Default constructor. | |
PlannerStatus (bool hasSolution, bool isApproximate) | |
Convenience constructor that sets status_ based on whether some solution was found (hasSolution) and whether that solution was approximate or not (isApproximate) | |
std::string | asString () const |
Return a string representation. | |
operator bool () const | |
Allow casting to true. The value is true iff an approximate or exact solution was found. | |
operator StatusType () const | |
Allow casting to the enum type StatusType. |
A class to store the exit status of Planner::solve()
Definition at line 48 of file PlannerStatus.h.
The possible values of the status returned by a planner.
Definition at line 51 of file PlannerStatus.h.