-
Notifications
You must be signed in to change notification settings - Fork 250
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
Cannot play MCAP files with different topics having different serialization format #1245
Comments
The problem here is that rosbag2 has no idea how to understand your data in order to play it back - it doesn't have a deserializer for protobuf data. I'm also noticing that the "type" field is foxglove types, like This is kind of a big can of worms, actually! Beyond expecting that there isn't an error printed - what is the goal you're trying to achieve by running EDIT: Just want to clarify a point that maybe isn't immediately clear. |
Thanks for your response! My goal is that I have other ros2 nodes that need to subscribe to the data. We are trying to test our autonomous vehicle stack on the nuscenes dataset. |
Yeah, that seems like a useful case. Just packing the nuscenes data into an MCAP file is not going to be sufficient to achieve it, unfortunately. There will need to be some sort of conversion from I'm not sure at the moment what exactly that process would entail, without more research. There is the Given that it's a limited set of data types, if you have e.g. python code to parse the protobuf message fields, you could write a script that reads them in, constructs ROS 2 messages, and writes them to a bag using |
@brian386 I face the same problem,have you resolved it? |
@brian386 nice job |
|
Description
** clear and concise description of the bug is **
When I run
ros2 bag play bag_name.mcap
, I get this error message:Topics with different rwm serialization format have been found. All topics must have the same serialization format.
According to this issue, different topics having different serialization methods is supposed to be supported.
Edit: I also tried playing an mcap file with only
protobuf
serialization, and I get this error[ERROR] [1676265641.870980365] [rosbag2_cpp]: Could not initialize RMWImplementedConverter: No RMW implementation found supporting serialization format protobuf
. Is there any way around this?Additional context
** Add any other context about the problem here **
I am trying to play the NuScenes dataset as a ROS2 bag. I used the nuscenes2mcap repository to convert NuScenes data to MCAP files. Below is the info about the file. Most of the topics use serialization format protobuf, but
/odom
and/imu
use JSON.When I run
ros2 bag play NuScenes-v1.0-mini-scene-0655.mcap
, I getTopics with different rwm serialization format have been found. All topics must have the same serialization format.
To Reproduce
** Steps to reproduce the behavior, e.g.
Full dataset (v1.0) Mini
,Map expansion
andCAN bus expansion
The resulting MCAP files should be in
output/
after the script has been run3. Copy the MCAP files to a ROS2 environment and install rosbag2 dependencies with
sudo apt-get install ros-rolling-ros2bag ros-rolling-rosbag2*
4. Run
ros2 bag play <filename>.mcap
System (please complete the following information)
The text was updated successfully, but these errors were encountered: