kalman_local_trajectory_builder_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 
21 
22 namespace cartographer {
23 namespace mapping_3d {
24 
25 proto::KalmanLocalTrajectoryBuilderOptions
27  common::LuaParameterDictionary* const parameter_dictionary) {
28  proto::KalmanLocalTrajectoryBuilderOptions options;
29  options.set_use_online_correlative_scan_matching(
30  parameter_dictionary->GetBool("use_online_correlative_scan_matching"));
31  *options.mutable_real_time_correlative_scan_matcher_options() =
33  parameter_dictionary
34  ->GetDictionary("real_time_correlative_scan_matcher")
35  .get());
36  *options.mutable_pose_tracker_options() =
38  parameter_dictionary->GetDictionary("pose_tracker").get());
39  options.set_scan_matcher_variance(
40  parameter_dictionary->GetDouble("scan_matcher_variance"));
41  options.set_odometer_translational_variance(
42  parameter_dictionary->GetDouble("odometer_translational_variance"));
43  options.set_odometer_rotational_variance(
44  parameter_dictionary->GetDouble("odometer_rotational_variance"));
45  return options;
46 }
47 
48 } // namespace mapping_3d
49 } // namespace cartographer
proto::PoseTrackerOptions CreatePoseTrackerOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::KalmanLocalTrajectoryBuilderOptions CreateKalmanLocalTrajectoryBuilderOptions(common::LuaParameterDictionary *const parameter_dictionary)
proto::RealTimeCorrelativeScanMatcherOptions CreateRealTimeCorrelativeScanMatcherOptions(common::LuaParameterDictionary *const parameter_dictionary)
std::unique_ptr< LuaParameterDictionary > GetDictionary(const string &key)


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