getPose
Declaration
fun getPose(location: GeolocationData): Vps2Pose?
Summary
Returns
The AR pose (with its tracking state and accuracy) corresponding to the given location, or null if VPS2 has not localized yet.
Overload 1
fun getPose(location: Location): Vps2Pose?
Summary
Convert an Android Location to an AR pose using the latest localization.
Returns
The AR pose (with its tracking state and accuracy) corresponding to the given location, or null if VPS2 has not localized yet.
Overload 2
fun getPose(localization: Vps2Localization, location: GeolocationData): Pose
Summary
Convert a geolocation to an AR pose using a localization snapshot.
In most cases you want the overload that uses the latest localization automatically; use
this one only when a batch of geolocations must share a single snapshot.
Returns
The AR pose corresponding to the given location.
Throws
NsdkInvalidOperationStatusException— if the current localization tracking state isVPS2TrackingState.UNAVAILABLE.
Overload 3
fun getPose(localization: Vps2Localization, location: Location): Pose
Summary
Convert an Android Location to an AR pose using a localization snapshot.
Returns
The AR pose corresponding to the given location.
Throws
NsdkInvalidOperationStatusException— if the current localization tracking state isVPS2TrackingState.UNAVAILABLE.
Convert a geolocation to an AR pose using the latest localization.