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

Add support for 16 bit image format #276

Merged
merged 2 commits into from
Sep 29, 2022
Merged

Add support for 16 bit image format #276

merged 2 commits into from
Sep 29, 2022

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Sep 26, 2022

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

🎉 New feature

Closes #275

Summary

Add check for 16 bit image format. This should already be supported at the gz-rendering library. It's just a matter of enabling it in gz-sensors.

You can also test with sensors_demo.sdf world. Change one of the cameras to output 16 bit images by adding <format>L_INT16</format> here. You should grayscale images in the top left Image Display GUI plugin

sensors_demo_16bit

Test it

Run INTEGRATION_camera test

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: Ian Chen <ichen@osrfoundation.org>
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Sep 26, 2022
@codecov
Copy link

codecov bot commented Sep 26, 2022

Codecov Report

Merging #276 (ccd90ce) into ign-sensors6 (329e30f) will increase coverage by 0.04%.
The diff coverage is 88.88%.

@@               Coverage Diff                @@
##           ign-sensors6     #276      +/-   ##
================================================
+ Coverage         72.16%   72.20%   +0.04%     
================================================
  Files                34       34              
  Lines              3470     3483      +13     
================================================
+ Hits               2504     2515      +11     
- Misses              966      968       +2     
Impacted Files Coverage Δ
src/RgbdCameraSensor.cc 75.61% <83.33%> (-0.12%) ⬇️
src/CameraSensor.cc 77.31% <91.66%> (+0.41%) ⬆️

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

@iche033
Copy link
Contributor Author

iche033 commented Sep 27, 2022

CIs are failing because of the bump of sdformat dep requirement to 12.6.0 in #259. We need to make a stable sdformat 12.6.0 release.

@iche033
Copy link
Contributor Author

iche033 commented Sep 29, 2022

@osrf-jenkins run tests please

@iche033 iche033 merged commit dc02bc7 into ign-sensors6 Sep 29, 2022
@iche033 iche033 deleted the 16bit_cam branch September 29, 2022 22:30
@bperseghetti
Copy link
Member

@iche033 @mjcarroll Awesome! Just what I've been looking for! Has this already hit the binaries in release yet?

@bperseghetti
Copy link
Member

Also closes #1736.

@iche033
Copy link
Contributor Author

iche033 commented Sep 30, 2022

Not yet, but should be included in the next minor release, 6.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏯 fortress Ignition Fortress
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Camera sensor fails with L_INT16.
4 participants