Duration represents the ROS 'duration' primitive, which 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.
|
|
|
__getstate__(self)
support for Python pickling |
source code
|
|
|
__setstate__(self,
state)
support for Python pickling |
source code
|
|
|
|
Duration
|
|
Duration
|
|
|
__add__(self,
other)
Add duration to this duration, or this duration to a time, creating a
new time value as a result. |
source code
|
|
|
__sub__(self,
other)
Subtract duration from this duration, returning a new duration |
source code
|
|
Duration
|
|
Duration
|
|
Duration
|
|
Duration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
long
|
|
float
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|