Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
6ae481a1
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 搜索 >>
提交
6ae481a1
编写于
3月 18, 2018
作者:
J
Jiangtao Hu
提交者:
Aaron Xiao
3月 18, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perception: replace AFATAL with AERROR. AFATAL will crash the perception process. (#3461)
上级
76c4ba72
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
19 addition
and
19 deletion
+19
-19
modules/perception/obstacle/camera/detector/yolo_camera_detector/yolo_camera_detector.cc
...era/detector/yolo_camera_detector/yolo_camera_detector.cc
+2
-2
modules/perception/obstacle/camera/lane_post_process/cc_lane_post_processor/cc_lane_post_processor.cc
..._process/cc_lane_post_processor/cc_lane_post_processor.cc
+3
-3
modules/perception/obstacle/camera/lane_post_process/cc_lane_post_processor/group.h
...e/camera/lane_post_process/cc_lane_post_processor/group.h
+2
-2
modules/perception/obstacle/camera/lane_post_process/cc_lane_post_processor/lane_frame.cc
...ra/lane_post_process/cc_lane_post_processor/lane_frame.cc
+4
-4
modules/perception/obstacle/camera/lane_post_process/common/connected_component.cc
...le/camera/lane_post_process/common/connected_component.cc
+8
-8
未找到文件。
modules/perception/obstacle/camera/detector/yolo_camera_detector/yolo_camera_detector.cc
浏览文件 @
6ae481a1
...
...
@@ -209,7 +209,7 @@ bool YoloCameraDetector::init_cnn(const string &yolo_root) {
cnnadapter_
.
reset
(
new
CNNCaffe
);
break
;
default:
A
FATAL
<<
"unknown model type."
;
A
ERROR
<<
"unknown model type."
;
return
false
;
}
...
...
@@ -472,7 +472,7 @@ bool YoloCameraDetector::get_objects_cpu(
int
label
=
it
->
first
;
if
(
conf_scores
.
find
(
label
)
==
conf_scores
.
end
())
{
// Something bad happened if there are no predictions for current label.
A
FATAL
<<
"Could not find confidence predictions for "
<<
label
;
A
ERROR
<<
"Could not find confidence predictions for "
<<
label
;
continue
;
}
...
...
modules/perception/obstacle/camera/lane_post_process/cc_lane_post_processor/cc_lane_post_processor.cc
浏览文件 @
6ae481a1
...
...
@@ -61,7 +61,7 @@ bool CCLanePostProcessor::Init() {
AINFO
<<
"using image space to generate lane instances ..."
;
options_
.
space_type
=
SpaceType
::
IMAGE
;
}
else
{
A
FATAL
<<
"invalid space type"
<<
space_type
;
A
ERROR
<<
"invalid space type"
<<
space_type
;
return
false
;
}
options_
.
frame
.
space_type
=
options_
.
space_type
;
...
...
@@ -256,7 +256,7 @@ bool CCLanePostProcessor::Init() {
return
false
;
}
}
else
{
A
FATAL
<<
"invalid marker association method."
;
A
ERROR
<<
"invalid marker association method."
;
return
false
;
}
...
...
@@ -310,7 +310,7 @@ bool CCLanePostProcessor::Init() {
}
else
if
(
options_
.
space_type
==
SpaceType
::
IMAGE
)
{
is_x_longitude_
=
false
;
}
else
{
A
FATAL
<<
"invalid space type"
<<
space_type
;
A
ERROR
<<
"invalid space type"
<<
space_type
;
return
false
;
}
...
...
modules/perception/obstacle/camera/lane_post_process/cc_lane_post_processor/group.h
浏览文件 @
6ae481a1
...
...
@@ -134,7 +134,7 @@ inline int Group::ComputeOrientation(const std::vector<Marker>& markers,
break
;
}
default:
{
A
FATAL
<<
"unknown marker shape type."
;
}
default:
{
A
ERROR
<<
"unknown marker shape type."
;
}
}
start_angle
=
std
::
atan2
(
start_orie
(
1
),
start_orie
(
0
));
RectAngle
(
&
start_angle
);
...
...
@@ -178,7 +178,7 @@ inline int Group::ComputeOrientation(const std::vector<Marker>& markers,
break
;
}
default:
{
A
FATAL
<<
"unknown marker shape type."
;
}
default:
{
A
ERROR
<<
"unknown marker shape type."
;
}
}
end_angle
=
std
::
atan2
(
end_orie
(
1
),
end_orie
(
0
));
RectAngle
(
&
end_angle
);
...
...
modules/perception/obstacle/camera/lane_post_process/cc_lane_post_processor/lane_frame.cc
浏览文件 @
6ae481a1
...
...
@@ -83,7 +83,7 @@ ScalarType LaneFrame::ComputeMarkerPairDistance(const Marker& ref,
displacement
=
tar
.
start_pos
-
ref
.
pos
;
break
;
}
default:
{
A
FATAL
<<
"unknown marker shape type."
;
}
default:
{
A
ERROR
<<
"unknown marker shape type."
;
}
}
ScalarType
pos_dist
=
static_cast
<
ScalarType
>
(
displacement
.
norm
());
...
...
@@ -483,7 +483,7 @@ vector<int> LaneFrame::ComputeMarkerEdges(
y_thresh
=
markers_
[
i
].
pos
(
0
)
-
opts_
.
min_y_search_offset
;
break
;
}
default:
{
A
FATAL
<<
"Error: unknown space type "
<<
opts_
.
space_type
;
}
default:
{
A
ERROR
<<
"Error: unknown space type "
<<
opts_
.
space_type
;
}
}
for
(
int
j
=
0
;
j
<
static_cast
<
int
>
(
tot_marker_num
);
++
j
)
{
...
...
@@ -642,7 +642,7 @@ bool LaneFrame::GreedyGroupConnectAssociation() {
y_thresh
=
cur_group
->
end_pos
(
0
)
-
opts_
.
min_y_search_offset
;
break
;
}
default:
{
A
FATAL
<<
"unknown space type "
<<
cur_group
->
space_type
;
}
default:
{
A
ERROR
<<
"unknown space type "
<<
cur_group
->
space_type
;
}
}
to_group_idx
[
k
].
reserve
(
n
);
...
...
@@ -916,7 +916,7 @@ bool LaneFrame::Process(LaneInstancesPtr instances) {
}
break
;
}
default:
{
A
FATAL
<<
"unknown marker association method."
;
}
default:
{
A
ERROR
<<
"unknown marker association method."
;
}
}
AINFO
<<
"number of lane instance candidates = "
<<
graphs_
.
size
();
...
...
modules/perception/obstacle/camera/lane_post_process/common/connected_component.cc
浏览文件 @
6ae481a1
...
...
@@ -617,7 +617,7 @@ void ConnectedComponent::SplitContour(int split_len) {
}
}
else
{
A
FATAL
<<
"unknown bounding box split type: "
<<
bbox_
.
split
;
A
ERROR
<<
"unknown bounding box split type: "
<<
bbox_
.
split
;
}
}
...
...
@@ -635,10 +635,10 @@ void ConnectedComponent::Process(ScalarType split_siz, int split_len) {
/** split a CC into several smaller ones **/
vector
<
int
>
ConnectedComponent
::
GetSplitRanges
(
int
siz
,
int
len_split
)
{
if
(
siz
<=
0
)
{
A
FATAL
<<
"siz should be a positive number: "
<<
siz
;
A
ERROR
<<
"siz should be a positive number: "
<<
siz
;
}
if
(
len_split
<=
0
)
{
A
FATAL
<<
"len_split should be a positive number: "
<<
len_split
;
A
ERROR
<<
"len_split should be a positive number: "
<<
len_split
;
}
int
num_split
=
siz
/
len_split
;
...
...
@@ -696,17 +696,17 @@ ConnectedComponentGenerator::ConnectedComponentGenerator(int image_width,
roi_x_max_
(
roi
.
x
+
roi
.
width
-
1
),
roi_y_max_
(
roi
.
y
+
roi
.
height
-
1
)
{
if
(
roi_x_min_
<
0
)
{
A
FATAL
<<
"x_min is less than zero: "
<<
roi_x_min_
;
A
ERROR
<<
"x_min is less than zero: "
<<
roi_x_min_
;
}
if
(
roi_y_min_
<
0
)
{
A
FATAL
<<
"y_min is less than zero: "
<<
roi_y_min_
;
A
ERROR
<<
"y_min is less than zero: "
<<
roi_y_min_
;
}
if
(
roi_x_max_
>=
image_width_
)
{
A
FATAL
<<
"x_max is larger than image width: "
<<
roi_x_max_
<<
"|"
A
ERROR
<<
"x_max is larger than image width: "
<<
roi_x_max_
<<
"|"
<<
image_width_
;
}
if
(
roi_y_max_
>=
image_height_
)
{
A
FATAL
<<
"y_max is larger than image height: "
<<
roi_y_max_
<<
"|"
A
ERROR
<<
"y_max is larger than image height: "
<<
roi_y_max_
<<
"|"
<<
image_height_
;
}
total_pix_
=
static_cast
<
size_t
>
(
width_
)
*
static_cast
<
size_t
>
(
height_
);
...
...
@@ -723,7 +723,7 @@ ConnectedComponentGenerator::ConnectedComponentGenerator(int image_width,
cudaError_t
cuda_err
=
cudaGetLastError
();
if
(
cuda_err
!=
cudaSuccess
)
{
A
FATAL
<<
"failed to initialize 'img_array' and 'label_array' with CUDA: "
A
ERROR
<<
"failed to initialize 'img_array' and 'label_array' with CUDA: "
<<
cudaGetErrorString
(
cuda_err
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录