Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
626681cd
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,发现更多精彩内容 >>
提交
626681cd
编写于
5月 08, 2019
作者:
J
JasonZhou404
提交者:
PAN Jiacheng
5月 08, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Planning: use last frame path as speed fallback
上级
20c9cdaa
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
29 addition
and
8 deletion
+29
-8
modules/planning/common/frame.h
modules/planning/common/frame.h
+15
-1
modules/planning/on_lane_planning.cc
modules/planning/on_lane_planning.cc
+12
-0
modules/planning/scenarios/lane_follow/lane_follow_stage.cc
modules/planning/scenarios/lane_follow/lane_follow_stage.cc
+2
-7
未找到文件。
modules/planning/common/frame.h
浏览文件 @
626681cd
...
...
@@ -131,6 +131,15 @@ class Frame {
return
current_frame_planned_trajectory_
;
}
void
set_current_frame_planned_path
(
DiscretizedPath
current_frame_planned_path
)
{
current_frame_planned_path_
=
std
::
move
(
current_frame_planned_path
);
}
const
DiscretizedPath
&
current_frame_planned_path
()
const
{
return
current_frame_planned_path_
;
}
const
bool
is_near_destination
()
const
{
return
is_near_destination_
;
}
/**
...
...
@@ -194,7 +203,12 @@ class Frame {
traffic_lights_
;
ChangeLaneDecider
change_lane_decider_
;
ADCTrajectory
current_frame_planned_trajectory_
;
// last published trajectory
// current frame published trajectory
ADCTrajectory
current_frame_planned_trajectory_
;
// current frame path for future possible speed fallback
DiscretizedPath
current_frame_planned_path_
;
const
ReferenceLineProvider
*
reference_line_provider_
=
nullptr
;
...
...
modules/planning/on_lane_planning.cc
浏览文件 @
626681cd
...
...
@@ -16,6 +16,7 @@
#include "modules/planning/on_lane_planning.h"
#include <algorithm>
#include <limits>
#include <list>
#include <utility>
...
...
@@ -486,6 +487,17 @@ Status OnLanePlanning::Plan(
}
return
Status
(
ErrorCode
::
PLANNING_ERROR
,
msg
);
}
// Store current frame stitched path for possible speed fallback in next
// frames
DiscretizedPath
current_frame_planned_path
;
for
(
const
auto
&
trajectory_point
:
stitching_trajectory
)
{
current_frame_planned_path
.
push_back
(
trajectory_point
.
path_point
());
}
const
auto
&
best_ref_path
=
best_ref_info
->
path_data
().
discretized_path
();
std
::
copy
(
best_ref_path
.
begin
()
+
1
,
best_ref_path
.
end
(),
std
::
back_inserter
(
current_frame_planned_path
));
frame_
->
set_current_frame_planned_path
(
current_frame_planned_path
);
if
(
FLAGS_export_chart
)
{
ExportOnLaneChart
(
best_ref_info
->
debug
(),
ptr_debug
);
}
else
{
...
...
modules/planning/scenarios/lane_follow/lane_follow_stage.cc
浏览文件 @
626681cd
...
...
@@ -344,14 +344,9 @@ bool LaneFollowStage::RetrieveLastFramePathProfile(
<<
"Last frame doesn't succeed, fail to retrieve last frame path data"
;
return
false
;
}
const
auto
&
last_frame_trajectory_pb
=
ptr_last_frame
->
current_frame_planned_trajectory
();
DiscretizedPath
last_frame_discretized_path
;
for
(
const
auto
&
trajectory_point
:
last_frame_trajectory_pb
.
trajectory_point
())
{
last_frame_discretized_path
.
push_back
(
trajectory_point
.
path_point
());
}
const
auto
&
last_frame_discretized_path
=
ptr_last_frame
->
current_frame_planned_path
();
path_data
->
SetDiscretizedPath
(
last_frame_discretized_path
);
const
auto
adc_frenet_frame_point_
=
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录