当前位置:网站首页>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
边栏推荐
- 运维工程师,快来薅羊毛
- [Day6] File system permission management, file special permissions, hidden attributes
- Getting Started Documentation 12 webserve + Hot Updates
- Technology Sharing Miscellaneous Technologies
- NAT实验
- ROS video tutorial
- js dynamically get screen width and height
- To TrueNAS PVE through hard disk
- spark operator-parallelize operator
- 正则表达式小实例--去掉字符串中间和两边的空格
猜你喜欢
What are some things that you only know when you do operation and maintenance?
交换机原理
selenium模块的操作之拉钩
IP address and subnet division
5分钟完成mysql离线安装
LinkSLA insists that users come first and creates a sustainable operation and maintenance service plan
【Day8】RAID Disk Array
VLAN详解及实验
Getting Started Document 09 Standalone watch
network issue?Service packet loss?This is enough
随机推荐
ROS2下使用ROS1 bag的方法
Disk management and file systems
Dsf5.0 bounced points determine not return a value
To TrueNAS PVE through hard disk
RAID磁盘阵列
King power volume LinkSLA, realize operations engineer is happy fishing
Cloud computing - osi seven layers and TCP\IP protocol
ACL 和NAT
disabledDate 日期选择器 datePicker
time complexity and space complexity
Switch principle
运维工程师,快来薅羊毛
请问下通过flink sql读取hologres 的两张表的 binlog,然后如何进行join?
Configuration of TensorFlow ObjecDetectionAPI under Anaconda3 of win10 system
[问题已处理]-虚拟机报错contains a file system with errors check forced
markdown编辑器模板
传输层协议
Apache configure reverse proxy
network issue?Service packet loss?This is enough
Mina断线重连