当前位置:网站首页>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
边栏推荐
- Billions of IT operations in the market, the product by strength to speak
- spark operator-textFile operator
- RAID磁盘阵列
- 网络层协议介绍
- Hard Disk Partitioning and Permanent Mounting
- One-arm routing and 30% switch
- To TrueNAS PVE through hard disk
- Getting Started Document 07 Staged Output
- Technology Sharing Miscellaneous Technologies
- Tencent Cloud Message Queue CMQ
猜你喜欢

Network wiring and digital-to-system conversion

The highlight moment of operation and maintenance starts with intelligence

Unity realizes first-person roaming (nanny-level tutorial)

运维工程师,快来薅羊毛

Growth: IT Operations Trends Report

King power volume LinkSLA, realize operations engineer is happy fishing

Why can't I add a new hard disk to scan?How to solve?

从“双卡双待“到”双通“,vivo率先推动DSDA架构落地

初识网页与浏览器

单臂路由与三成交换机
随机推荐
Logical volume creation
lvm logical volume and disk quota
spark source code-RPC communication mechanism
干货!教您使用工业树莓派结合CODESYS配置EtherCAT主站
Growth: IT Operations Trends Report
In-depth Zabbix user guide - from the green boy
有哪些事情是你做了运维才知道的?
js dynamically get screen width and height
Getting Started Documentation 12 webserve + Hot Updates
Three modes of vim
路由器和静态路由的配置
增长:IT运维发展趋势报告
Dsf5.0 bounced points determine not return a value
Spark source code - task submission process - 6-sparkContext initialization
spark source code - task submission process - 2-YarnClusterApplication
Mongodb query analyzer parsing
spark operator-textFile operator
Account and Permission Management
交换机原理
时间复杂度和空间复杂度