message.proto 1.1 KB

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