Mechanical arm attitude control method and device, electronic equipment and storage medium
By determining the adjustment mode and performing posture interpolation based on the posture relationship between the robotic arm and the main operator in the surgical robot system, the problem of inconsistent movement trends of the robotic arm and the main operator is solved, and hand-eye coordination is improved.
Patent Information
- Application Number
- CN202411129314.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-16
AI Technical Summary
The existing robot arm posture interpolation method cannot ensure that the movement trend of the robot arm after interpolation is the same as the movement trend of the main operator, resulting in the inability to achieve good hand-eye coordination in the surgical robot system.
By entering the attitude adjustment mode, the adjustment mode is determined based on the actual attitude of the manipulator, the last moment and the target attitude of the main operator at the current moment, and different starting and target attitude points are selected for interpolation processing according to different adjustment modes. Ensure that the movement trend of the robot arm is consistent with that of the main operator.
It achieves synchronization of the robot arm posture interpolation with the movement trend of the main operator in the surgical robot system, improves hand-eye coordination, and ensures that the robot arm can effectively follow the movement of the main operator.
Smart Images

Figure CN118809609A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of robot arm control, and in particular to a robot arm posture control method, device, electronic equipment and storage medium. Background Art
[0002] In the master-slave motion of the surgical robot system, when the master manipulator moves too fast, the robotic arm and the instrument themselves are limited in their motion ability and cannot completely follow the movement of the master manipulator. In order to achieve better hand-eye coordination, it is often necessary to use a posture interpolation method to obtain an interpolated posture that approximates the master manipulator's posture, and use this posture to control the movement of the robotic arm and surgical instruments.
[0003] At present, the commonly used posture interpolation method can only make the posture of the robot arm approach the target posture direction of the main manipulator, but cannot ensure that the movement trend of the robot arm after interpolation is the same as that of the main manipulator. Summary of the invention
[0004] The present invention provides a method, device, electronic equipment and storage medium for controlling the posture of a robot arm, so as to ensure that the movement trend of the robot arm after interpolation is the same as the movement trend of a main operator.
[0005] According to one aspect of the present invention, a method for controlling the posture of a robotic arm is provided, which is applied to a surgical robot system. The surgical robot system includes a main manipulator and a robotic arm. The main manipulator is used to control the movement of the robotic arm. There is a motion mapping relationship between the main manipulator and the robotic arm. The method includes:
[0006] When entering the posture adjustment mode, determining the adjustment mode of the robotic arm based on the actual posture of the robotic arm at the current moment, the target posture of the master operator at the previous moment, and the target posture of the master operator at the current moment;
[0007] Based on the starting posture point and the target posture point corresponding to the adjustment mode, interpolation processing is performed to obtain an interpolated posture, the adjustment posture of the robotic arm is determined based on the interpolated posture, and the movement of the robotic arm is controlled based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different.
[0008] According to another aspect of the present invention, a robot arm posture control device is provided, which is applied to a surgical robot system, wherein the surgical robot system includes a main manipulator and a robot arm, wherein the main manipulator is used to control the movement of the robot arm, and a motion mapping relationship exists between the main manipulator and the robot arm, and the device includes:
[0009] An adjustment mode determination module, used to determine the adjustment mode of the robotic arm based on the actual posture of the robotic arm at the current moment, the target posture of the master operator at the previous moment, and the target posture of the master operator at the current moment when entering the posture adjustment mode;
[0010] A posture interpolation module is used to perform interpolation processing based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain an interpolated posture, determine the adjustment posture of the robotic arm based on the interpolated posture, and control the movement of the robotic arm based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different.
[0011] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0012] at least one processor; and
[0013] a memory communicatively connected to the at least one processor; wherein,
[0014] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the robot arm posture control method described in any embodiment of the present invention.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the robot arm posture control method described in any embodiment of the present invention when executed.
[0016] The technical solution of the embodiment of the present invention is to determine the adjustment mode of the robotic arm based on the actual posture of the robotic arm at the current moment, the target posture of the main operator at the previous moment, and the target posture of the main operator at the current moment when entering the posture adjustment mode; perform interpolation processing based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain the interpolated posture, determine the adjustment posture of the robotic arm based on the interpolated posture, and control the movement of the robotic arm based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different. In the posture adjustment mode, the adjustment mode is determined, and then different starting posture points are selected for posture interpolation for different adjustment modes. After the interpolation is realized, the posture of the robotic arm approaches the target posture of the main operator while ensuring that the movement trend of the robotic arm is the same as the movement trend of the main operator.
[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 is a flow chart of a method for controlling a robot arm posture provided by Embodiment 1 of the present invention;
[0020] Figure 2 is a schematic diagram of posture interpolation in a chasing mode provided by Embodiment 1 of the present invention;
[0021] Figure 3 is a schematic diagram of posture interpolation in a waiting mode provided by the first embodiment of the present invention;
[0022] Figure 4 is a flow chart of a method for controlling the posture of a robotic arm provided in Embodiment 2 of the present invention;
[0023] Figure 5 is a structural schematic diagram of a robot arm posture control device provided in Embodiment 3 of the present invention;
[0024] Figure 6 It is a structural schematic diagram of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Embodiment 1
[0028] Figure 1 This is a flow chart of a robot arm posture control method provided in Example 1 of the present invention. This embodiment is applicable to the situation of controlling the posture of the robot arm of a surgical robot. The method can be executed by a robot arm posture control device. The robot arm posture control device can be implemented in the form of hardware and / or software. The robot arm posture control device can be configured in the control console of the surgical robot. The surgical robot system includes a main manipulator and a robot arm. The main manipulator is used to control the movement of the robot arm. There is a motion mapping relationship between the main manipulator and the robot arm.
[0029] like Figure 1 As shown, the method includes:
[0030] S110. When entering the posture adjustment mode, determining the adjustment mode of the robotic arm based on the actual posture of the robotic arm at the current moment, the target posture of the master operator at the previous moment, and the target posture of the master operator at the current moment.
[0031] Among them, the posture adjustment mode is used to adjust the posture of the manipulator through posture interpolation. In the posture adjustment mode, the adjustment mode of the manipulator includes two adjustment modes, one is the catch-up mode and the other is the waiting mode; in the catch-up mode, the posture difference between the manipulator and the main operator is increasing, and the main operator's target posture is far away from the actual posture of the manipulator at the current moment, and the manipulator's posture needs to be adjusted to catch up with the main operator; in the waiting mode, the posture difference between the manipulator and the main operator is decreasing, and the main operator's target posture is close to the actual posture of the manipulator at the current moment. It is necessary to adjust the manipulator's posture to catch up with the main operator while not exceeding the main operator to ensure that the main operator and the manipulator have the same movement trend, which can be understood as suppressing the speed of the manipulator's posture change, and the manipulator is in a waiting trend as a whole. In this embodiment, the adjustment mode of the manipulator can be determined based on the actual posture of the manipulator at the current moment, the target posture of the main operator at the previous moment, and the target posture of the main operator at the current moment.
[0032] On the basis of the above embodiment, optionally, the adjustment mode of the robotic arm is determined based on the actual posture of the robotic arm at the current moment, the target posture of the main operator at the previous moment, and the target posture of the main operator at the current moment, including: determining a first posture change speed based on the actual posture of the robotic arm at the current moment and the target posture of the main operator at the previous moment; determining a second posture change speed based on the actual posture of the robotic arm at the current moment and the target posture of the main operator at the current moment; if the first posture change speed is less than or equal to the second posture change speed, the adjustment mode of the robotic arm is the catch-up mode; if the first posture change speed is greater than the second posture change speed, the adjustment mode of the robotic arm is the waiting mode.
[0033] Among them, the first posture change speed refers to the posture change speed between the actual posture of the robot arm at the current moment and the target posture of the main operator at the previous moment. Specifically, the posture angle between the two quaternions can be calculated based on the quaternion of the actual posture of the robot arm at the current moment and the quaternion of the target posture of the main operator at the previous moment, that is, the first posture change speed. The second posture change speed refers to the posture change speed between the actual posture of the robot arm at the current moment and the target posture of the main operator at the current moment. The posture angle between the two quaternions can be calculated based on the quaternion of the actual posture of the robot arm at the current moment and the quaternion of the target posture of the main operator at the current moment, that is, the second posture change speed.
[0034] For example, the Cartesian space posture is generally represented as a 3*3 posture matrix, which can be expressed as:
[0035]
[0036] The attitude can be expressed by attitude quaternion, such as: q = [ω xyz];
[0037] in,
[0038] x=(η z -α y ) / ω,
[0039] y=(α x -s z ) / ω,
[0040] z=(s y –η x ) / ω;
[0041] The above transformation can be expressed as: q = [ω xyz] = f r2q (R).
[0042] Taking the first posture change speed as an example, the posture quaternion of the actual posture of the robot at the current moment is:
[0043] q cur =f r2q (R cur )=[ω cur x cur y cur z cur ],
[0044] The quaternion of the target posture of the master manipulator at the last moment is:
[0045] q dly =f r2q (R dly )=[ω dly x dly x dly z dly ],
[0046] Therefore, the calculation formula for the first posture change speed can be obtained as follows:
[0047] θ dly =acos(ω cur *ω dly +x cur *x dly +y cur *x dly +z cur *z dly ).
[0048] It can be understood that the above formula can be expressed by θ dly =f CalDiff (q cur ,qdly )express.
[0049] Similarly, the quaternion of the target posture of the master manipulator at the current moment is:
[0050] q in =f r2q (R in )=[ω in x in y in z in ];
[0051] The calculation formula for the second posture change speed is:
[0052] θ cur =acos(ω cur *ω in +x cur *x in +y cur *x in +z cur *z in );
[0053] Similarly, the calculation formula for the second posture change speed can be expressed as:
[0054] θ cur =f CalDiff (q cur ,q in ).
[0055] In this embodiment, the first posture change speed and the second posture change speed are compared. If the first posture change speed is less than or equal to the second posture change speed, it indicates that the difference between the posture of the main operator and the posture of the robot arm is increasing, and the adjustment mode of the robot arm is determined to be the catching-up mode; if the first posture change speed is greater than the second posture change speed, it indicates that the difference between the posture of the main operator and the posture of the robot arm is decreasing, and the adjustment mode of the robot arm is determined to be the waiting mode to ensure that the movement trends of the main operator and the robot arm are the same. Exemplarily, when θ dly ≤θ cur , it means that the target posture is moving away from the actual posture of the robot at the current moment, which is defined as "catch-up mode", such as Figure 2 As shown; when θ dly >θ cur , it means that the target posture is approaching the actual posture of the robot arm at the current moment, which is defined as "waiting mode", such as Figure 3 shown.
[0056] S120. Based on the starting posture point and the target posture point corresponding to the adjustment mode, perform interpolation processing to obtain an interpolated posture, determine the adjustment posture of the robotic arm based on the interpolated posture, and control the movement of the robotic arm based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different.
[0057] Among them, the starting posture point and the target posture point refer to the starting posture point and the target posture point for posture interpolation. Different adjustment modes correspond to different starting posture points. Specifically, in the chasing mode, the starting posture point is the actual posture of the robot arm at the current moment, and the target posture point is the target posture of the main operator at the current moment; in the waiting mode, the starting posture point is the target posture of the main operator at the previous moment, and the target posture point is the target posture of the main operator at the current moment. It should be noted that since the robot arm performs posture movement with the posture of the main operator as the target, the target posture of the main operator at the previous moment or at the current moment actually refers to the actual posture of the main operator at the previous moment or at the current moment.
[0058] In this embodiment, for different adjustment modes, based on the starting posture point and the target posture point corresponding to the adjustment mode, posture interpolation processing is performed to obtain the interpolated posture, and further, the adjustment posture of the manipulator is determined based on the interpolated posture, and the movement of the manipulator is controlled by adjusting the posture. Among them, the adjustment posture refers to the posture of the manipulator obtained after posture interpolation.
[0059] On the basis of the above embodiment, optionally, interpolation processing is performed based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain an interpolated posture, and the adjustment posture of the robotic arm is determined based on the interpolated posture, including: in the catch-up mode, interpolation processing is performed based on a first preset step size from the actual posture of the robotic arm at the current moment to the target posture of the main operator at the current moment to obtain a first interpolated posture, and the first interpolated posture is determined as the adjustment posture of the robotic arm; wherein the first preset step size is greater than the posture change speed and the first preset step size is a multiple of the posture change speed of the main operator, and the first preset step size is less than the posture change speed from the actual posture of the robotic arm at the current moment to the target posture of the main operator at the current moment.
[0060] Among them, the first preset step size refers to the step size of posture interpolation in the catch-up mode. Specifically, in the catch-up mode, the posture interpolation tends to catch up with the target posture as a whole. In order to prevent the main operator from moving too fast, it is necessary to constrain the step size of posture interpolation. The first preset step size is greater than the posture change speed of the main operator's target posture and the first preset step size is a multiple of the posture change speed of the main operator's target posture. The first preset step size is less than the posture change speed from the actual posture of the robot arm at the current moment to the target posture of the main operator at the current moment.
[0061] Exemplarily, the first preset step length in the catch-up mode may be:
[0062] θ inp1 =1.5*θ mov
[0063] Among them, θ inp1 represents the first preset step size, θ mov represents the posture change speed of the target posture of the master manipulator. It should be noted that when θ inp1 >Threshold_inp, θ inp1 =Threshold_inp; Threshold_inp is the maximum interpolation step length set according to the following capability of the robot arm. It can be understood that if the first preset step length exceeds the maximum interpolation step length set according to the following capability of the robot arm, the maximum interpolation step length will be used as the first preset step length.
[0064] In this embodiment, in the catch-up mode, the posture interpolation processing is performed from the actual posture of the robot arm at the current moment to the target posture of the main operator at the current moment with a first preset step length to obtain a first interpolated posture, and the first interpolated posture is determined as the adjustment posture of the robot arm. The first interpolated posture refers to the posture obtained after interpolation based on the first preset step length. Exemplarily, the interpolation formula of the first interpolated posture is as follows:
[0065]
[0066] Let t = θ inp1 / θ cur (t<1);
[0067] Among them, q inp1 The attitude quaternion representing the first interpolated attitude, q cur The attitude quaternion representing the starting attitude point, that is, the attitude quaternion of the actual attitude of the robot arm at the current moment; q in The attitude quaternion representing the target attitude point, that is, the attitude quaternion of the target attitude of the master manipulator at the current moment, θ cur represents the posture change speed between the actual posture of the robot arm at the current moment and the target posture of the main manipulator at the current moment, θ inp1 Indicates the first preset step size.
[0068] Furthermore, the posture quaternion of the first interpolation posture can be converted into a posture matrix, and the converted posture matrix is used as the adjustment posture of the robot arm. Exemplarily, the posture matrix for adjusting the posture in the pursuit mode is as follows:
[0069]
[0070] On the basis of the above embodiment, optionally, interpolation processing is performed based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain an interpolated posture, and the adjustment posture of the robotic arm is determined based on the interpolated posture, including: in the waiting mode, interpolation processing is performed based on a second preset step size from the target posture of the main operator at the previous moment to the target posture of the main operator at the current moment to obtain a second interpolated posture; the second preset step size is less than the posture change speed of the target posture of the main operator; the posture difference is determined based on the second interpolated posture and the target posture of the main operator at the previous moment, and the adjustment posture of the robotic arm is determined based on the posture difference and the actual posture of the robotic arm at the current moment.
[0071] The second preset step length refers to the step length for posture interpolation in the waiting mode. Specifically, the second preset step length is smaller than the posture change speed of the target posture of the master operator. Exemplarily, the second preset step length in the waiting mode can be:
[0072] θ inp2 =0.6*θ mov
[0073] Among them, θ inp2 represents the second preset step size, θ mov Indicates the posture change speed of the master manipulator's target posture.
[0074] In this embodiment, in the waiting mode, the posture interpolation process is performed from the target posture of the master operator at the previous moment to the target posture of the master operator at the current moment with a second preset step length to obtain a second interpolated posture. The second interpolated posture refers to the posture obtained after interpolation based on the second preset step length. Exemplarily, the interpolation formula of the second interpolated posture is as follows:
[0075]
[0076] t=θ inp2 / θ mov
[0077] Among them, q inp2 The attitude quaternion representing the second interpolated attitude, q dly The quaternion representing the starting posture point, that is, the quaternion of the target posture of the master manipulator at the previous moment; q in The attitude quaternion representing the target attitude point, that is, the attitude quaternion of the target attitude of the master manipulator at the current moment, θ mov represents the posture change speed of the target posture of the master manipulator, θ inp2 Indicates the second preset step size.
[0078] The posture difference refers to the matrix difference between the posture matrix of the second interpolation posture and the posture matrix of the target posture of the main operator at the previous moment. In this embodiment, the posture quaternion of the second interpolation posture is converted into a posture matrix, the posture difference is determined based on the posture matrix of the second interpolation posture and the posture matrix of the target posture of the main operator at the previous moment, and the adjustment posture of the robotic arm is determined based on the posture difference and the actual posture of the robotic arm at the current moment.
[0079] Exemplarily, the posture matrix of the second interpolated posture is as follows:
[0080]
[0081] The attitude difference can be expressed as:
[0082] The calculation formula for adjusting the posture is: R E2 =Δ*R cur
[0083] Among them, R inp2 The pose matrix representing the second interpolated pose, R dly represents the posture matrix of the target posture of the main manipulator at the previous moment, Δ represents the posture difference, that is, the posture matrix R of the second interpolated posture inp2 and the posture matrix R of the target posture of the main manipulator at the previous moment dly The matrix difference, R E2 The attitude matrix representing the attitude adjustment in waiting mode.
[0084] In some embodiments, optionally, after obtaining the adjustment posture, the method further includes: if the posture difference between the adjustment posture and the target posture of the main operator at the current moment is less than a preset synchronization determination threshold, it is determined that the main operator is synchronized with the robot arm posture, and the posture adjustment mode is turned off.
[0085] Among them, the preset synchronization determination threshold is used to determine whether the posture of the main operator is basically synchronized with the posture of the robotic arm. In this embodiment, the posture difference between the adjusted posture of the robotic arm and the target posture of the main operator at the current moment is determined. If the posture difference is less than the preset synchronization determination threshold, it is determined that the posture of the main operator is synchronized with the posture of the robotic arm. At this time, the posture of the robotic arm is infinitely close to the target posture of the main operator, and the following ability of the robotic arm can satisfy the robotic arm to follow the main operator to move. There is no need to adjust the posture again, and the posture adjustment mode is turned off. It can be understood that if the posture difference is greater than or equal to the preset synchronization determination threshold, it indicates that the posture of the robotic arm still needs to be adjusted, and the posture interpolation adjustment continues in the posture adjustment mode.
[0086] The technical solution of this embodiment is to determine the adjustment mode of the robot arm based on the actual posture of the robot arm at the current moment, the target posture of the main operator at the previous moment, and the target posture of the main operator at the current moment when entering the posture adjustment mode; interpolation processing is performed based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain the interpolation posture, the adjustment posture of the robot arm is determined based on the interpolation posture, and the movement of the robot arm is controlled based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different. In the posture adjustment mode, the adjustment mode is determined, and then different starting posture points are selected for posture interpolation for different adjustment modes. After the interpolation is realized, the posture of the robot arm approaches the target posture of the main operator while ensuring that the movement trend of the robot arm is the same as the movement trend of the main operator.
[0087] Embodiment 2
[0088] Figure 4 This is a flow chart of a robot arm posture control method provided in the second embodiment of the present invention. Based on the above embodiments, before entering the posture adjustment mode, this embodiment also includes: determining the posture change speed of the main operator based on the target posture of the main operator at the previous moment and the target posture at the current moment; judging the posture change speed of the main operator, if the posture change speed of the main operator is greater than the posture change speed threshold, entering the posture adjustment mode. Correspondingly, the method also includes: if the posture change speed of the main operator is less than or equal to the posture change speed threshold, controlling the movement of the robot arm based on the target posture of the main operator at the current moment. Among them, the explanations of the terms that are the same or corresponding to the above embodiments are not repeated here.
[0089] like Figure 4 As shown, the method includes:
[0090] S210, determining the posture change speed of the target posture of the master operator based on the target posture of the master operator at the previous moment and the target posture of the master operator at the current moment, and judging the posture change speed of the target posture of the master operator. If the posture change speed of the master operator is greater than the posture change speed threshold, entering the posture adjustment mode.
[0091] Among them, the posture change speed threshold is used to determine whether the posture change speed of the main operator exceeds the following ability of the robot arm. Specifically, the posture change speed threshold can be determined according to the following ability of the robot arm, which is not limited here. In this embodiment, the posture change speed of the target posture of the main operator is determined based on the target posture of the main operator at the previous moment and the target posture at the current moment, and the posture change speed of the target posture of the main operator is determined. If the posture change speed of the main operator is greater than the posture change speed threshold, it indicates that the posture change speed of the main operator is too fast, resulting in the robot arm being unable to follow the movement of the main operator, and it is necessary to enter the posture adjustment mode to adjust the posture of the robot arm.
[0092] In some embodiments, optionally, the method further includes: if the posture change speed of the target posture of the master operator is less than or equal to the posture change speed threshold, controlling the movement of the robotic arm based on the target posture of the master operator at the current moment.
[0093] It can be understood that if the posture change speed of the target posture of the main operator is less than or equal to the posture change speed threshold, it indicates that the following ability of the robotic arm can meet the posture change speed of the target posture of the main operator, and the target posture of the main operator at the current moment is used as the posture of the robotic arm to control the movement of the robotic arm.
[0094] S220. When entering the posture adjustment mode, determining the adjustment mode of the robotic arm based on the actual posture of the robotic arm at the current moment, the target posture of the master operator at the previous moment, and the target posture of the master operator at the current moment.
[0095] S230. Based on the starting posture point and the target posture point corresponding to the adjustment mode, perform interpolation processing to obtain an interpolated posture, determine the adjustment posture of the robotic arm based on the interpolated posture, and control the movement of the robotic arm based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different.
[0096] The technical solution of this embodiment is to determine the posture change speed of the target posture of the master operator based on the target posture of the master operator at the previous moment and the target posture of the master operator at the current moment before entering the posture adjustment mode, and to judge the posture change speed of the target posture of the master operator. If the posture change speed of the master operator is greater than the posture change speed threshold, the posture adjustment mode is entered. This avoids posture interpolation when it is not necessary, which wastes computing resources.
[0097] Embodiment 3
[0098] Figure 5 Schematic diagram of the structure of a robot arm posture control device provided by the third embodiment of the present invention. Figure 5As shown, the device is applied to a surgical robot system, the surgical robot system includes a main manipulator and a robotic arm, the main manipulator is used to control the movement of the robotic arm, and there is a motion mapping relationship between the main manipulator and the robotic arm, including:
[0099] An adjustment mode determination module 310 is used to determine the adjustment mode of the robotic arm based on the actual posture of the robotic arm at the current moment, the target posture of the master operator at the previous moment, and the target posture of the master operator at the current moment when entering the posture adjustment mode;
[0100] The posture interpolation module 320 is used to perform interpolation processing based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain an interpolated posture, determine the adjustment posture of the robotic arm based on the interpolated posture, and control the movement of the robotic arm based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different.
[0101] The technical solution of this embodiment is to determine the adjustment mode of the robot arm based on the actual posture of the robot arm at the current moment, the target posture of the main operator at the previous moment, and the target posture of the main operator at the current moment when entering the posture adjustment mode; interpolation processing is performed based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain the interpolation posture, the adjustment posture of the robot arm is determined based on the interpolation posture, and the movement of the robot arm is controlled based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different. In the posture adjustment mode, the adjustment mode is determined, and then different starting posture points are selected for posture interpolation for different adjustment modes. After the interpolation is realized, the posture of the robot arm approaches the target posture of the main operator while ensuring that the movement trend of the robot arm is the same as the movement trend of the main operator.
[0102] On the basis of the above embodiment, optionally, the device also includes a posture adjustment mode on determination module, which is used to determine the posture change speed of the target posture of the main operator based on the target posture of the main operator at the previous moment and the target posture at the current moment; the posture change speed of the target posture of the main operator is determined, and if the posture change speed of the main operator is greater than the posture change speed threshold, the posture adjustment mode is entered.
[0103] On the basis of the above embodiment, optionally, the adjustment mode includes a catch-up mode and a waiting mode; the adjustment mode determination module 310 is specifically used to determine a first posture change speed based on the actual posture of the robotic arm at the current moment and the target posture of the main operator at the previous moment; determine a second posture change speed based on the actual posture of the robotic arm at the current moment and the target posture of the main operator at the current moment; if the first posture change speed is less than the second posture change speed, the adjustment mode of the robotic arm is the catch-up mode; if the first posture change speed is greater than or equal to the second posture change speed, the adjustment mode of the robotic arm is the waiting mode.
[0104] On the basis of the above embodiment, optionally, the starting posture point and the target posture point corresponding to the chasing mode are respectively the actual posture of the robot arm at the current moment and the target posture of the main operator at the current moment; the posture interpolation module 320 is used to perform interpolation processing from the actual posture of the robot arm at the current moment to the target posture of the main operator at the current moment based on a first preset step size in the chasing mode, to obtain a first interpolated posture, and determine the first interpolated posture as the adjustment posture of the robot arm; wherein, the first preset step size is greater than the posture change speed of the target posture of the main operator and the first preset step size is a multiple of the posture change speed of the target posture of the main operator, and the first preset step size is less than the posture change speed from the actual posture of the robot arm at the current moment to the target posture of the main operator at the current moment.
[0105] On the basis of the above embodiments, optionally, the starting posture point and target posture point corresponding to the waiting mode are the target posture of the main operator at the previous moment and the target posture of the main operator at the current moment, respectively; the posture interpolation module 320 is used to, in the waiting mode, interpolate from the target posture of the main operator at the previous moment to the target posture of the main operator at the current moment based on a second preset step size to obtain a second interpolated posture; the second preset step size is less than the posture change speed of the target posture of the main operator; the posture difference is determined based on the second interpolated posture and the target posture of the main operator at the previous moment, and the adjustment posture of the robotic arm is determined based on the posture difference and the actual posture of the robotic arm at the current moment.
[0106] Based on the above embodiment, optionally, the posture adjustment mode on determination module is also used to control the movement of the robotic arm based on the target posture of the master operator at the current moment if the posture change speed of the target posture of the master operator is less than or equal to the posture change speed threshold.
[0107] Based on the above embodiment, optionally, the device also includes a posture adjustment mode closing judgment module, which is used to determine that the main operator is synchronized with the robot arm posture if the posture difference between the adjustment posture and the target posture of the main operator at the current moment is less than a preset synchronization judgment threshold, and close the posture adjustment mode.
[0108] The robot arm posture control device provided in the embodiment of the present invention can execute the robot arm posture control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0109] Embodiment 4
[0110] Figure 6 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0111] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0112] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0113] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a robotic arm posture control method.
[0114] In some embodiments, the robot arm posture control method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the robot arm posture control method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the robot arm posture control method in any other appropriate manner (for example, by means of firmware).
[0115] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0116] The computer program for implementing the robot arm posture control method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0117] Embodiment 5
[0118] Embodiment 5 of the present invention further provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, the computer instructions are used to enable a processor to execute a method for controlling a robot arm posture, the method is applied to a surgical robot system, the surgical robot system includes a main manipulator and a robot arm, the main manipulator is used to control the movement of the robot arm, and there is a motion mapping relationship between the main manipulator and the robot arm, the method includes:
[0119] When entering the posture adjustment mode, the adjustment mode of the robotic arm is determined based on the actual posture of the robotic arm at the current moment, the target posture of the master operator at the previous moment, and the target posture of the master operator at the current moment;
[0120] Based on the starting posture point and the target posture point corresponding to the adjustment mode, interpolation processing is performed to obtain the interpolation posture, the adjustment posture of the robot arm is determined based on the interpolation posture, and the movement of the robot arm is controlled based on the adjustment posture, wherein different adjustment modes correspond to different starting posture points.
[0121] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0122] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0123] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0124] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0125] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0126] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for controlling the posture of a robotic arm, It is characterized in that Applied to a surgical robot system, the surgical robot system includes a main manipulator and a robotic arm, the main manipulator is used to control the movement of the robotic arm, and there is a motion mapping relationship between the main manipulator and the robotic arm, the method includes: When entering the posture adjustment mode, determining the adjustment mode of the robotic arm based on the actual posture of the robotic arm at the current moment, the target posture of the master operator at the previous moment, and the target posture of the master operator at the current moment; Based on the starting posture point and the target posture point corresponding to the adjustment mode, interpolation processing is performed to obtain an interpolated posture, the adjustment posture of the robotic arm is determined based on the interpolated posture, and the movement of the robotic arm is controlled based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different.
2. The method according to claim 1, It is characterized in that Before entering the posture adjustment mode, the method further includes: Determining a posture change speed of the target posture of the master operator based on the target posture of the master operator at the previous moment and the target posture of the master operator at the current moment; The posture change speed of the target posture of the master operator is determined, and if the posture change speed of the master operator is greater than the posture change speed threshold, the posture adjustment mode is entered.
3. The method according to claim 2, It is characterized in that The adjustment mode includes a catch-up mode and a waiting mode; the adjustment mode of the robotic arm is determined based on the actual posture of the robotic arm at the current moment, the target posture of the master operator at the previous moment, and the target posture of the master operator at the current moment, including: Determining a first posture change speed based on the actual posture of the robotic arm at the current moment and the target posture of the main manipulator at the previous moment; Determine a second posture change speed based on the actual posture of the manipulator at the current moment and the target posture of the main manipulator at the current moment; If the first posture change speed is less than or equal to the second posture change speed, the adjustment mode of the robotic arm is the catching-up mode; If the first posture change speed is greater than the second posture change speed, the adjustment mode of the robot arm is the waiting mode.
4. The method according to claim 3, It is characterized in that The starting posture point and the target posture point corresponding to the pursuit mode are respectively the actual posture of the robot arm at the current moment and the target posture of the main manipulator at the current moment; The interpolation processing is performed based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain the interpolation posture, and the adjustment posture of the mechanical arm is determined based on the interpolation posture, including: In the catching-up mode, interpolation processing is performed from the actual posture of the robotic arm at the current moment to the target posture of the master manipulator at the current moment based on a first preset step length to obtain a first interpolation posture, and the first interpolation posture is determined as the adjustment posture of the robotic arm; Among them, the first preset step size is greater than the posture change speed of the target posture of the master operator and the first preset step size is a multiple of the posture change speed of the target posture of the master operator, and the first preset step size is less than the posture change speed from the actual posture of the robot arm at the current moment to the target posture of the master operator at the current moment.
5. The method according to claim 3, It is characterized in that The starting posture point and the target posture point corresponding to the waiting mode are respectively the target posture of the main operator at the previous moment and the target posture of the main operator at the current moment; The interpolation processing is performed based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain the interpolation posture, and the adjustment posture of the mechanical arm is determined based on the interpolation posture, including: In the waiting mode, interpolation processing is performed from the target posture of the master operator at the previous moment to the target posture of the master operator at the current moment based on a second preset step length to obtain a second interpolated posture; the second preset step length is smaller than the posture change speed of the target posture of the master operator; A posture difference is determined based on the second interpolated posture and the target posture of the main manipulator at the previous moment, and an adjustment posture of the robotic arm is determined based on the posture difference and the actual posture of the robotic arm at the current moment.
6. The method according to claim 2, It is characterized in that The method further comprises: If the posture change speed of the master operator is less than or equal to the posture change speed threshold, the movement of the robot arm is controlled based on the target posture of the master operator at the current moment.
7. The method according to claim 1, It is characterized in that After obtaining the adjustment posture, the method further includes: If the posture difference between the adjustment posture and the target posture of the main operator at the current moment is less than a preset synchronization determination threshold, it is determined that the posture of the main operator is synchronized with that of the robotic arm, and the posture adjustment mode is turned off.
8. A robot arm posture control device, It is characterized in that Applied to a surgical robot system, the surgical robot system includes a main manipulator and a mechanical arm, the main manipulator is used to control the movement of the mechanical arm, and there is a motion mapping relationship between the main manipulator and the mechanical arm, the device includes: An adjustment mode determination module, used to determine the adjustment mode of the robotic arm based on the actual posture of the robotic arm at the current moment, the target posture of the master operator at the previous moment, and the target posture of the master operator at the current moment when entering the posture adjustment mode; A posture interpolation module is used to perform interpolation processing based on the starting posture point and the target posture point corresponding to the adjustment mode to obtain an interpolated posture, determine the adjustment posture of the robotic arm based on the interpolated posture, and control the movement of the robotic arm based on the adjustment posture, wherein the starting posture points corresponding to different adjustment modes are different.
9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the robot arm posture control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the robot arm posture control method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Ratcheting for master alignment of a teleoperated minimally-invasive surgical instrument
CN102470015A
Endoscopic surgery control system
CN115300110A
Mechanical arm tracking method, device and equipment and storage medium
CN116000925A
Mechanical arm matching method, surgeon console, and computer-readable storage medium
WO2024041386A1
