Apollo  6.0
Open source self driving car software
const_vars.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 The Apollo Authors. All Rights Reserved.
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 #pragma once
18 
19 namespace apollo {
20 namespace drivers {
21 namespace racobit_radar {
22 
23 const int CONTIID_START = 0x600;
24 const int CONTIID_END = 0x702;
25 const int WAIT_TIME = 4000;
26 
27 // Try this many times when receiving using bcan, by default.
28 const int BCAN_RECV_TRIES = 4;
29 
30 const int RADAR_CONFIG = 0x200;
31 const int RADAR_STATE = 0x201;
32 
33 const int CAN_BUFFER_NUM = 20;
34 const int CANBYTE = 13;
35 const int ETHER_WAIT = 5000000;
36 const int DISCONNECT_WAIT = 5;
37 
38 // cluster quality
39 
40 const double LINEAR_RMS[32] = {0.005, 0.006, 0.008, 0.011, 0.014, 0.018, 0.023,
41  0.029, 0.038, 0.049, 0.063, 0.081, 0.105, 0.135,
42  0.174, 0.224, 0.288, 0.371, 0.478, 0.616, 0.794,
43  1.023, 1.317, 1.697, 2.187, 2.817, 3.630, 4.676,
44  6.025, 7.762, 10.000, 100.00};
45 
46 const double ANGLE_RMS[32] = {
47  0.005, 0.007, 0.010, 0.014, 0.020, 0.029, 0.041, 0.058,
48  0.082, 0.116, 0.165, 0.234, 0.332, 0.471, 0.669, 0.949,
49  1.346, 1.909, 2.709, 3.843, 5.451, 7.734, 10.971, 15.565,
50  22.061, 31.325, 44.439, 63.044, 69.437, 126.881, 180.000, 360.00};
51 
52 const double PROBOFEXIST[8] = {0.00, 0.25, 0.5, 0.75, 0.90, 0.99, 0.999, 1.0};
53 
54 const double CLUSTER_DIST_RES = 0.2;
55 const double CLUSTER_DIST_LONG_MIN = -500;
56 const double CLUSTER_DIST_LAT_MIN = -102.3;
57 const double CLUSTER_VREL_RES = 0.25;
58 const double CLUSTER_VREL_LONG_MIN = -128.0;
59 const double CLUSTER_VREL_LAT_MIN = -64.0;
60 const double CLUSTER_RCS_RES = 0.5;
61 const double CLUSTER_RCS = -64.0;
62 
63 // Object general information
64 const double OBJECT_DIST_RES = 0.2;
65 const double OBJECT_DIST_LONG_MIN = -500;
66 const double OBJECT_DIST_LAT_MIN = -204.6;
67 const double OBJECT_VREL_RES = 0.25;
68 const double OBJECT_VREL_LONG_MIN = -128.0;
69 const double OBJECT_VREL_LAT_MIN = -64.0;
70 const double OBJECT_RCS_RES = 0.5;
71 const double OBJECT_RCS_MIN = -64.0;
72 
73 // Object extended information
74 const double OBJECT_AREL_RES = 0.01;
75 const double OBJECT_AREL_LONG_MIN = -10.0;
76 const double OBJECT_AREL_LAT_MIN = -2.5;
77 const double OBJECT_ORIENTATION_ANGEL_MIN = -180.0;
78 const double OBJECT_ORIENTATION_ANGEL_RES = 0.4;
79 const double OBJECT_WIDTH_RES = 0.2;
80 const double OBJECT_LENGTH_RES = 0.2;
81 
82 } // namespace racobit_radar
83 } // namespace drivers
84 } // namespace apollo
const double CLUSTER_DIST_RES
Definition: const_vars.h:54
const int RADAR_CONFIG
Definition: const_vars.h:30
const double OBJECT_WIDTH_RES
Definition: const_vars.h:79
const double CLUSTER_VREL_RES
Definition: const_vars.h:57
const double CLUSTER_VREL_LONG_MIN
Definition: const_vars.h:58
const int RADAR_STATE
Definition: const_vars.h:31
const int ETHER_WAIT
Definition: const_vars.h:35
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
const double ANGLE_RMS[32]
Definition: const_vars.h:46
const int CONTIID_END
Definition: const_vars.h:24
const double CLUSTER_RCS_RES
Definition: const_vars.h:60
const double OBJECT_RCS_MIN
Definition: const_vars.h:71
const int CANBYTE
Definition: const_vars.h:34
const double OBJECT_VREL_LAT_MIN
Definition: const_vars.h:69
const double OBJECT_VREL_RES
Definition: const_vars.h:67
const double LINEAR_RMS[32]
Definition: const_vars.h:40
const int CONTIID_START
Definition: const_vars.h:23
const double OBJECT_DIST_RES
Definition: const_vars.h:64
const double OBJECT_RCS_RES
Definition: const_vars.h:70
const double OBJECT_LENGTH_RES
Definition: const_vars.h:80
const double OBJECT_ORIENTATION_ANGEL_MIN
Definition: const_vars.h:77
const double OBJECT_AREL_LONG_MIN
Definition: const_vars.h:75
const double OBJECT_DIST_LONG_MIN
Definition: const_vars.h:65
const double CLUSTER_DIST_LAT_MIN
Definition: const_vars.h:56
const int WAIT_TIME
Definition: const_vars.h:25
const int BCAN_RECV_TRIES
Definition: const_vars.h:28
const double CLUSTER_DIST_LONG_MIN
Definition: const_vars.h:55
const int DISCONNECT_WAIT
Definition: const_vars.h:36
const double OBJECT_DIST_LAT_MIN
Definition: const_vars.h:66
const int CAN_BUFFER_NUM
Definition: const_vars.h:33
const double OBJECT_AREL_LAT_MIN
Definition: const_vars.h:76
const double CLUSTER_RCS
Definition: const_vars.h:61
const double OBJECT_VREL_LONG_MIN
Definition: const_vars.h:68
const double CLUSTER_VREL_LAT_MIN
Definition: const_vars.h:59
const double PROBOFEXIST[8]
Definition: const_vars.h:52
const double OBJECT_ORIENTATION_ANGEL_RES
Definition: const_vars.h:78
const double OBJECT_AREL_RES
Definition: const_vars.h:74