Skip to content

Commit 23ad6fe

Browse files
joeyjyyangSteveMacenski
authored andcommitted
Return out of map update if frames mismatch. Signed-off-by Joey Yang (#4517)
Signed-off-by: Joey Yang <[email protected]>
1 parent 54a3dde commit 23ad6fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nav2_costmap_2d/plugins/static_layer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ StaticLayer::incomingUpdate(map_msgs::msg::OccupancyGridUpdate::ConstSharedPtr u
318318
"StaticLayer: Map update ignored. Current map is in frame %s "
319319
"but update was in frame %s",
320320
map_frame_.c_str(), update->header.frame_id.c_str());
321+
return;
321322
}
322323

323324
unsigned int di = 0;

0 commit comments

Comments
 (0)