Closed tejalbarnwal closed 1 year ago
Merging #528 (61900e0) into gz-gui7 (f81686a) will decrease coverage by
0.06%
. The diff coverage is0.00%
.:exclamation: Current head 61900e0 differs from pull request most recent head 0eb6b5c. Consider uploading reports for the commit 0eb6b5c to get more accurate results
@@ Coverage Diff @@
## gz-gui7 #528 +/- ##
===========================================
- Coverage 69.19% 69.14% -0.06%
===========================================
Files 44 44
Lines 4938 4942 +4
===========================================
Hits 3417 3417
- Misses 1521 1525 +4
Impacted Files | Coverage Δ | |
---|---|---|
src/plugins/image_display/ImageDisplay.cc | 30.70% <0.00%> (-1.00%) |
:arrow_down: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
🎉 New feature
Closes
gz-sensors
issue 299Sub-Tasks
BAYER_RGGB8
withOGRE
OGRE
OGRE2
Summary and Related PRs
The functionality reads the user input and renders an RGB image, which is later converted into a single channel 8bit Bayer image using
ConvertRGBToBayer()
added toUtils.cc
insidegz-rendering
.gz-sensors
: Adds a switch case forRGGB bayer format
insideCameraSensor.cc
and passes theR8G8B8
format to render the image.gz-redering
: AddsConvertRGBToBayer()
toUtils.cc
, modifiesOgreRenderTarget.cc
to call the conversion function, and handles image format conversion functions withif-else
statements.gz-gui
: Adds switch cases to display Bayer images in Gazebo GUI inside. It treats them as single-channel 8-bit images.gz-common
: ModifiesImage::SetFromData
insideImage.cc
to support saving of Bayer images. In order to save it It treats them as single-channel 8-bit images.Test it
In order to test this, one can modify
camera_sensor.sdf
insidegz-sim
here. Would have just to replace the part with the following snippet.Checklist
codecheck
passed (See contributing)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.