Apollo 11.0
自动驾驶开放平台
base_pointcloud_preprocessor.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2021 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
18#include <memory>
19#include <string>
20
21#include "modules/common_msgs/sensor_msgs/pointcloud.pb.h"
22
23#include "cyber/common/macros.h"
27
28namespace apollo {
29namespace perception {
30namespace lidar {
31
33
35 std::string sensor_name = "velodyne64";
36};
37
40
41 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
43
45 public:
47
48 virtual ~BasePointCloudPreprocessor() = default;
56 virtual bool Init(const PointCloudPreprocessorInitOptions& options =
58
68 virtual bool Preprocess(
69 const PointCloudPreprocessorOptions& options,
70 const std::shared_ptr<apollo::drivers::PointCloud const>& message,
71 LidarFrame* frame) const = 0;
80 virtual bool Preprocess(const PointCloudPreprocessorOptions& options,
81 LidarFrame* frame) const = 0;
87 virtual std::string Name() const = 0;
88
89 private:
91}; // class BasePointCloudPreprocessor
92
94#define PERCEPTION_REGISTER_POINTCLOUDPREPROCESSOR(name) \
95 PERCEPTION_REGISTER_CLASS(BasePointCloudPreprocessor, name)
96
97} // namespace lidar
98} // namespace perception
99} // namespace apollo
virtual std::string Name() const =0
Get class name
virtual bool Init(const PointCloudPreprocessorInitOptions &options=PointCloudPreprocessorInitOptions())=0
Init pointcloud preprocessor
virtual bool Preprocess(const PointCloudPreprocessorOptions &options, const std::shared_ptr< apollo::drivers::PointCloud const > &message, LidarFrame *frame) const =0
Preprocess point cloud
virtual bool Preprocess(const PointCloudPreprocessorOptions &options, LidarFrame *frame) const =0
Preprocess point cloud
#define DISALLOW_COPY_AND_ASSIGN(classname)
Definition macros.h:48
struct apollo::perception::lidar::PCLPointXYZIT EIGEN_ALIGN16
class register implement
Definition arena_queue.h:37
#define PERCEPTION_REGISTER_REGISTERER(base_class)
Definition registerer.h:92