ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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.