Ask Your Question
0

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
3

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

kwc gravatar image

Please see:

http://www.ros.org/wiki/rospy/Overview/Time

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

[hide preview]

Stats

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

Seen: 299 times

Last updated: Mar 25 '11