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

Thermal Camera: Visualize objects with a heat signature #189

Merged
merged 18 commits into from
Feb 2, 2021

Conversation

adlarkin
Copy link
Contributor

@adlarkin adlarkin commented Dec 22, 2020

Requires gazebosim/gz-sim#498 and makes use of #211.

This expands the current capabilities of the thermal camera to allow for rendering of objects with a heat signature. Currently, only objects with a uniform temperature are rendered by the thermal camera (objects with a heat signature can have varying temperature).

To learn how to use/test these updates, please see the related tutorial: gazebosim/gz-sensors#79

Testing can be done by running:

ign gazebo -r thermal_camera.sdf

TODO

  • Update thermal camera unit tests (after further inspection, these don't need to be updated)
  • Update thermal camera integration tests
  • Address any TODOs in the code (look at files changed)

Signed-off-by: Ashton Larkin ashton@openrobotics.org

Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
@github-actions github-actions bot added the 🔮 dome Ignition Dome label Dec 22, 2020
@codecov
Copy link

codecov bot commented Dec 22, 2020

Codecov Report

Merging #189 (6f1c4be) into ign-rendering4 (cac86c8) will increase coverage by 0.03%.
The diff coverage is 74.57%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           ign-rendering4     #189      +/-   ##
==================================================
+ Coverage           52.50%   52.54%   +0.03%     
==================================================
  Files                 143      143              
  Lines               13369    13410      +41     
==================================================
+ Hits                 7020     7046      +26     
- Misses               6349     6364      +15     
Impacted Files Coverage Δ
...lude/ignition/rendering/ogre2/Ogre2RenderEngine.hh 100.00% <ø> (ø)
ogre2/src/Ogre2ThermalCamera.cc 89.87% <74.57%> (-3.81%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cac86c8...6f1c4be. Read the comment docs.

Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
ogre2/src/Ogre2ThermalCamera.cc Outdated Show resolved Hide resolved
ogre2/src/Ogre2ThermalCamera.cc Outdated Show resolved Hide resolved
iche033 and others added 6 commits January 25, 2021 19:22
…211)

* vary non-heat source temp based on rgb balues

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* add more comments, var to set rgb to temp

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* add more doc

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* remove comment

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* feedback changes

Signed-off-by: Ian Chen <ichen@osrfoundation.org>

* added reference link to RGB/grayscale equation

Signed-off-by: Ashton Larkin <ashton@openrobotics.org>

Co-authored-by: Ashton Larkin <ashton@openrobotics.org>
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
Copy link
Contributor Author

@adlarkin adlarkin left a comment

Choose a reason for hiding this comment

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

@iche033, I've got a few final comments/questions.

ogre2/include/ignition/rendering/ogre2/Ogre2Material.hh Outdated Show resolved Hide resolved
ogre2/src/Ogre2ThermalCamera.cc Outdated Show resolved Hide resolved
ogre2/src/media/materials/scripts/thermal.material Outdated Show resolved Hide resolved
ogre2/src/Ogre2ThermalCamera.cc Outdated Show resolved Hide resolved
ogre2/src/media/materials/scripts/thermal.material Outdated Show resolved Hide resolved
test/integration/thermal_camera.cc Show resolved Hide resolved
ogre2/src/Ogre2ThermalCamera.cc Outdated Show resolved Hide resolved
adlarkin and others added 3 commits January 28, 2021 14:14
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
@iche033
Copy link
Contributor

iche033 commented Jan 30, 2021

should fix #189 #205

@adlarkin
Copy link
Contributor Author

adlarkin commented Jan 30, 2021

should fix #189

I think you meant this should fix #205, right?

@iche033
Copy link
Contributor

iche033 commented Feb 1, 2021

I think you meant this should fix #205, right?

oops, yes

@adlarkin adlarkin requested a review from iche033 February 1, 2021 21:06
@iche033
Copy link
Contributor

iche033 commented Feb 1, 2021

Everything looks good. Thanks to @chapulina's recent effort, we finally got rid of all windows warnings. Let's try to make windows build green. Can you address this warning on windows?
https://build.osrfoundation.org/job/ign_rendering-pr-win/1247/msbuild/NORMAL/

@adlarkin adlarkin linked an issue Feb 1, 2021 that may be closed by this pull request
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
@adlarkin
Copy link
Contributor Author

adlarkin commented Feb 2, 2021

Can you address this warning on windows?

Warning has been addressed in 6f1c4be

@iche033 iche033 merged commit d9d5374 into ign-rendering4 Feb 2, 2021
@iche033 iche033 deleted the adlarkin/heat_signature_thermal_camera branch February 2, 2021 03:39
@adlarkin adlarkin mentioned this pull request Feb 2, 2021
@chapulina chapulina mentioned this pull request Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 dome Ignition Dome
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Thermal Camera - Inconsistent Background Behavior
3 participants