当前位置:网站首页>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 :
边栏推荐
- 百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (上)
- AcWing 346. Solution to the problem of water splashing festival in the corridor (deduction formula, minimum spanning tree)
- npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
- tansig和logsig的差异,为什么BP喜欢用tansig
- Let's see how to realize BP neural network in Matlab toolbox
- C language instance_ five
- AcWing 1141. 局域网 题解(kruskalkruskal 求最小生成树)
- 设置Wordpress伪静态连接(无宝塔)
- 修改px4飞控的系统时间
- json学习初体验–第三者jar包实现bean、List、map创json格式
猜你喜欢
Gin introduction practice
mongodb查看表是否导入成功
ROS learning (23) action communication mechanism
The difference between Tansig and logsig. Why does BP like to use Tansig
Baidu flying general BMN timing action positioning framework | data preparation and training guide (Part 1)
AcWing 1148. 秘密的牛奶运输 题解(最小生成树)
BigDecimal 的正确使用方式
今日问题-2022/7/4 lambda体中修改String引用类型变量
ROS学习(26)动态参数配置
Yiwen takes you into [memory leak]
随机推荐
Mongodb checks whether the table is imported successfully
AcWing 1141. LAN problem solving (kruskalkruskal finding the minimum spanning tree)
拖拽改变顺序
Yunna - work order management system and process, work order management specification
刨析《C语言》【进阶】付费知识【一】
Mysqlbackup restores specific tables
454-百度面经1
永久的摇篮
Start from the bottom structure to learn the customization and testing of fpga---- FIFO IP
场景实践:基于函数计算快速搭建Wordpress博客系统
CISP-PTE实操练习讲解(二)
NPM install compilation times "cannot read properties of null (reading 'pickalgorithm')“
Shell script quickly counts the number of lines of project code
Golang foundation - data type
js如何快速创建一个长度为 n 的数组
curl 命令
Ros Learning (23) Action Communication Mechanism
C language instance_ four
ROS learning (23) action communication mechanism
Yiwen takes you into [memory leak]