In the rosbag/Code API, we could see the msg by:
import rosbag
bag = rosbag.Bag('test.bag')
for topic, msg, t in bag.read_messages(topics=['chatter', 'numbers']):
print msg
bag.close()
When I try this, I see several msg entries. How could I select only one of entries to display?
![image description](/upfiles/15227291792382243.png)
Like, for example. How could I get the data vector only?
↧