Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
040cd7da
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 搜索 >>
提交
040cd7da
编写于
12月 26, 2017
作者:
J
Jiangtao Hu
提交者:
Dong Li
12月 26, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
planning: output planning topic msg when something goes wrong. (#2098)
上级
16891b61
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
27 addition
and
1742 deletion
+27
-1742
modules/planning/integration_tests/planning_test_base.cc
modules/planning/integration_tests/planning_test_base.cc
+0
-5
modules/planning/planning.cc
modules/planning/planning.cc
+21
-5
modules/planning/testdata/garage_test/result_out_of_map_0.pb.txt
.../planning/testdata/garage_test/result_out_of_map_0.pb.txt
+6
-1732
未找到文件。
modules/planning/integration_tests/planning_test_base.cc
浏览文件 @
040cd7da
...
...
@@ -186,11 +186,6 @@ bool PlanningTestBase::RunPlanning(const std::string& test_case_name,
}
bool
PlanningTestBase
::
IsValidTrajectory
(
const
ADCTrajectory
&
trajectory
)
{
if
(
trajectory
.
trajectory_point
().
empty
())
{
AERROR
<<
"trajectory has NO point."
;
return
false
;
}
for
(
int
i
=
0
;
i
<
trajectory
.
trajectory_point_size
();
++
i
)
{
const
auto
&
point
=
trajectory
.
trajectory_point
(
i
);
...
...
modules/planning/planning.cc
浏览文件 @
040cd7da
...
...
@@ -219,8 +219,9 @@ void Planning::RunOnce() {
}
if
(
!
status
.
ok
()
||
!
IsVehicleStateValid
(
vehicle_state
))
{
AERROR
<<
"Update VehicleStateProvider failed."
;
not_ready
->
set_reason
(
"Update VehicleStateProvider failed."
);
std
::
string
msg
(
"Update VehicleStateProvider failed"
);
AERROR
<<
msg
;
not_ready
->
set_reason
(
msg
);
status
.
Save
(
not_ready_pb
.
mutable_header
()
->
mutable_status
());
PublishPlanningPb
(
&
not_ready_pb
,
start_timestamp
);
return
;
...
...
@@ -228,7 +229,11 @@ void Planning::RunOnce() {
if
(
!
ReferenceLineProvider
::
instance
()
->
UpdateRoutingResponse
(
AdapterManager
::
GetRoutingResponse
()
->
GetLatestObserved
()))
{
AERROR
<<
"Failed to update routing in reference line provider"
;
std
::
string
msg
(
"Failed to update routing in reference line provider"
);
AERROR
<<
msg
;
not_ready
->
set_reason
(
msg
);
status
.
Save
(
not_ready_pb
.
mutable_header
()
->
mutable_status
());
PublishPlanningPb
(
&
not_ready_pb
,
start_timestamp
);
return
;
}
...
...
@@ -250,7 +255,11 @@ void Planning::RunOnce() {
status
=
InitFrame
(
frame_num
,
stitching_trajectory
.
back
(),
start_timestamp
,
vehicle_state
);
if
(
!
frame_
)
{
AERROR
<<
"Failed to init frame"
;
std
::
string
msg
(
"Failed to init frame"
);
AERROR
<<
msg
;
not_ready
->
set_reason
(
msg
);
status
.
Save
(
not_ready_pb
.
mutable_header
()
->
mutable_status
());
PublishPlanningPb
(
&
not_ready_pb
,
start_timestamp
);
return
;
}
auto
*
trajectory_pb
=
frame_
->
mutable_trajectory
();
...
...
@@ -260,15 +269,22 @@ void Planning::RunOnce() {
trajectory_pb
->
mutable_latency_stats
()
->
set_init_frame_time_ms
(
Clock
::
NowInSeconds
()
-
start_timestamp
);
if
(
!
status
.
ok
())
{
AERROR
<<
"Init frame failed"
;
std
::
string
msg
(
"Failed to init frame"
);
AERROR
<<
msg
;
if
(
FLAGS_publish_estop
)
{
ADCTrajectory
estop
;
estop
.
mutable_estop
();
status
.
Save
(
estop
.
mutable_header
()
->
mutable_status
());
PublishPlanningPb
(
&
estop
,
start_timestamp
);
}
else
{
not_ready
->
set_reason
(
msg
);
status
.
Save
(
not_ready_pb
.
mutable_header
()
->
mutable_status
());
PublishPlanningPb
(
&
not_ready_pb
,
start_timestamp
);
}
auto
seq_num
=
frame_
->
SequenceNum
();
FrameHistory
::
instance
()
->
Add
(
seq_num
,
std
::
move
(
frame_
));
return
;
}
...
...
modules/planning/testdata/garage_test/result_out_of_map_0.pb.txt
浏览文件 @
040cd7da
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录