Complete model of Mantuec r3 robot, including controller, motor, gearbox, 3D-mechanics model. The input connectors a_refX are the reference accelerations, i.e., the desired accelerations, for the 6 joint axes. Via parameter q0 the initial joint angles are defined.