Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
a80c1e26
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 搜索 >>
提交
a80c1e26
编写于
10月 18, 2019
作者:
J
jmtao
提交者:
Xiangquan Xiao
10月 18, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
planning: add gflag default_cruise_speed to reference_line_info
上级
fe082e90
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
7 deletion
+14
-7
modules/planning/common/reference_line_info.cc
modules/planning/common/reference_line_info.cc
+5
-3
modules/planning/common/reference_line_info.h
modules/planning/common/reference_line_info.h
+7
-2
modules/planning/planner/lattice/lattice_planner.cc
modules/planning/planner/lattice/lattice_planner.cc
+1
-1
modules/planning/traffic_rules/traffic_decider.cc
modules/planning/traffic_rules/traffic_decider.cc
+1
-1
未找到文件。
modules/planning/common/reference_line_info.cc
浏览文件 @
a80c1e26
...
...
@@ -103,9 +103,11 @@ bool ReferenceLineInfo::Init(const std::vector<const Obstacle*>& obstacles) {
FLAGS_speed_bump_speed_limit
);
}
// set lattice planning target speed limit;
SetCruiseSpeed
(
FLAGS_default_cruise_speed
);
// set lattice planning target speed limit;
SetLatticeCruiseSpeed
(
FLAGS_default_cruise_speed
);
vehicle_signal_
.
Clear
();
return
true
;
...
...
@@ -447,11 +449,11 @@ const DiscretizedTrajectory& ReferenceLineInfo::trajectory() const {
return
discretized_trajectory_
;
}
void
ReferenceLineInfo
::
SetStopPoint
(
const
StopPoint
&
stop_point
)
{
void
ReferenceLineInfo
::
Set
Lattice
StopPoint
(
const
StopPoint
&
stop_point
)
{
planning_target_
.
mutable_stop_point
()
->
CopyFrom
(
stop_point
);
}
void
ReferenceLineInfo
::
SetCruiseSpeed
(
double
speed
)
{
void
ReferenceLineInfo
::
Set
Lattice
CruiseSpeed
(
double
speed
)
{
planning_target_
.
set_cruise_speed
(
speed
);
}
...
...
modules/planning/common/reference_line_info.h
浏览文件 @
a80c1e26
...
...
@@ -85,10 +85,13 @@ class ReferenceLineInfo {
double
PriorityCost
()
const
{
return
priority_cost_
;
}
void
SetPriorityCost
(
double
cost
)
{
priority_cost_
=
cost
;
}
// For lattice planner'speed planning target
void
SetStopPoint
(
const
StopPoint
&
stop_point
);
void
SetCruiseSpeed
(
double
speed
);
void
Set
Lattice
StopPoint
(
const
StopPoint
&
stop_point
);
void
Set
Lattice
CruiseSpeed
(
double
speed
);
const
PlanningTarget
&
planning_target
()
const
{
return
planning_target_
;
}
void
SetCruiseSpeed
(
double
speed
)
{
cruise_speed_
=
speed
;
}
const
double
GetCruiseSpeed
()
const
{
return
cruise_speed_
;
}
hdmap
::
LaneInfoConstPtr
LocateLaneInfo
(
const
double
s
)
const
;
bool
GetNeighborLaneInfo
(
const
ReferenceLineInfo
::
LaneType
lane_type
,
...
...
@@ -322,6 +325,8 @@ class ReferenceLineInfo {
common
::
VehicleSignal
vehicle_signal_
;
double
cruise_speed_
;
DISALLOW_COPY_AND_ASSIGN
(
ReferenceLineInfo
);
};
...
...
modules/planning/planner/lattice/lattice_planner.cc
浏览文件 @
a80c1e26
...
...
@@ -173,7 +173,7 @@ Status LatticePlanner::PlanOnReferenceLine(
double
speed_limit
=
reference_line_info
->
reference_line
().
GetSpeedLimitFromS
(
init_s
[
0
]);
reference_line_info
->
SetCruiseSpeed
(
speed_limit
);
reference_line_info
->
Set
Lattice
CruiseSpeed
(
speed_limit
);
PlanningTarget
planning_target
=
reference_line_info
->
planning_target
();
if
(
planning_target
.
has_stop_point
())
{
...
...
modules/planning/traffic_rules/traffic_decider.cc
浏览文件 @
a80c1e26
...
...
@@ -132,7 +132,7 @@ void TrafficDecider::BuildPlanningTarget(
vehicle_config
.
vehicle_param
().
front_edge_to_center
();
stop_point
.
set_s
(
min_s
-
front_edge_to_center
+
FLAGS_virtual_stop_wall_length
/
2.0
);
reference_line_info
->
SetStopPoint
(
stop_point
);
reference_line_info
->
Set
Lattice
StopPoint
(
stop_point
);
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录