A combined teat position and breeding rating determining arrangement for a milking system having a milking stall, a movable robot arm for automatically attaching teat cups to the teats of the milking animal, and a control device for controlling the movement of the robot arm based on determined positions of the teats of the milking animal. The arrangement includes a three-dimensional camera directed towards the udder of the milking animal that repeatedly records three-dimensional images of the udder, and a processing unit that repeatedly detects the udder or teats of the milking animal, determines their positions based on the recorded three-dimensional images, automatically determines the shapes of the udder or teats based on the repeatedly recorded three-dimensional images, and automatically calculates a breeding rating based on the determined shapes of the udder or teats of the milking animal.