Apollo  6.0
Open source self driving car software
spp_struct.h
Go to the documentation of this file.
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 
20 namespace apollo {
21 namespace perception {
22 namespace lidar {
23 
24 struct 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 
43  float objectness_threshold = 0.f;
44  float confidence_threshold = 0.f;
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 
58 struct SppParams {
59  float height_gap = 0.5f;
60  float confidence_range = 58.f;
61 };
62 
63 } // namespace lidar
64 } // namespace perception
65 } // namespace apollo
float data_range
Definition: spp_struct.h:51
base::Blob< float > * instance_pt_blob
Definition: spp_struct.h:32
int * grid_indices
Definition: spp_struct.h:41
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
size_t class_num
Definition: spp_struct.h:47
Definition: spp_struct.h:58
float confidence_threshold
Definition: spp_struct.h:44
base::Blob< float > * confidence_pt_blob
Definition: spp_struct.h:34
size_t data_width
Definition: spp_struct.h:48
float * obs_prob_data
Definition: spp_struct.h:25
base::Blob< float > * classify_pt_blob
Definition: spp_struct.h:35
float * class_prob_data
Definition: spp_struct.h:29
Definition: spp_struct.h:24
base::Blob< float > * category_pt_blob
Definition: spp_struct.h:33
float * confidence_data
Definition: spp_struct.h:27
float ** obs_prob_data_ref
Definition: spp_struct.h:39
void MakeReference(size_t width, size_t height, float range)
base::Blob< float > * heading_pt_blob
Definition: spp_struct.h:36
float * z_data
Definition: spp_struct.h:28
float top_z_threshold
Definition: spp_struct.h:45
float * offset_data
Definition: spp_struct.h:26
base::Blob< float > * height_pt_blob
Definition: spp_struct.h:37
float objectness_threshold
Definition: spp_struct.h:43
size_t data_size
Definition: spp_struct.h:50
size_t data_height
Definition: spp_struct.h:49
float * heading_data
Definition: spp_struct.h:30