Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
bd74b4a3
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,发现更多精彩内容 >>
提交
bd74b4a3
编写于
12月 04, 2017
作者:
H
huiyujiang
提交者:
Jiangtao Hu
12月 04, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perception: remove fp & tuning parameter
上级
61d33a05
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
29 addition
and
14 deletion
+29
-14
modules/perception/model/probabilistic_fusion.config
modules/perception/model/probabilistic_fusion.config
+1
-1
modules/perception/obstacle/fusion/probabilistic_fusion/pbf_track.cc
...ception/obstacle/fusion/probabilistic_fusion/pbf_track.cc
+1
-1
modules/perception/obstacle/radar/modest/conti_radar_util.h
modules/perception/obstacle/radar/modest/conti_radar_util.h
+15
-0
modules/perception/obstacle/radar/modest/modest_radar_detector_test.cc
...ption/obstacle/radar/modest/modest_radar_detector_test.cc
+6
-6
modules/perception/obstacle/radar/modest/object_builder.cc
modules/perception/obstacle/radar/modest/object_builder.cc
+6
-6
未找到文件。
modules/perception/model/probabilistic_fusion.config
浏览文件 @
bd74b4a3
...
...
@@ -16,7 +16,7 @@ model_configs {
}
float_params
{
name
:
"max_radar_invisible_period"
value
:
0
.
50
value
:
0
.
25
}
float_params
{
name
:
"max_radar_confident_angle"
...
...
modules/perception/obstacle/fusion/probabilistic_fusion/pbf_track.cc
浏览文件 @
bd74b4a3
...
...
@@ -287,7 +287,7 @@ bool PbfTrack::AbleToPublish() {
s_max_radar_confident_angle_
)
{
if
(
fused_object_
->
object
->
velocity
.
dot
(
fused_object_
->
object
->
direction
)
<
0.3
)
{
//
fused_object_->object->velocity.setZero();
fused_object_
->
object
->
velocity
.
setZero
();
return
false
;
}
return
true
;
...
...
modules/perception/obstacle/radar/modest/conti_radar_util.h
浏览文件 @
bd74b4a3
...
...
@@ -18,6 +18,7 @@
#define MODULES_PERCEPTION_OBSTACLE_RADAR_MODEST_CONTI_RADAR_UTIL_H
#include "modules/perception/obstacle/radar/interface/base_radar_detector.h"
#include "modules/perception/obstacle/common/geometry_util.h"
namespace
apollo
{
namespace
perception
{
...
...
@@ -26,6 +27,20 @@ class ContiRadarUtil {
public:
static
bool
IsFp
(
const
ContiRadarObs
&
contiobs
,
const
ContiParams
&
params
,
const
int
delay_frames
,
const
int
tracking_times
);
static
bool
IsConflict
(
const
Eigen
::
Vector3f
&
main_velocity
,
const
Eigen
::
Vector3f
&
velocity
)
{
Eigen
::
Vector3f
vector_temp1
=
main_velocity
;
Eigen
::
Vector3f
vector_temp2
=
velocity
;
if
(
vector_temp1
.
head
(
2
).
norm
()
>
1e-5
&&
vector_temp2
.
head
(
2
).
norm
()
>
1e-5
)
{
double
theta
=
VectorTheta2dXy
(
vector_temp1
,
vector_temp2
);
if
((
theta
>
1.0
/
4.0
*
M_PI
&&
theta
<
3.0
/
4.0
*
M_PI
)
||
(
theta
>
-
3.0
/
4.0
*
M_PI
&&
theta
<
-
1.0
/
4.0
*
M_PI
))
{
return
true
;
}
}
return
false
;
}
};
}
// namespace perception
...
...
modules/perception/obstacle/radar/modest/modest_radar_detector_test.cc
浏览文件 @
bd74b4a3
...
...
@@ -53,8 +53,8 @@ TEST(ModestRadarDetectorTest, modest_radar_detector_test) {
Eigen
::
Matrix4d
radar2world_pose
;
radar2world_pose
<<
1
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
1
;
Eigen
::
Vector3f
main_car_velocity
;
main_car_velocity
[
0
]
=
-
1.0
;
main_car_velocity
[
1
]
=
0.
0
;
main_car_velocity
[
0
]
=
0.3
;
main_car_velocity
[
1
]
=
0.
4
;
main_car_velocity
[
2
]
=
0.0
;
options
.
radar2world_pose
=
&
radar2world_pose
;
options
.
car_linear_speed
=
main_car_velocity
;
...
...
@@ -77,8 +77,8 @@ TEST(ModestRadarDetectorTest, modest_radar_detector_test) {
EXPECT_EQ
(
objects
.
size
(),
1
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
center
(
0
)
-
0.0
)
<
1e-5
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
center
(
1
)
-
0.0
)
<
1e-5
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
velocity
(
0
)
-
2.0
)
<
1e-5
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
velocity
(
1
)
-
4.
0
)
<
1e-5
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
velocity
(
0
)
-
3.3
)
<
1e-5
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
velocity
(
1
)
-
4.
4
)
<
1e-5
);
EXPECT_TRUE
(
objects
[
0
]
->
type
==
UNKNOWN
);
objects
.
resize
(
0
);
header
->
set_timestamp_sec
(
123456789.074
);
...
...
@@ -92,8 +92,8 @@ TEST(ModestRadarDetectorTest, modest_radar_detector_test) {
EXPECT_EQ
(
objects
.
size
(),
1
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
center
(
0
)
-
location
(
0
))
<
1e-2
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
center
(
1
)
-
location
(
1
))
<
1e-2
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
velocity
(
0
)
-
2.0
)
<
1e-2
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
velocity
(
1
)
-
4.
0
)
<
1e-2
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
velocity
(
0
)
-
3.3
)
<
1e-2
);
EXPECT_TRUE
(
fabs
(
objects
[
0
]
->
velocity
(
1
)
-
4.
4
)
<
1e-2
);
EXPECT_TRUE
(
objects
[
0
]
->
type
==
UNKNOWN
);
delete
radar_detector
;
}
...
...
modules/perception/obstacle/radar/modest/object_builder.cc
浏览文件 @
bd74b4a3
...
...
@@ -66,9 +66,14 @@ void ObjectBuilder::Build(const ContiRadar &raw_obstacles,
Eigen
::
Matrix
<
double
,
3
,
1
>
velocity_r
;
Eigen
::
Matrix
<
double
,
3
,
1
>
velocity_w
;
velocity_r
<<
raw_obstacles
.
contiobs
(
i
).
longitude_vel
(),
raw_obstacles
.
contiobs
(
i
).
lateral_vel
(),
0.0
;
raw_obstacles
.
contiobs
(
i
).
lateral_vel
(),
0.0
;
velocity_w
=
radar_pose
.
topLeftCorner
(
3
,
3
)
*
velocity_r
;
Eigen
::
Vector3f
ref_velocity
(
main_velocity
(
0
),
main_velocity
(
1
),
0.0
);
if
(
ContiRadarUtil
::
IsConflict
(
ref_velocity
,
velocity_w
.
cast
<
float
>
()))
{
object_ptr
->
is_background
=
true
;
}
// calculate the absolute velodity
object_ptr
->
velocity
(
0
)
=
velocity_w
[
0
]
+
main_velocity
(
0
);
object_ptr
->
velocity
(
1
)
=
velocity_w
[
1
]
+
main_velocity
(
1
);
...
...
@@ -77,11 +82,6 @@ void ObjectBuilder::Build(const ContiRadar &raw_obstacles,
object_ptr
->
length
=
1.0
;
object_ptr
->
width
=
1.0
;
object_ptr
->
height
=
1.0
;
// int cls = raw_obstacles.contiobs(i).obstacle_class();
// if (cls == CONTI_CAR) {
// object_ptr->length = raw_obstacles.contiobs(i).length();
// object_ptr->width = raw_obstacles.contiobs(i).width();
// }
object_ptr
->
type
=
UNKNOWN
;
Eigen
::
Matrix3d
dist_rms
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录