Apollo  6.0
Open source self driving car software
pfe_cuda.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2020 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 
17 #pragma once
18 
20 
21 namespace apollo {
22 namespace perception {
23 namespace lidar {
24 
25 class PfeCuda {
26  public:
27  PfeCuda(int max_num_pillars, int max_num_points_per_pillar,
28  int num_point_feature, int num_gather_point_feature,
29  float pillar_x_size, float pillar_y_size, float min_x_range,
30  float min_y_range, int num_threads);
31  ~PfeCuda() = default;
32 
33  void GatherPointFeature(float* dev_pillar_point_feature,
34  float* dev_num_points_per_pillar,
35  float* dev_pillar_coors,
36  float* dev_pfe_gather_feature);
37 
38  private:
39  int max_num_pillars_;
40  int max_num_points_per_pillar_;
41  int num_point_feature_;
42  int num_gather_point_feature_;
43  float pillar_x_size_;
44  float pillar_y_size_;
45  float min_x_range_;
46  float min_y_range_;
47  int num_threads_;
48 };
49 } // namespace lidar
50 } // namespace perception
51 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
PfeCuda(int max_num_pillars, int max_num_points_per_pillar, int num_point_feature, int num_gather_point_feature, float pillar_x_size, float pillar_y_size, float min_x_range, float min_y_range, int num_threads)
Definition: pfe_cuda.h:25
void GatherPointFeature(float *dev_pillar_point_feature, float *dev_num_points_per_pillar, float *dev_pillar_coors, float *dev_pfe_gather_feature)