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

Added HasLensProjection #1203

Merged
merged 3 commits into from
Nov 21, 2022
Merged

Added HasLensProjection #1203

merged 3 commits into from
Nov 21, 2022

Conversation

ahcorde
Copy link
Collaborator

@ahcorde ahcorde commented Nov 18, 2022

Signed-off-by: Alejandro Hernández Cordero [email protected]

🎉 New feature

Summary

Added HasLensProjection to Camera class, this PR is connected with a PR in gz-sensors.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • 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.

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde
Copy link
Collaborator Author

ahcorde commented Nov 18, 2022

@azeey Let me know if I should backport this to sdf12 or sdf9

@azeey
Copy link
Collaborator

azeey commented Nov 18, 2022

What's the motivation for this PR? Why do we need to know if the projection is custom or default?

@ahcorde
Copy link
Collaborator Author

ahcorde commented Nov 18, 2022

What's the motivation for this PR? Why do we need to know if the projection is custom or default?

This is the motivation gazebosim/gz-sensors#289

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@codecov
Copy link

codecov bot commented Nov 18, 2022

Codecov Report

Merging #1203 (4cc3679) into sdf13 (438e05b) will increase coverage by 0.00%.
The diff coverage is 94.73%.

@@           Coverage Diff           @@
##            sdf13    #1203   +/-   ##
=======================================
  Coverage   87.52%   87.53%           
=======================================
  Files         124      124           
  Lines       16124    16143   +19     
=======================================
+ Hits        14113    14131   +18     
- Misses       2011     2012    +1     
Impacted Files Coverage Δ
python/src/sdf/pyCamera.cc 56.83% <50.00%> (-0.06%) ⬇️
src/Camera.cc 89.61% <100.00%> (+0.32%) ⬆️

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

@ahcorde
Copy link
Collaborator Author

ahcorde commented Nov 21, 2022

friendly ping @azeey

@ahcorde ahcorde merged commit 8fcbe1e into sdf13 Nov 21, 2022
@ahcorde ahcorde deleted the ahcorde/13/haslensprojection branch November 21, 2022 17:24
@azeey
Copy link
Collaborator

azeey commented Nov 21, 2022

@azeey Let me know if I should backport this to sdf12 or sdf9

If it's not too much effort, yes please.

ahcorde added a commit that referenced this pull request Nov 22, 2022
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
ahcorde added a commit that referenced this pull request Nov 22, 2022
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
ahcorde added a commit that referenced this pull request Nov 22, 2022
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
ahcorde added a commit that referenced this pull request Nov 22, 2022
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@scpeters
Copy link
Member

this looks like a parallel of the Camera::HasLensIntrinsics API

scpeters pushed a commit that referenced this pull request Nov 24, 2022
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@scpeters scpeters mentioned this pull request Nov 30, 2022
7 tasks
iche033 added a commit to gazebosim/gz-sensors that referenced this pull request Feb 14, 2023
This PR allows users to specify custom camera projection using the <projection> values from SDF (in addition to <instrinscs>, see #293).

Also bumped sdformat dep version as it need gazebosim/sdformat#1203

---------

Signed-off-by: Ian Chen <[email protected]>
Co-authored-by: Alejandro Hernández Cordero <[email protected]>
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.

3 participants