Duration
- class compas_fab.robots.Duration(secs, nsecs)[source]
Bases:
objectDuration consists of two integers: seconds and nanoseconds.
- Attributes
secs (int) – Integer representing number of seconds.
nsecs (int) – Integer representing number of nanoseconds.
Methods
__init__(secs, nsecs)from_data(data)Construct a duration from its data representation.
to_data()Return the data dictionary that represents the duration, and from which it can be reconstructed.
Attributes
dataThe data representing the duration.
secondsReturns the duration as floating-point seconds.