Disclosure of Invention
Based on the above, the robot pose precision testing method provided by the invention has the advantages of strong universality and higher testing precision, and can reduce the workload of operators.
The auxiliary device provided by the invention is suitable for the method for testing the pose precision of the robot, can be suitable for testing the pose precision of various robots to be tested, and has strong universality and high testing precision.
In order to achieve the above purpose, the invention adopts the following technical scheme:
the invention provides a method for testing the pose precision of a robot, which comprises the following steps:
Step S1, fixing a laparoscope fixture on a first arm of a robot to be tested, and fixing an instrument fixture on a second arm of the robot to be tested;
S2, respectively acquiring a first homogeneous pose matrix T Elb of the laparoscopic tool under an intermediate coordinate system and a second homogeneous pose matrix T Ins of the instrument tool under the intermediate coordinate system by using optical measurement equipment, wherein the intermediate coordinate system is a coordinate system under the optical measurement equipment;
S3, calculating an actual instrument pose matrix T a of the instrument tool under a coordinate system of the laparoscope tool, wherein T a=TIns -1TElb;
acquiring a theoretical pose matrix T d of the instrument tool under the coordinate system of the laparoscope tool when the robot to be tested is in the current shape;
And S4, comparing an actual instrument pose matrix T a of the instrument tool with a theoretical pose matrix T d of the instrument tool in a coordinate system of the laparoscope tool so as to acquire the pose precision of the robot to be detected.
As a preferred scheme of the robot pose accuracy testing method, the first homogeneous pose matrix T Elb is:
Wherein [ n x,ny,nz]T ] is a unit vector of the laparoscopic tool in the X direction under the intermediate coordinate system [ O x,oy,oz]T ] is the unit vector of the laparoscopic tool in the Y direction under the intermediate coordinate system[ A x,ay,az]T ] is the unit vector of the laparoscopic tool in the Z direction under the intermediate coordinate systemAnd [ x H,yH,zH]T ] is the coordinate of the endoscope coordinate origin H of the laparoscopic tool in the intermediate coordinate system.
As a preferred scheme of the robot pose accuracy testing method, when the laparoscope is a 0-degree laparoscope, the specific steps of obtaining the first unified pose matrix T Elb are as follows:
s21, respectively acquiring point coordinates of a first endoscope positioning point A, a second endoscope positioning point B, a third endoscope positioning point C and an endoscope coordinate origin H on the laparoscope tool by using the optical measurement equipment, wherein the point coordinates are respectively marked as :A(xA,yA,zA)、B(xB,yB,zB)、C(xC,yC,zC) and H (x H,yH,zH) under the intermediate coordinate system, the connecting line direction of the first endoscope positioning point A and the second endoscope positioning point B is parallel to a Y axis, and the connecting line direction of the second endoscope positioning point B and the third endoscope positioning point C is parallel to a Z axis;
step S22, calculating a unit vector of the laparoscopic tool in the Y direction under the intermediate coordinate system Wherein,
Calculating a unit vector of the laparoscopic tool in the Z direction under the intermediate coordinate systemWherein,
Step S23, calculating a unit vector of the laparoscopic tool in the X direction under the intermediate coordinate system
As a preferable scheme of the robot pose precision testing method, when the laparoscope is a +30 DEG laparoscope or a-30 DEG laparoscope, the specific steps for obtaining the first unified pose matrix T Elb are as follows:
S21', respectively acquiring point coordinates of a fourth endoscope positioning point D, a fifth endoscope positioning point E, a sixth endoscope positioning point F, a seventh endoscope positioning point G and an endoscope coordinate origin H on the laparoscopic tool by utilizing the optical measurement equipment under the intermediate coordinate system, wherein the point coordinates are respectively marked as :D(xD,yD,zD)、E(xE,yE,zE)、F(xF,yF,zC)、G(xG,yG,zG) and H (X H,yH,zH), the connecting line direction of the fourth endoscope positioning point D and the fifth endoscope positioning point E is parallel to a Y axis, and the connecting line direction of the sixth endoscope positioning point F and the seventh endoscope positioning point G is parallel to an X axis;
step S22', calculating a unit vector of the laparoscopic tool in the Y direction under the intermediate coordinate system Wherein,
Calculating a unit vector of the laparoscopic tool in the X direction under the intermediate coordinate systemWherein,
Step S23', calculating a unit vector of the laparoscopic tool in the Z direction under the intermediate coordinate system
As a preferred scheme of the robot pose accuracy testing method, the second homogeneous pose matrix T Ins is:
Wherein [ n' x,n'y,n'z]T ] is a unit vector of the instrument tool in the X direction under the intermediate coordinate system [ O' x,o'y,o'z]T ] is the unit vector of the instrument tool in the Y direction under the intermediate coordinate system[ A' x,a'y,a'z]T ] is the unit vector of the instrument tool in the Z direction under the intermediate coordinate systemAnd [ x P,yP,zP]T ] is the coordinate of the instrument coordinate origin P of the instrument tool under the intermediate coordinate system.
As a preferred scheme of the robot pose accuracy testing method, the specific steps of obtaining the second homogeneous pose matrix T Ins are as follows:
S21', respectively acquiring point coordinates of a first instrument positioning point I, a second instrument positioning point J, a third instrument positioning point K, a fourth instrument positioning point L and an instrument coordinate origin H on the instrument tool by utilizing the optical measurement equipment, wherein the point coordinates are respectively marked as :I(xI,yI,zI)、J(xJ,yJ,zJ)、K(xK,yK,zK)、L(xL,yL,zL) and P (x P,yP,zP) under the intermediate coordinate system, and the connecting line of the first instrument positioning point I and the second instrument positioning point J is parallel to the connecting line of the third instrument positioning point K and the fourth instrument positioning point L and is parallel to a YZ plane;
Step S22' calculating a unit vector of the instrument tool in the X direction under the intermediate coordinate system Wherein the method comprises the steps of
Calculating point coordinates of a midpoint P of a connecting line of the first instrument positioning point I and the third instrument positioning point K and a midpoint Q of a connecting line of the second instrument positioning point J and the fourth instrument positioning point L, wherein the point coordinates are respectively recorded as P (x P,yP,zP)、Q(xQ,yQ,zQ);
calculating a unit vector of the instrument tool in the Z direction under the intermediate coordinate system Wherein,
Step S23' calculating a unit vector of the instrument tool in the Y direction under the intermediate coordinate system
The auxiliary device provided by the invention is applied to the robot pose precision testing method according to any scheme, and comprises the following steps:
The laparoscopic tool is provided with a plurality of laparoscopic locating points, any two laparoscopic locating points are connected to form a laparoscopic locating detection line, at least two of the laparoscopic locating detection lines are not parallel, and the optical measurement equipment can acquire a first homogeneous pose matrix T Elb of the laparoscopic tool under an intermediate coordinate system through the laparoscopic locating points on the non-parallel laparoscopic locating detection line;
The equipment tool is provided with a plurality of equipment positioning points, any two equipment positioning points are connected to form an equipment positioning detection line, at least two of the equipment positioning detection lines are not parallel, and the optical measurement equipment can acquire a second homogeneous pose matrix T Ins of the equipment tool under an intermediate coordinate system through the equipment positioning points on the equipment positioning detection line which are not parallel.
As a preferred aspect of the auxiliary device, the laparoscopic tool includes:
The mirror body comprises a first part and a second part which are arranged at an included angle of 150 degrees;
The number of the mirror rods is two, namely a first mirror rod and a second mirror rod, the end face of the first mirror rod is perpendicular to the axis direction of the first mirror rod, the included angle between the end face of the second mirror rod and the axis of the second mirror rod is 150 degrees, and the first part can be selectively and detachably connected with the first mirror rod or the second mirror rod;
the endoscope body and the endoscope rod are provided with the endoscope positioning points.
The auxiliary device comprises a first cavity mirror detection surface, a second cavity mirror detection surface and a third cavity mirror detection surface which are sequentially connected, wherein a fourth cavity mirror detection surface is arranged on the second part, a first cavity mirror positioning hole, a second cavity mirror positioning hole, a third cavity mirror positioning hole, a fourth cavity mirror positioning hole, a fifth cavity mirror positioning hole and a sixth cavity mirror positioning hole are arranged on the mirror body, the first cavity mirror positioning hole, the second cavity mirror positioning hole and the third cavity mirror positioning hole are all positioned on the second cavity mirror detection surface and are not collinear, the fourth cavity mirror positioning hole is a through hole and penetrates through the first cavity mirror detection surface and the third cavity mirror detection surface, the axis direction of the fourth cavity mirror positioning hole is parallel to the connecting line direction of the first cavity mirror positioning hole and the second cavity mirror positioning hole, the fifth cavity mirror positioning hole and the sixth cavity mirror positioning hole are both positioned on the second cavity mirror detection surface, and the seventh cavity mirror positioning hole is arranged on one side of the fifth cavity mirror detection surface.
As the preferred scheme of auxiliary device, the first portion still includes sixth chamber mirror detection face, sixth chamber mirror detection face with the second chamber mirror detection face is parallel, just the both ends of sixth chamber mirror detection face are connected respectively first chamber mirror detection face with third chamber mirror detection face, be provided with non-collinear eighth chamber mirror locating hole, ninth chamber mirror locating hole and tenth chamber mirror locating hole on the sixth chamber mirror detection face.
As a preferred embodiment of the auxiliary device, the distance between the second and third endoscope positioning holes is greater than 40mm, and/or
The distance between the fifth endoscope positioning hole and the sixth endoscope positioning hole is larger than 40mm.
As auxiliary device's preferred scheme, the apparatus frock includes support piece, first pincers body and second pincers body, first pincers body with the second pincers body all rotate set up in on the support piece, first pincers body with all be provided with on the second pincers body the apparatus setpoint.
As an optimal scheme of the auxiliary device, a first instrument detection surface is arranged on the first clamp body, a second instrument detection surface is arranged on the second clamp body, the first instrument detection surface is parallel to the second instrument detection surface, a first instrument positioning hole and a second instrument positioning hole are formed in the first instrument detection surface, and a third instrument positioning hole and a fourth instrument positioning hole are formed in the second instrument detection surface.
Preferably, the distance between the first instrument positioning hole and the second instrument positioning hole is larger than 40mm, and/or
The spacing between the third instrument positioning hole and the fourth instrument positioning hole is greater than 40mm.
As an auxiliary device, the laparoscopic tool is provided with a first positioning piece which can be matched with a first positioning hole on a first arm of the robot to be tested, and/or
The instrument tool is provided with a second locating piece which can be matched with a second locating hole on a second arm of the robot to be detected.
The beneficial effects of the invention are as follows:
According to the robot pose precision testing method, the laparoscopic tool and the instrument tool are respectively fixed on the first arm and the second arm of the robot to be tested, when the robot to be tested is tested, only the actual instrument pose matrix T a of the instrument tool under the coordinate system of the laparoscopic tool is needed, then the actual instrument pose matrix T a is different from the theoretical pose matrix T d of the instrument tool under the coordinate system of the laparoscopic tool under the current shape of the robot to be tested, the pose precision of the robot to be tested can be obtained, the testing process is simple, the corresponding coordinate system is not needed to be established by utilizing the joint axes on the two arms of the robot to be tested, the problem of low testing precision caused by structural errors of the robot to be tested can be avoided, and therefore the testing precision of the testing method is guaranteed.
The auxiliary device for the pose precision test of the robot, provided by the invention, comprises a laparoscope tool and an instrument tool, can be suitable for pose precision test of various robots to be tested, has strong universality, and can avoid the problem of low test precision caused by structural errors of the robots to be tested during test, thereby improving the accuracy of test results.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
In the description of the present invention, unless explicitly stated or limited otherwise, the terms "connected," "connected," and "fixed" are to be construed broadly, and may, for example, be fixedly connected, detachably connected, or integrally formed, mechanically connected, electrically connected, directly connected, indirectly connected through an intervening medium, or in communication between two elements or in an interaction relationship between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
In the present invention, unless expressly stated or limited otherwise, a first feature "above" or "below" a second feature may include both the first and second features being in direct contact, as well as the first and second features not being in direct contact but being in contact with each other through additional features therebetween. Moreover, a first feature being "above," "over" and "on" a second feature includes the first feature being directly above and obliquely above the second feature, or simply indicating that the first feature is higher in level than the second feature. The first feature being "under", "below" and "beneath" the second feature includes the first feature being directly under and obliquely below the second feature, or simply means that the first feature is less level than the second feature.
In the description of the present embodiment, the terms "upper", "lower", "left", "right", and the like are orientation or positional relationships based on those shown in the drawings, merely for convenience of description and simplicity of operation, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the invention. Furthermore, the terms "first," "second," and the like, are used merely for distinguishing between descriptions and not for distinguishing between them.
The laparoscopic surgical robot generally includes a robot body and first and second arms movably provided on the robot body, and when performing a laparoscopic surgical operation, a laparoscope and a surgical instrument are generally fixed on the first and second arms, respectively, wherein the laparoscope corresponds to a 'human eye', the surgical instrument corresponds to a 'human hand', and a control system of the robot body corresponds to a 'human brain', and if the pose accuracy of the robot is sufficiently high, the actual position of the surgical instrument fed back to the robot control system by the laparoscope and the theoretical position of the surgical instrument controlled by the robot control system should be kept consistent, so that the pose accuracy of the laparoscopic surgical robot can be evaluated by comparing the difference between the actual position and the theoretical position of the surgical instrument.
Based on the above principle, as shown in fig. 1, the method for testing the pose accuracy of the robot provided in this embodiment includes the following steps:
step S1, fixing a laparoscope fixture on a first arm of a robot to be tested, and fixing an instrument fixture on a second arm of the robot to be tested;
Step S2, respectively acquiring a first homogeneous pose matrix T Elb of the laparoscopic tool under an intermediate coordinate system and a second homogeneous pose matrix T Ins of the instrument tool under the intermediate coordinate system by using optical measurement equipment, wherein the intermediate coordinate system is a coordinate system under the optical measurement equipment;
S3, calculating an actual instrument pose matrix T a of the instrument tool under a coordinate system of the laparoscope tool, wherein T a=TIns -1TElb;
acquiring a theoretical pose matrix T d of an instrument tool of the robot to be tested in the current shape and position in a coordinate system of a laparoscope tool;
And S4, comparing an actual instrument pose matrix T a of the instrument tool with a theoretical pose matrix T d of the instrument tool in a coordinate system of the laparoscope tool to acquire pose accuracy of the robot to be detected.
According to the robot pose precision testing method, the laparoscopic tool and the instrument tool are respectively fixed on the first arm and the second arm of the robot to be tested, when the robot to be tested is tested, only the actual instrument pose matrix T a of the instrument tool under the coordinate system of the laparoscopic tool is needed to be obtained, then the actual instrument pose matrix T a is different from the theoretical pose matrix T d of the instrument tool under the coordinate system of the laparoscopic tool of the robot to be tested under the current shape, the pose precision of the robot to be tested can be obtained, the testing process is simple, the corresponding coordinate system is not needed to be established by utilizing the joint axes on the two arms of the robot to be tested, the problem of low testing precision caused by structural errors of the robot to be tested can be avoided, and therefore the testing precision of the testing method is guaranteed.
For easy understanding, the specific flow of the robot pose accuracy testing method will be described in detail with reference to the specific structure of the auxiliary device for the robot pose accuracy testing method shown in fig. 2 to 9.
As shown in fig. 2-5, a plurality of endoscope positioning points are arranged on the laparoscopic tool, any two endoscope positioning points are connected to form an endoscope positioning detection line, at least two of the plurality of endoscope positioning detection lines are not parallel, and the optical measurement equipment can acquire a first homogeneous pose matrix T Elb of the laparoscopic tool under an intermediate coordinate system through the endoscope positioning points on the non-parallel endoscope positioning detection lines.
Specifically, the laparoscopic tool comprises a laparoscopic body 1 and a laparoscopic rod 2, wherein the laparoscopic body 1 comprises a first part 11 and a second part 12 which are arranged at an included angle, the first part 11 is connected with the laparoscopic rod 2, the first part 11 comprises a first endoscopic detection surface 111, a second endoscopic detection surface 112 and a third endoscopic detection surface 113 which are sequentially connected, a fourth endoscopic detection surface 121 is arranged on the second part 12, a first endoscopic positioning hole 1121, a second endoscopic positioning hole 1122, a third endoscopic positioning hole 1123, a fourth endoscopic positioning hole 1111, a fifth endoscopic positioning hole 1211 and a sixth endoscopic positioning hole 1212 are arranged on the laparoscopic body 1, the first endoscopic positioning hole 1121, the second endoscopic positioning hole 1122 and the third endoscopic positioning hole 1123 are all positioned on the second endoscopic detection surface 112 and are not collinear, the fourth endoscopic positioning hole 1111 is a through hole and penetrates through the first endoscopic detection surface 111 and the third endoscopic detection surface 113, the axial direction of the fourth endoscopic positioning hole 1111 is parallel to the first endoscopic positioning hole 1211 and the fifth endoscopic positioning hole 1211, and the fifth endoscopic positioning hole 21 is arranged on the side of the fifth endoscopic rod 21 and is far from the fifth endoscopic positioning hole 1212.
Further, the first portion 11 further includes a sixth cavity mirror detecting surface 114, the sixth cavity mirror detecting surface 114 is parallel to the second cavity mirror detecting surface 112, two ends of the sixth cavity mirror detecting surface 114 are respectively connected to the first cavity mirror detecting surface 111 and the third cavity mirror detecting surface 113, and an eighth cavity mirror positioning hole 1141, a ninth cavity mirror positioning hole 1142 and a tenth cavity mirror positioning hole 1143 which are not collinear are formed in the sixth cavity mirror detecting surface 114.
For convenience of description, it is now defined that an intersection point between the first lumen locating hole 1121 and the second lumen detecting surface 112 is a first lumen locating point a, an intersection point between the second lumen locating hole 1122 and the second lumen detecting surface 112 is a second lumen locating point B, an intersection point between the third lumen locating hole 1123 and the second lumen detecting surface 112 is a third lumen locating point C, an intersection point between the fourth lumen locating hole 1111 and the first lumen detecting surface 111 is a fourth lumen locating point D, an intersection point between the fourth lumen locating hole 1111 and the third lumen detecting surface 113 is a fifth lumen locating point E, an intersection point between the fifth lumen locating hole 1211 and the fourth lumen detecting surface 121 is a sixth lumen locating point F, an intersection point between the sixth lumen locating hole 1212 and the fourth lumen detecting surface 121 is a seventh lumen locating point G, an intersection point between the eighth lumen locating hole 1141 and the sixth lumen detecting surface 114 is an eighth lumen locating point a', an intersection point between the ninth lumen locating hole 1111 and the sixth lumen locating surface 114 is a seventh lumen locating point C, an intersection point between the ninth lumen locating hole 1141 and the sixth lumen locating surface 114 is a seventh lumen locating point C, and a fifth lumen locating point C, an intersection point between the fifth lumen locating point C and the sixth lumen locating point 114 is a seventh lumen locating point C, and a fifth lumen locating point C, and a point C between the fifth lumen locating point 114 is a fifth lumen locating point C. Wherein, the connection line AB is parallel to the connection line A 'B', and the connection line BC is parallel to the connection line B 'C'.
There are two types of laparoscopes on the market, the first is a 0-degree laparoscope, the fifth laparoscopic detection surface 21 of the laparoscopic rod 2 is perpendicular to the second laparoscopic detection surface 112, the second is a +30-degree laparoscope or a-30-degree laparoscope, and the inclination angle of the fifth laparoscopic detection surface 21 of the laparoscopic rod 2 in the vertical direction is 30 degrees.
In order to improve the versatility of the auxiliary device, in the present embodiment, the included angle between the fourth cavity mirror detecting surface 121 and the second cavity mirror detecting surface 112 is 150 °, the number of the mirror rods 2 is two, namely, the first mirror rod and the second mirror rod, the fifth cavity mirror detecting surface 21 of the first mirror rod is perpendicular to the axial direction of the first mirror rod, the included angle between the fifth cavity mirror detecting surface 21 of the second mirror rod and the axial direction of the second mirror rod is 150 °, and the first portion 11 can be selectively detachably connected to the first mirror rod or the second mirror rod. When the robot to be tested of the 0 DEG laparoscope is required to be tested, an operator can connect the first mirror rod to the first part 11, when the robot to be tested of the +30 DEG laparoscope is required to be tested, the operator can connect the second mirror rod to the first part 11 and enable the fifth mirror detection surface 21 of the second mirror rod to be parallel to the fourth mirror detection surface 121, and when the robot to be tested of the-30 DEG laparoscope is required to be tested, the operator can connect the second mirror rod to the first part 11 and enable the fifth mirror detection surface 21 of the second mirror rod to form an included angle with the fourth mirror detection surface 121 and enable the fifth mirror detection surface 21 of the second mirror rod and the fourth mirror detection surface 121 to be symmetrical relative to the axis of the second mirror rod. By adopting the arrangement mode, the universality of the auxiliary device can be improved, the production cost can be reduced, and the auxiliary device is convenient to store.
Optionally, the first portion 11 is provided with a threaded hole, the mirror rod 2 is provided with an external thread, and the mirror rod 2 can be screwed into the threaded hole of the first portion 11, so that detachable connection of the mirror rod 2 and the threaded hole is realized, processing is facilitated, and connection is fastened. Of course, in other embodiments, the first portion 11 and the lens rod 2 may be detachably connected by a clamping connection or other manners, which is not limited in this embodiment. In addition, the laparoscope tool is arranged into a split structure, so that the respective processing precision of the lens body 1 and the lens rod 2 can be ensured, and the accuracy of a test result is further ensured.
Optionally, the first portion 11 is provided with a first positioning element 115, and the first positioning element 115 can be matched with a first positioning hole on a first arm of the robot to be tested, so as to realize accurate positioning between the laparoscopic tool and the first arm.
In this embodiment, the first homogeneous pose matrix T Elb of the laparoscopic tool in the intermediate coordinate system is:
Wherein, [ n x,ny,nz]T ] is a unit vector of the laparoscopic tool in the X direction under the intermediate coordinate system [ O x,oy,oz]T ] is the unit vector of the laparoscopic tool in the Y direction under the intermediate coordinate system[ A x,ay,az]T ] is the unit vector of the laparoscopic tool in the Z direction under the intermediate coordinate systemAnd [ x H,yH,zH]T ] is the coordinate of the endoscope coordinate origin H of the laparoscopic tool in the intermediate coordinate system.
As shown in fig. 2, when the laparoscopic tool is a 0 ° laparoscope, the laparoscopic tool is first fixed on a first arm of a robot to be measured, at this time, it is required to ensure that the second laparoscopic detection surface 112 faces the optical measurement device, the second laparoscopic detection surface 112 is parallel to the YZ plane in the intermediate coordinate system, the AB connection line is parallel to the Y axis in the intermediate coordinate system, and the BC connection line is parallel to the Z axis in the intermediate coordinate system. The intermediate coordinate system is the coordinate system under the optical measuring equipment.
At this time, the specific steps of obtaining the first alignment pose matrix T Elb are:
s21, respectively acquiring point coordinates of a first endoscope positioning point A, a second endoscope positioning point B, a third endoscope positioning point C and an endoscope coordinate origin H on a laparoscope tool under an intermediate coordinate system by using optical measurement equipment, wherein the point coordinates are respectively marked as :A(xA,yA,zA)、B(xB,yB,zB)、C(xC,yC,zC) and H (x H,yH,zH);
Step S22, calculating a unit vector of the laparoscopic tool in the Y direction under the intermediate coordinate system Wherein,
Calculating unit vector of laparoscopic tool in Z direction under intermediate coordinate systemWherein,
Step S23, calculating a unit vector of the laparoscopic tool in the X direction under the intermediate coordinate system
As shown in fig. 3, when the laparoscopic tool is a +30° laparoscope, the laparoscopic tool is first fixed on a first arm of a robot to be measured, and the sixth laparoscopic detection surface 114 is required to be oriented to the optical measurement device, so as to ensure that the fifth laparoscopic detection surface 21 is within the photographing range of the optical measurement device, at this time, the fourth laparoscopic detection surface 121 is parallel to the XY plane in the intermediate coordinate system, the DE connecting line is parallel to the Y axis in the intermediate coordinate system, and the FG connecting line is parallel to the X axis in the intermediate coordinate system. When the laparoscopic tool is a 30 ° laparoscope, the laparoscopic tool is first fixed on a first arm of a robot to be measured, and the second laparoscopic detection surface 112 is required to face the optical measurement device, so as to ensure that the fifth laparoscopic detection surface 21 is within the shooting range of the optical measurement device, at this time, the fourth laparoscopic detection surface 121 is parallel to the XY plane in the intermediate coordinate system, the DE connecting line is parallel to the Y axis in the intermediate coordinate system, and the FG connecting line is parallel to the X axis in the intermediate coordinate system.
At this time, the specific steps of obtaining the first alignment pose matrix T Elb are:
S21', respectively acquiring point coordinates of a fourth endoscope positioning point D, a fifth endoscope positioning point E, a sixth endoscope positioning point F, a seventh endoscope positioning point G and an endoscope coordinate origin H on a laparoscope tool under an intermediate coordinate system by using optical measurement equipment, wherein the point coordinates are respectively marked as :D(xD,yD,zD)、E(xE,yE,zE)、F(xF,yF,zC)、G(xG,yG,zG) and H (x H,yH,zH);
Step S22', calculating a unit vector of the laparoscopic tool in the Y direction under the intermediate coordinate system Wherein,
Calculating unit vector of laparoscopic tool in X direction under intermediate coordinate systemWherein,
Step S23', calculating a unit vector of the laparoscopic tool in the Z direction under the intermediate coordinate system
It should be noted that, the eighth, ninth and tenth positioning holes 1141, 1142, 1143 provided on the sixth lens detecting surface 114 may be used as spare positioning holes for the first, second and third lens positioning holes 1121, 1122, 1123, and may be calculated when the optical measuring device is inconvenient to obtain the coordinates of the points of the positioning points of the respective lenses on the second lens detecting surface 112AndIndirect acquisition ofAndThe test efficiency is higher.
As shown in fig. 7-9, a plurality of instrument positioning points are arranged on the instrument tool, any two instrument positioning points are connected to form an instrument positioning detection line, at least two of the plurality of instrument positioning detection lines are not parallel, and the optical measurement device can acquire a second homogeneous pose matrix T Ins of the instrument tool under an intermediate coordinate system through the instrument positioning points on the non-parallel instrument positioning detection lines.
Specifically, the instrument tool comprises a supporting piece 5, a first clamp body 3 and a second clamp body 4, wherein the first clamp body 3 and the second clamp body 4 are both rotatably arranged on the supporting piece 5, a first instrument detection surface 31 is arranged on the first clamp body 3, a second instrument detection surface 41 is arranged on the second clamp body 4, the first instrument detection surface 31 and the second instrument detection surface 41 are parallel, a first instrument positioning hole 311 and a second instrument positioning hole 312 are arranged on the first instrument detection surface 31, and a third instrument positioning hole 411 and a fourth instrument positioning hole 412 are arranged on the second instrument detection surface 41.
Further, a pin shaft is fixed on the supporting piece 5, and the first clamp body 3 and the second clamp body 4 are both rotatably connected to the pin shaft.
Optionally, a second positioning piece is arranged on the supporting piece 5, and the second positioning piece can be matched with a second positioning hole on a second arm of the robot to be tested, so that accurate positioning between the instrument tool and the second arm is realized.
For convenience of description, it will be defined that an intersection point between the first instrument positioning hole 311 and the first instrument detection surface 31 is a first instrument positioning point I, an intersection point between the second instrument positioning hole 312 and the first instrument detection surface 31 is a second instrument positioning point J, an intersection point between the third instrument positioning hole 411 and the second instrument detection surface 41 is a third instrument positioning point K, and an intersection point between the fourth instrument positioning hole 412 and the second instrument detection surface 41 is a fourth instrument positioning point L.
In this embodiment, the second homogeneous pose matrix T Ins of the instrument tool in the intermediate coordinate system is:
wherein [ n' x,n'y,n'z]T ] is the unit vector of the instrument in the X direction under the intermediate coordinate system [ O' x,o'y,o'z]T ] is the unit vector of the instrument in the Y direction under the intermediate coordinate system[ A' x,a'y,a'z]T ] is the unit vector of the instrument in the Z direction under the intermediate coordinate systemAnd x P,yP,zP]T is the coordinate of the instrument coordinate origin P of the instrument tool in the intermediate coordinate system.
After the instrument fixture is mounted on the second arm of the robot to be tested, the first clamp body 3 and the second clamp body 4 are driven to rotate around the pin shaft by a preset angle so that the first clamp body 3 and the second clamp body 4 are arranged in an included angle, wherein the preset angle at which the first clamp body 3 and the second clamp body 4 rotate around the pin shaft is not limited in the embodiment, and the first clamp body 3 and the second clamp body 4 are not parallel only during testing. At this time, the planes of the first instrument detection surface 31 and the second instrument detection surface 41 are parallel to the YZ plane in the intermediate coordinate system, and the first instrument positioning point I, the second instrument positioning point J, the third instrument positioning point K, and the fourth instrument positioning point L are symmetrically arranged about the bisector of the connecting line IJ and the connecting line KL.
Specifically, the specific steps of obtaining the second homogeneous pose matrix T Ins are as follows:
S21', respectively acquiring point coordinates of a first instrument positioning point I, a second instrument positioning point J, a third instrument positioning point K, a fourth instrument positioning point L and an instrument coordinate origin H on an instrument tool under an intermediate coordinate system by utilizing optical measurement equipment, wherein the point coordinates are respectively marked as :I(xI,yI,zI)、J(xJ,yJ,zJ)、K(xK,yK,zK)、L(xL,yL,zL) and P (x P,yP,zP);
Step S22' calculating a unit vector of the instrument tool in the X direction under the intermediate coordinate system Wherein the method comprises the steps of
Calculating point coordinates of a midpoint P of a connecting line of the first instrument positioning point I and the third instrument positioning point K and a midpoint Q of a connecting line of the second instrument positioning point J and the fourth instrument positioning point L, wherein the point coordinates are respectively recorded as P (x P,yP,zP)、Q(xQ,yQ,zQ);
Calculating unit vector of instrument tool in Z direction under intermediate coordinate system Wherein,
Step S23' calculating a unit vector of the instrument tool in the Y-direction under the intermediate coordinate system
It will be appreciated that when the spacing between two points is small, the line connecting the two points may be drawn in multiple lines, and there is a large error in the direction determined by the two ends. To ensure accuracy of the test results, the spacing between the second and third endoscope positioning holes 1122 and 1123 is greater than 40mm, the spacing between the fifth and sixth endoscope positioning holes 1211 and 1212 is greater than 40mm, the spacing between the first and second instrument positioning holes 311 and 312 is greater than 40mm, and the spacing between the third and fourth instrument positioning holes 411 and 412 is greater than 40mm.
Further, the method for obtaining the theoretical pose matrix T d of the instrument tool of the robot to be measured in the current shape and the coordinate system of the laparoscope tool specifically comprises the steps of reading each joint angle theta i of a second arm of the robot to be measured in the current shape and then introducing the second arm into a kinematic model of an arm system, namely T d=F(θi), wherein i=1, 2. The kinematic model of the arm system is the prior art, and this embodiment will not be described in detail.
Further, after the actual instrument pose matrix T a and the theoretical pose matrix T d of the instrument tool in the coordinate system of the laparoscope tool are obtained, the specific method for obtaining the pose precision of the robot to be measured is as follows:
Step S41, calculating a homogeneous pose transformation matrix T e between the pose matrix T a of the actual instrument and the theoretical pose matrix T d, wherein,
Step S42, according to the precision matrixAnd acquiring the pose angle of the robot to be tested.
It should be noted that, in the homogeneous pose transformation matrix T e between the actual instrument pose matrix T a and the theoretical pose matrix T d, the first three rows and three columns are the pose states of the robot to be measured. The method for acquiring the pose angle of the robot to be tested according to the precision matrix T is not described in detail in this embodiment, where the pose angle includes, but is not limited to, euler angles, shaft angles, euler parameters, quaternions, and the like, and may be selected according to actual test conditions, which is not limited in this embodiment.
The robot pose precision testing method provided by the embodiment can simplify the establishment flow of a laparoscopic coordinate system and an instrument coordinate system, so that the testing efficiency of the pose precision of the laparoscopic surgical robot is improved, the problem of low testing precision caused by structural errors of the robot to be tested can be avoided, the establishment precision of the laparoscopic coordinate system and the instrument coordinate system is guaranteed, the measurement coordinate systems corresponding to a 0-degree laparoscope, +30-degree laparoscope and a-30-degree laparoscope on the market can be compatible through the arrangement of the two lens rods 2, and the mode of describing the pose precision of the mechanical arm of the robot to be tested by using the homogeneous pose transformation matrix T e of the theoretical pose and the actual pose of an instrument tool is more visual and accurate.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.