CN106406916A - Realization method for robot training device - Google Patents
Realization method for robot training device Download PDFInfo
- Publication number
- CN106406916A CN106406916A CN201611019956.1A CN201611019956A CN106406916A CN 106406916 A CN106406916 A CN 106406916A CN 201611019956 A CN201611019956 A CN 201611019956A CN 106406916 A CN106406916 A CN 106406916A
- Authority
- CN
- China
- Prior art keywords
- implementation method
- enter
- robot
- training set
- enter step
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Toys (AREA)
Abstract
The invention relates to a realization method for a robot training device. The realization method is to call corresponding sub-modules according to the number of times of pressing a start key based on functional needs, and various funny robot figures such as an automobile, an airplane, a tank and the like can be transformed by adopting an arduino platform and an open source mode to facilitate modification and innovation of codes. A user can compile a source program in a computer and then download the source program to a robot to control various actions of the robot; the user unsatisfied with the actions of the robot can recompile the program and re-download the program to the robot, till the actions of the robot satisfy the user; and the user can also detach components, compose the shapes of hundreds of robots, and program and debug the actions of hundreds of robots.
Description
Technical field
The present invention relates to a kind of implementation method of robot training set, belong to robotics.
Background technology
Since nineteen twenty, writer's card peck since he little is right and mentions " Robot " first, through sending out of a century
Exhibition, " robot " this vocabulary believes that everybody is no longer strange, and can see everywhere at one's side is all roboticses to life
The impact that work brings.Global robot quantity exponentially formula explode growth gesture.Robot quantity sharp increase, is on the one hand society
One demand of meeting growth requirement itself, on the other hand it is also the inevitable outcome of the demand of productivity dynamics.In the mankind more not
In disconnected discussion natural process, during nature remodeling, during the knowledge of natural environment, increasingly demand can liberate one kind " slave of people
It is subordinate to ".So this " slave " is just that instead of people and goes to be engaged in complicated and heavy physical work, realizes people to the world
Understanding and transformation, this is also people in the desirability of one of development in science and technology process.In the following ten great development strategies of Google
Primary Strategies are exactly artificial intelligence, the appearance of Alpha Dog, all imply that next stage machine man-based development general orientation.
At present China robot development or and developed country, e.g., the U.S., Korea S, Japan etc., there is no small difference
Away from particularly in this one side of robot teaching.Robot teaching instrument in the market is fewer, creative not enough, knot
Structure is single.Education software compares closing, does not open, and is unfavorable for the culture with the talent of imparting knowledge to students.Vast robot practitioner, especially
It is abecedarian, neither one platform can be with the knowledge of learning robot, and vast robot creates visitor's also good platform of neither one
Can practise.
Content of the invention
The technical problem to be solved in the present invention is for above-mentioned deficiency, provides a kind of implementation method of robot teaching, adopts
Use arduino platform, using the pattern of increasing income, the various joyful robot figure such as the automobile that swaps out, aircraft, tank can be become, more
Modification beneficial to code and innovation.
In order to solve above technical problem, the technical solution used in the present invention is as follows:A kind of reality of robot training set
Existing method, needs to call the implementation method of corresponding submodule by pressing the number of times starting button according to function.
Improvement further as technique scheme:
Described implementation method starts from step S1, enters step S2;
In step S2, the pin of all modules is initialized accordingly, subsequently into step S3;
In step S3, detection starts whether button is pressed, when detect start button and press when, enter step S4;When not inspection
Measure beginning button when pressing, enter step S5;
In step S4, execute order:Start touch potential+1, the waiting time resets, and is then back to step S3.
A kind of implementation method of robot training set, also includes step S5, in step S5, waiting time+1, Ran Houjin
Enter step S6;
In step S6, judge whether the waiting time is more than 3 seconds, if the waiting time is less than 3 seconds, return to step S3;If wait
Between be more than 3 seconds, enter step S7.
A kind of implementation method of robot training set, also includes step S7, in step S7, judges to start touch potential N,
N is an Arbitrary Digit, and different N represents the implementation method of different submodules;If being equal to N, enter step S8.
A kind of implementation method of robot training set, also includes step S8, in step S8, enters the corresponding submodule of N
Implementation method, enter step S9;
In step S9, need to call the implementation method of the corresponding submodule of N, the implementation method of the corresponding submodule of N according to function
Can be the implementation method of the implementation method, the implementation method of trajectory Car module or detection of obstacles module of DC motor module,
It can also be the implementation method of other submodules user-defined.
A kind of implementation method of robot training set, also includes step S10, in step S10, when system at any time
When reset key is detected and pressing, system enters step S2.
The implementation method of described DC motor module, starts from step S01, respectively enters step S02, step S03, step
S04 and step S05;
In step S02, by forward key, enter step S06;
In step S06, left motor advances, and right motor advances, and is then back to;
In step S03, by Reverse keys, enter step S07;
In step S07, left motor retreats, and right motor retreats, and is then back to;
In step S04, by left-hand rotation button, enter step S08;
In step S08, left motor retreats, and right motor advances, and is then back to;
In step S05, by right-hand rotation button, enter step S09;
In step S08, left motor advances, and right motor retreats, and is then back to.
The implementation method of described trajectory Car module, starts from step S010 and step S011,
In step S010, open right infrared sensor, enter step S012;
In step S012, detect whether reflected light, be, then entered step S014, advanced, no, then enter step S015, right
Turn, be then back to;
In step S011, open left infrared sensor, enter step S013;
In step S013, detect whether reflected light, be, then entered step S016, advanced, no, then enter step S017, left
Turn, be then back to.
The implementation method of described detection of obstacles module, is divided into contact and contactless, contact starts from step
S020, respectively enters step S021, step S022 and step S023;
In step S021, the left side contacts, and enters step S024, retreats and turns right, is then back to;
In step S022, the right contacts, and enters step S025, retreats, is then back to;
In step S023, both sides contact simultaneously, enter step S026, retreat, are then back to.
Described contactless start from step S030, respectively enter step S031, step S032 and step S033;
In step S031, right infrared sensor, enter step S034, retreat, be then back to;
In step S032, left side infrared sensor, enter step S035, retreat and turn right, be then back to;
In step S033, infrared sensor n, enter step S036, user oneself defines, and is then back to.
The present invention takes above technical scheme, has advantages below:The present invention adopts arduino platform, using mould of increasing income
Formula, can become the various joyful robot figure such as the automobile that swaps out, aircraft, tank, the more conducively modification of code and innovation.Use
Person can download in robot after compiling after computer terminal weaves source program, and controls the various actions of robot, such as
The action of the dissatisfied robot of fruit, can coding again, re-download in robot, until the action of robot is full
The regard of sufficient user, can also again dismantle part, form the shape of hundreds of robot, hundreds of robot of detail programming
Action.
The invention will be further described with reference to the accompanying drawings and examples.
Brief description
Accompanying drawing 1 is the schematic flow sheet of the implementation method of robot training set in the embodiment of the present invention;
Accompanying drawing 2 is the schematic flow sheet of the implementation method of DC motor module of robot training set in the embodiment of the present invention;
Accompanying drawing 3 is the schematic flow sheet of the implementation method of trajectory Car module of robot training set in the embodiment of the present invention;
Accompanying drawing 4 is the flow process of the implementation method of detection of obstacles module contact formula of robot training set in the embodiment of the present invention
Schematic diagram;
Accompanying drawing 5 is the stream of the contactless implementation method of the detection of obstacles module of robot training set in the embodiment of the present invention
Journey schematic diagram.
Specific embodiment
Embodiment, a kind of robot training set can be combined into various different robots, and each robot is all
Need the corresponding program of independent operating, as shown in fig. 1:A kind of implementation method of robot training set:According to function needs
Call the implementation method of corresponding submodule by pressing the number of times starting button.Switch on power after opening switch, by by pressing
Determining to run which program, after stop button operates 3 seconds, bring into operation the number of times of button corresponding program, in addition to by 1 time, its
The number of times that it is pressed all can correspond to a kind of program, if pressed 1 time, execution is the program that last time is run.
Described implementation method starts from step S1, enters step S2;
In step S2, the pin of all modules is initialized accordingly, subsequently into step S3;
In step S3, detection starts whether button is pressed, when detect start button and press when, enter step S4;When not inspection
Measure beginning button when pressing, enter step S5;
In step S4, execute order:Start touch potential+1, the waiting time resets, and is then back to step S3;
In step S5, the waiting time+1, subsequently into step S6;
In step S6, judge whether the waiting time is more than 3 seconds, if the waiting time is less than 3 seconds, return to step S3;If wait
Between be more than 3 seconds, enter step S7;
In step S7, judge to start touch potential N, N is an Arbitrary Digit, and different N represents the realization of different submodules
Method;If being equal to N, enter step S8;
In step S8, enter the implementation method of the corresponding submodule of N, enter step S9;
In step S9, need to call the implementation method of the corresponding submodule of N, the implementation method of the corresponding submodule of N according to function
Can be the implementation method of the implementation method, the implementation method of trajectory Car module or detection of obstacles module of DC motor module,
It can also be the implementation method of other submodules user-defined.
In step S10, when system detects reset key at any time and presses, system enters step S2;
As shown in Figure 2, the implementation method of the DC motor module of robot training set, starts from step S01, respectively enters step
Rapid S02, step S03, step S04 and step S05;
In step S02, by forward key, enter step S06;
In step S06, left motor advances, and right motor advances, and is then back to;
In step S03, by Reverse keys, enter step S07;
In step S07, left motor retreats, and right motor retreats, and is then back to;
In step S04, by left-hand rotation button, enter step S08;
In step S08, left motor retreats, and right motor advances, and is then back to;
In step S05, by right-hand rotation button, enter step S09;
In step S08, left motor advances, and right motor retreats, and is then back to.
As shown in Figure 3, the implementation method of the trajectory Car module of robot training set, starts from step S010 and step
Rapid S011,
In step S010, open right infrared sensor, enter step S012;
In step S012, detect whether reflected light, be, then entered step S014, advanced, no, then enter step S015, right
Turn, be then back to;
In step S011, open left infrared sensor, enter step S013;
In step S013, detect whether reflected light, be, then entered step S016, advanced, no, then enter step S017, left
Turn, be then back to.
The implementation method of the detection of obstacles module of robot training set, is divided into contact and contactless, such as accompanying drawing 4
Shown, contact starts from step S020, respectively enters step S021, step S022 and step S023;
In step S021, the left side contacts, and enters step S024, retreats and turns right, is then back to;
In step S022, the right contacts, and enters step S025, retreats, is then back to;
In step S023, both sides contact simultaneously, enter step S026, retreat, are then back to;
As shown in Figure 5, contactless start from step S030, respectively enter step S031, step S032 and step S033;
In step S031, right infrared sensor, enter step S034, retreat, be then back to;
In step S032, left side infrared sensor, enter step S035, retreat and turn right, be then back to;
In step S033, infrared sensor n, enter step S036, user oneself defines, and is then back to.
Claims (10)
1. a kind of robot training set implementation method it is characterised in that:Needed by pressing beginning button according to function
Number of times calls the implementation method of corresponding submodule.
2. as claimed in claim 1 a kind of robot training set implementation method it is characterised in that:Described implementation method is opened
Start from step S1, enter step S2;
In step S2, the pin of all modules is initialized accordingly, subsequently into step S3;
In step S3, detection starts whether button is pressed, when detect start button and press when, enter step S4;When not inspection
Measure beginning button when pressing, enter step S5;
In step S4, execute order:Start touch potential+1, the waiting time resets, and is then back to step S3.
3. as claimed in claim 2 a kind of robot training set implementation method it is characterised in that:Also include step S5,
In step S5, the waiting time+1, subsequently into step S6;
In step S6, judge whether the waiting time is more than 3 seconds, if the waiting time is less than 3 seconds, return to step S3;If wait
Between be more than 3 seconds, enter step S7.
4. as claimed in claim 2 a kind of robot training set implementation method it is characterised in that:Also include step S7,
In step S7, judge to start touch potential N, N is an Arbitrary Digit, and different N represents the implementation method of different submodules;
If being equal to N, enter step S8.
5. as claimed in claim 2 a kind of robot training set implementation method it is characterised in that:Also include step S8,
In step S8, enter the implementation method of the corresponding submodule of N, enter step S9;
In step S9, need to call the implementation method of the corresponding submodule of N, the implementation method of the corresponding submodule of N according to function
Can be the implementation method of the implementation method, the implementation method of trajectory Car module or detection of obstacles module of DC motor module,
It can also be the implementation method of other submodules user-defined.
6. as claimed in claim 2 a kind of robot training set implementation method it is characterised in that:Also include step S10,
In step S10, when system detects reset key at any time and presses, system enters step S2.
7. as claimed in claim 5 a kind of robot training set implementation method it is characterised in that:Described DC motor module
Implementation method, start from step S01, respectively enter step S02, step S03, step S04 and step S05;
In step S02, by forward key, enter step S06;
In step S06, left motor advances, and right motor advances, and is then back to;
In step S03, by Reverse keys, enter step S07;
In step S07, left motor retreats, and right motor retreats, and is then back to;
In step S04, by left-hand rotation button, enter step S08;
In step S08, left motor retreats, and right motor advances, and is then back to;
In step S05, by right-hand rotation button, enter step S09;
In step S08, left motor advances, and right motor retreats, and is then back to.
8. as claimed in claim 5 a kind of robot training set implementation method it is characterised in that:Described trajectory Car mould
The implementation method of block, starts from step S010 and step S011,
In step S010, open right infrared sensor, enter step S012;
In step S012, detect whether reflected light, be, then entered step S014, advanced, no, then enter step S015, right
Turn, be then back to;
In step S011, open left infrared sensor, enter step S013;
In step S013, detect whether reflected light, be, then entered step S016, advanced, no, then enter step S017, left
Turn, be then back to.
9. as claimed in claim 5 a kind of robot training set implementation method it is characterised in that:Described detection of obstacles
The implementation method of module, is divided into contact and contactless, contact starts from step S020, respectively enters step S021, step
Rapid S022 and step S023;
In step S021, the left side contacts, and enters step S024, retreats and turns right, is then back to;
In step S022, the right contacts, and enters step S025, retreats, is then back to;
In step S023, both sides contact simultaneously, enter step S026, retreat, are then back to.
10. as claimed in claim 9 a kind of robot training set implementation method it is characterised in that:Described contactless
Start from step S030, respectively enter step S031, step S032 and step S033;
In step S031, right infrared sensor, enter step S034, retreat, be then back to;
In step S032, left side infrared sensor, enter step S035, retreat and turn right, be then back to;
In step S033, infrared sensor n, enter step S036, user oneself defines, and is then back to.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611019956.1A CN106406916A (en) | 2016-11-21 | 2016-11-21 | Realization method for robot training device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611019956.1A CN106406916A (en) | 2016-11-21 | 2016-11-21 | Realization method for robot training device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106406916A true CN106406916A (en) | 2017-02-15 |
Family
ID=58068550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611019956.1A Pending CN106406916A (en) | 2016-11-21 | 2016-11-21 | Realization method for robot training device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106406916A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783153A (en) * | 2017-11-13 | 2019-05-21 | 深圳市创客工场科技有限公司 | Physical hardware control method, device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572512A (en) * | 2014-12-31 | 2015-04-29 | 深圳雷柏科技股份有限公司 | Method and system for realizing multi-clicking functions of X-mouse button control |
CN205681441U (en) * | 2016-02-05 | 2016-11-09 | 网宿科技股份有限公司 | The network equipment |
-
2016
- 2016-11-21 CN CN201611019956.1A patent/CN106406916A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572512A (en) * | 2014-12-31 | 2015-04-29 | 深圳雷柏科技股份有限公司 | Method and system for realizing multi-clicking functions of X-mouse button control |
CN205681441U (en) * | 2016-02-05 | 2016-11-09 | 网宿科技股份有限公司 | The network equipment |
Non-Patent Citations (3)
Title |
---|
佚名: ""让你学会怎样DIY一个遥控机器人"", 《HTTP//M.ELECFANS.COM/ARTICLE/286393.HTML》 * |
戚薇: ""Arduino寻迹小车 高级自走完整资料"", 《WWW.51HEI.COM/BBS/DPJ-57942-1.HTML》 * |
潘元骁: ""基于Arduino的智能小车自动避障系统设计与研究"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109783153A (en) * | 2017-11-13 | 2019-05-21 | 深圳市创客工场科技有限公司 | Physical hardware control method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Tremblay et al. | Synthetically trained neural networks for learning human-readable plans from real-world demonstrations | |
US10579900B2 (en) | Simple programming method and device based on image recognition | |
Perez et al. | Learning visual reasoning without strong priors | |
CN110619123A (en) | Machine reading understanding method | |
CN105956626A (en) | Deep learning based vehicle license plate position insensitive vehicle license plate recognition method | |
Wang et al. | MASD: A multimodal assembly skill decoding system for robot programming by demonstration | |
Islam et al. | Dynamic reconfiguration of mission parameters in underwater human-robot collaboration | |
CN104851099A (en) | Method for image fusion based on representation learning | |
CN104888469A (en) | Intelligent programming building block toy based on image recognition and implementation method of intelligent programming building block toy | |
CN104915643A (en) | Deep-learning-based pedestrian re-identification method | |
CN105867630A (en) | Robot gesture recognition method and device and robot system | |
CN105678297A (en) | Portrait semantic analysis method and system based on label transfer and LSTM model | |
CN205322331U (en) | Gait recognition device based on sole pressure deformation | |
CN107301406A (en) | Fast face angle recognition method based on deep learning | |
CN103240746B (en) | A kind of finger-guessing game robot and finger-guessing game gesture identification method with image identification system | |
Huang et al. | A case study of cyber-physical system design: Autonomous pick-and-place robot | |
CN112016462A (en) | Recovery bottle classification method based on deep learning model | |
CN102651072A (en) | Classification method for three-dimensional human motion data | |
CN106406916A (en) | Realization method for robot training device | |
Zamora-Mora et al. | Real-time hand detection using convolutional neural networks for costa rican sign language recognition | |
CN111738074A (en) | Pedestrian attribute identification method, system and device based on weak supervised learning | |
Zhao et al. | Edge-cloud collaborative fabric defect detection based on industrial internet architecture | |
CN109241998A (en) | model training method, device, equipment and storage medium | |
Zhou et al. | Openannotate3d: Open-vocabulary auto-labeling system for multi-modal 3d data | |
CN109543700B (en) | Anti-shielding clothing key point detection method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |