In this video, I demonstrate how to use Python 3 to extract data from the rosbag file using bagpy package. Installation: pip install bagpy Documentation: jmscslgroup.gi... Github: github.com/jms... Notebook: github.com/jms...
Hi Rahul, Thank you for this great Video. Is there also an option in Renaming Topics and save it in the existing bag file? I have recorded several rosbags on different vehicles at the same time and without renaming the topics (eg. to vehicle1/speed, vehicle2/speed) they would publish on the same topic (e.g. speed) when i play back the rosbag. Thank you very much for your help!
Hi! Nice tutorial. Wanted to ask you if it is possible to extract other data than velocity/wrench/laser? From source code it seems to be tailored for a very specific application (vel_data(), laser_data(), .... )and I struggled a bit trying to extract anything else. Would you be able to explain what would be the step to target a particular message in the topic and extract data from that message for plotting
Hi, sorry for the late reply. The current version of bagfile supports decoding any message type, including custom messages. Please look at github.com/jmscslgroup/bagpy and documentation jmscslgroup.github.io/bagpy
hi Rahul thank you for the video. I was able to convert some of my rosbag files into CSVs. Could you please make a video on how to add something (e.g a lidar calibration file) to an existing rosbag file? Thank you in advance.
I am not aware of any such use case where you can add any extra information not related to ROS messages to an existing bag file. Do you have any resources to point that out?