User Tools

Site Tools


eeros_architecture:sequencer:step_or_sequence

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
eeros_architecture:sequencer:step_or_sequence [2019/03/14 09:25] – created grafeeros_architecture:sequencer:step_or_sequence [2020/05/22 11:09] – [Alternative Solution] ursgraf
Line 9: Line 9:
   int action() {   int action() {
     cs.pathPlanner.move(readyPos);  // we assume that the control system comprises of a path planner     cs.pathPlanner.move(readyPos);  // we assume that the control system comprises of a path planner
 +    return 0;
   }   }
   
Line 25: Line 26:
 <code cpp> <code cpp>
 class Move : public Step { class Move : public Step {
-  Move(std::string name, Sequencer& seq, BaseSequence* caller) : Step(name, seq, caller) { }+  Move(std::string name, Sequence* caller) : Step(name, caller) { }
      
   int action() {   int action() {
     cs.pathPlanner.move(readyPos);  // we assume that the control system comprises of a path planner     cs.pathPlanner.move(readyPos);  // we assume that the control system comprises of a path planner
 +    return 0;
   }   }
   
Line 38: Line 40:
 class Readying : public Sequence { class Readying : public Sequence {
 public: public:
-  Readying(std::string name, Sequencer& seq) : Sequence(name, seq), move("move", seq, this) {setNonBlocking();}+  Readying(std::string name, Sequencer& seq) : Sequence(name, seq), move("move", this) {setNonBlocking();}
  
   int action() {   int action() {
eeros_architecture/sequencer/step_or_sequence.txt · Last modified: 2020/05/22 11:10 by ursgraf