ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

convert std_msgs/Time to float

asked 2021-11-17 11:43:52 -0600

sml105012013 gravatar image

I'm totally new to ROS Is it possible to convert std_msgs/Time to float by using python?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-11-17 18:26:17 -0600

janindu gravatar image

Just use the to_sec method.

time_float = msg.header.stamp.to_sec()

ROS docs : http://wiki.ros.org/rospy/Overview/Ti...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-11-17 11:43:52 -0600

Seen: 479 times

Last updated: Nov 17 '21