Builds on top of Qt to provide widgets which are useful when developing robotics applications, such as a 3D view, plots, dashboard, etc, and can be used together in a convenient unified interface.
The QImage constructor that was used expects the images are 32 bit aligned. This is not true for our RGB_INT8 formats. (24 bits) The PR fixes the issue by explicitly specifying the bytesPerLine field in the constructor.
Tested with camera_sensor.sdf world by changing the image width to be 321 (from 320)
Before
After
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)
[ ] 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.
🦟 Bug fix
Fixes https://github.com/gazebosim/gz-rendering/issues/945
Summary
The
QImage
constructor that was used expects the images are 32 bit aligned. This is not true for ourRGB_INT8
formats. (24 bits) The PR fixes the issue by explicitly specifying thebytesPerLine
field in the constructor.Tested with
camera_sensor.sdf
world by changing the image width to be321
(from320
)Before
After
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.