Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
621588f7
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 搜索 >>
提交
621588f7
编写于
4月 10, 2018
作者:
L
Liangliang Zhang
提交者:
Jiangtao Hu
4月 10, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Navigation: use only navigation line for relative map when perception lane marker is having issues.
上级
ea4d28f1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
16 deletion
+15
-16
modules/map/relative_map/common/relative_map_gflags.cc
modules/map/relative_map/common/relative_map_gflags.cc
+1
-0
modules/map/relative_map/common/relative_map_gflags.h
modules/map/relative_map/common/relative_map_gflags.h
+1
-0
modules/map/relative_map/navigation_lane.cc
modules/map/relative_map/navigation_lane.cc
+13
-16
未找到文件。
modules/map/relative_map/common/relative_map_gflags.cc
浏览文件 @
621588f7
...
...
@@ -44,3 +44,4 @@ DEFINE_double(min_view_range_to_use_lane_marker, 0.5,
"min view range to use lane_marker"
);
DEFINE_double
(
min_lane_half_width
,
1.1
,
"min lane half width in meters"
);
DEFINE_double
(
max_lane_half_width
,
2.0
,
"max lane half width in meters"
);
modules/map/relative_map/common/relative_map_gflags.h
浏览文件 @
621588f7
...
...
@@ -29,5 +29,6 @@ DECLARE_double(ratio_navigation_lane_len_to_speed);
DECLARE_double
(
max_distance_to_navigation_line
);
DECLARE_double
(
min_view_range_to_use_lane_marker
);
DECLARE_double
(
min_lane_half_width
);
DECLARE_double
(
max_lane_half_width
);
#endif // MODULES_MAP_RELATIVE_MAP_RELATIVE_MAP_GFLAGS_H_
modules/map/relative_map/navigation_lane.cc
浏览文件 @
621588f7
...
...
@@ -58,7 +58,7 @@ bool NavigationLane::GeneratePath() {
if
(
config_
.
lane_source
()
==
NavigationLaneConfig
::
OFFLINE_GENERATED
&&
navigation_info_
.
navigation_path_size
()
>
0
)
{
ConvertNavigationLineToPath
(
path
);
if
(
path
->
path_point
().
size
()
<
=
0
)
{
if
(
path
->
path_point
().
size
()
=
=
0
)
{
ConvertLaneMarkerToPath
(
lane_marker
,
path
);
}
}
else
{
...
...
@@ -186,15 +186,6 @@ void NavigationLane::ConvertNavigationLineToPath(common::Path *path) {
break
;
}
}
const
perception
::
LaneMarkers
&
lane_marker
=
perception_obstacles_
.
lane_marker
();
const
auto
&
left_lane
=
lane_marker
.
left_lane_marker
();
const
auto
&
right_lane
=
lane_marker
.
right_lane_marker
();
left_width_
=
(
std
::
fabs
(
left_lane
.
c0_position
())
+
std
::
fabs
(
right_lane
.
c0_position
()))
/
2.0
;
right_width_
=
left_width_
;
}
// project adc_state_ onto path
...
...
@@ -344,12 +335,18 @@ bool NavigationLane::CreateMap(const MapGenerationParam &map_config,
perception_obstacles_
.
lane_marker
().
right_lane_marker
().
lane_type
());
auto
*
right_segment
=
right_boundary
->
mutable_curve
()
->
add_segment
()
->
mutable_line_segment
();
const
double
lane_left_width
=
left_width_
>
FLAGS_min_lane_half_width
?
left_width_
:
map_config
.
default_left_width
();
const
double
lane_right_width
=
right_width_
>
FLAGS_min_lane_half_width
?
right_width_
:
map_config
.
default_right_width
();
const
double
lane_left_width
=
left_width_
<
0.0
?
map_config
.
default_left_width
()
:
common
::
math
::
Clamp
(
left_width_
,
FLAGS_min_lane_half_width
,
FLAGS_max_lane_half_width
);
const
double
lane_right_width
=
right_width_
<
0.0
?
map_config
.
default_right_width
()
:
common
::
math
::
Clamp
(
right_width_
,
FLAGS_min_lane_half_width
,
FLAGS_max_lane_half_width
);
for
(
const
auto
&
path_point
:
path
.
path_point
())
{
auto
*
point
=
line_segment
->
add_point
();
point
->
set_x
(
path_point
.
x
());
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录