Consensus-based perception