fix(rtabmap_slam): publish goal reached when built without nav2_msgs

This commit is contained in:
matlabbe
2026-10-01 19:14:28 -07:00
parent 5c82ffc2c9
commit cb2117f1ed
-2
View File
@@ -2520,8 +2520,6 @@ void CoreWrapper::process(
// let nav2 finish reaching the goal // let nav2 finish reaching the goal
#ifdef WITH_NAV2_MSGS #ifdef WITH_NAV2_MSGS
if(nav2Client_ == 0 || rtabmap_.getPathStatus() <= 0) if(nav2Client_ == 0 || rtabmap_.getPathStatus() <= 0)
#else
if(rtabmap_.getPathStatus() <= 0)
#endif #endif
{ {
if(rtabmap_.getPathStatus() > 0) if(rtabmap_.getPathStatus() > 0)