2Stand-ins for `rospy.rostime` in ROS2.
4------------------------------------------------------------------------------
5This file is part of rosros - simple unified interface to ROS1 / ROS2.
6Released under the BSD License.
11------------------------------------------------------------------------------
13## @namespace rosros.rospify.rostime
19## Stand-in for `rospy.Duration`
20Duration = rclpy.duration.Duration
22## Stand-in for `rospy.Time`
27 """Returns current ROS time as `rclpy.Time`."""
28 return ros2.get_rostime()
32 """Returns the current ROS time as UNIX timestamp float."""
33 return ros2.to_sec(ros2.get_rostime())
37 "Duration",
"Time",
"get_rostime",
"get_time"
get_time()
Returns the current ROS time as UNIX timestamp float.