parametersextractrosbag

How to extract ROS parameters from bag file and save them in xlsx format?


I have record a ROS bag file. But when I play it one terminal with

rosbag play my_file.bag

and in the another terminal I do

rosparam list

its only shows these

/rosdistro
/roslaunch/uris/host_b_lenovo_ideapad_l340_15iwl__45865
/rosversion
/run_id

but not the parameters I have it in my bag file. What is the problem? How can I get the parameters and extract/save them as .xlsx file?

Thanks


Solution

  • This is because you never actually recorded params and your bag file doesn’t contain them. rosbag record only records topic data and not things stored on the param sever. There isn’t currently a standard way to roll param recording into a bag file. If you want that done you’ll have to write code to do it yourself.