A robot arm control method, device and robot arm

Through the drag preparation and drag stage control method of the robot arm, the problem of joint motion uncertainty when the redundant degree of freedom robot arm is manually dragged is solved, the controllable movement of the robot arm within the expected range is realized, and the operation time is reduced. Difficulty and risk of collision.

CN116000911BActive Publication Date: 2024-09-20RONOVO (SHANGHAI) MEDICAL SCI & TECH LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202111231646.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2024-09-20
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

There is uncertainty in the motion of each joint of a manipulator with redundant degrees of freedom when it is manually dragged, which increases the difficulty of operation and the risk of collision.

Method used

Through the control method of the drag preparation stage and the drag stage, the target arm body and the target joint are selected, the position characteristic value and the joint position relationship are determined based on the forward kinematics of the robotic arm, and the next position of the target joint is calculated to achieve the desired position of the robotic arm. range of motion.

Benefits of technology

It reduces the difficulty of operating the robotic arm, reduces the risk of collision when manually dragging, and improves the controllability of the motion of the redundant degree of freedom robotic arm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116000911B
    Figure CN116000911B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a robot arm control method, device and robot arm, wherein the control method includes a dragging preparation stage and a dragging stage, wherein the dragging preparation stage includes determining a target arm body and a position characteristic value of the target arm body, and determining a relationship expression between the position characteristic value and the position of each joint, and determining the target joint as the control object of the dragging stage; the dragging stage includes determining a target value of the position characteristic value and the position of each joint except the target joint at the current moment; the acquired parameters are substituted into a first calculation expression for solution to obtain the next position of the target joint when the robot arm is dragged from the current position. The present invention achieves the technical effect that each joint of a robot arm with redundant degrees of freedom can move within the expected range of motion when it is manually dragged, reduces the difficulty of operating the robot arm, and reduces the risk of collision when the robot arm is manually dragged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the technical field of robot arm control, and in particular, to a robot arm control method, device, and robot arm. Background Art

[0002] With the advancement of science and technology, minimally invasive surgical robot technology has gradually matured and has been widely used. The doctor sends control commands to the robotic arm through the console. The end of the robotic arm is equipped with medical equipment. Before the doctor performs surgery on the patient, he needs to drag the robotic arm so that its end can move to the desired position of the patient's surgical entrance planned by the doctor. Compared with other methods, such as using the joystick control of the teach pendant, the manual drag mode of the robotic arm is fast and intuitive.

[0003] Manual dragging is usually used to make the robot quickly reach a specific posture, such as installing a sterile cuff or cannula. This dragging method is not limited to the medical field. Other industrial robots also need this function. And for the robotic arm, when the robotic arm has redundant degrees of freedom, it can better avoid collisions and increase the working space.

[0004] However, when manually dragging a robotic arm with redundant degrees of freedom, the movement of each joint of the robotic arm is uncertain and difficult to predict, which increases the difficulty of operating the robot. Summary of the invention

[0005] The embodiments of the present invention provide a robot arm control method, device and robot arm, which solve the technical problem that when a robot arm with redundant degrees of freedom is manually dragged, each joint of the robot arm has motion uncertainty.

[0006] In a first aspect, an embodiment of the present invention provides a method for controlling a robotic arm, which is applied to a manual drag control system of a robotic arm, wherein when the robotic arm moves in a three-dimensional space, the number of joints of the robotic arm is greater than or equal to 4, and when the robotic arm moves in a plane, the number of joints of the robotic arm is greater than or equal to 3, and the method for controlling the robotic arm includes a drag preparation phase and a drag phase, wherein:

[0007] The dragging preparation stage includes:

[0008] Selecting an arm of the robot arm as a target arm, and determining the position of the target arm as a position feature value;

[0009] Determine the relationship between the position characteristic value and the position of each joint of the robotic arm based on the forward kinematics of the robotic arm, and obtain a first calculation expression for the position characteristic value;

[0010] Selecting a joint of the robotic arm as a target joint, wherein the target joint is a control object in the dragging stage;

[0011] After the drag preparation phase is completed, the drag phase is entered, and the drag phase includes:

[0012] Determining a target value of the position feature value;

[0013] Obtain the positions of all joints except the target joint at the current moment;

[0014] The target value of the position feature value and the positions of the joints other than the target joint are substituted into the first calculation expression to solve, and the next position of the target joint when the robot arm is dragged from the current position is obtained.

