Apollo  6.0
Open source self driving car software
point_cloud_frame.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 <string>
18 #include <vector>
20 
21 namespace apollo {
22 namespace perception {
23 namespace benchmark {
24 
26  public:
27  PointCloudFrame() = default;
28 
29  ~PointCloudFrame() = default;
30 
31  bool load(const std::vector<std::string>& filenames);
32 
33  inline const PointCloudConstPtr get_point_cloud() const {
34  return _point_cloud;
35  }
36 
37  inline std::string get_name() const { return _name; }
38 
39  inline void release() {}
40 
41  static void set_cloud_type(const std::string& type);
42 
43  private:
44  PointCloudPtr _point_cloud;
45  std::string _name;
46 
47  private:
48  static std::string _s_cloud_type;
49 };
50 
51 } // namespace benchmark
52 } // namespace perception
53 } // namespace apollo
const PointCloudConstPtr get_point_cloud() const
Definition: point_cloud_frame.h:33
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
pcl::PointCloud< Point >::ConstPtr PointCloudConstPtr
Definition: types.h:66
Definition: point_cloud_frame.h:25
pcl::PointCloud< Point >::Ptr PointCloudPtr
Definition: types.h:65
static void set_cloud_type(const std::string &type)
void release()
Definition: point_cloud_frame.h:39
std::string get_name() const
Definition: point_cloud_frame.h:37
bool load(const std::vector< std::string > &filenames)