Welcome to DOFBOT-Ultra repository
6. AI Encyclopedia-English Spelling
AI Encyclopedia-English Spelling
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 what the word on the desktop might mean. The large model will think and reply with the answer, check the spelling of the word, and control the robotic arm to point to the missing letter.
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 "Guess what the word on the desktop might mean?" 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 "Guess what the word on the desktop might mean?", then wait for the large model to think and reply, as shown in the figure below,

Then the robotic arm will point to the letter c:

3. Task Planning
Call
seewhat()to observe the environment and check the word(s) on the desktop;Reply with what the word(s) on the desktop might be;
Call
seewhat()to observe the environment and check whether the word(s) on the desktop are spelled completely;
If incomplete, execute in accordance with the following steps, and output one function at a time:
(1) Call seewhat() to observe the environment and obtain the positions of the letters that can complete the spelling of the word(s);
(2) Call the point_to(x1, y1, x2, y2) function to point to the letters that can complete the spelling of the word(s) (where x1, y1, x2, y2 are the relevant coordinate parameters of the letters used to complete the spelling of the word(s)).
If complete, call the
finishtask()function.