[0015] In a second aspect, an embodiment of the present invention further provides a robot arm control device, which is applied to a manual drag control system of a robot arm, wherein when the robot arm moves in a three-dimensional space, the number of joints of the robot arm is greater than or equal to 4, and when the robot arm moves in a plane, the number of joints of the robot arm is greater than or equal to 3, and the robot arm control device includes:

[0016] a characteristic value determining unit, used for selecting an arm body of the robot arm as a target arm body, and determining the position of the target arm body as a position characteristic value;

[0017] An expression establishing unit, used for determining the relationship between the position characteristic value and the position of each joint of the robotic arm based on the forward kinematics of the robotic arm, and obtaining a first calculation expression for the position characteristic value;

[0018] A target joint determination unit, used to select a joint of the robot arm as a target joint, the target joint being a control object in the dragging stage;

[0019] a target value determination unit, used to determine a target value of the position feature value;

[0020] A position acquisition unit, used to acquire the position of each joint except the target joint at the current moment;

[0021] The position calculation unit is used to substitute the target value of the position feature value and the positions of the joints other than the target joint into the first calculation expression to solve and obtain the next position of the target joint when the robot arm is dragged from the current position.

[0022] In a third aspect, an embodiment of the present invention further provides a manual drag control system, which includes the robotic arm control device described in any of the above embodiments.

[0023] In a fourth aspect, an embodiment of the present invention further provides a mechanical arm, the mechanical arm comprising:

[0024] one or more processors;

[0025] A storage device for storing one or more programs;

[0026] When the one or more programs are executed by the one or more processors, the one or more processors implement the robotic arm control method as described in any of the above embodiments.

[0027] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the robot arm control method as described in any of the above embodiments.

[0028] The embodiment of the present invention discloses a robot arm control method, device and robot arm, the control method includes a dragging preparation stage and a dragging stage, wherein: the dragging preparation stage includes: selecting an arm body of the robot arm as a target arm body, and determining the position of the target arm body as a position characteristic value; determining the relationship between the position characteristic value and the position of each joint of the robot arm based on the forward kinematics of the robot arm, and obtaining a first calculation expression of the position characteristic value; selecting a joint of the robot arm as a target joint, and the target joint is the control object in the dragging stage; after the dragging preparation stage is completed, entering the dragging stage, the dragging stage includes: determining a target value of the position characteristic value; obtaining the position of each joint except the target joint at the current moment; substituting the target value of the position characteristic value and the position of each joint except the target joint into the first calculation expression for solution, and obtaining the next position of the target joint when the robot arm is dragged from the current position. The embodiments of the present invention solve the technical problem that when a robotic arm with redundant degrees of freedom is manually dragged, the joints of the robotic arm have motion uncertainty, and achieve the technical effect that when the robotic arm with redundant degrees of freedom is manually dragged, the joints can move within the expected range of motion, thereby reducing the difficulty of operating the robotic arm and reducing the risk of collision when the robotic arm is manually dragged. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is a schematic diagram of the motion uncertainty when manually dragging a mechanical arm provided by an embodiment of the present invention;

[0030] Figure 2 is a flow chart of a robot arm control method provided by an embodiment of the present invention;

[0031] Figure 3 is a structural diagram of a mechanical arm provided by an embodiment of the present invention;

[0032] Figure 4 is a schematic diagram of dragging a robotic arm using a robotic arm control method provided by an embodiment of the present invention;

[0033] Figure 5is a flow chart of another robot arm control method provided by an embodiment of the present invention;

[0034] Figure 6 is a flow chart of another robot arm control method provided by an embodiment of the present invention;

[0035] Figure 7 is a flow chart of another robot arm control method provided by an embodiment of the present invention;

[0036] Figure 8 is a flow chart of another robot arm control method provided by an embodiment of the present invention;

[0037] Fig. 9 is a structural diagram of a robot arm control device provided by an embodiment of the present invention;

[0038] Fig.10 It is a schematic diagram of the structure of a mechanical arm provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0040] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present invention are used to distinguish different objects, rather than to limit a specific order. The following embodiments of the present invention can be implemented separately, or in combination with each other, and the embodiments of the present invention do not impose specific limitations on this.

[0041] For a robot with M degrees of freedom at the end, if the robot moves in a plane, its end may have 2 or 3 degrees of freedom, and if the robot moves in three-dimensional space, its end may have 3 to 6 degrees of freedom. If the number of joints of a robot is greater than the degrees of freedom at the end, it is considered that the robot has redundant degrees of freedom. While the redundant degrees of freedom increase the working space of the robot, they also result in that when a certain end position of the robot is given, the positions that can be reached by each joint of the robot are not fixed, but there are multiple possibilities.

[0042] Therefore, for a robotic arm with redundant degrees of freedom, when the end of the robotic arm with redundant degrees of freedom is manually dragged, the movement of each joint of the robotic arm is uncertain for the operator. Figure 1 is a schematic diagram of the motion uncertainty when manually dragging the mechanical arm provided by an embodiment of the present invention, see Figure 1,When the end of the robot is manually dragged to a new position, there are many possibilities for the joint positions of the robot, such as Figure 1 As shown by the dotted line in the middle, the operator cannot predict the corresponding movements of each joint when manually dragging the end of the robotic arm, which increases the difficulty of operating the robotic arm and increases the risk of collision during manual dragging.

[0043] In order to solve the above problems, an embodiment of the present invention provides a robot arm control method. Figure 2 : is a flow chart of a robot arm control method provided by an embodiment of the present invention. The robot arm control method is applied to a manual drag control system of a robot arm, wherein when the robot arm moves in a three-dimensional space, the number of joints of the robot arm is greater than or equal to 4, and when the robot arm moves in a plane, the number of joints of the robot arm is greater than or equal to 3. The robot arm control method includes a drag preparation phase and a drag phase, such as Figure 2 As shown, the robot arm control method specifically includes the following steps:

[0044] The drag preparation phase includes:

[0045] S101, selecting an arm of the robot arm as a target arm, and determining the position of the target arm as a position feature value ζ.

[0046] Specifically, an arm of the robotic arm is selected as the target arm, and then the position of the selected target arm is determined as the position feature value ζ, wherein the position of the target arm can be a position coordinate in a preset (x, y, z) coordinate system, or an angle value relative to a preset reference object, that is, one of them is selected from the position information of the target arm as the position feature value ζ.

[0047] Figure 3 is a structural diagram of a mechanical arm provided by an embodiment of the present invention, Figure 3 , Figure 3 The robot arm in the figure includes four joints A, B, C, and D, where the positions of the four joints A, B, C, and D are q1, q2, q3, and q4 respectively; the A joint of the robot arm is fixed to the ground, and the robot arm includes four arm bodies L1, L2, L3, and L4. The end P of the robot arm is the user's drag point. When a drag force F is applied to the end P, the movement of the robot arm can be controlled. Figure 3 The robot arm shown in the figure is a robot arm in three-dimensional space, and the number of its joints is 4. Obviously, Figure 3 The mechanical arm shown in is a mechanical arm with redundant degrees of freedom. Exemplarily, in the embodiment of the present invention, the arm body L3 can be used as the target arm body, and the position characteristic value ζ is selected as the angle between the target arm body L3 and the horizontal plane.

[0048] S102, determining the position characteristic value ζ and the position q of each joint of the robotic arm based on the forward kinematics of the robotic armn The relationship between and is used to obtain the first calculation expression of the position eigenvalue ζ.

[0049] Specifically, robot forward kinematics is a calculation method that obtains the spatial position of any point on the robot by calculating the joint angles of the robot.

[0050] Optionally, the position characteristic value ζ and the position q of each joint of the robotic arm are determined based on the forward kinematics of the robotic arm. n The first calculation expression for obtaining the position feature value includes:

[0051] The first calculation expression for determining the position characteristic value based on the forward kinematics of the robot arm is ζ=ζ(q1,q2,……q n ), where ζ is the position eigenvalue, q is the joint position of the robot arm, and q n Represents the position of the nth joint of the robotic arm, n∈[1,N], where N is the number of joints of the robotic arm.

[0052] S103, selecting a joint of the robot arm as a target joint i, where the target joint i is a control object in the dragging stage.

[0053] Specifically, the first calculation expression of the position feature value ζ is obtained by ζ=ζ(q1, q2, ... q n ) After that, select one of the joints i of the robot arm as the target joint, where i≤n, and the joint position of the target joint i is q i , and the determined target joint i is used as the control object in the dragging phase. So far, the dragging preparation phase is completed.

[0054] It should be noted that the working process of the above-mentioned dragging preparation stage can be pre-set as needed before the robotic arm leaves the factory; it can also be saved after being set once according to user needs during user use, so that there is no need to perform the dragging preparation stage work before each dragging in subsequent use; the dragging preparation stage setting work can also be performed before the start of each dragging stage according to actual needs, which will not be repeated here.

