Package org.vast.ogc.geopose
Class PoseImpl
java.lang.Object
org.vast.ogc.geopose.PoseImpl
- All Implemented Interfaces:
 Serializable,Pose
- See Also:
 
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionGets the URI of the local frame whose pose is expressed by this objectGets the URI of the local tangent plane (LTP) reference frame (topocentric frame).double[]Gets the orientation coordinates If 3 coordinates are provided, yaw/pitch/roll Euler angles in degrees about the local (rotated) axes z, y, and x, applied in that order, are assumed. If 4 coordinates are provided, unit quaternion coordinates in the order x,y,z,w are assumed.double[]Gets the position coordinates (2D or 3D)Gets the URI of the reference frame with respect to which the pose is providedvoidsetLocalFrame(String uri) Sets the local frame whose pose is expressed by this objectvoidSets the LTP reference framevoidsetOrientation(double[] coords) Sets the orientation coordinates (3 components for Euler angles, 4 for quaternions)voidsetPosition(double[] coords) Sets the position coordinates (2D or 3D)voidsetReferenceFrame(String uri) Sets the pose reference frameConvert pose to a geographic location when possible 
- 
Field Details
- 
refFrame
 - 
ltpRefFrame
 - 
localFrame
 - 
position
protected double[] position - 
orientation
protected double[] orientation 
 - 
 - 
Constructor Details
- 
PoseImpl
public PoseImpl() 
 - 
 - 
Method Details
- 
getReferenceFrame
Description copied from interface:PoseGets the URI of the reference frame with respect to which the pose is provided- Specified by:
 getReferenceFramein interfacePose- Returns:
 - the pose reference frame
 
 - 
setReferenceFrame
Description copied from interface:PoseSets the pose reference frame- Specified by:
 setReferenceFramein interfacePose
 - 
getLTPReferenceFrame
Description copied from interface:PoseGets the URI of the local tangent plane (LTP) reference frame (topocentric frame). This is only needed if the main reference frame is a geographic or other planetary CRS and orientation is provided relative to the LTP frame.- Specified by:
 getLTPReferenceFramein interfacePose- Returns:
 - the LTP reference frame
 
 - 
setLTPReferenceFrame
Description copied from interface:PoseSets the LTP reference frame- Specified by:
 setLTPReferenceFramein interfacePose
 - 
getLocalFrame
Description copied from interface:PoseGets the URI of the local frame whose pose is expressed by this object- Specified by:
 getLocalFramein interfacePose- Returns:
 - the pose local frame
 
 - 
setLocalFrame
Description copied from interface:PoseSets the local frame whose pose is expressed by this object- Specified by:
 setLocalFramein interfacePose
 - 
getPosition
public double[] getPosition()Description copied from interface:PoseGets the position coordinates (2D or 3D)- Specified by:
 getPositionin interfacePose- Returns:
 - The position coordinates in the order specified by the reference frame
 
 - 
setPosition
public void setPosition(double[] coords) Description copied from interface:PoseSets the position coordinates (2D or 3D)- Specified by:
 setPositionin interfacePose- Parameters:
 coords- position coordinates in the order specified by the reference frame
 - 
getOrientation
public double[] getOrientation()Description copied from interface:PoseGets the orientation coordinates- If 3 coordinates are provided, yaw/pitch/roll Euler angles in degrees about the local (rotated) axes z, y, and x, applied in that order, are assumed.
 - If 4 coordinates are provided, unit quaternion coordinates in the order x,y,z,w are assumed.
 - Specified by:
 getOrientationin interfacePose
 - 
toLocation
Description copied from interface:PoseConvert pose to a geographic location when possible- Specified by:
 toLocationin interfacePose- Returns:
 - A point object with coordinates expressed in a geographic coordinate system
 
 - 
setOrientation
public void setOrientation(double[] coords) Description copied from interface:PoseSets the orientation coordinates (3 components for Euler angles, 4 for quaternions)- Specified by:
 setOrientationin interfacePose- See Also:
 
 
 -