Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
d427267f
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,发现更多精彩内容 >>
提交
d427267f
编写于
7月 27, 2017
作者:
J
Jiangtao Hu
提交者:
Yifei Jiang
7月 27, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
record planning init point into debug.
上级
d28f71ff
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
15 addition
and
5 deletion
+15
-5
modules/planning/planning.cc
modules/planning/planning.cc
+12
-2
modules/planning/proto/planning_internal.proto
modules/planning/proto/planning_internal.proto
+3
-2
modules/tools/diagnostics/batch_include.py
modules/tools/diagnostics/batch_include.py
+0
-1
未找到文件。
modules/planning/planning.cc
浏览文件 @
d427267f
...
...
@@ -200,6 +200,11 @@ bool Planning::Plan(const bool is_on_auto_mode, const double publish_time,
auto
matched_info
=
ComputeStartingPointFromLastTrajectory
(
execution_start_time
);
TrajectoryPoint
matched_point
=
matched_info
.
first
;
if
(
FLAGS_enable_record_debug
)
{
trajectory_pb
->
mutable_debug
()
->
mutable_planning_data
()
->
mutable_init_point
()
->
CopyFrom
(
matched_point
);
}
std
::
uint32_t
matched_index
=
matched_info
.
second
;
// Compute the position deviation between current vehicle
...
...
@@ -239,10 +244,15 @@ bool Planning::Plan(const bool is_on_auto_mode, const double publish_time,
// 2. we don't have the trajectory from last planning cycle or
// 3. the position deviation from actual and target is too high
// then planning from current vehicle state.
TrajectoryPoint
vehicle_sta
te
_point
=
TrajectoryPoint
vehicle_sta
rt
_point
=
ComputeStartingPointFromVehicleState
(
planning_cycle_time
);
auto
status
=
planner_
->
MakePlan
(
vehicle_state_point
,
trajectory_pb
);
if
(
FLAGS_enable_record_debug
)
{
trajectory_pb
->
mutable_debug
()
->
mutable_planning_data
()
->
mutable_init_point
()
->
CopyFrom
(
vehicle_start_point
);
}
auto
status
=
planner_
->
MakePlan
(
vehicle_start_point
,
trajectory_pb
);
if
(
!
status
.
ok
())
{
last_trajectory_
.
clear
();
return
false
;
...
...
modules/planning/proto/planning_internal.proto
浏览文件 @
d427267f
...
...
@@ -87,7 +87,7 @@ message PathDebug {
optional
apollo.common.Path
path
=
2
;
}
// next id: 1
0
// next id: 1
1
message
PlanningData
{
optional
apollo.common.Header
header
=
1
;
...
...
@@ -95,13 +95,14 @@ message PlanningData {
optional
apollo.localization.LocalizationEstimate
adc_position
=
7
;
optional
apollo.canbus.Chassis
chassis
=
8
;
optional
apollo.hdmap.RoutingResult
routing
=
9
;
optional
apollo.common.TrajectoryPoint
init_point
=
10
;
optional
apollo.localization.Pose
init_status
=
2
;
// initial status of adc
// processed planning_obstacles
repeated
PlanningObstacle
planning_obstacle
=
4
;
repeated
PathDebug
path
=
6
;
optional
apollo.localization.Pose
init_status
=
2
[
deprecated
=
true
];
// initial status of adc
optional
apollo.planning.MainDecision
main_decision
=
3
[
deprecated
=
true
];
optional
LightSignal
light_signal
=
5
[
deprecated
=
true
];
}
modules/tools/diagnostics/batch_include.py
浏览文件 @
d427267f
...
...
@@ -19,7 +19,6 @@
from
modules.canbus.proto
import
chassis_detail_pb2
from
modules.canbus.proto
import
chassis_pb2
from
modules.common.monitor.proto
import
monitor_pb2
from
modules.common.configs.proto
import
config_extrinsics_pb2
from
modules.common.configs.proto
import
vehicle_config_pb2
from
modules.common.proto
import
geometry_pb2
from
modules.common.proto
import
header_pb2
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录