HERE Android SDK Developer's Guide

ExternalSensors

The class ExternalSensors is a member of com.here.android.mpa.ar.ARController.

Class Summary

public final class ARController.ExternalSensors

extends java.lang.Object

Encapsulates functionality to replace integrated sensors(all or selected) data feeds with external ones.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in ExternalSensors
Methods

public void pushData (SensorType sensorType, double x, double y, double z, long timeStamp)

Push sensors readings into the LiveSight engine.

public ExternalSensors utilize (SensorType sensorType, boolean onOff)

IMPORTANT! This call should be made when ARController is stopped or paused.

Class Details

Encapsulates functionality to replace integrated sensors(all or selected) data feeds with external ones. The interface is used to allow utilization of higher precision sensors to produce more accurate 3D projection results instead of using internal sensors on the device. ARController.FilterParams are also applicabe to the external sensors data.

Method Details

public void pushData (SensorType sensorType, double x, double y, double z, long timeStamp)

Push sensors readings into the LiveSight engine.

Parameters:

  • sensorType

    Sensor type. ARController.SensorType.

  • x

    Accelerometer: Acceleration force along the x axis (m/s^2). Gyroscope: Rate of rotation around the x axis (rad/s). Compass: The X (northward) component of the magnetic field in nanoteslas Location: Latitude in degrees.

  • y

    Accelerometer: Acceleration force along the y axis (m/s^2). Gyroscope: Rate of rotation around the y axis (rad/s). Compass: The Y (eastward) component of the magnetic field in nanoteslas. Location: Longitude in degrees.

  • z

    Accelerometer: Acceleration force along the z axis (m/s^2). Gyroscope: Rate of rotation around the z axis (rad/s). Compass: The Z (downward) component of the magnetic field in nanoteslas. Location: Altitude in meters.

  • timeStamp

    Timestamp of the sensor's reading.

public ExternalSensors utilize (SensorType sensorType, boolean onOff)

IMPORTANT! This call should be made when ARController is stopped or paused. Enable/disable the external sensor(s) to feed data into the LiveSight. Once the external sensor is turned on, integrated sensor's data feed is stopped and from this moment on the client has to start feeding the sensor's data into LiveSight engine. See pushData().

Parameters:

  • sensorType

    Sensor type. ARController.SensorType.

  • onOff

    If true, the integrated sensor's data feed is stopped and switched to external sensor data feed provided by the client. If false, intergrated sensor's feed is turned back on and external sensor's data feed is ignored, if continued.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.