navigation_main.h 924 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Created by zx on 23-5-8.
  3. //
  4. #ifndef NAVIGATION_NAVIGATION_MAIN_H
  5. #define NAVIGATION_NAVIGATION_MAIN_H
  6. #include "navigation.h"
  7. class NavigationMain:public Navigation {
  8. public:
  9. NavigationMain();
  10. ~NavigationMain();
  11. virtual void ResetPose(const Pose2d& pose);
  12. virtual bool Start(const NavMessage::NavCmd& cmd);
  13. virtual void publish_statu(NavMessage::NavStatu& statu);
  14. virtual void SwitchMode(Monitor_emqx::MoveMode mode,float wheelBase){
  15. move_mode_=mode;
  16. if(move_mode_==Monitor_emqx::eMain)
  17. {
  18. wheelBase_=wheelBase;
  19. }
  20. }
  21. protected:
  22. virtual void SendMoveCmd(Monitor_emqx::MoveMode mode,Monitor_emqx::SpeedType type,
  23. double v,double angular);
  24. virtual void HandleNavCmd(const NavMessage::NavCmd& cmd);
  25. protected:
  26. float wheelBase_; //两节agv的位姿与单节的位姿变换
  27. };
  28. #endif //NAVIGATION_NAVIGATION_MAIN_H