PL-SLAM
PL-SLAM copied to clipboard
运行开始出现段错误
使用的是和ORB-SLAM2一样的指令,运行开始就报错了,请求大佬指点
运行指令 ./Examples/Monocular/mono_euroc ./Vocabulary/ORBvoc.bin ./Examples/Monocular/EuRoC.yaml /home/slam/dataset/V1_01_easy/mav0/cam0/data /home/slam/dataset/V1_01_easy/V101.txt
ORB-SLAM2 Copyright (C) 2014-2016 Raul Mur-Artal, University of Zaragoza. This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions. See LICENSE.txt.
Input sensor was set to: Monocular
Loading ORB Vocabulary. This could take a while... Vocabulary loaded!
Camera Parameters:
- fx: 458.654
- fy: 457.296
- cx: 367.215
- cy: 248.375
- k1: -0.283408
- k2: 0.0739591
- p1: 0.00019359
- p2: 1.76187e-05
- fps: 20
- color order: RGB (ignored if grayscale)
ORB Extractor Parameters:
- Number of Features: 1000
- Scale Levels: 8
- Scale Factor: 1.2
- Initial Fast Threshold: 20
- Minimum Fast Threshold: 7
Start processing sequence ... Images in the sequence: 2912
OpenCV(3.4.1) Error: Bad argument (Mask error while detecting lines: please check its dimensions and that data type is CV_8UC1) in detect, file /home/slam/opencv-3.4.1/modules/line_descriptor/src/LSDDetector.cpp, line 107 terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(3.4.1) /home/slam/opencv-3.4.1/modules/line_descriptor/src/LSDDetector.cpp:107: error: (-5) Mask error while detecting lines: please check its dimensions and that data type is CV_8UC1 in function detect
已放弃 (核心已转储)
+1
Tracking.cc文件内读取的是./mask/mask.png图片,大小为640x480,EuRoC数据集图片大小是752x480的,所以报这个错误。 解决办法:自己制作一个752x480的euroc_mask.png,然后将Tracking.cc文件读取mask的路径改下,就可以正常运行。
@wz8530 感谢大佬的指点,祝大佬科研和事业一路高歌