params_lidar.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # project name
  2. PROJECT_NAME: "lvi_sam"
  3. lvi_sam:
  4. # Topics
  5. pointCloudTopic: "/rslidar_points" # Point cloud data
  6. imuTopic: "/handsfree/imu" # IMU data
  7. # Heading
  8. useImuHeadingInitialization: false # if using GPS data, set to "true"
  9. # Export settings
  10. savePCD: true # https://github.com/TixiaoShan/LIO-SAM/issues/3
  11. saveJson: true # https://github.com/TixiaoShan/LIO-SAM/issues/3
  12. savePCDDirectory: "/work/map/" # in your home folder, starts and ends with "/". Warning: the code deletes "LOAM" folder then recreates it. See "mapOptimization" for implementation
  13. # Sensor Settings
  14. N_SCAN: 32 # number of lidar channel (i.e., 16, 32, 64, 128)
  15. Horizon_SCAN: 1800 # lidar horizontal resolution (Velodyne:1800, Ouster:512,1024,2048)
  16. timeField: "time" # point timestamp field, Velodyne - "time", Ouster - "t"
  17. downsampleRate: 1 # default: 1. Downsample your data if too many points. i.e., 16 = 64 / 4, 16 = 16 / 1
  18. lidarMinRange: 1.0 # default: 1.0, minimum lidar range to be used
  19. lidarMaxRange: 200.0 # default: 1000.0, maximum lidar range to be used
  20. # IMU Settings
  21. imuAccNoise: 3.6736505844052338e-02
  22. imuGyrNoise: 1.5727292142586351e-03
  23. imuAccBiasN: 7.0168288079436173e-04
  24. imuGyrBiasN: 5.9547994868495480e-06
  25. imuGravity: 9.80511
  26. # Extrinsics (lidar -> IMU)
  27. extrinsicTrans: [ 0.0, 0.0, 0.0 ]
  28. extrinsicRot: [ 1, 0, 0, 0, 1, 0, 0, 0, 1 ]
  29. extrinsicRPY: [ 1, 0, 0, 0, 1, 0, 0, 0, 1 ]
  30. # extrinsicRot: [ 0, 1, 0, -1, 0, 0, 0, 0, 1 ]
  31. # extrinsicRPY: [ 0, 1, 0, -1, 0, 0, 0, 0, 1 ]
  32. # LOAM feature threshold
  33. edgeThreshold: 1.0
  34. surfThreshold: 0.1
  35. edgeFeatureMinValidNum: 10
  36. surfFeatureMinValidNum: 100
  37. # voxel filter paprams
  38. odometrySurfLeafSize: 0.2 # default: 0.4
  39. mappingCornerLeafSize: 0.1 # default: 0.2
  40. mappingSurfLeafSize: 0.2 # default: 0.4
  41. # robot motion constraint (in case you are using a 2D robot)
  42. z_tollerance: 1000 # meters
  43. rotation_tollerance: 1000 # radians
  44. # CPU Params
  45. numberOfCores: 4 # number of cores for mapping optimization
  46. mappingProcessInterval: 0.15 # seconds, regulate mapping frequency
  47. # Surrounding map
  48. surroundingkeyframeAddingDistThreshold: 0.1 # meters, regulate keyframe adding threshold
  49. surroundingkeyframeAddingAngleThreshold: 0.2 # radians, regulate keyframe adding threshold
  50. surroundingKeyframeDensity: 2.0 # meters, downsample surrounding keyframe poses
  51. surroundingKeyframeSearchRadius: 50.0 # meters, within n meters scan-to-map optimization (when loop closure disabled)
  52. # Loop closure
  53. loopClosureEnableFlag: true
  54. surroundingKeyframeSize: 25 # submap size (when loop closure enabled)
  55. historyKeyframeSearchRadius: 5.0 # meters, key frame that is within n meters from current pose will be considerd for loop closure
  56. historyKeyframeSearchTimeDiff: 30.0 # seconds, key frame that is n seconds older will be considered for loop closure
  57. historyKeyframeSearchNum: 25 # number of hostory key frames will be fused into a submap for loop closure
  58. historyKeyframeFitnessScore: 0.3 # icp threshold, the smaller the better alignment
  59. # Visualization
  60. globalMapVisualizationSearchRadius: 1000.0 # meters, global map visualization radius
  61. globalMapVisualizationPoseDensity: 10.0 # meters, global map visualization keyframe density
  62. globalMapVisualizationLeafSize: 1.0 # meters, global map visualization cloud density