Skip to content
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

map_display: don't ignore resolution changes in OccupancyGrid maps #1115

Merged
merged 1 commit into from
Jul 17, 2017

Conversation

CodeFinder2
Copy link
Contributor

Hi all,

I've noticed that changes of resolution to an occupancy grid map are not correctly reflected in RViz. I've investigated the map_display plugin code and noticed that createSwatches() in MapDisplay::showMap() is only called when the width or height changes, but not the resolution. I therefore extended the if(width != width_ || height != height_){ ... accordingly. Note that changing resolutions are (still) correctly reflected in RViz' UI panel.

I've tested this in ROS Kinetic and it works like a charm. Would be great if you merge my PR upstream. Thank you!

Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

This is likely a regression of #1007 which @DLu created.

@wjwwood wjwwood merged commit 0a6afc8 into ros-visualization:kinetic-devel Jul 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants