当前位置:网站首页>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
边栏推荐
- 正则表达式小实例--去掉字符串中间和两边的空格
- By solving these three problems, the operation and maintenance efficiency will exceed 90% of the hospital
- Mongodb query analyzer parsing
- 运维工程师,快来薅羊毛
- King power volume LinkSLA, realize operations engineer is happy fishing
- 产品学习资料
- Into the pre-service, thought they play so flowers
- 媒体查询、rem移动端适配
- 用户和用户组管理、文件权限管理
- Transport layer protocol (TCP 3-way handshake)
猜你喜欢
时间复杂度和空间复杂度
![[Day8] Commands involved in using LVM to expand](/img/ba/39b81cbcecec9bc54a710ff9dba81a.png)
[Day8] Commands involved in using LVM to expand

What?CDN cache acceleration only works for accelerating static content?

lvm logical volume and disk quota

有哪些事情是你做了运维才知道的?

Getting Started Doc 06 Adding files to a stream

The problem of redirecting to the home page when visiting a new page in dsf5.0

Problems encountered in installing Yolo3 target detection module in Autoware

单臂路由与三成交换机

正则表达式小实例--验证邮箱地址
随机推荐
Spark source code-task submission process-6.1-sparkContext initialization-create spark driver side execution environment SparkEnv
What should I do if the SSL certificate prompts that it is expired or invalid?
flink cdc 目前支持Gauss数据库源吗
I/O performance and reliability
What?CDN cache acceleration only works for accelerating static content?
逻辑卷创建
One-arm routing and 30% switch
In-depth Zabbix user guide - from the green boy
Mongodb query analyzer parsing
spark operator-textFile operator
el-autocomplete使用
Spark source code - task submission process - 6-sparkContext initialization
7步完成云上监控
ROS video tutorial
Small example of regular expression--validate email address
The problem come from line screening process
Getting Started 04 When a task depends on another task, it needs to be executed in sequence
产品学习资料
disabledDate 日期选择器 datePicker
NIO工作方式浅析