# SensorFusionResult.Estimate

Artifact: [androidx.core.uwb:uwb](https://developer.android.com/jetpack/androidx/releases/core-uwb) [View Source](https://cs.android.com/search?q=file:androidx/core/uwb/SensorFusionResult.kt+class:androidx.core.uwb.SensorFusionResult.Estimate) Added in [1.1.0-alpha03](https://developer.android.com/jetpack/androidx/releases/core-uwb#1.1.0-alpha03)

*** ** * ** ***


```
public sealed interface SensorFusionResult.Estimate extends SensorFusionResult
```

<br />

Known direct subclasses [SensorFusionResult.DriftingEstimate](https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.DriftingEstimate), [SensorFusionResult.ImpreciseEstimate](https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.ImpreciseEstimate), [SensorFusionResult.PreciseEstimate](https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.PreciseEstimate)

|---|---|
| `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.DriftingEstimate` | An `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.Estimate` backed by odometry data only because raw UWB range has failed. |
| `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.ImpreciseEstimate` | An `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.Estimate` backed by raw UWB range only because the odometry sensor has failed. |
| `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.PreciseEstimate` | An `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.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](https://developer.android.com/guide/topics/sensors/sensors_overview#sensors-coords). This differs from the boresight-relative angle of arrival measured by the UWB hardware and reported by a standard ranging session, see `https://developer.android.com/reference/androidx/core/uwb/RangingPosition`.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/androidx/core/uwb/RangingMeasurement` | `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.Estimate#getAzimuth()()` The azimuth angle in degrees (`[-180, 180]`) of the ranging device, or null if not available. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/uwb/UwbDevice` | `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.Estimate#getDevice()()` The peer UWB device. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/uwb/RangingMeasurement` | `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.Estimate#getDistance()()` The line-of-sight distance in meters of the ranging device. |
| `abstract long` | `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.Estimate#getElapsedRealtimeNanos()()` The elapsed realtime in nanos from when the system booted up to this position estimate. |
| `abstract https://developer.android.com/reference/androidx/core/uwb/RangingMeasurement` | `https://developer.android.com/reference/androidx/core/uwb/SensorFusionResult.Estimate#getElevation()()` 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](https://developer.android.com/jetpack/androidx/releases/core-uwb#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](https://developer.android.com/jetpack/androidx/releases/core-uwb#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](https://developer.android.com/jetpack/androidx/releases/core-uwb#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](https://developer.android.com/jetpack/androidx/releases/core-uwb#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.