Bag file: read_messages tuple timestamp
Python code API for reading rosbag files has read_messages
method, that returns a tuple with the topic name, msg and time. What is the difference between msg.header.stamp
and time
?
Is it that msg.header.stamp
is the timestamp created in the driver before publishing the msg, while time
is the timestamp when that msg got recorded in the bag file, i.e. received by the rosbag record
's subscriber?
Sorry, but I didn't find no clue in the documentation and I've not been able to guess it from the sources.
Thanks.