params_camera.yaml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. %YAML:1.0
  2. # Project
  3. project_name: "lvi_sam"
  4. #common parameters
  5. imu_topic: "/handsfree/imu"
  6. image_topic: "/camera/image_raw"
  7. point_cloud_topic: "lvi_sam/lidar/deskew/cloud_deskewed"
  8. # Lidar Params
  9. use_lidar: 1 # whether use depth info from lidar or not
  10. lidar_skip: 3 # skip this amount of scans
  11. align_camera_lidar_estimation: 1 # align camera and lidar estimation for visualization
  12. # lidar to camera extrinsic
  13. lidar_to_cam_tx: 0.00
  14. lidar_to_cam_ty: -0.00
  15. lidar_to_cam_tz: -0.00
  16. lidar_to_cam_rx: 0.0
  17. lidar_to_cam_ry: 0.0
  18. lidar_to_cam_rz: 0.035
  19. # camera model
  20. model_type: PINHOLE
  21. camera_name: camera
  22. # Mono camera config
  23. image_width: 1280
  24. image_height: 720
  25. distortion_parameters:
  26. k1: -0.3013191223144531
  27. k2: 0.08228302001953125
  28. p1: 0.00012969970703125
  29. p2: -0.000377655029296875
  30. projection_parameters:
  31. fx: 711.79833984375
  32. fy: 712.151123046875
  33. cx: 629.6566772460938
  34. cy: 368.3511047363281
  35. #imu parameters The more accurate parameters you provide, the worse performance
  36. acc_n: 1.6736505844052338e-02 # accelerometer measurement noise standard deviation.
  37. gyr_n: 1.5727292142586351e-01 # gyroscope measurement noise standard deviation.
  38. acc_w: 7.0168288079436173e-03 # accelerometer bias random work noise standard deviation.
  39. gyr_w: 5.9547994868495480e-02 # gyroscope bias random work noise standard deviation.
  40. g_norm: 9.805 #
  41. # Extrinsic parameter between IMU and Camera.
  42. estimate_extrinsic: 0 # 0 Have an accurate extrinsic parameters. We will trust the following imu^R_cam, imu^T_cam, don't change it.
  43. # 1 Have an initial guess about extrinsic parameters. We will optimize around your initial guess.
  44. # 2 Don't know anything about extrinsic parameters. You don't need to give R,T. We will try to calibrate it. Do some rotation movement at beginning.
  45. #Rotation from camera frame to imu frame, imu^R_cam
  46. extrinsicRotation: !!opencv-matrix
  47. rows: 3
  48. cols: 3
  49. dt: d
  50. data: [ 0, 0, 1,
  51. -1, 0, 0,
  52. 0, -1, 0]
  53. #Translation from camera frame to imu frame, imu^T_cam
  54. extrinsicTranslation: !!opencv-matrix
  55. rows: 3
  56. cols: 1
  57. dt: d
  58. data: [0.006422381632411965, 0.019939800449065116, 0.03364235163589248]
  59. #feature traker paprameters
  60. max_cnt: 150 # max feature number in feature tracking
  61. min_dist: 20 # min distance between two features
  62. freq: 0 # frequence (Hz) of publish tracking result. At least 10Hz for good estimation. If set 0, the frequence will be same as raw image
  63. F_threshold: 1.0 # ransac threshold (pixel)
  64. show_track: 1 # publish tracking image as topic
  65. equalize: 1 # if image is too dark or light, trun on equalize to find enough features
  66. fisheye: 0 # if using fisheye, trun on it. A circle mask will be loaded to remove edge noisy points
  67. #optimization parameters
  68. max_solver_time: 0.035 # max solver itration time (ms), to guarantee real time
  69. max_num_iterations: 10 # max solver itrations, to guarantee real time
  70. keyframe_parallax: 10.0 # keyframe selection threshold (pixel)
  71. #unsynchronization parameters
  72. estimate_td: 0 # online estimate time offset between camera and imu
  73. td: 0 # initial value of time offset. unit: s. readed image clock + td = real image clock (IMU clock)
  74. #rolling shutter parameters
  75. rolling_shutter: 0 # 0: global shutter camera, 1: rolling shutter camera
  76. rolling_shutter_tr: 0 # unit: s. rolling shutter read out time per frame (from data sheet).
  77. #loop closure parameters
  78. loop_closure: 1 # start loop closure
  79. skip_time: 0.0
  80. skip_dist: 0.0
  81. debug_image: 0 # save raw image in loop detector for visualization prupose; you can close this function by setting 0
  82. match_image_scale: 0.5
  83. vocabulary_file: "/config/brief_k10L6.bin"
  84. brief_pattern_file: "/config/brief_pattern.yml"