GeospatialTester
public final class GeospatialTester
An object which allows for testing the overall condition of Geospatial operations in an ARCore unit test environment.
Summary
Public methods |
|
|---|---|
final @NonNull Range<@NonNull Double> |
the acceptable range of latitude values that |
final Pose |
the |
final @NonNull GeospatialPose |
the |
final double |
the horizontal accuracy of the value returned by |
final double |
the yaw accuracy of the value returned by |
final @NonNull Pose |
the |
final double |
the vertical accuracy of the value returned by |
final @NonNull VpsAvailabilityResult |
|
final @NonNull Geospatial.GeospatialTrackingState |
getState()the |
final void |
setAllowedAnchorLatitudeRange(@NonNull Range<@NonNull Double> value)the acceptable range of latitude values that |
final void |
setExpectedAnchorPose(Pose value)the |
final void |
the |
final void |
setExpectedHorizontalAccuracy(double value)the horizontal accuracy of the value returned by |
final void |
setExpectedOrientationYawAccuracy(double value)the yaw accuracy of the value returned by |
final void |
setExpectedPose(@NonNull Pose value)the |
final void |
setExpectedVerticalAccuracy(double value)the vertical accuracy of the value returned by |
final void |
|
final void |
the |
Public methods
getAllowedAnchorLatitudeRange
public final @NonNull Range<@NonNull Double> getAllowedAnchorLatitudeRange()
the acceptable range of latitude values that Geospatial can use when creating Anchors, with a default of -90..90 (inclusive)
getExpectedAnchorPose
public final Pose getExpectedAnchorPose()
the Pose of the androidx.xr.arcore.Anchor that will be returned by Geospatial.createAnchor or Geospatial.createAnchorOnSurface
getExpectedGeospatialPose
public final @NonNull GeospatialPose getExpectedGeospatialPose()
the GeospatialPose that would be created by Geospatial.createGeospatialPoseFromPose
getExpectedHorizontalAccuracy
public final double getExpectedHorizontalAccuracy()
the horizontal accuracy of the value returned by Geospatial.createGeospatialPoseFromPose
getExpectedOrientationYawAccuracy
public final double getExpectedOrientationYawAccuracy()
the yaw accuracy of the value returned by Geospatial.createGeospatialPoseFromPose
getExpectedPose
public final @NonNull Pose getExpectedPose()
the Pose that would be created by Geospatial.createPoseFromGeospatialPose
getExpectedVerticalAccuracy
public final double getExpectedVerticalAccuracy()
the vertical accuracy of the value returned by Geospatial.createGeospatialPoseFromPose
getExpectedVpsResult
public final @NonNull VpsAvailabilityResult getExpectedVpsResult()
VpsAvailabilityResult that will be returned when checking for VPS availability if not null
getState
public final @NonNull Geospatial.GeospatialTrackingState getState()
the Geospatial.GeospatialTrackingState device's Geospatial communication
setAllowedAnchorLatitudeRange
public final void setAllowedAnchorLatitudeRange(@NonNull Range<@NonNull Double> value)
the acceptable range of latitude values that Geospatial can use when creating Anchors, with a default of -90..90 (inclusive)
setExpectedAnchorPose
public final void setExpectedAnchorPose(Pose value)
the Pose of the androidx.xr.arcore.Anchor that will be returned by Geospatial.createAnchor or Geospatial.createAnchorOnSurface
setExpectedGeospatialPose
public final void setExpectedGeospatialPose(@NonNull GeospatialPose value)
the GeospatialPose that would be created by Geospatial.createGeospatialPoseFromPose
setExpectedHorizontalAccuracy
public final void setExpectedHorizontalAccuracy(double value)
the horizontal accuracy of the value returned by Geospatial.createGeospatialPoseFromPose
setExpectedOrientationYawAccuracy
public final void setExpectedOrientationYawAccuracy(double value)
the yaw accuracy of the value returned by Geospatial.createGeospatialPoseFromPose
setExpectedPose
public final void setExpectedPose(@NonNull Pose value)
the Pose that would be created by Geospatial.createPoseFromGeospatialPose
setExpectedVerticalAccuracy
public final void setExpectedVerticalAccuracy(double value)
the vertical accuracy of the value returned by Geospatial.createGeospatialPoseFromPose
setExpectedVpsResult
public final void setExpectedVpsResult(@NonNull VpsAvailabilityResult value)
VpsAvailabilityResult that will be returned when checking for VPS availability if not null
setState
public final void setState(@NonNull Geospatial.GeospatialTrackingState value)
the Geospatial.GeospatialTrackingState device's Geospatial communication