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

Expose particle scatter ratio parameter #269

Merged
merged 9 commits into from
Mar 13, 2021

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Mar 9, 2021

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

🎉 New feature

Summary

used by gazebosim/gz-sim#674

This lets users configure the particle scatter ratio parameter that was previously hardcoded in a couple different sensor src files.

The particleScatterRatio param determines the amount of scattering effect applied to sensors (depth camera and lidars). The higher the value, the more "scattering" (noise) is added to the depth readings. This value was fixed and now it's configuration though the ParticleEmitter's UserAny object

Test it

see gazebosim/gz-sim#674

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: Ian Chen <ichen@osrfoundation.org>
iche033 added 2 commits March 8, 2021 18:31
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
@adlarkin adlarkin self-requested a review March 11, 2021 18:06
ogre2/src/Ogre2ParticleNoiseListener.cc Outdated Show resolved Hide resolved
ogre2/src/Ogre2ParticleNoiseListener.cc Show resolved Hide resolved
ogre2/src/Ogre2ParticleNoiseListener.cc Outdated Show resolved Hide resolved
src/ParticleEmitter_TEST.cc Outdated Show resolved Hide resolved
ogre2/src/Ogre2ParticleNoiseListener.hh Outdated Show resolved Hide resolved
test/integration/depth_camera.cc Show resolved Hide resolved
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ashton Larkin <ashton@openrobotics.org>
iche033 added 4 commits March 12, 2021 19:43
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
@codecov
Copy link

codecov bot commented Mar 13, 2021

Codecov Report

Merging #269 (8382b4a) into ign-rendering4 (20d6471) will increase coverage by 0.91%.
The diff coverage is 77.38%.

Impacted file tree graph

@@                Coverage Diff                 @@
##           ign-rendering4     #269      +/-   ##
==================================================
+ Coverage           52.59%   53.50%   +0.91%     
==================================================
  Files                 143      145       +2     
  Lines               13329    13754     +425     
==================================================
+ Hits                 7010     7359     +349     
- Misses               6319     6395      +76     
Impacted Files Coverage Δ
include/ignition/rendering/ArrowVisual.hh 100.00% <ø> (ø)
include/ignition/rendering/AxisVisual.hh 100.00% <ø> (ø)
include/ignition/rendering/Camera.hh 100.00% <ø> (ø)
include/ignition/rendering/CompositeVisual.hh 100.00% <ø> (ø)
include/ignition/rendering/Geometry.hh 100.00% <ø> (ø)
include/ignition/rendering/Image.hh 100.00% <ø> (ø)
include/ignition/rendering/Light.hh 100.00% <ø> (ø)
include/ignition/rendering/Material.hh 100.00% <ø> (ø)
include/ignition/rendering/Mesh.hh 100.00% <ø> (ø)
include/ignition/rendering/Node.hh 100.00% <ø> (ø)
... and 51 more

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 886d0d9...8382b4a. Read the comment docs.

@iche033
Copy link
Contributor Author

iche033 commented Mar 13, 2021

CI is green, merging

@iche033 iche033 merged commit 108e28b into ign-rendering4 Mar 13, 2021
@iche033 iche033 deleted the particle_scatter_param branch March 13, 2021 07:11
@iche033 iche033 mentioned this pull request Mar 13, 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.

2 participants