Welcome to DOFBOT-Ultra repository
4. AI Encyclopedia-Nutritional Analysis
AI Encyclopedia-Nutritional Analysis
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, ask the large model which fruit on the desktop has the highest vitamin content. The large model will think and reply with the answer, and the program will control the robotic arm to point to that fruit.
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 input "Which of the fruits on the table has the highest vitamin content?t" in the text_chat terminal and press Enter; if it's the voice version, wake up the voice module and directly say to the voice module "Which of the fruits on the table has the highest vitamin content?", then wait for the large model to think and reply, as shown in the figure below:

Then the robotic arm will point to the banana:

3. Task Planning
Call
seewhat()to observe the environment.Reply with which fruit on the desktop has the highest vitamin content.
Call the
seewhat()function to check where the fruit with the highest vitamin content is located.Call
point_to(x1, y1, x2, y2)to point to the fruit with the highest vitamin content.