| 
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.ridgesoft.robotics.Pose
public class Pose
Holds x and y Cartesian coordinates and a heading to encapsulate a robot's pose in an immutable object.
| Field Summary | |
|---|---|
 float | 
heading
The heading in radians.  | 
 float | 
x
The x coordinate in whatever units the software uses to measure distance.  | 
 float | 
y
The y coordinate in whatever units the software uses to measure distance.  | 
| Constructor Summary | |
|---|---|
Pose(float x,
     float y,
     float heading)
Constructs an immutable Pose object.  | 
|
| Method Summary | |
|---|---|
 String | 
toString()
Returns a String containing the current pose in the format x, y, heading.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait | 
| Field Detail | 
|---|
public final float heading
public final float x
public final float y
| Constructor Detail | 
|---|
public Pose(float x,
            float y,
            float heading)
x - x coordinate in whatever units the software usesy - y coordinate in whatever units the software usesheading - heading in radians| Method Detail | 
|---|
public String toString()
The heading is in degrees.
toString in class Object
  | 
RoboJDETM v2.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||