rosros 0.2.5
Simple unified interface to ROS1 / ROS2 Python API
Loading...
Searching...
No Matches
rosros.rclify.clock.Clock Class Reference

Simple clock interface mimicking `rclpy.clock.Clock`, only providing `now()`. More...

Public Member Functions

 __init__ (self, *clock_type=ClockType.SYSTEM_TIME)
 Raises error if unknown clock type.
 
 __repr__ (self)
 
 now (self)
 Returns `rospy.Time` according to clock type.
 

Public Attributes

 clock_type
 

Detailed Description

Simple clock interface mimicking `rclpy.clock.Clock`, only providing `now()`.

Definition at line 35 of file clock.py.

Constructor & Destructor Documentation

◆ __init__()

rosros.rclify.clock.Clock.__init__ (   self,
clock_type = ClockType.SYSTEM_TIME 
)

Raises error if unknown clock type.

Definition at line 39 of file clock.py.

Member Function Documentation

◆ __repr__()

rosros.rclify.clock.Clock.__repr__ (   self)

Definition at line 44 of file clock.py.

◆ now()

rosros.rclify.clock.Clock.now (   self)

Returns `rospy.Time` according to clock type.

Definition at line 47 of file clock.py.

Member Data Documentation

◆ clock_type

rosros.rclify.clock.Clock.clock_type

Definition at line 42 of file clock.py.


The documentation for this class was generated from the following file: