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
17syntax = "proto3";
18
19package com.android.ranging.generic.proto;
20
21import "packages/modules/Uwb/generic_ranging/proto/src/estimate.proto";
22
23option java_package = "com.android.ranging.generic.proto";
24option java_multiple_files = true;
25
26message Event {
27  enum Type {
28    NONE = 0;
29    START = 1;
30    STOP = 2;
31  }
32
33  Type type = 1;
34  float timestamp_sec = 2;
35}
36
37message UwbDatum {
38  float range_m = 1;
39  int32 rssi_dbm = 2;
40  float timestamp_sec = 3;
41}
42
43message OdometryDatum {
44  float x_m = 1;
45  float y_m = 2;
46  float z_m = 3;
47  float timestamp_sec = 8;
48}
49
50message InputContainer {
51  oneof input {
52    UwbDatum uwb_datum = 1;
53    OdometryDatum odometry_datum = 3;
54  }
55}
56
57message LeanEstimate {
58  com.android.ranging.generic.proto.Estimate.Status status = 1;
59  float range_m = 2;
60  float bearing_rad = 3;
61  float estimated_beacon_position_error_std_dev_m = 4;
62  float timestamp_sec = 5;
63}
64
65message DebugLog {
66  repeated InputContainer inputs = 1;
67  repeated LeanEstimate outputs = 2;
68  repeated Event events = 3;
69}