A method, device, electronic device and storage medium for posture positioning

By generating and applying rotation information, the second angle and the third angle of the end flange of the robotic arm are changed to 0, which solves the problem of low positioning efficiency of machine equipment in the existing technology and achieves efficient attitude positioning.

CN118438456BActive Publication Date: 2024-09-03HANGZHOU SANTAN MEDICAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410891460.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-03
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

The existing technology requires manual planning and simulation during the positioning process of the target part of the machine equipment, resulting in long time and low efficiency.

Method used

By determining the first, second, and third angles required for the end flange rotation of the robotic arm, rotation information is generated and the end flange rotation is controlled so that the second and third angles become 0, thereby achieving the target position and The positioner channels are parallel to complete attitude positioning.

Benefits of technology

Efficient positioning of the target part of the machine equipment is achieved, positioning time is reduced, and the operation volume and collision risk are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118438456B
    Figure CN118438456B
Patent Text Reader

Abstract

The embodiment of the present invention provides a posture positioning method, device, electronic device and storage medium, which relates to the field of machine control technology, including: when receiving a posture positioning signal, determining the desired target position for posture positioning, the end flange of the robot arm rotates at the first angle, second angle, and third angle required; generating rotation information including information of the first angle, the rotation information is used to make the end flange rotate based on the rotation information, and the second angle and the third angle become 0; and controlling the rotation of the end flange based on the rotation information. The solution provided by the embodiment of the present invention can achieve high efficiency in positioning the target part of the machine equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of machine control technology, and in particular to a posture positioning method, device, electronic equipment and storage medium. Background Art

[0002] Related Art In the process of using a machine device for auxiliary operation, it is often necessary to locate the target part of the machine device to the required position so that the machine device can be used to operate at the required position. In the process of locating the target part of the machine device, manual planning and simulation of the positioning path are required, which makes the time required for locating the target part of the machine device long and inefficient. Summary of the invention

[0003] The purpose of the embodiments of the present invention is to provide a posture positioning method, device, electronic device and storage medium to achieve high efficiency in positioning the target part of a machine device. The specific technical solution is as follows:

[0004] In a first aspect, an embodiment of the present invention provides a posture positioning method, the method comprising:

[0005] When receiving the attitude positioning signal, the end flange of the manipulator is rotated to the required first angle, second angle, and third angle when determining the desired target position for attitude positioning;

[0006] Wherein, the end of the above-mentioned robotic arm is connected to the positioner through the above-mentioned end flange, the positioner channel in the above-mentioned positioner is parallel to the first Z axis of the first coordinate system, the above-mentioned second angle is the angle between the above-mentioned first Z axis and the second Z axis of the second coordinate system, the above-mentioned first coordinate system and the above-mentioned second coordinate system are right-handed spatial rectangular coordinate systems, and the first plane where the first X axis and the first Y axis of the above-mentioned first coordinate system are located and the second plane where the second X axis and the second Y axis of the above-mentioned second coordinate system are located have an intersection line, the above-mentioned first angle is the angle between the above-mentioned second X axis and the above-mentioned intersection line, and the above-mentioned third angle is the angle between the above-mentioned first X axis and the above-mentioned intersection line; the above-mentioned target position is located on the above-mentioned second Z axis; the above-mentioned first coordinate system and the above-mentioned second coordinate system are both on the robotic arm base of the above-mentioned robotic arm;

[0007] Generate rotation information including information of the first angle, wherein the rotation information is used to make the second angle and the third angle become 0 after the end flange is rotated based on the rotation information;

[0008] The rotation of the end flange is controlled based on the rotation information.

[0009] In one embodiment of the present invention, when determining the desired target position for posture positioning, the first angle, second angle, and third angle required for the end flange of the robot arm to rotate include:

[0010] Determine a first transformation matrix between a third coordinate system on the end flange of the robot arm and a fourth coordinate system at the desired target position;

[0011] The first angle, the second angle and the third angle required for rotating the end flange are determined based on the first conversion matrix.

[0012] In one embodiment of the present invention, the above-mentioned determination of the first transformation matrix between the third coordinate system on the end flange of the robot arm and the fourth coordinate system at the desired target position includes:

[0013] Determine a second conversion matrix between a fourth coordinate system at a desired target position and the first coordinate system, and a third conversion matrix between a third coordinate system on an end flange of the robot arm and the first coordinate system;

[0014] The first transformation matrix between the third coordinate system and the fourth coordinate system is determined by multiplying the third transformation matrix by the inverse matrix of the second transformation matrix.

[0015] In one embodiment of the present invention, the determining of the second transformation matrix between the fourth coordinate system at the desired target position and the first coordinate system includes:

[0016] Determine a fourth transformation matrix between a fifth coordinate system on the image and the first coordinate system, and determine a fifth transformation matrix representing a relationship between a desired target position and the fifth coordinate system through planning;

[0017] The fourth transformation matrix is ​​multiplied by the fifth transformation matrix to determine a second transformation matrix between the fourth coordinate system and the first coordinate system.

[0018] In one embodiment of the present invention, the generating of the rotation information including the information of the first angle includes:

[0019] Generate a sixth transformation matrix according to the first angle, wherein the sixth transformation matrix indicates that if the second coordinate system is rotated according to the sixth transformation matrix, the angle between the second X-axis and the intersection line is the first angle, and the second angle and the third angle are 0;

[0020] A seventh transformation matrix characterizing the relationship between the positioner channel and the end flange is obtained through online calibration;

[0021] Based on the sixth conversion matrix, the seventh conversion matrix, and the second conversion matrix, an eighth conversion matrix is ​​determined as rotation information.

[0022] In one embodiment of the present invention, the above-mentioned image is a CT image or an X-ray film.

[0023] In a second aspect, an embodiment of the present invention provides a posture positioning device, the device comprising:

[0024] A first determination module is used to determine the first angle, the second angle, and the third angle required for the end flange of the robot arm to rotate when the desired target position is performed for posture positioning when the posture positioning signal is received;

[0025] Wherein, the end of the above-mentioned robotic arm is connected to the positioner through the above-mentioned end flange, the positioner channel in the above-mentioned positioner is parallel to the first Z axis of the first coordinate system, the above-mentioned second angle is the angle between the above-mentioned first Z axis and the second Z axis of the second coordinate system, the above-mentioned first coordinate system and the above-mentioned second coordinate system are right-handed spatial rectangular coordinate systems, and the first plane where the first X axis and the first Y axis of the above-mentioned first coordinate system are located and the second plane where the second X axis and the second Y axis of the above-mentioned second coordinate system are located have an intersection line, the above-mentioned first angle is the angle between the above-mentioned second X axis and the above-mentioned intersection line, and the above-mentioned third angle is the angle between the above-mentioned first X axis and the above-mentioned intersection line; the above-mentioned target position is located on the above-mentioned second Z axis; the above-mentioned first coordinate system and the above-mentioned second coordinate system are both on the robotic arm base of the above-mentioned robotic arm;

[0026] A generating module, used to generate rotation information including information of the first angle, wherein the rotation information is used to make the second angle and the third angle become 0 after the end flange is rotated based on the rotation information;

[0027] The rotation control module is used to control the rotation of the end flange based on the rotation information.

[0028] In one embodiment of the present invention, the first determining module includes:

[0029] A first determination submodule is used to determine a first conversion matrix between a third coordinate system on the end flange of the robot arm and a fourth coordinate system at a desired target position when a posture positioning signal is received;

[0030] The second determination submodule is used to determine the first angle, the second angle, and the third angle required to rotate the end flange based on the first conversion matrix.

[0031] In one embodiment of the present invention, the first determining submodule includes:

[0032] A first determination unit is used to determine, when receiving the attitude positioning signal, a second conversion matrix between a fourth coordinate system at a desired target position and the first coordinate system, and a third conversion matrix between a third coordinate system on an end flange of the manipulator and the first coordinate system;

[0033] The second determining unit is used to determine a first conversion matrix between the third coordinate system and the fourth coordinate system by multiplying the third conversion matrix by the inverse matrix of the second conversion matrix.

[0034] In one embodiment of the present invention, the first determining unit is specifically configured to:

[0035] In the case of receiving the attitude positioning signal, determining a fourth transformation matrix between a fifth coordinate system on the image and the first coordinate system, and determining a fifth transformation matrix representing the relationship between the desired target position and the fifth coordinate system through planning;

[0036] The fourth transformation matrix is ​​multiplied by the fifth transformation matrix to determine a second transformation matrix between the fourth coordinate system and the first coordinate system.

[0037] In one embodiment of the present invention, the above-mentioned generating module is specifically used for:

[0038] Generate a sixth transformation matrix according to the first angle, wherein the sixth transformation matrix indicates that if the second coordinate system is rotated according to the sixth transformation matrix, the angle between the second X-axis and the intersection line is the first angle, and the second angle and the third angle are 0;

[0039] A seventh transformation matrix characterizing the relationship between the positioner channel and the end flange is obtained through online calibration;

[0040] Based on the sixth conversion matrix, the seventh conversion matrix, and the second conversion matrix, an eighth conversion matrix is ​​determined as rotation information.

[0041] In one embodiment of the present invention, the above-mentioned image is a CT image or an X-ray film.

[0042] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0043] Memory, used to store computer programs;

[0044] The processor is used to implement any method step of the first aspect when executing the program stored in the memory.

[0045] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any method step of the first aspect is implemented.

[0046] Beneficial effects of the embodiments of the present invention:

[0047] As can be seen from the above, in the solution provided by the embodiment of the present invention, the first coordinate system and the second coordinate system are defined on the base of the robot arm, and the locator channel is parallel to the first Z axis, and the target position is located on the second Z axis. After calculating the first angle, the second angle, and the third angle required to rotate the end flange, the rotation information is generated, and the rotation of the end flange is controlled so that the second angle and the third angle become 0, thereby ensuring that the first Z axis is parallel to the second Z axis, that is, the target position is parallel to the locator channel, and the posture positioning is completed. The solution provided by the embodiment of the present invention generates rotation information through calculation, and automatically performs posture positioning on the robot arm. Compared with manual planning and simulation, it reduces the time required to locate the target part of the machine equipment, and can achieve high efficiency in positioning the target part of the machine equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0049] Figure 1 A schematic diagram of a flow chart of a first posture positioning method provided by an embodiment of the present invention;

[0050] Figure 2 A schematic diagram of the structure of a positioner provided by an embodiment of the present invention;

[0051] Figure 3 A schematic diagram of the structure of a mechanical arm connection positioner provided by an embodiment of the present invention;

[0052] Figure 4 A schematic diagram of a rotation relationship between coordinate systems provided by an embodiment of the present invention;

[0053] Figure 5 A schematic flow chart of a second posture positioning method provided by an embodiment of the present invention;

[0054] Figure 6 A schematic diagram of a flow chart of a third posture positioning method provided by an embodiment of the present invention;

[0055] Figure 7A schematic diagram of a flow chart of a fourth posture positioning method provided by an embodiment of the present invention;

[0056] Figure 8 A schematic diagram of the structure of a posture positioning device provided by an embodiment of the present invention;

[0057] Fig. 9 A schematic diagram of the structure of a posture positioning device provided by an embodiment of the present invention;

[0058] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field based on the present invention belong to the scope of protection of the present invention.

[0060] In the process of positioning the target part of the machine equipment in the related technology, manual planning and simulation of the positioning path are required, which makes the positioning of the target part of the machine equipment take a long time and is inefficient.

[0061] In order to solve the above problems, the embodiments of the present invention provide a posture positioning method, device, electronic device and storage medium, which are described in detail below.

[0062] First, a posture positioning method provided by an embodiment of the present invention is described.

[0063] See also Figure 1 , which is a flow chart of a first posture positioning method provided in an embodiment of the present invention. The method can be applied to an electronic device with storage and control functions, such as a computer. The method includes the following steps S101 to S103.

[0064] Step S101: When receiving the posture positioning signal, the end flange of the robot arm is rotated to the required first angle, second angle, and third angle when determining the desired target position for posture positioning.

