Welcome to DOFBOT-Ultra repository
8. AI Top Chef
AI Top Chef
Please ensure that the web control program backend process is not running in the background. To close it, refer to the [Get Started Quickly - 2. Access the Terminal] section in [Disable the Auto-Start Web Control Backend Process]. After closing, please restart DofbotUltra!!!
Before running this function, you need to close the web control program backend process. For the closing method, refer to the [4. Preparation] section [1. Manage Web control services].
1. Function Description
After the program starts, give an instruction to the large model asking what dishes can be made with the ingredients on the desktop (it is recommended to use blocks with ingredient images for better grasping results). The program will check the ingredients on the desktop and reply with what dishes can be made. Finally, it will grasp the ingredients and place them to the left of the robotic arm.
2. Startup
Taking the text version as an example, Raspberry Pi (DofbotUltra) users can directly open a terminal and enter the following command:
ros2 launch largemodel largemodel_control.launch.py text_chat_mode:=True
Then open a second terminal and enter the following command:
xxxxxxxxxxros2 run text_chat text_chat
Then enter the following in the text_chat terminal:
xCheck what delicious food can be made with the ingredients on the desktop
Press Enter. If it's the voice version, wake up the voice module and directly say to the voice module "Check what delicious food can be made with the ingredients on the desktop", then wait for the large model to think and reply, as shown in the figure below:

Based on the ingredients seen, the robotic arm will select two ingredients that can be used to make a dish, grasp these two ingredients, and place them to the left of the robotic arm.
3. Task Planning
Call
seewhat()to observe the environment and check what ingredients are on the desktop.Reply with what two ingredients can be used to make a dish and the name of the dish.
Call
seewhat()to observe the position of the first ingredient.Call
grasp_obj(x1, y1, x2, y2)to grasp the first ingredient.Call
putdown()to place the first ingredient.Call
seewhat()to observe the position of the second ingredient.Call
grasp_obj(x1, y1, x2, y2)to grasp the second ingredient.Call
putdown()to place the second ingredient.