ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Yes this definitely possible. To clarify the timestamp in ROS will be the number of seconds from the start of the bag file, not an absolute date like the unix timestamp.

Each image message includes a header data structure which contains the details of its coordinate frame and timestamp. You can access it's data members to get the time then format these into a string. You can either create a separate csv file to map times to image file names or you could write the timestamp directly into the file name.