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 <joeyyang.ai@gmail.com>
  • Loading branch information
joeyjyyang authored Jul 4, 2024
1 parent 801f008 commit b28c7d9
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 b28c7d9

Please sign in to comment.