[0055] After the drag preparation phase is completed, the drag phase begins. The drag phase includes:

[0056] S104, determining the target value of the position feature value ζ.

[0057] Specifically, in the process of dragging the end of the robot arm, it is necessary to select a target value for the position characteristic value ζ of the target arm body, that is, to determine the position that the target arm body should maintain when moving when the end of the robot arm is dragged. Exemplarily, if the initial value ζ0 of the target arm body is selected as the target value of the position characteristic value ζ, it means that when the end of the robot arm is dragged, the position of the target arm body remains at the initial position.

[0058] S105, obtaining the positions of all joints except the target joint i at the current moment.

[0059] For example, see Figure 3 , take joint C as the target joint as an example, since joint C is the third joint of the robot arm, that is, n = 3, its joint position is q3, and during the dragging process, the joint positions q1, q2, and q4 of joints A, B, and D are obtained. It should be noted that the joint position here can be a spatial coordinate position or an angle. Figure 3 Due to the structural limitations of the robotic arm shown in , the joint positions referred to in this application are all angles.

[0060] S106, substitute the target value of the position feature value ζ and the positions of the joints other than the target joint i into the first calculation expression to solve, and obtain the next position of the target joint i when the robot arm is dragged from the current position.

[0061] Specifically, after determining the target value of the position feature value ζ, the target value of the position feature value ζ and the positions of the joints other than the target joint i are substituted into the first calculation expression ζ=ζ(q1, q2, ... q n ), at this time, for the first calculation expression, the only unknown quantity is the position q of the target joint i i Therefore, we only need to solve the first calculation expression to get the next position of the target joint i. After that, at each moment in the dragging phase of the robot arm, the above method can be used to calculate the next position q of the target joint i. i Perform calculations, and then control the movement of the target joint i based on the calculation results. Figure 4 is a schematic diagram of dragging a robotic arm using a robotic arm control method provided by an embodiment of the present invention, Figure 4 and Figure 1 By comparison, it can be seen that when the robot arm control method provided by the embodiment of the present invention is used to drag the robot arm, the uncertainty of the movement of the robot arm can be eliminated, so that each joint of the robot arm can move within a controllable range.

[0062] The embodiments of the present invention solve the technical problem that when a robotic arm with redundant degrees of freedom is manually dragged, the joints of the robotic arm have motion uncertainty, and achieve the technical effect that when the robotic arm with redundant degrees of freedom is manually dragged, the joints can move within the expected range of motion, thereby reducing the difficulty of operating the robotic arm and reducing the risk of collision when the robotic arm is manually dragged.

[0063] On the basis of the above technical solutions, Figure 5 is a flow chart of another robot arm control method provided by an embodiment of the present invention. Figure 5 As shown, the above step S101 specifically includes:

[0064] S301, selecting an arm of the robot arm as the target arm.

[0065] For example, see Figure 3 The target arm of the robot arm can select any one of the arms L1, L2, L3 and L4, but because one end of the joint A is fixed to the ground, the degree of freedom of the arm L1 is less than that of the other three arms. In order to control the movement of the robot arm more accurately, the other three arms except the arm L1 are preferably used as the target arms. In this embodiment of the present invention, the arm L4 can be used as the target arm.

[0066] S302, determine one of the following position information of the target arm as the position feature value ζ: the position of the target arm relative to the ground, the angle of the target arm relative to the ground, the position of the target arm relative to any other arm of the robotic arm except the target arm, the angle of the target arm relative to any other arm of the robotic arm except the target arm.

[0067] For example, see Figure 3 For the target arm L4, its position characteristic value ζ can have the following four options: position relative to the ground, angle relative to the ground, position relative to any other arm of the robot except the target arm, and angle relative to any other arm of the robot except the target arm. For example, a (x, y, z) coordinate system is pre-established, such as Figure 4 As shown, the angle of the target arm L4 relative to the ground can be selected as the position characteristic value ζ of the target arm L4 based on the preset coordinate system.

[0068] On the basis of the above technical solutions, Figure 6 is a flow chart of another robot arm control method provided by an embodiment of the present invention, such as Figure 6 As shown, the above step S104 determines the target value of the position feature value ζ specifically includes:

[0069] S401, determining the initial position of the target arm body at the beginning of dragging as the target value of the position feature value.

