Apollo 11.0
自动驾驶开放平台
lidar_object_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#pragma once
17
18#include <memory>
19
21
22namespace apollo {
23namespace perception {
24namespace lidar {
25
33void GetBoundingBox2d(const std::shared_ptr<base::Object>& object,
34 base::PointCloud<base::PointD>* box, double expand = 0.0);
35
42void ComputeObjectShapeFromPolygon(std::shared_ptr<base::Object> object,
43 bool use_world_cloud = false);
44
53 const Eigen::Vector3d& ref_center,
54 const base::ObjectPtr& object,
55 Eigen::Vector3f* direction);
56
66 const base::ObjectPtr& object,
67 const Eigen::Vector3d& ref_center,
68 size_t* max_point_index,
69 size_t* min_point_index);
70
71} // namespace lidar
72} // namespace perception
73} // namespace apollo
std::shared_ptr< Object > ObjectPtr
Definition object.h:127
void GetBoundingBox2d(const std::shared_ptr< Object > &object, PointCloud< PointD > *box, double expand)
void ComputeObjectShapeFromPolygon(std::shared_ptr< Object > object, bool use_world_cloud)
void ComputeMinMaxDirectionPoint(const base::ObjectPtr &object, const Eigen::Vector3d &ref_center, size_t *max_point_index, size_t *min_point_index)
Compute min max direction
void ComputePolygonDirection(const Eigen::Vector3d &ref_center, const base::ObjectPtr &object, Eigen::Vector3f *direction)
Compute polygon direction
class register implement
Definition arena_queue.h:37