The rotation quaternion provided is with respect to an east-up-south coordinate frame. An
identity rotation will have the anchor oriented such that X+ points to the east, Y+ points up
away from the center of the earth, and Z+ points to the south.
Creating anchors near the north pole or south pole is not supported. If the latitude is
within 0.1 degrees of the north pole or south pole (90 degrees or -90 degrees), this function
will throw IllegalArgumentException.
Details
Parameters
latitude
The latitude of the anchor relative to the WGS84 ellipsoid.
longitude
The longitude of the anchor relative to the WGS84 ellipsoid.
altitude
The altitude of the anchor relative to the WGS84 ellipsoid.
rotation
EUS (east-up-south) rotation quaternion in the order {x, y, z, w}.
Returns
the anchor if successful; otherwise throws an exception.
The rotation quaternion provided is with respect to an east-up-south coordinate frame. An
identity rotation will have the anchor oriented such that X+ points to the east, Y+ points up
away from the center of the earth, and Z+ points to the south.
Creating anchors near the north pole or south pole is not supported. If the latitude is
within 0.1 degrees of the north pole or south pole (90 degrees or -90 degrees), this function
will throw IllegalArgumentException.
Details
Parameters
latitude
The latitude of the anchor relative to the WGS84 ellipsoid.
longitude
The longitude of the anchor relative to the WGS84 ellipsoid.
altitude
The altitude of the anchor relative to the WGS84 ellipsoid, in meters.
qx
The x component of the EUS (east-up-south) rotation quaternion.
qy
The y component of the EUS (east-up-south) rotation quaternion.
qz
The z component of the EUS (east-up-south) rotation quaternion.
qw
The w component of the EUS (east-up-south) rotation quaternion.
Returns
the anchor if successful; otherwise throws an exception.
Returns the GeospatialPose for the camera in the latest frame, describing the
geospatial positioning of the device.
The orientation of the obtained GeospatialPose approximates the direction the user
is facing in the EUS coordinate system. The EUS coordinate system has X+ pointing east, Y+
pointing up, and Z+ pointing south.
Position near the north pole or south pole is not supported. If the latitude is within 0.1
degrees of the north pole or south pole (90 degrees or -90 degrees), this function will throw
IllegalArgumentException.
Details
Parameters
latitude
The latitude of the anchor relative to the WGS84 ellipsoid.
longitude
The longitude of the anchor relative to the WGS84 ellipsoid.
altitude
The altitude of the anchor relative to the WGS84 ellipsoid, in meters.
qx
The x component of the EUS (east-up-south) rotation quaternion.
qy
The y component of the EUS (east-up-south) rotation quaternion.
qz
The z component of the EUS (east-up-south) rotation quaternion.
qw
The w component of the EUS (east-up-south) rotation quaternion.
Returns
the Pose in the same position in gl world coordinate.
Creates an anchor at a specified horizontal position and altitude relative to the horizontal
position's rooftop. See the Rooftop
anchors developer guide for more information.
The specified altitudeAboveRooftop is interpreted to be relative to the top of a
building at the given horizontal location, rather than relative to the WGS84 ellipsoid. If
there is no building at the given location, then the altitude is interpreted to be relative to
the terrain instead. Specifying an altitude of 0 will position the anchor directly on the
rooftop whereas specifying a positive altitude will position the anchor above the rooftop,
against the direction of gravity.
This launches an asynchronous operation used to query the Google Cloud ARCore API. See
Future for information on obtaining results and cancelling the operation.
You may resolve multiple anchors at a time, but a session cannot be tracking more than 100
Terrain and Rooftop anchors at time. Attempting to resolve more than 100 Terrain or Rooftop
anchors will throw ResourceExhaustedException.
Creating a Rooftop anchor requires an active Earth which is Earth.EarthState.ENABLED. If it is not, then this function throws IllegalStateException.
This call also requires a working internet connection to communicate with the ARCore API on
Google Cloud. ARCore will continue to retry if it is unable to establish a connection to the
ARCore service.
The rotation quaternion provided is with respect to an east-up-south coordinate frame. An
identity rotation will have the anchor oriented such that X+ points to the east, Y+ points up
away from the center of the earth, and Z+ points to the south.
Details
Parameters
latitude
The latitude of the anchor relative to the WGS84 ellipsoid.
longitude
The longitude of the anchor relative to the WGS84 ellipsoid.
altitudeAboveRooftop
The altitude of the anchor above the Earth's rooftop.
qx
The x component of the EUS (east-up-south) rotation quaternion.
qy
The y component of the EUS (east-up-south) rotation quaternion.
qz
The z component of the EUS (east-up-south) rotation quaternion.
qw
The w component of the EUS (east-up-south) rotation quaternion.
callback
An optional callback,
called when the operation is finished, unless the future is cancelled.
May be null.
Creates a new Anchor at a specified horizontal position and altitude relative to the
horizontal position's terrain. Terrain means the ground or ground floor inside a building with
VPS coverage. If the altitude relative to the WGS84 ellipsoid is known, use createAnchor(Pose) instead.
The specified altitudeAboveTerrain is interpreted to be relative to the Earth's
terrain (or floor) at the specified latitude/longitude geospatial coordinates, rather than
relative to the WGS84 ellipsoid. Specifying an altitude of 0 will position the anchor directly
on the terrain (or floor) whereas specifying a positive altitude will position the anchor above
the terrain (or floor), against the direction of gravity.
This creates a new Anchor and schedules a task to resolve the anchor's pose using
the given parameters. You may resolve multiple anchors at a time, but a session cannot be
tracking more than 100 Terrain anchors at time. Attempting to resolve more than 100 Terrain
Anchors will throw ResourceExhaustedException.
Creating a Terrain anchor requires an active Earth which is Earth.EarthState.ENABLED. If it is not, then this function throws IllegalStateException.
This call also requires a working internet connection to communicate with the ARCore API on
Google Cloud. ARCore will continue to retry if it is unable to establish a connection to the
ARCore service.
The rotation quaternion provided is with respect to an east-up-south coordinate frame. An
identity rotation will have the anchor oriented such that X+ points to the east, Y+ points up
away from the center of the earth, and Z+ points to the south.
Details
Parameters
latitude
The latitude of the anchor relative to the WGS84 ellipsoid.
longitude
The longitude of the anchor relative to the WGS84 ellipsoid.
altitudeAboveTerrain
The altitude of the anchor above the Earth's terrain (or floor).
qx
The x component of the EUS (east-up-south) rotation quaternion.
qy
The y component of the EUS (east-up-south) rotation quaternion.
qz
The z component of the EUS (east-up-south) rotation quaternion.
qw
The w component of the EUS (east-up-south) rotation quaternion.
Returns
the anchor if successful; otherwise throws an exception.
Asynchronously creates a new Anchor at a specified horizontal position and altitude
relative to the horizontal position's terrain. See the Terrain
anchors developer guide for more information.
The specified altitudeAboveTerrain is interpreted to be relative to the Earth's
terrain (or floor) at the specified latitude/longitude geospatial coordinates, rather than
relative to the WGS84 ellipsoid. Specifying an altitude of 0 will position the anchor directly
on the terrain (or floor) whereas specifying a positive altitude will position the anchor above
the terrain (or floor), against the direction of gravity.
This launches an asynchronous operation used to query the Google Cloud ARCore API. See
Future for information on obtaining results and cancelling the operation.
You may resolve multiple anchors at a time, but a session cannot be tracking more than 100
Terrain and Rooftop anchors at time. Attempting to resolve more than 100 Terrain or Rooftop
anchors will throw ResourceExhaustedException.
Creating a Terrain anchor requires an active Earth which is Earth.EarthState.ENABLED. If it is not, then this function throws IllegalStateException.
This call also requires a working internet connection to communicate with the ARCore API on
Google Cloud. ARCore will continue to retry if it is unable to establish a connection to the
ARCore service.
The rotation quaternion provided is with respect to an east-up-south coordinate frame. An
identity rotation will have the anchor oriented such that X+ points to the east, Y+ points up
away from the center of the earth, and Z+ points to the south.
Details
Parameters
latitude
The latitude of the anchor relative to the WGS84 ellipsoid.
longitude
The longitude of the anchor relative to the WGS84 ellipsoid.
altitudeAboveTerrain
The altitude of the anchor above the Earth's terrain (or floor).
qx
The x component of the EUS (east-up-south) rotation quaternion.
qy
The y component of the EUS (east-up-south) rotation quaternion.
qz
The z component of the EUS (east-up-south) rotation quaternion.
qw
The w component of the EUS (east-up-south) rotation quaternion.
callback
The callback to invoke on the Main thread, if any.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[],[],null,[]]