[0070] Exemplarily, if the initial value ζ0 of the target arm at the beginning of dragging is selected as the target value of the position characteristic value ζ, it means that when the end of the robotic arm is dragged, the target arm maintains its initial position, wherein the initial value of the target arm can be calculated based on the forward kinematics of the robotic arm and the initial position values ​​of each joint.

[0071] On the basis of the above technical solutions, Figure 7 is a flow chart of another robot arm control method provided by an embodiment of the present invention, such as Figure 7 As shown, after the next position of the target joint when the robotic arm is dragged from the current position is obtained in the above step S106, the robotic arm control method further includes:

[0072] S501 , controlling the target joint i to move based on the calculated next position of the target joint i when the robot arm is dragged from the current position.

[0073] Specifically, if the target joint i is a linear motion joint, the first calculation expression is a first-order linear equation, which can be directly solved to obtain the next position of the target joint i when the robotic arm is dragged from the current position, and the movement of the target joint i can be controlled based on the calculated next position of the target joint i.

[0074] It should be noted that while controlling the movement of target joint i based on the next position of target joint i, it is also necessary to control the movements of other joints except target joint i. At this time, it is necessary to calculate the gravity torque, friction torque and damping torque of other joints according to the current position and rotation speed of the robotic arm, and after calculating the torques of each joint, control the movements of each joint based on the calculated torques through the joint controller. Among them, the friction torque and damping torque can be calculated at the same time as the control basis for joint movement, or only one of the friction torque and the damping torque can be calculated as the control basis for joint movement, which will not be repeated here.

[0075] On the basis of the above technical solutions, Figure 8 is a flow chart of another robot arm control method provided by an embodiment of the present invention, such as Figure 8 As shown, after the next position of the target joint when the robotic arm is dragged from the current position is obtained in the above step S106, the robotic arm control method further includes:

[0076] S601, if the number of next positions of the target joint i when the robot arm is dragged from the current position obtained based on the first calculation expression is greater than or equal to two, then the next position closest to the current position of the target joint i among the multiple next positions is selected to control the movement of the target joint i.

[0077] Specifically, if the target joint i is a rotational joint, the first calculation expression is a second-order linear equation. At this time, the number of next positions of the target joint i solved may be two, or may be greater than two, that is, the number of solutions to the second-order linear equation is greater than or equal to 2, then the next position closest to the current position of the target joint i is selected from multiple next positions to move the target joint i. For example, taking the number of next positions solved as 2 as an example, the calculated next position may be 10° or 170° relative to the ground, then 10° is selected as the next position of the target joint i to control the movement of the target joint i.

[0078] Fig. 9 is a structural diagram of a robot arm control device provided by an embodiment of the present invention, and the robot arm control device is applied to a manual drag control system of a robot arm, wherein when the robot arm moves in a three-dimensional space, the number of joints of the robot arm is greater than or equal to 4, and when the robot arm moves in a plane, the number of joints of the robot arm is greater than or equal to 3, such as Fig. 9 As shown, the robot arm control device includes:

[0079] A feature value determination unit 71 is used to select an arm of the robot arm as a target arm and determine the position of the target arm as a position feature value;

[0080] An expression establishing unit 72, used to determine the relationship between the position characteristic value and the position of each joint of the robotic arm based on the forward kinematics of the robotic arm, and obtain a first calculation expression of the position characteristic value;

[0081] A target joint determination unit 73, used to select a joint of the robot arm as a target joint, the target joint being a control object in the dragging stage;

[0082] A target value determination unit 74, used to determine a target value of the position feature value;

[0083] A position acquisition unit 75 is used to acquire the positions of all joints except the target joint at the current moment;

[0084] The position calculation unit 76 is used to substitute the target value of the position feature value and the positions of the joints other than the target joint into the first calculation expression to solve and obtain the next position of the target joint when the robot arm is dragged from the current position.

[0085] Optionally, the characteristic value determination unit 71 is specifically used to: select an arm of the robotic arm as the target arm; determine one of the following position information of the target arm as a position characteristic value: the position of the target arm relative to the ground, the angle of the target arm relative to the ground, the position of the target arm relative to any other arm of the robotic arm except the target arm, and the angle of the target arm relative to any other arm of the robotic arm except the target arm.

