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