SensorFusionResult.Estimate


sealed interface SensorFusionResult.Estimate : 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 properties

RangingMeasurement?

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

UwbDevice

The peer UWB device.

RangingMeasurement

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

Long

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

RangingMeasurement?

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

Public properties

azimuth

Added in 1.1.0-alpha03
val azimuth: RangingMeasurement?

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.

device

val device: UwbDevice

The peer UWB device.

distance

Added in 1.1.0-alpha03
val distance: RangingMeasurement

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

elapsedRealtimeNanos

Added in 1.1.0-alpha03
val elapsedRealtimeNanos: Long

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

elevation

Added in 1.1.0-alpha03
val elevation: RangingMeasurement?

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.