Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ros2 bag convert ignoring messages with unknown types #1811

Closed
MichaelOrlov opened this issue Sep 18, 2024 · 0 comments · Fixed by #1812
Closed

ros2 bag convert ignoring messages with unknown types #1811

MichaelOrlov opened this issue Sep 18, 2024 · 0 comments · Fixed by #1812
Labels
bug Something isn't working

Comments

@MichaelOrlov
Copy link
Contributor

Description

The ros2 bag convert fails to convert bag files with "unknown" message types. Unknown is the type which typesupport is not available during the bag conversion.

Expected Behavior

The ros2 bag convert shall be able to process bag files with "unknown" message types.

Actual Behavior

ros2 bag convert fails with error messages like

ros2 bag convert -i input_bag -o output.yaml 
[INFO] [1726645139.199495110] [rosbag2_storage]: Opened database 'input_bag/input_bag.db3' for READ_ONLY.
[INFO] [1726645139.205163047] [rosbag2_storage]: Opened database 'split_bag/split_bag_0.db3' for READ_WRITE.
[WARN] [1726645139.205174432] [rosbag2_cpp]: Environment variable ROS_DISTRO not set, can't store value in bag metadata.
[WARN] [1726645139.206247285] [ROSBAG2_TRANSPORT]: Topic '/percept_info_rviz' has unknown type 'visualization_msgs/msg/MarkerArray' . Only topics with known type are supported. Reason: 'package 'visualization_msgs' not found, searching: [/home/morlov/ros2_rolling_new/install/rosbag2, /home/morlov/ros2_rolling_new/install/rosbag2_storage_default_plugins, 

To Reproduce

  1. Download the attached "reprod_files.zip" and extract "/input_bag" and "output.yaml".
  2. Make sure that visualization_msgs package from the common_interfaces repo are not build and not sourced before running ros2 bag convert
  3. Run ros2 bag convert -i <path to input_bag> -o output.yaml
  4. Logs print error during conversion and produce only one split_bag_0.db3, which doesn't have any messages in it.

System (please complete the following information)

  • OS: Ubuntu 22.04
  • ROS 2 Distro: Jazzy
  • Install Method: build from sources
  • Version: 0.26.5

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant