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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement consistent Auto Aspect Ratio #764

Merged
merged 7 commits into from Nov 30, 2022

Conversation

darksylinc
Copy link
Contributor

馃 Bug fix

Fixes #763

Summary

The old default Aspect Ratio would be 1.3333
Now it is 0.0 which indicates Gazebo should autocalculate the Aspect Ratio.

This results in a nice backwards-compatible behavior while fixing various bugs mentioned in #763

Fixes #763

Signed-off-by: Matias N. Goldberg dark_sylinc@yahoo.com.ar

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • 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 and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

@osrf-triage osrf-triage added this to Inbox in Core development Nov 26, 2022
@github-actions github-actions bot added the 馃尡 garden Ignition Garden label Nov 26, 2022
The old default Aspect Ratio would be 1.3333
Now it is 0.0 which indicates Gazebo should autocalculate the Aspect
Ratio.

This results in a nice backwards-compatible behavior while fixing
various bugs mentioned in gazebosim#763

Fixes gazebosim#763

Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
Add AspectRatio unit test
Highly reduce the error tolerance on Camera UNIT test

Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
Signed-off-by: Matias N. Goldberg <dark_sylinc@yahoo.com.ar>
@codecov
Copy link

codecov bot commented Nov 26, 2022

Codecov Report

Merging #764 (b0bd046) into gz-rendering7 (cc8a9ff) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@                Coverage Diff                @@
##           gz-rendering7     #764      +/-   ##
=================================================
+ Coverage          75.48%   75.49%   +0.01%     
=================================================
  Files                164      164              
  Lines              14364    14374      +10     
=================================================
+ Hits               10843    10852       +9     
- Misses              3521     3522       +1     
Impacted Files Coverage 螖
include/gz/rendering/Camera.hh 100.00% <酶> (酶)
include/gz/rendering/base/BaseCamera.hh 66.90% <100.00%> (+0.36%) 猬嗭笍
ogre2/src/Ogre2BoundingBoxCamera.cc 59.82% <100.00%> (酶)
ogre2/src/Ogre2Camera.cc 86.62% <100.00%> (+0.23%) 猬嗭笍
ogre2/src/Ogre2DepthCamera.cc 88.17% <100.00%> (+0.04%) 猬嗭笍
ogre2/src/Ogre2SegmentationCamera.cc 75.40% <100.00%> (酶)
ogre2/src/Ogre2ThermalCamera.cc 81.68% <100.00%> (+0.07%) 猬嗭笍
include/gz/rendering/base/BaseGaussianNoisePass.hh 96.66% <0.00%> (-3.34%) 猬囷笍

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@azeey azeey moved this from Inbox to In review in Core development Nov 28, 2022
Copy link
Contributor

@iche033 iche033 left a comment

Choose a reason for hiding this comment

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

looks good to me, just one question about the debugger capture call

ogre2/src/Ogre2DepthCamera.cc Outdated Show resolved Hide resolved
@iche033 iche033 merged commit 3f52006 into gazebosim:gz-rendering7 Nov 30, 2022
Core development automation moved this from In review to Done Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
馃尡 garden Ignition Garden
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Inconsistent FOV & Aspect Ratio handling in ogre2
2 participants