Apollo 11.0
自动驾驶开放平台
spp_struct.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2018 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16#pragma once
17
19
20namespace apollo {
21namespace perception {
22namespace lidar {
23
24struct SppData {
25 float* obs_prob_data = nullptr;
26 float* offset_data = nullptr;
27 float* confidence_data = nullptr;
28 float* z_data = nullptr;
29 float* class_prob_data = nullptr;
30 float* heading_data = nullptr;
31
38
39 float** obs_prob_data_ref = nullptr;
40
41 int* grid_indices = nullptr;
42
45 float top_z_threshold = 0.f;
46
47 size_t class_num = 0;
48 size_t data_width = 0;
49 size_t data_height = 0;
50 size_t data_size = 0;
51 float data_range = 0.0f;
52
53 void MakeReference(size_t width, size_t height, float range);
54
55 ~SppData();
56};
57
58struct SppParams {
59 float height_gap = 0.5f;
60 float confidence_range = 58.f;
61};
62
63} // namespace lidar
64} // namespace perception
65} // namespace apollo
A wrapper around SyncedMemory holders serving as the basic computational unit for images,...
Definition blob.h:88
class register implement
Definition arena_queue.h:37
void MakeReference(size_t width, size_t height, float range)
Definition spp_struct.cc:22
base::Blob< float > * category_pt_blob
Definition spp_struct.h:33
base::Blob< float > * instance_pt_blob
Definition spp_struct.h:32
base::Blob< float > * heading_pt_blob
Definition spp_struct.h:36
base::Blob< float > * classify_pt_blob
Definition spp_struct.h:35
base::Blob< float > * height_pt_blob
Definition spp_struct.h:37
base::Blob< float > * confidence_pt_blob
Definition spp_struct.h:34