Apollo 10.0
自动驾驶开放平台
const_vars.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2021 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
19namespace apollo {
20namespace drivers {
21namespace nano_radar {
22
23const int CONTIID_START = 0x600;
24const int CONTIID_END = 0x702;
25const int WAIT_TIME = 4000;
26
27// Try this many times when receiving using bcan, by default.
28const int BCAN_RECV_TRIES = 4;
29
30const int RADAR_CONFIG = 0x200;
31const int RADAR_STATE = 0x201;
32
33const int CAN_BUFFER_NUM = 20;
34const int CANBYTE = 13;
35const int ETHER_WAIT = 5000000;
36const int DISCONNECT_WAIT = 5;
37
38// Object general information
39const double OBJECT_DIST_RES = 0.2;
40const double OBJECT_DIST_LONG_MIN = -500;
41const double OBJECT_DIST_LAT_MIN = -204.6;
42const double OBJECT_VREL_RES = 0.25;
43const double OBJECT_VREL_LONG_MIN = -128.0;
44const double OBJECT_VREL_LAT_MIN = -64.0;
45const double OBJECT_RCS_RES = 0.5;
46const double OBJECT_RCS_MIN = -64.0;
47
48// Object extended information
49const double OBJECT_AREL_RES = 0.01;
50const double OBJECT_AREL_LONG_MIN = -10.0;
51const double OBJECT_AREL_LAT_MIN = -2.5;
52const double OBJECT_ORIENTATION_ANGEL_MIN = -180.0;
54const double OBJECT_WIDTH_RES = 0.2;
55const double OBJECT_LENGTH_RES = 0.2;
56
57// Region state information
58const double REGION_POINT_RES = 0.2;
59const double REGION_POINT_LONG_MIN = -500;
60const double REGION_POINT_LAT_MIN = -204.6;
61
62} // namespace nano_radar
63} // namespace drivers
64} // namespace apollo
const double REGION_POINT_RES
Definition const_vars.h:58
const double OBJECT_LENGTH_RES
Definition const_vars.h:55
const double REGION_POINT_LAT_MIN
Definition const_vars.h:60
const double REGION_POINT_LONG_MIN
Definition const_vars.h:59
const double OBJECT_DIST_LAT_MIN
Definition const_vars.h:41
const double OBJECT_ORIENTATION_ANGEL_RES
Definition const_vars.h:53
const double OBJECT_DIST_LONG_MIN
Definition const_vars.h:40
const double OBJECT_WIDTH_RES
Definition const_vars.h:54
const double OBJECT_ORIENTATION_ANGEL_MIN
Definition const_vars.h:52
const double OBJECT_AREL_LAT_MIN
Definition const_vars.h:51
const double OBJECT_AREL_LONG_MIN
Definition const_vars.h:50
const double OBJECT_VREL_LAT_MIN
Definition const_vars.h:44
const double OBJECT_VREL_LONG_MIN
Definition const_vars.h:43
class register implement
Definition arena_queue.h:37