Nonlinear filtering and heterogeneous swarms of autonomous agents-exactly solvable model