当前位置:网站首页>The method of using ROS1 bag under ROS2
The method of using ROS1 bag under ROS2
2022-08-05 06:21:00 【howtoloveyou】
- Method not applicable for Galactic version and above:
Requirements: Both ROS1 and ROS2
sudo apt install ros-<ros2-version>-rosbag2 ros-<ros2-version>-rosbag2*source /opt/ros/<ros1-version>/setup.bash # eg: source /opt/ros/noetic/setup.bashsource /opt/ros/<ros2-version>/setup.bash # eg: source /opt/ros/foxy/setup.bashros2 bag info -s rosbag_v2 path/to/ros1bag.bag # eg: ros2 bag play -s rosbag_v2 ~/slam-dataset/rgbd.bagros2 bag play -s rosbag_v2 path/to/ros1bag.bag # eg: ros2 bag play -s rosbag_v2 ~/slam-dataset/rgbd.bag- Methods applicable to all ROS2 versions:
Requirements: Understand the correct format of topics in ROS2
pip install rosbagsrosbags-convert path/to/ros1bag.bag # eg: rosbags-convert ~/slam-dataset/rgbd.bag# A bag folder in ROS2 format will be generated in the bag directoryexport RMW_IMPLEMENTATION=rmw_cyclonedds_cpp # The default fastrtps middleware cannot monitor topicsros2 bag play path/to/ros1bag # eg: rosbags-convert ~/slam-dataset/rgbdAfter the conversion, an error may be reported. Some topics cannot find the correct format, so you need to manually modify the generated metadata.yaml. For example, I modified the topic of tf:tf/msg/tfMessage to tf2_msgs/msg/TFMessage
边栏推荐
- Spark source code-task submission process-6.1-sparkContext initialization-create spark driver side execution environment SparkEnv
- 增长:IT运维发展趋势报告
- 跨域的十种解决方案详解(总结)
- Proprietary host CDH
- 7 steps to complete cloud monitoring
- Tencent Cloud Message Queue CMQ
- Cloud computing - osi seven layers and TCP\IP protocol
- Quick question and quick answer - FAQ of Tencent Cloud Server
- markdown编辑器模板
- Introductory document 05-2 use return instructions the current task has been completed
猜你喜欢
随机推荐
Getting Started Document 07 Staged Output
ALC实验
产品学习资料
Servlet跳转到JSP页面,转发和重定向
时间复杂度和空间复杂度
By solving these three problems, the operation and maintenance efficiency will exceed 90% of the hospital
入职前,没想到他们玩的这么花
原生JS带你了解数组方法实现及使用
磁盘管理与文件系统
Why can't I add a new hard disk to scan?How to solve?
618,你也许可以清醒亿点点
The problem of calling ds18b20 through a single bus
Into the pre-service, thought they play so flowers
Mongodb查询分析器解析
VLAN介绍与实验
lvm logical volume and disk quota
The spark operator - coalesce operator
Image compression failure problem
5分钟完成mysql离线安装
Growth: IT Operations Trends Report








![[Day8] Commands involved in using LVM to expand](/img/ba/39b81cbcecec9bc54a710ff9dba81a.png)