[0065] Wherein, the end of the above-mentioned robotic arm is connected to the locator through the above-mentioned end flange, the locator channel in the above-mentioned locator is parallel to the first Z axis of the first coordinate system, the above-mentioned second angle is the angle between the above-mentioned first Z axis and the second Z axis of the second coordinate system, the above-mentioned first coordinate system and the above-mentioned second coordinate system are right-handed spatial rectangular coordinate systems, the first plane where the first X axis and the first Y axis of the above-mentioned first coordinate system are located and the second plane where the second X axis and the second Y axis of the above-mentioned second coordinate system are located have an intersection line, the above-mentioned first angle is the angle between the above-mentioned second X axis and the above-mentioned intersection line, and the above-mentioned third angle is the angle between the above-mentioned first X axis and the above-mentioned intersection line; the above-mentioned target position is located on the above-mentioned second Z axis; the above-mentioned first coordinate system and the above-mentioned second coordinate system are both on the robotic arm base of the above-mentioned robotic arm.

[0066] Specifically, in one case, the above-mentioned attitude positioning signal may be automatically generated and sent by a machine according to a predetermined program; in another case, the above-mentioned attitude positioning signal may be manually triggered or input.

[0067] For the above locators, see Figure 2 , is a schematic diagram of the structure of a locator provided by an embodiment of the present invention. Figure 2 In the figure, the part indicated by the arrow is the locator channel; Figure 2 The part outlined by the dotted line is connected to the end flange of the robot arm. Figure 3 , is a schematic diagram of the structure of a mechanical arm connection positioner provided by an embodiment of the present invention. Figure 3 In the figure, the part other than the positioner is the robot arm; Figure 3 Arrows are also used to indicate the connection between the end flange and the positioner and the base of the robot arm.

[0068] For the first coordinate system and the second coordinate system mentioned above, the following Figure 4 See Figure 4 , is a schematic diagram of a structure of a rotation relationship between coordinate systems provided by an embodiment of the present invention. Figure 4 In the embodiment, the first X-axis, the first Y-axis, and the first Z-axis are perpendicular to each other, and the second X-axis, the second Y-axis, and the second Z-axis are perpendicular to each other. Figure 4 It can be seen that the line where the axis N is located is the intersection line between the first plane and the second plane mentioned above; Figure 4 The angle α in is the first angle, the angle β is the second angle, and the angle γ is the third angle. Figure 4 From the rotation relationship between the first coordinate system and the second coordinate system, and the definitions of the first angle, the second angle, and the third angle, it can be known that the first angle, the second angle, and the third angle are a set of Euler angles representing the rotation relationship between the first coordinate system and the second coordinate system. Figure 4This is just an example. In the embodiment of the present invention, the origins of the first coordinate system and the second coordinate system may or may not coincide with each other. For the direction of the first X-axis or the first Y-axis, there are no other specific requirements except the above description. For the direction of the second X-axis or the second Y-axis, there are no other specific requirements except the above description.

[0069] according to Figure 4 As shown in the figure, the second coordinate system is used as the reference coordinate system. When the attitude positioning signal is received, the rotation matrix between the two coordinate systems is determined based on the known first coordinate system and the second coordinate system, and then the determined rotation matrix is ​​decomposed into three independent sub-rotation matrices, each of which corresponds to an Euler angle, that is, one sub-rotation matrix corresponds to the first angle, another sub-rotation matrix corresponds to the second angle, and another sub-rotation matrix corresponds to the third angle. After obtaining the three sub-rotation matrices described above, the Euler angles can be extracted from the sub-rotation matrices according to the relevant technology, that is, the first angle, the second angle, and the third angle can be extracted.

[0070] Step S102: Generate rotation information including the information of the first angle.

[0071] The rotation information is used to make the second angle and the third angle become 0 after the end flange is rotated based on the rotation information.

[0072] After determining the first angle, the second angle, and the third angle, the rotation information is generated according to the rotation target of making the second angle and the third angle 0, and the rotation information can represent the target posture that the robot arm is expected to reach. Specifically, the rotation information can be represented in the form of a matrix. After the matrix representing the rotation information is generated, the rotation behavior of the robot arm can be determined in combination with the current posture of the robot arm, that is, the posture of the first coordinate system relative to the second coordinate system.

[0073] Step S103: controlling the rotation of the end flange based on the rotation information.

[0074] According to the determined rotation information, the robot arm is adjusted to drive the end flange to rotate so that the second angle and the third angle become 0. Specifically, one rotation situation may be to first rotate one axis to make one of the second angle and the third angle become 0, and then rotate another axis to make the other of the second angle and the third angle become 0. Another rotation situation may be to make the second angle and the third angle become 0 through compound rotation.

[0075] As can be seen from the above, in the solution provided by the embodiment of the present invention, the first coordinate system and the second coordinate system are defined on the base of the robot arm, and the locator channel is parallel to the first Z axis, and the target position is located on the second Z axis. After calculating the first angle, the second angle, and the third angle required to rotate the end flange, the rotation information is generated, and the end flange is controlled to rotate so that the second angle and the third angle become 0, thereby ensuring that the first Z axis is parallel to the second Z axis, that is, the target position is parallel to the locator channel, and the posture positioning is completed. The solution provided by the embodiment of the present invention generates rotation information by calculation, automatically positions the robot arm, and compared with manual planning and simulation, it reduces the time required for positioning the target part of the machine equipment, and can achieve high efficiency in positioning the target part of the machine equipment. In addition, the solution provided by the embodiment of the present invention only needs to make the second angle and the third angle become 0, and ensure that the first Z axis is parallel to the second Z axis. Compared with the related art, it can reduce the amount of operation on the robot arm and reduce the risk of collision with other objects during the operation of the robot arm.

[0076] See also Figure 5 , is a flow chart of a second posture positioning method provided by an embodiment of the present invention, which is similar to the above Figure 1 Compared with the embodiment shown, the above step S101 can be implemented by the following steps S101A and S101B.

[0077] Step S101A: when the posture positioning signal is received, determine a first conversion matrix between a third coordinate system on the end flange of the robot arm and a fourth coordinate system at the desired target position.

