osrf / gazebo_experimental

Repo for Gazebo 9 development. Starting from entity_component_system_prototype branch on gazebo repo. This repo will be merged back into the gazebo repo in the future.
0 stars 1 forks source link

If a callback with an empty EntityQuery is registered, the registration should be ignored #24

Open osrf-migration opened 7 years ago

osrf-migration commented 7 years ago

Original report (archived issue) by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).


Adding an EntityQuery with no component types still leads to the callback being called, but there's no useful work it could do. The QueryRegistrar should return false if an empty EntityQuery is given.

osrf-migration commented 7 years ago

Original comment by Shane Loretz (Bitbucket: Shane Loretz, GitHub: sloretz).


Alternatively, it could return all entities.