Welcome to DOFBOT-Pi repository
5.AI Encyclopedia-Problem Solving Expert
AI Encyclopedia-Problem Solving Expert
Before running the function, you need to close the App and large programs. For the closing method, refer to [4. Preparation] - [1. Manage APP control services].
1. Function Description
After the program starts, ask the large model for the answer to a question. After thinking, the large model will reply with the answer to the question, and the program will control the robotic arm to point to that answer.
2. Startup
After entering the Docker container, enter the following commands in the Docker terminal.
xxxxxxxxxxros2 launch largemodel largemodel_control.launch.py text_chat_mode:=True
Then open a second terminal and input the following command:
xxxxxxxxxxros2 run text_chat text_chat
Then input "What is the correct answer to this question?" 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 "What is the correct answer to this question?", then wait for the large model to think and reply, as shown in the figure below:

Then the robotic arm will point to answer B:

The question is:
xxxxxxxxxxWhich of the following words can be used to describe spring ()A. Hot B. WarmC. Cold D. Cool
3. Task Planning
- Call the
seewhat()function to view the question; - First reply with the result of the question;
- Find the answer option(s) to the question on the desktop;
- Call the
point_to(x1, y1, x2, y2)function to point to the answer option(s) (where x1, y1, x2, y2 are the relevant coordinate parameters of the position of the answer option(s)).