Class Orientation
The orientation may originate from different sources, such as the sensors of a smartphone or an external IMU.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe frame that is used with the orientation.Heading (degree).Estimated heading accuracy (degree).Magnetic declination (degree).Pitch (degree).Estimated pitch accuracy (degree).Roll (degree).Estimated roll accuracy (degree).The time instant at which the orientation was determined, relative to the device boot time (millisecond). -
Constructor Summary
ConstructorsConstructorDescriptionOrientation(BodyFrame frame, Double heading, Double headingAccuracy, Double magneticDeclination, Double pitch, Double pitchAccuracy, Double roll, Double rollAccuracy, Duration timestamp) Constructs a new Orientation instance using the provided parameters.Orientation(Double heading, Double pitch, Double roll, Duration timestamp) Constructs a new Orientation instance using the provided parameters. -
Method Summary
-
Field Details
-
frame
The frame that is used with the orientation. If not available, the value is
null. -
heading
Heading (degree). Rotation about the vertical axis or the clockwise angle between the compass direction and the true north. If available, the value is guaranteed to be in the range [0,360); North is at 0 degrees, East is at 90 degrees, South is at 180 degrees, and West is at 270 degrees. If not available, the value is
null. -
headingAccuracy
Estimated heading accuracy (degree). 68th percentile of individual accuracies. If not available, the value is
null. -
magneticDeclination
Magnetic declination (degree). The clockwise angle between the true north and the magnetic north. If not available, the value is
null. -
pitch
Pitch (degree). Rotation about the lateral axis or the angle between the horizontal plane and the plane parallel to the ground. If available, the value is guaranteed to be in the range [-180,180]; positive value means that the horizontal plane is tilted up, negative value means that the horizontal plane is tilted down, and zero means that the planes are parallel. If not available, the value is
null. -
pitchAccuracy
Estimated pitch accuracy (degree). 68th percentile of individual accuracies. If not available, the value is
null. -
roll
Roll (degree). Rotation about the longitudal axis or the angle between the vertical plane and the plane perpendicular to the ground. If available, the value is guaranteed to be in the range [-180,180]; positive value means that the vertical plane is tilted to right, negative value means that the vertical plane is tilted to left, and zero means that the planes are parallel. If not available, the value is
null. -
rollAccuracy
Estimated roll accuracy (degree). 68th percentile of individual accuracies. If not available, the value is
null. -
timestamp
The time instant at which the orientation was determined, relative to the device boot time (millisecond). If not available, the value is
null.
-
-
Constructor Details
-
Orientation
public Orientation(@Nullable Double heading, @Nullable Double pitch, @Nullable Double roll, @Nullable Duration timestamp) Constructs a new Orientation instance using the provided parameters. The rest of the member variables will be initialized to
null.- Parameters:
heading-Heading (degree). Rotation about the vertical axis or the clockwise angle between the compass direction and the true north. If available, the value is guaranteed to be in the range [0,360); North is at 0 degrees, East is at 90 degrees, South is at 180 degrees, and West is at 270 degrees. If not available, the value is
null.pitch-Pitch (degree). Rotation about the lateral axis or the angle between the horizontal plane and the plane parallel to the ground. If available, the value is guaranteed to be in the range [-180,180]; positive value means that the horizontal plane is tilted up, negative value means that the horizontal plane is tilted down, and zero means that the planes are parallel. If not available, the value is
null.roll-Roll (degree). Rotation about the longitudal axis or the angle between the vertical plane and the plane perpendicular to the ground. If available, the value is guaranteed to be in the range [-180,180]; positive value means that the vertical plane is tilted to right, negative value means that the vertical plane is tilted to left, and zero means that the planes are parallel. If not available, the value is
null.timestamp-The time instant at which the orientation was determined, relative to the device boot time (millisecond). If not available, the value is
null.
-
Orientation
public Orientation(@Nullable BodyFrame frame, @Nullable Double heading, @Nullable Double headingAccuracy, @Nullable Double magneticDeclination, @Nullable Double pitch, @Nullable Double pitchAccuracy, @Nullable Double roll, @Nullable Double rollAccuracy, @Nullable Duration timestamp) Constructs a new Orientation instance using the provided parameters.
- Parameters:
frame-The frame that is used with the orientation. If not available, the value is
null.heading-Heading (degree). Rotation about the vertical axis or the clockwise angle between the compass direction and the true north. If available, the value is guaranteed to be in the range [0,360); North is at 0 degrees, East is at 90 degrees, South is at 180 degrees, and West is at 270 degrees. If not available, the value is
null.headingAccuracy-Estimated heading accuracy (degree). 68th percentile of individual accuracies. If not available, the value is
null.magneticDeclination-Magnetic declination (degree). The clockwise angle between the true north and the magnetic north. If not available, the value is
null.pitch-Pitch (degree). Rotation about the lateral axis or the angle between the horizontal plane and the plane parallel to the ground. If available, the value is guaranteed to be in the range [-180,180]; positive value means that the horizontal plane is tilted up, negative value means that the horizontal plane is tilted down, and zero means that the planes are parallel. If not available, the value is
null.pitchAccuracy-Estimated pitch accuracy (degree). 68th percentile of individual accuracies. If not available, the value is
null.roll-Roll (degree). Rotation about the longitudal axis or the angle between the vertical plane and the plane perpendicular to the ground. If available, the value is guaranteed to be in the range [-180,180]; positive value means that the vertical plane is tilted to right, negative value means that the vertical plane is tilted to left, and zero means that the planes are parallel. If not available, the value is
null.rollAccuracy-Estimated roll accuracy (degree). 68th percentile of individual accuracies. If not available, the value is
null.timestamp-The time instant at which the orientation was determined, relative to the device boot time (millisecond). If not available, the value is
null.
-
-
Method Details