Apollo  6.0
Open source self driving car software
object_util.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2019 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 #include <vector>
19 
20 namespace apollo {
21 namespace perception {
22 namespace benchmark {
23 
24 // get 8 vertices of the 3D bounding box
25 bool get_bbox_vertices(const ObjectConstPtr object,
26  std::vector<Eigen::Vector3d>* vertices);
27 
28 // fill cloud and indices, using center, width/length/height
29 bool fill_objects_with_point_cloud(std::vector<ObjectPtr>* objects,
30  const PointCloudConstPtr cloud);
31 
32 bool fill_axis_align_box(ObjectPtr object);
33 
34 } // namespace benchmark
35 } // namespace perception
36 } // namespace apollo
bool fill_objects_with_point_cloud(std::vector< ObjectPtr > *objects, const PointCloudConstPtr cloud)
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool get_bbox_vertices(const ObjectConstPtr object, std::vector< Eigen::Vector3d > *vertices)
pcl::PointCloud< Point >::ConstPtr PointCloudConstPtr
Definition: types.h:66
std::shared_ptr< Object > ObjectPtr
Definition: object.h:158
bool fill_axis_align_box(ObjectPtr object)
std::shared_ptr< const Object > ObjectConstPtr
Definition: object.h:159