1 /*
2  * Copyright (C) 2024 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.android.sensor;
18 
19 public enum Status {
20     /** An estimate was successfully computed. */
21     OK,
22     /** Could not produce an estimate. For example, no synchronized set of data is available. */
23     ESTIMATE_NOT_AVAILABLE,
24     /** The filter has diverged and is attempting to recover. */
25     RECOVERING,
26     /**
27      * Tracking failed due to insufficient light. This can occur when using camera based odometry.
28      * The
29      * filter will automatically recover and produce an estimate when possible.
30      */
31     RECOVERING_FROM_FAILURE_DUE_TO_INSUFFICIENT_LIGHT,
32     /**
33      * Tracking failed due to excessive motion. The filter will automatically recover and produce an
34      * estimate when possible.
35      */
36     RECOVERING_FROM_FAILURE_DUE_TO_EXCESSIVE_MOTION,
37     /**
38      * Tracking failed due to insufficient features in the camera images. This can occur when using
39      * camera based odometry. The filter will automatically recover and produce an estimate when
40      * possible.
41      */
42     RECOVERING_FROM_FAILURE_DUE_TO_INSUFFICIENT_FEATURES,
43     /**
44      * Tracking failed because something else is using the camera. Tracking will recover
45      * automatically, but with a new origin.
46      */
47     RECOVERING_FROM_FAILURE_DUE_TO_CAMERA_UNAVAILABILITY,
48     /**
49      * Tracking failed due to a bad odometry state. The filter will automatically recover and
50      * produce
51      * an estimate when possible.
52      */
53     RECOVERING_FROM_FAILURE_DUE_TO_BAD_ODOMETRY_STATE,
54     /** Odometry failed and cannot be recovered. */
55     ODOMETRY_ERROR,
56     /** The beacon is probably moving, and so cannot be tracked. */
57     BEACON_MOVING_ERROR,
58     /** The configuration file contains an error and Finder can't be started. */
59     CONFIGURATION_ERROR,
60     /** Permissions not granted to required sensors. */
61     SENSOR_PERMISSION_DENIED_ERROR,
62     UNKNOWN_ERROR,
63 }