Action planning of an attendant robot depending on the state of a human