ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A
Ask Your Question

Does rospy not have walltime?

asked 2011-03-25 08:25:11 -0500

I was under the impression that anything in roscpp should also be available in rospy. WallTime is in roscpp but I can't find it in rospy.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2011-03-25 18:49:28 -0500

kwc gravatar image

Please see:

for an overview of how you access time in rospy. rospy doesn't provide an explicit 'WallTime' because Python comes with the time module; in C++, WallTime is basically a convenience wrapper around various POSIX and Win32 inconsistencies.

If you wish to convert it to a rospy.Time instance you can use:

t = rospy.Time.from_sec(time.time())
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-03-25 08:25:11 -0500

Seen: 571 times

Last updated: Mar 25 '11