Distributed Control of Multiagent Systems under Heterogeneity