Indices and tables¶
-
class
genpy.
Time
(secs=0, nsecs=0)[source]¶ Time contains the ROS-wide ‘time’ primitive representation.
It consists of two integers: seconds since epoch and nanoseconds since seconds. Time instances are mutable.
-
nsecs
¶
-
secs
¶
-
-
class
genpy.
Duration
(secs=0, nsecs=0)[source]¶ Duration represents the ROS ‘duration’ primitive.
It consists of two integers: seconds and nanoseconds. The Duration class allows you to add and subtract Duration instances, including adding and subtracting from
Time
instances.-
nsecs
¶
-
secs
¶
-
-
class
genpy.
TVal
(secs=0, nsecs=0)[source]¶ Base class of
Time
andDuration
representations.Representation is secs+nanoseconds since epoch.
-
canon
()[source]¶ Canonicalize the field representation in this instance.
Should only be used when manually setting secs/nsecs slot values, as in deserialization.
-
classmethod
from_sec
(float_secs)[source]¶ Create new TVal instance using time.time() value (float seconds).
Parameters: float_secs – time value in time.time() format, float
Returns: TVal
instance for specified time
-
nsecs
¶
-
secs
¶
-