A milking robot comprises a movable arm having a length in a longitudinal direction, and at least one gripper swivably mounted to the movable arm such that it moves between a first position parallel to the movable arm's longitudinal direction and a second position at which the gripper extends sideways in a horizontal plane away from the movable arm's longitudinal direction.