message.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 H=1; //心跳
  12. int32 T=2; // 1:原地旋转,2:横移,3:MPC巡线/前进, 其他/未接收到:停止
  13. float V=3; //角速度
  14. float W=4; //线速度
  15. int32 end=5;
  16. }
  17. message SpeedLimit
  18. {
  19. float min=1;
  20. float max=2;
  21. }
  22. message Pose2d
  23. {
  24. float x=1;
  25. float y=2;
  26. float theta=3;
  27. }
  28. message Trajectory
  29. {
  30. repeated Pose2d poses=1;
  31. }
  32. message Action
  33. {
  34. int32 type = 1; // 1:原地调整,2:巡线
  35. Pose2d begin = 2;
  36. Pose2d target = 3;
  37. Pose2d target_diff = 4;
  38. SpeedLimit velocity_limit=5;
  39. SpeedLimit angular_limit=6;
  40. SpeedLimit horize_limit=7;
  41. }
  42. message NavCmd
  43. {
  44. int32 action=1; // 0 开始导航,1 pause, 2 continue ,3 cancel
  45. string key=2;
  46. repeated Action actions=3;
  47. }
  48. message NavStatu
  49. {
  50. bool statu = 1; //0:ready 1:running
  51. string key = 2; // 任务唯一码
  52. repeated Action unfinished_actions = 3; //未完成的动作,第一个即为当前动作
  53. Trajectory selected_traj = 4;
  54. Trajectory predict_traj = 5;
  55. }