12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // Created by zx on 23-3-14.
- //
- #ifndef NAVIGATION_MPC_MONITOR_MONITOR_EMQX_H_
- #define NAVIGATION_MPC_MONITOR_MONITOR_EMQX_H_
- #include <mutex>
- #include "terminator_emqx.h"
- class Monitor_emqx : public Terminator_emqx
- {
- public:
- enum MoveMode{
- eSingle=1,
- eMain
- };
- enum SpeedType{
- eStop=0,
- eRotate=1,
- eHorizontal=2,
- eMPC=3,
- };
- public:
- Monitor_emqx(std::string nodeId);
- ~Monitor_emqx();
- void set_speedcmd_topic(std::string speedcmd);
- void set_speed(MoveMode mode,SpeedType type,double v,double a);
- void set_speed(MoveMode mode,SpeedType type,double v,double a,double L);
- void stop();
- protected:
- std::string speedcmd_topic_;
- public:
- int heat_=0;
- };
- #endif //NAVIGATION_MPC_MONITOR_MONITOR_EMQX_H_
|