ROBOT AND CONTROL METHOD THEREOF
The present invention relates to a robot and a control method adapted for the robot. The robot stores audio data of stories, first relationships among the audio data, time periods, and key information of the stories, second relationships between the key information and actions, and actions. Each of the key information is assigned a time period indicating when the key information should be fetched. The method includes: a) telling a story; b) measuring time; c) fetching corresponding key information when an elapsed time reaches each time period of each of the key information; d) fetching an action according to the fetched key information; and e) performing the action.
Latest HON HAI PRECISION INDUSTRY CO., LTD. Patents:
- Fingerprint identification module, method for making same, and electronic device using same
- Data test method, electronic device and storage medium
- Method for determining plant growth curve and electronic device
- Pressure-driven solar photovoltaic panel automatic tracking device
- Method of logging in to operating system, electronic device and readable storage medium
1. Technical Field
The disclosure relates to a robot and, more particularly, to a robot and a control method adapted for the robot.
2. Description of the Related Art
There are many electronic toys that play audio books, and many robots for entertainment that can perform various actions. What is needed though, is a robot that can perform corresponding actions at the same time when telling a story.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the robot. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
For the purpose of better understanding the relationships among audio data, time periods, and key information, an example is described as follows. For example, the audio data of story “S1” includes the key information “A2” (e.g., a key word “walk”) and “A4” (e.g., a key phrase “sit down”), and the key word “walk” is assigned a first time period and the key phrase “sit down” is assigned a second time period. Accordingly, when an elapsed time of the audio data of story “S1” reaches the first time period when it is being played, the key word “walk” should be fetched, and when the elapsed time of the audio data of story “S1” reaches the second time period when it is being played, the key phrase “sit down” should be fetched.
The input unit 20 is configured for generating instructions for determining a story to be played in response to user input. The processing unit 30 further includes an audio fetching module 31, an audio outputting module 32, a timer 33, a relationship fetching module 34, and an action performing module 35. The audio fetching module 31 is configured for fetching audio data from the audio database 11 according to an instruction generated from the input unit 20 when a user inputs an action request. The audio outputting module 32 is configured for outputting the fetched audio data. The D/A converter 40 is configured for converting the audio data into analog data. The speaker 50 outputs the analog data, which in this embodiment is a story.
The timer 33 starts measuring time when the speaker 50 begins outputting the story. The relationship fetching module 34 is configured for fetching each of the key information of the audio data when the elapsed time of the timer 33 reaches each time period of each of the key information from the information story table 12, and fetching a corresponding action associated with each of the fetched key information from the action information table 13. The action performing module 35 is configured for fetching the action defined in the action database 14, and controlling the actuator 60 to perform the action. The actuator 60 performs the action via moving parts of the robot 1. In this embodiment, the relationship fetching module 34 fetches the corresponding action associated with each of the fetched key information from the action information table 13 randomly. The action performing module 35 further judges whether all actions corresponding to the story are performed. When all actions corresponding to the story are performed, the robot 1 finishes telling the story. In other words, a user selects and inputs a story, and then the robot 1 begins telling the story while accessing and performing the actions associated with the story. If the story has other key information and actions associations, those actions will also be performed during the course of the story.
In step S470, the action performing module 35 judges whether all actions corresponding to the story are performed. If all actions aren't performed, the procedure returns to step S420, that is, when the elapsed time of the timer 33 reaches the next time period of the next key information of the audio data, the action performing module 35 controls the actuator 60 to perform the next action according to the next key information. In step S480, if all actions are performed, all the key information of the story are fetched and all actions of all the key information are performed as a grand finale, and the robot 1 finishes telling the story.
It is understood that the invention may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the invention is not to be limited to the details given herein.
Claims
1. A robot, comprising:
- a storage unit, configured for storing audio data of stories, first relationships among the audio data, time periods, and key information of the stories, second relationships between the key information and actions, and the actions, wherein each of the key information is assigned a time period indicating when the key information should be fetched;
- a speaker, configured for telling a story associated with the audio data;
- a timer, configured for measuring time when the speaker begins telling the story;
- a relationship fetching module, configured for fetching corresponding key information when an elapsed time of the timer reaches each time period of each of the key information from the storage unit, and fetching an action according to the fetched key information from the storage unit; and
- an actuator, configured for performing the action.
2. The robot as recited in claim 1, further comprising an input unit, configured for generating instructions for determining the story to be told in response to user input.
3. The robot as recited in claim 2, further comprising an audio fetching module, configured for fetching the audio data from the storage unit according to an instruction from the input unit.
4. The robot as recited in claim 3, further comprising an audio outputting performing module, configured for controlling the output of the audio data.
5. The robot as recited in claim 4, further comprising a digital-to-analog converter, configured for converting the audio data into analog data as the story.
6. The robot as recited in claim 1, further comprising an action performing module, configured for controlling the actuator to perform the action and judging whether all actions corresponding to the story are performed.
7. The robot as recited in claim 6, wherein when the action performing module has performed all actions associated with the key information of the audio data, the speaker finishes telling the story.
8. The robot as recited in claim 1, wherein the key information is selected from the group of consisting of words, phrases, and a combination of words and phrases.
9. The robot as recited in claim 1, wherein the relationship fetching module fetches the action according to the fetched key information randomly.
10. A control method for a robot, the robot storing audio data of stories, first relationships among the audio data, time periods, and key information of the stories, second relationships between the key information and actions, and the actions, wherein each of the key information is assigned a time period indicating when the key information should be fetched, the method comprising:
- telling a story;
- measuring time;
- fetching corresponding key information when an elapsed time reaches each time period of each of the key information;
- fetching an action according to the fetched key information; and
- performing the action.
11. The control method as recited in claim 10, further comprising:
- receiving an instruction and fetching audio data of the story.
12. The control method as recited in claim 11, further comprising:
- converting the audio data into analog data as the story.
13. The control method as recited in claim 10, further comprising:
- fetching the action according to the fetched key information randomly.
14. The control method as recited in claim 10, further comprising:
- judging whether all actions corresponding to the story are performed.
15. The control method as recited in claim 14, further comprising:
- finishing telling the story, after all actions associated with each of the key information of the audio data are performed.
16. The control method as recited in claim 10, wherein the key information is selected from the group of consisting of words, phrases, and a combination of words and phrases.
Type: Application
Filed: Apr 29, 2009
Publication Date: Feb 25, 2010
Applicant: HON HAI PRECISION INDUSTRY CO., LTD. (Tu-Cheng)
Inventors: CHUAN-HONG WANG (Tu-Cheng), HSIAO-CHUNG CHOU (Tu-Cheng), LI-ZHANG HUANG (Tu-Cheng)
Application Number: 12/432,685
International Classification: A63H 3/28 (20060101);