CompletionCriteria.h
Go to the documentation of this file.
1
/*
2
* Copyright 2015-2019 CNRS-UM LIRMM, CNRS-AIST JRL
3
*/
4
5
#pragma once
6
7
#include <
mc_control/api.h
>
8
#include <
mc_tasks/MetaTask.h
>
9
10
namespace
mc_control
11
{
12
53
struct
MC_CONTROL_DLLAPI
CompletionCriteria
54
{
56
bool
completed(
const
mc_tasks::MetaTask
& task);
57
59
void
configure(
const
mc_tasks::MetaTask
& task,
double
dt,
const
mc_rtc::Configuration
& config);
60
62
const
std::string & output()
const
;
63
64
private
:
66
std::function<bool(
const
mc_tasks::MetaTask
&, std::string &)> build(
const
mc_tasks::MetaTask
& task,
67
double
dt,
68
const
mc_rtc::Configuration
& config);
70
std::function<bool(
const
mc_tasks::MetaTask
&, std::string &)> fn_ = [](
const
mc_tasks::MetaTask
&, std::string &)
71
{
return
true
; };
73
std::string output_;
74
};
75
76
}
// namespace mc_control
mc_rtc::Configuration
Simplify access to values hold within a JSON file.
Definition:
Configuration.h:165
mc_tasks::MetaTask
Represents a generic task.
Definition:
MetaTask.h:39
MC_CONTROL_DLLAPI
#define MC_CONTROL_DLLAPI
Definition:
api.h:50
api.h
mc_control
Definition:
CompletionCriteria.h:10
MetaTask.h
mc_control::CompletionCriteria
Definition:
CompletionCriteria.h:53
include
mc_control
CompletionCriteria.h
Generated by
1.8.17