Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
fc0fd374
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,发现更多精彩内容 >>
提交
fc0fd374
编写于
12月 07, 2018
作者:
H
Hongyi
提交者:
Jiangtao Hu
12月 13, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Prediction: move parameters to gflags
上级
d1106675
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
13 deletion
+19
-13
modules/prediction/common/junction_analyzer.cc
modules/prediction/common/junction_analyzer.cc
+4
-9
modules/prediction/common/prediction_gflags.cc
modules/prediction/common/prediction_gflags.cc
+10
-3
modules/prediction/common/prediction_gflags.h
modules/prediction/common/prediction_gflags.h
+5
-1
未找到文件。
modules/prediction/common/junction_analyzer.cc
浏览文件 @
fc0fd374
...
...
@@ -22,6 +22,7 @@
#include <unordered_set>
#include "modules/prediction/common/junction_analyzer.h"
#include "modules/prediction/common/prediction_gflags.h"
namespace
apollo
{
namespace
prediction
{
...
...
@@ -62,19 +63,14 @@ void JunctionAnalyzer::SetAllJunctionExits() {
if
(
overlap_info_ptr
==
nullptr
)
{
continue
;
}
// TODO(all) consider to delete
if
(
overlap_info_ptr
->
overlap
().
object_size
()
!=
2
)
{
continue
;
}
for
(
const
auto
&
object
:
overlap_info_ptr
->
overlap
().
object
())
{
if
(
object
.
has_lane_overlap_info
())
{
const
std
::
string
&
lane_id
=
object
.
id
().
id
();
auto
lane_info_ptr
=
PredictionMap
::
LaneById
(
lane_id
);
// TODO(all) move 0.1 to gflags
if
(
object
.
lane_overlap_info
().
end_s
()
+
0.1
<
double
s
=
object
.
lane_overlap_info
().
end_s
();
if
(
s
+
FLAGS_junction_exit_lane_threshold
<
lane_info_ptr
->
total_length
())
{
JunctionExit
junction_exit
;
double
s
=
object
.
lane_overlap_info
().
end_s
();
apollo
::
common
::
PointENU
position
=
lane_info_ptr
->
GetSmoothPoint
(
s
);
junction_exit
.
set_exit_lane_id
(
lane_id
);
junction_exit
.
mutable_exit_position
()
->
set_x
(
position
.
x
());
...
...
@@ -181,8 +177,7 @@ double JunctionAnalyzer::ComputeJunctionRange() {
junction_info_ptr_
->
junction
().
polygon
().
point_size
()
<
3
)
{
AERROR
<<
"Junction ["
<<
GetJunctionId
()
<<
"] has not enough polygon points to compute range"
;
// TODO(kechxu) move the default range value to gflags
return
10.0
;
return
FLAGS_defualt_junction_range
;
}
double
x_min
=
std
::
numeric_limits
<
double
>::
infinity
();
double
x_max
=
-
std
::
numeric_limits
<
double
>::
infinity
();
...
...
modules/prediction/common/prediction_gflags.cc
浏览文件 @
fc0fd374
...
...
@@ -161,6 +161,16 @@ DEFINE_uint32(max_num_lane_point, 20,
DEFINE_double
(
centripetal_acc_coeff
,
0.5
,
"Coefficient of centripetal acceleration probability"
);
// Junction Scenario
DEFINE_double
(
junction_exit_lane_threshold
,
0.1
,
"If a lane has longer extend out of the junction,"
"consider it as a exit_lane."
);
DEFINE_double
(
distance_beyond_junction
,
0.5
,
"If the obstacle is in junction more than this threshold,"
"consider it in junction."
);
DEFINE_double
(
defualt_junction_range
,
10.0
,
"Default value for the range of a junction."
);
// Obstacle trajectory
DEFINE_bool
(
enable_cruise_regression
,
false
,
"If enable using regression in cruise model"
);
...
...
@@ -176,9 +186,6 @@ DEFINE_bool(enable_trim_prediction_trajectory, false,
"protected adc planning trajectory."
);
DEFINE_bool
(
enable_trajectory_validation_check
,
false
,
"If check the validity of prediction trajectory."
);
DEFINE_double
(
distance_beyond_junction
,
0.5
,
"If the obstacle is in junction more than this threshold,"
"consider it in junction."
);
DEFINE_double
(
adc_trajectory_search_length
,
10.0
,
"How far to search junction along adc planning trajectory"
);
DEFINE_double
(
virtual_lane_radius
,
0.5
,
"Radius to search virtual lanes"
);
...
...
modules/prediction/common/prediction_gflags.h
浏览文件 @
fc0fd374
...
...
@@ -105,6 +105,11 @@ DECLARE_uint32(max_num_lane_point);
// Validation checker
DECLARE_double
(
centripetal_acc_coeff
);
// Junction Scenario
DECLARE_double
(
junction_exit_lane_threshold
);
DECLARE_double
(
distance_beyond_junction
);
DECLARE_double
(
defualt_junction_range
);
// Obstacle trajectory
DECLARE_bool
(
enable_cruise_regression
);
DECLARE_double
(
lane_sequence_threshold_cruise
);
...
...
@@ -113,7 +118,6 @@ DECLARE_double(lane_change_dist);
DECLARE_bool
(
enable_lane_sequence_acc
);
DECLARE_bool
(
enable_trim_prediction_trajectory
);
DECLARE_bool
(
enable_trajectory_validation_check
);
DECLARE_double
(
distance_beyond_junction
);
DECLARE_double
(
adc_trajectory_search_length
);
DECLARE_double
(
virtual_lane_radius
);
DECLARE_double
(
default_lateral_approach_speed
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录