A Generic Framework for Distributed Multirobot Cooperation