dLife Home Page

dlife.robot.player
Class StagePositionData

java.lang.Object
  extended by dlife.robot.player.StagePositionData

public class StagePositionData
extends Object

A simple object to hold position data returned from a Stage simulation. X and Y data are in meters relative to the center. Theta should be in degrees.

Version:
April 25, 2010
Author:
Russell Toris, Dickinson College

Constructor Summary
StagePositionData(double x, double y, double theta)
          Create a StagePositionData with the given x, y, and theta values.
 
Method Summary
 double getTheta()
          Get the angle in degrees.
 double getX()
          Get the position in the x direction in meters.
 double getY()
          Get the position in the y direction in meters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StagePositionData

public StagePositionData(double x,
                         double y,
                         double theta)
Create a StagePositionData with the given x, y, and theta values.

Parameters:
x - the position in the x direction in meters
y - the position in the y direction in meters
theta - the angle in degrees
Method Detail

getX

public double getX()
Get the position in the x direction in meters.

Returns:
the position in the x direction in meters

getY

public double getY()
Get the position in the y direction in meters

Returns:
the position in the y direction in meters

getTheta

public double getTheta()
Get the angle in degrees.

Returns:
the angle in degrees

dLife Home Page