Is it possible to see the list of topics available in the bag file while running the bag player? [closed]
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,
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.