layout | title | use-site-title |
---|---|---|
page |
Scenario 1 |
true |
In this scenario, the robot is tasked to fetch a bottle in the kitchen. If an action fails, the robot asks for help to a human operator. The position of the kitchen is available in the blackboard. The map available to the robot contains all the obstacles that the robot will encounter (i.e. we do not consider dynamic obstacles).
The figure below shows the BT that encodes the task for Scenario 1. The BT encodes the following logic:
- The robot first checks if it is in the kitchen. If not, it performs the action Goto Kitchen.
- If the robot is in the kitchen, then it checks if the bottle is found. If not, it performs the action Find Bottle.
- If the robot is in the kitchen and it found the bottle, then it checks if the bottle is grasped. If not, it does the following:
- It checks if the Inverse Pose (i.e. a pose of the robot such that the robot can locate and grasp the bottle) is computed and valid. If not, it performs the action Compute Inverse Pose.
- If the Inverse Pose is computed and valid, the robot checks if it is at the Inverse Pose. If not, it performs the action Goto Inverse Pose.
- If the Inverse Pose is computed and valid, and the robot is at it inverse pose, it checks if the bottle is located with a predefined confidence. If not, it performs the action Locate Bottle.
- If the Inverse Pose is computed and valid, the robot is at the inverse pose, and the bottle is located with a given confidence. The robot performs the action Grasp Bottle.
- If any of the action above fails, the robot sets the Inverse Pose as invalid and retries to grasp the bottle from a different inverse pose.
- If the robot cannot reach the kitchen or it cannot find the bottle, the robot asks for help to a human operator.
The video below show the execution of Scenario 1
<iframe width="580" height="315" src="https://www.youtube.com/embed/b7TeRX1uzoc" frameborder="0" allowfullscreen></iframe>