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
#define MC_CONTROL_FSM_STATE_DLLAPI
Definition: api.h:50
Definition: CompletionCriteria.h:11
Definition: Controller.h:50
Definition: Pause.h:24
void teardown(Controller &) override
Definition: Pause.h:31
bool run(Controller &) override
void start(Controller &) override
unsigned int goal_
Definition: Pause.h:36
unsigned int tick_
Definition: Pause.h:35
void configure(const mc_rtc::Configuration &config) override
Definition: State.h:59
Simplify access to values hold within a JSON file.
Definition: Configuration.h:166