Rosbag1 example needs update
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: windows 11
- Version of python you are running (
python --version
): Python 3.9.13 - How did you install rosbags? Did you use pip to install from PyPI or a repository checkout or something else? pip
- Version of rosbags you have installed (
pip show rosbags | grep Version
): 0.9.23
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
i tried reading CompressedImage messages from a rosbag according to the example. it failed, until i replaced:
# Create a typestore and get the string class.
typestore = get_typestore(Stores.LATEST)
with:
# Create a typestore and get the string class.
typestore = get_typestore(Stores.ROS1_NOETIC)
"latest" loads ROS2 typestore, and one should use a ROS1 typestore.
please update the documentation. thanks!
Steps to Reproduce
reading a rosbag recorded in ROS Noetic