message.proto 985 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. syntax = "proto3";
  2. package NavMessage;
  3. message AGVStatu {
  4. float x=1;
  5. float y=2;
  6. float theta=3;
  7. float v=4;
  8. float vth=5;
  9. }
  10. message Speed {
  11. int32 type=1; // 0原地旋转,1横移,2前进,3MPC巡线, 其他:停止
  12. float v=2;
  13. float vth=3;
  14. }
  15. message Pose2d
  16. {
  17. float x=1;
  18. float y=2;
  19. float theta=3;
  20. }
  21. message Trajectory
  22. {
  23. repeated Pose2d poses=1;
  24. }
  25. message Action
  26. {
  27. int32 type=1; // 1:原地调整,2:巡线
  28. Pose2d target=2;
  29. Pose2d target_diff=3;
  30. }
  31. message NavCmd
  32. {
  33. int32 action=1; // 0 开始导航,1 pause, 2 continue ,3 cancel
  34. string key=2;
  35. repeated Action actions=3;
  36. }
  37. message NavStatu
  38. {
  39. bool statu=1; //0:ready 1:running
  40. string key=2; // 任务唯一码
  41. repeated Action unfinished_actions=3; //未完成的动作,第一个即为当前动作
  42. AGVStatu current_pose=4; //当前位姿
  43. bool pose_timeout=5;
  44. bool twist_timeout=6; //速度是否超时
  45. Trajectory selected_traj=7;
  46. Trajectory predict_traj=8;
  47. }