Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
fc705abd
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 搜索 >>
提交
fc705abd
编写于
9月 27, 2018
作者:
D
Dong Li
提交者:
Liangliang Zhang
9月 27, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perception: fix breaked build
上级
02257e22
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
18 deletion
+19
-18
modules/perception/fusion/lib/data_association/hm_data_association/track_object_test.cc
...data_association/hm_data_association/track_object_test.cc
+3
-3
modules/perception/fusion/lib/gatekeeper/pbf_gatekeeper/BUILD
...les/perception/fusion/lib/gatekeeper/pbf_gatekeeper/BUILD
+7
-7
modules/perception/fusion/lib/gatekeeper/pbf_gatekeeper/pbf_gatekeeper.cc
...on/fusion/lib/gatekeeper/pbf_gatekeeper/pbf_gatekeeper.cc
+9
-8
未找到文件。
modules/perception/fusion/lib/data_association/hm_data_association/track_object_test.cc
浏览文件 @
fc705abd
...
...
@@ -16,7 +16,7 @@
#include "modules/perception/fusion/lib/data_association/hm_data_association/hm_tracks_objects_match.h"
#include
<gtest/gtest.h>
#include
"gtest/gtest.h"
#include "modules/perception/base/frame.h"
#include "modules/perception/common/sensor_manager/sensor_manager.h"
...
...
@@ -170,8 +170,8 @@ TEST(MatcherTest, test_all) {
EXPECT_FLOAT_EQ(association_mat[2][1], 4.0);
unassigned_tracks.clear();
unassigned_measurements.clear();
std::vector<TrackMeasurmentPair> assignments;
//test id assign with do_nothing equals to true
std::vector<TrackMeasurmentPair> assignments;
//test id assign with do_nothing equals to true
matcher.IdAssign(fusion_tracks, sensor_objects, &assignments,
&unassigned_tracks, &unassigned_measurements, true);
EXPECT_EQ(0, assignments.size());
...
...
modules/perception/fusion/lib/gatekeeper/pbf_gatekeeper/BUILD
浏览文件 @
fc705abd
...
...
@@ -11,14 +11,14 @@ cc_library(
"pbf_gatekeeper.h"
,
],
deps
=
[
"//modules/
perception/fusion/lib/interface:interface
"
,
"//modules/
common/util
"
,
"//modules/perception/fusion/base:base_init_options"
,
"//modules/perception/fusion/lib/gatekeeper/pbf_gatekeeper/proto:pbf_gatekeeper_config_proto"
,
"//modules/perception/lib/config_manager:config_manager"
,
"//modules/perception/lib/io:file_util"
,
"//modules/perception/lib/io:protobuf_util"
,
"//modules/perception/fusion/base:scene"
,
"//modules/perception/fusion/base:track"
,
"//modules/perception/fusion/lib/gatekeeper/pbf_gatekeeper/proto:pbf_gatekeeper_config_proto"
,
"//modules/perception/fusion/lib/interface"
,
"//modules/perception/lib/config_manager"
,
"//modules/perception/lib/io:file_util"
,
],
)
...
...
@@ -29,11 +29,11 @@ cc_test(
"pbf_gatekeeper_test.cc"
,
],
deps
=
[
"@gtest//:main"
,
":pbf_gatekeeper"
,
"//modules/perception/common/sensor_manager
:sensor_manager
"
,
"//modules/perception/common/sensor_manager"
,
"//modules/perception/fusion/base:sensor"
,
"//modules/perception/fusion/base:track"
,
"@gtest//:main"
,
],
)
...
...
modules/perception/fusion/lib/gatekeeper/pbf_gatekeeper/pbf_gatekeeper.cc
浏览文件 @
fc705abd
...
...
@@ -48,8 +48,8 @@ bool PbfGatekeeper::Init() {
lib
::
FileUtil
::
GetAbsolutePath
(
woork_root_config
,
options
.
conf_file
);
PbfGatekeeperConfig
params
;
if
(
!
apollo
::
common
::
util
::
GetProtoFromFile
<
PbfGatekeeperConfig
>
(
config
,
&
params
))
{
if
(
!
apollo
::
common
::
util
::
GetProtoFromFile
<
PbfGatekeeperConfig
>
(
config
,
&
params
))
{
AERROR
<<
"Read config failed: "
<<
config
;
return
false
;
}
...
...
@@ -100,7 +100,8 @@ bool PbfGatekeeper::AbleToPublish(const TrackPtr &track) {
track
->
AddTrackedTimes
();
if
(
params_
.
use_track_time_pub_strategy
&&
track
->
GetTrackedTimes
()
<=
params_
.
pub_track_time_thresh
)
{
track
->
GetTrackedTimes
()
<=
static_cast
<
size_t
>
(
params_
.
pub_track_time_thresh
))
{
return
false
;
}
return
true
;
...
...
@@ -164,11 +165,11 @@ bool PbfGatekeeper::RadarAbleToPublish(const TrackPtr &track, bool is_night) {
// }
// }
}
else
if
(
radar_object
->
GetSensorId
()
==
"radar_rear"
)
{
ADEBUG
<<
"radar_rear: min_dis: "
<<
params_
.
min_radar_confident_distance
<<
" obj dist: "
<<
radar_object
->
GetBaseObject
()
->
radar_supplement
.
range
<<
" track_id: "
<<
track
->
GetTrackId
()
<<
" exist_prob: "
<<
track
->
GetExistanceProb
();
ADEBUG
<<
"radar_rear: min_dis: "
<<
params_
.
min_radar_confident_distance
<<
" obj dist: "
<<
radar_object
->
GetBaseObject
()
->
radar_supplement
.
range
<<
" track_id: "
<<
track
->
GetTrackId
()
<<
" exist_prob: "
<<
track
->
GetExistanceProb
();
if
(
radar_object
->
GetBaseObject
()
->
radar_supplement
.
range
>
params_
.
min_radar_confident_distance
&&
(
radar_object
->
GetBaseObject
()
->
velocity
.
norm
()
>
4.0
||
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录