Summary of the invention
Technical matters to be solved by this invention is to provide a kind of robot palletizer arcuate movement Trajectory Arithmetic, reduce robot travel, make it reduce the run duration in each cycle, make its motion process more flexibly flexible simultaneously, and reduce electricity usage cost by reducing working time.
For solving the problems of the technologies described above, technical scheme of the present invention is: a kind of robot palletizer arcuate movement Trajectory Arithmetic, comprises the following steps:
(1) the coordinate P1(x1 of robot palletizer current location is set, y1, z1), the coordinate P3(x3 of target location, y3, z3), the coordinate P2(x2 of transition point, y2, z2); Coordinate points P1 is the starting point of arcuate movement track, and coordinate points P3 is the terminal of arcuate movement track, coordinate points P2(x2, y2, z2) be the transition point of coordinate points P1 to coordinate points P3; The vertical height that coordinate points P2 arrives the straight line formed by coordinate points P1, P3 is H;
(2) the coordinate P1(x1 of robot palletizer current location is obtained, y1, z1) and the coordinate P3(x3 of target location, y3, z3);
(3) robot palletizer reads the height parameter H of input, and current position coordinates P1 and target location coordinate P3 is converted into world coordinates;
(4) interim coordinate P2 is obtained by current position coordinates P1, the target location coordinate P3 after conversion and height parameter H substitution underlying algorithm function;
(5) the interim coordinate P2 asked for is converted into coordinate under world coordinate system, and is sent to application layer by interface;
(6) Circle instruction operation planning circular motion track is used at the user application layer of robot palletizer.
A plane can be determined by three dimensional space coordinate point, this plane plans a circular curve.Such as P1(x1, y1, z1), P2 (x2, y2, z2), P3 (x3, y3, z3), if the coordinate of known three points, if three points not point-blank then can algorithm simultaneously through the space circular arc of three points, P2 point is transition point, P1 is starting point, P3 point is terminating point, and the direction of motion of arc track is by P1 through P2 to P3, and the circular arc center of circle that angle becomes according to three-point shape is tried to achieve to the vector of unit length dot product of P1 and P3.Capture some P1 during onsite application robot palletizer known, set-point P3 is known, will arrive according to P2 the coordinate that the vertical height H of straight line that P1P3 formed asks for P2 point now.Then according to the coordinate planning parabolic path of P1, P2, P3 point, the track of the Circle instruction operation planning of robot is used.
As improvement, in described step (4), underlying algorithm function f unction P2=FuncSolve(P1, P3, h), obtain middle coordinate according to P1, P3 point: dist=(P1+P3)/2; Dist comprises three element dist(1) X-axis coordinate, dist(2) Y-axis coordinate, dist(3) Z axis coordinate; Robot palletizer the 4th axle is perpendicular to surface level, the parabolic path that TCP runs is perpendicular to XOY plane, suppose that a side vector perpendicular to this plane is (1, k, 0), then k=(P1 (1) – P3 (1))/(P3 (2)-P1 (2)); And then ask for P2 (2) the i.e. coordinate of intermediate point Y-axis according to circular curve in the distance that XOY plane projects; Concrete formula is as follows:
fun = (y)(point3(1)+k*point3(2)-k*y-dist(1))^2+(y-dist(2))^2+...
(((point3(1)+k*point3(2)-k*y-dist(1))*(point3(1)-point1(1))+(y-dist(2))*(point3(2)-point1(2)))/(point3(3)-point1(3)))^2-high^2
P2(2)= FSOLVE(fun,1)
The value of wherein FSOLVE is changes persuing amount when being y, fun=1 y;
Then ask for the value of P2 (1) according to the value of known k, P2 (2), formula is as follows:
P2(1) = point3(1)+k*point3(2)-k*Y
Finally obtain P2 (3):
P2(3)=dist(3)-((point3(1)+k*point3(2)-k*Y-dist(1))*(point3(1)-point1(1))+(Y-dist(2))*(point3(2)-point1(2)))/(point3(3)-point1(3))。
As improvement, described algorithm application in parallel rod stacker crane device people, if publication number is a kind of parallel rod stacker crane robot of 103010764A.
The beneficial effect that the present invention is compared with prior art brought is:
By the Motion trajectory of robot palletizer parabolically, reduce robot travel, make it reduce the run duration in each cycle, make its motion process more flexibly flexible simultaneously, and reduce electricity usage cost by reducing working time.
Embodiment
Below in conjunction with Figure of description, the invention will be further described.
As shown in Figure 2,3, a kind of robot palletizer arcuate movement Trajectory Arithmetic, this robot palletizer is parallel rod stacker crane device people, and algorithm comprises the following steps:
(1) the coordinate P1(x1 of robot palletizer current location is set, y1, z1), the coordinate P3(x3 of target location, y3, z3), the coordinate P2(x2 of transition point, y2, z2); Coordinate points P1 is the starting point of arcuate movement track, and coordinate points P3 is the terminal of arcuate movement track, coordinate points P2(x2, y2, z2) be the transition point of coordinate points P1 to coordinate points P3; The vertical height that coordinate points P2 arrives the straight line formed by coordinate points P1, P3 is H;
(2) the coordinate P1(x1 of robot palletizer current location is obtained, y1, z1) and the coordinate P3(x3 of target location, y3, z3);
(3) robot palletizer reads the height parameter H of input, and current position coordinates P1 and target location coordinate P3 is converted into world coordinates;
(4) interim coordinate P2 is obtained by current position coordinates P1, the target location coordinate P3 after conversion and height parameter H substitution underlying algorithm function;
(5) the interim coordinate P2 asked for is converted into coordinate under world coordinate system, and is sent to application layer by interface;
(6) Circle instruction operation planning circular motion track is used at the user application layer of robot palletizer.
Underlying algorithm function f unction P2=FuncSolve(P1, P3, h), obtain middle coordinate according to P1, P3 point: dist=(P1+P3)/2; Dist comprises three element dist(1) X-axis coordinate, dist(2) Y-axis coordinate, dist(3) Z axis coordinate; Robot palletizer the 4th axle is perpendicular to surface level, the parabolic path that TCP runs is perpendicular to XOY plane, suppose that a side vector perpendicular to this plane is (1, k, 0), then k=(P1 (1) – P3 (1))/(P3 (2)-P1 (2)); And then ask for P2 (2) the i.e. coordinate of intermediate point Y-axis according to circular curve in the distance that XOY plane projects; Concrete formula is as follows:
fun = (y)(point3(1)+k*point3(2)-k*y-dist(1))^2+(y-dist(2))^2+...
(((point3(1)+k*point3(2)-k*y-dist(1))*(point3(1)-point1(1))+(y-dist(2))*(point3(2)-point1(2)))/(point3(3)-point1(3)))^2-high^2
P2(2)= FSOLVE(fun,1)
The value of wherein FSOLVE is changes persuing amount when being y, fun=1 y;
Then ask for the value of P2 (1) according to the value of known k, P2 (2), formula is as follows:
P2(1) = point3(1)+k*point3(2)-k*Y
Finally obtain P2 (3):
P2(3)=dist(3)-((point3(1)+k*point3(2)-k*Y-dist(1))*(point3(1)-point1(1))+(Y-dist(2))*(point3(2)-point1(2)))/(point3(3)-point1(3))。