uwcse.location.core
Class AngleMeasurement

java.lang.Object
  |
  +--uwcse.location.core.Measurement
        |
        +--uwcse.location.core.AngleMeasurement

public class AngleMeasurement
extends Measurement

The AngleMeasurement class captures am obsolute orientation such as a phased antenna array or a relative angle such as from a compass or tilt sensor. The pose is represented as a quaternion.

Version:
$Revision: 1.3 $
Author:
Jeffrey Hightower

Nested Class Summary
 
Nested classes inherited from class uwcse.location.core.Measurement
Measurement.TimestampComparator
 
Field Summary
protected  Quat4d m_quaternion
           
 
Fields inherited from class uwcse.location.core.Measurement
m_objectName, m_sensorName, m_timestamp
 
Constructor Summary
AngleMeasurement()
           
AngleMeasurement(String objectName, String compassName, Quat4d quaternion)
          Creates an angle measurement with the given quaternion.
AngleMeasurement(String objectName, String compassName, Vector3d eulerAngles)
          Creates an angle measurement with the given Euler angles.
AngleMeasurement(AngleMeasurement am)
          Creates a compass measurement as a copy of the given one.
 
Method Summary
 Object clone()
          Create a deep copy of this AngleMeasurement.
 boolean equals(Object o)
          Test this object for semantic equality with another AngleMeasurement.
 Quat4d getQuaternion()
          Get the angle quaternion value
 void setQuaternion(Quat4d quaternion)
          Set this measurement's value to the given quaternion.
 void setQuaternion(Vector3d eulerAngles)
          Set this measurement's value to the given Euler angles.
 String toString()
          Return a string representation of this AngleMeasurement.
 
Methods inherited from class uwcse.location.core.Measurement
getObjectName, getSensorName, getTimestamp, hashCode, setObjectName, setSensorName, setTimestamp
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_quaternion

protected Quat4d m_quaternion
Constructor Detail

AngleMeasurement

public AngleMeasurement()

AngleMeasurement

public AngleMeasurement(AngleMeasurement am)
Creates a compass measurement as a copy of the given one.


AngleMeasurement

public AngleMeasurement(String objectName,
                        String compassName,
                        Vector3d eulerAngles)
Creates an angle measurement with the given Euler angles.


AngleMeasurement

public AngleMeasurement(String objectName,
                        String compassName,
                        Quat4d quaternion)
Creates an angle measurement with the given quaternion.

Method Detail

equals

public boolean equals(Object o)
Test this object for semantic equality with another AngleMeasurement.

Overrides:
equals in class Measurement
Returns:
true if the object name, sensor name, and timestamp of both both Measurements are the same.

clone

public Object clone()
Create a deep copy of this AngleMeasurement.

Overrides:
clone in class Measurement

toString

public String toString()
Return a string representation of this AngleMeasurement.

Overrides:
toString in class Measurement

getQuaternion

public Quat4d getQuaternion()
Get the angle quaternion value


setQuaternion

public void setQuaternion(Quat4d quaternion)
Set this measurement's value to the given quaternion.


setQuaternion

public void setQuaternion(Vector3d eulerAngles)
Set this measurement's value to the given Euler angles.



This documentation is for the Location Stack v0.8. The latest distribution, the documentation, and the list of contributors to the Location Stack can always be found at http://portolano.cs.washington.edu/projects/location/

© Copyright 2004 University of Washington CSE