How can i save data into bag file so that i can perform gmapping?
I am trying to save data into bag file to run gmapping later. I don't want to do it through command line using rosbag, rather i want to write a python script to save the data into bag file.
I tried saving just Laserscan messages into bag file by following this tutorial and it worked like charm. :)
But in order to simulate gmapping i have to save data from multiple topics i.e /tf and /scan ,so i tried using message filters to scan data from both tf and scan, but it always throwing me errors.
I think most people saved the data into bag file before, to simulate gmapping. Can someone tell me how they did it?
Thanks.