Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
53d4a3a1
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,发现更多精彩内容 >>
提交
53d4a3a1
编写于
11月 01, 2017
作者:
D
Dong Li
提交者:
Jiangtao Hu
11月 01, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
planning: added change lane type in decision result
上级
5d480a20
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
29 addition
and
2 deletion
+29
-2
modules/planning/common/reference_line_info.cc
modules/planning/common/reference_line_info.cc
+8
-0
modules/planning/proto/decision.proto
modules/planning/proto/decision.proto
+6
-2
modules/planning/testdata/garage_test/result_follow_0.pb.txt
modules/planning/testdata/garage_test/result_follow_0.pb.txt
+1
-0
modules/planning/testdata/garage_test/result_out_of_map_0.pb.txt
.../planning/testdata/garage_test/result_out_of_map_0.pb.txt
+1
-0
modules/planning/testdata/garage_test/result_stop_dest_0.pb.txt
...s/planning/testdata/garage_test/result_stop_dest_0.pb.txt
+1
-0
modules/planning/testdata/garage_test/result_stop_obstacle_0.pb.txt
...anning/testdata/garage_test/result_stop_obstacle_0.pb.txt
+1
-0
modules/planning/testdata/garage_test/result_stop_over_line_0.pb.txt
...nning/testdata/garage_test/result_stop_over_line_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_avoid_change_left_0.pb.txt
...ata/sunnyvale_loop_test/result_avoid_change_left_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_change_lane_0.pb.txt
.../testdata/sunnyvale_loop_test/result_change_lane_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_cruise_0.pb.txt
...nning/testdata/sunnyvale_loop_test/result_cruise_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_follow_01_0.pb.txt
...ng/testdata/sunnyvale_loop_test/result_follow_01_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_follow_02_0.pb.txt
...ng/testdata/sunnyvale_loop_test/result_follow_02_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_follow_03_0.pb.txt
...ng/testdata/sunnyvale_loop_test/result_follow_03_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_nudge_0.pb.txt
...anning/testdata/sunnyvale_loop_test/result_nudge_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_rightturn_01_0.pb.txt
...testdata/sunnyvale_loop_test/result_rightturn_01_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_slowdown_01_0.pb.txt
.../testdata/sunnyvale_loop_test/result_slowdown_01_0.pb.txt
+1
-0
modules/planning/testdata/sunnyvale_loop_test/result_stop_0.pb.txt
...lanning/testdata/sunnyvale_loop_test/result_stop_0.pb.txt
+1
-0
未找到文件。
modules/planning/common/reference_line_info.cc
浏览文件 @
53d4a3a1
...
...
@@ -247,6 +247,14 @@ void ReferenceLineInfo::ExportDecision(DecisionResult* decision_result) const {
Decider
decider
;
decider
.
MakeDecision
(
*
this
,
decision_result
);
ExportTurnSignal
(
decision_result
->
mutable_vehicle_signal
());
auto
*
main_decision
=
decision_result
->
mutable_main_decision
();
if
(
main_decision
->
has_stop
())
{
main_decision
->
mutable_stop
()
->
set_change_lane_type
(
Lanes
().
PreviousAction
());
}
else
if
(
main_decision
->
has_cruise
())
{
main_decision
->
mutable_cruise
()
->
set_change_lane_type
(
Lanes
().
PreviousAction
());
}
}
}
// namespace planning
...
...
modules/planning/proto/decision.proto
浏览文件 @
53d4a3a1
...
...
@@ -4,6 +4,7 @@ package apollo.planning;
import
"modules/common/proto/geometry.proto"
;
import
"modules/common/proto/vehicle_signal.proto"
;
import
"modules/routing/proto/routing.proto"
;
message
TargetLane
{
// lane id
...
...
@@ -109,6 +110,7 @@ message MainStop {
optional
apollo.common.PointENU
stop_point
=
3
;
// When stopped, the heading of the vehicle should be stop_heading.
optional
double
stop_heading
=
4
;
optional
apollo.routing.ChangeLaneType
change_lane_type
=
5
;
}
message
EmergencyStopHardBrake
{
...
...
@@ -136,8 +138,10 @@ message MainEmergencyStop {
message
MainCruise
{
// cruise current lane
optional
apollo.routing.ChangeLaneType
change_lane_type
=
1
;
}
// This message is deprecated
message
MainChangeLane
{
enum
Type
{
LEFT
=
1
;
...
...
@@ -171,12 +175,12 @@ message MainDecision {
MainCruise
cruise
=
1
;
MainStop
stop
=
2
;
MainEmergencyStop
estop
=
3
;
MainChangeLane
change_lane
=
4
;
MainChangeLane
change_lane
=
4
[
deprecated
=
true
]
;
MainMissionComplete
mission_complete
=
6
;
MainNotReady
not_ready
=
7
;
MainParking
parking
=
8
;
}
repeated
TargetLane
target_lane
=
5
;
repeated
TargetLane
target_lane
=
5
[
deprecated
=
true
]
;
}
message
DecisionResult
{
...
...
modules/planning/testdata/garage_test/result_follow_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11227,6 +11227,7 @@ decision {
y: 4140779.4049973264
}
stop_heading: 1.3103597856554856
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/garage_test/result_out_of_map_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11227,6 +11227,7 @@ decision {
y: 4140779.4040114661
}
stop_heading: 1.3092468094681227
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/garage_test/result_stop_dest_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11227,6 +11227,7 @@ decision {
y: 4140779.4040114661
}
stop_heading: 1.3092468094681227
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/garage_test/result_stop_obstacle_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11227,6 +11227,7 @@ decision {
y: 4140699.2340279007
}
stop_heading: 1.2687368766187008
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/garage_test/result_stop_over_line_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -4199,6 +4199,7 @@ decision {
y: 4140779.4032230014
}
stop_heading: 1.3093800379827796
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_avoid_change_left_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11220,6 +11220,7 @@ trajectory_point {
decision {
main_decision {
cruise {
change_lane_type: LEFT
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_change_lane_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11220,6 +11220,7 @@ trajectory_point {
decision {
main_decision {
cruise {
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_cruise_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11220,6 +11220,7 @@ trajectory_point {
decision {
main_decision {
cruise {
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_follow_01_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11220,6 +11220,7 @@ trajectory_point {
decision {
main_decision {
cruise {
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_follow_02_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11227,6 +11227,7 @@ decision {
y: 4141386.0428220723
}
stop_heading: -1.8123278493438064
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_follow_03_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11220,6 +11220,7 @@ trajectory_point {
decision {
main_decision {
cruise {
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_nudge_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11220,6 +11220,7 @@ trajectory_point {
decision {
main_decision {
cruise {
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_rightturn_01_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11220,6 +11220,7 @@ trajectory_point {
decision {
main_decision {
cruise {
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_slowdown_01_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -11227,6 +11227,7 @@ decision {
y: 4140937.9266792168
}
stop_heading: -1.9046332856206114
change_lane_type: FORWARD
}
}
object_decision {
...
...
modules/planning/testdata/sunnyvale_loop_test/result_stop_0.pb.txt
浏览文件 @
53d4a3a1
...
...
@@ -4192,6 +4192,7 @@ trajectory_point {
decision {
main_decision {
cruise {
change_lane_type: FORWARD
}
}
object_decision {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录