当前位置:网站首页>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/rgbd
After 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
边栏推荐
- Quick question and quick answer - FAQ of Tencent Cloud Server
- ROS video tutorial
- Why can't I add a new hard disk to scan?How to solve?
- [问题已处理]-虚拟机报错contains a file system with errors check forced
- 7步完成云上监控
- 单臂路由与三成交换机
- Getting Started Document 01 series in order
- 磁盘管理与文件系统
- spark source code - task submission process - 3-ApplicationMaster
- 监控系统的内卷,有什么讲究?
猜你喜欢
Mina断线重连
单臂路由实验和三层交换机实验
Getting Started Documentation 12 webserve + Hot Updates
VLAN details and experiments
What?CDN cache acceleration only works for accelerating static content?
VRRP概述及实验
Into the pre-service, thought they play so flowers
I/O performance and reliability
What are some things that you only know when you do operation and maintenance?
VRRP原理及命令
随机推荐
618, you may be able to wake up a little bit
Tencent greetings function SCF - entry instructions
Mina的长连接和短连接
ALC实验
[Paper Intensive Reading] The relationship between Precision-Recall and ROC curves
Getting Started 04 When a task depends on another task, it needs to be executed in sequence
教您简单几步实现工业树莓派正确安装RS232转USB驱动
运维工程师,快来薅羊毛
正则表达式小实例--去掉字符串中间和两边的空格
Hard Disk Partitioning and Permanent Mounting
ROS video tutorial
IP数据包格式(ICMP协议与ARP协议)
spark source code - task submission process - 2-YarnClusterApplication
Operation and maintenance engineer, come and pick up the wool
spark source code - task submission process - 1-sparkSubmit
In-depth Zabbix user guide - from the green boy
Quick question and quick answer - FAQ of Tencent Cloud Server
产品学习资料
Spark source code-task submission process-6.1-sparkContext initialization-create spark driver side execution environment SparkEnv
增长:IT运维发展趋势报告