monitor_emqx.h 1.1 KB

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