CN104191428A - Movement path planning method and system based on SCARA - Google Patents

Movement path planning method and system based on SCARA Download PDF

Info

Publication number
CN104191428A
CN104191428A CN201410427532.3A CN201410427532A CN104191428A CN 104191428 A CN104191428 A CN 104191428A CN 201410427532 A CN201410427532 A CN 201410427532A CN 104191428 A CN104191428 A CN 104191428A
Authority
CN
China
Prior art keywords
scara manipulator
scara
trajectory planning
actual motion
interpolation
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.)
Granted
Application number
CN201410427532.3A
Other languages
Chinese (zh)
Other versions
CN104191428B (en
Inventor
丁昭继
管成亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN KERUI TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN KERUI TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SHENZHEN KERUI TECHNOLOGY Co Ltd filed Critical SHENZHEN KERUI TECHNOLOGY Co Ltd
Priority to CN201410427532.3A priority Critical patent/CN104191428B/en
Publication of CN104191428A publication Critical patent/CN104191428A/en
Application granted granted Critical
Publication of CN104191428B publication Critical patent/CN104191428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators

Abstract

The invention provides a movement path planning method and system based on an SCARA. The movement path planning method comprises the steps that an upper computer receives an operation instruction of a user, sets path planning modes of the SCARA and movement parameters corresponding to the path planning modes, and sends the path planning modes and the movement parameters to a movement controller of the SCARA; the movement controller performs operations on an actual movement path of the SCARA according to algorithms corresponding to the path planning modes to obtain actual movement path information of the SCARA and sends the actual movement path information to the SCARA; the SCARA receives the actual movement path information and moves according to the actual movement path information. The movement path planning method and system based on the SCARA have three different movement path algorithms of linear interpolation, circular interpolation and capture in flight and have the advantages of rapid response and high accuracy.

Description

A kind of motion trail planning method and system based on SCARA manipulator
Technical field
The present invention relates to manipulator control technical field, in particular a kind of motion trail planning method and system based on SCARA manipulator.
Background technology
Current, SCARA manipulator is widely used in the industrial circles such as electronics, automobile, plastics, food, and its Major Function has been carrying and assembly work.Along with complexity and the accuracy of processing technology constantly promote, SCARA manipulator on streamline often need to other industrial equipment work compounds, there will be unavoidably the danger bumping with barrier.Therefore, just seem particularly important to existing the movement locus of SCARA manipulator of barrier to plan in working range.
Trajectory planning (Path Planning) refers to the barrier condition of given environment, and starting point and impact point position, require to select a path from starting point to impact point, make SCARA manipulator can pass through safely, without collision all barriers.The path accuracy average out to 0.3mm of existing common SCARA manipulator, its path accuracy is not high as seen, and trajectory planning is consuming time also longer.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, a kind of motion trail planning method and system based on SCARA manipulator is provided, can effectively solves and adopt the path accuracy of prior art SCARA manipulator not high, the defect of planning time length consuming time.
The technical scheme that technical solution problem of the present invention adopts is as follows:
Based on a motion trail planning method for SCARA manipulator, wherein, described method comprises step:
A, host computer receive user's operational order, and the trajectory planning mode of SCARA manipulator and the kinematic parameter corresponding with described trajectory planning mode are set, and described trajectory planning mode and described kinematic parameter are sent to the motion controller of SCARA manipulator;
B, described motion controller carry out computing according to algorithm corresponding to described trajectory planning mode to the actual motion track of SCARA manipulator, obtain the actual motion trace information of SCARA manipulator, and described actual motion trace information is sent to SCARA manipulator;
C, described SCARA manipulator receive described actual motion trace information, and move according to described actual motion trace information.
The described motion trail planning method based on SCARA manipulator, wherein, the described trajectory planning mode in described steps A is that smooth track planning is caught in linear interpolation trajectory planning, circular interpolation trajectory planning and flight.
The described motion trail planning method based on SCARA manipulator, wherein, in described steps A, in the time that described trajectory planning mode is linear interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate and interpolation precision value; In the time that described trajectory planning mode is circular interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate, central coordinate of circle, circular interpolation accuracy value and circular interpolation direction; When described trajectory planning mode is that smooth track when planning is caught in flight, described kinematic parameter comprises starting point coordinate, trigger point coordinate, terminal point coordinate, triggering pulsewidth and smoothness.
The described motion trail planning method based on SCARA manipulator, wherein, specifically comprises in described step B:
B1, when described trajectory planning mode be linear interpolation trajectory planning, the DSP in described motion controller carries out computing according to linear interpolation algorithm to the actual motion track of SCARA manipulator, obtain the physical coordinates of multiple interpolated points in the actual motion track of SCARA manipulator, carry out afterwards B4;
B2, when described trajectory planning mode be circular interpolation trajectory planning, the DSP in described motion controller carries out computing according to arc interpolation to the actual motion track of SCARA manipulator, obtain the physical coordinates of multiple interpolated points in the actual motion track of SCARA manipulator, carry out afterwards B4;
B3, when described trajectory planning mode be that smooth track planning is caught in flight, the DSP in described motion controller catches smoothing algorithm according to flight the actual motion track of SCARA manipulator is carried out to computing, obtain the physical coordinates of multiple interpolated points in the actual motion track of SCARA manipulator, carry out afterwards B4;
B4, described DSP transform the physical coordinates of described multiple interpolated points the corner of the corresponding large forearm of SCARA manipulator, and calculate the speed of multiple interpolated points according to predetermined step curve acceleration and deceleration method;
Corner and the speed of the large forearm of SCARA manipulator corresponding described multiple interpolated points are sent to the motion control chip in described motion controller by B5, described DSP, and motion control chip is according to the corner of the large forearm of described SCARA manipulator and speed control SCARA robot movement.
The described motion trail planning method based on SCARA manipulator, wherein, described step B1 specifically comprises:
B11, described DSP obtain the starting point coordinate (X in described kinematic parameter 0, Y 0), terminal point coordinate (X e, Y e) and interpolation precision value Δ L, and respectively according to Δ X=X e-X 0with Δ Y=Y e-Y 0obtain horizontal spacing Δ X and the longitudinal pitch Δ Y of terminal point coordinate and starting point coordinate;
B12, judgement | whether Δ X| is more than or equal to | Δ Y|, in the time being more than or equal to, perform step B13, in the time being less than, perform step B14;
B13, according to n 1=floor (| Δ X|/Δ L+1) calculating the first interpolation frequency n 1, and according to Δ L n1=Δ X/n 1calculate current the first interpolation precision Δ L n1, and according to Δ X i=Δ L n1determine the first horizontal increment Delta X i, according to Δ Y i=Δ L n1* Δ Y/ Δ X determines first longitudinal increment Delta Y i, according to X i=X i-1+ Δ X idetermine n in actual motion track 1the abscissa of individual interpolated point, according to Y i=Y i-1+ Δ Y idetermine n in actual motion track 1the ordinate of individual interpolated point; Wherein, floor function is downward bracket function, and i is that span is [1, n 1] positive integer;
B14, according to n 2=floor (| Δ Y|/Δ L+1) calculating the second interpolation frequency n 2, and according to Δ L n2=Δ Y/n 2calculate current the second interpolation precision Δ L n2, and according to Δ X j=Δ L n2* Δ X/ Δ Y determines the second horizontal increment Delta X j, according to Δ Y j=Δ L n2determine second longitudinal increment Delta Y j, according to X j=X j-1+ Δ X jdetermine n in actual motion track 2the abscissa of individual interpolated point, according to Y j=Y j-1+ Δ Y jdetermine n in actual motion track 2the ordinate of individual interpolated point; Wherein, floor function is downward bracket function, and j is that span is [1, n 2] positive integer.
The described motion trail planning method based on SCARA manipulator, wherein, described step B2 specifically comprises:
B21, described DSP obtain the starting point coordinate (X in described kinematic parameter a,, Y a), terminal point coordinate (X b, Y b), central coordinate of circle (X o, Y o), circular interpolation accuracy value dfstep and circular interpolation direction;
B22, according to starting point coordinate (X a,, Y a), terminal point coordinate (X b, Y b), central coordinate of circle (X o, Y o) and circular interpolation orientation determination radius R, starting point angle terminal angle and terminal angle and starting point angle is poor and according to calculate circular interpolation times N, and according to calculate current circular interpolation precision Dfstep, according to determine the abscissa of N interpolated point in actual motion track, according to determine the ordinate of N interpolated point in actual motion track; Wherein, floor function is downward bracket function, and m is that span is the positive integer of [1, N].
A movement locus planning system based on SCARA manipulator, wherein, comprising:
Module is set, receive user's operational order for host computer, the trajectory planning mode of SCARA manipulator and the kinematic parameter corresponding with described trajectory planning mode are set, and described trajectory planning mode and described kinematic parameter are sent to the motion controller of SCARA manipulator;
Track obtains and sending module, according to algorithm corresponding to described trajectory planning mode, the actual motion track of SCARA manipulator is carried out to computing for described motion controller, obtain the actual motion trace information of SCARA manipulator, and described actual motion trace information is sent to SCARA manipulator;
Receive and motion module, receive described actual motion trace information for described SCARA manipulator, and move according to described actual motion trace information.
The described movement locus planning system based on SCARA manipulator, wherein, the described described trajectory planning mode arranging in module is that smooth track planning is caught in linear interpolation trajectory planning, circular interpolation trajectory planning and flight.
The described movement locus planning system based on SCARA manipulator, wherein, described track obtain and sending module in the time that described trajectory planning mode is linear interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate and interpolation precision value; In the time that described trajectory planning mode is circular interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate, central coordinate of circle, circular interpolation accuracy value and circular interpolation direction; When described trajectory planning mode is that smooth track when planning is caught in flight, described kinematic parameter comprises starting point coordinate, trigger point coordinate, terminal point coordinate, triggering pulsewidth and smoothness.
The described movement locus planning system based on SCARA manipulator, wherein, described track obtains and sending module specifically wraps linear interpolation unit, circular interpolation unit, smooth unit, tarnsition velocity acquiring unit and transmitting element are caught in flight, wherein:
Described linear interpolation unit, linear interpolation trajectory planning for working as described trajectory planning mode, the DSP in described motion controller carries out computing according to linear interpolation algorithm to the actual motion track of SCARA manipulator, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, starts described tarnsition velocity acquiring unit afterwards;
Described circular interpolation unit, circular interpolation trajectory planning for working as described trajectory planning mode, the DSP in described motion controller carries out computing according to arc interpolation to the actual motion track of SCARA manipulator, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, starts described tarnsition velocity acquiring unit afterwards;
Smooth unit is caught in described flight, that smooth track planning is caught in flight for working as described trajectory planning mode, the DSP in described motion controller catches smoothing algorithm according to flight the actual motion track of SCARA manipulator is carried out to computing, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, starts described tarnsition velocity acquiring unit afterwards;
Described tarnsition velocity acquiring unit, transforms the physical coordinates of described multiple interpolated points for described DSP the corner of the corresponding large forearm of SCARA manipulator, and calculates the speed of multiple interpolated points according to predetermined step curve acceleration and deceleration method;
Described transmitting element, the motion control chip that for described DSP, the corner of the large forearm of SCARA manipulator corresponding described multiple interpolated points and speed is sent to described motion controller, motion control chip is according to the corner of the large forearm of SCARA manipulator and speed control SCARA robot movement.
A kind of motion trail planning method and system based on SCARA manipulator provided by the present invention, method comprises: host computer receives user's operational order, the trajectory planning mode of SCARA manipulator and the kinematic parameter corresponding with described trajectory planning mode are set, and described trajectory planning mode and described kinematic parameter are sent to the motion controller of SCARA manipulator; Described motion controller carries out computing according to algorithm corresponding to described trajectory planning mode to the actual motion track of SCARA manipulator, obtains the actual motion trace information of SCARA manipulator, and described actual motion trace information is sent to SCARA manipulator; Described SCARA manipulator receives described actual motion trace information, and moves according to described actual motion trace information.The present invention has linear interpolation, circular interpolation, and flight catches three kinds of different motion Trajectory Arithmetics, calculates respectively movement locus interpolated point data separately, and each interpolated point packet, containing position data and speed data, has response fast, the high feature of precision.
Brief description of the drawings
Fig. 1 is the flow chart of the preferred embodiment of the motion trail planning method based on SCARA manipulator of the present invention.
Fig. 2 is the particular flow sheet that obtains actual motion trace information in the motion trail planning method based on SCARA manipulator of the present invention and send.
Fig. 3 is the flow chart that carries out the idiographic flow of linear interpolation in the motion trail planning method based on SCARA manipulator of the present invention.
Fig. 4 is linear interpolation schematic diagram of the present invention.
Fig. 5 is the flow chart that carries out the idiographic flow of circular interpolation in the motion trail planning method based on SCARA manipulator of the present invention.
Fig. 6 is circular interpolation schematic diagram of the present invention.
Fig. 7 a, Fig. 7 b are respectively top view and the side views of the manipulator of SCARA described in the present invention.
Fig. 8 is the schematic diagram of the large forearm angle of SCARA manipulator physical coordinates of the present invention.
Fig. 9 is two sections of movement locus figure of SCARA of the specific embodiment of the invention.
Figure 10 is corner partial enlarged drawing in Fig. 9.
Figure 11 is two sections of movement locus optimization figure of SCARA of the specific embodiment of the invention.
Figure 12 is the vector change algorithm figure of the movement locus of the specific embodiment of the invention.
Figure 13 is the structured flowchart of the movement locus planning system preferred embodiment based on SCARA manipulator of the present invention.
Detailed description of the invention
For making object of the present invention, technical scheme and advantage clearer, clear and definite, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart of the preferred embodiment of the motion trail planning method based on SCARA manipulator of the present invention.As shown in Figure 1, the described motion trail planning method based on SCARA manipulator, comprises the following steps:
Step S100, host computer receive user's operational order, the trajectory planning mode of SCARA manipulator and the kinematic parameter corresponding with described trajectory planning mode are set, and described trajectory planning mode and described kinematic parameter are sent to the motion controller of SCARA manipulator.
In embodiments of the invention, user arranges the trajectory planning mode of SCARA manipulator and the kinematic parameter corresponding with described trajectory planning mode by host computer, and send it to the motion controller of SCARA manipulator, namely tell SCARA manipulator where should walk and how this goes to terminal.
Step S200, described motion controller carry out computing according to algorithm corresponding to described trajectory planning mode to the actual motion track of SCARA manipulator, obtain the actual motion trace information of SCARA manipulator, and described actual motion trace information is sent to SCARA manipulator.
In step S200, the actual motion trace information of the SCARA manipulator obtaining comprises the physical coordinates of multiple interpolated points in actual motion track, physical coordinates---corresponding polar coordinates and speed with described multiple interpolated points.When described motion controller obtains after the actual motion trace information of SCARA manipulator, send it to SCARA manipulator.
Step S300, described SCARA manipulator receive described actual motion trace information, and move according to described actual motion trace information.
In embodiments of the invention, SCARA manipulator receives after described actual motion trace information, moves according to described actual motion trace information, has guaranteed the accurate motion in each moment of SCARA manipulator, simultaneously can effective avoiding obstacles.
In embodiments of the invention, need first judge described trajectory planning mode, in the time judging that described trajectory planning mode is linear interpolation trajectory planning, calculate the interpolated point of actual motion track by linear interpolation algorithm; In the time judging that inserting described trajectory planning mode is circular interpolation trajectory planning, calculate the interpolated point of actual motion track by arc interpolation; When judging that described trajectory planning mode is that smooth track when planning is caught in flight, calculates the interpolated point of actual motion track by smoothing algorithm.
Embodiment further, as shown in Figure 2, the idiographic flow that obtains actual motion trace information transmission in described step S200 comprises:
Step S201, when described trajectory planning mode be linear interpolation trajectory planning, the DSP in described motion controller carries out computing according to linear interpolation algorithm to the actual motion track of SCARA manipulator, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, performs step S204 afterwards.
Embodiment further, as shown in Figure 3, the idiographic flow that described step S201 carries out linear interpolation comprises:
Step S2011, described DSP obtain the starting point coordinate (X in described kinematic parameter 0, Y 0), terminal point coordinate (X e, Y e) and interpolation precision value Δ L, and respectively according to Δ X=X e-X 0with Δ Y=Y e-Y 0obtain horizontal spacing Δ X and the longitudinal pitch Δ Y of terminal point coordinate and starting point coordinate;
Step S2012, judgement | whether Δ X| is more than or equal to | Δ Y|, in the time being more than or equal to, perform step S2013, in the time being less than, perform step S2014;
Step S2013, according to n 1=floor (| Δ X|/Δ L+1) calculating the first interpolation frequency n 1, and according to Δ L n1=Δ X/n 1calculate current the first interpolation precision Δ L n1, and according to Δ X i=Δ L n1determine the first horizontal increment Delta X i, according to Δ Y i=Δ L n1* Δ Y/ Δ X determines first longitudinal increment Delta Y i, according to X i=X i-1+ Δ X idetermine n in actual motion track 1the abscissa of individual interpolated point, according to Y i=Y i-1+ Δ Y idetermine n in actual motion track 1the ordinate of individual interpolated point; Wherein, floor function is downward bracket function, and i is that span is [1, n 1] positive integer;
Step S2014, according to n 2=floor (| Δ Y|/Δ L+1) calculating the second interpolation frequency n 2, and according to Δ L n2=Δ Y/n 2calculate current the second interpolation precision Δ L n2, and according to Δ X j=Δ L n2* Δ X/ Δ Y determines the second horizontal increment Delta X j, according to Δ Y j=Δ L n2determine second longitudinal increment Delta Y j, according to X j=X j-1+ Δ X jdetermine n in actual motion track 2the abscissa of individual interpolated point, according to Y j=Y j-1+ Δ Y jdetermine n in actual motion track 2the ordinate of individual interpolated point; Wherein, floor function is downward bracket function, and j is that span is [1, n 2] positive integer.
In order to further illustrate the idiographic flow of above-mentioned linear interpolation, now illustrate by an example.As shown in Figure 4, it is linear interpolation schematic diagram of the present invention, supposes to boning out OA, and wherein O point coordinates is (X 0, Y 0), A point coordinates is (X e, Y e), moving some N i-1the coordinate of (being interpolated point) is (X i-1, Y i-1), the horizontal spacing Δ X=X of OA distance e-X 0, longitudinal pitch Δ Y=Y e-Y 0, displacement increment largest component is Δ L, sets Δ L=0.1mm at this.
When | Δ X|>=| when Δ Y|, ask the first interpolation frequency n 1, n 1=floor (| Δ X|/Δ L+1), revise Δ L n1=Δ X/n 1, Δ X i=Δ L n1, Δ Y i=Δ L n1* Δ Y/ Δ X; Wherein, floor function is downward bracket function, and i is that span is [1, n 1] positive integer.
When | Δ X| < | Δ Y|, asks the second interpolation frequency n 2, n 2=floor (| Δ Y|/Δ L+1), revise Δ L n2=Δ Y/n 2, Δ X j=Δ L n2* Δ X/ Δ Y, Δ Y j=Δ L n2; Wherein, floor function is downward bracket function, and j is that span is [1, n 2] positive integer.
Can obtain thus next interpolated point N i(X i, Y i) coordinate figure be (X i-1+ Δ X, Y i-1+ Δ Y).
Step S202, when described trajectory planning mode be circular interpolation trajectory planning, the DSP in described motion controller carries out computing according to arc interpolation to the actual motion track of SCARA manipulator, obtain the physical coordinates of multiple interpolated points in the actual motion track of SCARA manipulator, carry out afterwards S204.
Embodiment further, as shown in Figure 5, the idiographic flow that described step S202 carries out circular interpolation comprises:
Step S2021, described DSP obtain the starting point coordinate (X in described kinematic parameter a,, Y a), terminal point coordinate (X b, Y b), central coordinate of circle (X o, Y o), circular interpolation accuracy value dfstep and circular interpolation direction;
Step S2022, according to starting point coordinate (X a,, Y a), terminal point coordinate (X b, Y b), central coordinate of circle (X o, Y o) and circular interpolation orientation determination radius R, starting point angle terminal angle and terminal angle and starting point angle is poor and according to calculate circular interpolation times N, and according to calculate current circular interpolation precision Dfstep, according to determine the abscissa of N interpolated point in actual motion track, according to determine the ordinate of N interpolated point in actual motion track; Wherein, floor function is downward bracket function, and m is that span is the positive integer of [1, N].
In order to further illustrate the idiographic flow of above-mentioned circular interpolation, now illustrate by an example.As shown in Figure 6, it is circular interpolation schematic diagram of the present invention, supposes to be provided with circular arc, and A (X a, Y a) and B (X b, Y b) be two points on circular arc, known A point, B point, and center of circle O point (X o, Y o).Move from A point to B point in the mode of circular interpolation (dfstep=0.1 radian), need to consider A, 2 quadrants of living in rectangular coordinate system of B, when Practical Calculation, be divided into following four kinds of situations:
(1) in the time that A, B are positioned at first quartile:
The angle that starting point A is ordered is &phi; a = arctan ( Y a - Y o X a - X o ) * 180 / pi ;
The angle that terminal B is ordered is &phi; b = arctan ( Y b - Y o X b - X o ) * 180 / pi ;
(2) in the time that A, B are positioned at the second quadrant:
The angle that starting point A is ordered is &phi; a = 180 + arctan ( Y a - Y o X a - X o ) * 180 / pi ;
The angle that terminal B is ordered is &phi; b = 180 + arctan ( Y b - Y o X b - X o ) * 180 / pi ;
(3) in the time that A, B are positioned at third quadrant:
The angle that starting point A is ordered is &phi; a = 180 + arctan ( Y a - Y o X a - X o ) * 180 / pi ;
The angle that terminal B is ordered is &phi; b = 180 + arctan ( Y b - Y o X b - X o ) * 180 / pi ;
(4) in the time that A, B are positioned at fourth quadrant:
The angle that starting point A is ordered is &phi; a = 360 + arctan ( Y a - Y o X a - X o ) * 180 / pi ;
The angle that terminal B is ordered is &phi; b = 360 + arctan ( Y b - Y o X b - X o ) * 180 / pi ;
In the time of arbitrary quadrant in above-mentioned quadrant of A, B, its radius is:
R = ( X a - X o ) 2 + ( Y a - Y o ) 2 ;
In the time that A is clockwise direction circular arc to the circular arc of B, and φ bawhen < 0, Δ φ=φ ba; In the time that A is clockwise direction circular arc to the circular arc of B, and φ bawhen > 0, Δ φ=-(360-φ b+ φ a); In the time that A is counter clockwise direction circular arc to the circular arc of B, and φ bawhen > 0, Δ φ=φ ba; In the time that A is counter clockwise direction circular arc to the circular arc of B, and φ bawhen < 0, Δ φ=360+ φ ba.
When having obtained starting point coordinate (X a,, Y a), terminal point coordinate (X b,, Y b), central coordinate of circle (X o, Y o), radius R, starting point angle terminal angle and terminal angle and starting point angle is poor after, can be by the interpolation number of times of needs calculate circular interpolation times N.Now need to revise and according to determine the abscissa of N interpolated point in actual motion track, according to determine the ordinate of N interpolated point in actual motion track; Wherein, floor function is downward bracket function, and m is that span is the positive integer of [1, N].
Step S203, when described trajectory planning mode be that smooth track planning is caught in flight, the DSP in described motion controller catches smoothing algorithm according to flight the actual motion track of SCARA manipulator is carried out to computing, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, performs step S204 afterwards;
Step S204, described DSP transform the physical coordinates of described multiple interpolated points the corner of the corresponding large forearm of SCARA manipulator, and calculate the speed of multiple interpolated points according to predetermined step curve acceleration and deceleration method.
In embodiments of the invention, as shown in Fig. 7 a and Fig. 7 b, it is respectively top view and the side view of the manipulator of SCARA described in the present invention, and Fig. 7 a is placed in plane right-angle coordinate by SCARA and has marked SCARA manipulator large arm brachium L1 and forearm brachium L2, the large spacing scope (A2 of arm, and the spacing scope of forearm (A4, A3) A1).
In step S204, need the physical coordinates of the multiple interpolated points that obtain by interpolation algorithm to be converted into polar coordinates, be also converted into the corner of the large forearm of SCARA manipulator.Be converted into polar idiographic flow in order to further illustrate above-mentioned physical coordinates, now illustrate by an example.
As shown in Figure 8, the schematic diagram of its large forearm angle that is SCARA manipulator physical coordinates of the present invention.As shown in Figure 8, known A, B 2 points, SCARA manipulator need to run to B point from A point, the brachium of its large arm, forearm is respectively L1, L2, when the forearm end of SCARA is during in starting point A, the large initial corner ∠ of arm XOI, the initial corner of forearm are ∠ FIA, are positive direction counterclockwise in this definition,, under right arm pattern, large arm angle is that ∠ XOJ, forearm angle are ∠ GJB; Under left arm pattern, large arm angle is that ∠ XOK, forearm angle are ∠ HKB.In Fig. 8 B1, B2, B3 and B4 represent respectively terminal point coordinate B at first quartile the identifier to fourth quadrant, in like manner G1, G2, G3 and G4 respectively denotation coordination point G at first quartile the identifier to fourth quadrant, H1, H2, H3 and H4 difference denotation coordination point H be the identifier to fourth quadrant at first quartile, J1, J2, J3 and J4 difference denotation coordination point J be the identifier to fourth quadrant at first quartile, and K1, K2, K3 and K4 difference denotation coordination point K be the identifier to fourth quadrant at first quartile.
In embodiments of the invention, determine that according to physical coordinates the first step of the corner of large forearm is according to the judgement of ∠ FIA angle, current left arm or the right arm state of being in, ∠ FIA angle can directly be read by location counter.In the time that IA line is positioned at FI line right side, be right arm pattern, be left arm pattern in the time that IA line is positioned at FI line left side.Second step is according to B point position (X b, Y b) and new left and right arms mode computation pI=3.1415926, will be divided into B in four kinds of situations of first quartile-fourth quadrant in calculating formula:
(a) when B point is during at first quartile:
Right arm pattern:
&angle; G 1 J 1 B 1 = - ( arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI + arccos ( L 2 2 + L 3 2 - L 1 2 2 * L 2 * L 3 ) * 180 / PI ) &angle; J 1 OX = arctan ( y b x b ) * 180 / PI + arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI
Left arm pattern:
&angle; H 1 K 1 B 1 = arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI + arccos ( L 2 2 + L 3 2 - L 1 2 2 * L 2 * L 3 ) * 180 / PI &angle; H 1 OX = arctan ( y b x b ) * 180 / PI - arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI
(b) when B o'clock during at the second quadrant:
Right arm pattern:
&angle; G 2 J 2 B 2 = - ( arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI + arccos ( L 2 2 + L 3 2 - L 1 2 2 * L 2 * L 3 ) * 180 / PI ) &angle; J 2 OX = 180 + arctan ( y b x b ) * 180 / PI + arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI
Left arm pattern:
&angle; H 2 K 2 B 2 = arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI + arccos ( L 2 2 + L 3 2 - L 1 2 2 * L 2 * L 3 ) * 180 / PI &angle; H 2 OX = 180 + arctan ( y b x b ) * 180 / PI - arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI
(c) when B point is during at third quadrant:
Right arm pattern:
&angle; G 3 J 3 B 3 = - ( arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI + arccos ( L 2 2 + L 3 2 - L 1 2 2 * L 2 * L 3 ) * 180 / PI ) &angle; J 3 OX = 180 + arctan ( y b x b ) * 180 / PI + arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI
Left arm pattern:
&angle; H 3 K 3 B 3 = arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI + arccos ( L 2 2 + L 3 2 - L 1 2 2 * L 2 * L 3 ) * 180 / PI &angle; H 3 OX = 180 + arctan ( y b x b ) * 180 / PI - arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI
(d) when B point is during in fourth quadrant:
Right arm pattern:
&angle; G 4 J 4 B 4 = - ( arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI + arccos ( L 2 2 + L 3 2 - L 1 2 2 * L 2 * L 3 ) * 180 / PI ) &angle; J 4 OX = arctan ( y b x b ) * 180 / PI + arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI
Left arm pattern:
&angle; H 4 K 4 B 4 = arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI + arccos ( L 2 2 + L 3 2 - L 1 2 2 * L 2 * L 3 ) * 180 / PI &angle; H 4 OX = arctan ( y b x b ) * 180 / PI - arccos ( L 1 2 + L 3 2 - L 2 2 2 * L 1 * L 3 ) * 180 / PI
Wherein, the large arm angle in fourth quadrant is negative angle, has spacing (0, A1) at third quadrant SCARA, cannot directly forward fourth quadrant to by third quadrant, must be through the second quadrant position, then first quartile position arrives.
From above-mentioned condition, if large arm forearm move angle is Δ α, Δ β:
Right arm pattern: &Delta;&alpha; = &angle; G n OX - &angle; FOX &Delta;&beta; = &angle; G n J n B n - &angle; FIA , ( n = 1,2,3,4 )
Left arm pattern: &Delta;&alpha; = &angle; H n OX - &angle; FOX &Delta;&beta; = &angle; H n K n B n - &angle; FIA , ( n = 1,2,3,4 )
Obtain the anglec of rotation of ordering with respect to A, if B point at first quartile; n=1; N=2 of the second quadrant; Third quadrant is n=3; Fourth quadrant is n=4; Δ α, Δ β is on the occasion of being rotated counterclockwise, for negative value turns clockwise.
In step S204, except the physical coordinates of the multiple interpolated points in actual motion track being converted into the large forearm corner of SCARA manipulator, also need to obtain the speed at each interpolated point place.In embodiments of the invention, calculate the speed of multiple interpolated points by a predetermined step curve acceleration and deceleration method, this algorithm is based on PCL6045 motion control chip, use three grades of caching functions on chip, while writing an interpolation position, can fill in the speed of this interpolation displacement at every turn simultaneously.Little line segment structure information is as follows:
typedef?struct
{
LgInt xl; //x deposits magnifying arm relative position, has been converted into number of pulses
LgInt yl; //y deposits forearm relative position, has been converted into number of pulses
LgInt speed; // speed
}TRunCode;
Acceleration and deceleration step number, by setting parameter (accnum, decnum), can calculate every speed that little line segment is corresponding.When acceleration, each speed value added is accvalue=(MaxVel-StrVel)/accnum; When deceleration, each speed minimizing value is decvalue=(MaxVel-StrVel)/decnum; Wherein MaxVel represents maximal rate, and StrVel represents starting velocity.If total little line segment has m bar, under current little line segment, be designated as n:
When, when n+decnum > m, slow down, V n=V n-1-decvalue, is decelerated to initial velocity;
When, when n+decnum <=m, and n < accnum, accelerate V n=V n-1+ accvalue, accelerates to maximal rate;
In other situations, be at the uniform velocity, and V n=V n-1.
Corner and the speed of the large forearm of SCARA manipulator corresponding described multiple interpolated points are sent to the motion control chip in described motion controller by step S205, described DSP, and motion control chip is according to the corner of the large forearm of described SCARA manipulator and speed control SCARA robot movement.
With a specific embodiment, the flight capture movement method for planning track based on SCARA manipulator of the present invention is described below.
The predetermined path of movement of supposing SCARA manipulator is two sections of movement locus of SCARA as shown in Figure 9, Figure 10 is the corner partial enlarged drawing of Fig. 9, between two track AB and BC, there is turning point as can be seen from Figure 9, in the time of operation, can there is large corner in SCARA, make machine produce vibrations, mechanical component is produced to wearing and tearing.The track that then SCARA orders to C through B trigger point from A point.What basic motion control chip adopted is interpolation mode operation, be that A moves according to linear interpolation mode to B point motion control chip, but it is upper for track is as shown in Figure 9 (due to SCARA frame for movement to embody SCARA, motion control chip adopts interpolation mode operation, but movement locus is but curve).As requested, at B point, SCARA reruns after can not stopping.If do not carry out smoothing algorithm, just there will be large corner, there will be mechanical oscillation at B point, the track after optimizing is as shown in figure 11.
Refer to Figure 12, the vector change algorithm figure that it is movement locus.AB, BC straight line are subdivided into according to speed planning, are divided into T=8 section in this acquiescence, every period is the unit interval, and increasing T can increase the smoothness of track.In the time of A point, direction speed scalar is V max, direction speed scalar is 0, in the time of C point, direction speed scalar is V max. direction speed scalar is reduced to 0 gradually; direction speed scalar is increased to gradually as V max.According to displacement formula S=aT 2/ 2, can ask acceleration a=2 × S/T 2,
S A1A2=0.5*a*T 8 2-0.5*a*T 7 2
S A2A3=0.5*a*T 7 2-0.5*a*T 6 2
S A3A4=0.5*a*T 6 2-0.5*a*T 5 2
S A4A5=0.5*a*T 5 2-0.5*a*T 4 2
S A5A6=0.5*a*T 4 2-0.5*a*T 3 2
S A6A7=0.5*a*T 3 2-0.5*a*T 2 2
S A7A8=0.5*a*T 2 2-0.5*a*T 1 2
S a8A9=0.5*a*T 1 2, acceleration direction is contrary with direction of displacement herein;
S C8C9=0.5*a*T 8 2-0.5*a*T 7 2
S C7C8=0.5*a*T 7 2-0.5*a*T 6 2
S C6C7=0.5*a*T 6 2-0.5*a*T 5 2
S C5C6=0.5*a*T 5 2-0.5*a*T 4 2
S C4C5=0.5*a*T 4 2-0.5*a*T 3 2
S C3C4=0.5*a*T 3 2-0.5*a*T 2 2
S C2C3=0.5*a*T 2 2-0.5*a*T 1 2
S c1C2=0.5*a*T 1 2, acceleration direction is identical with direction of displacement herein;
T in formula i=i, i ∈ [1,8], due to so coordinate points P 2 = A 1 A 2 &RightArrow; + C 1 C 2 &RightArrow; + P 1
In like manner:
P 3 = A 2 A 3 &RightArrow; + C 2 C 3 &RightArrow; + P 2 ;
P 4 = A 3 A 4 &RightArrow; + C 3 C 4 &RightArrow; + P 3 ;
P 5 = A 4 A 5 &RightArrow; + C 4 C 5 &RightArrow; + P 4 ;
P 6 = A 5 A 6 &RightArrow; + C 5 C 6 &RightArrow; + P 5 ;
P 7 = A 6 A 7 &RightArrow; + C 6 C 7 &RightArrow; + P 6 ;
P 8 = A 7 A 8 &RightArrow; + C 7 C 8 &RightArrow; + P 7 ;
So can calculate P mpoint position,, is subdivided into by P to two sections of tracks of BC by AB 1, P 2, P 3, P 4, P 5, P 6, P 7, P 8, P 9the track of nine some compositions.The analog track figure being obtained from Figure 12, can realize seamlessly transitting of angle, obtain after coordinate, can to polar conversion method, physical coordinates be converted to large forearm corner data according to physical coordinates in the present invention, and then send in the middle of motion control chip.
Based on above-described embodiment, the present invention also provides a kind of movement locus planning system based on SCARA manipulator, and as shown in figure 13, the described movement locus planning system based on SCARA manipulator, comprising:
Module 100 is set, receive user's operational order for host computer, the trajectory planning mode of SCARA manipulator and the kinematic parameter corresponding with described trajectory planning mode are set, and described trajectory planning mode and described kinematic parameter are sent to the motion controller of SCARA manipulator; As detailed above.
Track obtains and sending module 200, according to algorithm corresponding to described trajectory planning mode, the actual motion track of SCARA manipulator is carried out to computing for described motion controller, obtain the actual motion trace information of SCARA manipulator, and described actual motion trace information is sent to SCARA manipulator; As detailed above.
Receive and motion module 300, receive described actual motion trace information for described SCARA manipulator, and move according to described actual motion trace information; As detailed above.
When concrete enforcement, module 100 is set and is arranged in host computer; Track obtains and sending module 200 is arranged in motion controller, and wherein motion controller mainly comprises dsp processor and motion control chip PCL6045BL; Reception and motion module 300 are arranged in SCARA manipulator.
Embodiment further, in the described movement locus planning system based on SCARA manipulator, the described described trajectory planning mode arranging in module is that smooth track planning is caught in linear interpolation trajectory planning, circular interpolation trajectory planning and flight; As detailed above.
Embodiment further, in the described movement locus planning system based on SCARA manipulator, described track obtain and sending module in the time that described trajectory planning mode is linear interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate and interpolation precision value; In the time that described trajectory planning mode is circular interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate, central coordinate of circle, circular interpolation accuracy value and circular interpolation direction; When described trajectory planning mode is that smooth track when planning is caught in flight, described kinematic parameter comprises starting point coordinate, trigger point coordinate, terminal point coordinate, triggering pulsewidth and smoothness.
Embodiment further; in the described movement locus planning system based on SCARA manipulator; described track obtains and sending module 200 specifically comprises that linear interpolation unit, circular interpolation unit, flight catches smooth unit, tarnsition velocity acquiring unit and transmitting element, wherein:
Described linear interpolation unit, linear interpolation trajectory planning for working as described trajectory planning mode, the DSP in described motion controller carries out computing according to linear interpolation algorithm to the actual motion track of SCARA manipulator, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, starts described tarnsition velocity acquiring unit afterwards; As detailed above.
Described circular interpolation unit, circular interpolation trajectory planning for working as described trajectory planning mode, the DSP in described motion controller carries out computing according to arc interpolation to the actual motion track of SCARA manipulator, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, starts described tarnsition velocity acquiring unit afterwards; As detailed above.
Smooth unit is caught in described flight, that smooth track planning is caught in flight for working as described trajectory planning mode, the DSP in described motion controller catches smoothing algorithm according to flight the actual motion track of SCARA manipulator is carried out to computing, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, starts described tarnsition velocity acquiring unit afterwards; As detailed above.
Described tarnsition velocity acquiring unit, transforms the physical coordinates of described multiple interpolated points for described DSP the corner of the corresponding large forearm of SCARA manipulator, and calculates the speed of multiple interpolated points according to predetermined step curve acceleration and deceleration method; As detailed above.
Described transmitting element, the motion control chip that for described DSP, the corner of the large forearm of SCARA manipulator corresponding described multiple interpolated points and speed is sent to described motion controller, motion control chip is according to the corner of the large forearm of described SCARA manipulator and speed control SCARA robot movement; As detailed above.
Embodiment further, in the described movement locus planning system based on SCARA manipulator, described linear interpolation unit specifically comprises that first obtains subelement, the first judgment sub-unit, the first linear interpolation subelement and the second linear interpolation subelement, wherein:
First obtains subelement, obtains the starting point coordinate (X of described kinematic parameter for described DSP 0, Y 0), terminal point coordinate (X e, Y e) and interpolation precision value Δ L, and respectively according to Δ X=X e-X 0with Δ Y=Y e-Y 0obtain horizontal spacing Δ X and the longitudinal pitch Δ Y of terminal point coordinate and starting point coordinate; As detailed above.
The first judgment sub-unit, for judgement | whether Δ X| is more than or equal to | and Δ Y| starts the first linear interpolation subelement, the second linear interpolation subelement in the time being less than in the time being more than or equal to; As detailed above.
The first linear interpolation subelement, for according to n 1=floor (| Δ X|/Δ L+1) calculating the first interpolation frequency n 1, and according to Δ L n1=Δ X/n 1calculate current the first interpolation precision Δ L n1, and according to Δ X i=Δ L n1determine the first horizontal increment Delta X i, according to Δ Y i=Δ L n1* Δ Y/ Δ X determines first longitudinal increment Delta Y i, according to X i=X i-1+ Δ X idetermine n in actual motion track 1the abscissa of individual interpolated point, according to Y i=Y i-1+ Δ Y idetermine n in actual motion track 1the ordinate of individual interpolated point; Wherein, floor function is downward bracket function, and i is that span is [1, n 1] positive integer; As detailed above.
The second linear interpolation subelement, for according to n 2=floor (| Δ Y|/Δ L+1) calculating the second interpolation frequency n 2, and according to Δ L n2=Δ Y/n 2calculate current the second interpolation precision Δ L n2, and according to Δ X j=Δ L n2* Δ X/ Δ Y determines the second horizontal increment Delta X j, according to Δ Y j=Δ L n2determine second longitudinal increment Delta Y j, according to X j=X j-1+ Δ X jdetermine n in actual motion track 2the abscissa of individual interpolated point, according to Y j=Y j-1+ Δ Y jdetermine n in actual motion track 2the ordinate of individual interpolated point; Wherein, floor function is downward bracket function, and j is that span is [1, n 2] positive integer; As detailed above.
Embodiment further, in the described movement locus planning system based on SCARA manipulator, described circular interpolation unit specifically comprises that second obtains subelement and circular interpolation subelement, wherein:
Described second obtains subelement, obtains the starting point coordinate (X of described kinematic parameter for described DSP a,, Y a), terminal point coordinate (X b, Y b), central coordinate of circle (X o, Y o), circular interpolation accuracy value dfstep and circular interpolation direction; As detailed above.
Described circular interpolation subelement, for according to starting point coordinate (X a,, Y a), terminal point coordinate (X b, Y b), central coordinate of circle (X o, Y o) and circular interpolation orientation determination radius R, starting point angle and terminal angle and terminal angle and starting point angle is poor and according to calculate circular interpolation times N, and according to calculate current circular interpolation precision Dfstep, according to determine the abscissa of N interpolated point in actual motion track, according to determine the ordinate of N interpolated point in actual motion track; Wherein, floor function is downward bracket function, and m is that span is the positive integer of [1, N]; As detailed above.
In sum, a kind of motion trail planning method and system based on SCARA manipulator provided by the present invention, method comprises: host computer receives user's operational order, the trajectory planning mode of SCARA manipulator and the kinematic parameter corresponding with described trajectory planning mode are set, and described trajectory planning mode and described kinematic parameter are sent to the motion controller of SCARA manipulator; Described motion controller carries out computing according to algorithm corresponding to described trajectory planning mode to the actual motion track of SCARA manipulator, obtains the actual motion trace information of SCARA manipulator, and described actual motion trace information is sent to SCARA manipulator; Described SCARA manipulator receives described actual motion trace information, and moves according to described actual motion trace information.The present invention has linear interpolation, circular interpolation, and flight catches three kinds of different motion Trajectory Arithmetics, calculates respectively movement locus interpolated point data separately, and each interpolated point packet, containing position data and speed data, has response fast, the high feature of precision.
Should be understood that, application of the present invention is not limited to above-mentioned giving an example, and for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. the motion trail planning method based on SCARA manipulator, is characterized in that, described method comprises step:
A, host computer receive user's operational order, and the trajectory planning mode of SCARA manipulator and the kinematic parameter corresponding with described trajectory planning mode are set, and described trajectory planning mode and described kinematic parameter are sent to the motion controller of SCARA manipulator;
B, described motion controller carry out computing according to algorithm corresponding to described trajectory planning mode to the actual motion track of SCARA manipulator, obtain the actual motion trace information of SCARA manipulator, and described actual motion trace information is sent to SCARA manipulator;
C, described SCARA manipulator receive described actual motion trace information, and move according to described actual motion trace information.
2. the motion trail planning method based on SCARA manipulator according to claim 1, is characterized in that, the described trajectory planning mode in described steps A is that smooth track planning is caught in linear interpolation trajectory planning, circular interpolation trajectory planning and flight.
3. the motion trail planning method based on SCARA manipulator according to claim 2, it is characterized in that, in described steps A, in the time that described trajectory planning mode is linear interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate and interpolation precision value; In the time that described trajectory planning mode is circular interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate, central coordinate of circle, circular interpolation accuracy value and circular interpolation direction; When described trajectory planning mode is that smooth track when planning is caught in flight, described kinematic parameter comprises starting point coordinate, trigger point coordinate, terminal point coordinate, triggering pulsewidth and smoothness.
4. the motion trail planning method based on SCARA manipulator according to claim 3, is characterized in that, in described step B, specifically comprises:
B1, when described trajectory planning mode be linear interpolation trajectory planning, the DSP in described motion controller carries out computing according to linear interpolation algorithm to the actual motion track of SCARA manipulator, obtain the physical coordinates of multiple interpolated points in the actual motion track of SCARA manipulator, carry out afterwards B4;
B2, when described trajectory planning mode be circular interpolation trajectory planning, the DSP in described motion controller carries out computing according to arc interpolation to the actual motion track of SCARA manipulator, obtain the physical coordinates of multiple interpolated points in the actual motion track of SCARA manipulator, carry out afterwards B4;
B3, when described trajectory planning mode be that smooth track planning is caught in flight, the DSP in described motion controller catches smoothing algorithm according to flight the actual motion track of SCARA manipulator is carried out to computing, obtain the physical coordinates of multiple interpolated points in the actual motion track of SCARA manipulator, carry out afterwards B4;
B4, described DSP are converted into the physical coordinates of described multiple interpolated points the corner of the corresponding large forearm of SCARA manipulator, and calculate the speed of multiple interpolated points according to predetermined step curve acceleration and deceleration method;
Corner and the speed of the large forearm of SCARA manipulator corresponding described multiple interpolated points are sent to the motion control chip in described motion controller by B5, described DSP, and motion control chip is according to the corner of the large forearm of described SCARA manipulator and speed control SCARA robot movement.
5. the motion trail planning method based on SCARA manipulator according to claim 4, is characterized in that, described step B1 specifically comprises:
B11, described DSP obtain the starting point coordinate (X in described kinematic parameter 0, Y 0), terminal point coordinate (X e, Y e) and interpolation precision value Δ L, and respectively according to Δ X=X e-X 0with Δ Y=Y e-Y 0obtain horizontal spacing Δ X and the longitudinal pitch Δ Y of terminal point coordinate and starting point coordinate;
B12, judgement | whether Δ X| is more than or equal to | Δ Y|, in the time being more than or equal to, perform step B13, in the time being less than, perform step B14;
B13, according to n 1=floor (| Δ X|/Δ L+1) calculating the first interpolation frequency n 1, and according to Δ L n1=Δ X/n 1calculate current the first interpolation precision Δ L n1, and according to Δ X i=Δ L n1determine the first horizontal increment Delta X i, according to Δ Y i=Δ L n1* Δ Y/ Δ X determines first longitudinal increment Delta Y i, according to X i=X i-1+ Δ X idetermine n in actual motion track 1the abscissa of individual interpolated point, according to Y i=Y i-1+ Δ Y idetermine n in actual motion track 1the ordinate of individual interpolated point; Wherein, floor function is downward bracket function, and i is that span is [1, n 1] positive integer;
B14, according to n 2=floor (| Δ Y|/Δ L+1) calculating the second interpolation frequency n 2, and according to Δ L n2=Δ Y/n 2calculate current the second interpolation precision Δ L n2, and according to Δ X j=Δ L n2* Δ X/ Δ Y determines the second horizontal increment Delta X j, according to Δ Y j=Δ L n2determine second longitudinal increment Delta Y j, according to X j=X j-1+ Δ X jdetermine n in actual motion track 2the abscissa of individual interpolated point, according to Y j=Y j-1+ Δ Y jdetermine n in actual motion track 2the ordinate of individual interpolated point; Wherein, floor function is downward bracket function, and j is that span is [1, n 2] positive integer.
6. the motion trail planning method based on SCARA manipulator according to claim 4, is characterized in that, described step B2 specifically comprises:
B21, described DSP obtain the starting point coordinate (X in described kinematic parameter a,, Y a), terminal point coordinate (X b, Y b), central coordinate of circle (X o, Y o), circular interpolation accuracy value dfstep and circular interpolation direction;
B22, according to starting point coordinate (X a,, Y a), terminal point coordinate (X b, Y b), central coordinate of circle (X o, Y o) and circular interpolation orientation determination radius R, starting point angle terminal angle and terminal angle and starting point angle is poor and according to calculate circular interpolation times N, and according to calculate current circular interpolation precision Dfstep, according to determine the abscissa of N interpolated point in actual motion track, according to determine the ordinate of N interpolated point in actual motion track; Wherein, floor function is downward bracket function, and m is that span is the positive integer of [1, N].
7. the movement locus planning system based on SCARA manipulator, is characterized in that, comprising:
Module is set, receive user's operational order for host computer, the trajectory planning mode of SCARA manipulator and the kinematic parameter corresponding with described trajectory planning mode are set, and described trajectory planning mode and described kinematic parameter are sent to the motion controller of SCARA manipulator;
Track obtains and sending module, according to algorithm corresponding to described trajectory planning mode, the actual motion track of SCARA manipulator is carried out to computing for described motion controller, obtain the actual motion trace information of SCARA manipulator, and described actual motion trace information is sent to SCARA manipulator;
Receive and motion module, receive described actual motion trace information for described SCARA manipulator, and move according to described actual motion trace information.
8. the movement locus planning system based on SCARA manipulator according to claim 7, is characterized in that, the described described trajectory planning mode arranging in module is that smooth track planning is caught in linear interpolation trajectory planning, circular interpolation trajectory planning and flight.
9. the movement locus planning system based on SCARA manipulator according to claim 8, it is characterized in that, described track obtain and sending module in the time that described trajectory planning mode is linear interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate and interpolation precision value; In the time that described trajectory planning mode is circular interpolation trajectory planning, described kinematic parameter comprises starting point coordinate, terminal point coordinate, central coordinate of circle, circular interpolation accuracy value and circular interpolation direction; When described trajectory planning mode is that smooth track when planning is caught in flight, described kinematic parameter comprises starting point coordinate, trigger point coordinate, terminal point coordinate, triggering pulsewidth and smoothness.
10. the movement locus planning system based on SCARA manipulator according to claim 9; it is characterized in that; described track obtains and sending module specifically comprises that linear interpolation unit, circular interpolation unit, flight catches smooth unit, tarnsition velocity acquiring unit and transmitting element, wherein:
Described linear interpolation unit, linear interpolation trajectory planning for working as described trajectory planning mode, the DSP in described motion controller carries out computing according to linear interpolation algorithm to the actual motion track of SCARA manipulator, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, starts described tarnsition velocity acquiring unit afterwards;
Described circular interpolation unit, circular interpolation trajectory planning for working as described trajectory planning mode, the DSP in described motion controller carries out computing according to arc interpolation to the actual motion track of SCARA manipulator, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, starts described tarnsition velocity acquiring unit afterwards;
Smooth unit is caught in described flight, that smooth track planning is caught in flight for working as described trajectory planning mode, the DSP in described motion controller catches smoothing algorithm according to flight the actual motion track of SCARA manipulator is carried out to computing, the physical coordinates that obtains multiple interpolated points in the actual motion track of SCARA manipulator, starts described tarnsition velocity acquiring unit afterwards;
Described tarnsition velocity acquiring unit, transforms the physical coordinates of described multiple interpolated points for described DSP the corner of the corresponding large forearm of SCARA manipulator, and calculates the speed of multiple interpolated points according to predetermined step curve acceleration and deceleration method;
Described transmitting element, the motion control chip that for described DSP, the corner of the large forearm of SCARA manipulator corresponding described multiple interpolated points and speed is sent to described motion controller, motion control chip is according to the corner of the large forearm of SCARA manipulator and speed control SCARA robot movement.
CN201410427532.3A 2014-08-27 2014-08-27 A kind of motion trail planning method based on SCARA manipulator and system Active CN104191428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410427532.3A CN104191428B (en) 2014-08-27 2014-08-27 A kind of motion trail planning method based on SCARA manipulator and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410427532.3A CN104191428B (en) 2014-08-27 2014-08-27 A kind of motion trail planning method based on SCARA manipulator and system

Publications (2)

Publication Number Publication Date
CN104191428A true CN104191428A (en) 2014-12-10
CN104191428B CN104191428B (en) 2016-04-27

Family

ID=52076875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410427532.3A Active CN104191428B (en) 2014-08-27 2014-08-27 A kind of motion trail planning method based on SCARA manipulator and system

Country Status (1)

Country Link
CN (1) CN104191428B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104827481A (en) * 2015-04-29 2015-08-12 东莞市智捷自动化设备有限公司 Method for controlling SCARA (selective compliance assembly robot arm) based on movement controller
CN105082135A (en) * 2015-09-11 2015-11-25 东南大学 Speed control method for inching operation of robot
CN105082156A (en) * 2015-08-12 2015-11-25 珞石(北京)科技有限公司 Space trajectory smoothing method based on speed optimum control
CN105988420A (en) * 2015-02-06 2016-10-05 北京朗信传动与控制技术有限公司 Manipulator double shaft track interpolation algorithm
CN106444625A (en) * 2016-09-18 2017-02-22 合肥工业大学 Cutter head servo control method and cutter head servo control device for glass cutting machine
CN106959694A (en) * 2017-04-19 2017-07-18 广州视源电子科技股份有限公司 robot linear motion control method and system
CN108648208A (en) * 2018-05-14 2018-10-12 西安工程大学 A kind of embedded cut-parts lacing film robot control system and robot control method
CN109407621A (en) * 2018-01-30 2019-03-01 武汉呵尔医疗科技发展有限公司 S type acceleration and deceleration motion control method in a kind of sampling mechanical arm interpolation
CN110253578A (en) * 2019-06-21 2019-09-20 广东工业大学 SCARA robot and its motion control method, system and associated component
CN110286652A (en) * 2019-06-19 2019-09-27 四川轻化工大学 A kind of control system method based on H-BOT structure
CN110488758A (en) * 2019-08-09 2019-11-22 南京埃斯顿自动化股份有限公司 A kind of track transition method based on PLCopen specification
CN110893621A (en) * 2019-12-16 2020-03-20 华南理工大学广州学院 Control system and control method of intelligent remote control writing robot
CN111176482A (en) * 2019-12-12 2020-05-19 珠海博杰电子股份有限公司 Circular arc track interpolation method
CN111267093A (en) * 2019-11-05 2020-06-12 广州霞光技研有限公司 Method for realizing continuous track control of SCARA robot
CN112356036A (en) * 2020-11-23 2021-02-12 北京配天技术有限公司 SCARA robot trajectory planning method, device, equipment and storage medium
CN112894822A (en) * 2021-02-01 2021-06-04 配天机器人技术有限公司 Robot motion trajectory planning method, robot and computer storage medium
CN113428649A (en) * 2021-07-02 2021-09-24 东莞新友智能科技有限公司 Liquid crystal display carrying manipulator execution tail end and anti-collision method thereof
CN117270461A (en) * 2023-11-23 2023-12-22 深圳市杰美康机电有限公司 Processing track control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5811951A (en) * 1996-10-14 1998-09-22 Regents Of The University Of California High precision redundant robotic manipulator
US6023645A (en) * 1997-05-15 2000-02-08 Mitsubishi Denki Kabushiki Kaisha Trajectory control apparatus and trajectory control method for intra-planar multifreedom SCARA type of robot, and computer-readable recording medium with trajectory control program for intra-planar multifreedom SCARA type of robot stored therein
JP2012196749A (en) * 2011-03-23 2012-10-18 Seiko Epson Corp Robot device
WO2013033289A1 (en) * 2011-09-02 2013-03-07 Brooks Automation, Inc. Time-optimal trajectories for robotic transfer devices
CN103454979A (en) * 2013-09-11 2013-12-18 大连理工计算机控制工程有限公司 Quick variable-speed curve circular interpolation method packaged into PLCopen instruction
CN103676787A (en) * 2013-12-13 2014-03-26 大连理工计算机控制工程有限公司 Circle center mode space circular interpolation method applied to motion control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5811951A (en) * 1996-10-14 1998-09-22 Regents Of The University Of California High precision redundant robotic manipulator
US6023645A (en) * 1997-05-15 2000-02-08 Mitsubishi Denki Kabushiki Kaisha Trajectory control apparatus and trajectory control method for intra-planar multifreedom SCARA type of robot, and computer-readable recording medium with trajectory control program for intra-planar multifreedom SCARA type of robot stored therein
JP2012196749A (en) * 2011-03-23 2012-10-18 Seiko Epson Corp Robot device
WO2013033289A1 (en) * 2011-09-02 2013-03-07 Brooks Automation, Inc. Time-optimal trajectories for robotic transfer devices
CN103454979A (en) * 2013-09-11 2013-12-18 大连理工计算机控制工程有限公司 Quick variable-speed curve circular interpolation method packaged into PLCopen instruction
CN103676787A (en) * 2013-12-13 2014-03-26 大连理工计算机控制工程有限公司 Circle center mode space circular interpolation method applied to motion control system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘磊: "SCARA型四自由度机械臂轨迹规划算法的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 6, 15 June 2014 (2014-06-15), pages 140 - 288 *

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988420A (en) * 2015-02-06 2016-10-05 北京朗信传动与控制技术有限公司 Manipulator double shaft track interpolation algorithm
CN105988420B (en) * 2015-02-06 2019-04-05 北京朗信智能科技有限公司 A kind of manipulator twin shaft track interpolation
CN104827481A (en) * 2015-04-29 2015-08-12 东莞市智捷自动化设备有限公司 Method for controlling SCARA (selective compliance assembly robot arm) based on movement controller
CN105082156A (en) * 2015-08-12 2015-11-25 珞石(北京)科技有限公司 Space trajectory smoothing method based on speed optimum control
CN105082156B (en) * 2015-08-12 2017-04-12 珞石(北京)科技有限公司 Space trajectory smoothing method based on speed optimum control
CN105082135A (en) * 2015-09-11 2015-11-25 东南大学 Speed control method for inching operation of robot
CN106444625A (en) * 2016-09-18 2017-02-22 合肥工业大学 Cutter head servo control method and cutter head servo control device for glass cutting machine
CN106444625B (en) * 2016-09-18 2019-03-12 合肥工业大学 A kind of the cutter head follow-up control method and its control device of glass cutting machine
CN106959694A (en) * 2017-04-19 2017-07-18 广州视源电子科技股份有限公司 robot linear motion control method and system
CN109407621A (en) * 2018-01-30 2019-03-01 武汉呵尔医疗科技发展有限公司 S type acceleration and deceleration motion control method in a kind of sampling mechanical arm interpolation
CN108648208A (en) * 2018-05-14 2018-10-12 西安工程大学 A kind of embedded cut-parts lacing film robot control system and robot control method
CN110286652A (en) * 2019-06-19 2019-09-27 四川轻化工大学 A kind of control system method based on H-BOT structure
CN110253578A (en) * 2019-06-21 2019-09-20 广东工业大学 SCARA robot and its motion control method, system and associated component
CN110488758A (en) * 2019-08-09 2019-11-22 南京埃斯顿自动化股份有限公司 A kind of track transition method based on PLCopen specification
CN111267093A (en) * 2019-11-05 2020-06-12 广州霞光技研有限公司 Method for realizing continuous track control of SCARA robot
CN111176482A (en) * 2019-12-12 2020-05-19 珠海博杰电子股份有限公司 Circular arc track interpolation method
CN110893621A (en) * 2019-12-16 2020-03-20 华南理工大学广州学院 Control system and control method of intelligent remote control writing robot
CN110893621B (en) * 2019-12-16 2021-07-30 华南理工大学广州学院 Control method of control system of intelligent remote control writing robot
CN112356036A (en) * 2020-11-23 2021-02-12 北京配天技术有限公司 SCARA robot trajectory planning method, device, equipment and storage medium
CN112894822A (en) * 2021-02-01 2021-06-04 配天机器人技术有限公司 Robot motion trajectory planning method, robot and computer storage medium
CN112894822B (en) * 2021-02-01 2023-12-15 配天机器人技术有限公司 Robot motion trail planning method, robot and computer storage medium
CN113428649A (en) * 2021-07-02 2021-09-24 东莞新友智能科技有限公司 Liquid crystal display carrying manipulator execution tail end and anti-collision method thereof
CN117270461A (en) * 2023-11-23 2023-12-22 深圳市杰美康机电有限公司 Processing track control method and device
CN117270461B (en) * 2023-11-23 2024-02-13 深圳市杰美康机电有限公司 Processing track control method and device

Also Published As

Publication number Publication date
CN104191428B (en) 2016-04-27

Similar Documents

Publication Publication Date Title
CN104191428B (en) A kind of motion trail planning method based on SCARA manipulator and system
US11325256B2 (en) Trajectory planning for path-based applications
Park et al. ITOMP: Incremental trajectory optimization for real-time replanning in dynamic environments
CN108153310B (en) Mobile robot real-time motion planning method based on human behavior simulation
CN105353725A (en) Auxiliary-point-crossing-attitude space circular interpolation method for industrial robot
US20210200219A1 (en) Robot plan online adjustment
WO2018086226A1 (en) Control method and apparatus for robotic arm
EP2022608A2 (en) Improved blending algorithm for trajectory planning
CN108568817A (en) A kind of Delta robot trajectories connection control method based on Bezier
US20210197378A1 (en) Offline robot planning with online adaptation
CN106313047A (en) Robot real-time corner transition method based on Bezier spline
CN105082134A (en) Strangeness processing method for six-freedom-degree series robot based on multiple criteria
CN110362081B (en) Mobile robot path planning method
US11559893B2 (en) Robot control for avoiding singular configurations
CN101630413B (en) Multi-robot tracked mobile target algorithm
Petrinec et al. Trajectory planning algorithm based on the continuity of jerk
KR101337650B1 (en) Realtime weaving motion control device and realtime weaving motion control method
CN107309873B (en) Mechanical arm motion control method and system
CN114274147B (en) Target tracking control method and device, mechanical arm control equipment and storage medium
CN114102606B (en) Robot motion information planning method and related device
Patle et al. Optimal trajectory planning of the industrial robot using hybrid S-curve-PSO approach
Tangpattanakul et al. Optimal trajectory of robot manipulator using harmony search algorithms
Trnka et al. Optimal motion planning of spot welding robot applications
CN115465799A (en) Tower crane control parameter adjusting method and device, calculating equipment and storage medium
Messner et al. Efficient online computation of smooth trajectories along geometric paths for robotic manipulators

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant