Skip to content

Commit

Permalink
added missing read params after revert from map switch
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoussan committed Jul 9, 2024
1 parent 8046957 commit 95b6d9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions localization/localization_node/src/localization_nodelet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ bool LocalizationNodelet::ResetMap(const std::string& map_file) {
map_.reset();
map_ = std::make_shared<sparse_mapping::SparseMap>(last_valid_map_file_, true);
inst_.reset(new Localizer(map_.get()));
ReadParams();
enabled_ = true;
} else {
ROS_ERROR_STREAM("No last valid map, please reset with a valid map. Not localizing.");
Expand Down

0 comments on commit 95b6d9e

Please sign in to comment.