Skip to content

Commit 3088d04

Browse files
Added coping input_source when rebuilding ndt
Signed-off-by: Shintaro SAKODA <shintaro.sakoda@tier4.jp>
1 parent 9120c08 commit 3088d04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

localization/ndt_scan_matcher/src/map_update_module.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,14 @@ void MapUpdateModule::update_map(const geometry_msgs::msg::Point & position)
7171
if (need_rebuild_) {
7272
ndt_ptr_mutex_->lock();
7373
auto param = ndt_ptr_->getParams();
74+
auto input_source = ndt_ptr_->getInputSource();
7475

7576
ndt_ptr_.reset(new NdtType);
7677

7778
ndt_ptr_->setParams(param);
7879

7980
update_ndt(position, *ndt_ptr_);
81+
ndt_ptr_->setInputSource(input_source);
8082
ndt_ptr_mutex_->unlock();
8183
need_rebuild_ = false;
8284
} else {

0 commit comments

Comments
 (0)