range_data_inserter_interface.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 
19 
20 namespace cartographer {
21 namespace mapping {
22 
23 proto::RangeDataInserterOptions CreateRangeDataInserterOptions(
24  common::LuaParameterDictionary* const parameter_dictionary) {
25  proto::RangeDataInserterOptions options;
26  const std::string range_data_inserter_type_string =
27  parameter_dictionary->GetString("range_data_inserter_type");
28  proto::RangeDataInserterOptions_RangeDataInserterType
29  range_data_inserter_type;
30  CHECK(proto::RangeDataInserterOptions_RangeDataInserterType_Parse(
31  range_data_inserter_type_string, &range_data_inserter_type))
32  << "Unknown RangeDataInserterOptions_RangeDataInserterType kind: "
33  << range_data_inserter_type_string;
34  options.set_range_data_inserter_type(range_data_inserter_type);
35  *options.mutable_probability_grid_range_data_inserter_options_2d() =
37  parameter_dictionary
38  ->GetDictionary("probability_grid_range_data_inserter")
39  .get());
40  return options;
41 }
42 } // namespace mapping
43 } // namespace cartographer
proto::ProbabilityGridRangeDataInserterOptions2D CreateProbabilityGridRangeDataInserterOptions2D(common::LuaParameterDictionary *parameter_dictionary)
proto::RangeDataInserterOptions CreateRangeDataInserterOptions(common::LuaParameterDictionary *const parameter_dictionary)


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