[0078] Specifically, the third coordinate system is pre-defined on the end flange of the robot arm, and the fourth coordinate system is pre-defined at the target position. Since the third and fourth coordinate systems are pre-defined known coordinate systems, the first transformation matrix can be determined based on the definition information of the third and fourth coordinate systems according to the relevant technology. Specifically, an absolute coordinate system can be pre-defined, and other coordinate systems are established under the absolute coordinate system; illustratively, the definition information of the third coordinate system includes the coordinate value of the origin of the third coordinate system in the absolute coordinate system, and the direction of each axis of the third coordinate system in the absolute coordinate system, and the definition information of other coordinate systems is similar to the definition information of the third coordinate system described. The method of determining the first transformation matrix can be described as follows: One method is to use the three-point method, such as recording the coordinates of the origin of the third coordinate system in the absolute coordinate system, recording the coordinates of the origin of the fourth coordinate system in the absolute coordinate system, and using the coordinates of the origins of the third and fourth coordinate systems in the absolute coordinate system to calculate the first transformation matrix between the third and fourth coordinate systems. One way is to use the singular value decomposition method, based on at least three corresponding points between the third coordinate system and the fourth coordinate system, to solve the rigid transformation (including rotation and translation) between the two coordinate systems by minimizing the residual square sum between the corresponding points to obtain the first transformation matrix. If point A in the third coordinate system and point B in the fourth coordinate system are a pair of corresponding points, then the coordinate value of point A in the third coordinate system is the same as the coordinate value of point B in the fourth coordinate system.

[0079] Specifically, based on the above-mentioned first transformation matrix, the position and posture of the above-mentioned third coordinate system relative to the fourth coordinate system can be determined, that is, the position and posture of the third coordinate system from the perspective of the fourth coordinate system can be determined. For example, by multiplying the coordinate vector of the target point in the third coordinate system with the first transformation matrix, the position and posture of the target point in the fourth coordinate system can be obtained.

[0080] Step S101B: Determine the first angle, the second angle, and the third angle required to rotate the end flange based on the first conversion matrix.

[0081] After determining the first transformation matrix, the first transformation matrix is ​​decomposed into three independent sub-transformation matrices, each of which corresponds to an Euler angle, that is, one sub-transformation matrix corresponds to the first angle, another sub-transformation matrix corresponds to the second angle, and another sub-transformation matrix corresponds to the third angle. After obtaining the three sub-transformation matrices described above, the matrix elements in the sub-transformation matrix can be extracted according to relevant technologies, and then the extracted matrix elements are processed using trigonometric functions, and finally the Euler angles are extracted from the sub-transformation matrix, that is, the first angle, the second angle, and the third angle are extracted.

[0082] It can be seen from the above that in the solution provided by the embodiment of the present invention, the first transformation matrix is ​​determined according to the defined third coordinate system and fourth coordinate system, and the first angle, second angle and third angle can be determined according to the first transformation matrix.

[0083] See also Figure 6 , is a flow chart of a third posture positioning method provided by an embodiment of the present invention, which is similar to the above Figure 5 Compared with the embodiment shown, the above step S101A can be implemented by the following steps S101A1 and S101A2.

[0084] Step S101A1: upon receiving the posture positioning signal, determine the second transformation matrix between the fourth coordinate system at the desired target position and the first coordinate system, and the third transformation matrix between the third coordinate system on the end flange of the robot arm and the first coordinate system.

[0085] Specifically, if a fourth coordinate system is pre-defined at the target position, the second transformation matrix between the two coordinate systems can be determined based on the definition information of the fourth coordinate system and the first coordinate system. That is, based on the second transformation matrix, the posture of the fourth coordinate system from the perspective of the first coordinate system can be determined.

[0086] In addition, if a third coordinate system is defined at the end flange in advance, the third conversion matrix between the third coordinate system and the first coordinate system can be determined according to the definition information of the third coordinate system and the first coordinate system. According to the third conversion matrix, the position and posture of the third coordinate system under the perspective of the first coordinate system can be determined. In one embodiment of the present invention, the third conversion matrix can be obtained through communication. Specifically, the electronic device controlling the robotic arm communicates with the joint motors, sensors, etc. of the robotic arm, collects and obtains the angle information of each joint of the robotic arm in real time, and then calculates the position and posture of the third coordinate system defined at the end flange in the first coordinate system, thereby obtaining the third conversion matrix. In the process of obtaining the third conversion matrix through communication, a positive kinematics algorithm, such as the T matrix method, can be used to calculate the position and posture of the end flange of the robotic arm according to the obtained robotic arm joint angle and connecting rod parameters, and obtain the position and posture of the third coordinate system in the first coordinate system. The communication between the electronic device controlling the robotic arm and the joint motors, sensors, etc. of the robotic arm often follows a specific protocol, such as CAN (Controller Area Network) bus, EtherCAT (Ether Control Automation Technology, Ethernet Control Automation Technology), etc.

[0087] Step S101A2: multiplying the third transformation matrix by the inverse matrix of the second transformation matrix to determine a first transformation matrix between the third coordinate system and the fourth coordinate system.

[0088] After obtaining the second transformation matrix and the third transformation matrix, the inverse matrix of the second transformation matrix is ​​multiplied by the third transformation matrix, and the obtained first transformation matrix can be used to determine the position and posture of the third coordinate system relative to the fourth coordinate system, that is, to determine the position and posture of the third coordinate system from the perspective of the fourth coordinate system.

[0089] From the above, it can be seen that in the solution provided in the embodiment of the present invention, according to the first coordinate system, the fourth coordinate system at the target position, and the third coordinate system on the end flange, the second transformation matrix between the fourth coordinate system and the first coordinate system, and the third transformation matrix between the third coordinate system and the first coordinate system are respectively determined, and then the first transformation matrix can be determined according to the second transformation matrix and the third transformation matrix.

[0090] See also Figure 7 , is a flow chart of a fourth posture positioning method provided by an embodiment of the present invention, which is similar to the aforementioned Figure 6 Compared with the embodiment shown, the above step S101A1 can be implemented by the following steps S101A1a and S101A1b.

[0091] Step S101A1a: When the posture positioning signal is received, determine the fourth transformation matrix between the fifth coordinate system on the image and the above-mentioned first coordinate system, determine the fifth transformation matrix representing the relationship between the desired target position and the above-mentioned fifth coordinate system through planning, and the third transformation matrix between the third coordinate system on the end flange of the robot arm and the above-mentioned first coordinate system.

