Sunt40 2019-03-10 11:04 采纳率: 0%
浏览 1074

如何基于RatSLAM使用usb摄像头进行slam建图?

源码里的教程:
Using Custom Bag Files (or Real Robots)

Bag files (or real robots) must provide at least images for RatSLAM on topics //camera/image [sensor_msgs::Image] or //camera/image/compressed sensor_msgs::CompressedImage. Odometry may also be provided on topic //odom [nav_msgs::Odometry], or can be estimated using visual flow from the image data. Aside from the bag file, two other files are required: a config file and a launch file.
他这里提到的config文件和launch文件我自己写好了
下面的教程就看不懂了,请大佬解读一下
Creating a bag file

Loading a dataset into a bag file

The easiest way to tune RatSLAM is using an offline dataset. Any robot providing camera images as sensor_msgs/CompressedImage and odometry as nav_msgs/Odometry can be used. The images and odometry must be in the form /camera/image and /odom.

To convert topic names to the correct format run:

rostopic echo | rostopic pub /camera/image sensor_msgs/CompressedImage &
rostopic echo | rostopic pub /odom nav_msgs/Odometry &

Start recording into a bag file:

rosbag record -O .bag /camera/image /odom

Start the robot and collect the dataset. Press Ctrl-C at the terminal to finish recording.

  • 写回答

2条回答

  • TITANIKK 2020-07-16 11:19
    关注

    请问你看的这个教程在哪里看的,我现在只能用ratslam跑数据集,不会调用USB摄像头来运行ratslam

    评论

报告相同问题?

悬赏问题

  • ¥15 stata安慰剂检验作图但是真实值不出现在图上
  • ¥15 c程序不知道为什么得不到结果
  • ¥40 复杂的限制性的商函数处理
  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题