码迷,mamicode.com
首页 > 其他好文 > 详细

Jetson AGX Xavier部署ORB_SLAM2(ROS)

时间:2020-10-18 09:52:05      阅读:20      评论:0      收藏:0      [点我收藏+]

标签:include   rdp   source   完成后   set   class   lam   sys   ros   

1. 修改CMakeLists.txt

Examples/ROS/ORB_SLAM2下的CMakeLists.txt

set(LIBS 
${OpenCV_LIBS} 
${EIGEN3_LIBS}
${Pangolin_LIBRARIES}
${PROJECT_SOURCE_DIR}/../../../Thirdparty/DBoW2/lib/libDBoW2.so
${PROJECT_SOURCE_DIR}/../../../Thirdparty/g2o/lib/libg2o.so
${PROJECT_SOURCE_DIR}/../../../lib/libORB_SLAM2.so
)

添加-lboost_system

修改后

set(LIBS 
${OpenCV_LIBS} 
${EIGEN3_LIBS}
${Pangolin_LIBRARIES}
${PROJECT_SOURCE_DIR}/../../../Thirdparty/DBoW2/lib/libDBoW2.so
${PROJECT_SOURCE_DIR}/../../../Thirdparty/g2o/lib/libg2o.so
${PROJECT_SOURCE_DIR}/../../../lib/libORB_SLAM2.so
-lboost_system
)

2. 添加头文件

Examples/ROS/ORB_SLAM2/src/AR/ViewerAR.cc添加头文件#include <unistd.h>

3. 编译

./build_ros.sh

完成后就部署好了。

Jetson AGX Xavier部署ORB_SLAM2(ROS)

标签:include   rdp   source   完成后   set   class   lam   sys   ros   

原文地址:https://www.cnblogs.com/gloria-zhang/p/13831282.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!