com.metaio.sdk.jni
Class Pose

java.lang.Object
  extended by com.metaio.sdk.jni.Pose

public class Pose
extends Object

Structure that defines a 3D pose.


Constructor Summary
Pose()
           
Pose(float _tx, float _ty, float _tz, float _q1, float _q2, float _q3, float _q4, float qual, int _cosID, String _cosName)
           
Pose(long cPtr, boolean cMemoryOwn)
           
Pose(Pose other)
           
 
Method Summary
 void delete()
           
 String getAdditionalValues()
          Room for additional values provided by a sensor that cannot be expressed with translation and rotation properly.
 int getCosID()
          The ID of the coordinate system.
 String getCosName()
          The name of the coordinate system (configured via SensorCOSID or COSName)
static long getCPtr(Pose obj)
           
 LLACoordinate getLlaCoordinate()
          if we have gloval coordinate frame;
 float getQuality()
          Value between 0 and 1 defining the tracking quality.
 Vector4d getRotation()
           
 double getTimeElapsed()
          Time lapsed (in ms) since current tracking state (determined from quality)
 Vector3d getTranslation()
          Translation component of the pose.
 boolean isDetected()
           
 boolean isLost()
           
 void setAdditionalValues(String value)
          Room for additional values provided by a sensor that cannot be expressed with translation and rotation properly.
 void setCosID(int value)
          The ID of the coordinate system.
 void setCosName(String value)
          The name of the coordinate system (configured via SensorCOSID or COSName)
 void setLlaCoordinate(LLACoordinate value)
          if we have gloval coordinate frame;
 void setQuality(float value)
          Value between 0 and 1 defining the tracking quality.
 void setRotation(Vector4d value)
           
 void setTimeElapsed(double value)
          Time lapsed (in ms) since current tracking state (determined from quality)
 void setTranslation(Vector3d value)
          Translation component of the pose.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pose

public Pose(long cPtr,
            boolean cMemoryOwn)

Pose

public Pose()

Pose

public Pose(float _tx,
            float _ty,
            float _tz,
            float _q1,
            float _q2,
            float _q3,
            float _q4,
            float qual,
            int _cosID,
            String _cosName)
Parameters:
_tx - Translation in x direction
_ty - Translation in y direction
_tz - Translation in z direction
_q1 - First component of the rotation quaternion
_q2 - Second component of the rotation quaternion
_q3 - Third component of the rotation quaternion
_q4 - Fourth component of the rotation quaternion
qual - Value between 0 and 1 defining the tracking
_cosID - the coordinate system ID quality. (1=tracking, 0=not tracking)
_cosName - Name of the coordinate system.

Pose

public Pose(Pose other)
Method Detail

getCPtr

public static long getCPtr(Pose obj)

delete

public void delete()

isLost

public boolean isLost()

isDetected

public boolean isDetected()

setTranslation

public void setTranslation(Vector3d value)
Translation component of the pose.


getTranslation

public Vector3d getTranslation()
Translation component of the pose.


setRotation

public void setRotation(Vector4d value)

getRotation

public Vector4d getRotation()

setLlaCoordinate

public void setLlaCoordinate(LLACoordinate value)
if we have gloval coordinate frame;


getLlaCoordinate

public LLACoordinate getLlaCoordinate()
if we have gloval coordinate frame;


setQuality

public void setQuality(float value)
Value between 0 and 1 defining the tracking quality.


getQuality

public float getQuality()
Value between 0 and 1 defining the tracking quality.


setTimeElapsed

public void setTimeElapsed(double value)
Time lapsed (in ms) since current tracking state (determined from quality)


getTimeElapsed

public double getTimeElapsed()
Time lapsed (in ms) since current tracking state (determined from quality)


setCosID

public void setCosID(int value)
The ID of the coordinate system.


getCosID

public int getCosID()
The ID of the coordinate system.


setCosName

public void setCosName(String value)
The name of the coordinate system (configured via SensorCOSID or COSName)


getCosName

public String getCosName()
The name of the coordinate system (configured via SensorCOSID or COSName)


setAdditionalValues

public void setAdditionalValues(String value)
Room for additional values provided by a sensor that cannot be expressed with translation and rotation properly.


getAdditionalValues

public String getAdditionalValues()
Room for additional values provided by a sensor that cannot be expressed with translation and rotation properly.