Apollo 11.0
自动驾驶开放平台
pcl_down_sample.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2024 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
19#include <limits>
20#include <string>
21#include <vector>
22
23#include "modules/perception/lidar_detection/down_sample_bank/pcl_down_sample/proto/pcl_down_sample.pb.h"
24
25#include "cyber/common/file.h"
26#include "cyber/common/log.h"
30
31namespace apollo {
32namespace perception {
33namespace lidar {
34
36 public:
37 PclDownSample() = default;
38 virtual ~PclDownSample() = default;
39
47 bool Init(
48 const DownSampleInitOptions& options = DownSampleInitOptions()) override;
49
58 bool Process(const DownSampleOptions& options,
59 base::PointFCloudPtr& cloud_ptr) override;
60
66 std::string Name() const override { return "PclDownSample"; }
67
68 private:
69 double downsample_voxel_size_x_ = 0.09;
70 double downsample_voxel_size_y_ = 0.09;
71 double downsample_voxel_size_z_ = 0.09;
72}; // class PclDownSample
73
75 BaseDownSample)
76
77} // namespace lidar
78} // namespace perception
79} // namespace apollo
bool Init(const DownSampleInitOptions &options=DownSampleInitOptions()) override
Init of PclDownSample object
bool Process(const DownSampleOptions &options, base::PointFCloudPtr &cloud_ptr) override
Down sample pointcloud
std::string Name() const override
Name of PclDownSample object
#define CYBER_PLUGIN_MANAGER_REGISTER_PLUGIN(name, base)
std::shared_ptr< PointFCloud > PointFCloudPtr
class register implement
Definition arena_queue.h:37