Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
e1f29dce
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e1f29dce
编写于
12月 02, 2018
作者:
L
luoqi06
提交者:
Jiangtao Hu
12月 13, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Control : adjust the config files to avoid confusion
上级
76dffa97
变更
20
隐藏空白更改
内联
并排
Showing
20 changed file
with
61 addition
and
17 deletion
+61
-17
docs/howto/how_to_add_a_new_control_algorithm.md
docs/howto/how_to_add_a_new_control_algorithm.md
+1
-1
docs/howto/how_to_add_a_new_control_algorithm_cn.md
docs/howto/how_to_add_a_new_control_algorithm_cn.md
+1
-1
modules/control/common/interpolation_1d_test.cc
modules/control/common/interpolation_1d_test.cc
+1
-1
modules/control/common/interpolation_2d_test.cc
modules/control/common/interpolation_2d_test.cc
+1
-1
modules/control/common/pid_BC_controller_test.cc
modules/control/common/pid_BC_controller_test.cc
+1
-1
modules/control/common/pid_IC_controller_test.cc
modules/control/common/pid_IC_controller_test.cc
+1
-1
modules/control/common/pid_controller_test.cc
modules/control/common/pid_controller_test.cc
+1
-1
modules/control/control_component_test.cc
modules/control/control_component_test.cc
+1
-1
modules/control/controller/lat_controller_test.cc
modules/control/controller/lat_controller_test.cc
+1
-1
modules/control/controller/lon_controller_test.cc
modules/control/controller/lon_controller_test.cc
+1
-1
modules/control/controller/mpc_controller_test.cc
modules/control/controller/mpc_controller_test.cc
+2
-1
modules/control/integration_tests/control_test_base.cc
modules/control/integration_tests/control_test_base.cc
+1
-1
modules/control/integration_tests/mpc_controller_test.cc
modules/control/integration_tests/mpc_controller_test.cc
+2
-1
modules/control/integration_tests/relative_position_test.cc
modules/control/integration_tests/relative_position_test.cc
+1
-1
modules/control/testdata/conf/control_conf.pb.txt
modules/control/testdata/conf/control_conf.pb.txt
+14
-0
modules/control/testdata/conf/control_conf_lite.pb.txt
modules/control/testdata/conf/control_conf_lite.pb.txt
+14
-0
modules/control/testdata/mpc_controller_test/control_conf.pb.txt
.../control/testdata/mpc_controller_test/control_conf.pb.txt
+14
-0
modules/dreamview/conf/vehicle_data.pb.txt
modules/dreamview/conf/vehicle_data.pb.txt
+1
-1
modules/tools/calibration/result2pb.sh
modules/tools/calibration/result2pb.sh
+1
-1
modules/tools/configurator/meta.data
modules/tools/configurator/meta.data
+1
-1
未找到文件。
docs/howto/how_to_add_a_new_control_algorithm.md
浏览文件 @
e1f29dce
...
...
@@ -73,7 +73,7 @@ To add the new controller configuration complete the following steps:
};
```
5.
When the
`protobuf`
definition is complete, update the control configuration file accordingly at
`modules/control/conf/
lincoln
.pb.txt`
5.
When the
`protobuf`
definition is complete, update the control configuration file accordingly at
`modules/control/conf/
control_conf
.pb.txt`
```
Note: The above `control/conf` file is the default for Apollo. Your project may use a different control configuration file.
...
...
docs/howto/how_to_add_a_new_control_algorithm_cn.md
浏览文件 @
e1f29dce
...
...
@@ -73,7 +73,7 @@ class NewController : public Controller {
};
```
5.
`protobuf`
定义完成后,在
`modules/control/conf/
lincoln
.pb.txt`
中相应更新控制配置文件。
5.
`protobuf`
定义完成后,在
`modules/control/conf/
control_conf
.pb.txt`
中相应更新控制配置文件。
```
注意:上面的"control/conf"文件是Apollo的默认文件。您的项目可能使用不同的控制配置文件.
...
...
modules/control/common/interpolation_1d_test.cc
浏览文件 @
e1f29dce
...
...
@@ -33,7 +33,7 @@ class Interpolation1DTest : public ::testing::Test {
public:
virtual
void
SetUp
()
{
std
::
string
control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
.pb.txt"
;
CHECK
(
common
::
util
::
GetProtoFromFile
(
control_conf_file
,
&
control_conf_
));
}
...
...
modules/control/common/interpolation_2d_test.cc
浏览文件 @
e1f29dce
...
...
@@ -31,7 +31,7 @@ class Interpolation2DTest : public ::testing::Test {
public:
virtual
void
SetUp
()
{
std
::
string
control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
.pb.txt"
;
CHECK
(
common
::
util
::
GetProtoFromFile
(
control_conf_file
,
&
control_conf_
));
}
...
...
modules/control/common/pid_BC_controller_test.cc
浏览文件 @
e1f29dce
...
...
@@ -28,7 +28,7 @@ class PidBCControllerTest : public ::testing::Test {
public:
virtual
void
SetUp
()
{
std
::
string
control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
.pb.txt"
;
CHECK
(
common
::
util
::
GetProtoFromFile
(
control_conf_file
,
&
control_conf_
));
lon_controller_conf_
=
control_conf_
.
lon_controller_conf
();
...
...
modules/control/common/pid_IC_controller_test.cc
浏览文件 @
e1f29dce
...
...
@@ -30,7 +30,7 @@ class PidICControllerTest : public ::testing::Test {
public:
virtual
void
SetUp
()
{
std
::
string
control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
.pb.txt"
;
CHECK
(
common
::
util
::
GetProtoFromFile
(
control_conf_file
,
&
control_conf_
));
lon_controller_conf_
=
control_conf_
.
lon_controller_conf
();
...
...
modules/control/common/pid_controller_test.cc
浏览文件 @
e1f29dce
...
...
@@ -31,7 +31,7 @@ class PidControllerTest : public ::testing::Test {
public:
virtual
void
SetUp
()
{
std
::
string
control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
.pb.txt"
;
CHECK
(
common
::
util
::
GetProtoFromFile
(
control_conf_file
,
&
control_conf_
));
lon_controller_conf_
=
control_conf_
.
lon_controller_conf
();
...
...
modules/control/control_component_test.cc
浏览文件 @
e1f29dce
...
...
@@ -55,7 +55,7 @@ class ControlComponentTest : public ::testing::Test {
public:
virtual
void
SetUp
()
{
FLAGS_control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
.pb.txt"
;
FLAGS_is_control_test_mode
=
true
;
SetupCyber
();
...
...
modules/control/controller/lat_controller_test.cc
浏览文件 @
e1f29dce
...
...
@@ -45,7 +45,7 @@ class LatControllerTest : public ::testing::Test, LatController {
virtual
void
SetUp
()
{
FLAGS_v
=
3
;
std
::
string
control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
.pb.txt"
;
ControlConf
control_conf
;
CHECK
(
apollo
::
common
::
util
::
GetProtoFromFile
(
control_conf_file
,
&
control_conf
));
...
...
modules/control/controller/lon_controller_test.cc
浏览文件 @
e1f29dce
...
...
@@ -53,7 +53,7 @@ class LonControllerTest : public ::testing::Test, LonController {
ControlConf
control_conf
;
std
::
string
control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
.pb.txt"
;
CHECK
(
apollo
::
common
::
util
::
GetProtoFromFile
(
control_conf_file
,
&
control_conf
));
...
...
modules/control/controller/mpc_controller_test.cc
浏览文件 @
e1f29dce
...
...
@@ -45,7 +45,8 @@ class MPCControllerTest : public ::testing::Test, MPCController {
virtual
void
SetupTestCase
()
{
FLAGS_v
=
4
;
FLAGS_control_conf_file
=
"/apollo/modules//control/testdata/mpc_controller_test/lincoln.pb.txt "
;
"/apollo/modules//control/testdata/mpc_controller_test/"
"control_conf.pb.txt "
;
ControlConf
control_conf
;
CHECK
(
apollo
::
common
::
util
::
GetProtoFromFile
(
FLAGS_control_conf_file
,
&
control_conf
));
...
...
modules/control/integration_tests/control_test_base.cc
浏览文件 @
e1f29dce
...
...
@@ -186,7 +186,7 @@ bool ControlTestBase::test_control(const std::string &test_case_name,
void
ControlTestBase
::
SetUpTestCase
()
{
FLAGS_control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
.pb.txt"
;
FLAGS_is_control_test_mode
=
true
;
}
...
...
modules/control/integration_tests/mpc_controller_test.cc
浏览文件 @
e1f29dce
...
...
@@ -39,7 +39,8 @@ class MPCControllerTest : public ControlTestBase {
FLAGS_test_data_dir
=
"/apollo/modules/control/testdata/mpc_controller_test/"
;
FLAGS_control_conf_file
=
"/apollo/modules/control/testdata/mpc_controller_test/lincoln.pb.txt"
;
"/apollo/modules/control/testdata/mpc_controller_test/"
"control_conf.pb.txt"
;
FLAGS_use_navigation_mode
=
false
;
}
};
...
...
modules/control/integration_tests/relative_position_test.cc
浏览文件 @
e1f29dce
...
...
@@ -39,7 +39,7 @@ class RelativePositionTest : public ControlTestBase {
FLAGS_test_data_dir
=
"/apollo/modules/control/testdata/relative_position_test/"
;
FLAGS_control_conf_file
=
"/apollo/modules/control/testdata/conf/
lincoln
_lite.pb.txt"
;
"/apollo/modules/control/testdata/conf/
control_conf
_lite.pb.txt"
;
FLAGS_use_navigation_mode
=
true
;
}
};
...
...
modules/control/testdata/conf/
lincoln
.pb.txt
→
modules/control/testdata/conf/
control_conf
.pb.txt
浏览文件 @
e1f29dce
control_test_duration: -1
enable_csv_debug: false
enable_speed_station_preview: false
is_control_test_mode: false
use_preview_speed_for_table: false
enable_input_timestamp_check: false
max_localization_miss_num : 20
max_planning_miss_num: 20
max_acceleration_when_stopped : 0.01
steer_angle_rate: 100
enable_gain_scheduler: true
set_steer_limit: true
enable_slope_offset: false
control_period: 0.01
trajectory_period: 0.1
chassis_period: 0.01
...
...
modules/control/testdata/conf/
lincoln
_lite.pb.txt
→
modules/control/testdata/conf/
control_conf
_lite.pb.txt
浏览文件 @
e1f29dce
control_test_duration: -1
enable_csv_debug: false
enable_speed_station_preview: false
is_control_test_mode: false
use_preview_speed_for_table: false
enable_input_timestamp_check: false
max_localization_miss_num : 20
max_planning_miss_num: 20
max_acceleration_when_stopped : 0.01
steer_angle_rate: 100
enable_gain_scheduler: true
set_steer_limit: true
enable_slope_offset: false
control_period: 0.01
trajectory_period: 0.1
chassis_period: 0.01
...
...
modules/control/testdata/mpc_controller_test/
lincoln
.pb.txt
→
modules/control/testdata/mpc_controller_test/
control_conf
.pb.txt
浏览文件 @
e1f29dce
control_test_duration: -1
enable_csv_debug: false
enable_speed_station_preview: false
is_control_test_mode: false
use_preview_speed_for_table: false
enable_input_timestamp_check: false
max_localization_miss_num : 20
max_planning_miss_num: 20
max_acceleration_when_stopped : 0.01
steer_angle_rate: 100
enable_gain_scheduler: true
set_steer_limit: true
enable_slope_offset: false
control_period: 0.01
trajectory_period: 0.1
chassis_period: 0.01
...
...
modules/dreamview/conf/vehicle_data.pb.txt
浏览文件 @
e1f29dce
...
...
@@ -4,7 +4,7 @@ data_files {
}
data_files {
source_path: "calibration_table.pb.txt"
dest_path: "/apollo/modules/control/conf/
lincoln
.pb.txt"
dest_path: "/apollo/modules/control/conf/
control_conf
.pb.txt"
}
data_files {
source_path: "cancard_params/canbus_conf.pb.txt"
...
...
modules/tools/calibration/result2pb.sh
浏览文件 @
e1f29dce
...
...
@@ -17,7 +17,7 @@
###############################################################################
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
python
$DIR
/result2pb.py
$DIR
/../../control/conf/
lincoln
.pb.txt
$1
python
$DIR
/result2pb.py
$DIR
/../../control/conf/
control_conf
.pb.txt
$1
echo
"Created control conf file: control_conf_pb.txt"
echo
"with updated calibration table"
modules/tools/configurator/meta.data
浏览文件 @
e1f29dce
MODULE proto name conf_file
CANBUS modules.canbus.proto.canbus_conf_pb2 CanbusConf() /apollo/modules/canbus/conf/canbus_conf.pb.txt
CONTROL modules.control.proto.control_conf_pb2 ControlConf() /apollo/modules/control/conf/
lincoln
.pb.txt
CONTROL modules.control.proto.control_conf_pb2 ControlConf() /apollo/modules/control/conf/
control_conf
.pb.txt
PLANNING modules.planning.proto.planning_config_pb2 PlanningConfig() /apollo/modules/planning/conf/planning_config.pb.txt
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录