Home | Trees | Indices | Help |
|
---|
|
object --+ | TVal --+ | Duration
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.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
Duration |
|
||
Duration |
|
||
|
|||
|
|||
Duration |
|
||
Duration |
|
||
Duration |
|
||
Duration |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
|
|||
long |
|
||
float |
|
||
Inherited from |
Static Methods | |||
Duration |
|
Properties | |
nsecs | |
secs | |
Inherited from |
Method Details |
Create new Duration instance. secs and nsecs are integers and correspond to the ROS 'duration' primitive.
|
repr(x)
|
Create new Duration instance from float seconds format.
|
|
Absolute value of this duration
|
Add duration to this duration, or this duration to a time, creating a new time value as a result. |
Subtract duration from this duration, returning a new duration |
Multiply this duration by an integer or float
|
Floor divide this duration by an integer or float
|
Divide this duration by an integer or float
|
Divide this duration by an integer or float
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 11 12:17:41 2013 | http://epydoc.sourceforge.net |