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 providedvoid
setLocalFrame
(String uri) Sets the local frame whose pose is expressed by this objectvoid
Sets the LTP reference framevoid
setOrientation
(double[] coords) Sets the orientation coordinates (3 components for Euler angles, 4 for quaternions)void
setPosition
(double[] coords) Sets the position coordinates (2D or 3D)void
setReferenceFrame
(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:Pose
Gets the URI of the reference frame with respect to which the pose is provided- Specified by:
getReferenceFrame
in interfacePose
- Returns:
- the pose reference frame
-
setReferenceFrame
Description copied from interface:Pose
Sets the pose reference frame- Specified by:
setReferenceFrame
in interfacePose
-
getLTPReferenceFrame
Description copied from interface:Pose
Gets 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:
getLTPReferenceFrame
in interfacePose
- Returns:
- the LTP reference frame
-
setLTPReferenceFrame
Description copied from interface:Pose
Sets the LTP reference frame- Specified by:
setLTPReferenceFrame
in interfacePose
-
getLocalFrame
Description copied from interface:Pose
Gets the URI of the local frame whose pose is expressed by this object- Specified by:
getLocalFrame
in interfacePose
- Returns:
- the pose local frame
-
setLocalFrame
Description copied from interface:Pose
Sets the local frame whose pose is expressed by this object- Specified by:
setLocalFrame
in interfacePose
-
getPosition
public double[] getPosition()Description copied from interface:Pose
Gets the position coordinates (2D or 3D)- Specified by:
getPosition
in interfacePose
- Returns:
- The position coordinates in the order specified by the reference frame
-
setPosition
public void setPosition(double[] coords) Description copied from interface:Pose
Sets the position coordinates (2D or 3D)- Specified by:
setPosition
in interfacePose
- Parameters:
coords
- position coordinates in the order specified by the reference frame
-
getOrientation
public double[] getOrientation()Description copied from interface:Pose
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.
- Specified by:
getOrientation
in interfacePose
-
toLocation
Description copied from interface:Pose
Convert pose to a geographic location when possible- Specified by:
toLocation
in interfacePose
- Returns:
- A point object with coordinates expressed in a geographic coordinate system
-
setOrientation
public void setOrientation(double[] coords) Description copied from interface:Pose
Sets the orientation coordinates (3 components for Euler angles, 4 for quaternions)- Specified by:
setOrientation
in interfacePose
- See Also:
-