trajectory_builder.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 
21 
22 namespace cartographer {
23 namespace mapping {
24 
25 proto::TrajectoryBuilderOptions CreateTrajectoryBuilderOptions(
26  common::LuaParameterDictionary* const parameter_dictionary) {
27  proto::TrajectoryBuilderOptions options;
28  *options.mutable_trajectory_builder_2d_options() =
30  parameter_dictionary->GetDictionary("trajectory_builder_2d").get());
31  *options.mutable_trajectory_builder_3d_options() =
33  parameter_dictionary->GetDictionary("trajectory_builder_3d").get());
34  return options;
35 }
36 
37 } // namespace mapping
38 } // namespace cartographer
proto::TrajectoryBuilderOptions CreateTrajectoryBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::LocalTrajectoryBuilderOptions CreateLocalTrajectoryBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::LocalTrajectoryBuilderOptions CreateLocalTrajectoryBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const string &key)


cartographer
Author(s):
autogenerated on Wed Jun 5 2019 21:57:59