Skip to content

Commit

Permalink
Return out of map update if frames mismatch. Signed-off-by Joey Yang (#…
Browse files Browse the repository at this point in the history
…4517)

Signed-off-by: Joey Yang <[email protected]>
  • Loading branch information
joeyjyyang authored and SteveMacenski committed Aug 23, 2024
1 parent fef63a1 commit 215b3f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nav2_costmap_2d/plugins/static_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ StaticLayer::incomingUpdate(map_msgs::msg::OccupancyGridUpdate::ConstSharedPtr u
"StaticLayer: Map update ignored. Current map is in frame %s "
"but update was in frame %s",
map_frame_.c_str(), update->header.frame_id.c_str());
return;
}

unsigned int di = 0;
Expand Down

0 comments on commit 215b3f9

Please sign in to comment.