Robot dragging teaching method, device, electronic device and readable storage medium
By calculating the tangential acceleration and force damping coefficient of the robot end, the additional torque command is generated, which solves the problems of joint speed limit hysteresis and inaccurate end speed control in the existing technology, and improves the safety of the drag teaching process.
Patent Information
- Application Number
- CN202310718201.4
- 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
Smart Images

Figure CN116512225B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of robot technology, and in particular to a robot dragging teaching method, device, electronic device and readable storage medium. Background Art
[0002] Drag teaching refers to teaching the robot arm by manually dragging it. The implementation methods include zero force mode, admittance control / impedance control, etc.
[0003] Zero-force mode refers to a control mode in which the gravity torque and friction torque borne by each joint of the robot are calculated in real time during the operation of the robot, and sent to the servo controller as a torque command, so that the robot exhibits "zero gravity" during operation and can move in response to external drag, and remain stationary when there is no drag.
[0004] Impedance control / admittance control refers to a control method that achieves robot compliance by adjusting the dynamic characteristics between the robot's position and force. The so-called compliance refers to the robot's compliance with certain rules to the external force it is subjected to. The general view in the industry is that the interaction between the robot and the external environment can be described by the mass-spring-damper model, that is, m*Δx¨+b*Δx˙+k*Δx=fext(1), (1) where fext is the external force applied to the robot, m, b, k are the inertia coefficient, damping coefficient and stiffness coefficient respectively, and Δx=xx ref , that is, the deviation between the actual position x of the robot and the command position xref. For the robot control system, from the perspective of input and output, the input of impedance control is the position deviation, and the output is force / torque, that is, it is converted into the torque that each joint motor should output; the input of admittance control is the external force / torque applied to the robot, and the output is the command position of each joint. The essence of impedance control is to combine the robot dynamics model with model (1) to give the control law of the motor command force / command position, so that the relationship between the robot position deviation Δx and the external force fext satisfies equation (1).
[0005] External force estimation refers to the robot combining its own dynamic model with the feedback data of sensors, including but not limited to the feedback position of each joint, the feedback torque or feedback current of each joint, and the feedback data of the force / torque sensor integrated at the end, to estimate the magnitude and direction of the external force on the robot. The output of external force estimation is generally the external torque on each joint of the robot or the six-dimensional external force on the end of the robot.
[0006] In the prior art, a drag speed limit is used for the joints of the robot arm. When the speed of a joint exceeds a set threshold during the drag teaching process, a torque command in the opposite direction of the current speed is applied to the joint to decelerate the joint.
[0007] The existing technology has the following technical defects: First, as a speed limiting method that starts to add reverse torque after the joint exceeds the speed limit, it has hysteresis in principle, and cannot strictly guarantee that the joint speed during the dragging process will never exceed the set threshold, which poses a safety risk; second, this method constrains the speed of each joint, and during the dragging teaching process, the position held by the user when dragging the robot arm is generally the end tool, and the speed of the robot end is directly related to the user's safety. Therefore, from the perspective of controlling safety risks, the Cartesian speed of the robot end should be limited rather than the joint speed. Summary of the invention
[0008] In order to solve one of the above technical problems, the present disclosure provides a robot dragging teaching method, device, electronic device and readable storage medium.
[0009] According to one aspect of the present disclosure, a robot dragging teaching method is provided, which includes:
[0010] Obtaining motion information of the robot joints, and based on the motion information of the robot joints, obtaining the speed of the robot end;
[0011] Calculating the joint torque corresponding to the tangential acceleration of the robot end based on the motion information and force information of the robot joint; and
[0012] Based on the terminal tangential force damping coefficient and the joint torque corresponding to the tangential acceleration of the robot terminal, the additional torque applied to each joint of the robot is calculated; and the additional torque is combined with the original torque command of the joint to generate the current torque command; and the current torque command is sent to the robot drive device to generate a tangential force at the robot terminal to prevent dragging.
[0013] According to at least one embodiment of the present disclosure, a robot dragging teaching method is provided to obtain motion information of a robot joint, and based on the motion information of the robot joint, obtain the speed of the robot end, including:
[0014] Get the position and speed of each joint of the robot;
[0015] Based on the position and velocity of each joint, calculate the geometric Jacobian matrix;
[0016] Calculate the Cartesian space velocity vector of the robot end based on the geometric Jacobian matrix and the velocity of each joint; and
[0017] Based on the Cartesian space velocity vector of the robot end, the velocity of the robot end is obtained.
[0018] According to at least one embodiment of the present disclosure, a robot dragging teaching method calculates a joint torque corresponding to a tangential acceleration of a robot end based on motion information and force information of the robot joint, including:
[0019] Based on the position and velocity of each joint, calculate the geometric Jacobian matrix, Jacobian derivative matrix and inertia matrix;
[0020] Calculating theoretical accelerations of the robot's joints based on the inertia matrix and the torque of the external force acting on the robot's joints;
[0021] Calculate the desired Cartesian space acceleration of the robot end based on the theoretical acceleration of the joint, the geometric Jacobian matrix, the Jacobian derivative matrix and the velocity of the joint;
[0022] Decomposing the desired Cartesian space acceleration of the robot end to obtain a component parallel to the velocity vector of the robot end and a component perpendicular to the velocity vector of the robot end, the desired Cartesian space acceleration of the robot end is expressed as the sum of the component parallel to the velocity vector of the robot end and the component perpendicular to the velocity vector of the robot end, and the component parallel to the velocity vector of the robot end is the tangential acceleration of the robot end;
[0023] Calculating the acceleration of the robot joint based on the component parallel to the velocity vector of the robot end and the geometric Jacobian matrix; and
[0024] Based on the acceleration of the robot joint and the inertia matrix, the joint torque corresponding to the tangential acceleration of the robot end is calculated.
[0025] According to the robot dragging teaching method of at least one embodiment of the present disclosure, the method for obtaining the torque of the external force acting on the robot joint includes:
[0026] The torque of the external force exerted on the joint when the user drags the end of the robot is obtained through the external force estimation module, or the torque of the external force exerted on the joint when the user drags the end of the robot is obtained through the sensor at the end of the robot.
[0027] According to the robot dragging teaching method of at least one embodiment of the present disclosure, the method for calculating the terminal tangential force damping coefficient includes:
[0028] Calculating the terminal tangential force damping coefficient based on the speed of the robot terminal and the robot terminal speed threshold;
[0029] Wherein, the robot terminal speed threshold is preset.
[0030] According to the robot dragging teaching method of at least one embodiment of the present disclosure, the terminal tangential force damping coefficient includes a first terminal tangential force damping coefficient and a second terminal tangential force damping coefficient;
[0031] If the speed of the robot end is less than the robot end speed threshold, the first end tangential force damping coefficient is used, and the first end tangential force damping coefficient is less than or equal to 0; and
[0032] If the speed of the robot end is greater than or equal to the robot end speed threshold, the second end tangential force damping coefficient is used, and the second end tangential force damping coefficient is less than 0.
[0033] According to the robot dragging teaching method of at least one embodiment of the present disclosure, the tangential force damping coefficient of the first end is greater than the tangential force damping coefficient of the second end.
[0034] According to another aspect of the present disclosure, there is provided a robot dragging teaching device, comprising:
[0035] A robot joint and terminal information acquisition module, wherein the robot joint and terminal information acquisition module is used to acquire motion information of the robot joints and acquire the speed of the robot terminal based on the motion information of the robot joints;
[0036] A robot terminal joint torque calculation module, which calculates the joint torque corresponding to the tangential acceleration of the robot terminal based on the motion information and force information of the robot joint; and
[0037] The additional torque calculation module at the end of the robot calculates the additional torque applied to each joint of the robot based on the end tangential force damping coefficient and the joint torque corresponding to the tangential acceleration of the robot end; and combines the additional torque with the original torque command of the joint to generate a current torque command; and sends the current torque command to the robot drive device to generate a tangential force at the end of the robot to prevent dragging.
[0038] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0039] A memory storing execution instructions;
[0040] A processor, wherein the processor executes the execution instruction stored in the memory, so that the processor executes any one of the methods described above.
[0041] According to another aspect of the present disclosure, a readable storage medium is provided, wherein execution instructions are stored in the readable storage medium, and when the execution instructions are executed by a processor, they are used to implement any of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] 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.
[0043] Figure 1 It is a schematic flow chart of a robot dragging teaching method according to one embodiment of the present disclosure.
[0044] Figure 2 It is a flowchart of a method for obtaining the velocity of a robot end according to an embodiment of the present disclosure.
[0045] Figure 3 It is a flowchart of a method for calculating the joint torque corresponding to the tangential acceleration of the robot end according to one embodiment of the present disclosure.
[0046] Figure 4 It is a schematic structural diagram of a robot dragging teaching Cartesian space speed limiting device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] 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.
[0048] 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.
[0049] 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 in addition without departing from the technical concept of the present disclosure.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] Figure 1 It is a schematic flow chart of a robot dragging teaching method according to one embodiment of the present disclosure.
[0055] like Figure 1 As shown, the robot dragging teaching method S100 of the present disclosure can perform Cartesian space speed limitation after the robot enters the teaching mode, and the tangential speed of the robot end is controlled within a safe range.
[0056] Specifically, the robot dragging teaching method S100 may include: S102, obtaining the motion information of the robot joint, and based on the motion information of the robot joint, obtaining the speed v_norm of the robot terminal; S104, calculating the joint torque τext_p corresponding to the tangential acceleration of the robot terminal based on the motion information and force information of the robot joint; and S106, calculating the additional torque τ_append applied to each joint of the robot based on the terminal tangential force damping coefficient coeff_p and the joint torque τext_p corresponding to the tangential acceleration of the robot terminal; and combining the additional torque τ_append with the original torque command of the joint to generate the current torque command; and sending the current torque command to the robot driving device, so as to generate a tangential force to prevent dragging at the robot terminal. That is to say, when the robot driving device controls the movement of each joint of the robot, through the additional torque τ_append of each joint of the robot, it can make the robot terminal have a certain resistance during the movement process, thereby avoiding the speed of the robot terminal exceeding the threshold during the movement process.
[0057] For the above step S102, the motion information of the robot joint is obtained, and the speed v_norm of the robot end is obtained based on the motion information of the robot joint. A specific implementation method is provided, such as Figure 2 As shown, the following steps are included.
[0058] S1022, obtaining the position q and the speed qd of each joint of the robot;
[0059] S1024, calculating the geometric Jacobian matrix J based on the position q of each joint;
[0060] S1026, calculating the Cartesian space velocity vector v_tcp of the robot end based on the geometric Jacobian matrix J and the velocity qd of each joint;
[0061] S1028, based on the Cartesian space velocity vector v_tcp of the robot end, v_tcp=J*qd, obtain the velocity (rate) of the robot end, that is, the norm of v_tcp, v_norm=||v_tcp||.
[0062] For the above step S104, based on the motion information and force information of the robot joint, the joint torque τext_p corresponding to the tangential acceleration of the robot end is calculated. A specific implementation method is provided, such as Figure 3 As shown, the following steps are included.
[0063] In step S1041, based on the position q and velocity qd of each joint, the geometric Jacobian matrix J is calculated, and the Jacobian derivative matrix J_d and the inertia matrix M can be further calculated; based on the inertia matrix M and the torque τext of the external force on the robot joint, the theoretical acceleration qdd of the robot joint is calculated, qdd=M -1 *τext.
[0064] The method of obtaining the torque τext of the external force on the robot joint includes: obtaining the torque τext of the external force on the joint when the user drags the robot end through the external force estimation module, or obtaining the torque τext of the external force on the joint when the user drags the robot end through the sensor at the robot end. Preferably, the external force estimation module includes a sensor and a software and hardware system connected to the robot for obtaining sensor data.
[0065] In step S1042, based on the theoretical acceleration qdd of the joint, the geometric Jacobian matrix J, the Jacobian derivative matrix J_d and the velocity qd of the joint, the desired Cartesian space acceleration Xdd of the robot end is calculated, Xdd = J*qdd + J_d*qd.
[0066] In step S1043, the desired Cartesian space acceleration Xdd of the robot end is decomposed to obtain a component Xdd_p parallel to the velocity vector of the robot end and a component Xdd_v perpendicular to the velocity vector of the robot end. The desired terminal Cartesian space acceleration Xdd is expressed as the sum of the component Xdd_p parallel to the velocity vector of the robot end and the component Xdd_v perpendicular to the velocity vector of the robot end. The component Xdd_p parallel to the velocity vector of the robot end is the tangential acceleration of the robot end.
[0067] In step S1044, based on the component Xdd_p parallel to the velocity vector of the robot end and the geometric Jacobian matrix J, the acceleration qdd_p of the robot joint is calculated, qdd_p = J # *Xdd_p,J # is the generalized inverse matrix of J.
[0068] In step S1045 , based on the acceleration qdd_p of the robot joint and the inertia matrix M, the joint torque τext_p=M*qdd_p corresponding to the tangential acceleration of the robot end is calculated.
[0069] In the present disclosure, the terminal tangential force damping coefficient coeff_p is obtained by calculation. In one embodiment, the terminal tangential force damping coefficient coeff_p corresponds to the speed of the robot terminal.
[0070] More specifically, the terminal tangential force damping coefficient coeff_p is calculated based on the velocity v_norm of the robot terminal and the robot terminal velocity threshold v_ceil, wherein the robot terminal velocity threshold v_ceil is preset.
[0071] The terminal tangential force damping coefficient coeff_p includes a first terminal tangential force damping coefficient and a second terminal tangential force damping coefficient; and is selected according to the speed of the robot terminal. In one embodiment, if the speed of the robot terminal is less than the robot terminal speed threshold, the first terminal tangential force damping coefficient is used, and the first terminal tangential force damping coefficient is less than or equal to 0; accordingly, when the first terminal tangential force damping coefficient is equal to 0, it means that the robot terminal speed is in a reasonable range and does not need to be applied with a tangential force to prevent dragging. Accordingly, when the first terminal tangential force damping coefficient is less than 0, it means that a tangential force to prevent dragging is applied so that the tangential speed of the robot terminal is controlled within a reasonable range, and the greater the absolute value of the first terminal tangential force damping coefficient, the greater the tangential force applied to prevent dragging, and the more obvious the effect of preventing dragging.
[0072] On the other hand, if the speed of the robot end is greater than or equal to the robot end speed threshold, the second end tangential force damping coefficient is used, and the second end tangential force damping coefficient is less than 0; that is, when the speed of the robot end is greater than or equal to the robot end speed threshold, a tangential force is required to be applied to prevent dragging, and at this time the second end tangential force damping coefficient cannot be 0.
[0073] In a preferred embodiment, the tangential force damping coefficient of the first end is greater than the tangential force damping coefficient of the second end. Since the tangential force damping coefficient of the first end and the tangential force damping coefficient of the second end are both negative values, correspondingly, the absolute value of the tangential force damping coefficient of the first end is smaller than the absolute value of the tangential force damping coefficient of the second end. At this time, when the tangential force damping coefficient of the second end is selected, the effect of preventing dragging is more obvious.
[0074] In a specific embodiment, the terminal tangential force damping coefficient coeff_p satisfies the following conditions: if the speed v_norm of the robot terminal is less than the robot terminal speed threshold v_ceil, the terminal tangential force damping coefficient coeff_p (the first terminal tangential force damping coefficient coeff_p) can be [-2,0]. More preferably, the first terminal tangential force resistance system can be selected to be a value greater than or equal to -1.
[0075] Correspondingly, if the speed v_norm of the robot end is greater than or equal to the robot end speed threshold v_ceil, the end tangential force damping coefficient coeff_p (the second end tangential force damping coefficient) can be [-2,0), for example, it can be -1.
[0076] In addition, the end tangential force damping coefficient coeff_p can be set to be continuous with respect to the robot end velocity.
[0077] Based on the end tangential force damping coefficient coeff_p and the joint torque corresponding to the tangential acceleration of the end of the robot arm, the additional torque τ_append of the end of the robot is calculated, τ_append = coeff_p * τext_p;
[0078] Among them, the end tangential force damping coefficient coeff_p corresponds to the velocity v_norm of the robot end.
[0079] The robot dragging teaching method disclosed in the present invention is applicable to both dragging teaching in zero-force mode and dragging teaching in admittance (impedance) mode. Specifically, in admittance mode, the robot works in position mode or speed mode, and the control instruction sent to the driver during the dragging process is a position instruction or a speed instruction. On this basis, during the dragging process, the terminal tangential force damping coefficient is calculated according to the set terminal speed threshold and the actual speed, and the tangential command acceleration acc_cmd_p in the admittance process is scaled. When the actual terminal speed is greater than or equal to the set threshold, acc_cmd_p is set to zero.
[0080] Figure 4 It is a schematic structural diagram of a robot dragging teaching Cartesian space speed limiting device according to an embodiment of the present disclosure.
[0081] like Figure 4 As shown, the robot dragging teaching Cartesian space speed limiting device 1000 includes: a robot joint and terminal information acquisition module 1002, a robot terminal joint torque calculation module 1004 and a robot terminal additional torque calculation module 1006, etc.
[0082] The robot joint and terminal information acquisition module is used to acquire the motion information of the robot joint, and based on the motion information of the robot joint, acquire the speed v_norm of the robot terminal; the robot terminal joint torque calculation module calculates the joint torque τext_p corresponding to the tangential acceleration of the robot terminal based on the motion information and force information of the robot joint; and the robot terminal additional torque calculation module calculates the additional torque τ_append applied to each joint of the robot based on the terminal tangential force damping coefficient coeff_p and the joint torque τext_p corresponding to the tangential acceleration of the robot terminal; and combines the additional torque τ_append with the original torque instruction of the joint to generate the current torque instruction; and sends the current torque instruction to the robot driving device, so as to generate a tangential force to prevent dragging at the robot terminal. That is to say, when the robot driving device controls the movement of each joint of the robot, through the additional torque τ_append of each joint of the robot, it can make the robot terminal have a certain resistance during the movement process, thereby avoiding the speed of the robot terminal exceeding the threshold during the movement process.
[0083] Among them, the motion information of the robot joint is obtained, and the speed v_norm of the robot end is obtained based on the motion information of the robot joint. A specific implementation method is provided, such as Figure 2 As shown, the following steps are included.
[0084] S1022, obtaining the position q and the speed qd of each joint of the robot;
[0085] S1024, calculating the geometric Jacobian matrix J based on the position q of each joint;
[0086] S1026, calculating the Cartesian space velocity vector v_tcp of the robot end based on the geometric Jacobian matrix J and the velocity qd of each joint;
[0087] S1028, based on the Cartesian space velocity vector v_tcp of the robot end, v_tcp=J*qd, obtain the velocity (rate) of the robot end, that is, the norm of v_tcp, v_norm=||v_tcp||.
[0088] Among them, based on the motion information and force information of the robot joint, the joint torque τext_p corresponding to the tangential acceleration of the robot end is calculated, and a specific implementation method is provided, such as Figure 3 As shown, the following steps are included.
[0089] In step S1041, based on the position q and velocity qd of each joint, the geometric Jacobian matrix J is calculated, and the Jacobian derivative matrix J_d and the inertia matrix M can be further calculated; based on the inertia matrix M and the torque τext of the external force on the robot joint, the theoretical acceleration qdd of the robot joint is calculated, qdd=M -1 *τext.
[0090] The method of obtaining the torque τext of the external force on the robot joint includes: obtaining the torque τext of the external force on the joint when the user drags the robot end through the external force estimation module, or obtaining the torque τext of the external force on the joint when the user drags the robot end through the sensor at the robot end. Preferably, the external force estimation module includes a sensor and a software and hardware system connected to the robot for obtaining sensor data.
[0091] In step S1042, based on the theoretical acceleration qdd of the joint, the geometric Jacobian matrix J, the Jacobian derivative matrix J_d and the velocity qd of the joint, the desired Cartesian space acceleration Xdd of the robot end is calculated, Xdd = J*qdd + J_d*qd.
[0092] In step S1043, the desired Cartesian space acceleration Xdd of the robot end is decomposed to obtain a component Xdd_p parallel to the velocity vector of the robot end and a component Xdd_v perpendicular to the velocity vector of the robot end. The desired terminal Cartesian space acceleration Xdd is expressed as the sum of the component Xdd_p parallel to the velocity vector of the robot end and the component Xdd_v perpendicular to the velocity vector of the robot end. The component Xdd_p parallel to the velocity vector of the robot end is the tangential acceleration of the robot end.
[0093] In step S1044, based on the component Xdd_p parallel to the velocity vector of the robot end and the geometric Jacobian matrix J, the acceleration qdd_p of the robot joint is calculated, qdd_p = J # *Xdd_p,J # is the generalized inverse matrix of J.
[0094] In step S1045 , based on the acceleration qdd_p of the robot joint and the inertia matrix M, the joint torque τext_p=M*qdd_p corresponding to the tangential acceleration of the robot end is calculated.
[0095] In the present disclosure, the terminal tangential force damping coefficient coeff_p is obtained by calculation. In one embodiment, the terminal tangential force damping coefficient coeff_p corresponds to the speed of the robot terminal.
[0096] More specifically, the terminal tangential force damping coefficient coeff_p is calculated based on the velocity v_norm of the robot terminal and the robot terminal velocity threshold v_ceil, wherein the robot terminal velocity threshold v_ceil is preset.
[0097] The terminal tangential force damping coefficient coeff_p includes a first terminal tangential force damping coefficient and a second terminal tangential force damping coefficient; and is selected according to the speed of the robot terminal. In one embodiment, if the speed of the robot terminal is less than the robot terminal speed threshold, the first terminal tangential force damping coefficient is used, and the first terminal tangential force damping coefficient is less than or equal to 0; accordingly, when the first terminal tangential force damping coefficient is equal to 0, it means that the robot terminal speed is in a reasonable range and does not need to be applied with a tangential force to prevent dragging. Accordingly, when the first terminal tangential force damping coefficient is less than 0, it means that a tangential force to prevent dragging is applied so that the tangential speed of the robot terminal is controlled within a reasonable range, and the greater the absolute value of the first terminal tangential force damping coefficient, the greater the tangential force applied to prevent dragging, and the more obvious the effect of preventing dragging.
[0098] On the other hand, if the speed of the robot end is greater than or equal to the robot end speed threshold, the second end tangential force damping coefficient is used, and the second end tangential force damping coefficient is less than 0; that is, when the speed of the robot end is greater than or equal to the robot end speed threshold, a tangential force is required to be applied to prevent dragging, and at this time the second end tangential force damping coefficient cannot be 0.
[0099] In a preferred embodiment, the tangential force damping coefficient of the first end is greater than the tangential force damping coefficient of the second end. Since the tangential force damping coefficient of the first end and the tangential force damping coefficient of the second end are both negative values, correspondingly, the absolute value of the tangential force damping coefficient of the first end is smaller than the absolute value of the tangential force damping coefficient of the second end. At this time, when the tangential force damping coefficient of the second end is selected, the effect of preventing dragging is more obvious.
[0100] In a specific embodiment, the terminal tangential force damping coefficient coeff_p satisfies the following conditions: if the speed v_norm of the robot terminal is less than the robot terminal speed threshold v_ceil, the terminal tangential force damping coefficient coeff_p (the first terminal tangential force damping coefficient coeff_p) can be [-2,0]. More preferably, the first terminal tangential force resistance system can be selected to be a value greater than or equal to -1.
[0101] Correspondingly, if the speed v_norm of the robot end is greater than or equal to the robot end speed threshold v_ceil, the end tangential force damping coefficient coeff_p (the second end tangential force damping coefficient) can be [-2,0), for example, it can be -1.
[0102] In addition, the end tangential force damping coefficient coeff_p can be set to be continuous with respect to the robot end velocity.
[0103] Based on the end tangential force damping coefficient coeff_p and the joint torque corresponding to the tangential acceleration of the end of the robot arm, the additional torque τ_append of the end of the robot is calculated, τ_append = coeff_p * τext_p;
[0104] Among them, the end tangential force damping coefficient coeff_p corresponds to the velocity v_norm of the robot end.
[0105] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0106] A memory, the memory stores execution instructions;
[0107] The processor executes the execution instructions stored in the memory, so that the processor executes any one of the above methods.
[0108] 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.
[0109] The robot dragging teaching method provided by the present invention has the following technical advantages: first, the speed and torque of each joint are predicted before overspeeding, and then the relevant speed and torque of the end are calculated. The situation that overspeeding may occur can be predicted, and the speed limiting method of adding reverse torque has advanced prediction and advanced speed limiting to prevent overspeeding; second, the method provided by the present invention, during the dragging teaching process, performs relevant speed and mechanical calculations on the end tool at the position held by the user when dragging the robot arm, and then limits the speed, which makes the operation control safer.
[0110] Figure 4 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.
[0111] 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.
[0112] 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.
[0113] 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).
[0114] 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.
[0115] 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.
[0116] 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.
[0117] 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.
[0118] 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.
[0119] 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.
[0120] 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.
[0121] 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 robot dragging teaching method, characterized in that: include: Obtaining motion information of the robot joints, and based on the motion information of the robot joints, obtaining the speed of the robot end; Based on the motion information and force information of the robot joint, calculating the joint torque corresponding to the tangential acceleration of the robot end; as well as Based on the terminal tangential force damping coefficient and the joint torque corresponding to the tangential acceleration of the robot terminal, calculate the additional torque applied to each joint of the robot; The additional torque is combined with the original torque command of the joint to generate the current torque command; and sends the current torque command to the robot drive device so as to generate a tangential force at the end of the robot to prevent dragging; Wherein, based on the motion information and force information of the robot joint, the joint torque corresponding to the tangential acceleration of the robot end is calculated, including: Based on the position and velocity of each joint, calculate the geometric Jacobian matrix, Jacobian derivative matrix and inertia matrix; Calculating theoretical accelerations of the robot's joints based on the inertia matrix and the torque of the external force acting on the robot's joints; Calculate the desired Cartesian space acceleration of the robot end based on the theoretical acceleration of the joint, the geometric Jacobian matrix, the Jacobian derivative matrix and the velocity of the joint; Decomposing the desired Cartesian space acceleration of the robot end to obtain a component parallel to the velocity vector of the robot end and a component perpendicular to the velocity vector of the robot end, the desired Cartesian space acceleration of the robot end is expressed as the sum of the component parallel to the velocity vector of the robot end and the component perpendicular to the velocity vector of the robot end, and the component parallel to the velocity vector of the robot end is the tangential acceleration of the robot end; Calculating the acceleration of the robot joint based on the component parallel to the velocity vector of the robot end and the geometric Jacobian matrix; and Based on the acceleration of the robot joint and the inertia matrix, the joint torque corresponding to the tangential acceleration of the robot end is calculated.
2. The robot dragging teaching method according to claim 1, characterized in that: Acquiring motion information of the robot joints, and acquiring the speed of the robot end based on the motion information of the robot joints, including: Get the position and speed of each joint of the robot; Based on the position and velocity of each joint, calculate the geometric Jacobian matrix; Calculate the Cartesian space velocity vector of the robot end based on the geometric Jacobian matrix and the velocity of each joint; and Based on the Cartesian space velocity vector of the robot end, the velocity of the robot end is obtained.
3. The robot dragging teaching method according to claim 1, characterized in that: The method for obtaining the torque of the external force acting on the joint of the robot includes: The torque of the external force exerted on the joint when the user drags the end of the robot is obtained through the external force estimation module, or the torque of the external force exerted on the joint when the user drags the end of the robot is obtained through the sensor at the end of the robot.
4. The robot dragging teaching method according to claim 1, characterized in that: The calculation method of the terminal tangential force damping coefficient includes: Calculating the terminal tangential force damping coefficient based on the speed of the robot terminal and the robot terminal speed threshold; Wherein, the robot terminal speed threshold is preset.
5. The robot dragging teaching method according to claim 1, characterized in that: The terminal tangential force damping coefficient includes a first terminal tangential force damping coefficient and a second terminal tangential force damping coefficient; If the speed of the robot end is less than the robot end speed threshold, the first end tangential force damping coefficient is used, and the first end tangential force damping coefficient is less than or equal to 0; as well as If the speed of the robot end is greater than or equal to the robot end speed threshold, the second end tangential force damping coefficient is used, and the second end tangential force damping coefficient is less than 0.
6. The robot dragging teaching method according to claim 5, characterized in that: The first end tangential force damping coefficient is greater than the second end tangential force damping coefficient.
7. A robot dragging teaching device, characterized in that: include: A robot joint and terminal information acquisition module, wherein the robot joint and terminal information acquisition module is used to acquire motion information of the robot joints and acquire the speed of the robot terminal based on the motion information of the robot joints; A robot terminal joint torque calculation module, which calculates the joint torque corresponding to the tangential acceleration of the robot terminal based on the motion information and force information of the robot joint; as well as A robot terminal additional torque calculation module, which calculates additional torques applied to various joints of the robot based on the terminal tangential force damping coefficient and the joint torque corresponding to the tangential acceleration of the robot terminal; The additional torque is combined with the original torque command of the joint to generate the current torque command; and sends the current torque command to the robot drive device so as to generate a tangential force at the end of the robot to prevent dragging; Wherein, based on the motion information and force information of the robot joint, the joint torque corresponding to the tangential acceleration of the robot end is calculated, including: Based on the position and velocity of each joint, calculate the geometric Jacobian matrix, Jacobian derivative matrix and inertia matrix; Calculating theoretical accelerations of the robot's joints based on the inertia matrix and the torque of the external force acting on the robot's joints; Calculate the desired Cartesian space acceleration of the robot end based on the theoretical acceleration of the joint, the geometric Jacobian matrix, the Jacobian derivative matrix and the velocity of the joint; Decomposing the desired Cartesian space acceleration of the robot end to obtain a component parallel to the velocity vector of the robot end and a component perpendicular to the velocity vector of the robot end, the desired Cartesian space acceleration of the robot end is expressed as the sum of the component parallel to the velocity vector of the robot end and the component perpendicular to the velocity vector of the robot end, and the component parallel to the velocity vector of the robot end is the tangential acceleration of the robot end; Calculating the acceleration of the robot joint based on the component parallel to the velocity vector of the robot end and the geometric Jacobian matrix; and Based on the acceleration of the robot joint and the inertia matrix, the joint torque corresponding to the tangential acceleration of the robot end is calculated.
8. 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 6.
9. 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 6 when executed by a processor.
