ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

is it possible to read the ROS2 bag file within ROS1?

no, this is not supported right now.

Unless someone extends rosbag with this capability of course.

To do that, you could use the Python library mentioned in #q352466, but I doubt it would be trivial to make such a process robust, as the mapping between ROS1<->ROS2 topics is not always obvious (or even feasible).

is it possible to read the ROS2 bag file within ROS1?

no, this is not supported right now.

Unless someone extends rosbag with this capability of course.

To do that, you could use the Python library mentioned in #q352466, (although the core of rosbag is actually C++), but I doubt it would be trivial to make such a process robust, as the mapping between ROS1<->ROS2 topics is not always obvious (or even feasible).

Extending rosbag is possible though. See ros/ros_comm#1206 and ros/ros_comm#1499 which added bag encryption to rosbag.

is it possible to read the ROS2 bag file within ROS1?

no, this is not supported right now.now. rosbag in ROS 1 does not have the same "pluggable storage backend" concept as rosbag in ROS 2 has. That plugin system is what makes the plugin you found work.

Unless someone extends rosbag with this capability of course.

To do that, you could use the Python library mentioned in #q352466 (although the core of rosbag is actually C++), but I doubt it would be trivial to make such a process robust, as the mapping between ROS1<->ROS2 topics is not always obvious (or even feasible).

Extending rosbag is possible though. See ros/ros_comm#1206 and ros/ros_comm#1499 which added bag encryption to rosbag.