Duration
- class compas_fab.robots.Duration(secs, nsecs)[source]
Bases:
object
Duration 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)Initialize self.
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
data
The data representing the duration.
seconds
Returns the duration as floating-point seconds.