Apollo 10.0
自动驾驶开放平台
canbus_gflags.cc
浏览该文件的文档.
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
18
19// System gflags
20DEFINE_string(canbus_node_name, "chassis", "The chassis module name in proto");
21DEFINE_string(canbus_module_name, "canbus_component", "Module name");
22
23// data file
24DEFINE_string(canbus_conf_file,
25 "modules/canbus/conf/canbus_conf.pb.txt",
26 "Default canbus conf file");
27
28// Canbus gflags
29DEFINE_double(chassis_freq, 100, "Chassis feedback timer frequency.");
30
31// cmd input check
32DEFINE_int64(min_cmd_interval, 5, "Minimum control command interval in ms.");
33DEFINE_int64(pad_msg_delay_interval, 3,
34 "Minimum pad msg command delay interval in s.");
35DEFINE_int32(max_control_miss_num, 5, "max control miss num.");
36DEFINE_double(control_period, 0.01, "control period in s.");
37DEFINE_int32(max_guardian_miss_num, 5, "max guardian miss num.");
38DEFINE_double(guardian_period, 0.01, "control period in s.");
39DEFINE_bool(use_control_cmd_check, false, "enable control cmd input check.");
40DEFINE_bool(use_guardian_cmd_check, false, "nable guardian cmd input check.");
41DEFINE_double(estop_brake, 30.0, "brake action when cmd input check error.");
42
43// chassis_detail message publish
44DEFINE_bool(enable_chassis_detail_pub, true,
45 "Chassis Detail receive message publish");
46DEFINE_bool(enable_chassis_detail_sender_pub, true,
47 "Chassis Detail sender message publish");
48
49// canbus test files
50DEFINE_string(canbus_test_file,
51 "modules/canbus/testdata/canbus_test.pb.txt",
52 "canbus tester input test file, in ControlCommand pb format.");
53
54// enable receiving guardian command
55// TODO(QiL) : depreciate this after test
56DEFINE_bool(receive_guardian, false,
57 "Enable receiving guardian message on canbus side");
58
59DEFINE_int32(guardian_cmd_pending_queue_size, 10,
60 "Max guardian cmd pending queue size");
61DEFINE_int32(control_cmd_pending_queue_size, 10,
62 "Max control cmd pending queue size");
63DEFINE_int32(chassis_cmd_pending_queue_size, 10,
64 "Max control cmd pending queue size");
65
66// enable forward Ultrasonic AEB
67DEFINE_bool(enable_aeb, false, "Enable forward Ultrasonic AEB");
68
69// enabel chassis debug mode for such as ignore pad msg timestamp check
70DEFINE_bool(chassis_debug_mode, false, "Enable chassis in debug mode");
71
72// vehicle factory dynamic library path and class name
73DEFINE_string(load_vehicle_library,
74 "/opt/apollo/neo/lib/modules/canbus_vehicle/lincoln/"
75 "liblincoln_vehicle_factory_lib.so",
76 "Default load vehicle library");
77DEFINE_string(load_vehicle_class_name, "LincolnVehicleFactory",
78 "Default vehicle factory name");
DEFINE_double(chassis_freq, 100, "Chassis feedback timer frequency.")
DEFINE_int64(min_cmd_interval, 5, "Minimum control command interval in ms.")
DEFINE_bool(use_control_cmd_check, false, "enable control cmd input check.")
DEFINE_string(canbus_node_name, "chassis", "The chassis module name in proto")
DEFINE_int32(max_control_miss_num, 5, "max control miss num.")