解决:terminate called after throwing an instance of ‘cv::Exception‘......Incorrect indentation‘

问题:

解决:terminate called after throwing an instance of ‘cv::Exception‘......Incorrect indentation‘_第1张图片

config_file: /home/sf/fast/Fast-Drone-250/src/realflight_modules/VINS-Fusion/vins_estimator/../config/fast_drone_250.yaml
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.5.2) /home/sf/fast/opencv-4.5.2/opencv-4.5.2/modules/core/src/persistence_yml.cpp:349: error: (-212:Parsing error) skipSpaces in function '/home/sf/fast/Fast-Drone-250/src/realflight_modules/VINS-Fusion/vins_estimator/../config/fast_drone_250.yaml(54): Incorrect indentation'

[vins_fusion-1] process has died [pid 7254, exit code -6, cmd /home/sf/fast/Fast-Drone-250/devel/lib/vins/vins_node /home/sf/fast/Fast-Drone-250/src/realflight_modules/VINS-Fusion/vins_estimator/../config/fast_drone_250.yaml __name:=vins_fusion __log:=/home/sf/.ros/log/1abf8ef6-6443-11ed-918e-f057a6c8dcb4/vins_fusion-1.log].
log file: /home/sf/.ros/log/1abf8ef6-6443-11ed-918e-f057a6c8dcb4/vins_fusion-1*.log

本来还以为是系统问题,但是重新装完系统搭环境过后发现并不是,白白浪费一晚上时间,这不重要但是把自己的心态搞炸了,对自己产生了深深的怀疑,否定了自己前期的工作,也是自己太想成功了,而且今天运气是差极了迫不得已去签一个不想去的offer,去找书记签字去了4次都不在,自主实验也没有验证,程序也是各种出错电脑也关机不得终止实验,还收到一个非常想去的公司的拒绝,人生呀!太难受了!好在在凌晨两点半迎来转机。。。。

解决方案:

找到fast_drone_250.yaml(54)的54行,检查是否是在修改相机内参或畸变参数时造成的格式不正确,或者小失误。仔细检查!特别注意多空格以及少空格!本次是因为少了缩进,修改正确即可!

你可能感兴趣的:(Linux,c++,ubuntu,opencv)