Currently the logic for checking active sensors ignores the triggered property of a camera. So as the result, when you subscribe to any triggered sensors, they become "active" (added to the activeSensors list) and they perform unnecessary prerender updates even when they don't have pending triggers. This PR adds a check for the triggered property of the sensor to filter them out when checking for active sensors.
Checklist
[x] 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
Depends on https://github.com/gazebosim/gz-sensors/pull/441
Summary
Currently the logic for checking active sensors ignores the triggered property of a camera. So as the result, when you subscribe to any triggered sensors, they become "active" (added to the
activeSensors
list) and they perform unnecessary prerender updates even when they don't have pending triggers. This PR adds a check for the triggered property of the sensor to filter them out when checking for active sensors.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.