ARCore SDK for Android v1.34.0
New APIs and capabilities
Check Geospatial VPS availability
A new ARCore Geospatial API has been added to check for Visual Positioning System (VPS) availability at a specified horizontal position at runtime. This API can be used without an active AR session, for example, to present an "Enter AR" button only when VPS is available.
- Kotlin/Java
- C
- Developer guide: Check VPS Availability
ArSession_checkVpsAvailabilityAsync()
determines if VPS is available in a given area. This will initiate a query with a remote ARCore API service.
Geospatial pose orientation
Geospatial poses now expose their orientation in 3D space.
- Kotlin/Java reference
- C reference
Geospatial pose conversions
Geospatial poses can now be converted to and from world-space poses.
-
Kotlin/Java reference
Earth.getGeospatialPose()
converts aPose
to aGeospatialPose
in the same position.Earth.getPose()
converts a geospatial location and orientation to aPose
in the same position.
-
C reference
ArEarth_getGeospatialPose()
converts the input pose to aArGeospatialPose
in the same position.ArEarth_getPose()
converts a geospatial location and orientation to anArPose
in the same position.
Note that Geospatial poses obtained from these functions have a heading value set to zero. Instead, use its EUS quaternion instead.
Other changes
- The
geospatial_java
sample has been adjusted to check for VPS availability. - The
geospatial_java
sample now supports creating a Geospatial anchor by tapping on the AR camera view. - Updated Kotlin samples to Kotlin version 1.5.30 from 1.4.20.
Bug fixes
- Fixed "Device Not Supported" being reported for emulator images on ARM host machines.
ArEarth_getEarthState()
andArAnchor_getTerrainAnchorState()
now correctly returnERROR_NOT_AUTHORIZED
when there is an authentication issue instead of returningERROR_INTERNAL
.