Why farmers and cows prefer robots to dogs