rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
Loading...
Searching...
No Matches
rosros.rospify.rostime Namespace Reference

Stand-ins for `rospy.rostime` in ROS2. More...

Functions

 get_rostime ()
 Returns current ROS time as `rclpy.Time`.
 
 get_time ()
 Returns the current ROS time as UNIX timestamp float.
 

Variables

 Duration = rclpy.duration.Duration
 Stand-in for `rospy.Duration`.
 
 Time = rclpy.time.Time
 Stand-in for `rospy.Time`.
 

Detailed Description

Stand-ins for `rospy.rostime` in ROS2.

Function Documentation

◆ get_rostime()

rosros.rospify.rostime.get_rostime ( )

Returns current ROS time as `rclpy.Time`.

Definition at line 26 of file rostime.py.

◆ get_time()

rosros.rospify.rostime.get_time ( )

Returns the current ROS time as UNIX timestamp float.

Definition at line 31 of file rostime.py.

Variable Documentation

◆ Duration

rosros.rospify.rostime.Duration = rclpy.duration.Duration

Stand-in for `rospy.Duration`.

Definition at line 20 of file rostime.py.

◆ Time

rosros.rospify.rostime.Time = rclpy.time.Time

Stand-in for `rospy.Time`.

Definition at line 23 of file rostime.py.