Skip to content

Python ROS2 writer slower than aniticpated #1083

Discussion options

You must be logged in to vote

Thanks for running the profile. If I recall correctly, we had to implement our own CDR serialization since there was not a standalone package for ROS2 done in native python or without bringing in an entire ROS workspace. Quite possibly there are some easy performance wins in that code. It's not an area of focus for us right now but we'd definitely be open to PRs improving it if you see anything that stands out.

One thing to try if you want to produce ROS2 serialized data is using the ROS2 python libraries to write the mcap file (or maybe serialize the messages). Those might use native bindings and run faster. Its been a while since I've tried but I think these apis will write MCAP files o…

Replies: 0 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@andrewwongagility
Comment options

@defunctzombie
Comment options

Answer selected by andrewwongagility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants