Robotic arm control method, device, electronic device and readable storage medium

By applying virtual static friction to the robotic arm, the problem of end drift in zero-force drag mode is solved, ensuring the stability and user experience of the robotic arm during interaction.

CN116512276BActive Publication Date: 2024-10-25SILING ROBOTICS EUROPE AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310718200.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-16
Publication Date
2024-10-25
Estimated Expiration
2043-06-16

AI Technical Summary

Technical Problem

When the robot interacts with humans, the end of the robot arm drifts due to dynamic model parameter deviation in zero-force drag mode, which affects the user experience.

Method used

Prevent the end of the manipulator from drifting in zero-force drag mode by applying virtual static friction. The virtual static friction is calculated based on the end speed and posture deviation, and the torque is canceled when an external force is applied.

Benefits of technology

It effectively prevents the end of the robotic arm from drifting in zero-force drag mode, maintains position stability, and improves user experience and smooth use of the robotic arm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116512276B_ABST
    Figure CN116512276B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for controlling a robotic arm, which includes: controlling the robotic arm to work in a zero-force drag mode; obtaining the speed of the end of the robotic arm, and comparing the speed of the end of the robotic arm with a preset speed threshold; when the speed of the end of the robotic arm is less than or equal to the preset speed threshold, controlling at least one joint of the robotic arm, and applying a virtual static friction force to the end of the robotic arm, so as to prevent the end of the robotic arm from drifting in the zero-force drag mode. The present disclosure also provides a robotic arm control device, an electronic device, and a readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a robot arm control method, device, electronic equipment and readable storage medium, and belongs to the field of robot technology. Background Art

[0002] With the expansion of robot application fields, more and more tasks require robots to interact directly with the outside world, such as assembly, processing and medical treatment. In these applications, robots share their workspace with humans, and robots not only need to have direct contact with unknown environments, but also need to interact directly with human users. Therefore, a collaborative robot designed for human-machine interactive contact tasks with small weight, high load-to-weight ratio, low speed and safety has received extensive attention and research.

[0003] The design concept of collaborative robots requires them to have the ability to directly contact and interact with people and the environment, while ensuring the safety of the robot itself and the people during the interaction. To achieve this safe interaction, auxiliary compliant mechanisms or new control strategies are required to make the robot compliant. Zero-force control of the robot arm is to control the robot arm to move in accordance with external forces, as if it is in an environment unaffected by gravity and friction. Zero-force control based on torque control focuses on the compensation of gravity and friction terms.

[0004] During dragging, the user must not only feel the flexibility of the robot arm, but also ensure that the robot arm can remain relatively still when the user does not actively apply external force in zero-force dragging mode. For this, it is necessary to model the dynamic model of the robot arm. During the dragging teaching process, end effectors are often added to the end of the robot arm, such as grippers, paint spraying equipment, etc. In order to avoid the end load from having an adverse effect on the user during the dragging process, it is also necessary to model the end effector. However, in actual use, the dynamic model parameters will deviate, resulting in the robot arm being unable to remain still at a certain position and drifting when no external force is applied in the dragging mode. Summary of the invention

[0005] In order to solve one of the above technical problems, the present disclosure provides a robot arm control method, device, electronic device and readable storage medium.

[0006] According to one aspect of the present disclosure, there is provided a robot arm control method, comprising:

[0007] Control the robotic arm to work in zero-force drag mode;

[0008] Obtain the speed of the end of the robotic arm, and compare the speed of the end of the robotic arm with a preset speed threshold; when the speed of the end of the robotic arm is less than or equal to the preset speed threshold, control at least one joint of the robotic arm and apply a virtual static friction force to the end of the robotic arm to prevent the end of the robotic arm from drifting in a zero-force drag mode.

[0009] According to the robot arm control method of at least one embodiment of the present disclosure, when the speed of the end of the robot arm is greater than a preset speed threshold, no virtual static friction force is applied to the end of the robot arm.

[0010] According to the robot arm control method of at least one embodiment of the present disclosure, the magnitude of the external force applied to the robot arm is obtained, and when the external force applied to the robot arm is greater than or equal to a preset external force threshold, the applied virtual static friction force is canceled.

[0011] According to the robot arm control method of at least one embodiment of the present disclosure, when an external force is applied to the end of the robot arm and the external force makes the speed of the end of the robot arm greater than or equal to a preset speed threshold, the applied virtual static friction force is canceled.

