Skip to content

Commit 46e3ad4

Browse files
authored
feat(ndt_scan_matcher): fix first update map (#6699)
Signed-off-by: Yamato Ando <yamato.ando@tier4.jp>
1 parent 42d4936 commit 46e3ad4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

localization/ndt_scan_matcher/src/map_update_module.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ MapUpdateModule::MapUpdateModule(
4848
bool MapUpdateModule::should_update_map(const geometry_msgs::msg::Point & position)
4949
{
5050
if (last_update_position_ == std::nullopt) {
51-
return false;
51+
need_rebuild_ = true;
52+
return true;
5253
}
5354

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

0 commit comments

Comments
 (0)