Modular articulated robot