[0012] According to the robot arm control method of at least one embodiment of the present disclosure, the virtual static friction force is obtained according to the posture deviation of the end of the robot arm.

[0013] According to the robot arm control method of at least one embodiment of the present disclosure, when obtaining the virtual static friction force: obtain the virtual resistance according to the posture deviation of the end of the robot arm; and set the virtual static friction force threshold range to determine whether the virtual resistance is within the virtual static friction force threshold range. If the virtual resistance is within the virtual static friction force threshold range, use the virtual resistance as the virtual static friction force; when the virtual resistance exceeds the virtual static friction force threshold range, based on the positive / negative value of the virtual resistance, use the endpoint value of the virtual static friction force threshold range close to the virtual resistance as the virtual static friction force.

[0014] According to at least one embodiment of the present disclosure, a robotic arm control method calculates a command torque based on the gravity of each link of the robotic arm, the friction force in the joint, the dynamics of the end load of the robotic arm, and the virtual static friction force, and controls the robotic arm based on the command torque.

[0015] According to another aspect of the present disclosure, there is provided a robot arm control device, comprising:

[0016] A control module, wherein the control module is used to control the robot arm to operate in a zero-force drag mode;

[0017] A comparison module, the comparison module is used to compare the speed of the end of the robot arm with a preset speed threshold; and

[0018] The compensation module controls at least one joint of the robotic arm and applies a virtual static friction force to the end of the robotic arm when the speed of the end of the robotic arm is less than or equal to a preset speed threshold, so as to prevent the end of the robotic arm from drifting in a zero-force drag mode.

[0019] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0020] a memory storing execution instructions; and

[0021] A processor executes the execution instructions stored in the memory, so that the processor executes the above method.

[0022] According to another aspect of the present disclosure, a readable storage medium is provided, wherein the readable storage medium stores execution instructions, and the execution instructions are used to implement the above method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0024] Figure 1 is a flowchart of a robot arm control method according to one embodiment of the present disclosure.

[0025] Figure 2 It is a schematic structural diagram of a robot arm control device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementations. It is understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.

[0027] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0028] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged without departing from the technical concept of the present disclosure.

[0029] The use of cross-hatching and / or shading in the accompanying drawings is generally used to make the boundaries between adjacent components clear. As such, unless otherwise specified, the presence or absence of cross-hatching or shading does not convey or indicate any preference or requirement for the specific materials, material properties, dimensions, proportions, commonalities between the components shown, and / or any other characteristics, attributes, properties, etc. of the components. In addition, in the accompanying drawings, the sizes and relative sizes of the components may be exaggerated for clarity and / or descriptive purposes. When the exemplary embodiments can be implemented differently, the specific process sequence can be performed in a different order than described. For example, two successively described processes can be performed substantially simultaneously or in an order opposite to the described order. In addition, the same figure numbers represent the same components.

[0030] When a component is referred to as being "on" or "over," "connected to," or "coupled to" another component, the component may be directly on, directly connected to, or directly coupled to the other component, or intervening components may be present. However, when a component is referred to as being "directly on," "directly connected to," or "directly coupled to" another component, there are no intervening components. For this purpose, the term "connected" may refer to a physical connection, an electrical connection, etc., with or without intervening components.

[0031] For descriptive purposes, the present disclosure may use spatially relative terms such as "under," "beneath," "under," "down," "over," "upper," "above," "higher," and "side (e.g., as in "sidewall")," to describe the relationship of one component to another (other) component as shown in the accompanying drawings. The spatially relative terms are intended to encompass different orientations of the device in use, operation, and / or manufacture in addition to the orientation depicted in the accompanying drawings. For example, if the device in the accompanying drawings is turned over, components described as "under" or "beneath" other components or features would subsequently be positioned "over" the other components or features. Thus, the exemplary term "under" can encompass both the "above" and "below" orientations. Furthermore, the device may be otherwise oriented (e.g., rotated 90 degrees or at other orientations), and the spatially relative descriptors used herein should be interpreted accordingly.

[0032] The terms used here are for the purpose of describing specific embodiments, and are not intended to be restrictive. As used here, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "said (the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but it is not excluded that there are or add one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups. It should also be noted that, as used here, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values ​​and / or the values ​​provided that will be recognized by those of ordinary skill in the art.

[0033] Figure 1 is a flowchart of a robot arm control method according to one embodiment of the present disclosure.

[0034] like Figure 1 As shown, the robot arm control method is a method for preventing the robot arm from drifting in a zero-force drag mode by applying a virtual static friction force, which includes: S102, controlling the robot arm to work in the zero-force drag mode; S104, obtaining the speed of the end of the robot arm, and comparing the speed of the end of the robot arm with a preset speed threshold; S106, when the speed of the end of the robot arm is less than or equal to the preset speed threshold, controlling at least one joint of the robot arm, and applying a virtual static friction force to the end of the robot arm, so as to prevent the end of the robot arm from drifting in the zero-force drag mode.

[0035] Therefore, in the robot arm control method disclosed in the present invention, the problem of the robot arm end being unable to move due to load mismatch at the robot arm end can be solved by adding virtual static friction force.

[0036] That is to say, when the robot arm is in zero-force drag mode, the robot arm may drift due to inaccurate dynamic model of the robot arm or model of the end load, and the drift is more serious when the sensitivity of the robot arm is higher. In other words, even if the robot arm is in zero-force drag mode and the user does not apply drag force to the robot arm, the position of the end of the robot arm will change, which greatly affects the user experience and has an adverse effect on the teaching process.

[0037] The robot arm control method disclosed in the present invention can keep the end of the robot arm at a certain position or within a certain position area by adding a virtual static friction force.

[0038] In S104, the preset speed threshold can be a value close to 0. At this time, when the speed of the end of the robotic arm is less than or equal to the preset speed threshold, the robotic arm can be considered to be in a stationary state or a near-stationary state. At this time, it is necessary to apply a virtual static friction force to the end of the robotic arm, and through this virtual static friction force, the position of the end of the robotic arm is kept as unchanged as possible, that is, the position of the end of the robotic arm is fixed or moves within a certain area.

[0039] On the contrary, when the speed of the end of the robotic arm is greater than a preset speed threshold, it generally indicates that the end of the robotic arm is moving under human control, and at this time, no virtual static friction force is applied to the end of the robotic arm.

[0040] In the present disclosure, when a virtual static friction force is applied to the robot arm, certain conditions need to be met before the virtual static friction force can be cancelled. In one embodiment, the magnitude of the external force applied to the robot arm can be used to determine the magnitude of the external force applied to the robot arm. At this time, the magnitude of the external force applied to the robot arm can be obtained. When the external force applied to the robot arm (for example, to the end of the robot arm) is greater than or equal to a preset external force threshold, it is determined that the robot arm is manually operated and intends to move the end of the robot arm. At this time, the virtual static friction force is cancelled, which can make the movement of the robot arm smoother.

[0041] In a specific embodiment, a force sensor / torque sensor installed on the robotic arm can be used to estimate the external force based on a dynamic model to determine whether the robotic arm is subjected to external force. When the robotic arm is subjected to external force, it can be determined whether the external force is greater than or equal to a preset threshold. At this time, the value of the external force can be obtained by calculating the detection value of the force sensor / torque sensor and the dynamic model.

[0042] On the other hand, the speed of the end of the robot arm can also be used as a criterion for canceling the virtual static friction. For example, when an external force is applied to the robot arm (e.g., the end of the robot arm), and the external force can overcome the virtual static friction (at this time, the virtual static friction has a maximum value) and increase the speed of the end of the robot arm, the relationship between the current speed and the preset speed threshold can be determined: when the current speed is greater than or equal to the preset speed threshold, it is determined that the robot arm is manually operated and intends to move the end of the robot arm. At this time, the virtual static friction is canceled, thereby reducing the hysteresis of the robot arm.

[0043] In the present disclosure, the virtual static friction force is obtained according to the posture deviation of the end of the robot arm, that is, the virtual static friction force can be characterized as a force equal to and opposite to the force required to generate the movement trend of the end of the robot arm, so that the position of the end of the robot arm remains unchanged or within a certain area. The method of obtaining the virtual static friction force will be described in detail below.

[0044] In the present disclosure, the posture deviation includes position deviation and posture deviation; when obtaining the above-mentioned posture deviation, it can include: obtaining the angles of each joint of the robotic arm; based on the angles of the joints, calculating the posture of the end of the robotic arm; wherein the posture of the end of the robotic arm includes the posture of the end of the robotic arm and the position of the end of the robotic arm.

[0045] In a specific embodiment, the position and posture of the end of the manipulator is calculated in real time based on the real-time angle of the joint. For example, when the manipulator has just entered the zero-force drag mode or the joint speed of the manipulator or the Cartesian speed of the end is less than or equal to a preset speed threshold, the current joint angle is recorded and the current end set position and posture are calculated; based on the real-time acquired joint angle, the real-time position and posture of the end of the manipulator is calculated.

[0046] Furthermore, the above-mentioned posture deviation is obtained according to the current end setting posture of the robot arm and the real-time posture of the end of the robot arm.

[0047] When the robot arm is in zero-force drag mode and remains stationary, that is, the joint speed is less than the preset speed threshold qd_eps, the angles of each joint of the robot arm in the current stationary state are set to q_set and the set position Tcp_set of the end of the robot arm is calculated. At the same time, the joint angles of the robot arm are recorded in real time, and the real-time position Tcp_rt of the end of the robot arm is calculated according to the kinematics forward solution.

[0048] The specific calculation formula of the posture deviation of the end of the robotic arm is as follows:

[0049] ΔP=P_set-P_rt,

[0050]

[0051]

[0052] The meanings of the above expressions are as follows:

[0053] Δφ, represents the posture deviation of the end of the robot arm;

[0054] n_set, s_set, a_set represent the preset values ​​of the rotation matrix, i.e., the end rotation matrix when the robot arm is stationary;

[0055] n_rt, s_rt, a_rt represent the rotation matrix of the end of the robot arm, that is, the real-time value of the rotation matrix of the end of the robot arm;

[0056] ΔP, represents the position deviation of the end of the robot arm,

[0057] P_set, represents the preset position, i.e. the end position of the robot when it is stationary;

[0058] P_rt represents the end position of the robot arm, that is, the real-time position of the end of the robot arm.

[0059] Through the above calculation, it can be known that the posture deviation of the end of the robot arm ΔTcp=Tcp_set-Tcp_rt, and ΔTcp represents the posture deviation of the end of the robot arm.

[0060] Based on the posture deviation of the end of the robot arm, the virtual resistance of the end of the robot arm is calculated. In this embodiment, the virtual resistance of the end of the robot arm is calculated based on the posture deviation and the stiffness coefficient. The specific calculation formula is as follows:

[0061] f static =K·ΔTcp;

[0062] Wherein, K represents the stiffness coefficient, which can be a preset value, ΔTcp represents the posture deviation of the end of the robot arm, and the posture deviation ΔTcp includes the difference in position (i.e., position deviation) and the difference in posture (i.e., posture deviation). The calculation formula of the above virtual resistance is converted into the following formula:

[0063] ΔP=P_set-P_rt,

[0064]

[0065]

[0066] Wherein, K represents the stiffness coefficient, ΔP represents the position deviation, and Δφ represents the posture deviation. Wherein, the virtual resistance is an array.

[0067] In this disclosure, for the calculated virtual resistance f static It can be understood that when the posture deviation is large, the virtual resistance f static The value of is also large. When the virtual static friction force obtained by the virtual resistance is applied to each joint, it will affect the zero-force dragging feel, and thus affect the user experience.

[0068] Based on this, in the present disclosure, it is necessary to further adjust the virtual resistance; preferably, the method for adjusting the virtual resistance includes:

[0069] A virtual static friction threshold range is set to determine whether the virtual resistance is within the virtual static friction threshold range. If the virtual resistance is within the virtual static friction threshold range, the virtual resistance is used as the virtual static friction. When the virtual resistance exceeds the virtual static friction threshold range, based on the positive / negative value of the virtual resistance, the endpoint value of the virtual static friction threshold range close to the virtual resistance is used as the virtual static friction.

[0070] Specifically, the virtual static friction threshold is set to [fmax , τ max ], f max Used to limit the virtual resistance from the perspective of position deviation, τ max Used to limit the virtual resistance from the perspective of attitude deviation; if f static In [-f max , f max ], and [-τ max , τ max ] range, f static No adjustment; if f static Exceeding the threshold range, according to f static The positive and negative of f static is equal to ±f max , ±τ max , will soon static Set as the boundary value of the virtual static friction threshold range. The following expression reflects the constraint relationship between the adjusted virtual resistance and the virtual static friction threshold:

[0071]

[0072] Among them, f max , τ max Represents the virtual static friction threshold.

[0073] At this time, the virtual static friction force is obtained through the virtual resistance.

[0074] In the present disclosure, after obtaining the virtual static friction force, it is necessary to convert the virtual static friction force into torque instructions for each joint, so as to control each joint of the robotic arm, specifically:

[0075] The virtual static friction force is converted into the torque of each joint of the robot arm through the Jacobian matrix. According to the Jacobian matrix J, the virtual static friction force at the end of the robot arm is converted into the additional torque τ of each joint according to the following formula: static :

[0076] τ static =J T ·f static .

[0077] Then, the command torque is calculated based on the gravity of each joint of the robot arm, the friction between the joints, the dynamics of the load at the end of the robot arm, and the above-mentioned additional torque, and the robot arm is controlled based on the command torque.

[0078] Figure 2 It is a schematic structural diagram of a robot arm control device according to an embodiment of the present disclosure.

[0079] According to another aspect of the present disclosure, Figure 2As shown, the robot arm control device disclosed in the present invention includes: a control module 1002 , a comparison module 1004 and a compensation module 1006 .

[0080] Among them, the control module is used to control the robotic arm to operate in a zero-force drag mode; the comparison module is used to compare the speed of the end of the robotic arm with a preset speed threshold; and the compensation module 1006 is configured to control at least one joint of the robotic arm when the speed of the end of the robotic arm is less than or equal to the preset speed threshold, and to apply a virtual static friction force to the end of the robotic arm, so as to prevent the end of the robotic arm from drifting in the zero-force drag mode.

[0081] Those skilled in the art should know that the control module 1002, the judgment module 1004 and the compensation module 1006 can all be executed in a processor, and the processor can be a processor inside the robotic arm or a processor in a control box that controls the robotic arm.

[0082] In the present disclosure, the preset speed threshold can be a value close to 0. At this time, when the speed of the end of the robotic arm is less than or equal to the preset speed threshold, the robotic arm can be considered to be in a stationary state or a near-stationary state. At this time, it is necessary to apply a virtual static friction force to the end of the robotic arm, and through this virtual static friction force, the position of the end of the robotic arm is kept as unchanged as possible, that is, the position of the end of the robotic arm is fixed or moves within a certain area.

[0083] On the contrary, when the speed of the end of the robotic arm is greater than a preset speed threshold, it generally indicates that the end of the robotic arm is moving under human control, and at this time, no virtual static friction force is applied to the end of the robotic arm.

[0084] In the present disclosure, when a virtual static friction force is applied to the robot arm, certain conditions need to be met before the virtual static friction force can be cancelled. In one embodiment, the magnitude of the external force applied to the robot arm can be used to determine the magnitude of the external force applied to the robot arm. At this time, the magnitude of the external force applied to the robot arm can be obtained. When the external force applied to the robot arm (for example, to the end of the robot arm) is greater than or equal to a preset external force threshold, it is determined that the robot arm is manually operated and intends to move the end of the robot arm. At this time, the virtual static friction force is cancelled, which can make the movement of the robot arm smoother.

[0085] In a specific embodiment, a force sensor / torque sensor installed on the robotic arm can be used to estimate the external force based on a dynamic model to determine whether the robotic arm is subjected to external force. When the robotic arm is subjected to external force, it can be determined whether the external force is greater than or equal to a preset threshold. At this time, the value of the external force can be obtained by calculating the detection value of the force sensor / torque sensor and the dynamic model.

[0086] On the other hand, the speed of the end of the robot arm can also be used as a criterion for canceling the virtual static friction. For example, when an external force is applied to the robot arm (e.g., the end of the robot arm), and the external force can overcome the virtual static friction (at this time, the virtual static friction has a maximum value) and increase the speed of the end of the robot arm, the relationship between the current speed and the preset speed threshold can be determined: when the current speed is greater than or equal to the preset speed threshold, it is determined that the robot arm is manually operated and intends to move the end of the robot arm. At this time, the virtual static friction is canceled, thereby reducing the hysteresis of the robot arm.

[0087] In the present disclosure, the virtual static friction force is obtained according to the posture deviation of the end of the robot arm, that is, the virtual static friction force can be characterized as a force equal to and opposite to the force required to generate the movement trend of the end of the robot arm, so that the position of the end of the robot arm remains unchanged or within a certain area. The method of obtaining the virtual static friction force will be described in detail below.

