Coordination of Robot Swarms in Crowded and Confined Conditions