[0092] Specifically, the above image can be understood as a planning and design drawing. The above image is pre-planned and designed, and the coordinate points corresponding to the above target positions in the real scene are marked on the above image, that is, the marked coordinate points are coordinate points in the fifth coordinate system defined on the image. According to the definition information of the fifth coordinate system and the first coordinate system, the fourth transformation matrix between the two coordinate systems is determined, that is, according to the fourth transformation matrix, the posture of the fifth coordinate system from the perspective of the first coordinate system can be determined. In one embodiment of the present invention, the fourth transformation matrix can be obtained by image registration. Specifically, key features can be first extracted from the above image and the image of the robotic arm base. The extracted key features can be points, lines, edges, etc. in the image; then, a similarity measurement method, such as cross-correlation, sequential similarity detection or mutual information method, is used to compare the key features extracted from the above image and the image of the robotic arm base to find the best match between the two; after finding the matching key features and determining the matching feature point pairs, the matching feature point pairs are used to calculate the spatial transformation parameters between the above image and the image of the robotic arm base. The obtained spatial transformation parameters describe the coordinate transformation between the fifth coordinate system and the first coordinate system, that is, according to the above spatial transformation parameters, the above fourth transformation matrix can be finally obtained. According to the fourth transformation matrix, the points on the above image can be mapped to the first coordinate system. In the related technology, there are image registration methods based on grayscale information, image registration methods based on transform domains, and image registration methods based on features. The appropriate image registration method can be selected according to actual needs.

[0093] In an embodiment of the present invention, the fifth transformation matrix can be obtained by software planning. Specifically, the software planning system in the electronic device obtains the coordinate data of the image in the fourth coordinate system and the coordinate data of the target position in the fifth coordinate system, extracts features from the coordinate data of the image and the coordinate data of the target position for registration, calculates the spatial transformation parameters based on the registration results, and then generates a fifth transformation matrix representing the relationship between the desired target position and the fifth coordinate system based on these spatial transformation parameters. Through the fifth transformation matrix, the points on the image can be mapped to the fifth coordinate system.

[0094] Specifically, the determination of the third conversion matrix can refer to Figure 6 The contents in the illustrated embodiment will not be repeated here.

[0095] In one embodiment of the present invention, the above-mentioned image is a CT (Computed Tomography) image or an X-ray film.

[0096] Step S101A1b: multiplying the fourth transformation matrix by the fifth transformation matrix to determine a second transformation matrix between the fourth coordinate system and the first coordinate system.

[0097] Since the fourth transformation matrix can determine the position and posture of the fifth coordinate system from the perspective of the first coordinate system, and the fifth transformation matrix can determine the position and posture of the fourth coordinate system from the perspective of the fifth coordinate system, the second transformation matrix obtained by multiplying the fourth transformation matrix by the fifth transformation matrix can determine the position and posture of the fourth coordinate system from the perspective of the first coordinate system.

[0098] From the above, it can be seen that in the solution provided in the embodiment of the present invention, the fourth transformation matrix between the fifth coordinate system and the first coordinate system, and the fifth transformation matrix between the fourth coordinate system and the fifth coordinate system are determined respectively according to the first coordinate system, the fifth coordinate system, and the fourth coordinate system, and then the second transformation matrix can be determined according to the fourth transformation matrix and the fifth transformation matrix.

[0099] In one embodiment of the present invention, the above step S102 can be implemented by following steps A to C.

[0100] Step A: Generate a sixth transformation matrix according to the first angle.

[0101] The sixth transformation matrix indicates that if the second coordinate system is rotated according to the sixth transformation matrix, the angle between the second X-axis and the intersection line is the first angle, and the second angle and the third angle are 0.

[0102] The first angle determined in step S101 is Figure 4 The α angle in , and a new set of Euler angles is defined thereby: {α, 0, 0}, according to this new set of Euler angles, the sub-rotation matrix corresponding to each Euler angle element is determined, and then the rotation matrix corresponding to this new set of Euler angles is obtained according to the determined sub-rotation matrix, that is, the sixth transformation matrix.

[0103] Step B: obtaining a seventh transformation matrix characterizing the relationship between the positioner channel and the end flange through online calibration.

[0104] Since the sixth coordinate system is predefined on the locator channel and the third coordinate system is predefined at the end flange of the manipulator, the seventh transformation matrix between the sixth coordinate system and the third coordinate system can be determined based on the definition information of the sixth coordinate system and the third coordinate system. According to the seventh transformation matrix, the posture of the sixth coordinate system under the perspective of the third coordinate system can be determined. In one embodiment of the present invention, the seventh transformation matrix can be obtained by online calibration. Specifically, the locator is physically connected to the end flange of the manipulator. When the manipulator is in a specific posture, sensors such as laser trackers, inertial measurement elements, and industrial cameras can be used to obtain the end flange posture information of the manipulator and the locator channel posture information. Then, based on the obtained information, the relative relationship between the end flange posture of the manipulator and the locator channel posture is calculated to obtain the seventh transformation matrix.

[0105] Step C: Based on the sixth conversion matrix, the seventh conversion matrix and the second conversion matrix, an eighth conversion matrix is ​​determined as rotation information.

[0106] If the desired posture of the end flange of the manipulator in the first coordinate system is represented by the eighth transformation matrix, the following relationship exists: the eighth transformation matrix × the seventh transformation matrix × the sixth transformation matrix = the second transformation matrix. Therefore, after determining the sixth transformation matrix, the seventh transformation matrix, and the second transformation matrix, the eighth transformation matrix can be calculated, and the eighth transformation matrix is ​​the rotation information. The electronic device adjusts the manipulator according to the eighth transformation matrix, drives the end flange to rotate, so that the posture finally reached by the end flange is the posture in the first coordinate system represented by the eighth transformation matrix. In this posture, the first angle remains unchanged, and the second angle and the third angle are 0.

[0107] From the above, it can be seen that in the solution provided in the embodiment of the present invention, the sixth transformation matrix is ​​generated according to the first angle obtained, and the seventh transformation matrix is ​​obtained according to the third coordinate system and the sixth coordinate system defined on the locator channel. Combined with the second transformation matrix, the eighth transformation matrix as rotation information can be determined.

