Public Member Functions | |
Duration | add (Duration d) |
int | compareTo (Duration d) |
Duration () | |
Duration (int secs, int nsecs) | |
Duration (double secs) | |
Duration (Duration t) | |
boolean | equals (Object obj) |
int | hashCode () |
boolean | isNegative () |
boolean | isPositive () |
boolean | isZero () |
void | normalize () |
Duration | subtract (Duration d) |
String | toString () |
long | totalNsecs () |
Static Public Member Functions | |
static Duration | fromMillis (long durationInMillis) |
static Duration | fromNano (long durationInNs) |
Public Attributes | |
int | nsecs |
int | secs |
Static Public Attributes | |
static final Duration | MAX_VALUE = new Duration(Integer.MAX_VALUE, 999999999) |
ROS Duration representation. Time and Duration are primitive types in ROS. ROS represents each as two 32-bit integers: seconds and nanoseconds since epoch.
Definition at line 48 of file Duration.java.
org.ros.message.Duration.Duration | ( | ) | [inline] |
Definition at line 55 of file Duration.java.
org.ros.message.Duration.Duration | ( | int | secs, |
int | nsecs | ||
) | [inline] |
Definition at line 58 of file Duration.java.
org.ros.message.Duration.Duration | ( | double | secs | ) | [inline] |
Definition at line 64 of file Duration.java.
org.ros.message.Duration.Duration | ( | Duration | t | ) | [inline] |
Definition at line 70 of file Duration.java.
Duration org.ros.message.Duration.add | ( | Duration | d | ) | [inline] |
Definition at line 75 of file Duration.java.
int org.ros.message.Duration.compareTo | ( | Duration | d | ) | [inline] |
Definition at line 157 of file Duration.java.
boolean org.ros.message.Duration.equals | ( | Object | obj | ) | [inline] |
Check for equality between Time objects. equals() does not normalize Time representations, so fields must match exactly.
Definition at line 141 of file Duration.java.
static Duration org.ros.message.Duration.fromMillis | ( | long | durationInMillis | ) | [inline, static] |
Definition at line 83 of file Duration.java.
static Duration org.ros.message.Duration.fromNano | ( | long | durationInNs | ) | [inline, static] |
Definition at line 89 of file Duration.java.
int org.ros.message.Duration.hashCode | ( | ) | [inline] |
Definition at line 128 of file Duration.java.
boolean org.ros.message.Duration.isNegative | ( | ) | [inline] |
Definition at line 118 of file Duration.java.
boolean org.ros.message.Duration.isPositive | ( | ) | [inline] |
Definition at line 114 of file Duration.java.
boolean org.ros.message.Duration.isZero | ( | ) | [inline] |
Definition at line 110 of file Duration.java.
void org.ros.message.Duration.normalize | ( | ) | [inline] |
Definition at line 95 of file Duration.java.
Duration org.ros.message.Duration.subtract | ( | Duration | d | ) | [inline] |
Definition at line 79 of file Duration.java.
String org.ros.message.Duration.toString | ( | ) | [inline] |
Definition at line 123 of file Duration.java.
long org.ros.message.Duration.totalNsecs | ( | ) | [inline] |
Definition at line 106 of file Duration.java.
final Duration org.ros.message.Duration.MAX_VALUE = new Duration(Integer.MAX_VALUE, 999999999) [static] |
Definition at line 50 of file Duration.java.
Definition at line 53 of file Duration.java.
Definition at line 52 of file Duration.java.