Is it possible to see the list of topics available in the bag file while running the bag player?

asked 2018-04-06 04:34:48 -0600

Toothless gravatar image

I know there exist a command "rosbag info" that gives the detail of the bag file. But I want the rosbag player to print all the topics on which it will be going publish data once. Is it possible? If yes, then what should be the best way? Thank you very much,

edit retag flag offensive close merge delete


I found the the solution by checking the player.cpp file. In publish function there is loop which iterate over connections. If I store the value of c->topic in list then I can printout the list of the topics in .bag file. Does anybody has better idea then please let me know.

Toothless gravatar imageToothless ( 2018-04-06 06:27:15 -0600 )edit