diff --git a/cartographer_ros/configuration_files/backpack_2d_localization.lua b/cartographer_ros/configuration_files/backpack_2d_localization.lua index 9ecb218..c5da92c 100644 --- a/cartographer_ros/configuration_files/backpack_2d_localization.lua +++ b/cartographer_ros/configuration_files/backpack_2d_localization.lua @@ -14,7 +14,9 @@ include "backpack_2d.lua" -TRAJECTORY_BUILDER.pure_localization = true +TRAJECTORY_BUILDER.pure_localization_trimmer = { + max_submaps_to_keep = 3, +} POSE_GRAPH.optimize_every_n_nodes = 20 return options diff --git a/cartographer_ros/configuration_files/backpack_3d_localization.lua b/cartographer_ros/configuration_files/backpack_3d_localization.lua index e1f4e9f..3e677f5 100644 --- a/cartographer_ros/configuration_files/backpack_3d_localization.lua +++ b/cartographer_ros/configuration_files/backpack_3d_localization.lua @@ -14,7 +14,9 @@ include "backpack_3d.lua" -TRAJECTORY_BUILDER.pure_localization = true +TRAJECTORY_BUILDER.pure_localization_trimmer = { + max_submaps_to_keep = 3, +} POSE_GRAPH.optimize_every_n_nodes = 100 return options