message.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. syntax = "proto3";
  2. package NavMessage;
  3. message LidarOdomStatu {
  4. float x=1;
  5. float y=2;
  6. float theta=3;
  7. float v=4;
  8. float vth=5;
  9. }
  10. message AgvStatu{
  11. float v=1;
  12. float w=2;
  13. int32 clamp=3; //夹持状态 0,中间状态,1夹紧到位,2,打开到位,
  14. int32 clamp_other=4; //另外一节
  15. }
  16. message ToAgvCmd {
  17. int32 H=1; //心跳
  18. int32 M=2; //模式:2整车模式,1:单车
  19. int32 T=3; // 1:原地旋转,2:横移,3:MPC巡线/前进, 5,夹持,6,松夹持,其他/未接收到:停止
  20. float V=4; //角速度
  21. float W=5; //线速度
  22. float L=6; //轴距
  23. int32 end=7;
  24. }
  25. message SpeedLimit
  26. {
  27. float min=1;
  28. float max=2;
  29. }
  30. message Pose2d
  31. {
  32. float x=1;
  33. float y=2;
  34. float theta=3;
  35. }
  36. message Trajectory
  37. {
  38. repeated Pose2d poses=1;
  39. }
  40. message Action
  41. {
  42. int32 type = 1; // 1:原地调整,2:巡线,3,夹持,4松夹持
  43. Pose2d begin = 2;
  44. Pose2d target = 3;
  45. Pose2d target_diff = 4;
  46. SpeedLimit velocity_limit=5;
  47. SpeedLimit angular_limit=6;
  48. SpeedLimit horize_limit=7;
  49. }
  50. message NavCmd
  51. {
  52. int32 action=1; // 0 开始导航,1 pause, 2 continue ,3 cancel,4:切换到双车模式,5:切换到单车模式
  53. string key=2;
  54. float wheelbase=3; //轴距
  55. repeated Action actions=4;
  56. }
  57. message NavStatu
  58. {
  59. bool statu = 1; //0:ready 1:running
  60. bool main_agv=2; //是否是两节控制plc
  61. int32 move_mode=3; //运动模式,1:single,2:双车
  62. string key = 4; // 任务唯一码
  63. repeated Action unfinished_actions = 5; //未完成的动作,第一个即为当前动作
  64. Trajectory selected_traj = 6;
  65. Trajectory predict_traj = 7;
  66. }
  67. message RobotStatu
  68. {
  69. float x=1;
  70. float y=2;
  71. float theta=3;
  72. AgvStatu agvStatu=4;
  73. }