monitor_emqx.h 1.3 KB

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