map_builder_context_impl.cc
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 
18 
22 
23 namespace cartographer {
24 namespace cloud {
25 
26 template <>
28  int trajectory_id, const std::string& sensor_id,
29  const mapping::proto::LocalSlamResultData& local_slam_result_data) {
30  map_builder_server_->incoming_data_queue_.Push(common::make_unique<Data>(
31  Data{trajectory_id,
32  common::make_unique<mapping::LocalSlamResult2D>(
33  sensor_id, local_slam_result_data, &submap_controller_)}));
34 }
35 
36 template <>
38  int trajectory_id, const std::string& sensor_id,
39  const mapping::proto::LocalSlamResultData& local_slam_result_data) {
40  map_builder_server_->incoming_data_queue_.Push(common::make_unique<Data>(
41  Data{trajectory_id,
42  common::make_unique<mapping::LocalSlamResult3D>(
43  sensor_id, local_slam_result_data, &submap_controller_)}));
44 }
45 
46 } // namespace cloud
47 } // namespace cartographer
void EnqueueLocalSlamResultData(int trajectory_id, const std::string &sensor_id, const mapping::proto::LocalSlamResultData &local_slam_result_data) override


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