Skip to content

Commit

Permalink
slam_toolbox_async_node is now pausable (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbottarel authored Jan 21, 2025
1 parent af60e7f commit bf1da76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/slam_toolbox_async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ void AsynchronousSlamToolbox::laserCallback(
return;
}

addScan(laser, scan, pose);
// if not paused, process scan
if (shouldProcessScan(scan, pose)) {
addScan(laser, scan, pose);
}
}

/*****************************************************************************/
Expand Down

0 comments on commit bf1da76

Please sign in to comment.