Read the bag data ROS2
Hey,
I am currently beginner to ROS2, I'm discovering bags and I was wondering if there is a simple way to read data from a bag. I mean, we can record it, replay it but I dont see any tool to read the bag..
I've seen some ppl speaking about sqlite3 but can someone explain me this please? There is no way to read it with rqt? Thank you!
What do you want to do? Read the contents of the bag in a tabular form?
It seems like you already know how to replay the bag and then view it using ros2 tools i.e. rqt_plot.
If you just want to read the contents of the bag, without actually replaying it, you can try to use something like this: https://github.com/Box-Robotics/ros2-...
Thank you for your response! I didnt checked yet in details your link.
What I want is, imagine having some sensors publishing data every minute in a topic, and you want to record all these data during 10min. You ros2 bag record, but then you can only replay back, how can you read all data, to analyze it? (my exemple isnt maybe relevant but I hope you see what I want to say). This is maybe not with the bag command, but there isnt a way to record and then read it after? With bag or something else? Thank you!
Yeah you should use a utility like the one linked above.
You might also find this relevant question helpful. https://answers.ros.org/question/3586...