Path planning method and apparatus for robotic arm, storage medium, and computer device
By using the transition point segment planning method in neurosurgery, the problem of path planning failure of the six-degree-of-freedom robotic arm in head puncture surgery is solved, the safe and efficient movement of the robotic arm is achieved, and the accuracy of the surgery is improved. and security.
Patent Information
- Application Number
- PCT/CN2024/082918
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-18
- Filing Date
- 2024-03-21
- Publication Date
- 2024-09-26
AI Technical Summary
In neurosurgery, the six-degree-of-freedom robotic arm may collide during head puncture surgery, causing path planning to fail and affecting the accuracy and safety of the surgery.
By determining the transition point, planning the path of the robotic arm segmentally, and using the preset path planning algorithm and inverse kinematics solution to ensure that the end of the robotic arm does not collide during the movement, achieving safe path planning from the starting point to the target point.
It improves the accuracy and success rate of robotic arm path planning, ensures safety and efficiency during the operation, reduces the rotation range of the robotic arm end, and enhances the stability of the operation.
Smart Images

Figure CN2024082918_26092024_PF_FP
Abstract
Description
Path planning method, device, storage medium and computer equipment for robotic arm
[0001] Cross-references
[0002] This application claims priority to the Chinese application with application number CN202310303575.X filed on March 23, 2023, and the application number CN202311050776.X filed on August 18, 2023, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This specification relates to the field of medical device technology, and specifically to a robotic arm path planning method, device, storage medium, and computer equipment. Background Art
[0004] With the rapid development of medical robotics technology, more and more neurosurgeries are using robots to perform the corresponding surgical operations, and therefore the control requirements for neurosurgery robots are also increasing accordingly. Conventional neurosurgery robots include a six-degree-of-freedom robotic arm and a trolley, wherein the six-degree-of-freedom robotic arm is mounted on the trolley, and the actuator is mounted on the robotic arm. During the process of using a neurosurgery robot to perform a head puncture operation, the position of the patient's head and the head frame relative to the trolley is determined, and the actuator on the robotic arm reaches a certain puncture position on the patient's head to perform the operation. Since the patient's head may undergo more than one puncture operation, the robotic arm may move multiple times near the patient's head. Therefore, it is very important to plan the path of the robotic arm near the patient's head in advance.
[0005] Summary of the Invention
[0006] An embodiment of this specification provides a path planning method for a robotic arm, including: determining a transition point, which is located in the path of the end of the robotic arm moving from a starting point to a target point; and determining a path planning result of the robotic arm based on the starting point, the transition point and the target point.
[0007] An embodiment of the present specification provides a path planning device for a robotic arm, comprising: a determination module for determining a transition point, wherein the transition point is located in the path of the end of the robotic arm moving from a starting point to a target point; and a path planning module for determining a path planning result of the robotic arm based on the starting point, the transition point, and the target point.
[0008] An embodiment of the present specification provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method described in any embodiment of the present specification are implemented.
[0009] An embodiment of the present specification provides a computer device, including a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of any method described in the present specification when executing the computer program.
[0010] An embodiment of the present specification provides a method for controlling a robotic arm, comprising: determining a transition point, wherein the transition point is located in the path of the end of the robotic arm moving from a starting point to a target point; determining a path planning result of the robotic arm based on the starting point, the transition point, and the target point; and controlling the movement of the robotic arm based on the path planning result. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] This specification will be further described in the form of exemplary embodiments, which will be described in detail with reference to the accompanying drawings. These embodiments are not limiting, and in these embodiments, like numbers represent like structures, wherein:
[0012] FIG1 is a schematic diagram of an application scenario of a path planning method for a robotic arm according to some embodiments of this specification;
[0013] FIG2A is an exemplary flow chart of a path planning method for a robotic arm according to some embodiments of this specification;
[0014] FIG2B is an exemplary flowchart of a path planning method for a robotic arm according to some embodiments of this specification;
[0015] FIG3 is an exemplary flow chart of a path planning method for a robotic arm according to some embodiments of this specification;
[0016] FIG4 is an exemplary flow chart of a path planning method for a robotic arm according to some embodiments of this specification;
[0017] FIG5 is an exemplary flowchart of determining a first joint angle of each joint of a robotic arm according to some embodiments of this specification;
[0018] FIG6 is an exemplary flowchart of determining a second joint angle of each joint of a robotic arm according to some embodiments of the present specification;
[0019] FIG7 is an exemplary flow chart of a method for controlling a robotic arm according to some embodiments of this specification;
[0020] FIG8 is an exemplary flow chart of a method for controlling a robotic arm according to some embodiments of this specification;
[0021] FIG9 is a schematic diagram of a control process of a robotic arm according to some embodiments of this specification;
[0022] FIG10 is an exemplary flow chart of a path planning method for a robotic arm according to some embodiments of this specification;
[0023] FIG11 is an exemplary flowchart of a method for determining a transition point according to some embodiments of this specification;
[0024] FIG12 is a schematic diagram of a method for determining a plane of a transition point according to some embodiments of this specification;
[0025] FIG13 is a schematic diagram of a path planning device for a robotic arm according to some embodiments of this specification;
[0026] FIG14 is a diagram illustrating an exemplary internal structure of a computer device according to some embodiments of the present specification. DETAILED DESCRIPTION
[0027] To more clearly illustrate the technical solutions of the embodiments of this specification, the following briefly describes the drawings required for describing the embodiments. Obviously, the drawings described below are merely examples or embodiments of this specification. Those skilled in the art can apply this specification to other similar scenarios based on these drawings without inventive effort. Unless otherwise apparent from the context or otherwise noted, the same reference numerals in the figures represent the same structure or operation.
[0028] It should be understood that the terms "system," "device," "unit," and / or "module" used herein are a method for distinguishing different components, elements, parts, portions, or assemblies at different levels. However, if other terms can achieve the same purpose, the terms may be replaced by other expressions.
[0029] As used in this specification and claims, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" do not refer to the singular but also include the plural. Generally speaking, the terms "comprises" and "include" only indicate the inclusion of the steps and elements specifically identified, and these steps and elements do not constitute an exclusive list. A method or apparatus may also include other steps or elements.
[0030] Flowcharts are used throughout this specification to illustrate the operations performed by systems according to embodiments of this specification. It should be understood that preceding or following operations do not necessarily need to be performed in exact order. Instead, the steps may be processed in reverse order or simultaneously. Furthermore, other operations may be added to these processes, or one or more operations may be removed from these processes.
[0031] Figure 1 is a schematic diagram of an application scenario of the path planning method for a robotic arm according to some embodiments of this specification. The path planning method for a robotic arm provided by the embodiments of this specification can be applied to the application scenario shown in Figure 1. As shown in Figure 1 a, a robotic arm 102 is mounted on a trolley 101, an actuator is mounted on the robotic arm 102, and a control device 103 is connected to the robotic arm 102. The control device 103 can be integrated into the trolley 101 (the integration method is shown in Figure 1), or the control device 103 can be set independently of the trolley 101. The control device 103 can plan the motion path of the robotic arm 102 around the target object (also called the target operation object) in advance and obtain the planned path information. Before the control device 103 plans a path, the control device 103 can be connected to an image scanning device or a data storage server (not shown in FIG1 ), thereby obtaining a scanned image of the target object from the image scanning device or the data storage server, and then can determine the relevant information of the starting point (also called the current operation point) corresponding to the path to be planned (such as the starting point position, the state of the end of the robotic arm at the starting point) and the relevant information of the target point (also called the target operation point) (such as the target point position, the state of the end of the robotic arm at the target point) based on the scanned image of the target object. Here, the starting point and the target point are the starting point and the target point relative to a planned section of the path, for example, path 1 corresponds to starting point 1 and target point 1, and path 2 corresponds to starting point 2 and target point 2; optionally, the control device 103 can also determine the relevant information of the starting point and the relevant information of the target point corresponding to the path to be planned according to the movement requirements of the robotic arm 102. The control device 103 can then plan the path between the starting point and the target point. As shown in b of FIG1 , the target object may be a brain tissue structure in a scanned image. For the brain tissue structure, several needle entry points and corresponding target points may be planned. The needle entry point represents the location where the puncture needle penetrates the target object, and the line connecting the target point and the needle entry point represents the puncture direction of the puncture needle. Accordingly, the control device 103 may determine information related to the starting point and target point for controlling the movement of the robotic arm 102 by identifying the locations of the several needle entry points and the corresponding target points, and combining the structural parameters of the robotic arm 102. The control device 103 may include, but is not limited to, various personal computers, laptop computers, smartphones, tablet computers, IoT devices, and the like.
[0032] Those skilled in the art will understand that the structure shown in Figure 1 is merely a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the application environment to which the present application solution is applied. The specific application environment may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0033] FIG2A is an exemplary flow chart of a path planning method for a robotic arm according to some embodiments of the present specification. As shown in FIG2A , process 200 may include the following steps:
[0034] Step 210: Determine a transition point, where the transition point is located in the path of the end of the robotic arm moving from the starting point to the target point. In some embodiments, this step can be performed by the determination module 1310 or the control device.
[0035] The robotic arm is an articulated robotic arm, and the movement of each of its joints is rotation around the joint axis; it has multiple degrees of freedom; for example, a six-degree-of-freedom robotic arm. Each joint of the robotic arm corresponds to a joint angle, and the joint angle refers to the angle of rotation of the corresponding joint around the joint axis. By changing the joint angle of each joint, the position or posture of the end of the robotic arm can be changed. In one example, the robotic arm is a robotic arm in a neurosurgery assistance robot, which is a six-degree-of-freedom robotic arm with six joints, divided into a front three-axis joint that can control the position of the end of the robotic arm, and a rear three-axis joint that can control the posture of the end of the robotic arm. When specifically controlling the movement of the robotic arm, you can first control the front three-axis joints of the robotic arm to change the position of the end of the robotic arm, and control the rear three-axis joints to change the posture of the end of the robotic arm.
[0036] The control device can use a preset path planning algorithm to plan the path of each joint angle of the manipulator from the starting joint angle to the target joint angle. The preset path planning algorithm can be a graph search-based algorithm, such as the A* algorithm, the Dijkstra algorithm, the D algorithm, the artificial potential field method, etc., or a sampling search-based algorithm, such as the PRM algorithm, the RRT algorithm, etc., or an intelligent imitation path planning algorithm, such as a neural network algorithm, the ant colony algorithm, the genetic algorithm, etc., or other path planning algorithms. In addition, the graph search-based algorithm is a MoveJ algorithm, which can uniformly interpolate the joint angles of several points between the starting joint angle of the manipulator at the starting point and the target joint angle of the manipulator at the target point according to a certain step size, and perform collision detection on the joint angles of all points, including the starting joint angle at the starting point and the target joint angle at the target point. If the manipulator end corresponding to each joint angle does not collide with the environment, then the manipulator can MoveJ from the starting point to the target point, that is, the planning of the manipulator from the starting point to the target point is successful.
[0037] However, in some embodiments, when planning the path of a robotic arm from a starting point to a target point using a preset path planning algorithm, the robotic arm may collide with the target arm during the movement of the robotic arm from the starting point to the target point (for example, when controlling the front three-axis joint to change the position of the robotic arm end; for example, when controlling the rear three-axis joint to change the posture of the robotic arm end), thereby causing the planning of the robotic arm from the starting point to the target point to fail. In this case, a transition point can be introduced, which is located in the path of the robotic arm end from the starting point to the target point.
[0038] In some embodiments, the starting point and target point of the robotic arm can be determined in the following manner: the control device can identify a plurality of needle entry points and corresponding target points on the target object based on an image of the target object, thereby determining the position of the starting point and the position of the target point based on the positions of the plurality of needle entry points and the positions of the corresponding target points. Optionally, when determining the starting point and target point of the robotic arm, the control device can also determine the position of the robotic arm based on the structure of the target object according to the requirements of path planning. For example, the control device can determine the positions of at least two needle entry points required for puncture surgery on the target object based on the structure of the target object, and then determine the starting point and target point required for the planned path based on the positions of the at least two needle entry points.
[0039] In some embodiments, the transition point can be determined based on the relative positional relationship between the robotic arm and the target object. In some embodiments, the determination module 1310 or the control device can obtain a registration matrix between the robotic arm and the target object, obtained from a preoperative three-dimensional medical image scan; determine the relative positional relationship between the robotic arm and the target object based on the registration matrix; and determine the transition point based on the relative positional relationship. For details on how to determine the transition point, please refer to other parts of this specification, such as Figures 11-12 and the related descriptions.
[0040] Step 220: Determine the path planning result of the robotic arm based on the starting point, transition point, and target point. In some embodiments, this step can be performed by the path planning module 1320 or the control device.
[0041] In some embodiments, the transition point can divide the path from the starting point to the target point into multiple segmented paths, such as a first segmented path from the starting point to the transition point and a second segmented path from the transition point to the target point. Afterwards, a preset path planning algorithm can be used to perform path planning on each segmented path, such as planning the first segmented path from the starting point to the transition point to obtain a first segmented planning result, and planning the second segmented path from the transition point to the target point to obtain a second segmented planning result. The first segmented planning result and the second segmented planning result can be a planning success or a planning failure. When the first segmented planning result and the second segmented planning result are both successful, it means that the end of the robotic arm will not collide in the two segmented path planning. At this time, the combination of the first segmented result and the second segmented result constitutes the path planning result of the robotic arm. For more information on determining the path planning results of the robotic arm based on the starting point, transition point and target point, please refer to other places in this specification, for example, Figures 2B-6, and their related descriptions.
[0042] It should be noted that the transition point in the embodiments of this specification is used to indicate that the end of the robotic arm will not collide when the joint angle of the robotic arm is adjusted. Specifically, it can include the following two definitions: (1) When the robotic arm is at the transition point, no matter how the joint angle of the rear three-axis joint is adjusted, the end of the robotic arm will not collide; (2) The transition point is the transition point where the operating point of the robotic arm moves from the starting point to the target point. The transition point needs to meet the requirement that in the process of the end of the robotic arm moving from the starting point to the transition point and from the transition point to the target point, no matter how the joint angle of the front three-axis joint of the robotic arm is adjusted, the end of the robotic arm will not collide. When controlling the robotic arm in an actual embodiment, the selection of the transition point is limited according to the above two definition conditions at the same time, or it can be based on only one of the definition conditions.
[0043] In some embodiments, process 200 may also include controlling the movement of the robotic arm based on the path planning results. The state of the end of the robotic arm includes position and posture. Among them, the rear three-axis joint of the robotic arm changes the posture of the end of the robotic arm (the three-axis joints of all axes in the robotic arm compared to one point are the rear three-axis joints, also called the first type of joints), and the front three-axis joints of the robotic arm change the position of the end of the robotic arm (the three-axis joints in the robotic arm other than the first type of joints are the front three-axis joints, also called the second type of joints). Controlling the movement of the robotic arm based on the path planning results can make the end of the robotic arm move from the position of the starting point to the position of the target point, and make the posture of the end of the robotic arm at the target point the target posture. The target posture refers to the posture of the end of the robotic arm at the target point position, which is convenient for the actuator on the robotic arm to perform an operation (such as puncture). In some embodiments, controlling the movement of the robotic arm based on the path planning results may include controlling the front three-axis joints to move the position of the end of the robotic arm, and controlling the rear three-axis joints to change the posture of the end of the robotic arm. For example, the front three-axis joints are controlled so that the end of the robotic arm moves from the starting point to the transition point; the rear three-axis joints are controlled so that the posture of the end of the robotic arm at the transition point is the same as the posture of the end of the robotic arm at the target point (i.e., the target posture); and the front three-axis joints are controlled so that the end of the robotic arm moves from the transition point to the target point. For more information on controlling the motion of the robotic arm based on the path planning results, please refer to other places in this specification, such as Figures 8-10 and their related descriptions.
[0044] It should be noted that the above description of process 200 is for illustration and purpose only and does not limit the scope of application of this specification. Those skilled in the art may make various modifications and changes to process 200 under the guidance of this specification, and such modifications and changes shall remain within the scope of protection of this specification.
[0045] FIG2B is an exemplary flow chart of a path planning method for a robotic arm according to some embodiments of this specification. The method is described using the control device in FIG1 as an example, and includes the following steps:
[0046] S201 , determining the starting joint angles of the joints of the robotic arm when the end of the robotic arm is located at the starting point.
[0047] S202 , determining a target joint angle of each joint of the robotic arm when the end of the robotic arm is located at a target point.
[0048] S203 , planning a path for transforming each joint angle of the robot arm from a starting joint angle to a target joint angle, and obtaining a first planning result.
[0049] S204 , when the first planning result indicates that the planning has failed, determining a first joint angle of each joint of the robotic arm when the end of the robotic arm is located at a first transition point.
[0050] S205 , planning a path for transforming each joint angle of the robot arm from the starting joint angle to the first joint angle and from the first joint angle to the target joint angle, to obtain a third planning result.
[0051] The state of the end of the robotic arm at the starting point can be described by the joint angle values of the six joints of the robotic arm, which are called the starting joint angles of each joint angle of the robotic arm. The state of the end of the robotic arm at the target point can be described by the joint angle values of the six joints of the robotic arm, which are called the target joint angles of each joint angle of the robotic arm. Specifically, the starting joint angles of each joint of the robotic arm refer to the joint angles of each joint on the robotic arm when the end of the robotic arm reaches the starting point, which are a set of joint angles and can be represented by Q0[q1, q2, q3, q4, q5, q6]. The target joint angles of each joint of the robotic arm refer to the joint angles of each joint on the robotic arm when the end of the robotic arm reaches the target point, which are a set of joint angles and can be represented by Qm[q1, q2, q3, q4, q5, q6].
[0052] In an embodiment of the present application, the control device identifies the position of the starting point and the position of the target point based on the image of the target object; accordingly, the structural parameters of each joint in the robotic arm can be combined to determine the starting joint angle of each joint of the robotic arm when the end of the robotic arm reaches the starting point, and the target joint angle of each joint of the robotic arm when the end of the robotic arm reaches the target point. When the control device determines the starting point of the robotic arm and the starting joint angle at the starting point, as well as the target point and the target joint angle at the target point, a graph search-based algorithm (MoveJ algorithm) or other types of path planning algorithms can be used to plan the path of each joint angle of the robotic arm from the starting joint angle to the target joint angle, thereby obtaining a first planning result. The first planning result indicates the result of successful planning or failed planning.
[0053] If the first planning result indicates a planning failure, the first joint angles of each joint of the manipulator arm are determined when the end of the manipulator arm is at the first transition point. Paths are planned for transforming each joint of the manipulator arm from the starting joint angle to the first joint angle and then from the first joint angle to the target joint angle, thereby obtaining a third planning result. The third planning result indicates whether the planning was successful or failed.
[0054] The embodiments of the present application involve a scenario where the first planning result indicates a planning failure. When the first planning result indicates a failure, it indicates that when planning the path for transforming the joint angles of the robot arm from the starting joint angle to the target joint angle, a collision may occur or the rotation amplitude of the end of the robot arm is too large, and it is necessary to use the first transition point, that is, first plan the path for transforming the joint angles of the robot arm from the starting joint angle at the starting point to the first joint angle at the first transition point, and then plan the path for transforming the joints of the robot arm from the first joint angle at the first transition point to the target joint angle at the target point. Specifically, the process of transforming the starting joint angle to the first joint angle can be defined as the first path, and the process of transforming the first joint angle to the target joint angle can be defined as the second path. These two paths constitute the final planned path.
[0055] It should be noted that, when specifically controlling the movement of the robotic arm, the front three-axis joints of the robotic arm (for example, the first-axis joint, the second-axis joint, and the third-axis joint) can be controlled to change the position of the end of the robotic arm, and the rear three-axis joints (for example, the fourth-axis joint, the fifth-axis joint, and the sixth-axis joint) can be controlled to change the posture of the end of the robotic arm. Therefore, after the end of the robotic arm is transformed from the starting joint angle to the first joint angle, the position of the end of the robotic arm has changed, and the posture of the end of the robotic arm needs to be changed. Therefore, while keeping the position of the first transition point unchanged, the path of each joint of the robotic arm from the first joint angle to another joint angle can also be planned at the first transition point, so that the posture of the end of the robotic arm at the first transition point is consistent with the posture of the end of the robotic arm at the target point, and then the path from another joint angle to the target joint angle is planned.
[0056] In some embodiments, when the control device performs path planning based on the method described in the above embodiments, considering that when the end of the robotic arm reaches the first transition point from the starting point, the front three-axis joints of the robotic arm can be controlled to change the position of the end of the robotic arm, so the transformation from the starting joint angle at the starting point to the first joint angle at the first transition point is essentially a transformation process of the joint angles of the front three-axis joints of the robotic arm; considering that when the end of the robotic arm reaches the target point from the first transition point, the rear three axes of the robotic arm can be controlled to change the posture of the end of the robotic arm first, and then the front three axes of the robotic arm can be controlled to change the position of the end of the robotic arm, so the transformation from the first joint angle at the first transition point to the target joint angle at the target point is essentially a transformation process of the joint angles of the front three-axis joints of the robotic arm and the joint angles of the rear three-axis joints of the robotic arm.
[0057] Under the above description, after the control device determines the first joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point, the above path planning method also includes: determining the third joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point.
[0058] In an embodiment of the present specification, when the control device determines the first joint angle of each joint of the robotic arm at the position of the first transition point of the robotic arm end, and after determining the target joint angle of each joint of the robotic arm at the position of the target point of the robotic arm end, the third joint angle of each joint of the robotic arm at the position of the first transition point can be determined based on the change in the posture of the robotic arm end at the position of the first transition point and the posture of the robotic arm end at the target point.
[0059] Correspondingly, when the control device executes the step of "planning the path for transforming each joint angle of the robotic arm from the first joint angle to the target joint angle", it specifically executes the steps of: planning the path for transforming each joint angle of the robotic arm from the first joint angle to the third joint angle, and transforming each joint angle of the robotic arm from the third joint angle to the target joint angle.
[0060] In the embodiment of the present specification, when the control device determines the third joint angle of each joint of the robotic arm at the position of the first transition point, the path of each joint angle of the robotic arm transformed from the first joint angle to the third joint angle can be planned, and the path of each joint angle of the robotic arm transformed from the third joint angle to the target joint angle can be planned. Combined with the path planning at other starting points and target points, the control device can first plan the path of each joint angle of the robotic arm transformed from the starting joint angle at the starting point to the first joint angle at the first transition point, then plan the path of each joint of the robotic arm transformed from the first joint angle at the first transition point to the third joint angle at the first transition point, and finally plan the path of each joint of the robotic arm transformed from the third joint angle at the first transition point to the target joint angle at the target point. Specifically, the process of transforming the starting joint angle to the first joint angle can be defined as the first path, the process of transforming the first joint angle to the third joint angle can be defined as the second path, and the process of transforming the third joint angle to the target joint angle can be defined as the third path, and these three paths constitute the final planned path. Among them, the first path is used to indicate the movement of at least part of the joints in the front three-axis joints (that is, the second type of joints) to achieve the adjustment of the position of the end of the robot arm, that is, to control the end of the robot arm to move from the starting point to the first transition point; the second path is used to indicate the movement of at least part of the joints in the rear three-axis joints (that is, the first type of joints) to achieve the adjustment of the posture of the end of the robot arm, that is, to adjust the posture of the end of the robot arm at the first transition point to be the same as the posture at the target point; the third path is used to indicate the movement of at least part of the joints in the front three-axis joints (that is, the second type of joints) to achieve the adjustment of the position of the end of the robot arm, that is, to control the end of the robot arm to move from the first transition point to the target point.
[0061] The path planning method for a robotic arm provided in an embodiment of this specification plans the paths of each joint angle of the robotic arm between the starting point, the first transition point and the target point by matching the transformation characteristics of the joint angles of each joint of the robotic arm, which can improve the path planning accuracy of the robotic arm to a certain extent.
[0062] In some embodiments, in addition to adjusting the posture of the end arm at the first transition point, in other embodiments, the rear three-axis joints of the manipulator arm can be controlled to adjust the posture of the end arm at other locations, such as during the movement of the end arm from the starting point to the first transition point, or from the first transition point to the target point, so that the posture of the end arm is consistent with the posture of the end arm at the target point. As an example, the posture of the end arm is adjusted during the movement of the end arm from the starting point to the first transition point. In this case, the path of the end arm from the starting point to the first transition point is used to indicate the movement of at least some of the front three-axis joints and at least some of the rear three-axis joints to achieve adjustment of the position and posture of the end arm; and the path of the end arm from the first transition point to the target point is used to indicate the movement of at least some of the front three-axis joints to achieve adjustment of the position of the end arm. It should be noted that when adjusting the posture of the end arm at locations other than the transition point, it is also necessary to ensure that no collision occurs during the posture adjustment of the end arm. For example, the posture of the end arm can be adjusted at a location where the distance to the target object is greater than a distance threshold.
[0063] It should be noted that in the above-mentioned path planning process, the joint angles of the robot arm at the interpolated points are subjected to collision detection, and the planning is determined to be successful only when the end of the robot arm does not collide with the environment. Therefore, the planned path obtained after the above-mentioned planning corresponds to a path that will not collide, and a transition point is set in this scenario, realizing a planning method in which the end of the robot arm can plan a collision-free path from the starting point to another farther point.
[0064] Optionally, the above is a scenario where the first planning result indicates that the planning failed. In some embodiments, the first planning result can also be a successful planning. In the scenario where the first planning result indicates that the planning was successful, it means that when planning the path between the transformation of the joint angles of the manipulator at the starting point to the joint angles of the manipulator at the target point, there is no need to use transition points. In this scenario, the control device can directly plan the path from the starting joint angle at the starting point to the target joint angle at the target point. Specifically, the process of transforming the starting joint angle to the target joint angle can be defined as a planned path. It should be noted that in the above-mentioned path planning process, the joint angles of the manipulator at the interpolated points are subjected to collision detection, and the planning is determined to be successful only when the end of the manipulator does not collide with the environment. Therefore, the planned path obtained after the above-mentioned planning corresponds to a path that will not collide, and since there is no need to set transition points in this scenario, it can be ensured that the joint angles of the two manipulator ends that are relatively close can be directly reached.
[0065] The path planning method for a robotic arm provided in an embodiment of the present application proposes a strategy for using transition points in the path planning process of the robotic arm, that is, it realizes the path planning situation of transforming the starting joint angle of the robotic arm at the starting point to the target joint angle of the robotic arm at the target point, and flexibly sets the path planning method of transition points, which improves the success rate of path planning to a certain extent by ensuring collision-free path planning.
[0066] In some embodiments, the third planning result may also indicate a failure. When the third planning result indicates a failure, it indicates that when planning the path for transforming the joint angles of the manipulator from the starting joint angle to the first joint angle and then from the first joint angle to the target joint angle, a collision may occur or the rotation amplitude of the manipulator end is too large. In this case, it is necessary to reference the second transition point based on the first transition point. Figure 3 is an exemplary flow chart of a path planning method for a manipulator according to some embodiments of this specification. As shown in Figure 3, the implementation method includes:
[0067] S301 : When the third planning result indicates that the planning fails, determine a second joint angle of each joint of the robotic arm when the end of the robotic arm is located at a second transition point.
[0068] S302, plan the path for transforming each joint angle of the robot arm from the starting joint angle to the first joint angle, transforming each joint angle of the robot arm from the first joint angle to the second joint angle, and transforming each joint angle of the robot arm from the second joint angle to the target joint angle to obtain a second planning result.
[0069] This embodiment involves a scenario where the third planning result indicates a planning failure. When the third planning result indicates a failure, it means that when planning the path for transforming the joint angles of the robot arm from the starting joint angle to the target joint angle, not only the first transition point but also the second transition point is needed, that is, first plan the path for transforming the joint angles of the robot arm from the starting joint angle at the starting point to the first joint angle at the first transition point, then plan the path for transforming the joints of the robot arm from the first joint angle at the first transition point to the second joint angle at the second transition point, and finally plan the path for transforming the joints of the robot arm from the second joint angle at the second transition point to the target joint angle at the target point. Specifically, the process of transforming the starting joint angle to the first joint angle can be defined as the first path, the process of transforming the first joint angle to the second joint angle can be defined as the second path, and the process of transforming the second joint angle to the target joint angle can be defined as the third path. These three paths constitute the final planned path.
[0070] The path planning method provided in this embodiment first plans the path of transforming each joint angle of the robot arm from the starting joint angle to the first joint angle, and transforming each joint angle of the robot arm from the first joint angle to the target joint angle, to obtain a third planning result, and based on the third planning result, plans the path of transforming each joint angle of the robot arm from the starting joint angle to the first joint angle, transforming each joint angle of the robot arm from the first joint angle to the second joint angle, and transforming each joint angle of the robot arm from the second joint angle to the target joint angle, thereby realizing that different transition points can be selected for path planning when planning different paths, so that each planned path can be guaranteed to be collision-free and deterministic regardless of distance, and the accuracy of path planning can be guaranteed to a certain extent.
[0071] Similar to the strategy of adopting the first transition point, the front three axes of the robot arm change the position of the end of the robot arm, and the rear three axes change the posture of the end of the robot arm. Under the strategy of two transition points, when the control device performs path planning based on the method described in the above embodiment, considering that when the end of the robot arm reaches the first transition point from the starting point, the front three-axis joints of the robot arm can be controlled to change the position of the end of the robot arm, so the transformation from the starting joint angle at the starting point to the first joint angle at the first transition point is essentially a transformation process of the joint angles of the front three-axis joints of the robot arm; considering that when the end of the robot arm reaches the second transition point from the first transition point, the rear three axes of the robot arm can be controlled to change the posture of the end of the robot arm first, and then the front three axes of the robot arm can be controlled to change the position of the end of the robot arm, so the transformation from the first joint angle at the first transition point to the second joint angle at the second transition point is essentially a transformation process of the joint angles of the front three-axis joints of the robot arm and the joint angles of the rear three-axis joints of the robot arm.
[0072] Under the above description, after the control device determines the first joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point, the above path planning method also includes: determining the third joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point.
[0073] In an embodiment of the present specification, when the control device determines the first joint angle of each joint of the robotic arm at the position of the first transition point of the robotic arm end, and after determining the target joint angle of each joint of the robotic arm at the position of the target point of the robotic arm end, the third joint angle of each joint of the robotic arm at the position of the first transition point can be determined based on the change in the posture of the robotic arm end at the position of the first transition point and the posture of the robotic arm end at the target point.
[0074] Correspondingly, when the control device executes the step of "planning the path for transforming each joint angle of the robotic arm from the first joint angle to the second joint angle", it specifically executes the steps of: planning the path for transforming each joint angle of the robotic arm from the first joint angle to the third joint angle, and transforming each joint angle of the robotic arm from the third joint angle to the second joint angle.
[0075] In the embodiment of the present specification, when the control device determines the third joint angle of each joint of the robotic arm at the position of the first transition point, the path of each joint angle of the robotic arm transformed from the first joint angle to the third joint angle can be planned, and the path of each joint angle of the robotic arm transformed from the third joint angle to the second joint angle can be planned. Combined with the path planning at other starting points, second transition points and target points, the control device can first plan the path of each joint angle of the robotic arm transformed from the starting joint angle at the starting point to the first joint angle at the first transition point, then plan the path of each joint of the robotic arm transformed from the first joint angle at the first transition point to the third joint angle at the first transition point, and plan the path of each joint of the robotic arm transformed from the third joint angle at the first transition point to the second joint angle at the second transition point, and finally plan the path of each joint of the robotic arm transformed from the second joint angle at the second transition point to the target joint angle at the target point. Specifically, the process of transforming the starting joint angle to the first joint angle can be defined as a first path, the process of transforming the first joint angle to the third joint angle can be defined as a second path, the process of transforming the third joint angle to the second joint angle can be defined as a third path, and the process of transforming the second joint angle to the target joint angle can be defined as a fourth path. These four paths constitute the final planned path. Among them, the first path is used to indicate the movement of at least part of the joints in the front three-axis joints (that is, the second type of joints) to adjust the position of the end of the manipulator, that is, to control the end of the manipulator to move from the starting point to the first transition point; the second path is used to indicate the movement of at least part of the joints in the rear three-axis joints (that is, the first type of joints) to adjust the posture of the end of the manipulator, that is, to adjust the posture of the end of the manipulator at the first transition point to the same as the posture at the target point; the third path is used to indicate the movement of at least part of the joints in the front three-axis joints (that is, the second type of joints) to adjust the position of the end of the manipulator, that is, to control the end of the manipulator to move from the first transition point to the second transition point; the fourth path is used to indicate the movement of at least part of the joints in the front three-axis joints (that is, the second type of joints) to adjust the position of the end of the manipulator, that is, to control the end of the manipulator to move from the second transition point to the target point. It should be noted that when the path of the posture of the end of the robotic arm is not planned according to the above method at the first transition point, the position of the end of the robotic arm changes after the end of the robotic arm is transformed from the first joint angle to the second joint angle, then it is necessary to plan the path of each joint of the robotic arm from the second joint angle to the third joint angle at the second transition point while keeping the position of the second transition point unchanged, so that the posture of the end of the robotic arm at the second transition point is consistent with the posture of the end of the robotic arm at the target point, and then plan the path from the third joint angle to the target joint angle.In addition to adjusting the posture of the end of the robotic arm at the first transition point or the second transition point, in other embodiments, the rear three-axis joints of the robotic arm can also be controlled at other locations, such as when the end of the robotic arm moves from the starting point to the first transition point, or from the first transition point to the second transition point, or from the second transition point to the target point, to adjust the posture of the end of the robotic arm so that the posture of the end of the robotic arm is consistent with the posture of the end of the robotic arm at the target point. It should be noted that when adjusting the posture of the end of the robotic arm at locations other than the transition point, it is also necessary to ensure that no collision occurs during the posture adjustment of the end of the robotic arm.
[0076] The path planning method for a robotic arm provided in an embodiment of this specification plans the paths of each joint angle of the robotic arm between the starting point, the first transition point, the second transition point and the target point by matching the transformation characteristics of the joint angles of each joint of the robotic arm, which can improve the path planning accuracy of the robotic arm to a certain extent.
[0077] Based on the above embodiments without transition points, with one transition point, and with two transition points, a path planning method for a robotic arm is further provided, as shown in FIG4 . The method includes:
[0078] S401, determining the starting joint angle of each joint of the robotic arm when the robotic arm end is located at the starting point; determining the target joint angle of each joint of the robotic arm when the robotic arm end is located at the target point.
[0079] S402, plan the path of each joint angle of the robot arm from the starting joint angle to the target joint angle to obtain a first planning result; if the first planning result indicates that the planning is successful, execute step S403; if the first planning result indicates that the planning fails, execute step S404.
[0080] S403: Determine a path for transforming each joint angle of the robot arm from a starting joint angle to a target joint angle.
[0081] S404, plan the path for transforming each joint angle of the robot arm from the starting joint angle to the first joint angle, and from the first joint angle to the target joint angle, to obtain a third planning result; if the third planning result indicates that the planning is successful, execute step S405; if the third planning result indicates that the planning fails, execute step S406.
[0082] S405 , determining a path for each joint angle of the robotic arm to be transformed from the starting joint angle to the first joint angle, and a path for being transformed from the first joint angle to the target joint angle.
[0083] This method involves planning the path for transforming each joint angle of a robotic arm from a starting joint angle to a first joint angle, and then from the first joint angle to a target joint angle. This process essentially involves setting a transition point (i.e., the first transition point) between the starting point and the target point for path planning. At the first transition point, after planning the transformation from the starting joint angle at the starting point to the first joint angle, it is necessary to plan the path from the first joint angle to another joint angle (e.g., a third joint angle), and then plan the path from the other joint angle to the target joint angle.
[0084] S406, plan the path for transforming each joint angle of the robot arm from the starting joint angle to the first joint angle, transforming each joint angle of the robot arm from the first joint angle to the second joint angle, and transforming each joint angle of the robot arm from the second joint angle to the target joint angle to obtain a second path planning result.
[0085] This method involves planning the path for transforming each joint angle of a robotic arm from a starting joint angle to a first joint angle, from the first joint angle to a second joint angle, and from the second joint angle to a target joint angle. This process is essentially a method for setting a first transition point and a second transition point between a starting point and a target point to perform path planning. At the first transition point, after planning the transformation from the starting joint angle of the starting point to the first joint angle, it is necessary to plan the path from the first joint angle to another joint angle, then plan the path from the other joint angle to the second joint angle, and finally plan the path from the second joint angle to the target joint angle.
[0086] Each step in the above embodiment has been described above. Please refer to the above description for details and will not be repeated here. The path planning method for the robotic arm provided in the above embodiment implements a path planning method that flexibly sets a variable transition point strategy according to different paths, ensuring that the robotic arm can relatively fixedly plan a path to move near the target object without causing large rotations of the end joint near the target object, thereby improving the safety and convenience of the robotic arm operation.
[0087] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0088] In one embodiment, a method for determining the first joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point is also provided, that is, when the control device executes the step of "determining the first joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point", it can specifically execute: determining the first joint angle of each joint of the robotic arm based on the starting joint angle of each joint of the robotic arm.
[0089] In the embodiments of this specification, once the control device determines the starting point, it can select any point within a preset range surrounding the starting point as the first transition point, or it can select any point within the preset range based on the location of the target point as the first transition point. After determining the starting joint angles of each joint of the robotic arm at the position of the robotic arm end at the starting point, the first joint angles of each joint when the robotic arm reaches the first transition point can be determined based on the changes in the joint angles of each joint during the process of moving from the starting point to the first transition point.
[0090] Furthermore, an implementation method for determining the first joint angle of each joint of the robotic arm according to the initial joint angle of each joint of the robotic arm is provided, as shown in FIG5 , and the implementation method includes:
[0091] S501 , performing forward kinematics solution on the starting joint angles of the joints of the robotic arm to obtain a first coordinate matrix of the position of the robotic arm end relative to the robotic arm base at the starting point.
[0092] Among them, the starting joint angle of each joint of the robot arm can be expressed using Q start [q1, q2, q3, q4, q5, q6]. In the embodiment of this specification, after the control device determines the starting joint angles of each joint of the manipulator, it can solve the first coordinate matrix of the manipulator end relative to the manipulator base coordinate system at the starting point based on forward kinematics. It can use the following matrix T BaseToFlangeofStart express:
[0093] Among them, a x , b x , c x Indicates the projection position of the X-axis of the robot arm end coordinate system under the base system at the starting point; a y , b y , c y Indicates the projection position of the Y axis of the robot end coordinate system under the base system at the starting point; a z , b z , c z Indicates the projection position of the Z axis of the robot end coordinate system under the base system at the starting point; p x , p y , p z Indicates the origin of the robot arm's coordinate system at the starting point.
[0094] S502 : transforming the first coordinate matrix according to a preset first offset to obtain a second coordinate matrix of the end of the robotic arm relative to the base of the robotic arm at the position of the first transition point.
[0095] Since the posture of the end of the manipulator at the starting point and the position of the first transition point are consistent, the position of the first transition point is offset upward by an amount Δ relative to the position of the end of the manipulator coordinate system at the starting point. x , Δ y , Δ z , that is, the first offset is preset. Then, at the starting point, the first coordinate matrix is transformed according to the preset first offset to obtain the manipulator end coordinate matrix of the position of the first transition point, that is, the second coordinate matrix, which can be expressed as follows:
[0096] Among them, a x , b x , c x Indicates the projection position of the X-axis of the robot end coordinate system under the base system at the position of the first transition point; a y , b y , c y Indicates the projection position of the Y axis of the robot end coordinate system under the base system at the position of the first transition point; a z , b z , c z represents the projection position of the Z axis of the robot end coordinate system under the base system at the position of the first transition point; x , p y , p z Δ represents the origin of the coordinate system of the end of the manipulator at the position of the first transition point; x , Δ y , Δz Represents a preset first offset. It is understandable that, based on the position of the first transition point relative to the position of the robot end coordinate system at the starting point, there is a preset first offset. In some embodiments, the position of the first transition point can be determined based on the starting point position and the preset first offset.
[0097] S503 , based on the principle of minimizing the amount of change relative to the initial joint angles of the joints of the robotic arm, perform inverse kinematics on the second coordinate matrix to determine the first joint angles of the joints of the robotic arm.
[0098] In an embodiment of the present specification, when the control device obtains the second coordinate matrix based on the aforementioned steps, the inverse kinematics solution can be performed on the second coordinate matrix. When multiple sets of inverse solutions are solved, a set of inverse solutions that meets the principle of minimizing the change in joint angle from the starting point to the first transition point can be screened out from the multiple sets of inverse solutions, and the first joint angle of each joint of the robotic arm can be determined based on the inverse solution.
[0099] An example of the above solution method is: Assume that the starting joint angle of the robot arm at the starting point is Q start [q1,q2,q3,q4,q5,q6], first solve the multiple sets of joint angles of the robot arm at the first transition point, and select one set of joint angles from them, assuming it is Q inter1 [q11,q22,q33,q44,q55,q66], the change in joint angle from the starting point to the first transition point: X = Q inter1 -Q start =[|q11-q1|,|q22-q2|,|q33-q3|,|q44-q4|,|q55-q5|,|q66-q6|]
[0100] It is necessary to ensure that the X obtained by this set of inverse solutions is the smallest, that is, the principle is to minimize the change in joint angle from the starting point to the first transition point. Then the joint angle Q obtained by this set of inverse solutions is inter1 [q11,q22,q33,q44,q55,q66] becomes the optimal inverse solution, and is also the first joint angle of each joint of the robotic arm that is finally determined.
[0101] In one embodiment, a method for determining the second joint angle of each joint of the robotic arm when the end of the robotic arm is located at the second transition point is also provided, that is, when the control device executes the step of "determining the second joint angle of each joint of the robotic arm when the end of the robotic arm is located at the second transition point", it can specifically execute: determining the second joint angle of each joint of the robotic arm according to the target joint angle of each joint of the robotic arm.
[0102] In an embodiment of the present application, when the control device determines the target point, it can select any point within a preset range around the target point as the second transition point, or it can select any point within the preset range around the target point in combination with the position of the first transition point as the second transition point. Then, after determining the first joint angles of the joints of the robotic arm at the position of the first transition point, the second joint angles of the joints of the robotic arm when the robotic arm reaches the second transition point can be determined based on the changes in the joint angles of the joints of the robotic arm during the process of moving from the first transition point to the second transition point.
[0103] Furthermore, an implementation method for determining the second joint angle of each joint of the robotic arm according to the target joint angle of each joint of the robotic arm is provided, as shown in FIG6 , and the implementation method includes:
[0104] S601 , performing forward kinematics solution on the target joint angles of the joints of the robotic arm to obtain a third coordinate matrix of the robotic arm end at the position of the target point relative to the robotic arm base.
[0105] Among them, the target joint angle of each joint of the robot arm can be calculated using Q Goal [q1, q2, q3, q4, q5, q6]. In the embodiment of this specification, after the control device determines the target joint angles of each joint angle of the manipulator, it can solve the third coordinate matrix of the manipulator end relative to the manipulator base coordinate system at the target point based on forward kinematics. It can be represented by the following matrix:
[0106] Among them, A x , B x , C x Indicates the projection position of the X-axis of the robot arm end coordinate system under the base system at the location of the target point; A y , B y , C y Indicates the projection position of the Y axis of the robot end coordinate system under the base system at the location of the target point; A z , B z , C z Indicates the projection position of the Z axis of the robot end coordinate system under the base system at the position of the target point; P x , P y , P z Indicates the position of the origin of the robot arm coordinate system at the location of the target point.
[0107] S602: transform the third coordinate matrix according to a preset second offset to obtain a fourth coordinate matrix of the end of the robotic arm relative to the base of the robotic arm at the position of the second transition point.
[0108] Since the posture of the end of the manipulator at the target point and the position of the second transition point are consistent, the position of the second transition point is offset upward by an amount Δ relative to the position of the end of the manipulator coordinate system of the target point. X , Δ Y , Δ Z , that is, the second offset is preset. Then, at the position of the target point, the third coordinate matrix is transformed according to the preset second offset to obtain the manipulator end coordinate matrix of the position of the second transition point, that is, the fourth coordinate matrix, which can be represented by the following matrix TBaseToFlangeofVia2:
[0109] Among them, A x , B x , C x A represents the projection position of the X-axis of the robot arm end coordinate system under the base system at the position of the second transition point; y , B y , C y A represents the projection position of the Y axis of the robot end coordinate system under the base system at the position of the second transition point; z , B z , C z P represents the projection position of the Z axis of the robot end coordinate system under the base system at the position of the second transition point; x , P y , P z Δ represents the origin of the robot arm's end coordinate system at the second transition point; X , Δ Y , Δ Z Indicates the preset second offset.
[0110] S603 , based on the principle of minimizing the amount of change of the target joint angles of the joints of the robotic arm, perform inverse kinematics on the fourth coordinate matrix to determine the second joint angles of the joints of the robotic arm.
[0111] In an embodiment of the present specification, when the control device obtains the fourth coordinate matrix based on the above steps, the fourth coordinate matrix can be solved by inverse kinematics, and when multiple sets of inverse solutions are solved, a set of inverse solutions that meets the principle of minimizing the change in joint angle from the second transition point to the target point can be screened out from the multiple sets of inverse solutions, and the second joint angle of each joint of the robotic arm can be determined based on the inverse solution.
[0112] The above solution method is illustrated as follows: Assume that the target joint angles of the robot arm at the target point are Q Goal [q1,q2,q3,q4,q5,q6], first solve the multiple sets of joint angles of the robot arm at the second transition point, and select one set of joint angles from them, assuming it is Q inter2[q111,q222,q333,q444,q555,q666], the change in joint angle from the first transition point to the target point: Y = Q inter2- Q Goal =[|q111-q1|,|q222-q2|,|q333-q3|,|q444-q4|,|q555-q5|,|q666-q6|];
[0113] It is necessary to ensure that the Y obtained by this set of inverse solutions is the smallest, that is, the principle is to minimize the change in joint angle from the target point to the second transition point. Then the joint angle obtained by this set of inverse solutions is:
[0114] Qinter2[q111,q222,q333,q444,q555,q666] becomes the optimal inverse solution and is also the final determined second joint angle of each joint of the robotic arm.
[0115] In one embodiment, a method for controlling a robotic arm is further provided. The method is described by taking a control device as an example. As shown in FIG7 , the method includes:
[0116] S701, plans the path for transforming each joint angle of the robot arm from the starting joint angle at the starting point to the first joint angle at the first transition point, from the first joint angle at the first transition point to the second joint angle at the second transition point, and from the second joint angle at the second transition point to the target joint angle at the target point to obtain a planned path.
[0117] The embodiments of this specification relate to a method for planning a path for transforming the joint angles of a robotic arm from a starting joint angle at a starting point to a first joint angle at a first transition point, from the first joint angle at the first transition point to a second joint angle at a second transition point, and from the second joint angle at the second transition point to a target joint angle at a target point. This method can be referred to the path planning method in the previous embodiments and will not be repeated here.
[0118] S702: Adjust the joints of the robotic arm according to the planned path, so that the joints of the robotic arm move from the starting joint angle to the first joint angle.
[0119] After the control device obtains the planned path based on the method described in S701 above, it can adjust the first axis joint, second axis joint and third axis joint of the robotic arm based on the starting joint angle and first joint angle of each joint of the robotic arm in the planned path, so that each joint of the robotic arm moves from the starting joint angle at the starting point to the first joint angle at the first transition point, thereby adjusting the position of the end of the robotic arm from the starting position to the position of the first transition point.
[0120] S703: Adjust the joints of the robotic arm so that the joints of the robotic arm move from the first joint angle to the second joint angle.
[0121] When the control device controls the end position of the robotic arm from the starting point to the first transition position based on the method described in S702 above, it can further adjust the first axis joint, second axis joint and third axis joint of the robotic arm based on the first joint angle and second joint angle of each joint of the robotic arm in the planned path, so that each joint of the robotic arm moves from the first joint angle at the first transition point to the second joint angle at the second transition point, thereby adjusting the end position of the robotic arm from the first transition point to the second transition point.
[0122] Optionally, the above-mentioned transformation from the first joint angle at the first transition point to the second joint angle at the second transition point also includes: transformation from the first joint angle at the first transition point to the third joint angle at the first transition point, and transformation from the third joint angle at the first transition point to the second joint angle at the second transition point. Correspondingly, when the control device executes the steps described in S603 above, it specifically performs the steps of: adjusting the joints of the robotic arm so that the joints of the robotic arm move from the first joint angle to the third joint angle, and adjusting the joints of the robotic arm so that the joints of the robotic arm move from the third joint angle to the second joint angle.
[0123] The control device adjusts the fourth-axis joint, the fifth-axis joint, and the sixth-axis joint of the manipulator based on the first joint angle and the third joint angle of each joint of the manipulator in the above-mentioned planned path, so that the manipulator end of the manipulator moves from the first joint angle at the first transition point to the third joint angle at the first transition point, that is, adjusts the posture of the manipulator end to ensure that the posture of the manipulator end at the position of the first transition point is consistent with the posture of the manipulator end at the position of the target point. Further, based on the third joint angle and the second joint angle of each joint of the manipulator in the planned path, the first-axis joint, the second-axis joint, and the third-axis joint of the manipulator are adjusted so that each joint of the manipulator moves from the third joint angle at the first transition point to the second joint angle at the second transition point, that is, adjusts the position of the manipulator end from the position of the first transition point to the position of the second transition point.
[0124] S704: Adjust the joints of the robotic arm so that the joints of the robotic arm move from the second joint angle to the target joint angle.
[0125] When the control device controls the end position of the robotic arm from the position of the first transition point to the position of the second transition based on the method described in S703 above, it can further adjust the first axis joint, second axis joint and third axis joint of the robotic arm based on the second joint angle and target joint angle of each joint of the robotic arm in the planned path, so that each joint of the robotic arm moves from the second joint angle at the second transition point to the target joint angle at the target point, thereby adjusting the end position of the robotic arm from the position of the second transition point to the position of the target point.
[0126] This embodiment sets two transition points to plan a path. During this process, the first, second, and third axes of the robot arm are adjusted to plan a path, the fourth, fifth, and sixth axes of the robot arm are adjusted to plan another path, and finally the first, second, and third axes of the robot arm are adjusted accordingly to plan another path. This prevents the robot arm from experiencing large rotations of its end joints during movement and enables collision-free path planning to another relatively distant point based on a transition point. For more information on the control method of the robot arm, please refer to the description below.
[0127] First of all, it should be noted that the idea of the control method of the manipulator provided in this specification is to decouple the position control and attitude control in the manipulator control and achieve separate control. Therefore, the requirement for the manipulator is that the axes of the three axes intersect at the same point. According to the Pieper criterion in robot kinematics, it can be seen that the three adjacent joint axes of the robot intersect at one point or the three axes are parallel. The purpose is to facilitate the calculation of the inverse kinematic solution. Therefore, the robot in actual application is often designed as "three adjacent joint axes intersect at one point or the three axes are parallel". Therefore, the manipulator arm of the robot in actual application can be controlled using the method provided in the embodiment of this application. However, for some special cases, the method provided in this application can also be used to achieve accurate and efficient control of the manipulator, including: (1) for non-adjacent joints whose axes of the three joint axes intersect at one point, it can also achieve the effect of only controlling the intersection point posture without changing the intersection point position; (2) only two joints intersect at one point, and these two joints only control the intersection point posture without changing the intersection point position. In actual application, if the posture control is less than the degree of freedom, the method provided in the embodiment of this application can also be used.
[0128] FIG8 is an exemplary flow chart of a method for controlling a robotic arm according to some embodiments of the present specification. In one embodiment, as shown in FIG8 , a method for controlling a robotic arm is provided, and the method is applied to a robotic arm with six degrees of freedom as an example. The robotic arm includes a second type of joint for controlling the position of the robotic arm end (i.e., the front three-axis joints mentioned above, i.e., the second type of joints include the first axis joint, the second axis joint, and the third axis joint mentioned above) and a first type of joint for controlling the posture of the robotic arm end (i.e., the rear three-axis joints mentioned above, i.e., the first type of joints include the fourth axis joint, the fifth axis joint, and the sixth axis joint mentioned above), wherein the axes of all the first type of joints intersect at one point. In this embodiment, the following steps are included:
[0129] Step 802: Adjust the second type of joints of the robotic arm so that the end of the robotic arm moves from the current operating point to the intermediate transition point.
[0130] The current operating point refers to the starting point where the end of the robot arm starts to move. The current operating point can be the starting point mentioned above. The intermediate transition point includes the transition point mentioned above. The intermediate transition point is used to indicate that the end of the robot arm will not collide when the joint angle of the first type of joint of the robot arm is adjusted. As an example, when one transition point is used for path planning, the transition point is the intermediate transition point. As another example, when multiple transition points (such as the first transition point and the second transition point) are used for path planning, the transition point with the highest movement efficiency of the robot arm in the workspace of the robot arm can be used as the intermediate transition point.
[0131] The workspace of a robotic arm is the space within its operating environment where the end of the robotic arm can move freely without colliding with obstacles (including physical obstacles and the robotic arm's target objects). This can be determined by excluding the spatial coordinate points of obstacles from the robotic arm's base coordinate system. These spatial coordinate points can be identified by scanning the operating environment, such as through laser scanning or image recognition. It can also be determined by converting points in the coordinate system of obstacles in the operating scenario into the robotic arm's base coordinate system through conversion between coordinate systems.
[0132] It should be noted that for the robotic arm in the neurosurgery assisting robot, when the method provided in the embodiments of this specification is used for control, since the front three-axis joints can control the position and posture of the end of the robotic arm, after changing the joint angles of the front three-axis joints, the position and posture of the end of the robotic arm will actually change. According to the definition of the intermediate transition point, the intermediate transition point is a "safe" point for the robotic arm. Although the position and posture of the end of the robotic arm will change when changing the joint angles of the front three-axis joints, the posture change will not have any effect during the movement of the robotic arm. Therefore, the posture change caused by the change in the joint angles of the front three-axis joints is ignored in this application.
[0133] The intermediate transition point is a point in the base coordinate system of the robotic arm, represented by three-dimensional position coordinates (x, y, z). For the robotic arm, it has both position coordinates and posture coordinates at each operating point, namely (x, y, z, α, β, γ). Therefore, the state of the robotic arm at each operating point corresponds to the joint angles of the six joints of the robotic arm, which can be expressed as (q1, q2, q3, q4, q5, q6), where q1, q2, q3 are the joint angles of the second type of joints, and q4, q5, q6 are the joint angles of the first type of joints.
[0134] The joint angle of the robot arm at the current operating point is The joint angle of the second type of joint at the intermediate transition point is By adjusting the joint angles of the second type of joints, the end of the robotic arm moves from the current operating point to the intermediate transition point. During this process, the joint angles of the first type of joints that control the posture of the end of the robotic arm are kept unchanged. Therefore, after the first control of the end of the robotic arm, the joint angles of the six joints of the robotic arm are
[0135] Step 804 : Adjust the first type of joints of the robotic arm so that the posture of the robotic arm end at the intermediate transition point is the same as the posture of the robotic arm end at the target operation point.
[0136] The target operation point is the target point of the end-of-arm motion. The target operation point can be the target point mentioned above.
[0137] According to the use scenario of the robot arm, the target operation point of the robot arm as well as the target position and target posture at the target operation point can be determined. According to the definition of the intermediate transition point, no matter how the posture of the end of the robot arm is adjusted at the intermediate transition point, no collision will occur. Therefore, after the robot arm moves to the intermediate transition point (or the robot arm moves from the starting point to the intermediate transition point, or from the intermediate transition point to the target point), the joint angle of the first type of joint of the robot arm is adjusted to make its posture consistent with the target posture. Combined with the above example, if the joint angle of the robot arm at the target operation point is When adjusting the joint angles of the second type of joints for the first time, the joint angles of the six joints of the robotic arm are At this time, the joint angle of the first type of joint of the robot arm is changed from Adjust to
[0138] Step 806 , adjusting the second type of joints of the robotic arm so that the end of the robotic arm moves from the intermediate transition point to the target operating point.
[0139] After adjusting the target posture of the robot arm, move the end of the robot arm from the middle transition point to the target operation point, that is, the joint angle of the second type of joint is changed from Adjust to
[0140] It should be noted that, in one embodiment, during the control process of the manipulator, two intermediate safety points can be determined through the intermediate transition point, and the control of the manipulator is divided into three stages: the first stage controls the change of position, the second stage controls the change of posture, and the third stage controls the change of position. Specifically, the intermediate safety point refers to the state safety point of the axis joint of the manipulator, which is represented by the joint angles of all joints. For example, as shown in FIG9 , the current operating point is (x s ,y s , z s ), at this time the joint angles of all joints of the robotic arm are The intermediate transition point is (x m ,y m , z m ), build the first intermediate safety point and the second intermediate safety point Through three adjustments, the target operating point (x g ,y g , z g ) when the target joint angle
[0141] As can be seen from the above description, if decoupling control is required between the position control and attitude control of the end-of-arm manipulator, at least one intermediate transition point and two intermediate safety points are required. In some embodiments, if there are multiple target operating points, after controlling the manipulator to move to the first target operating point, the first target operating point is used as the current operating point, and the steps of this embodiment are repeated to complete the control of the manipulator, causing the manipulator to move to the second target operating point, and so on. That is, during the control of multiple target operating points, since the determination of the intermediate transition point takes into account that collisions will not occur from any operating point to the intermediate transition point and from the intermediate transition point to any operating point, the same intermediate transition point can be used for each target operating point. After each target operating point is moved, the manipulator does not need to be moved to an initial position. Instead, the manipulator can be moved directly from the previous target operating point to the intermediate transition point, and then to the next target operating point, repeatedly completing the control of the manipulator.
[0142] In the method provided in the above embodiment, the second type of joints of the robotic arm are adjusted so that the end of the robotic arm moves from the current operating point to the intermediate transition point; the first type of joints of the robotic arm are adjusted so that the posture of the end of the robotic arm at the intermediate transition point is the same as the posture of the end of the robotic arm at the target operating point; and the second type of joints are adjusted so that the end of the robotic arm moves from the intermediate transition point to the target operating point. By combining the structure of the robotic arm, the position control and posture control of the end of the robotic arm are decoupled, and the control process of the robotic arm is split from high-dimensional to multiple three-dimensional controls. This greatly simplifies the problems in the robotic arm control process, reduces the amount of computation, and improves the control efficiency of the robotic arm while ensuring the safety of the robotic arm movement.
[0143] In one embodiment, the control method of the robotic arm also includes: obtaining a registration matrix between the robotic arm and a three-dimensional medical image of a target operation object scanned before surgery, and surgical planning information formulated for the three-dimensional medical image; determining a target position of a target operation point and a target posture of the end of the robotic arm when the end of the robotic arm is located at the target operation point based on the registration matrix and the surgical planning information; determining a first target joint angle of a first type of joint and a second target joint angle of a second type of joint of the robotic arm when the end of the robotic arm is located at the target operation point based on inverse kinematics according to the target position of the target operation point and the target posture of the end of the robotic arm.
[0144] The target operation object refers to the subject on which the robotic arm performs the action. For example, for the robotic arm in a neurosurgery assistance robot, the target operation object refers to the object on which the operation is to be performed, which can be a person or an animal. The robotic arm is used for orientation and positioning. The registration matrix is used to realize the conversion of coordinates between the base coordinate system of the robotic arm and the image coordinate system, and describes the relative position relationship between the robotic arm and the target operation object. In one embodiment, the registration matrix is a 4*4 matrix, in which the 3*3 matrix in the upper left corner represents the conversion relationship between postures, and the 3*1 matrix in the fourth column in the upper right corner represents the conversion relationship between position coordinates.
[0145] The embodiments of this specification do not specifically limit the types of three-dimensional medical images, which include but are not limited to: electronic computed tomography (CT) images, nuclear magnetic resonance imaging (MRI) images, etc.
[0146] Surgical planning information refers to the information of the needle entry point and target point planned in the image coordinate system after the doctor determines the lesion area on the three-dimensional medical impact of the target operation object based on the three-dimensional medical image scanned before the operation.
[0147] Using the registration matrix, the coordinates of the needle entry point and target point are transformed into the robot's base coordinate system, obtaining the coordinates of the transformed needle entry point and target point in the robot's base coordinate system. By analyzing the positions of the transformed needle entry point and target point, the target position of the target operating point and the target posture of the robot end arm when it is located at the target operating point are determined. Finally, using the robot's inverse kinematics algorithm, the target position and target posture are calculated as target joint angles, including the first target joint angle for the first type of joint angle and the second target joint angle for the second type of joint angle.
[0148] It should be noted that in actual application scenarios, the same patient may have multiple target points and multiple needle entry points. In other words, from a mathematical point of view, the target points and needle entry points can have a "many-to-many" relationship. In this case, the method provided in this application can determine multiple target operation points, and then control the robotic arm one by one using the method provided in this application. In combination with actual clinical practice, the needle entry points and targets mentioned in this embodiment are all the most reasonable positions determined after reasonable planning by the doctor, and there is a one-to-one correspondence between the two.
[0149] In the method provided in the above embodiment, by analyzing the medical images of each patient and combining the inverse kinematics of the robot, the target joint angle corresponding to the target position and target posture of the robotic arm is quickly determined, thereby realizing decoupled control of the position and posture of the robotic arm.
[0150] In one embodiment, the second type joints of the robotic arm are adjusted so that the end of the robotic arm moves from the current operating point to the intermediate transition point, including: determining the intermediate joint angle of the second type joints of the robotic arm when the end of the robotic arm is located at the intermediate transition point based on inverse kinematics according to the position of the intermediate transition point; and adjusting the joint angle of the second type joints of the robotic arm from the second current joint angle to the intermediate joint angle, where the second current joint angle refers to the joint angle of the second type joint when the end of the robotic arm is at the current operating point.
[0151] In determining the position coordinates of the intermediate transition point (x m ,y m , z m ), perform inverse kinematics calculation on this coordinate to determine the joint angle of the second type of joint when the robot is at the intermediate transition point, which is used as the intermediate joint angle of the second type of joint in the robot control process, and then adjust the joint angle of the second type of joint of the robot from the second current joint angle at the current operation point to the intermediate joint angle, so that the position of the end of the robot moves from the current operation point to the intermediate transition point.
[0152] In one embodiment, the first type of joint of the robotic arm is adjusted so that the posture of the end of the robotic arm at the intermediate transition point is the same as the posture of the end of the robotic arm at the target operation point, including: adjusting the joint angle of the first type of joint of the robotic arm from the first current joint angle to the target joint angle of the first type of joint, the first current joint angle refers to the joint angle of the first type of joint when the end of the robotic arm is at the current operation point.
[0153] The first type of joint of the robotic arm is used to control the posture of the end of the robotic arm. After the robotic arm moves to the intermediate transition point, it means that the robotic arm is in a "safe position" and the posture of the end of the robotic arm can be adjusted arbitrarily. Therefore, after the robotic arm moves to the intermediate transition point, the joint angle of the first type of joint is adjusted from the first current joint angle at the current operating point to the target joint angle so that the posture of the end of the robotic arm is the target posture.
[0154] In one embodiment, adjusting the second-type joints of the robotic arm so that the end of the robotic arm moves from the intermediate transition point to the target operating point includes adjusting the joint angles of the second-type joints of the robotic arm from the intermediate joint angles of the second-type joints to the target joint angles of the second-type joints. After adjusting the posture of the robotic arm end to the target posture at the intermediate transition point, the end of the robotic arm moves to the target operating point by adjusting the intermediate joint angles of the second-type joints to the target joint angles of the second-type joints at the target operating point.
[0155] It should be noted that, similar to the control method of the robotic arm when one transition point is used, when two transition points (a first transition point and a second transition point) are used, the position or posture of the end of the robotic arm can also be adjusted by adjusting the corresponding first-type joints or second-type joints on different segmented paths. As an example, the second-type joints of the robotic arm can be adjusted so that the end of the robotic arm moves from the starting point to the first transition point; the first-type joints of the robotic arm can be adjusted so that the posture of the end of the robotic arm at the first transition point is the same as the posture of the end of the robotic arm at the target point; the second-type joints of the robotic arm can be adjusted so that the end of the robotic arm moves from the first transition point to the second transition point; and the second-type joints of the robotic arm can be adjusted so that the end of the robotic arm moves from the second transition point to the target point. As another example, the second-type joints of the robotic arm can be adjusted so that the end of the robotic arm moves from the starting point to the first transition point; the second-type joints of the robotic arm can be adjusted so that the end of the robotic arm moves from the first transition point to the second transition point; the first-type joints of the robotic arm can be adjusted so that the posture of the end of the robotic arm at the second transition point is the same as the posture of the end of the robotic arm at the target point; and the second-type joints of the robotic arm can be adjusted so that the end of the robotic arm moves from the second transition point to the target point.
[0156] In one embodiment, the present application further provides a path planning method for a robotic arm. This method is illustrated by applying it to a six-degree-of-freedom robotic arm. The axial joints where all axes of the robotic arm intersect at one point are regarded as first-class joints, and the axial joints in the robotic arm other than the first-class joints are regarded as second-class joints. As shown in FIG10 , this embodiment includes the following steps:
[0157] Step 1002 , when the end of the robotic arm is located at the current operating point, the current joint angles of the second type of joints and the current joint angles of the first type of joints of the robotic arm are determined, and form a current joint angle set.
[0158] Step 1004, determine the intermediate joint angle of the second type of joint of the robotic arm when the end of the robotic arm is located at the intermediate transition point; and determine the first target joint angle of the first type of joint and the second target joint angle of the second type of joint of the robotic arm when the end of the robotic arm is located at the target operation point, and form a target joint angle set.
[0159] Step 1006, determining a first joint angle set based on the intermediate joint angle of the second type of joint and the first current joint angle of the first type of joint; and determining a second joint angle set based on the intermediate joint angle of the second type of joint and the first target joint angle of the first type of joint.
[0160] Step 1008, determine the first path for the joint angles of the robotic arm to be transformed from the current joint angle set to the first joint angle set, the second path for the joint angles of the robotic arm to be transformed from the first joint angle set to the second joint angle set, and the third path for the joint angles of the robotic arm to be transformed from the second joint angle set to the target joint angle set.
[0161] According to the step description of the control method of the above-mentioned robot arm, it can be known that for the joints of the robot arm, its control is essentially achieved by adjusting the size of the joint angle, so the path planning of the robot arm is essentially a process of changing between different joint angle sets. Specifically, the joint angles of all joints of the robot arm at the current operating point are taken as the current joint angle set. Since the posture of the end of the robot arm needs to be adjusted at the intermediate transition point, two intermediate safety points are determined at the intermediate transition point, corresponding to the first joint angle set and the second joint angle set respectively. The process of transforming the joint angle of the robot arm from the current joint angle set to the first joint angle set is defined as the first path, the process of transforming the joint angle of the robot arm from the first joint angle set to the second joint angle set is defined as the second path, and the process of transforming the joint angle of the robot arm from the second joint angle set to the target joint angle set is defined as the third path. The robot arm is controlled through three paths.
[0162] For example, in the process shown in FIG9 , the first path is The second path is The third path is
[0163] It should be noted that after the total path of the robot arm moving from the current operating point to the target operating point is divided into at least three paths, the movement process of the robot arm in each path, for example This process can be achieved through a sampling-based path planning algorithm. The path planning method for the robotic arm provided in this manual divides the path planning of the robotic arm into three stages, decoupling position control and attitude control, reducing the dimension of the path planning problem, improving planning efficiency, and effectively solving the path return problem.
[0164] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0165] FIG11 is an exemplary flow chart of a method for determining a transition point according to some embodiments of this specification. As shown in FIG11 , the method for determining a transition point includes the following steps:
[0166] Step 1102 : Acquire a registration matrix between the robotic arm and the three-dimensional medical image of the target operation object scanned before the operation.
[0167] Step 1104 : determining the relative positional relationship between the robotic arm and the target operation object of the robotic arm according to the registration matrix.
[0168] Step 1106: Determine the intermediate transition point based on the relative position relationship.
[0169] The description of the registration matrix can be found above and will not be repeated here.
[0170] In some embodiments, the position of the robotic arm and the position of the target operation object can be converted to the same coordinate system based on the relative position relationship, thereby determining the safe operating range between the robotic arm and the target operation object, and then screening the intermediate transition point within the safe operating range based on preset conditions. For example, it is required that the robotic arm will not collide when moving from any operating point of the target operation object to the intermediate transition point; or, it is required that the distance from the intermediate transition point to all target operation points of the robotic arm is almost the same to ensure movement efficiency. After determining the position coordinates of the intermediate transition point, the joint angle of the second type joint of the robotic arm at the intermediate transition point can be obtained by inverse solution of the robot kinematics.
[0171] In the method provided in the above embodiment, the relative position relationship between the robotic arm and the target operation object can be accurately determined through the registration matrix, so that the position of the obtained intermediate transition point is more in line with the requirements of safe and efficient movement of the robotic arm.
[0172] In some embodiments, a first plane separating the robotic arm and the target operation object can be determined based on the relative position relationship (the robotic arm and the target operation object are located on different sides of the first plane), and the first plane is perpendicular to the horizontal line between the robotic arm and the target operation object; based on the position of the target operation object, a second plane above the target operation object is determined, the second plane is parallel to the plane where the target operation object is located, and the distance between the second plane and the plane where the target operation object is located is not less than a preset distance; the point on the intersection of the first plane and the second plane that is closest to the target operation object is used as the intermediate transition point.
[0173] It should be noted that the first plane is between the robot arm and the target operation object, and does not include any point between the two. Specifically, the first boundary point describing the outer contour of the robot arm and the second boundary point describing the outer contour of the target operation object can be determined first, and the median perpendicular plane between the two can be determined by the first boundary point and the second boundary point, which is used as the first plane. As an example, the median perpendicular plane of the line between the projection point of the first boundary point in the horizontal direction and the projection point of the second boundary point in the horizontal direction can be used as the first plane. The second plane can be a horizontal plane above the target operation object, and the second plane cannot include any point of the second boundary point.
[0174] As you can understand, the first plane lies between the robotic arm and the target object, and the second plane is parallel to the target object. Therefore, spatially, the first and second planes must intersect, defining an intersection line. The point on this intersection line closest to the target object is selected as the intermediate transition point. The choice of the first and second planes ensures the safety of the intermediate transition point, and the distance allows the most efficient intermediate transition point to be selected.
[0175] In some embodiments, the distance between the second plane and the plane where the target operation object is located can be set to be no less than a preset distance to improve safety during the robot arm's movement. The preset distance can be the sum of the robot arm's posture transformation distance and the safety distance. The posture transformation distance is the maximum length the robot arm can reach during movement from its initial posture to its target posture. In some embodiments, the safety distance can be determined based on personnel characteristics. Personnel characteristics may include, but are not limited to, the number of medical staff in the operating room and their activity intensity. The safety distance is positively correlated with the number of medical staff and their activity intensity. For example, the greater the number of medical staff in the operating room and / or the higher the activity intensity, the larger the safety distance can be set; the fewer the number of medical staff in the operating room and / or the lower the activity intensity, the smaller the safety distance can be set. In some embodiments, the safety distance can also be determined based on the robot arm's performance characteristics. Robot arm performance characteristics include, among others, robot arm accuracy. Robot arm accuracy refers to the degree to which the actual motion path of the robot arm's end deviates from the target path (such as path deviation caused by robot arm jitter). Therefore, by setting the posture conversion distance and safety distance, it can be further ensured that the end of the robotic arm will not hit the target operation object and obstacles in the surrounding environment when adjusting, thereby improving the efficiency and success rate of path planning and the safety of surgery.
[0176] In some embodiments, the third plane can also be determined by the relative position relationship between the robotic arm and the target operation object, and the intersection of the three planes is used as the intermediate transition point. Figure 12 is a schematic diagram of determining the transition point according to some embodiments of this specification. Take the neurosurgery scene in Figure 12 as an example, where the target operation object is a person (patient), and the robot is a neurosurgery assistance robot 1. At this time, the preset direction is directly above the patient's head 3 in Figure 12. In addition, the figure also includes the robotic arm 2 of the neurosurgery assistance robot 1, the support arm 4 for connecting the operating bed 7 and the neurosurgery assistance robot 1, the unlocking mechanism 5 for fixing the connection between the operating bed 7 and the neurosurgery assistance robot 1, and the head frame 6 for supporting the patient's head 3.
[0177] In Figure 12, based on the relative position relationship between the robot and the target operation object, obtaining the intermediate transition point includes: taking the center point of the patient's head as the first reference point (the plane passing through the first reference point and parallel to the horizontal plane is the plane where the patient is located), and the center point of the base of the neurosurgery assistance robot as the second reference point; taking the vertical plane passing through the center of the line between the first reference point and the second reference point and perpendicular to the horizontal plane as the first plane (plane A); taking the plane that is a preset distance from the first reference point (or the plane where the patient is located), located above the patient's head and parallel to the horizontal plane as the second plane (plane B); taking the plane that includes the line between the first reference point and the second reference point and is perpendicular to the horizontal plane as the third plane (plane C); and taking the intersection of the first plane, the second plane and the third plane as the intermediate transition point.
[0178] Through the method provided by the above embodiment, the intermediate transition point is determined according to the plane determined by safety and the distance from the target operation object, which can ensure that the intermediate transition point has both safety and efficiency characteristics.
[0179] In some embodiments, the transition point can be determined according to the following method: based on the relative position relationship, the three-dimensional space boundary between the robotic arm and the target operation object is determined; the three-dimensional space boundary is divided according to at least one preset side length to obtain a plurality of grids; according to the preset side lengths from large to small, the plurality of grids corresponding to each preset side length are traversed until the center point of the grid that meets the preset conditions is determined as the intermediate transition point.
[0180] Using relative positional relationships, the robot's base coordinate system, the target object, and any obstacles within the robot's workspace are transformed into the same coordinate system. This then determines a feasible 3D spatial boundary. Feasibility means the robot can move within the 3D spatial boundary without any collisions. It should be noted that, in general, the 3D spatial boundary is typically a regular rectangular parallelepiped to facilitate the subsequent selection of intermediate transition points.
[0181] Secondly, multiple levels of grid division are designed according to the preset side lengths, from large to small, to form a hierarchical structure. For example, if the feasible three-dimensional space boundary is a cube with a side length of 16, if it is divided according to the preset side length of 8, it can be divided into 8 cube grids with a side length of 8; if it is divided according to the preset side length of 4, it can be divided into 64 cube grids with a side length of 4; if it is divided according to the preset side length of 1, it can be divided into 4096 cube grids with a side length of 1.
[0182] Next, prioritize the hierarchical grids. For example, a grid with a side length of 16 is the first level, a grid with a side length of 8 is the second level, and so on. The smaller the grid, the lower the level. Finally, prioritize searching for grids at higher levels (i.e., grids with larger side lengths). If the center point of a grid meets the requirements for selecting an intermediate transition point, it is directly selected as the intermediate transition point. If no grids at this level meet the requirements, search the grids at the next level, and so on, until a feasible intermediate transition point is found.
[0183] It should be noted that in the above process, the division of the three-dimensional space boundary into at least one preset side length and the traversal of intermediate transition points can be performed simultaneously. For example, after dividing the three-dimensional space boundary of a cube with a side length of 16 into a grid with a preset side length of 8, the intermediate transition point is first traversed through all the resulting grids. If no intermediate transition point is found, the preset side length is reduced and the grid division and intermediate transition point traversal process is repeated until a suitable intermediate transition point is found. This method avoids the workload associated with multiple grid divisions and improves the efficiency of traversal of intermediate transition points.
[0184] In the method provided in the above embodiment, the intermediate transition point is determined by gridding and traversing the feasible three-dimensional space boundary between the robotic arm and the target operation object. While ensuring that the intermediate transition point is safe and collision-free, the intermediate transition point can be selected in a variety of ways according to preset conditions, making the selection of the intermediate transition point more flexible.
[0185] In some embodiments, the transition point can be determined by: obtaining the initial position of the reference point of the target operation object, determining the target position of the reference point in the base coordinate system of the robotic arm based on the relative position relationship; and taking the weighted average position of the current position of the robotic arm and the target reference point position as the intermediate transition point.
[0186] The reference point is a representative operating point on the target object, such as the center of the patient's head. The initial position is the position of the reference point in the target object's coordinate system or image coordinate system, which is the position obtained when the reference point is selected. The initial position of the reference point is converted to the manipulator's base coordinate system using a relative position relationship. The intermediate transition point between the manipulator's current position and the target reference point position is calculated using the weighted average position formula.
[0187] It's important to note that the weighted average position formula is a variation of the formula for finding the midpoint coordinates between two points: the center point of the manipulator base and the target reference point of the target object. The weighting coefficients in the weighted average position formula are determined experimentally.
[0188] In the method provided by the above embodiments, by substituting the coordinates of two points into the weighted average position formula to calculate the coordinates of the intermediate transition point, the position of the intermediate transition point can be quickly determined.
[0189] In some embodiments, there may be a situation where two transition points are not applicable (that is, the path planning result based on the first transition point and the second transition point is a failed path planning). At this time, more than two transition points need to be used for path planning. The method of using more than two transition points for path planning is roughly the same as the planning method for two transition points, which will not be elaborated here. The determination method of more than two transition points can be determined based on the following method: generate multiple sets of candidate transition points; determine the path planning result corresponding to each set of candidate transition points through a prediction model; determine the target transition point based on the path planning result.
[0190] In some embodiments, the position of a transition point can be determined first according to the method described in FIGS. 11-12, and the horizontal plane where the transition point is located (denoted as the transition point plane) can be determined according to the position of the transition point. The height between the transition point plane and the plane where the target operation object is located is denoted as h. The projection point of the center point of the head of the target operation object on the transition point plane is used as a reference point. Within the range of the distance threshold L (L < h), a point at a specific angle direction and a specific distance from the reference point can be used as a candidate transition point. Thus, the position of the candidate transition point can be jointly represented by the height from the plane where the target operation object is located, the direction relative to the reference point, and the distance relative to the reference point. The combination of the positions of multiple candidate transition points constitutes a set of candidate transition points. The prediction model is used to determine the path planning result corresponding to each set of candidate transition points. When the output result of the prediction model is a successful path planning, this set of candidate transition points can be determined as a set of target transition points.
[0191] In some embodiments, the prediction model can be obtained through training. The input of the prediction model can be the position of a set of candidate transition points, and the output is the path planning result (such as a failed path planning or a successful path planning). When the path planning fails, the training label can be recorded as 1, and when the path planning is successful, the training label is recorded as 0. The prediction model can be obtained by inputting a large number of sets of candidate transition points with training labels into an initial prediction model for training. Specifically, the candidate transition points with labels can be input into the initial prediction model to obtain the output result of the initial prediction model. The parameters of the initial prediction model are updated through training until the intermediate prediction model during training meets the preset conditions to obtain the trained prediction model. Among them, the preset conditions can be that the loss function is less than the threshold, convergence, or the training cycle reaches the threshold.
[0192] It should be noted that the robotic arm end described in the embodiments of this specification as being located at a certain position (such as a starting point, a target point, a first transition point, or a second transition point) may mean that any point of the robotic arm end is located at that position, or that the origin of the coordinate system of the robotic arm end is located at that position.
[0193] Based on the same inventive concept, embodiments of this specification also provide a robotic arm path planning device for implementing the aforementioned robotic arm path planning method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of the one or more robotic arm path planning device embodiments provided below can be found in the aforementioned limitations of the robotic arm path planning method and will not be further elaborated here.
[0194] In some embodiments, a path planning device for a robotic arm is provided, as shown in FIG13 , wherein the path planning device includes:
[0195] The determination module 1310 is used to determine a transition point, where the transition point is located in the path of the end of the robot arm moving from the starting point to the target point.
[0196] The path planning module 1320 is used to determine the path planning result of the robot arm based on the starting point, transition point and target point.
[0197] In some embodiments, the path planning module 1320 may include a first sub-determination module, a second sub-determination module, a first planning module, and a second planning module. The first sub-determination module is configured to determine the starting joint angles of the joints of the manipulator when the manipulator end of the manipulator is located at the starting point; the second sub-determination module is configured to determine the target joint angles of the joints of the manipulator when the manipulator end is located at the target point; the first planning module is configured to perform a first planning on the path for transforming the joint angles of the manipulator from the starting joint angle to the target joint angle, thereby obtaining a first planning result; and the second planning module is configured to determine the first joint angles of the joints of the manipulator when the manipulator end is located at the first transition point when the first planning result indicates that the planning has failed, and to plan the path for transforming the joint angles of the manipulator from the starting joint angle to the first joint angle and from the first joint angle to the target joint angle, thereby obtaining a third planning result. In some embodiments, the second planning module can also be used to determine the second joint angle of each joint of the robotic arm when the end of the robotic arm is located at the second transition point when the third planning result indicates that the planning has failed, and perform a second planning on the path of transforming each joint angle of the robotic arm from the starting joint angle to the first joint angle, each joint angle of the robotic arm from the first joint angle to the second joint angle, and each joint angle of the robotic arm from the second joint angle to the target joint angle to obtain a second planning result.
[0198] In some embodiments, the path planning device may further include a motion control module for controlling the movement of the robotic arm. In some embodiments, the motion control module may include a first control module, a second control module, and a third control module. Among them, the first control module is used to adjust the second type of joints of the robotic arm so that the end of the robotic arm moves from the current operating point to the intermediate transition point; the second control module is used to adjust the first type of joints of the robotic arm so that the posture of the end of the robotic arm at the intermediate transition point is the same as the posture of the end of the robotic arm at the target operating point; the third control module is used to adjust the second type of joints of the robotic arm so that the end of the robotic arm moves from the intermediate transition point to the target operating point. In some embodiments, the motion module control module may further include more control modules. For example, when the transition point includes a first transition point and a second transition point, the motion control module may include a first control module, a second control module, a third control module, and a fourth control module. Among them, the first control module is used to adjust the second type of joints of the robotic arm so that the end of the robotic arm moves from the current operation point to the first transition point; the second control module is used to adjust the first type of joints of the robotic arm so that the posture of the end of the robotic arm at the first transition point is the same as the posture of the end of the robotic arm at the target operation point; the third control module is used to adjust the second type of joints of the robotic arm so that the end of the robotic arm moves from the first transition point to the second transition point; the fourth control module is used to adjust the second type of joints of the robotic arm so that the end of the robotic arm moves from the second transition point to the target operation point.
[0199] In some embodiments, an embodiment of the present specification provides a method for controlling a robotic arm, including: determining a transition point, where the transition point is located in the path where the end of the robotic arm moves from a starting point to a target point; determining a path planning result of the robotic arm based on the starting point, the transition point, and the target point; and controlling the movement of the robotic arm based on the path planning result.
[0200] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG14 . The computer device includes a processor, memory, a communication interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal via wired or wireless communication. The wireless communication may be achieved via Wi-Fi, a mobile cellular network, NFC (near field communication), or other technologies. When the computer program is executed by the processor, a path planning method for a robotic arm is implemented. The display screen of the computer device may be a liquid crystal display or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, or may be buttons, a trackball, or a touchpad provided on the computer device housing, or may be an external keyboard, touchpad, or mouse.
[0201] Those skilled in the art will understand that the structure shown in FIG14 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0202] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented: determining a transition point, where the transition point is located in the path of the end of the robotic arm moving from a starting point to a target point; and determining a path planning result of the robotic arm based on the starting point, the transition point, and the target point.
[0203] In one embodiment, when the processor executes the computer program, the following steps may also be implemented: determining the starting joint angle of each joint of the robotic arm when the robotic arm end is located at the starting point; determining the target joint angle of each joint of the robotic arm when the robotic arm end is located at the target point; planning the path for transforming each joint angle of the robotic arm from the starting joint angle to the target joint angle, and obtaining a first planning result; if the first planning result indicates that the planning fails, determining the first joint angle of each joint of the robotic arm when the robotic arm end is located at the first transition point, and planning the path for transforming each joint angle of the robotic arm from the starting joint angle to the first joint angle, and from the first joint angle to the target joint angle, and obtaining a third planning result; if the third planning result indicates that the planning fails, determining the second joint angle of each joint of the robotic arm when the robotic arm end is located at the second transition point, and planning the path for transforming each joint angle of the robotic arm from the starting joint angle to the first joint angle, from the first joint angle to the second joint angle, and from the second joint angle to the target joint angle, and obtaining a second planning result.
[0204] In one embodiment, the processor can also implement the following steps when executing the computer program: adjust the second type of joints of the robotic arm so that the end of the robotic arm moves from the current operating point to the intermediate transition point; adjust the first type of joints of the robotic arm so that the posture of the end of the robotic arm at the intermediate transition point is the same as the posture of the end of the robotic arm at the target operating point, and the first type of joints are used to adjust the posture of the end of the robotic arm; adjust the second type of joints so that the end of the robotic arm moves from the intermediate transition point to the target operating point.
[0205] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, and the like.
[0206] The basic concepts have been described above. It will be apparent to those skilled in the art that the detailed disclosure above is merely illustrative and does not limit the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and amendments to the present application. Such modifications, improvements, and amendments are suggested in the present application and remain within the spirit and scope of the exemplary embodiments of the present application.
[0207] At the same time, this application uses specific terms to describe the embodiments of this application. For example, "one embodiment," "an embodiment," and / or "some embodiments" refer to a certain feature, structure, or characteristic related to at least one embodiment of this application. Therefore, it should be emphasized and noted that "one embodiment," "an embodiment," or "an alternative embodiment" mentioned twice or multiple times in different locations in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures, or characteristics in one or more embodiments of this application may be appropriately combined.
[0208] In addition, it will be understood by those skilled in the art that various aspects of the present application can be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of the present application can be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may all be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of the present application may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.
[0209] A computer storage medium may include a propagated data signal embodying the computer program code, for example, in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, or any suitable combination thereof. A computer storage medium may be any computer-readable medium other than a computer-readable storage medium that can be connected to an instruction execution system, apparatus, or device to communicate, propagate, or transfer the program for use. The program code on the computer storage medium may be transmitted via any suitable medium, including radio, cable, fiber optic cable, RF, or similar media, or any combination of these.
[0210] The computer program code required for the operation of each part of the present application can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., conventional procedural programming languages such as C language, Visual Basic, Fortran 2003, Perl, COBOL 2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages. The program code can be run entirely on the user's computer, or as a separate software package on the user's computer, or partly on the user's computer and partly on a remote computer, or entirely on a remote computer or processing device. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).
[0211] In addition, unless expressly stated in the claims, the order of the processing elements and sequences described in this application, the use of alphanumeric characters, or the use of other names are not intended to limit the order of the processes and methods of this application. Although the above disclosure discusses some of the invention embodiments currently considered useful through various examples, it should be understood that such details are only for illustrative purposes, and the appended claims are not limited to the disclosed embodiments. On the contrary, the claims are intended to cover all modifications and equivalent combinations that are consistent with the essence and scope of the embodiments of this application. For example, although the system components described above can be implemented by hardware devices, they can also be implemented only by software solutions, such as installing the described system on an existing processing device or mobile device.
[0212] Similarly, it should be noted that, in order to simplify the presentation of this application and thus facilitate understanding of one or more embodiments of the invention, the foregoing descriptions of the embodiments of this application sometimes combine multiple features into a single embodiment, figure, or description thereof. However, this disclosure method does not mean that the subject matter of this application requires more features than those recited in the claims. In fact, an embodiment may have fewer features than all of the features of a single embodiment disclosed above.
[0213] In some embodiments, numbers are used to describe the quantity of components and attributes. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise stated, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the description and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the settings of such numerical values are as accurate as possible within the feasible range.
[0214] Each patent, patent application, patent application disclosure, and other materials, such as articles, books, specifications, publications, documents, etc., cited in this application is hereby incorporated by reference in its entirety. This includes application history documents that are inconsistent with or conflict with the content of this application, as well as documents (currently or subsequently attached to this application) that limit the broadest scope of the claims of this application. It should be noted that if the descriptions, definitions, and / or use of terms in the accompanying materials of this application are inconsistent or conflicting with the content of this application, the descriptions, definitions, and / or use of terms in this application shall prevail.
[0215] Finally, it should be understood that the embodiments described in this application are merely illustrative of the principles of the embodiments of this application. Other variations may also fall within the scope of this application. Therefore, by way of example and not limitation, alternative configurations of the embodiments of this application may be considered consistent with the teachings of this application. Accordingly, the embodiments of this application are not limited to the embodiments explicitly introduced and described in this application.
Claims
1. A path planning method for a robotic arm, in, The method comprises: Determine a transition point, wherein the transition point is located in a path where the end of the robot arm moves from a starting point to a target point; Based on the starting point, the transition point and the target point, a path planning result of the robotic arm is determined.
2. The method according to claim 1, in, The transition point includes a first transition point, and determining a path planning result of the robot arm based on the starting point, the transition point and the target point includes: Determine the starting joint angle of each joint of the robotic arm when the end of the robotic arm is located at the starting point; Determining a target joint angle of each joint of the robotic arm when the end of the robotic arm is located at a target point; Planning a path for transforming each joint angle of the robot arm from the starting joint angle to the target joint angle to obtain a first planning result; In a case where the first planning result indicates that planning fails, determining a first joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point; A path for transforming each joint angle of the robot arm from the starting joint angle to the first joint angle and a path for transforming each joint angle of the robot arm from the first joint angle to the target joint angle is planned to obtain a third planning result.
3. The method according to claim 2, in, The determining of the first joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point includes: The first joint angle of each joint of the robotic arm is determined according to the initial joint angle of each joint of the robotic arm.
4. The method according to claim 3, in, Determining the first joint angle of each joint of the robotic arm according to the starting joint angle of each joint of the robotic arm includes: Performing forward kinematics solution on the starting joint angles of each joint of the robotic arm to obtain a first coordinate matrix of the robotic arm end at the position of the starting point relative to the robotic arm base; Transforming the first coordinate matrix according to a preset first offset to obtain a second coordinate matrix of the end of the robotic arm relative to the robotic arm base at the position of the first transition point; Based on the principle of minimizing the change of the initial joint angle of each joint of the robotic arm, the second coordinate matrix is solved by inverse kinematics to determine the first joint angle of each joint of the robotic arm.
5. The method according to claim 2, in, After determining the first joint angles of the joints of the robotic arm when the end of the robotic arm is located at the first transition point, the method further includes: Determining a third joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point; Correspondingly, planning a path for transforming each joint angle of the robot arm from the first joint angle to the target joint angle includes: A path is planned for transforming each joint angle of the robot arm from the first joint angle to the third joint angle and for transforming each joint angle of the robot arm from the third joint angle to the target joint angle.
6. The method according to claim 5, in, The axis joints in which all axes of the robot arm intersect at one point are regarded as first-type joints, and the axis joints in the robot arm other than the first-type joints are regarded as second-type joints. The third planning result includes the following multiple paths: a first path for transforming each joint angle of the robotic arm from the starting joint angle to the first joint angle, the first path being used to indicate the movement of at least part of the joints of the second type so as to control the end of the robotic arm to reach the first transition point from the starting point; a second path for transforming each joint angle of the robotic arm from the first joint angle to the third joint angle, the second path being used to indicate the movement of at least part of the first type of joints so as to adjust the posture of the end of the robotic arm at the first transition point to a target posture; wherein the target posture is the posture of the end of the robotic arm at the target point; The joint angles of the robotic arm are transformed from the third joint angle to the target joint angle along a third path, and the third path is used to indicate at least part of the joint movement of the second type of joints to control the end of the robotic arm to reach the target point from the first transition point.
7. The method according to claim 2, in, The transition point further includes a second transition point, and the determining of the path planning result of the robot arm based on the starting point, the transition point and the target point includes: In a case where the third planning result indicates that planning fails, determining a second joint angle of each joint of the robotic arm when the end of the robotic arm is located at the second transition point; Plan the path for transforming each joint angle of the robotic arm from the starting joint angle to the first joint angle, transforming each joint angle of the robotic arm from the first joint angle to the second joint angle, and transforming each joint angle of the robotic arm from the second joint angle to the target joint angle to obtain a second planning result.
8. The method according to claim 7, in, The determining of the second joint angles of the joints of the robotic arm when the end of the robotic arm is located at the second transition point includes: The second joint angle of each joint of the robotic arm is determined according to the target joint angle of each joint of the robotic arm.
9. The method according to claim 8, in, Determining the second joint angle of each joint of the robotic arm according to the target joint angle of each joint of the robotic arm includes: Performing forward kinematics solution on the target joint angles of each joint of the robotic arm to obtain a third coordinate matrix of the robotic arm end at the position of the target point relative to the robotic arm base; According to a preset second offset, the third coordinate matrix is transformed to obtain a fourth coordinate matrix of the end of the robotic arm at the position of the second transition point relative to the robotic arm base; Based on the principle of minimizing the amount of change of the target joint angle relative to each joint of the robotic arm, the fourth coordinate matrix is solved by inverse kinematics to determine the second joint angle of each joint of the robotic arm.
10. The method according to claim 7, in, After determining the first joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point, the method further includes: Determining a third joint angle of each joint of the robotic arm when the end of the robotic arm is located at the first transition point; Correspondingly, planning a path for transforming each joint angle of the robot arm from the first joint angle to the second joint angle includes: A path is planned for transforming each joint angle of the robot arm from the first joint angle to the third joint angle and for transforming each joint angle of the robot arm from the third joint angle to the second joint angle.
11. The method according to claim 10, in, The axis joints in which all axes of the robot arm intersect at one point are regarded as first-type joints, and the axis joints in the robot arm other than the first-type joints are regarded as second-type joints. The second planning result includes the following multiple paths: a first path for transforming each joint angle of the robotic arm from the starting joint angle to the first joint angle, the first path being used to indicate the movement of at least part of the joints of the second type so as to control the end of the robotic arm to reach the first transition point from the starting point; a second path for transforming each joint angle of the robotic arm from the first joint angle to the third joint angle, the second path being used to indicate the movement of at least part of the first type of joints so as to adjust the posture of the end of the robotic arm at the first transition point to a target posture; wherein the target posture is the posture of the end of the robotic arm at the target point; a third path for transforming each joint angle of the robotic arm from the third joint angle to the second joint angle, the third path being used to indicate the movement of at least part of the second type of joints so as to control the end of the robotic arm to reach the second transition point from the first transition point; A fourth path is provided for transforming the joint angles of the robotic arm from the second joint angle to the target joint angle, and the fourth path is used to indicate the movement of at least part of the joints in the second type of joints to control the end of the robotic arm to reach the target point from the second transition point.
12. The method according to claim 1, in, The determining of the transition point comprises: Acquire a registration matrix between the robotic arm and a three-dimensional medical image of a target operation object; Determining the relative position relationship between the robotic arm and the target operation object according to the registration matrix; The transition point is determined according to the relative position relationship.
13. The method according to claim 1, in, The axial joints in which all axes of the robot arm intersect at one point are regarded as first-type joints, and the axial joints in the robot arm other than the first-type joints are regarded as second-type joints. The method further includes controlling the movement of the robot arm based on the path planning result, and the controlling the movement of the robot arm based on the path planning result includes: Adjusting the second type of joint of the robotic arm so that the end of the robotic arm moves from the starting point to the transition point; Adjusting the first type of joint of the robotic arm so that the posture of the end of the robotic arm at the transition point is the same as the posture of the end of the robotic arm at the target point; The second type of joint of the robotic arm is adjusted so that the end of the robotic arm moves from the transition point to the target point.
14. The method according to claim 13, in, The method further comprises: Acquire a registration matrix between the robotic arm and a three-dimensional medical image of a target operation object, and surgical planning information formulated for the three-dimensional medical image; Determining, according to the registration matrix and the surgical planning information, a target position of the target point and a target posture of the end of the robotic arm when the end of the robotic arm is located at the target point; According to the target position of the target point and the target posture of the end of the robotic arm, based on inverse kinematics, the first target joint angle of the first type of joint of the robotic arm and the second target joint angle of the second type of joint of the robotic arm are determined when the end of the robotic arm is located at the target point.
15. The method according to claim 14, in, The step of adjusting the second type of joint of the robotic arm so that the end of the robotic arm moves from the starting point to the transition point includes: According to the position of the transition point, based on inverse kinematics, determining the intermediate joint angle of the second type of joint of the robotic arm when the end of the robotic arm is located at the transition point; The joint angle of the second type of joint of the robotic arm is adjusted from the second current joint angle to the intermediate joint angle, where the second current joint angle refers to the joint angle of the second type of joint when the end of the robotic arm is at the starting point.
16. The method according to claim 14, in, The step of adjusting the first type of joint of the robotic arm so that the posture of the end of the robotic arm at the transition point is the same as the posture of the end of the robotic arm at the target point includes: The joint angle of the first type of joint of the robotic arm is adjusted from a first current joint angle to a first target joint angle of the first type of joint, where the first current joint angle refers to the joint angle of the first type of joint at the end of the robotic arm at the starting point.
17. The method according to claim 15, in, The step of adjusting the second type of joint of the robotic arm so that the end of the robotic arm moves from the transition point to the target point includes: The joint angle of the second type of joint of the robotic arm is adjusted from the intermediate joint angle to a second target joint angle of the second type of joint.
18. A path planning device for a robotic arm, in, The path planning device comprises: A determination module, used to determine a transition point, wherein the transition point is located in a path where the end of the robot arm moves from a starting point to a target point; A path planning module is used to determine the path planning result of the robot arm based on the starting point, the transition point and the target point.
19. A computer-readable storage medium having a computer program stored thereon, in, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 17 are implemented.
20. A computer device comprising a memory and a processor, wherein the memory stores a computer program. in, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 17 are implemented.
21. A method for controlling a robotic arm, include: Determine a transition point, wherein the transition point is located in a path where the end of the robot arm moves from a starting point to a target point; Determining a path planning result of the robotic arm based on the starting point, the transition point and the target point; The movement of the robot arm is controlled based on the path planning result.
Citation Information
Patent Citations
Method and system for setting movement path of mechanical arm
CN106003027A
Path planning method and device based on mechanical arm
CN107511825A
Working path planning method and device based on mechanical arm
CN107571258A
Industrial mechanical arm path planning method based on piecewise multi-order polynomial interpolation
CN111002308A
Method of path planning for array-based pick-and-place performed with robotic arm and compensator for use with the method
US20170252927A1
Cited By
Path planning method and system for decoupling of composite mechanical arm of picking robot
CN118990511A
Mechanical arm tail end posture adjusting method based on tcp coordinate system projection
CN119115963A
Robot arm control method and device, electronic equipment and readable storage medium
CN119454243A
A machine arm control method and device, electronic equipment and readable storage medium
CN119454243B
Automatic stringing method and system based on cooperative control of double mechanical arms and force perception feedback
CN120985632A
