`rosbags` doesn't recognize msg files from `rosbag2_interfaces`
Your Environment
Thank you for taking the time to report an issue.
To more efficiently resolve this issue, we'd like to know some basic information about your system and setup.
-
Your operating system: Ubuntu 22
-
Version of python you are running (
python --version
): Python 3.10.12 -
How did you install rosbags? Did you use pip to install from PyPI or a repository checkout or something else? With PyPi
-
Version of rosbags you have installed (
pip show rosbags | grep Version
): Version: 0.9.16
If you're having issues with (de)serialization of custom message types please include a copy of the following:
- Message definition files (msg or idl)
- The bytes of an example message
The Issue
Hello, I often have this message when calling rosbags methods on ros2 bags:
ERROR: Converting rosbag: TypesysError("Type 'rosbag2_interfaces/msg/WriteSplitEvent' is unknown.")
This is due to a lack of rosbag2_interfaces
msg definitions inside types.py.
When generating types.py
, rosbag2_interfaces
interfaces should be added to tools/messages.
Steps to Reproduce
Use rosbags-convert
with bags that were recorded on a robot that runs ROS 2.