Pause.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/fsm/State.h>
8 
9 namespace mc_control
10 {
11 
12 namespace fsm
13 {
14 
24 {
25  void configure(const mc_rtc::Configuration & config) override;
26 
27  void start(Controller &) override;
28 
29  bool run(Controller &) override;
30 
31  void teardown(Controller &) override {}
32 
33 protected:
34  double duration_ = 0.0;
35  unsigned int tick_;
36  unsigned int goal_;
37 };
38 
39 } // namespace fsm
40 
41 } // namespace mc_control
mc_rtc::Configuration
Simplify access to values hold within a JSON file.
Definition: Configuration.h:165
mc_control::fsm::PauseState
Definition: Pause.h:23
mc_control::fsm::PauseState::goal_
unsigned int goal_
Definition: Pause.h:36
mc_control::fsm::State
Definition: State.h:58
mc_control::fsm::PauseState::teardown
void teardown(Controller &) override
Definition: Pause.h:31
mc_control::fsm::PauseState::tick_
unsigned int tick_
Definition: Pause.h:35
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::fsm::Controller
Definition: Controller.h:49