37 lines
1.1 KiB
ReStructuredText
Raw Normal View History

2022-01-31 12:01:37 +01:00
Convert rosbag versions
=======================
2021-05-02 14:51:08 +02:00
2022-01-09 20:31:51 +01:00
The :py:mod:`rosbags.convert` package includes a CLI tool to convert legacy rosbag1 files to rosbag2 and vice versa.
2021-05-02 14:51:08 +02:00
Features
--------
- Reasonably fast, as it converts raw ROS1 messages to raw CDR messages without going though deserialization and serialization
- Tries to match ROS1 message type names to registered ROS2 types
- Automatically registers unknown message types present in the legacy rosbag file for the conversion
- Handles differences of ``std_msgs/msg/Header`` between both ROS versions
Limitations
-----------
2022-01-09 20:31:51 +01:00
- Refuses to convert unindexed rosbag1 files, please reindex files before conversion
2021-05-02 14:51:08 +02:00
- Currently does not handle split bags
2022-01-09 20:31:51 +01:00
- Only ROS2 default message types are supported when converting rosbag2 to rosbag1
2021-05-02 14:51:08 +02:00
Usage
-----
.. code-block:: console
# Convert "foo.bag", result will be "foo/"
$ rosbags-convert foo.bag
2022-01-09 20:31:51 +01:00
# Convert "bar", result will be "bar.bag"
$ rosbags-convert bar
2021-05-02 14:51:08 +02:00
# Convert "foo.bag", save the result as "bar"
$ rosbags-convert foo.bag --dst /path/to/bar
2022-01-09 20:31:51 +01:00
# Convert "bar", save the result as "foo.bag"
$ rosbags-convert bar --dst /path/to/foo.bag