当前位置:网站首页>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
边栏推荐
- [问题已处理]-虚拟机报错contains a file system with errors check forced
- Advantages of overseas servers
- [Day6] File system permission management, file special permissions, hidden attributes
- NIO工作方式浅析
- Getting Started Document 07 Staged Output
- Getting Started Doc 06 Adding files to a stream
- 网络布线与数制转换
- What's the point of monitoring the involution of the system?
- TCP/IP four-layer model
- spark operator - map vs mapPartitions operator
猜你喜欢
随机推荐
Spark source code-task submission process-6.1-sparkContext initialization-create spark driver side execution environment SparkEnv
网络不通?服务丢包?看这篇就够了
spark source code - task submission process - 2-YarnClusterApplication
Xiaodu Xiaodu is here!
[Day8] Commands involved in using LVM to expand
Getting Started 05 Using cb() to indicate that the current task is complete
Transport layer protocol (TCP 3-way handshake)
用户和用户组管理、文件权限管理
传输层协议
Getting Started Doc 06 Adding files to a stream
ROS video tutorial
Account and Permission Management
Small example of regular expression--validate email address
wc、grep、tar、vi/vim
错误类型:反射。ReflectionException:无法设置属性“xxx”的“类”xxx”与价值“xxx”
LeetCode Interview Questions
spark source code-RPC communication mechanism
入职前,没想到他们玩的这么花
千亿IT运维市场,产品要凭实力说话
What are some things that you only know when you do operation and maintenance?