[0108] In one embodiment of the present invention, the following Figure 8 The solution provided by the present invention is described. Figure 8 A schematic diagram of a posture positioning device provided by an embodiment of the present invention, Figure 8 In the figure, the object indicated by number ① is the positioner, the object indicated by number ② is the display screen, the object indicated by number ③ is the robot arm, the object indicated by number ④ is the trolley, the object indicated by number ⑤ is the pedal, the object indicated by number ⑥ is the connection between the end flange and the positioner ①, and the object indicated by number ⑦ is the base of the robot arm. Figure 8The middle end flange is connected to the positioner ① in a vertical relationship; the display screen ② is used to display the instructions issued by the electronic device controlling the mechanical arm ③, the returned results and other information; the trolley ④ is a loading platform for the display screen ② and the mechanical arm ③; the pedal ⑤ is connected to the electronic device controlling the mechanical arm ③ for communication, and the staff can trigger a preset electrical signal by stepping on the pedal ⑤, and the electronic device controlling the mechanical arm ③ responds to the preset electrical signal to carry out the subsequent process. Specifically, the scheme provided by the present invention can be described as:

[0109] First, when the staff confirms that the locator channel needs to be positioned, the staff steps on the pedal to trigger a preset electrical signal, namely, a posture positioning signal, which controls the electronic equipment of the robotic arm to respond to the posture positioning signal.

[0110] Afterwards, the seventh transformation matrix M1 is obtained through online calibration.

[0111] The fourth transformation matrix M2 is obtained through image registration.

[0112] The fifth conversion matrix M3 is obtained through software planning.

[0113] The third conversion matrix M4 is obtained through communication.

[0114] The following calculation is performed: M2×M3, and a second transformation matrix M6 between the fourth coordinate system at the desired target position and the first coordinate system on the robot arm base is obtained.

[0115] The inverse matrix of M6 is calculated: inv(M6), and then the following calculation is performed: inv(M6) ×M4 to obtain the first transformation matrix M7 between the third coordinate system on the end flange of the robot arm and the fourth coordinate system at the desired target position.

[0116] M7 is converted into Euler angles to obtain a first angle α, and then a sixth transformation matrix M5 is obtained according to the Euler angles {α, 0, 0}.

[0117] According to the transformation relationship M8×M1×M5=M6, the desired position of the end flange of the robot arm in the first coordinate system is calculated: the eighth transformation matrix M8.

[0118] M8 is the required rotation information. The electronic device adjusts the robotic arm based on the rotation information to drive the end flange to rotate.

[0119] For the above combination Figure 8 The detailed contents of the scheme description can be referred to the contents of the aforementioned embodiments of the posture positioning method, which will not be repeated here.

[0120] Corresponding to the aforementioned posture positioning method, an embodiment of the present invention further provides a posture positioning device.

[0121] See also Fig. 9 , is a schematic diagram of the structure of a posture positioning device provided by an embodiment of the present invention, the device comprising:

[0122] The first determination module 901 is used to determine the first angle, the second angle, and the third angle required for the end flange of the robot arm to rotate when the desired target position is performed for posture positioning when the posture positioning signal is received.

[0123] Wherein, the end of the above-mentioned robotic arm is connected to the locator through the above-mentioned end flange, the locator channel in the above-mentioned locator is parallel to the first Z axis of the first coordinate system, the above-mentioned second angle is the angle between the above-mentioned first Z axis and the second Z axis of the second coordinate system, the above-mentioned first coordinate system and the above-mentioned second coordinate system are right-handed spatial rectangular coordinate systems, the first plane where the first X axis and the first Y axis of the above-mentioned first coordinate system are located and the second plane where the second X axis and the second Y axis of the above-mentioned second coordinate system are located have an intersection line, the above-mentioned first angle is the angle between the above-mentioned second X axis and the above-mentioned intersection line, and the above-mentioned third angle is the angle between the above-mentioned first X axis and the above-mentioned intersection line; the above-mentioned target position is located on the above-mentioned second Z axis; the above-mentioned first coordinate system and the above-mentioned second coordinate system are both on the robotic arm base of the above-mentioned robotic arm.

[0124] The generating module 902 is used to generate rotation information including information of the first angle, and the rotation information is used to make the second angle and the third angle become 0 after the end flange is rotated based on the rotation information.

[0125] The rotation control module 903 is used to control the rotation of the terminal flange based on the rotation information.

[0126] As can be seen from the above, in the solution provided by the embodiment of the present invention, the first coordinate system and the second coordinate system are defined on the base of the robot arm, and the locator channel is parallel to the first Z axis, and the target position is located on the second Z axis. After calculating the first angle, the second angle, and the third angle required to rotate the end flange, the rotation information is generated, and the end flange is controlled to rotate so that the second angle and the third angle become 0, thereby ensuring that the first Z axis is parallel to the second Z axis, that is, the target position is parallel to the locator channel, and the posture positioning is completed. The solution provided by the embodiment of the present invention generates rotation information by calculation, automatically positions the robot arm, and compared with manual planning and simulation, it reduces the time required for positioning the target part of the machine equipment, and can achieve high efficiency in positioning the target part of the machine equipment. In addition, the solution provided by the embodiment of the present invention only needs to make the second angle and the third angle become 0, and ensure that the first Z axis is parallel to the second Z axis. Compared with the related art, it can reduce the amount of operation on the robot arm and reduce the risk of collision with other objects during the operation of the robot arm.

[0127] In one embodiment of the present invention, the first determining module 901 includes:

[0128] The first determination submodule 901A is used to determine a first conversion matrix between a third coordinate system on the end flange of the robot arm and a fourth coordinate system at the desired target position when a posture positioning signal is received.

[0129] The second determination submodule 901B is used to determine the first angle, the second angle, and the third angle required to rotate the end flange based on the first conversion matrix.

[0130] It can be seen from the above that in the solution provided by the embodiment of the present invention, the first transformation matrix is ​​determined according to the defined third coordinate system and fourth coordinate system, and the first angle, second angle and third angle can be determined according to the first transformation matrix.

[0131] In one embodiment of the present invention, the first determining submodule 901A includes:

[0132] The first determination unit 901A1 is used to determine the second transformation matrix between the fourth coordinate system at the desired target position and the above-mentioned first coordinate system, and the third transformation matrix between the third coordinate system on the end flange of the robot arm and the above-mentioned first coordinate system when receiving the posture positioning signal.

