Apollo  6.0
Open source self driving car software
control_gflags.h
Go to the documentation of this file.
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 // data file
22 DECLARE_string(control_conf_file);
23 // control common conf file
24 DECLARE_string(control_common_conf_file);
25 // mpc controller conf file
26 DECLARE_string(mpc_controller_conf_file);
27 // lateral controller conf file
28 DECLARE_string(lateral_controller_conf_file);
29 // longitudinal controller conf file
30 DECLARE_string(longitudinal_controller_conf_file);
31 // calibration table
32 DECLARE_string(calibration_table_file);
33 
34 DECLARE_double(control_test_duration);
35 
36 DECLARE_bool(enable_csv_debug);
37 
38 // temporary gflag for test purpose
39 DECLARE_bool(enable_speed_station_preview);
40 
41 DECLARE_string(control_node_name);
42 
43 DECLARE_string(preprocessor_submodule_name);
44 DECLARE_string(mpc_controller_submodule_name);
45 DECLARE_string(postprocessor_submodule_name);
46 DECLARE_string(lat_lon_controller_submodule_name);
47 
48 DECLARE_bool(is_control_test_mode);
49 DECLARE_bool(use_preview_speed_for_table);
50 
51 DECLARE_double(steer_angle_rate);
52 DECLARE_bool(enable_gain_scheduler);
53 DECLARE_bool(set_steer_limit);
54 DECLARE_bool(enable_slope_offset);
55 
56 DECLARE_double(lock_steer_speed);
57 
58 DECLARE_bool(enable_navigation_mode_error_filter);
59 DECLARE_bool(enable_navigation_mode_position_update);
60 
61 DECLARE_int32(chassis_pending_queue_size);
62 DECLARE_int32(planning_pending_queue_size);
63 DECLARE_int32(localization_pending_queue_size);
64 DECLARE_int32(pad_msg_pending_queue_size);
65 
66 DECLARE_bool(reverse_heading_control);
67 
68 DECLARE_bool(trajectory_transform_to_com_reverse);
69 DECLARE_bool(trajectory_transform_to_com_drive);
70 
71 DECLARE_bool(enable_maximum_steer_rate_limit);
72 
73 DECLARE_bool(query_time_nearest_point_only);
74 DECLARE_bool(query_forward_time_point_only);
75 
76 DECLARE_bool(enable_feedback_augment_on_high_speed);
77 
78 DECLARE_bool(enable_gear_drive_negative_speed_protection);
79 
80 DECLARE_bool(use_control_submodules);
DECLARE_int32(chassis_pending_queue_size)
DECLARE_double(control_test_duration)
DECLARE_bool(enable_csv_debug)
DECLARE_string(control_conf_file)