Projektarbeit Line Following Robot bei Prof. Chowanetz im WS22/23
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lfr_states.h 983B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #include "lfr_state_interface.h"
  3. #include "lfr_state_machine.h"
  4. namespace State
  5. {
  6. class Idle: public LFR_IState
  7. {
  8. Idle() {}
  9. Idle(const Idle& other) {};
  10. Idle& operator= (const Idle& other);
  11. public:
  12. void enter(LFR_StateMachine*);
  13. void exit(LFR_StateMachine*);
  14. static LFR_IState& getInstance();
  15. };
  16. class Autonomous: public LFR_IState
  17. {
  18. Autonomous() {}
  19. Autonomous(const Autonomous& other) {};
  20. Autonomous& operator= (const Autonomous& other);
  21. public:
  22. void enter(LFR_StateMachine*);
  23. void exit(LFR_StateMachine*);
  24. static LFR_IState& getInstance();
  25. };
  26. class Manual: public LFR_IState
  27. {
  28. Manual() {}
  29. Manual(const Manual& other) {};
  30. Manual& operator= (const Manual& other);
  31. public:
  32. void enter(LFR_StateMachine*);
  33. void exit(LFR_StateMachine*);
  34. static LFR_IState& getInstance();
  35. };
  36. }