Instantaneous multi-sensor task allocation in static and dynamic environments