Efficient kinematic solution to a multi-robot with serial and parallel mechanisms