Mechanical device, in particular for rotating an end effector of the robot.