monitor_emqx.h 780 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // Created by zx on 23-3-14.
  3. //
  4. #ifndef NAVIGATION_MPC_MONITOR_MONITOR_EMQX_H_
  5. #define NAVIGATION_MPC_MONITOR_MONITOR_EMQX_H_
  6. #include <mutex>
  7. #include "terminator_emqx.h"
  8. #include "../custom_type.h"
  9. class Monitor_emqx : public Terminator_emqx
  10. {
  11. public:
  12. Monitor_emqx(std::string nodeId);
  13. ~Monitor_emqx();
  14. void set_speedcmd_topic(std::string speedcmd);
  15. void set_speed(int mode,ActionType type,double v,double a);
  16. void set_speed(int mode,ActionType type,double v,double a,double L);
  17. void clamp_close(int mode);
  18. void clamp_open(int mode);
  19. void lifter_rise(int mode);
  20. void lifter_down(int mode);
  21. void stop();
  22. protected:
  23. std::string speedcmd_topic_;
  24. public:
  25. int heat_=0;
  26. };
  27. #endif //NAVIGATION_MPC_MONITOR_MONITOR_EMQX_H_