Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
dbeb37cd
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,发现更多精彩内容 >>
提交
dbeb37cd
编写于
4月 01, 2019
作者:
H
Hongyi
提交者:
Xiangquan Xiao
4月 02, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Prediction: add new function and set for curr_frame_considered_obstacle_ids_
上级
e1b9aac4
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
34 addition
and
0 deletion
+34
-0
modules/prediction/container/obstacles/obstacles_container.cc
...les/prediction/container/obstacles/obstacles_container.cc
+22
-0
modules/prediction/container/obstacles/obstacles_container.h
modules/prediction/container/obstacles/obstacles_container.h
+12
-0
未找到文件。
modules/prediction/container/obstacles/obstacles_container.cc
浏览文件 @
dbeb37cd
...
...
@@ -42,6 +42,7 @@ void ObstaclesContainer::Insert(const ::google::protobuf::Message& message) {
curr_frame_id_mapping_
.
clear
();
curr_frame_predictable_obstacle_ids_
.
clear
();
curr_frame_non_predictable_obstacle_ids_
.
clear
();
curr_frame_considered_obstacle_ids_
.
clear
();
curr_frame_id_perception_obstacle_map_
.
clear
();
PerceptionObstacles
perception_obstacles
;
...
...
@@ -168,6 +169,27 @@ ObstaclesContainer::curr_frame_non_predictable_obstacle_ids() {
return
curr_frame_non_predictable_obstacle_ids_
;
}
const
std
::
vector
<
int
>&
ObstaclesContainer
::
curr_frame_considered_obstacle_ids
()
{
return
curr_frame_considered_obstacle_ids_
;
}
void
ObstaclesContainer
::
SetConsideredObstacleIds
()
{
curr_frame_considered_obstacle_ids_
.
clear
();
for
(
const
int
id
:
curr_frame_predictable_obstacle_ids_
)
{
Obstacle
*
obstacle_ptr
=
GetObstacle
(
id
);
if
(
obstacle_ptr
==
nullptr
)
{
AERROR
<<
"Null obstacle found."
;
continue
;
}
if
(
obstacle_ptr
->
ToIgnore
())
{
ADEBUG
<<
"Ignore obstacle ["
<<
obstacle_ptr
->
id
()
<<
"]"
;
continue
;
}
curr_frame_considered_obstacle_ids_
.
push_back
(
id
);
}
}
std
::
vector
<
int
>
ObstaclesContainer
::
curr_frame_obstacle_ids
()
{
std
::
vector
<
int
>
curr_frame_obs_ids
=
curr_frame_predictable_obstacle_ids_
;
curr_frame_obs_ids
.
insert
(
curr_frame_obs_ids
.
end
(),
...
...
modules/prediction/container/obstacles/obstacles_container.h
浏览文件 @
dbeb37cd
...
...
@@ -111,6 +111,17 @@ class ObstaclesContainer : public Container {
*/
const
std
::
vector
<
int
>&
curr_frame_non_predictable_obstacle_ids
();
/**
* @brief Get non-ignore obstacle IDs in the current frame
* @return Non-ignore obstacle IDs in the current frame
*/
const
std
::
vector
<
int
>&
curr_frame_considered_obstacle_ids
();
/*
* @brief Set non-ignore obstacle IDs in the current frame
*/
void
SetConsideredObstacleIds
();
/**
* @brief Get current frame obstacle IDs in the current frame
* @return Current frame obstacle IDs in the current frame
...
...
@@ -146,6 +157,7 @@ class ObstaclesContainer : public Container {
common
::
util
::
LRUCache
<
int
,
int
>
id_mapping_
;
std
::
vector
<
int
>
curr_frame_predictable_obstacle_ids_
;
std
::
vector
<
int
>
curr_frame_non_predictable_obstacle_ids_
;
std
::
vector
<
int
>
curr_frame_considered_obstacle_ids_
;
// perception_id -> prediction_id
std
::
unordered_map
<
int
,
int
>
curr_frame_id_mapping_
;
// prediction_id -> perception_obstacle
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录