Ask Your Question

Does rospy not have walltime?

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

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 -0600

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


So there's no equivalent for setting up rospy.Timer() with a callback if there isn't a rospy.WallTimer()?

lucasw gravatar image lucasw  ( 2021-08-31 13:13:26 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


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

Seen: 1,617 times

Last updated: Mar 25 '11