A kind of robot of playing cucurbit flute and control method
Technical field
The present invention relates to a kind of robot, relate in particular to a kind of robot and control method of playing cucurbit flute.
Background technology
In recent years, in International exhibition with significant impact or robot exhibition, the band that the performance of robot and robot form is quite attracting project.
National musical instruments cucurbit silk for China, the robot that does not also have this respect at present both at home and abroad, particularly by coming the blowing instrument robot of accordatura then not have especially by hole and adjustment hole distance, applicant of the present invention is devoted to develop a kind of high emulation that has, and can realize coming by hole and adjustment hole distance the robot of the playing cucurbit flute of accordatura.
Summary of the invention
The object of the present invention is to provide a kind of robot and control method of playing cucurbit flute, it has high emulation, has at home and abroad realized first by come the robot of the playing cucurbit flute of accordatura by hole and adjustment hole distance.
The technical scheme that realizes above-mentioned purpose is:
The robot of a kind of playing cucurbit flute of one of the present invention, this robot links to each other with the control computer of upper band to receive the control of band, it comprises a robot body, this robot body comprises finger section, health operation joint portion, face, cucurbit silk, wherein, finger control servo-drive system, body action control servo-drive system, countenance control servo-drive system and source of the gas and pneumatic control system that it comprises a main control inserted computer device and links to each other with this main control inserted computer device respectively, wherein:
Described main control inserted computer device is realized the data processing and the order of playing cucurbit flute robot are sent, the control computer of it and upper band communicates, accept the information of playing music of the control computer of upper band, send to the data of the various states of control computer of upper band;
Described finger control servo-drive system is accepted the various performance orders of main control inserted computer device, moves by stepper motor driven machine human body's finger section;
Described body action control servo-drive system is accepted the motion command of main control inserted computer device, move in health operation joint by the driven by servomotor robot body, realizes nodding, comes back, bends over, turns round, both hands hold the cucurbit silk and put into mouthful action that neutralization is taken off;
Described countenance control servo-drive system is accepted the expression order of main control inserted computer device, and the face by a plurality of micro machines and little air cylinder driven and combination driven machine human body realizes the polylith muscular movement of dummy robot face;
Described source of the gas and pneumatic control system are accepted the order of playing wind instruments of main control inserted computer device, control the compressed air that this total air pump produces by controlling a total air pump, adopt a servo pressure regulating device to regulate the size and the flow velocity of stream pressure, realize the accurate control of the lip air-flow in the input robot body, reach size and fine setting tone that musical instrument is sounded.
The robot of above-mentioned playing cucurbit flute, wherein, also comprise a data acquisition and a fault display device that links to each other with described main control inserted computer device, it collects the data of each system by main control inserted computer device, and judge whether operate as normal or trouble location, and this state is shown.
The robot of above-mentioned playing cucurbit flute, wherein, also comprise a teaching module that links to each other with described main control inserted computer device, this teaching module is accepted the signal of playing wind instruments of outside input, outputs signal to described main control inserted computer device to realize the instant simulated playing of simulation true man.
The ROBOT CONTROL method of a kind of playing cucurbit flute of two of the present invention, this robot accepts the PC control command of the control computer output of upper system, wherein, may further comprise the steps:
The self check step, after beginning, system carries out self check;
Reset process resets to the action of robot;
The fill order step is accepted the PC control command of the control computer output of upper system, operates accordingly according to command execution.
The ROBOT CONTROL method of above-mentioned playing cucurbit flute, wherein, in the described fill order step, the PC control command comprises emergent order, sleep command, status inquiry command, the order of announcing the items on a programme, warning order, performance order, ceases and desist order, the teaching order, wherein:
Described warning order is that robot carries out warming-up exercise;
Described status inquiry command is the inquiry current state, and is undertaken by main control inserted computer device;
Described emergent order is for playing emergent song;
Described sleep command is performance dormancy action;
The described order of announcing the items on a programme is the action of announcing the items on a programme of control robot;
Described performance order is for playing action for corresponding system by main control inserted computer device output control signal;
Described ceasing and desisting order stops for controlling robot motion;
Described teaching order is for simulating the instant simulated playing of true man by main control inserted computer device control teaching module.
The ROBOT CONTROL method of above-mentioned playing cucurbit flute, wherein, described fill order step may further comprise the steps:
Read in step, read in current operating position data;
Decomposition step is decomposed right-hand man's action of robot;
Calculation procedure is calculated the robot movement velocity and the target location that need realization;
Execution in step, promptly the right-hand man carries out corresponding combination action according to movement velocity that calculates and target location;
Judged whether to cease and desist order,
If cease and desist order, then stop action, withdraw from then;
If do not cease and desist order, judge whether further that then whole actions finish,
If everything is all finished, then withdraw from;
If everything is not all finished, then return and read in step.
The ROBOT CONTROL method of above-mentioned playing cucurbit flute wherein, when carrying out the performance order, may further comprise the steps:
Check the song legitimacy, check whether song is legal,, then directly send end data packet,, then read data to random access memory according to song if legal if illegal;
Read information, reading data flow note, time, pressure information from random access memory;
Output finger movement and air pressure, according to the information that reads, output finger movement and pressure information;
Wait for, wait for the finger tenth skill;
Detect; whether the robot that at first detects playing cucurbit flute is protected; if be protected; the robot that is playing cucurbit flute can not move again; then send end data packet, if be not protected, promptly the robot of playing cucurbit flute is in the unprotect state; whether then further detection is received and is ceased and desisted order
If receive and cease and desist order, then send end data packet, if be not subjected to the finish command, then read in the next frame data;
Pre-preparation, read in the next frame data after, the action of the finger of the robot of playing cucurbit flute enters the pre-preparation state;
Detect playing state, promptly detect performance and whether finish,
Finish if play, then send end data packet;
Do not finish if play, then return output finger movement and air pressure step.
The invention has the beneficial effects as follows: robot of the present invention can realize the playing cucurbit flute musical instrument, and countenance and action that can the anthropomorphic dummy; By regulating the size and the flow velocity of stream pressure, the accurate control of the lip air-flow of machine philtrum is imported in realization, reaches size and fine setting tone that musical instrument is sounded, has realized the independent performance and the He Zou remarkably true to life of the common cucurbit silk of non-keyboard national musical instruments; Realized blowing instrument from the mouth of robot put into and, take out, it is more true to nature to make robot play; Can simulate true man's realization simulated playing immediately.By the attracting performance of robot, introduced outstanding Chinese Musical Instruments one cucurbit silk to the world, make people further understand long Chinese civilization.
Description of drawings
Fig. 1 is the robot construction schematic diagram of one of the present invention's playing cucurbit flute.
The specific embodiment
The invention will be further described below in conjunction with accompanying drawing.
See also Fig. 1, there is shown the robot of a kind of playing cucurbit flute of one of the present invention, this robot links to each other with the control computer 8 of upper band to receive the control of band, it comprises a robot body (not shown), this robot body comprises the finger section (not shown), health operation joint portion (not shown), face's (not shown), cucurbit silk (not shown), the finger control servo-drive system 2 that the present invention includes a main control inserted computer device 1 and link to each other with this main control inserted computer device 1 respectively, body action control servo-drive system 3, countenance control servo-drive system 4, source of the gas and pneumatic control system 5, teaching module 6, data acquisition and fault display device 7, wherein:
Main control inserted computer device 1 is realized the data processing and the order of playing cucurbit flute robot are sent, the control computer 8 of it and upper band communicates, accept the information of playing music of the control computer 8 of upper band, send to the data of the control computer 8 various states of upper band;
Finger control servo-drive system 2 is accepted the various performance orders of main control inserted computer device 1, finger section by stepper motor (not shown) driven machine human body is moved, have precision height, outstanding start-stop and reverse response, reliability than characteristics such as height, in the cucurbit silk, be used on the finger actuation, its effect is to can be good at control fast to play, and reaches good performing effect;
Body action control servo-drive system 3 is accepted the motion command of main control inserted computer device 1, move in health operation joint by servo (not shown) motor-driven robot body, realizes nodding, comes back, bends over, turns round, both hands hold the cucurbit silk and put into a mouthful neutralization and multiple action such as take off;
Countenance control servo-drive system 4 is accepted the expression order of main control inserted computer device 1, face by a plurality of micro machine (not shown)s and little air cylinder driven (not shown) and combination driven machine human body, realize the polylith muscular movement of dummy robot face, realize the nictation, blink of the robot of high emulation, in an instant, complicated expression action such as smile, lift up one's voice;
Source of the gas and pneumatic control system 5 are accepted the order of playing wind instruments of main control inserted computer device 1, control the compressed air that this total air pump produces by controlling a total air pump (not shown), adopt a servo pressure regulating device (not shown) to regulate the size and the flow velocity of stream pressure, realize the accurate control of the lip air-flow in the input robot body, reach size and fine setting tone that musical instrument is sounded.
Teaching module 6 is accepted the signal of playing wind instruments of outside input, outputs signal to main control inserted computer device 1 to realize the instant simulated playing of simulation true man.
Data acquisition and fault display device 7 are collected the data of each system by main control inserted computer device 1, and judge whether operate as normal or trouble location, and this state shown, it is to reset for the detection of observing each parts intuitively that fault shows, carry out corresponding operating and prompting by the duty and the information via logical process that detect each parts, prevent the further expansion of fault, feasible requirement to the system maintenance personnel reduces.
The ROBOT CONTROL method of a kind of playing cucurbit flute of two of the present invention, this robot accepts the PC control command of the control computer output of upper system, may further comprise the steps:
The self check step, after beginning, system carries out self check;
Reset process resets to the action of robot;
The fill order step, accept the PC control command of the control computer output of upper system, operate accordingly according to command execution, the PC control command comprises emergent order, sleep command, status inquiry command, the order of announcing the items on a programme, warning order, performance order, ceases and desist order, the teaching order, and wherein: warning order is that robot carries out warming-up exercise; Status inquiry command is the inquiry current state, and is undertaken by main control inserted computer device; Emergent order is for playing emergent song; Sleep command is performance dormancy action; The order of announcing the items on a programme is the action of announcing the items on a programme of control robot; Play order for playing action for corresponding system by main control inserted computer device output control signal; Cease and desist order and stop for controlling robot motion; The teaching order is for simulating the instant simulated playing of true man by main control inserted computer device control teaching module.
When fill order, specifically may further comprise the steps:
Read in step, read in current operating position data;
Decomposition step is decomposed right-hand man's action of robot;
Calculation procedure is calculated the robot movement velocity and the target location that need realization;
Execution in step, promptly the right-hand man carries out corresponding combination action according to movement velocity that calculates and target location;
Judged whether to cease and desist order,
If cease and desist order, then stop action, withdraw from then;
If do not cease and desist order, judge whether further that then whole actions finish,
If everything is all finished, then withdraw from;
If everything is not all finished, then return and read in step.
When carrying out the performance order, may further comprise the steps:
Check the song legitimacy, check whether song is legal,, then directly send end data packet,, then read data to random access memory according to song if legal if illegal;
Read information, reading data flow note, time, pressure information from random access memory;
Output finger movement and air pressure, according to the information that reads, output finger movement and pressure information;
Wait for, wait for the finger tenth skill;
Detect; whether the robot that at first detects playing cucurbit flute is protected; if be protected; the robot that is playing cucurbit flute can not move again; then send end data packet, if be not protected, promptly the robot of playing cucurbit flute is in the unprotect state; whether then further detection is received and is ceased and desisted order
If receive and cease and desist order, then send end data packet, if be not subjected to the finish command, then read in the next frame data;
Pre-preparation, read in the next frame data after, the action of the finger of the robot of playing cucurbit flute enters the pre-preparation state;
Detect playing state, promptly detect performance and whether finish,
Finish if play, then send end data packet;
Do not finish if play, then return output finger movement and air pressure step.
Above embodiment is only for the usefulness that the present invention is described, but not limitation of the present invention, person skilled in the relevant technique, under the situation that does not break away from the spirit and scope of the present invention, can also make various conversion or modification, therefore all technical schemes that are equal to also should belong to category of the present invention, should be limited by each claim.