Apollo  v5.5.0
Open source self driving car software
io_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 <set>
18 #include <string>
19 #include <vector>
21 
22 namespace apollo {
23 namespace perception {
24 namespace benchmark {
25 
26 bool load_pcl_pcds(const std::string& filename, PointCloudPtr cloud_out,
27  const std::string& cloud_type = "xyzit");
28 
29 bool load_pcl_pcds_xyzit(const std::string& filename, PointCloudPtr cloud_out);
30 
31 bool load_pcl_pcds_xyzl(const std::string& filename, PointCloudPtr cloud_out);
32 
33 bool load_frame_objects(const std::string& filename,
34  const std::set<std::string>& black_list,
35  std::vector<ObjectPtr>* objects_out,
36  std::vector<PointCloud>* left_boundary = nullptr,
37  std::vector<PointCloud>* right_boundary = nullptr,
38  std::vector<PointCloud>* road_polygon = nullptr,
39  std::vector<PointCloud>* left_lane_boundary = nullptr,
40  std::vector<PointCloud>* right_lane_boundary = nullptr,
41  PointCloud* cloud = nullptr);
42 
43 bool load_sensor2world_pose(const std::string& filename,
44  Eigen::Matrix4d* pose_out);
45 
46 bool save_frame_objects(const std::string& filename,
47  const std::vector<ObjectPtr>& objects,
48  const int frame_id = 0);
49 
50 } // namespace benchmark
51 } // namespace perception
52 } // namespace apollo
bool save_frame_objects(const std::string &filename, const std::vector< ObjectPtr > &objects, const int frame_id=0)
bool load_pcl_pcds_xyzl(const std::string &filename, PointCloudPtr cloud_out)
bool load_sensor2world_pose(const std::string &filename, Eigen::Matrix4d *pose_out)
Definition: blob.h:72
pcl::PointCloud< Point > PointCloud
Definition: types.h:64
pcl::PointCloud< Point >::Ptr PointCloudPtr
Definition: types.h:65
bool load_pcl_pcds(const std::string &filename, PointCloudPtr cloud_out, const std::string &cloud_type="xyzit")
bool load_pcl_pcds_xyzit(const std::string &filename, PointCloudPtr cloud_out)
bool load_frame_objects(const std::string &filename, const std::set< std::string > &black_list, std::vector< ObjectPtr > *objects_out, std::vector< PointCloud > *left_boundary=nullptr, std::vector< PointCloud > *right_boundary=nullptr, std::vector< PointCloud > *road_polygon=nullptr, std::vector< PointCloud > *left_lane_boundary=nullptr, std::vector< PointCloud > *right_lane_boundary=nullptr, PointCloud *cloud=nullptr)