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

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
8

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

Comments

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 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 2,027 times

Last updated: Mar 25 '11