Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 475

Read a msg inside a bagfile

$
0
0
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?

Viewing all articles
Browse latest Browse all 475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>