EEROS  1.0.0.0
API for the EEROS Real-Time Robotics Framework
Step.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_SEQUENCER_STEP_HPP_
2 #define ORG_EEROS_SEQUENCER_STEP_HPP_
3 
5 
6 namespace eeros {
7  namespace sequencer {
8 
9  class Step : public BaseSequence {
10  public:
11  Step(std::string name, Sequencer& seq, BaseSequence* caller) : BaseSequence(seq, caller, true) {this->name = name;}
12  virtual ~Step() { };
13 
14  virtual int operator() () {return start();} // this operator can be overloaded in the derived sequence
15  virtual int action() = 0; // this function has to be implemented in the derived sequence
16  int start() {
17  resetTimeout();
18  resetAbort();
19 // if (!exceptionIsActive) log.info() << "step '" << name << "' started";
21  return 0;
22  }
23  };
24  }; //namespace sequencer
25 }; // namespace eeros
26 
27 #endif // ORG_EEROS_SEQUENCER_STEP_HPP_
virtual ~Step()
Definition: Step.hpp:12
virtual int action()=0
void resetTimeout()
Definition: BaseSequence.cpp:194
Sequencer & seq
Definition: BaseSequence.hpp:68
Definition: Config.hpp:14
void resetAbort()
Definition: BaseSequence.cpp:206
BaseSequence * caller
Definition: BaseSequence.hpp:69
int start()
Definition: Step.hpp:16
Step(std::string name, Sequencer &seq, BaseSequence *caller)
Definition: Step.hpp:11
Definition: Sequencer.hpp:15
std::string name
Definition: BaseSequence.hpp:67
Definition: Step.hpp:9
virtual int action()
Definition: BaseSequence.cpp:23
Definition: BaseSequence.hpp:27
virtual int operator()()
Definition: Step.hpp:14