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

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

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 reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by stevemacenski
close date 2020-03-16 14:43:50.312595


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 image Toothless  ( 2018-04-06 06:27:15 -0500 )edit