lejos.localization
Class Pose

java.lang.Object
  extended by lejos.localization.Pose

public class Pose
extends Object

Represents a pose of the robot. The pose is its x,y position and its heading angle. Also supports generation of a line representing a range measurement from this pose.

Author:
Lawrie Griffiths

WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.

Field Summary
 float angle
           
 float x
           
 float y
           
 
Constructor Summary
Pose(float x, float y, float angle)
           
 
Method Summary
 Line getRangeLine()
          Generate a line representing a range reading from a range sensor with this pose
 void setMaxRange(float range)
          Set the maximum value for a range reading from this pose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public float x

y

public float y

angle

public float angle
Constructor Detail

Pose

public Pose(float x,
            float y,
            float angle)
Method Detail

getRangeLine

public Line getRangeLine()
Generate a line representing a range reading from a range sensor with this pose

Returns:
the line

setMaxRange

public void setMaxRange(float range)
Set the maximum value for a range reading from this pose

Parameters:
range - the maximum range