Motion-Planning Using RRTs for a Swarm of Robots Controlled by Global Inputs