velodyne_config.proto 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. syntax = "proto2";
  2. package velodyne;
  3. message velodyneManagerParams
  4. {
  5. repeated velodyneLidarParams velodyne_lidars = 1;
  6. repeated Region region = 2;
  7. optional string fence_data_path = 3 [default = ""];
  8. optional string fence_log_path = 4 [default = ""];
  9. optional string left_model_path = 5 [default = ""];
  10. optional string right_model_path = 6 [default = ""];
  11. required bool distribution_mode = 7 [default = false];//是否分布式模式,分布式模式下,各程序仅启动与自身区域相关模块
  12. }
  13. message velodyneLidarParams
  14. {
  15. required string ip = 1[default = ""];
  16. required int32 port = 2[default = 2368];
  17. required string model = 3[default = "VLP16"];
  18. required string calibrationFile = 4[default = ""];
  19. required int32 lidar_id = 5[default = 0];
  20. optional float max_range = 6[default = 10.0];
  21. optional float min_range = 7[default = 0.15];
  22. optional int32 min_angle = 8[default = 0];
  23. optional int32 max_angle = 9[default = 360];
  24. optional int32 rpm = 10[default = 600];
  25. optional CalibParameter calib = 11;
  26. optional int32 difop = 12[default = 7788];
  27. }
  28. message CalibParameter
  29. {
  30. optional float r = 1 [default = 0];
  31. optional float p = 2 [default = 0];
  32. optional float y = 3 [default = 0];
  33. optional float cx = 4 [default = 0];
  34. optional float cy = 5 [default = 0];
  35. optional float cz = 6 [default = 0];
  36. }
  37. message lidarExtrinsic
  38. {
  39. required int32 lidar_id = 1;
  40. optional CalibParameter calib = 2;
  41. }
  42. message outOfRangeInfo {
  43. required float border_minx = 1; // 最小边界x,左超界提示
  44. required float border_maxx = 2; // 最大边界x,右超界提示
  45. required float plc_border_miny = 3;// plc后夹持y方向极限值
  46. required float plc_border_maxy = 4;// plc后夹持y方向极限值
  47. required float car_min_width = 5; // 最小车宽
  48. required float car_max_width = 6; // 最大车宽
  49. required float car_min_wheelbase = 7; // 最小轴距
  50. required float car_max_wheelbase = 8; // 最大轴距
  51. required float turnplate_angle_limit_min_clockwise = 9; // 转盘逆时针角度极限
  52. required float turnplate_angle_limit_max_clockwise = 10; // 转盘顺时针角度极限
  53. }
  54. message PlcOffset {
  55. required float plc_offsetx = 1; // plc偏移x
  56. required float plc_offsety = 2; // plc偏移y
  57. required float plc_offset_degree = 3; // plc偏移角度
  58. required float plc_offset_wheel_base = 4; // plc偏移角度
  59. }
  60. message ZXPoint {
  61. optional float x = 1 [default = 0];
  62. optional float y = 2 [default = 0];
  63. optional float z = 3 [default = 0];
  64. optional float w = 4 [default = 0];
  65. }
  66. message CutBox {
  67. repeated ZXPoint cut_points = 1;
  68. }
  69. message Region
  70. {
  71. // 入口id
  72. required int32 region_id = 1;
  73. // 裁减区域
  74. required float minx = 2;
  75. required float maxx = 3;
  76. required float miny = 4;
  77. required float maxy = 5;
  78. required float minz = 6;
  79. required float maxz = 7;
  80. required CutBox cut_box = 8;
  81. // 转盘旋转中心
  82. required float turnplate_cx = 9;
  83. required float turnplate_cy = 10;
  84. // 区域雷达
  85. repeated lidarExtrinsic lidar_exts = 11; // 雷达配置
  86. // plc正向校准
  87. required PlcOffset plc_forward_offset = 12;
  88. // plc反向校准
  89. required PlcOffset plc_reverse_offset = 13;
  90. // 车辆范围限制
  91. required outOfRangeInfo car_range_info = 14;
  92. // 终端范围限制
  93. required outOfRangeInfo terminal_range_info = 15;
  94. }