Posture.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/CompletionCriteria.h
>
8
#include <
mc_control/fsm/State.h
>
9
#include <
mc_tasks/PostureTask.h
>
10
11
namespace
mc_control
12
{
13
14
namespace
fsm
15
{
16
18
struct
MC_CONTROL_FSM_STATE_DLLAPI
PostureState
:
State
19
{
20
void
configure(
const
mc_rtc::Configuration
& config)
override
;
21
22
void
start(
Controller
&)
override
;
23
24
bool
run(
Controller
&)
override
;
25
26
void
teardown(
Controller
&)
override
;
27
28
protected
:
29
mc_rtc::Configuration
config_
;
30
std::string robot_ =
""
;
31
mc_control::CompletionCriteria
crit_
;
32
bool
hasCompletion_ =
false
;
33
mc_rtc::Configuration
completion_
;
34
};
35
36
}
// namespace fsm
37
38
}
// namespace mc_control
mc_rtc::Configuration
Simplify access to values hold within a JSON file.
Definition:
Configuration.h:165
mc_control::fsm::PostureState
Definition:
Posture.h:18
PostureTask.h
CompletionCriteria.h
mc_control::fsm::PostureState::completion_
mc_rtc::Configuration completion_
Definition:
Posture.h:33
mc_control::fsm::State
Definition:
State.h:58
mc_control::fsm::PostureState::config_
mc_rtc::Configuration config_
Definition:
Posture.h:29
mc_control::fsm::PostureState::crit_
mc_control::CompletionCriteria crit_
Definition:
Posture.h:31
mc_control
Definition:
CompletionCriteria.h:10
State.h
MC_CONTROL_FSM_STATE_DLLAPI
#define MC_CONTROL_FSM_STATE_DLLAPI
Definition:
api.h:50
mc_control::CompletionCriteria
Definition:
CompletionCriteria.h:53
mc_control::fsm::Controller
Definition:
Controller.h:49
include
mc_control
fsm
states
Posture.h
Generated by
1.8.17