[0088] In the present disclosure, the posture deviation includes position deviation and posture deviation; when obtaining the above-mentioned posture deviation, it can include: obtaining the angles of each joint of the robotic arm; based on the angles of the joints, calculating the posture of the end of the robotic arm; wherein the posture of the end of the robotic arm includes the posture of the end of the robotic arm and the position of the end of the robotic arm.

[0089] In a specific embodiment, the position and posture of the end of the manipulator is calculated in real time based on the real-time angle of the joint. For example, when the manipulator has just entered the zero-force drag mode or the joint speed of the manipulator or the Cartesian speed of the end is less than or equal to a preset speed threshold, the current joint angle is recorded and the current end set position and posture are calculated; based on the real-time acquired joint angle, the real-time position and posture of the end of the manipulator is calculated.

[0090] Furthermore, the above-mentioned posture deviation is obtained according to the current set posture of the end of the robot arm and the real-time posture of the end of the robot arm.

[0091] When the robot arm is in zero-force drag mode and remains stationary, that is, the joint speed is less than the preset speed threshold qd_eps, the angles of each joint of the robot arm in the current stationary state are set to q_set and the set position Tcp_set of the end of the robot arm is calculated. At the same time, the joint angles of the robot arm are recorded in real time, and the real-time position Tcp_rt of the end of the robot arm is calculated according to the kinematics forward solution.

[0092] The specific calculation formula of the posture deviation of the end of the robotic arm is as follows:

[0093] ΔP=P_set-P_rt,

[0094]

[0095]

[0096] The meanings of the above expressions are as follows:

[0097] Δφ, represents the posture deviation of the end of the robot arm;

[0098] n_set, s_set, a_set represent the preset values ​​of the rotation matrix, i.e., the end rotation matrix when the robot arm is stationary;

[0099] n_rt, s_rt, a_rt represent the rotation matrix of the end of the robot arm, that is, the real-time value of the rotation matrix of the end of the robot arm;

[0100] ΔP, represents the position deviation of the end of the robot arm,

[0101] P_set, represents the preset position, i.e. the end position of the robot when it is stationary;

[0102] P_rt represents the end position of the robot arm, that is, the real-time position of the end of the robot arm.

[0103] Through the above calculation, it can be known that the posture deviation of the end of the robot arm ΔTcp=Tcp_set-Tcp_rt, and ΔTcp represents the posture deviation of the end of the robot arm.

[0104] Based on the posture deviation of the end of the robot arm, the virtual resistance of the end of the robot arm is calculated. In this embodiment, the virtual resistance of the end of the robot arm is calculated based on the posture deviation and the stiffness coefficient. The specific calculation formula is as follows:

[0105] f static =K·ΔTcp;

[0106] Wherein, K represents the stiffness coefficient, which can be a preset value, ΔTcp represents the posture deviation of the end of the robot arm, and the posture deviation ΔTcp includes the difference in position (i.e., position deviation) and the difference in posture (i.e., posture deviation). The calculation formula of the above virtual resistance is converted into the following formula:

[0107] ΔP=P_set-P_rt,

[0108]

[0109]

[0110] Wherein, K represents the stiffness coefficient, ΔP represents the position deviation, and Δφ represents the posture deviation. Wherein, the virtual resistance is an array.

[0111] In this disclosure, for the calculated virtual resistance f static It can be understood that when the posture deviation is large, the virtual resistance fstatic The value of is also large. When the virtual static friction force obtained by the virtual resistance is applied to each joint, it will affect the zero-force dragging feel, and thus affect the user experience.

[0112] Based on this, in the present disclosure, it is necessary to further adjust the virtual resistance; preferably, the method for adjusting the virtual resistance includes:

[0113] A virtual static friction threshold range is set to determine whether the virtual resistance is within the virtual static friction threshold range. If the virtual resistance is within the virtual static friction threshold range, the virtual resistance is used as the virtual static friction. When the virtual resistance exceeds the virtual static friction threshold range, based on the positive / negative value of the virtual resistance, the endpoint value of the virtual static friction threshold range close to the virtual resistance is used as the virtual static friction.

