rtabmap 数据集实验过程

心累,发现不加ros的资料真的少。

现放几个ros的:

https://blog.csdn.net/iriving_shu/article/details/69372380

https://blog.csdn.net/xiaocainiaodeboke/article/details/79541512

官方安装说明:https://github.com/introlab/rtabmap/wiki/Installation#ubuntu

 

1. 预装库:

$ sudo apt-get update $ sudo apt-get install libsqlite3-dev libpcl-dev libopencv-dev git cmake libproj-dev libqt5svg5-dev

 

2.下载源码编译:

$ git clone https://github.com/introlab/rtabmap.git rtabmap $ cd rtabmap/build $ cmake .. $ make -j4 $ sudo make install

 

遇见问题:

1. 编译报错:../../../bin/librtabmap_core.so.0.11.12: undefined reference to `cs_pinv'

参考 https://github.com/introlab/rtabmap/issues/154

 

首先删除作者的缓存

$ cd rtabmap/build $ rm CMakeCache.txt $ cmake ..

删除usr/local/include下的EXTERNAL(需要权限)

 

1. 通过软件运行

http://official-rtab-map-forum.67519.x6.nabble.com/How-to-process-RGBD-SLAM-datasets-with-RTAB-Map-td939.html

  • 使用修改过的associate.py处理得到rgb_sync depth_sync
  • 创建 "rgbddatasets.yaml" 拷贝到"~/Documents/RTAB-Map/camera_info":
%YAML:1.0
camera_name: rgbddatasets
image_width: 0
image_height: 0
camera_matrix:
   rows: 3
   cols: 3
   data: [ 525., 0., 3.1950000000000000e+02, 0., 525.,
       2.3950000000000000e+02, 0., 0., 1. ]
distortion_coefficients:
   rows: 1
   cols: 5
   data: [ 0., 0., 0., 0., 0. ]
rectification_matrix:
   rows: 3
   cols: 3
   data: [ 1., 0., 0., 0., 1., 0., 0., 0., 1. ]
projection_matrix:
   rows: 3
   cols: 4
   data: [ 525., 0., 3.1950000000000000e+02, 0., 0., 525.,
       2.3950000000000000e+02, 0., 0., 0., 1., 0. ]

  • 运行软件,打开 Preferences 点击"Reset all settings" 。点击Source, 选择RGB-D set input rate to 30 Hz or lower, set calibration name to "rgbddatasets" (should be the same name as the calibration file create before).
  • Scroll down to select "Images" for the camera driver. Fill RGB and depth directories (with "rgb_sync" and "depth_sync" folders), set 5 for the depth scale, check "Use RGB file names as timestamps" and leave empty the "Optional timestamps file".
  • To have more points to compare with the ground truth, you can check "Create intermediate nodes..." under Advanced RTAB-Map settings panel.

2. 运行./rtabmap-rgbd_dataset

./rtabmap-rgbd_dataset 目录

 

补充:关于标定文件

https://blog.csdn.net/qq_30667639/article/details/78330695

image_width、image_height代表图片的长宽

camera_name为摄像头名

camera_matrix规定了摄像头的内部参数矩阵

distortion_model指定了畸变模型

distortion_coefficients指定畸变模型的系数

rectification_matrix为矫正矩阵,一般为单位阵

projection_matrix为外部世界坐标到像平面的投影矩阵

 

 

 

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
Turtlebot RTAB-Map是一种在Turtlebot机器人上使用的SLAM(Simultaneous Localization and Mapping)算法。通过使用RTAB-Map算法,Turtlebot可以在未知环境中同时定位自身位置并构建地图。 要启动Turtlebot RTAB-Map算法,您需要安装相关的ROS包。对于ROS Kinetic版本,您可以使用以下命令安装所需的包: ``` $ sudo apt-get install ros-kinetic-turtlebot-bringup ros-kinetic-turtlebot-navigation ros-kinetic-rtabmap-ros ``` 对于ROS Indigo版本,使用以下命令安装所需的包: ``` $ sudo apt-get install ros-indigo-turtlebot-bringup ros-indigo-turtlebot-navigation ros-indigo-rtabmap-ros ``` 安装完相关包后,您可以使用以下命令启动Turtlebot RTAB-Map算法: ``` roslaunch rtabmap_ros demo_turtlebot_mapping.launch simulation:=true ``` 请注意,此命令是在模拟环境下启动RTAB-Map算法。如果您要在实际的Turtlebot机器人上使用,请将`simulation`参数设置为`false`。 通过使用Turtlebot RTAB-Map算法,您可以实现Turtlebot机器人在未知环境中的定位和地图构建功能。这对于机器人导航和路径规划非常有用。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [ROS与VSLAM入门教程-rtabmap_ros-利用turtlebot实现建图和导航](https://blog.csdn.net/u010925447/article/details/78267315)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [使用RTAB-Map算法和Turtlebot3机器人在自己构建的室内场景中建图](https://blog.csdn.net/qq_44725448/article/details/118109488)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值