Apollo 10.0
自动驾驶开放平台
point_cloud_util.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
17#pragma once
18
19#include <limits>
20#include <memory>
21#include <utility>
22#include <vector>
23
26
27namespace apollo {
28namespace perception {
29namespace base {
30
32 float x; // center of box
33 float y; // center of box
34 float z; // center of box
35 float length;
36 float width;
37 float height;
38 float yaw;
39 float trans_x; // center of points
40 float trans_y; // center of points
41 float trans_z; // center of points
42};
43
45 base::PointFCloudPtr out_cloud_ptr,
46 int downsample_factor);
47
49 const int& min_num_points = 5,
50 const bool& verbose = false);
51
53
55
56double OrientCloud(const PointFCloud& pc, PointFCloud* pc_out, bool demean);
57
58} // namespace base
59} // namespace perception
60} // namespace apollo
bool DownSamplePointCloudBeams(base::PointFCloudPtr cloud_ptr, base::PointFCloudPtr out_cloud_ptr, int downsample_factor)
void CloudDemean(PointFCloud *pc)
void GetPointCloudCentroid(const PointFCloud &cloud, PointF *centroid)
std::shared_ptr< PointFCloud > PointFCloudPtr
bool GetPointCloudMinareaBbox(const PointFCloud &pc, BoundingCube *box, const int &min_num_points, const bool &verbose)
std::shared_ptr< const PointFCloud > PointFCloudConstPtr
double OrientCloud(const PointFCloud &pc, PointFCloud *pc_out, bool demean)
class register implement
Definition arena_queue.h:37