Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
a71ed839
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 搜索 >>
提交
a71ed839
编写于
12月 06, 2018
作者:
S
shuang liu
提交者:
Jiangtao Hu
12月 13, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refine-RSSInfo-profo-header
上级
24414850
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
48 addition
and
6 deletion
+48
-6
modules/planning/proto/planning.proto
modules/planning/proto/planning.proto
+9
-0
modules/planning/toolkits/rss/BUILD
modules/planning/toolkits/rss/BUILD
+1
-0
modules/planning/toolkits/rss/decider_rss.cc
modules/planning/toolkits/rss/decider_rss.cc
+38
-6
未找到文件。
modules/planning/proto/planning.proto
浏览文件 @
a71ed839
...
...
@@ -41,6 +41,15 @@ message LatencyStats {
}
message
RSSInfo
{
optional
bool
is_rss_safe
=
1
;
optional
double
cur_dist_lon
=
2
;
optional
double
rss_safe_dist_lon
=
3
;
optional
double
acc_lon_range_minimum
=
4
;
optional
double
acc_lon_range_maximum
=
5
;
optional
double
acc_lat_left_range_minimum
=
6
;
optional
double
acc_lat_left_range_maximum
=
7
;
optional
double
acc_lat_right_range_minimum
=
8
;
optional
double
acc_lat_right_range_maximum
=
9
;
}
// next id: 21
...
...
modules/planning/toolkits/rss/BUILD
浏览文件 @
a71ed839
...
...
@@ -16,6 +16,7 @@ cc_library(
"//modules/common/status"
,
"//modules/planning/common:planning_context"
,
"//modules/planning/common:planning_gflags"
,
"//modules/planning/proto:planning_proto"
,
"//modules/planning/common:reference_line_info"
,
"//modules/planning/toolkits:task"
,
],
...
...
modules/planning/toolkits/rss/decider_rss.cc
浏览文件 @
a71ed839
...
...
@@ -21,6 +21,7 @@
#include "modules/planning/toolkits/rss/decider_rss.h"
#include "modules/common/configs/vehicle_config_helper.h"
#include "modules/planning/common/planning_gflags.h"
#include "modules/planning/proto/planning.pb.h"
namespace
apollo
{
namespace
planning
{
...
...
@@ -228,22 +229,53 @@ Status RssDecider::Process(
rssCheck
.
calculateAccelerationRestriction
(
worldModel
,
accelerationRestriction
);
ADEBUG
<<
"dMin_lon = "
<<
dMin_lon
<<
" front_obstacle_distance = "
<<
front_obstacle_distance
;
ADEBUG
<<
"accelerationRestriction.LongitudinalRange.maximum = "
<<
accelerationRestriction
.
longitudinalRange
.
maximum
;
ADEBUG
<<
"accelerationRestriction.LongitudinalRange.minimum = "
<<
accelerationRestriction
.
longitudinalRange
.
minimum
;
RSSInfo
rss_info
;
if
(
front_obstacle_distance
>
dMin_lon
)
{
ADEBUG
<<
"Task "
<<
Name
()
<<
" Distance is RSS-Safe"
;
rss_info
.
set_is_rss_safe
(
true
);
}
else
{
ADEBUG
<<
"Task "
<<
Name
()
<<
" Distance is not RSS-Safe"
;
rss_info
.
set_is_rss_safe
(
false
);
if
(
FLAGS_enable_rss_fallback
)
{
reference_line_info
->
mutable_speed_data
()
->
Clear
();
}
}
rss_info
.
set_cur_dist_lon
(
front_obstacle_distance
);
rss_info
.
set_rss_safe_dist_lon
(
dMin_lon
);
rss_info
.
set_acc_lon_range_minimum
(
accelerationRestriction
.
longitudinalRange
.
minimum
);
rss_info
.
set_acc_lon_range_maximum
(
accelerationRestriction
.
longitudinalRange
.
maximum
);
rss_info
.
set_acc_lat_left_range_minimum
(
accelerationRestriction
.
lateralLeftRange
.
minimum
);
rss_info
.
set_acc_lat_left_range_maximum
(
accelerationRestriction
.
lateralLeftRange
.
maximum
);
rss_info
.
set_acc_lat_right_range_minimum
(
accelerationRestriction
.
lateralRightRange
.
minimum
);
rss_info
.
set_acc_lat_right_range_maximum
(
accelerationRestriction
.
lateralRightRange
.
maximum
);
ADEBUG
<<
" is_rss_safe : "
<<
rss_info
.
is_rss_safe
();
ADEBUG
<<
" cur_dist_lon: "
<<
rss_info
.
cur_dist_lon
();
ADEBUG
<<
" rss_safe_dist_lon: "
<<
rss_info
.
rss_safe_dist_lon
();
ADEBUG
<<
" acc_longitudianlRange_minimum: "
<<
rss_info
.
acc_lon_range_minimum
();
ADEBUG
<<
" acc_longitudinalRange_maximum: "
<<
rss_info
.
acc_lon_range_maximum
();
ADEBUG
<<
" acc_lateralLeftRange_minimum: "
<<
rss_info
.
acc_lat_left_range_minimum
();
ADEBUG
<<
" acc_lateralLeftRange_maximum: "
<<
rss_info
.
acc_lat_left_range_maximum
();
ADEBUG
<<
" acc_lateralRightRange: "
<<
rss_info
.
acc_lat_right_range_minimum
();
ADEBUG
<<
" acc_lateralRightRange_maximum: "
<<
rss_info
.
acc_lat_right_range_maximum
();
return
Status
::
OK
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录