local_slam_result_data.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 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_MAPPING_LOCAL_SLAM_RESULT_DATA_H_
18 #define CARTOGRAPHER_MAPPING_LOCAL_SLAM_RESULT_DATA_H_
19 
22 
23 namespace cartographer {
24 namespace mapping {
25 
27  public:
28  LocalSlamResultData(const std::string& sensor_id, common::Time time)
29  : Data(sensor_id), time_(time) {}
30 
31  common::Time GetTime() const override { return time_; }
32  virtual void AddToPoseGraph(int trajectory_id,
33  PoseGraph* pose_graph) const = 0;
34 
35  private:
37 };
38 
39 } // namespace mapping
40 } // namespace cartographer
41 
42 #endif // CARTOGRAPHER_MAPPING_LOCAL_SLAM_RESULT_DATA_H_
UniversalTimeScaleClock::time_point Time
Definition: time.h:44
LocalSlamResultData(const std::string &sensor_id, common::Time time)
static time_point time
virtual void AddToPoseGraph(int trajectory_id, PoseGraph *pose_graph) const =0
Data(const std::string &sensor_id)
Definition: data.h:34


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