gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
685 stars 262 forks source link

Attempted Custom Rendering Sensor Example #2406

Open JEller98 opened 4 months ago

JEller98 commented 4 months ago

🦟 Bug fix

Fixes #1673

Summary

This is an attempt at implementing a custom rendering example as discussed in Issue #1673. There is an attempt to create a CameraSensor in the PostUpdate method, then pass the pointer to the bitmap field found within a given Image and pass said pointer to FreeImage's FlipHorizontal method.

Checklist

Disclaimer

This solution is experimental at best, as I'm very inexperienced; this is actually my first time writing C++ and my first time attempting to contribute to FOSS. I felt very out of my depth while attempting to implement this solution. Constructive criticism, if anyone is willing to provide it, is more than welcome.

No tests have been written due to my inexperience regarding the testing frameworks used, and no offense will be taken if this request is not accepted.

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.

azeey commented 1 month ago

Thank you for submitting this PR. Since this will require more iteration before it's ready, I'll remove the beta label, which means we'll hold of from reviewing and merging it until Ionic is released (end of September, 2024). You might still get reviews in the meantime, but it's unlikely.