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

I tested the code and it works as it is.

Later I found out, that the string compliant with ISO-8601 can represent time with various precision.

Anyway the output I got from the ROS timestamp using the function:

boost::posix_time::to_iso_extended_string(my_posix_time)

looked like this:

iso_time_str = 2017-01-17T21:02:40.289279

I needed only seconds so I am happy with the result. Thank you for quick answer.