Apollo
10.0
自动驾驶开放平台
canbus_gflags.h
浏览该文件的文档.
1
/******************************************************************************
2
* Copyright 2017 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
#include "gflags/gflags.h"
20
21
// System gflags
22
DECLARE_string
(canbus_node_name);
23
DECLARE_string
(canbus_module_name);
24
25
// data file
26
DECLARE_string
(canbus_conf_file);
27
28
// Canbus gflags
29
DECLARE_double
(chassis_freq);
30
31
// cmd input check
32
DECLARE_int64
(min_cmd_interval);
33
DECLARE_int64
(pad_msg_delay_interval);
34
DECLARE_int32
(max_control_miss_num);
35
DECLARE_double
(control_period);
36
DECLARE_int32
(max_guardian_miss_num);
37
DECLARE_double
(guardian_period);
38
DECLARE_bool
(use_control_cmd_check);
39
DECLARE_bool
(use_guardian_cmd_check);
40
DECLARE_double
(estop_brake);
41
42
// chassis_detail message publish
43
DECLARE_bool
(enable_chassis_detail_pub);
44
DECLARE_bool
(enable_chassis_detail_sender_pub);
45
46
// canbus test files
47
DECLARE_string
(canbus_test_file);
48
49
// canbus test files
50
DECLARE_bool
(receive_guardian);
51
52
DECLARE_int32
(guardian_cmd_pending_queue_size);
53
DECLARE_int32
(control_cmd_pending_queue_size);
54
DECLARE_int32
(chassis_cmd_pending_queue_size);
55
56
// enable forward Ultrasonic AEB
57
DECLARE_bool
(enable_aeb);
58
59
// enabel chassis debug mode for such as ignore pad msg timestamp check
60
DECLARE_bool
(chassis_debug_mode);
61
62
// vehicle factory dynamic library path and class name
63
DECLARE_string
(load_vehicle_library);
64
DECLARE_string
(load_vehicle_class_name);
DECLARE_int64
DECLARE_int64(min_cmd_interval)
DECLARE_int32
DECLARE_int32(max_control_miss_num)
DECLARE_bool
DECLARE_bool(use_control_cmd_check)
DECLARE_string
DECLARE_string(canbus_node_name)
DECLARE_double
DECLARE_double(chassis_freq)
modules
canbus
common
canbus_gflags.h