[0086] Optionally, the expression establishing unit 72 is specifically used to: determine the first calculation expression of the position characteristic value based on the forward kinematics of the robot arm as ζ=ζ(q1, q2, ... q n ), where ζ is the position eigenvalue, q is the joint position of the robot arm, and q n Represents the position of the nth joint of the robotic arm, n∈[1,N], where N is the number of joints of the robotic arm.

[0087] Optionally, the target value determination unit 74 is specifically used to determine the initial position of the target arm as the target value of the position feature value.

[0088] Optionally, after the position calculation unit 76 obtains the next position of the target joint when the robotic arm is dragged from the current position, the robotic arm control device further includes:

[0089] The control movement unit is used to control the movement of the target joint based on the calculated next position of the target joint when the robot arm is dragged from the current position.

[0090] Optionally, after the position calculation unit 76 obtains the next position of the target joint when the robotic arm is dragged from the current position, if the number of next positions of the target joint when the robotic arm is dragged from the current position obtained by the position calculation unit 76 based on the first calculation expression is greater than or equal to two, the control movement unit selects the next position closest to the current position of the target joint from multiple next positions to control the movement of the target joint.

[0091] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0092] The robot arm control method provided in the embodiment of the present invention has the same technical features as the robot arm control device provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0093] An embodiment of the present invention further provides a manual drag control system, which includes the robotic arm control device described in any one of the above embodiments.

[0094] The manual drag control system provided by the embodiment of the present invention includes the mechanical arm control device in the above embodiment. Therefore, the manual drag control system provided by the embodiment of the present invention also has the beneficial effects described in the above embodiment, which will not be repeated here.

[0095] Fig.10 is a schematic diagram of the structure of a mechanical arm provided by an embodiment of the present invention, such as Fig.10As shown, the robot arm includes a processor 81, a memory 82, an input device 83 and an output device 84; the number of processors 81 in the robot arm can be one or more. Fig.10 A processor 81 is taken as an example; the processor 81, memory 82, input device 83 and output device 84 in the robot arm can be connected by a bus or other means. Fig.10 The example of connecting through bus is taken in the following.

[0096] The memory 82, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the robot arm control method in the embodiment of the present invention (for example, the characteristic value determination unit 71, the expression establishment unit 72, the position acquisition unit 73 and the position calculation unit 74 in the robot arm control device). The processor 81 executes various functional applications and data processing of the robot arm by running the software programs, instructions and modules stored in the memory 82, that is, realizes the above-mentioned robot arm control method.

[0097] The memory 82 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 82 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 82 may further include a memory remotely arranged relative to the processor 81, and these remote memories may be connected to the robot arm via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0098] The input device 83 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the robot arm. The output device 84 may include a display device such as a display screen.

[0099] An embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute a robot arm control method when executed by a computer processor.

[0100] Specifically, the robot arm control method includes a dragging preparation phase and a dragging phase, wherein:

[0101] The drag preparation phase includes:

[0102] Selecting an arm of the robot as a target arm, and determining the position of the target arm as a position feature value;

[0103] Determine the relationship between the position characteristic value and the position of each joint of the robotic arm based on the forward kinematics of the robotic arm, and obtain a first calculation expression of the position characteristic value;

[0104] Select a joint of the robot arm as the target joint, which is the control object in the dragging stage;

[0105] After the drag preparation phase is completed, the drag phase begins. The drag phase includes:

[0106] Determine the target value of the position feature value;

[0107] Get the positions of all joints except the target joint at the current moment;

[0108] The target value of the position feature value and the positions of all joints except the target joint are substituted into the first calculation expression to solve, and the next position of the target joint when the robot arm is dragged from the current position is obtained.

[0109] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention is not limited to the method operations described above, and the computer executable instructions can also execute related operations in the robot arm control method provided by any embodiment of the present invention.

