relations_text_file.h
Go to the documentation of this file.
1 /*
2  * Copyright 2016 The Cartographer Authors
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 #ifndef CARTOGRAPHER_GROUND_TRUTH_RELATIONS_TEXT_FILE_H_
18 #define CARTOGRAPHER_GROUND_TRUTH_RELATIONS_TEXT_FILE_H_
19 
20 #include <string>
21 
23 #include "cartographer/ground_truth/proto/relations.pb.h"
24 
25 namespace cartographer {
26 namespace ground_truth {
27 
28 // Reads a text file and converts it to a GroundTruth proto. Each line contains:
29 // time1 time2 x y z roll pitch yaw
30 // using Unix epoch timestamps.
31 //
32 // This is the format used in the relations files provided for:
33 // R. Kuemmerle, B. Steder, C. Dornhege, M. Ruhnke, G. Grisetti, C. Stachniss,
34 // and A. Kleiner, "On measuring the accuracy of SLAM algorithms," Autonomous
35 // Robots, vol. 27, no. 4, pp. 387–407, 2009.
36 proto::GroundTruth ReadRelationsTextFile(const std::string& relations_filename);
37 
38 } // namespace ground_truth
39 } // namespace cartographer
40 
41 #endif // CARTOGRAPHER_GROUND_TRUTH_RELATIONS_TEXT_FILE_H_
proto::GroundTruth ReadRelationsTextFile(const std::string &relations_filename)


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:58