Skip to content

Commit

Permalink
feat(ndt_scan_matcher): fix first update map (autowarefoundation#6699)
Browse files Browse the repository at this point in the history
Signed-off-by: Yamato Ando <[email protected]>
  • Loading branch information
YamatoAndo authored Apr 1, 2024
1 parent 42d4936 commit 46e3ad4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion localization/ndt_scan_matcher/src/map_update_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ MapUpdateModule::MapUpdateModule(
bool MapUpdateModule::should_update_map(const geometry_msgs::msg::Point & position)
{
if (last_update_position_ == std::nullopt) {
return false;
need_rebuild_ = true;
return true;
}

const double dx = position.x - last_update_position_.value().x;
Expand Down

0 comments on commit 46e3ad4

Please sign in to comment.