Swarm robotics in wireless distributed protocol design for coordinating robots involved in cooperative tasks