EcefAbsolutePoseEstimator

Estimates pose with 6DOF (Degrees of Freedom) containing absolute attitude and position using ECEF navigation.

Parameters

useAccurateAttitudeEstimator

true to use improved absolute attitude estimator, false otherwise.

Constructors

Link copied to clipboard
constructor(context: Context, location: Location, initialVelocity: NEDVelocity = NEDVelocity(), sensorDelay: SensorDelay = SensorDelay.GAME, useAccelerometerForAttitudeEstimation: Boolean = false, accelerometerSensorType: AccelerometerSensorType = AccelerometerSensorType.ACCELEROMETER_UNCALIBRATED, magnetometerSensorType: MagnetometerSensorType = MagnetometerSensorType.MAGNETOMETER_UNCALIBRATED, accelerometerAveragingFilter: AveragingFilter = LowPassAveragingFilter(), gyroscopeSensorType: GyroscopeSensorType = GyroscopeSensorType.GYROSCOPE_UNCALIBRATED, worldMagneticModel: WorldMagneticModel? = null, timestamp: Date = Date(), useWorldMagneticModel: Boolean = false, useAccurateLevelingEstimator: Boolean = true, useAccurateRelativeGyroscopeAttitudeEstimator: Boolean = true, useAccurateAttitudeEstimator: Boolean = true, estimatePoseTransformation: Boolean = false, poseAvailableListener: EcefAbsolutePoseEstimator.OnPoseAvailableListener? = null, accelerometerMeasurementListener: AccelerometerSensorCollector.OnMeasurementListener? = null, gyroscopeMeasurementListener: GyroscopeSensorCollector.OnMeasurementListener? = null, magnetometerMeasurementListener: MagnetometerSensorCollector.OnMeasurementListener? = null, gravityEstimationListener: GravityEstimator.OnEstimationListener? = null)

Constructor.

Types

Link copied to clipboard

Interface to notify when a new pose is available.

Properties

Link copied to clipboard

an averaging filter for accelerometer samples to obtain sensed gravity component of specific force.

Link copied to clipboard

listener to notify new accelerometer measurements.

Link copied to clipboard

One of the supported accelerometer sensor types. It is suggested to avoid using non-calibrated accelerometers.

Link copied to clipboard

Factor to take into account when interpolation value is computed and useIndirectAttitudeInterpolation is enabled to determine actual interpolation value based on current relative attitude rotation velocity.

Link copied to clipboard

Interpolation value to be used to combine both leveling and relative attitudes. Must be between 0.0 and 1.0 (both included). The closer to 0.0 this value is, the more resemblance the result will have to a pure leveling (which feels more jerky). On the contrary, the closer to 1.0 this value is, the more resemblance the result will have to a pure non-leveled relative attitude (which feels softer but might have arbitrary roll and pitch Euler angles).

Link copied to clipboard

Threshold to determine that leveling has largely diverged and if situation is not reverted soon, attitude will be reset to leveling.

Link copied to clipboard
open override var attitudeOutlierThreshold: Double

Threshold to determine that current leveling appears to be an outlier respect to estimated fused attitude. When leveling and fused attitudes diverge, fusion is not performed, and instead only gyroscope relative attitude is used for fusion estimation.

Link copied to clipboard

Threshold to determine when fused attitude has largely diverged for a given number of samples and must be reset.

Link copied to clipboard
open override val averageTimeInterval: Double

Gets average time interval between gyroscope samples expressed in seconds.

Link copied to clipboard
open override val context: Context

Android context.

Link copied to clipboard

true to estimate 3D metric pose transformation.

Link copied to clipboard

listener to notify when a new gravity estimation is available.

Link copied to clipboard

listener to notify new gyroscope measurements.

Link copied to clipboard

One of the supported gyroscope sensor types. It is suggested to avoid using non-calibrated gyroscopes.

Link copied to clipboard
open override var initialLocation: Location

Gets or sets initial device location.

Link copied to clipboard
open override val initialVelocity: NEDVelocity

initial velocity of device expressed in NED coordinates.

Link copied to clipboard

Listener to notify new magnetometer measurements.

Link copied to clipboard

One of the supported magnetometer sensor types.

Link copied to clipboard

notifies when a new estimated pose is available.

Link copied to clipboard
open override var running: Boolean

Indicates whether this estimator is running or not.

Link copied to clipboard
open override val sensorDelay: SensorDelay

Delay of sensors between samples.

Link copied to clipboard
open override var timestamp: Date

Timestamp when World Magnetic Model will be evaluated to obtain current. Only taken into account if useWorldMagneticModel is tue.

Link copied to clipboard

true to use accelerometer sensor for attitude estimation, false to use system gravity sensor for leveling purposes. Regardless of this values, pose estimator always uses the accelerometer sensor, however, it can be used both for leveling and device motion, or only for device motion.

Link copied to clipboard

Indicates whether accurate leveling must be used or not.

Indicates whether accurate non-leveled relative attitude estimator must be used or not.

Link copied to clipboard

Indicates whether fusion between leveling and relative attitudes occurs based on changing interpolation value that depends on actual relative attitude rotation velocity.

Link copied to clipboard

True indicates that attitude is leveled and expressed respect to estimator start. False indicates that attitude is absolute.

Link copied to clipboard
open override var useWorldMagneticModel: Boolean

Indicates whether world magnetic model is taken into account to adjust attitude yaw angle by current magnetic declination based on current World Magnetic Model, location and timestamp.

Link copied to clipboard
open override var worldMagneticModel: WorldMagneticModel?

Earth's magnetic model. If null, the default model is used if useWorldMagneticModel is true. If useWorldMagneticModel is false, this is ignored.

Functions

Link copied to clipboard
open override fun start(): Boolean

Starts this estimator.

Link copied to clipboard
open override fun stop()

Stops this estimator.