convert std_msgs/Time to float
I'm totally new to ROS Is it possible to convert std_msgs/Time to float by using python?
add a comment
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
I'm totally new to ROS Is it possible to convert std_msgs/Time to float by using python?
Just use the to_sec
method.
time_float = msg.header.stamp.to_sec()
ROS docs : http://wiki.ros.org/rospy/Overview/Ti...
Asked: 2021-11-17 11:43:52 -0500
Seen: 305 times
Last updated: Nov 17 '21