[0114] Specifically, the virtual static friction threshold is set to [f max , τ max ], f max Used to limit the virtual resistance from the perspective of position deviation, τ max Used to limit the virtual resistance from the perspective of attitude deviation; if f static In [-f max , f max ], and [-τ max , τ max ] range, f static No adjustment; if f static Exceeding the threshold range, according to f static The positive and negative of f static is equal to ±f max , ±τ max , will soon static Set as the boundary value of the virtual static friction threshold range. The following expression reflects the constraint relationship between the adjusted virtual resistance and the virtual static friction threshold:

[0115]

[0116] Among them, f max , τ max Indicates the virtual resistance threshold.

[0117] At this time, the virtual static friction force is obtained through the virtual resistance.

[0118] In the present disclosure, after obtaining the virtual static friction force, it is necessary to convert the virtual static friction force into torque instructions for each joint, so as to control each joint of the robotic arm, specifically:

[0119] The virtual static friction force is converted into the torque of each joint of the robot arm through the Jacobian matrix. According to the Jacobian matrix J, the virtual static friction force at the end of the robot arm is converted into the additional torque τ of each joint according to the following formula: static :

[0120] τ static =J T ·f static .

[0121] Then, the command torque is calculated based on the gravity of each joint of the robot arm, the friction between the joints, the dynamics of the load at the end of the robot arm, and the above-mentioned additional torque, and the robot arm is controlled based on the command torque.

[0122] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0123] A memory, the memory stores execution instructions;

[0124] The processor executes the execution instructions stored in the memory, so that the processor executes any one of the above methods.

[0125] According to another aspect of the present disclosure, a readable storage medium is provided, in which execution instructions are stored. When the execution instructions are executed by a processor, they are used to implement any of the above methods.

[0126] Figure 2 An example diagram of an apparatus using a hardware implementation of a processing system is shown. The apparatus may include a corresponding module that performs each or several steps in the above flowchart. Therefore, each step or several steps in the above flowchart may be performed by a corresponding module, and the apparatus may include one or more of these modules. The module may be one or more hardware modules specifically configured to perform the corresponding steps, or implemented by a processor configured to perform the corresponding steps, or stored in a computer-readable medium for implementation by a processor, or implemented by some combination.

[0127] The hardware structure can be implemented using a bus architecture. The bus architecture can include any number of interconnecting buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 1100 connects various circuits including one or more processors 1200, memory 1300, and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.

[0128] The bus 1100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the figure only uses one connecting line, but does not mean that there is only one bus or one type of bus.

[0129] Any process or method description in the flowchart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes other implementations, in which the functions may not be performed in the order shown or discussed, including performing the functions in a substantially simultaneous manner or in a reverse order according to the functions involved, which should be understood by a person skilled in the art of the present disclosure. The processor performs the various methods and processes described above. For example, the method implementation in the present disclosure can be implemented as a software program, which is tangibly contained in a machine-readable medium, such as a memory. In some embodiments, part or all of the software program can be loaded and / or installed via a memory and / or a communication interface. When the software program is loaded into the memory and executed by the processor, one or more steps in the method described above can be performed. Alternatively, in other embodiments, the processor can be configured to perform one of the above methods in any other appropriate manner (e.g., by means of firmware).

[0130] The logic and / or steps represented in the flowchart or otherwise described herein may be embodied in any readable storage medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from and execute instructions on an instruction execution system, apparatus, or device), or in combination with such instruction execution systems, apparatuses, or devices.

[0131] For the purposes of this specification, a "readable storage medium" may be any device that can contain, store, communicate, propagate or transmit a program for use with or in conjunction with an instruction execution system, device or apparatus. More specific examples of readable storage media (a non-exhaustive list) include the following: an electrical connection with one or more wirings (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), a fiber optic device, and a portable read-only memory (CDROM). In addition, the readable storage medium may even be paper or other suitable medium on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a memory.

[0132] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0133] A person skilled in the art may understand that all or part of the steps of implementing the above-mentioned implementation method may be completed by instructing related hardware through a program, and the program may be stored in a readable storage medium, which, when executed, includes one or a combination of the steps of the implementation method.

[0134] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a readable storage medium. The storage medium may be a read-only memory, a disk or an optical disk, etc.

[0135] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present application. In this specification, the schematic representations of the above terms are not necessarily the same embodiment / method or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments / methods or examples described in this specification and the features of the different embodiments / methods or examples, unless they are contradictory.

[0136] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0137] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.

Claims

