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

Ignore special conditions when normalizing image #1378

Merged
merged 1 commit into from
Jun 22, 2019

Conversation

chapulina
Copy link
Contributor

Description

While working on the integration between Ignition and ROS (gazebosim/ros_gz#15), we ran into an issue where depth images were not properly displayed on RViz.

This PR makes sure that REP 117 is followed, and values like NaN and +-inf are ignored when normalizing depth images.

Without this PR, images containing NaN / Inf display completely black when "Normalize" is checked, because those values are used to calculate the normalization boundaries. With this PR, depth images coming from ign-sensors and relayed through the ros1_ign_bridge display correctly, as shown below:

rviz_normalize

@chapulina chapulina merged commit 68b464f into melodic-devel Jun 22, 2019
@chapulina chapulina deleted the normalize_inf_nan branch June 22, 2019 01:21
@rhaschke rhaschke mentioned this pull request Sep 1, 2019
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