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

Just use the to_sec method.

time_float = msg.header.stamp.to_sec()

ROS docs : http://wiki.ros.org/rospy/Overview/Time#Converting_Time_and_Duration_instances