1. A method for controlling a robotic arm, characterized in that: include: Control the robotic arm to work in zero-force drag mode; Obtain the speed of the end of the robotic arm, and compare the speed of the end of the robotic arm with a preset speed threshold; When the speed of the end of the robotic arm is less than or equal to a preset speed threshold, at least one joint of the robotic arm is controlled, and a virtual static friction force is applied to the end of the robotic arm, so as to prevent the end of the robotic arm from drifting in a zero-force drag mode; when the speed of the end of the robotic arm is greater than the preset speed threshold, no virtual static friction force is applied to the end of the robotic arm; as well as Obtaining the magnitude of the external force applied to the robotic arm, and when the external force applied to the robotic arm is greater than or equal to a preset external force threshold, canceling the applied virtual static friction force; When obtaining the virtual static friction force: obtaining the virtual resistance force according to the posture deviation of the end of the robot arm; and setting a virtual static friction threshold range, determining whether the virtual resistance is within the virtual static friction threshold range, and if the virtual resistance is within the virtual static friction threshold range, using the virtual resistance as the virtual static friction; When the virtual resistance exceeds the virtual static friction threshold range, based on the positive / negative value of the virtual resistance, an end point value of the virtual static friction threshold range close to the virtual resistance is used as the virtual static friction; Wherein, the posture deviation includes position deviation and posture deviation; when obtaining the above-mentioned posture deviation, it includes: obtaining the angles of each joint of the robotic arm; based on the angles of the joints, calculating the posture of the end of the robotic arm; wherein the posture of the end of the robotic arm includes the posture of the end of the robotic arm and the position of the end of the robotic arm; the above-mentioned posture deviation is obtained according to the current end setting posture of the robotic arm and the real-time posture of the end of the robotic arm.

2. The robot arm control method according to claim 1, characterized in that: When an external force is applied to the end of the robot arm, and the external force causes the speed of the end of the robot arm to be greater than or equal to a preset speed threshold, the applied virtual static friction force is canceled.

3. The robot arm control method according to claim 1, characterized in that: The command torque is calculated based on the gravity of each link of the robot arm, the friction force in the joint, the dynamics of the load at the end of the robot arm, and the virtual static friction force, and the robot arm is controlled based on the command torque.

4. A robot arm control device, characterized in that: include: A control module, wherein the control module is used to control the robot arm to operate in a zero-force drag mode; A comparison module, the comparison module is used to compare the speed of the end of the robot arm with a preset speed threshold; as well as a compensation module, which controls at least one joint of the robotic arm and applies a virtual static friction force to the end of the robotic arm when the speed of the end of the robotic arm is less than or equal to a preset speed threshold, so as to prevent the end of the robotic arm from drifting in a zero-force drag mode; When the speed of the end of the robotic arm is greater than a preset speed threshold, no virtual static friction force is applied to the end of the robotic arm; The robot arm control device further comprises: obtaining the magnitude of the external force applied to the robot arm, and when the external force applied to the robot arm is greater than or equal to a preset external force threshold, canceling the applied virtual static friction force; When obtaining the virtual static friction force: obtaining the virtual resistance force according to the posture deviation of the end of the robot arm; and setting the virtual static friction force threshold range, judging whether the virtual resistance force is within the virtual static friction force threshold range, and if the virtual resistance force is within the virtual static friction force threshold range, taking the virtual resistance force as the virtual static friction force; when the virtual resistance force exceeds the virtual static friction force threshold range, taking the endpoint value of the virtual static friction force threshold range close to the virtual resistance force as the virtual static friction force based on the positive / negative of the virtual resistance force; Wherein, the posture deviation includes position deviation and posture deviation; when obtaining the above-mentioned posture deviation, it includes: obtaining the angles of each joint of the robotic arm; based on the angles of the joints, calculating the posture of the end of the robotic arm; wherein the posture of the end of the robotic arm includes the posture of the end of the robotic arm and the position of the end of the robotic arm; the above-mentioned posture deviation is obtained according to the current end setting posture of the robotic arm and the real-time posture of the end of the robotic arm.

5. An electronic device, characterized in that: include: A memory storing execution instructions; as well as A processor, wherein the processor executes the execution instruction stored in the memory so that the processor executes the method according to any one of claims 1 to 3.

6. A readable storage medium, characterized in that: The readable storage medium stores execution instructions, which are used to implement the method according to any one of claims 1 to 3 when executed by a processor.