Package Summary

Tags No category tags.
Version 0.0.7
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/rosbag2_bag_v2.git
VCS Type git
VCS Version master
Last Updated 2019-11-19
Dev Status DEVELOPED
Released RELEASED

Package Description

Package containing storage and converter plugins for rosbag 1

Additional Links

No additional links.

Maintainers

  • Karsten Knese

Authors

No additional authors.
README
No README found. See repository README.
CHANGELOG

Changelog for package rosbag2_bag_v2_plugins

0.0.7 (2019-11-18)

  • Update interfaces to eloquent API. (#8)
  • Implement changes in IO interfaces. (#7)
  • Contributors: Zachary Michaels

0.0.6 (2019-06-06)

  • warn when roscpp is not found (#4) Signed-off-by: osrf <karsten@openrobotics.org>
  • New type identification (#3) * update logging macros Signed-off-by: osrf <karsten@openrobotics.org> * correct typo in filename Signed-off-by: osrf <karsten@openrobotics.org> * use new type identification Signed-off-by: osrf <karsten@openrobotics.org>

  • compile tests (#2) Signed-off-by: Karsten Knese <karsten@openrobotics.org>

  • remove duplicate repos (#1) Signed-off-by: Karsten Knese <karsten@openrobotics.org>

  • correct missing linter errors (#96) Signed-off-by: Karsten Knese <karsten@openrobotics.org>

  • removed dependency to ros1_bridge package (#90)

    • removed dependency to ros1_bridge package:
    • checking if package is available
    • if not skipping (with warnings)
    • now rosbag2_tests builds on systems without ros1
    • check ros1 deps correctly on all packages
    • add ros1_bridge to test package
    • silently try to find the bridge
  • Contributors: DensoADAS, Karsten Knese

0.0.5 (2018-12-27)

0.0.4 (2018-12-19)

  • 0.0.3
  • manually bump version number as catkin_prepare_release complains
  • generate changelog
  • Contributors: Karsten Knese, Martin Idel

0.0.3 (2018-12-14)

  • Release fixes (#73)
  • Play old bagfiles (#69)
  • Contributors: Karsten Knese, Martin Idel

0.0.2 (2018-12-12)

0.0.1 (2018-12-11)

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rosbag2_bag_v2_plugins at answers.ros.org

Package Summary

Tags No category tags.
Version 0.0.7
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ros2/rosbag2.git
VCS Type git
VCS Version crystal
Last Updated 2019-04-08
Dev Status MAINTAINED
Released RELEASED

Package Description

Package containing storage and converter plugins for rosbag 1

Additional Links

No additional links.

Maintainers

  • Karsten Knese

Authors

No additional authors.

The plugin for rosbags from ROS 1

It is possible to read old bag files with ros2. This requires translating ROS 1 messages into ROS 2 messages similar to the ros1_bridge. If your rosbags contain custom message formats which can be translated into ROS 2 messages, the plugins need to be built from source.

Building the ROS 1 plugin

You need to have the ros1_bridge built (see https://index.ros.org/p/ros1_bridge/github-ros2-ros1_bridge/#bouncy). Secondly, this plugin is part of the rosbag2 plugin architecture. It is thus required that rosbag2 is correctly installed, see https://index.ros.org/r/rosbag2/github-ros2-rosbag2/#crystal.

We assume that the ROS 2 as well as the rosbag2 environment is correctly built and sourced. Then, in a fresh terminal:

  • Source your ROS 1 installation
  • Source your ROS 2 installation (including the ros1_bridge)
  • Build the workspace using colcon build --merge-install

This will automatically match all ROS 1 messages to their ROS 2 counterpart using the same logic as the ros1_bridge.

N.B: The ROS 1 installation must be sourced first to avoid problems with the class_loader. It happens to occur that cyclic dependencies are detected when compiling this plugin. The reason for this is that some packages which contain message definitions in ROS 1 also depend on class loader. It is therefore very important to source the ROS 2 installation after ROS 1 in order to guarantee that the ROS 2 class loader is correctly found and linked. There is an open issue for this stating that the ROS 1 and ROS 2 class loader API should be provide some basic interoperability. See https://github.com/ros/class_loader/issues/109

Using the plugins

In order to use the plugins, again, the ROS 1 installation must be sourced before sourcing the ROS 2 installation.

You can then just use the plugin through the regular interface. For instance, on the command line write:

ros2 bag info -s rosbag_v2 <path_to_bagfile>

Here, -s rosbag_v2 tells rosbag2 to use the plugin to read rosbags (version 2) to query the bagfile. For old rosbags, the storage format must be added to the info call as rosbag does not have the necessary information to read the plugin otherwise.

The command above should print something like the following:

Files:             test_bag.bag
Bag size:          8.8 KiB
Storage id:        rosbag_v2
Duration:          0.268s
Start:             Nov 29 2018 16:43:33.298 (1543509813.298)
End                Nov 29 2018 16:43:33.567 (1543509813.567)
Messages:          5
Topic information: Topic: /rosout | Type: rosgraph_msgs/Log | Count: 3 | Serialization Format: rosbag_v2
                   Topic: /test_topic | Type: std_msgs/String | Count: 1 | Serialization Format: rosbag_v2
                   Topic: /test_topic2 | Type: std_msgs/String | Count: 1 | Serialization Format: rosbag_v2

For playing, one can similarly write:

ros2 bag play -s rosbag_v2 <path_to_bagfile>

If there is ROS 1 data where no topic matching exists to ROS 2 these topics are ignored when replying. When calling ros2 bag info, one can see a list of mismatching topics:

[INFO] [rosbag2_bag_v2_plugins]: ROS 1 to ROS 2 type mapping is not available for topic '/rosout' which is of type 'rosgraph_msgs/Log'. Skipping messages of this topic when replaying

Currently, split bagfiles are unsupported.

CHANGELOG

Changelog for package rosbag2_bag_v2_plugins

0.0.3 (2018-12-14)

  • Release fixes (#73)
  • Play old bagfiles (#69)
  • Contributors: Karsten Knese, Martin Idel

0.0.7 (2019-04-08)

  • [backport] ros1 dependency handling (#98)

    • removed dependency to ros1_bridge package (#90)
    • removed dependency to ros1_bridge package:
    • checking if package is available
    • if not skipping (with warnings)
    • now rosbag2_tests builds on systems without ros1
    • check ros1 deps correctly on all packages
    • add ros1_bridge to test package
    • silently try to find the bridge

    * correct missing linter errors (#96) Signed-off-by: Karsten Knese <karsten@openrobotics.org>

  • Contributors: Karsten Knese

0.0.6 (2019-02-27)

0.0.5 (2018-12-27)

0.0.4 (2018-12-19)

  • 0.0.3
  • manually bump version number as catkin_prepare_release complains
  • generate changelog
  • Contributors: Karsten Knese, Martin Idel

0.0.2 (2018-12-12)

0.0.1 (2018-12-11)

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged rosbag2_bag_v2_plugins at answers.ros.org

No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro melodic. Known supported distros are highlighted in the buttons above.
No version for distro kinetic. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.