Abstract
A method, apparatus, device and medium for performing a user task are provided. In a method, a user task is received from a user, and the user task instructs a robot device to obtain a first object. A first image of a first physical space where a robot device is located is obtained. In response to determining that the first image indicates absence of the first object in the first physical space, a second physical space is determined. The robot device accesses a second physical space so as to obtain a first object. By means of the exemplary implementation of the present disclosure, the robot device can perform a user task in a complex physical space, so that the flexibility and accuracy of the robot device in performing a task in a complex environment can be improved, thereby completing an expected user task.