Robot is going around the room turning on the lights. After turning on the floor lamp it is going to bed lamp. However, it indentifies interacting humans and a human walking towards the bed. Therefore it plans a trajectory creating minimum hinderance to the activities.