当前位置:网站首页>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 :
边栏推荐
- AcWing 1142. Busy urban problem solving (minimum spanning tree)
- Hutool post requests to set the body parameter to JSON data
- AcWing 361. 观光奶牛 题解(spfa求正环)
- Curl command
- The use of video in the wiper component causes full screen dislocation
- Gin introduction practice
- AcWing 1148. 秘密的牛奶运输 题解(最小生成树)
- Shortcut keys commonly used in idea
- Image watermarking, scaling and conversion of an input stream
- js如何快速创建一个长度为 n 的数组
猜你喜欢
Appium自动化测试基础 — uiautomatorviewer定位工具
AcWing 361. 观光奶牛 题解(spfa求正环)
百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (下)
一起看看matlab工具箱内部是如何实现BP神经网络的
2022/0524/bookstrap
sql中批量删除数据---实体中的集合
The cradle of eternity
AcWing 1148. Secret milk transportation problem solution (minimum spanning tree)
Ros Learning (23) Action Communication Mechanism
爬虫实战(六):爬笔趣阁小说
随机推荐
C语言【23道】经典面试题【下】
POJ 3177 redundant paths POJ 3352 road construction (dual connection)
拖拽改变顺序
uva 1401 dp+Trie
First experience of JSON learning - the third-party jar package realizes bean, list and map to create JSON format
[advanced C language] 8 written questions of pointer
Image watermarking, scaling and conversion of an input stream
今日问题-2022/7/4 lambda体中修改String引用类型变量
猫猫回收站
Right mouse button customization
Make DIY welding smoke extractor with lighting
npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
Telnet,SSH1,SSH2,Telnet/SSL,Rlogin,Serial,TAPI,RAW
Scenario practice: quickly build wordpress blog system based on function calculation
Shortcut keys commonly used in idea
C language [23] classic interview questions [Part 2]
When grep looks for a process, it ignores the grep process itself
shell脚本快速统计项目代码行数
ROS学习(十九)机器人SLAM功能包——cartographer
爬虫实战(六):爬笔趣阁小说