Skip to content

Update Camera Intrinsics in camera_info topic#281

Merged
ahcorde merged 2 commits intogz-sensors7from
aditya/refactor_PR_265
Nov 21, 2022
Merged

Update Camera Intrinsics in camera_info topic#281
ahcorde merged 2 commits intogz-sensors7from
aditya/refactor_PR_265

Conversation

@adityapande-1995
Copy link
Contributor

@adityapande-1995 adityapande-1995 commented Nov 2, 2022

🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸

🎉 New feature

Summary

A refactor of #265 so that it can be targeted to Gazebo Garden.
This PR solves the camera intrinsics not being reflected properly in /camera_info topic when the tag is not provided. The PR uses the projectionToCameraIntrinsic() from gz-rendering to get the camera intrinsics and update the sdf DOM object and /camera_info topic.

Depends on gazebosim/gz-rendering#755.

Test it

Added a test in test/integration/camera.cc.

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: Aditya <aditya050995@gmail.com>
@github-actions github-actions bot added the 🌱 garden Ignition Garden label Nov 2, 2022
@adityapande-1995
Copy link
Contributor Author

gz-rendering 7.2.0 release is out, re triggering CI here.

@adityapande-1995 adityapande-1995 marked this pull request as ready for review November 15, 2022 18:07
@adityapande-1995
Copy link
Contributor Author

@osrf-jenkins run tests please

@codecov
Copy link

codecov bot commented Nov 15, 2022

Codecov Report

Merging #281 (116f69e) into gz-sensors7 (7352102) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@               Coverage Diff               @@
##           gz-sensors7     #281      +/-   ##
===============================================
+ Coverage        69.17%   69.24%   +0.07%     
===============================================
  Files               35       35              
  Lines             3740     3749       +9     
===============================================
+ Hits              2587     2596       +9     
  Misses            1153     1153              
Impacted Files Coverage Δ
src/CameraSensor.cc 77.70% <100.00%> (+0.63%) ⬆️

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

@ahcorde ahcorde merged commit c455a36 into gz-sensors7 Nov 21, 2022
@ahcorde ahcorde deleted the aditya/refactor_PR_265 branch November 21, 2022 08:38
ahcorde pushed a commit that referenced this pull request Sep 13, 2023
Signed-off-by: Aditya <aditya050995@gmail.com>
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