[0133] The second determining unit 901A2 is configured to determine a first transformation matrix between the third coordinate system and the fourth coordinate system by multiplying the third transformation matrix by the inverse matrix of the second transformation matrix.

[0134] From the above, it can be seen that in the solution provided in the embodiment of the present invention, according to the first coordinate system, the fourth coordinate system at the target position, and the third coordinate system on the end flange, the second transformation matrix between the fourth coordinate system and the first coordinate system, and the third transformation matrix between the third coordinate system and the first coordinate system are respectively determined, and then the first transformation matrix can be determined according to the second transformation matrix and the third transformation matrix.

[0135] In one embodiment of the present invention, the first determining unit 901A1 is specifically configured to:

[0136] In the case of receiving the attitude positioning signal, determining a fourth transformation matrix between a fifth coordinate system on the image and the first coordinate system, and determining a fifth transformation matrix representing the relationship between the desired target position and the fifth coordinate system through planning;

[0137] The fourth transformation matrix is ​​multiplied by the fifth transformation matrix to determine a second transformation matrix between the fourth coordinate system and the first coordinate system.

[0138] From the above, it can be seen that in the solution provided in the embodiment of the present invention, the fourth transformation matrix between the fifth coordinate system and the first coordinate system, and the fifth transformation matrix between the fourth coordinate system and the fifth coordinate system are determined respectively according to the first coordinate system, the fifth coordinate system, and the fourth coordinate system, and then the second transformation matrix can be determined according to the fourth transformation matrix and the fifth transformation matrix.

[0139] In one embodiment of the present invention, the above-mentioned image is a CT image or an X-ray film.

[0140] In one embodiment of the present invention, the generating module 902 is specifically used for:

[0141] Generate a sixth transformation matrix according to the first angle, wherein the sixth transformation matrix indicates that if the second coordinate system is rotated according to the sixth transformation matrix, the angle between the second X-axis and the intersection line is the first angle, and the second angle and the third angle are 0;

[0142] A seventh transformation matrix characterizing the relationship between the positioner channel and the end flange is obtained through online calibration;

[0143] Based on the sixth conversion matrix, the seventh conversion matrix, and the second conversion matrix, an eighth conversion matrix is ​​determined as rotation information.

[0144] From the above, it can be seen that in the solution provided in the embodiment of the present invention, the sixth transformation matrix is ​​generated according to the first angle obtained, and the seventh transformation matrix is ​​obtained according to the third coordinate system and the sixth coordinate system defined on the locator channel. Combined with the second transformation matrix, the eighth transformation matrix as rotation information can be determined.

[0145] See also Fig.10 , is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, including a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002, and the memory 1003 communicate with each other through the communication bus 1004;

[0146] Memory 1003, used for storing computer programs;

[0147] The processor 1001 is used to implement any step of the aforementioned posture positioning method when executing the program stored in the memory 1003.

[0148] As can be seen from the above, in the solution provided by the embodiment of the present invention, the first coordinate system and the second coordinate system are defined on the base of the robot arm, and the locator channel is parallel to the first Z axis, and the target position is located on the second Z axis. After calculating the first angle, the second angle, and the third angle required to rotate the end flange, the rotation information is generated, and the end flange is controlled to rotate so that the second angle and the third angle become 0, thereby ensuring that the first Z axis is parallel to the second Z axis, that is, the target position is parallel to the locator channel, and the posture positioning is completed. The solution provided by the embodiment of the present invention generates rotation information by calculation, automatically positions the robot arm, and compared with manual planning and simulation, it reduces the time required for positioning the target part of the machine equipment, and can achieve high efficiency in positioning the target part of the machine equipment. In addition, the solution provided by the embodiment of the present invention only needs to make the second angle and the third angle become 0, and ensure that the first Z axis is parallel to the second Z axis. Compared with the related art, it can reduce the amount of operation on the robot arm and reduce the risk of collision with other objects during the operation of the robot arm.

[0149] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0150] The communication interface is used for communication between the above electronic device and other devices.

[0151] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0152] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0153] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned posture positioning methods are implemented.

[0154] When the computer program stored in the computer-readable storage medium provided by the embodiment of the present invention is used for posture positioning, the first coordinate system and the second coordinate system defined are both on the base of the mechanical arm, and the locator channel is parallel to the first Z axis, and the target position is located on the second Z axis. After calculating the first angle, the second angle, and the third angle required for rotating the end flange, the rotation information is generated, and the rotation of the end flange is controlled to make the second angle and the third angle become 0, thereby ensuring that the first Z axis is parallel to the second Z axis, that is, making the target position parallel to the locator channel, and completing the posture positioning. The solution provided by the embodiment of the present invention generates rotation information by calculation, automatically positions the mechanical arm, and compared with manual planning and simulation, reduces the time required for positioning the target part of the machine equipment, and can achieve high efficiency in positioning the target part of the machine equipment. In addition, the solution provided by the embodiment of the present invention only needs to make the second angle and the third angle become 0, and ensure that the first Z axis is parallel to the second Z axis. Compared with the related art, it can reduce the amount of operation on the mechanical arm and reduce the risk of collision with other objects during the operation of the mechanical arm.

[0155] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any posture positioning method in the above embodiments.

[0156] When the computer program product provided by the embodiment of the present invention is used for posture positioning, the first coordinate system and the second coordinate system are defined on the base of the mechanical arm, and the locator channel is parallel to the first Z axis, and the target position is located on the second Z axis. After calculating the first angle, the second angle, and the third angle required to rotate the end flange, the rotation information is generated, and the end flange is controlled to rotate so that the second angle and the third angle become 0, thereby ensuring that the first Z axis is parallel to the second Z axis, that is, the target position is parallel to the locator channel, and the posture positioning is completed. The solution provided by the embodiment of the present invention generates rotation information by calculation, automatically positions the mechanical arm, and compared with manual planning and simulation, the time required for positioning the target part of the machine equipment is reduced, and the high efficiency of positioning the target part of the machine equipment can be achieved. In addition, the solution provided by the embodiment of the present invention only needs to make the second angle and the third angle become 0, and ensure that the first Z axis is parallel to the second Z axis. Compared with the related art, it can reduce the amount of operation on the mechanical arm and reduce the risk of collision with other objects during the operation of the mechanical arm.

