SensorFusionResult.Estimate


public sealed interface SensorFusionResult.Estimate extends SensorFusionResult

Known direct subclasses
SensorFusionResult.DriftingEstimate

An Estimate backed by odometry data only because raw UWB range has failed.

SensorFusionResult.ImpreciseEstimate

An Estimate backed by raw UWB range only because the odometry sensor has failed.

SensorFusionResult.PreciseEstimate

An Estimate backed by both odometry data and range data.


An estimate of the peer device's position produced from the sensor fusion algorithm.

The angles are the angle to the peer in the local device frame, that is, this device's Android Sensor Coordinate System. This differs from the boresight-relative angle of arrival measured by the UWB hardware and reported by a standard ranging session, see RangingPosition.

Summary

Public methods

abstract RangingMeasurement

The azimuth angle in degrees ([-180, 180]) of the ranging device, or null if not available.

abstract @NonNull UwbDevice

The peer UWB device.

abstract @NonNull RangingMeasurement

The line-of-sight distance in meters of the ranging device.

abstract long

The elapsed realtime in nanos from when the system booted up to this position estimate.

abstract RangingMeasurement

The elevation angle in degrees ([-90, 90]) of the ranging device, or null if not available.

Public methods

getAzimuth

Added in 1.1.0-alpha03
abstract RangingMeasurement getAzimuth()

The azimuth angle in degrees ([-180, 180]) of the ranging device, or null if not available. The angle is measured about the device's Z axis starting from its Y axis, the top edge of the device, and is positive clockwise when viewed from the front of the screen, so a positive azimuth means the peer is to the right of the device.

getDevice

abstract @NonNull UwbDevice getDevice()

The peer UWB device.

getDistance

Added in 1.1.0-alpha03
abstract @NonNull RangingMeasurement getDistance()

The line-of-sight distance in meters of the ranging device.

getElapsedRealtimeNanos

Added in 1.1.0-alpha03
abstract long getElapsedRealtimeNanos()

The elapsed realtime in nanos from when the system booted up to this position estimate.

getElevation

Added in 1.1.0-alpha03
abstract RangingMeasurement getElevation()

The elevation angle in degrees ([-90, 90]) of the ranging device, or null if not available. The angle is measured out of the device's XY plane and is positive towards the device's Z axis, so a positive elevation means the peer is towards the front of the screen.