#include <mc_control/CompletionCriteria.h>
Public Member Functions | |
bool | completed (const mc_tasks::MetaTask &task) |
void | configure (const mc_tasks::MetaTask &task, double dt, const mc_rtc::Configuration &config) |
const std::string & | output () const |
A generic MetaTask completion criteria
Possible criteria:
The default criteria is always satisfied (i.e. no criteria)
These criteria can be combined with AND and OR
Example:
bool mc_control::CompletionCriteria::completed | ( | const mc_tasks::MetaTask & | task | ) |
Given a task returns true if that task fits the completion criteria
void mc_control::CompletionCriteria::configure | ( | const mc_tasks::MetaTask & | task, |
double | dt, | ||
const mc_rtc::Configuration & | config | ||
) |
Given a MetaTask and a Configuration, generate the criteria
const std::string& mc_control::CompletionCriteria::output | ( | ) | const |
Returns the criteria that achieved the completion