Skip to content

Commit

Permalink
Add collate_by_trajectory support in lua config (cartographer-proje…
Browse files Browse the repository at this point in the history
…ct#1334)

This commit add support of specifying the option to collate data by
trajectory introduced in cartographer-project#828 in the lua configuration files.
The value is set to false as when a boolean option is not specified it
is initialized to false.
  • Loading branch information
damienrg authored and pifon2a committed Mar 8, 2019
1 parent 856e9c9 commit 3b941ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cartographer/mapping/map_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ proto::MapBuilderOptions CreateMapBuilderOptions(
parameter_dictionary->GetBool("use_trajectory_builder_3d"));
options.set_num_background_threads(
parameter_dictionary->GetNonNegativeInt("num_background_threads"));
options.set_collate_by_trajectory(
parameter_dictionary->GetBool("collate_by_trajectory"));
*options.mutable_pose_graph_options() = CreatePoseGraphOptions(
parameter_dictionary->GetDictionary("pose_graph").get());
CHECK_NE(options.use_trajectory_builder_2d(),
Expand Down
1 change: 1 addition & 0 deletions configuration_files/map_builder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ MAP_BUILDER = {
use_trajectory_builder_3d = false,
num_background_threads = 4,
pose_graph = POSE_GRAPH,
collate_by_trajectory = false,
}

0 comments on commit 3b941ee

Please sign in to comment.