monitor_emqx.h 1.2 KB

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