local_slam_result_3d.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_INTERNAL_3D_LOCAL_SLAM_RESULT_3D_H_
18 #define CARTOGRAPHER_MAPPING_INTERNAL_3D_LOCAL_SLAM_RESULT_3D_H_
19 
23 
24 namespace cartographer {
25 namespace mapping {
26 
28  public:
30  const std::string& sensor_id,
31  const mapping::proto::LocalSlamResultData local_slam_result_data,
32  SubmapController<mapping::Submap3D>* submap_controller)
33  : LocalSlamResultData(sensor_id, common::FromUniversal(
34  local_slam_result_data.timestamp())),
35  sensor_id_(sensor_id),
36  local_slam_result_data_(local_slam_result_data),
37  submap_controller_(submap_controller) {}
38 
40  TrajectoryBuilderInterface* const trajectory_builder) override;
41  void AddToPoseGraph(int trajectory_id, PoseGraph* pose_graph) const override;
42 
43  private:
44  const std::string sensor_id_;
45  const mapping::proto::LocalSlamResultData local_slam_result_data_;
47 };
48 
49 } // namespace mapping
50 } // namespace cartographer
51 
52 #endif // CARTOGRAPHER_MAPPING_INTERNAL_3D_LOCAL_SLAM_RESULT_3D_H_
LocalSlamResult3D(const std::string &sensor_id, const mapping::proto::LocalSlamResultData local_slam_result_data, SubmapController< mapping::Submap3D > *submap_controller)
void AddToPoseGraph(int trajectory_id, PoseGraph *pose_graph) const override
const mapping::proto::LocalSlamResultData local_slam_result_data_
SubmapController< mapping::Submap3D > * submap_controller_
Time FromUniversal(const int64 ticks)
Definition: time.cc:34
void AddToTrajectoryBuilder(TrajectoryBuilderInterface *const trajectory_builder) override


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