Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
org.ros.message.Duration Class Reference

List of all members.

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)

Detailed Description

ROS Duration representation. Time and Duration are primitive types in ROS. ROS represents each as two 32-bit integers: seconds and nanoseconds since epoch.

http://www.ros.org/wiki/msg

Author:
Jason Wolfe
kwc@willowgarage.com (Ken Conley)

Definition at line 48 of file Duration.java.


Constructor & Destructor Documentation

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.

Definition at line 70 of file Duration.java.


Member Function Documentation

Definition at line 75 of file Duration.java.

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.

Definition at line 128 of file Duration.java.

Definition at line 118 of file Duration.java.

Definition at line 114 of file Duration.java.

boolean org.ros.message.Duration.isZero ( ) [inline]

Definition at line 110 of file Duration.java.

Definition at line 95 of file Duration.java.

Definition at line 79 of file Duration.java.

String org.ros.message.Duration.toString ( ) [inline]

Definition at line 123 of file Duration.java.

Definition at line 106 of file Duration.java.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


rosjava_bootstrap
Author(s): Daniel Stonier , Damon Kohler
autogenerated on Fri Aug 28 2015 12:41:44