rpng / open_vins

An open source platform for visual-inertial navigation research.
https://docs.openvins.com
GNU General Public License v3.0
2.22k stars 652 forks source link

Error while launching command #438

Closed hessaHamad closed 3 months ago

hessaHamad commented 7 months ago

dears,

i have been facing this issue, i have tried changing the spacing in yaml file but nothing works

Error:
what():  OpenCV(4.2.0) ../modules/core/src/persistence_yml.cpp:349: error: (-212:Parsing error) skipSpaces in function '/home/gp/workspace/catkin_ws_ov/src/open_vins/ov_msckf/../config/gp/kalibr_imu_chain.yaml(5): Incorrect indentation'

================================================================================REQUIRED process [ov_msckf-1] has died!
process has died [pid 10709, exit code -6, cmd /home/gp/workspace/catkin_ws_ov/devel/lib/ov_msckf/run_subscribe_msckf __name:=ov_msckf __log:=/home/gp/.ros/log/59cab3c2-060a-11ef-b17f-b78eb40de885/ov_msckf-1.log].
log file: /home/gp/.ros/log/59cab3c2-060a-11ef-b17f-b78eb40de885/ov_msckf-1*.log
Initiating shutdown!
================================================================================

Yaml file:
%YAML:1.0

  cam0:
  T_cam_imu:
   - [0.027078783702300407, -0.987310672050432, -0.1564748424780377, 0.09122480861600511]
   - [-0.999559603602895, -0.024842275395990737, -0.016231457062491586, 0.24059377147079647]
   - [0.012138299651342638, 0.15684545963614133, -0.9875485625897594, 0.009151473714164252]
   - [0.0, 0.0, 0.0, 1.0]
  cam_overlaps: []
  camera_model: pinhole
  distortion_coeffs: [-0.40388686515510114, 0.18409260606548622, 0.0006210690356052475, -0.0016593774658634388]
  distortion_model: radtan
  intrinsics: [767.1669951294108, 867.8924850924478, 355.32765901819863, 214.07856905434784]
  resolution: [752, 480]
  rostopic: video_source/raw
  timeshift_cam_imu: -0.046517855578004905
goldbattle commented 3 months ago

Your tab indents are incorrect. I would recommend correcting these (take a look at any of the example config files). https://github.com/rpng/open_vins/tree/master/config