We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42d4936 commit 46e3ad4Copy full SHA for 46e3ad4
localization/ndt_scan_matcher/src/map_update_module.cpp
@@ -48,7 +48,8 @@ MapUpdateModule::MapUpdateModule(
48
bool MapUpdateModule::should_update_map(const geometry_msgs::msg::Point & position)
49
{
50
if (last_update_position_ == std::nullopt) {
51
- return false;
+ need_rebuild_ = true;
52
+ return true;
53
}
54
55
const double dx = position.x - last_update_position_.value().x;
0 commit comments