monitor_emqx.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 set_ToAgvCmd(int mode,ActionType type,double v[],double w[],double L=0,int P=0,double D=0);
  18. // void set_ToAgvCmd(int mode,ActionType type,double v[],double w[],double yaw_diff[], double L=0,int P=0,double D=0);
  19. void clamp_close(int mode);
  20. void clamp_open(int mode);
  21. void clamp_fully_open(int mode);
  22. void lifter_rise(int mode);
  23. void lifter_down(int mode);
  24. void stop();
  25. protected:
  26. std::string speedcmd_topic_;
  27. public:
  28. int heat_=0;
  29. };
  30. #endif //NAVIGATION_MPC_MONITOR_MONITOR_EMQX_H_