node_options.cc
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 
18 
19 #include "glog/logging.h"
20 
21 namespace cartographer_ros {
22 
25  lua_parameter_dictionary) {
27  options.map_builder_options =
28  ::cartographer::mapping::CreateMapBuilderOptions(
29  lua_parameter_dictionary->GetDictionary("map_builder").get());
30  options.map_frame = lua_parameter_dictionary->GetString("map_frame");
32  lua_parameter_dictionary->GetDouble("lookup_transform_timeout_sec");
34  lua_parameter_dictionary->GetDouble("submap_publish_period_sec");
35  options.pose_publish_period_sec =
36  lua_parameter_dictionary->GetDouble("pose_publish_period_sec");
38  lua_parameter_dictionary->GetDouble("trajectory_publish_period_sec");
39 
40  return options;
41 }
42 
43 } // namespace cartographer_ros
::cartographer::mapping::proto::MapBuilderOptions map_builder_options
Definition: node_options.h:30
options
NodeOptions CreateNodeOptions(::cartographer::common::LuaParameterDictionary *const lua_parameter_dictionary)
Definition: node_options.cc:23
std::unique_ptr< LuaParameterDictionary > GetDictionary(const string &key)


cartographer_ros
Author(s):
autogenerated on Wed Jun 5 2019 22:35:56