[0157] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0158] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0159] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0160] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A posture positioning method, characterized in that: The method comprises: When receiving the attitude positioning signal, the end flange of the manipulator is rotated to the required first angle, second angle, and third angle when determining the desired target position for attitude positioning; Wherein, the end of the robotic arm is connected to the locator through the end flange, the locator channel in the locator is parallel to the first Z axis of the first coordinate system, the second angle is the angle between the first Z axis and the second Z axis of the second coordinate system, the first coordinate system and the second coordinate system are right-handed spatial rectangular coordinate systems, a first plane where the first X axis and the first Y axis of the first coordinate system are located and a second plane where the second X axis and the second Y axis of the second coordinate system are located have an intersection line, the first angle is the angle between the second X axis and the intersection line, and the third angle is the angle between the first X axis and the intersection line; the target position is located on the second Z axis; the first coordinate system and the second coordinate system are both on the robotic arm base of the robotic arm; generating rotation information including information about the first angle, wherein the rotation information is used to make the second angle and the third angle become 0 after the end flange is rotated based on the rotation information; The end flange is controlled to rotate based on the rotation information.

2. The method according to claim 1, characterized in that When determining the desired target position for posture positioning, the first angle, second angle, and third angle required for the end flange of the robotic arm to rotate include: Determine a first transformation matrix between a third coordinate system on the end flange of the robot arm and a fourth coordinate system at the desired target position; A first angle, a second angle, and a third angle required for rotating the end flange are determined based on the first transformation matrix.

3. The method according to claim 2, characterized in that The step of determining a first transformation matrix between a third coordinate system on the end flange of the robot arm and a fourth coordinate system at the desired target position includes: Determine a second conversion matrix between a fourth coordinate system at a desired target position and the first coordinate system, and a third conversion matrix between a third coordinate system on an end flange of the robotic arm and the first coordinate system; The inverse matrix of the second transformation matrix is ​​multiplied by the third transformation matrix to determine a first transformation matrix between the third coordinate system and the fourth coordinate system.

4. The method according to claim 3, characterized in that The determining of a second transformation matrix between a fourth coordinate system at a desired target position and the first coordinate system comprises: Determine a fourth transformation matrix between a fifth coordinate system on the image and the first coordinate system, and determine a fifth transformation matrix representing a relationship between a desired target position and the fifth coordinate system through planning; The fourth transformation matrix is ​​multiplied by the fifth transformation matrix to determine a second transformation matrix between the fourth coordinate system and the first coordinate system.

5. The method according to claim 3 or 4, characterized in that: The generating the rotation information including the information of the first angle comprises: Generate a sixth transformation matrix according to the first angle, wherein the sixth transformation matrix indicates that if the second coordinate system is rotated according to the sixth transformation matrix, the angle between the second X-axis and the intersection line is the first angle, and the second angle and the third angle are 0; Obtaining a seventh transformation matrix characterizing the relationship between the locator channel and the end flange through online calibration; Based on the sixth conversion matrix, the seventh conversion matrix, and the second conversion matrix, an eighth conversion matrix is ​​determined as rotation information.

6. The method according to claim 4, characterized in that The image is a computerized tomography (CT) image or an X-ray film.

7. A posture positioning device, characterized in that: The device comprises: A first determination module is used to determine the first angle, the second angle, and the third angle required for the end flange of the robot arm to rotate when the desired target position is performed for posture positioning when the posture positioning signal is received; Wherein, the end of the robotic arm is connected to the locator through the end flange, the locator channel in the locator is parallel to the first Z axis of the first coordinate system, the second angle is the angle between the first Z axis and the second Z axis of the second coordinate system, the first coordinate system and the second coordinate system are right-handed spatial rectangular coordinate systems, a first plane where the first X axis and the first Y axis of the first coordinate system are located and a second plane where the second X axis and the second Y axis of the second coordinate system are located have an intersection line, the first angle is the angle between the second X axis and the intersection line, and the third angle is the angle between the first X axis and the intersection line; the target position is located on the second Z axis; the first coordinate system and the second coordinate system are both on the robotic arm base of the robotic arm; A generating module, configured to generate rotation information including information of the first angle, wherein the rotation information is used to make the second angle and the third angle become 0 after the end flange is rotated based on the rotation information; A rotation control module is used to control the rotation of the end flange based on the rotation information.

8. The device according to claim 7, characterized in that The first determining module includes: A first determination submodule is used to determine a first conversion matrix between a third coordinate system on the end flange of the robot arm and a fourth coordinate system at a desired target position when a posture positioning signal is received; The second determination submodule is used to determine the first angle, the second angle, and the third angle required to rotate the end flange based on the first conversion matrix.

9. The device according to claim 8, characterized in that The first determining submodule includes: A first determination unit is used to determine, when receiving the attitude positioning signal, a second conversion matrix between a fourth coordinate system at a desired target position and the first coordinate system, and a third conversion matrix between a third coordinate system on an end flange of the manipulator and the first coordinate system; The second determining unit is configured to determine a first transformation matrix between the third coordinate system and the fourth coordinate system by multiplying the third transformation matrix by the inverse matrix of the second transformation matrix.

10. The device according to claim 9, characterized in that The first determining unit is specifically configured to: In the case of receiving the attitude positioning signal, determining a fourth transformation matrix between a fifth coordinate system on the image and the first coordinate system, and determining a fifth transformation matrix representing the relationship between the desired target position and the fifth coordinate system through planning; The fourth transformation matrix is ​​multiplied by the fifth transformation matrix to determine a second transformation matrix between the fourth coordinate system and the first coordinate system.

11. The device according to claim 9 or 10, characterized in that The generation module is specifically used for: Generate a sixth transformation matrix according to the first angle, wherein the sixth transformation matrix indicates that if the second coordinate system is rotated according to the sixth transformation matrix, the angle between the second X-axis and the intersection line is the first angle, and the second angle and the third angle are 0; Obtaining a seventh transformation matrix characterizing the relationship between the locator channel and the end flange through online calibration; Based on the sixth conversion matrix, the seventh conversion matrix, and the second conversion matrix, an eighth conversion matrix is ​​determined as rotation information.

12. The device according to claim 10, characterized in that The image is a computerized tomography (CT) image or an X-ray film.

13. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 6 are implemented.