[0110] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk or an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0111] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0112] In the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0113] Finally, it should be noted that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for controlling a robotic arm, It is characterized in that A manual drag control system applied to a robotic arm, wherein when the robotic arm moves in three-dimensional space, the number of joints of the robotic arm is greater than or equal to 4, and when the robotic arm moves in a plane, the number of joints of the robotic arm is greater than or equal to 3, and the robotic arm control method includes a drag preparation stage and a drag stage, wherein: The dragging preparation stage includes: Selecting an arm of the robot arm as a target arm, and determining the position of the target arm as a position feature value; Determine the relationship between the position characteristic value and the position of each joint of the robotic arm based on the forward kinematics of the robotic arm, and obtain a first calculation expression for the position characteristic value; Selecting a joint of the robotic arm as a target joint, wherein the target joint is a control object in the dragging stage; The selecting an arm of the robot arm as a target arm and determining the position of the target arm as a position feature value comprises: Selecting an arm body of the robotic arm as the target arm body; Determine one of the following position information of the target arm as the position feature value: the position of the target arm relative to the ground, the angle of the target arm relative to the ground, the position of the target arm relative to any other arm of the robotic arm except the target arm, and the angle of the target arm relative to any other arm of the robotic arm except the target arm; The relationship between the position characteristic value and the position of each joint of the robotic arm is determined based on the forward kinematics of the robotic arm, and the first calculation expression for obtaining the position characteristic value includes: The first calculation expression for determining the position characteristic value based on the forward kinematics of the manipulator is ζ=ζ(q 1 ,q 2 , ... q n ), where ζ is the position characteristic value, q is the joint position of the robot arm, and q n represents the position of the nth joint of the robotic arm, n∈[1,N], where N is the number of joints of the robotic arm; After the drag preparation phase is completed, the drag phase is entered, and the drag phase includes: Determining a target value of the position feature value; Obtain the positions of all joints except the target joint at the current moment; The target value of the position feature value and the positions of the joints other than the target joint are substituted into the first calculation expression to solve, and the next position of the target joint when the robot arm is dragged from the current position is obtained.

2. The robot arm control method according to claim 1, It is characterized in that Determining the target value of the position feature value includes: The initial position of the target arm body at the beginning of dragging is determined as the target value of the position feature value.

3. The robot arm control method according to claim 1, It is characterized in that After obtaining the next position of the target joint when the robotic arm is dragged from the current position, the robotic arm control method further includes: controlling the movement of the target joint based on the calculated next position of the target joint when the robotic arm is dragged from the current position.

4. The robot arm control method according to claim 1, It is characterized in that After obtaining the next position of the target joint when the robotic arm is dragged from the current position, the robotic arm control method further includes: If the number of next positions of the target joint obtained based on the first calculation expression when the robot arm is dragged from the current position is greater than or equal to two, then the next position closest to the current position of the target joint among multiple next positions is selected to control the movement of the target joint.

5. A robot arm control device, It is characterized in that A manual drag control system applied to a robotic arm, wherein when the robotic arm moves in three-dimensional space, the number of joints of the robotic arm is greater than or equal to 4, and when the robotic arm moves in a plane, the number of joints of the robotic arm is greater than or equal to 3, and the robotic arm control device comprises: a characteristic value determining unit, used for selecting an arm body of the robot arm as a target arm body, and determining the position of the target arm body as a position characteristic value; An expression establishing unit, used for determining the relationship between the position characteristic value and the position of each joint of the robotic arm based on the forward kinematics of the robotic arm, and obtaining a first calculation expression for the position characteristic value; A target joint determination unit, used to select a joint of the robot arm as a target joint, the target joint being a control object in the dragging stage; The characteristic value determination unit is specifically used to: select an arm of the robotic arm as the target arm; determine one of the following position information of the target arm as the position characteristic value: the position of the target arm relative to the ground, the angle of the target arm relative to the ground, the position of the target arm relative to any other arm of the robotic arm except the target arm, and the angle of the target arm relative to any other arm of the robotic arm except the target arm; The expression establishing unit is specifically used to: determine the first calculation expression of the position characteristic value based on the forward kinematics of the robot arm as ζ=ζ(q 1 ,q 2 , ... q n ), where ζ is the position characteristic value, q is the joint position of the robot arm, and q n represents the position of the nth joint of the robotic arm, n∈[1,N], where N is the number of joints of the robotic arm; a target value determination unit, used to determine a target value of the position feature value; A position acquisition unit, used to acquire the position of each joint except the target joint at the current moment; The position calculation unit is used to substitute the target value of the position feature value and the positions of the joints other than the target joint into the first calculation expression to solve and obtain the next position of the target joint when the robot arm is dragged from the current position.

6. A manual drag control system, It is characterized in that The manual drag control system includes the robot arm control device described in claim 5 above.

7. A robotic arm, It is characterized in that The robotic arm comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the robot arm control method as described in any one of claims 1-4.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the robot arm control method as described in any one of claims 1 to 4 is implemented.

Citation Information

Cited By

  • Robotic arm control method and apparatus, and robotic arm

    WO2023066253A1