org.lejon.util
Class Pose

java.lang.Object
  extended byorg.lejon.util.Pose

public class Pose
extends java.lang.Object

Wrapper class for representing the current position of the drive.


Constructor Summary
Pose()
          Creates a new instance of Pose
 
Method Summary
 Pose getPose()
          Returns the local pose.
 float getTheta()
          Returns the direction angle.
 float getXPos()
          Returns the x-value of local pose.
 float getYPos()
          Returns the y-value of local pose.
 void setPose(float xPos, float yPos, float theta)
          Sets the values of pose.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pose

public Pose()
Creates a new instance of Pose

Method Detail

getPose

public Pose getPose()
Returns the local pose.

Returns:
this instance

getXPos

public float getXPos()
Returns the x-value of local pose.

Returns:
x

getYPos

public float getYPos()
Returns the y-value of local pose.

Returns:
y

getTheta

public float getTheta()
Returns the direction angle.

Returns:
theta

setPose

public void setPose(float xPos,
                    float yPos,
                    float theta)
Sets the values of pose.

Parameters:
xPos - x value of the position
yPos - y value of the position
theta - the direction angle