orb-slam2配置环境时几个常见问题

被刻印的时光 ゝ 提交于 2020-02-04 14:39:57

1.what(): Pangolin X11: Unable to retrieve framebuffer options Aborted (core d

注释掉Pangolin/src/display/device/display_x11.cpp

 

 2.ORB_SLAM2/src/System.cc:315:20: error: ‘usleep’ was not declared in this scope
 usleep(5000);

找到对应的System.cc加入  #include<unistd.h>

在source文件的开头增加include
#include <unistd.h>

需要增加unistd.h的文件有:
Examples/Monocular/mono_euroc.cc
Examples/Monocular/mono_kitti.cc
Examples/Monocular/mono_tum.cc
Examples/RGB-D/rgbd_tum.cc
Examples/Stereo/stereo_euroc.cc
Examples/Stereo/stereo_kitti.cc
src/LocalMapping.cc
src/LoopClosing.cc
src/System.cc
src/Tracking.cc
src/Viewer.cc
原文链接:https://blog.csdn.net/qq_15698613/article/details/98453592

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!