当前位置:网站首页>ROS learning (21) robot slam function package -- installation and testing of orbslam
ROS learning (21) robot slam function package -- installation and testing of orbslam
2022-07-07 01:52:00 【Ice cream with code】
List of articles
Preface
In the previous study , We finished rgdbslam Installation and testing of , This article is completed on this basis ORB-SLAM Installation , There are not many things to install here , Before the installation RGBD-SLAM when , Most of them have been installed .
One 、 install Pangolin
Pangolin As a visualization and user interface . You need to install 0.5 Version of Pangolin, If you install the latest version of , Will be in SLAM Error in project compilation .
Pangolin0.5 Download address :
https://github.com/stevenlovegrove/Pangolin/releases/tag/v0.5
Extract to the specified directory , Enter the command as follows :
cd Pangolin-0.5
mkdir build
cd build
cmake ..
make -j
Compile successfully , The effect is as follows :
Continue typing commands , Installation :
sudo make install
After installation , The effect is as follows :
Two 、 compile ORB-SLAM2
To download ORB-SLAM2, The order is as follows :
git clone https://github.com/raulmur/ORB_SLAM2.git ORB_SLAM2
cd ORB_SLAM2
chmod +x build.sh
./build.sh
If compilation is successful , The effect is as follows :
Then you need to add ROS Environmental path , The method is as follows :
open /opt/ros/kinetic/setup.bash file , Add a line of code at the end , namely
export ROS_PACKAGE_PATH=${
ROS_PACKAGE_PATH}:/home/zt/ORB_SLAM2/Examples/ROS
Refresh , The order is as follows :
source setup.sh
Similar to the above file , open ~/.bashrc file , Add a line of code at the end , namely
export ROS_PACKAGE_PATH=${
ROS_PACKAGE_PATH}:/home/zt/ORB_SLAM2/Examples/ROS
Refresh , The order is as follows :
source ~/.bashrc
complete ROS After adding the environment path , Continue to execute the compile command :
cd ORB_SLAM2
chmod +x build_ros.sh
./build_ros.sh
Report errors , as follows :
The reason is that the system cannot be found when compiling boost Link library of , The solution is to modify /ORB_SLAM2/Examples/ROS/ORB_SLAM2/CmakeLists.txt, Add a sentence
-lboost_system
Here's the picture :
Reenter the command :
./build_ros.sh
Compile successfully , The effect is as follows :
3、 ... and 、 Dataset testing
Open a new terminal , Input :
roscore
Open a new terminal , Input :
rosrun ORB_SLAM2 Mono Vocabulary/ORBvoc.txt Examples/ROS/ORB_SLAM2/Asus.yaml
Find the previously downloaded dataset , The file named rgbd_dataset_freiburg1_room.bag, Store in catkin_rgbdslam_ws/rgdb_data Under the table of contents , In this directory , Open a new terminal , Input :
rosbag play rgbd_dataset_freiburg1_room.bag /camera/rgb/image_color:=/camera/image_raw
The effect is as follows :
边栏推荐
- Basic introduction and use of dvajs
- 736. LISP syntax parsing: DFS simulation questions
- Can't you understand the code of linked list in C language? An article allows you to grasp the secondary pointer and deeply understand the various forms of parameter passing in the function parameter
- Yiwen takes you into [memory leak]
- 我如何编码8个小时而不会感到疲倦。
- 制作带照明的DIY焊接排烟器
- POJ 3177 Redundant Paths POJ 3352 Road Construction(双连接)
- 猫猫回收站
- 场景实践:基于函数计算快速搭建Wordpress博客系统
- Box stretch and pull (left-right mode)
猜你喜欢
ROS learning (23) action communication mechanism
开发中对集合里面的数据根据属性进行合并数量时犯的错误
一文带你走进【内存泄漏】
According to the analysis of the Internet industry in 2022, how to choose a suitable position?
制作带照明的DIY焊接排烟器
shell脚本快速统计项目代码行数
Yunna - work order management system and process, work order management specification
新工作感悟~辞旧迎新~
JS how to quickly create an array with length n
Comparison of picture beds of free white whoring
随机推荐
Appium automation test foundation uiautomatorviewer positioning tool
Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 2)
AcWing 1141. 局域网 题解(kruskalkruskal 求最小生成树)
AcWing 1148. Secret milk transportation problem solution (minimum spanning tree)
PartyDAO如何在1年内把一篇推文变成了2亿美金的产品DAO
MySQL最基本的SELECT(查询)语句
dvajs的基础介绍及使用
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
BigDecimal 的正确使用方式
Gin 入门实战
ZOJ Problem Set – 2563 Long Dominoes 【如压力dp】
The use of video in the wiper component causes full screen dislocation
增加 pdf 标题浮窗
uva 1401 dp+Trie
ROS學習(23)action通信機制
Ros Learning (23) Action Communication Mechanism
AcWing 1142. Busy urban problem solving (minimum spanning tree)
LeetCode. 剑指offer 62. 圆圈中最后剩下的数
字符串转成日期对象
New job insights ~ leave the old and welcome the new~