-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference Issue #592 Added warning to AMCL when map is published on ... #604
Reference Issue #592 Added warning to AMCL when map is published on ... #604
Conversation
…orrect topic but its frame_id doesn't match the global_frame_id
amcl/src/amcl_node.cpp
Outdated
@@ -802,6 +802,11 @@ AmclNode::handleMapMessage(const nav_msgs::OccupancyGrid& msg) | |||
msg.info.width, | |||
msg.info.height, | |||
msg.info.resolution); | |||
|
|||
if(msg.header.frame_id != global_frame_id_) | |||
ROS_WARN("Frame_id of map received:'%s' doesn't match global_frame_id:'%s;'. This could cause issues with reading published topics", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this PR has a mix of tabs + spaces -- which is why github is rendering it odd. The amcl code base isn't perfect on style guide, but I do try to ask new code be mostly compatible. Could you update your changes to use ONLY spaces, and in particular 2 spaces indent for each new block (you can just push a new commit and I will squash later). Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Cherry picked to lunar |
...correct topic but its frame_id doesn't match the global_frame_id