Robot task management method, robot using the same and non-transitory computer readable storage medium
AssigneeUbtech Robotics Corp Ltd
InventorsYoujun Xiong, Ruiqiang Huang
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a task management method for a robot, a robot using the same, and a computer readable storage medium. The method includes: obtaining a current task of the robot, in response to receiving a request for executing a new task of the robot; querying the preset state table according to the new task and the current task to determine whether to switch the robot from the current task to the new task: and switching the robot from the current task to the new task, in response to determining to switch. In this way, the stability of the operation of the robot can be improved, and the efficiency of the robot to execute tasks can be improved.
Claims11
A computer-implemented task management method for a robot executing a task according to a task list, comprising executing on a processor the steps of:
- obtaining a current task of the robot, in response to receiving a request for executing a new task of the robot;
- determining whether to, add the new task to the task list according to a preset state table;
- adding the new task to the task list in response to determining to add the new task;
- querying the preset state table according to the new task and the current task to determine whether to switch the robot from the current task to the new task;
- and
- switching the robot from the current task to the new task, in response to determining to switch.
A robot executing a task according to a task list, comprising:
- a processor configured to execute a state machine;
- a memory configured to store a preset state table;
- and
- one or more computer programs stored in the memory and executable on the processor, wherein the one or more computer programs comprise:
- instructions for obtaining a current task of the robot, in response to receiving a request for executing a new task of the robot;
- instructions for determining whether to add the new task to the task list according to the preset state table;
- instructions for adding the new task to the task list in response to determining to add the new task;
- instructions for querying the preset state table according to the new task and the current task to determine whether to switch the robot from the current task to the new task;
- and
- instructions for transiting a state of the state machine and switching the robot from the current task to the new task, in response to determining to switch.
A non-transitory computer readable storage medium storing one or more computer programs, wherein the one or more computer programs comprise:
- instructions for obtaining a current task of the robot, in response to receiving a request for executing a new task of the robot:
- instructions for determining whether to add the new task to the task list according to the preset state table;
- instructions for adding the new task to the task list in response to determining to add the new task;
- instructions for querying the preset state table according to the new task and the current task to determine whether to switch the robot from the current task to the new task;
- and
- instructions for transiting a state of the state machine and switching the robot from the current task to the new task, in response to determining to switch.
Dependencies are inferred from the claim text.