velodyne_config.proto 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 OutOfRegion {
  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_anti_clockwise=9; // 转盘逆时针角度极限
  52. required float turnplate_angle_limit_clockwise=10; // 转盘顺时针角度极限
  53. }
  54. message Region
  55. {
  56. required float minx=1;
  57. required float maxx=2;
  58. required float miny=3;
  59. required float maxy=4;
  60. required float minz=5;
  61. required float maxz=6;
  62. required int32 region_id=7;
  63. repeated lidarExtrinsic lidar_exts=8;
  64. required float turnplate_cx=9;
  65. required float turnplate_cy=10;
  66. required float plc_offsetx=11; // plc偏移x
  67. required float plc_offsety=12; // plc偏移y
  68. required float plc_offset_degree=13; // plc偏移角度
  69. required OutOfRegion plc_out_of_region = 14;
  70. required OutOfRegion terminal_out_of_region = 15;
  71. }