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

Revision history [back]

click to hide/show revision 1
initial version

From a look at the code (image_saver.cpp) it doesn't look like including the timestamp in the filename is supported right now.

The video_recorder node does support adding a timestamp since ros-perception/image_pipeline#203. Perhaps that approach could be ported to image_saver.cpp, but note that image_saver uses boost::format.

Note btw that sensor_msgs/Image does not have a header, so any timestamp added would be the time at which the message is received, not the stamp at which it was published.

From a look at the code (image_saver.cpp) it doesn't look like including the timestamp in the filename is supported right now.

The video_recorder node does support adding a timestamp since ros-perception/image_pipeline#203. Perhaps that approach could be ported to image_saver.cpp, but note that image_saver uses boost::format.

Note btw that sensor_msgs/Image does not have a header, so any timestamp added would be the time at which the message is received, not the stamp at which it was published.

Edit: I misremembered, sensor_msgs/Image does have a Header, so the stamp should be there (if set by the publishing node of course). See sensor_msgs/Image.