A robot interactive control method, device and medium

Through the Jacobian matrix condition number evaluation index and the virtual force avoidance algorithm, the problem of strange movements and strange forces of the robot in human-computer interaction is solved, joint limits are avoided, and more stable and smooth interactive control is achieved, which is suitable for multiple applications. situations of interaction.

CN116766228BActive Publication Date: 2024-09-17ESTUN MEDICAL TECH (NANJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310792624.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-09-17
Estimated Expiration
2043-06-30

AI Technical Summary

Technical Problem

During the physical human-computer interaction process, the robot is prone to move near strange motions and strange force configurations, resulting in too fast joint speeds, unstable control, and possible sudden stops due to joint limitations, affecting the interaction experience and efficiency. The existing technology cannot effectively deal with the problem of singular force and joint limit avoidance.

Method used

The condition number of the Jacobian matrix is ​​used as the singular configuration evaluation index, and the virtual force avoidance algorithm is used to simultaneously consider motion singularities and force singularities in the robot interactive control to avoid joint limitations and ensure the stability and smoothness of the interaction process.

Benefits of technology

It realizes the robot's smooth avoidance of strange configurations during human-computer interaction, avoids excessive joint speeds and unstable control, improves the stability and fluency of interaction, is suitable for a variety of interactive control situations, and avoids the traditional method The impact on the interactive experience caused by downtime.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116766228B
    Figure CN116766228B
Patent Text Reader

Abstract

The present invention relates to the field of robot control, and in particular to a robot interactive control method, device and medium. The method first uses the inverse of the Jacobian matrix condition number as a singular configuration evaluation index based on the current robot joint position. The index can simultaneously describe the robot's motion singularity and force singularity. The virtual force to avoid is calculated based on the singular configuration evaluation index. Finally, the control amount of the interactive control is determined based on the selected interactive space, interactive control mode and impedance control equation. The present invention solves the problems of excessive robot joint speed caused by the robot approaching the motion singularity and force singularity configuration during human-machine interaction, and unstable control caused by external disturbances. The generated virtual force can effectively avoid the singular configuration, the interactive process is stable, and the interactive control algorithm is applicable to a variety of robot interactive control scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot control technology, and in particular to a robot interactive control method, device and medium. Background Art

[0002] Physical human-robot interaction (pHRI) studies the actual contact and interaction between humans and robots, aiming to achieve natural, safe and efficient interaction between humans and robots, so that robots can work, cooperate and coexist with humans. Compared with traditional industrial robots that require specific teaching equipment and professional training for operators to operate robots, physical human-robot interaction technology allows operators to interact with robots directly and naturally through force perception. This technology has been widely used in human-robot collaboration, medical rehabilitation and other fields. Because robots need to share the working space with humans, it is crucial to use appropriate control methods to ensure the safety, stability and smoothness of the interaction process. For physical human-robot interaction control, the existing control methods mainly include impedance control and admittance control. These two interactive control methods establish a dynamic relationship between the interaction force and the interaction position, so that the robot has a certain degree of flexibility and achieves coordinated movement with human users. On the basis of impedance control and admittance control, these two interactive control methods are combined with learning, adaptation, neural network and other technologies to deal with the uncertainty and variability of robot dynamics and human-robot interaction, thereby improving the performance of human-robot interaction. [1] .

[0003] The motion singularity of robots is an issue that cannot be ignored in robot research. Although this issue has received a certain amount of attention in traditional industrial robots and there are coping methods such as damped least squares method, the problem of singular configuration in the process of human-machine interaction has not been taken seriously, especially the problem of force singularity. Taking motion singularity as an example, the current robot is close to motion singularity configuration, and the robot will lose the ability to move in a certain direction. For non-professionals, they cannot recognize the problem of motion singularity and still hope that the robot will continue to move according to their wishes, which will cause some joints of the robot to move too fast, resulting in difficult control and unstable movement. Taking the rehabilitation robot that applies human-machine interaction technology as an example, the motion singularity problem causes the robot joints to move too fast and unstable, causing physical and mental discomfort to the rehabilitator. The fast-moving robotic arm even causes physical damage to the rehabilitator, such as traction injury and human-machine collision. In addition, for robots in interaction, force singularity is also an issue that cannot be ignored. When the robot runs into a force singularity configuration, a small external force will generate a large joint equivalent torque in the joint space, causing unstable robot control. For example, when a rehabilitation robot approaches a force singularity configuration, the robot motor will be subjected to excessive external torque, causing control performance to deteriorate and jitter to occur, which is unacceptable for the rehabilitation patient. In robotics research, force singularity and motion singularity are usually two mutually exclusive control objectives: in the direction of flexible movement, the force that can be applied is limited, so there is no need to consider motion singularity, but force singularity needs to be taken seriously; in the direction of limited movement, a larger force can be tolerated, in which case the robot will have motion singularity problems, but force singularity is irrelevant. [2] . Therefore, when designing robot motion planning and interactive control algorithms for human-machine interaction, it is necessary to consider the singularity of motion and force at the same time, rather than simply considering a single indicator for evaluating motion singularity. Otherwise, a situation will occur where one problem is suppressed but another one pops up: the robot will not have motion singularity but will encounter force singularity problems! However, in human-machine interaction control, comprehensively considering the two essentially mutually exclusive problems of motion singularity and force singularity, and achieving the unification of singularity configuration measurement indicators, are still unresolved issues in current human-machine interaction and human-machine collaboration research. [2] .

[0004] Among the existing studies on physical human-machine interaction control, only the discussion and analysis of motion singularity problems have been conducted. References [3][4] proposed a method that uses the minimum singular value of the Jacobian matrix and maneuverability as evaluation indicators for singular configurations, and uses admittance control to achieve singularity avoidance. However, this algorithm does not consider the problem of force singularity, and only implements the admittance interaction control in Cartesian space. In addition, this method uses numerical differentiation to calculate the direction of the virtual force, which is computationally inefficient. Reference [5] transforms the joint limit and singular configuration avoidance problems of surgical robots into optimization problems, and uses the weighted values ​​of the joint limit threshold function and the maneuverability function as flexibility indicators. However, the joint limit and maneuverability objective functions have different units, and the selection of reasonable weighted values ​​requires repeated experiments. In addition, the maneuverability function is a nonlinear function of the joint position, and it is also difficult to solve the optimization problem in real time. Reference [6] uses the Jacobian matrix condition number of a 6-DOF manipulator as a flexibility indicator to evaluate the robot's motion flexibility, but it does not realize that the Jacobian matrix condition number can also be used to judge force singularity. In the above studies, although it is recognized that the problems caused by singular configurations on robot control need to be considered in human-machine interaction, only motion singularity is considered, and force singularity is often not recognized. When the robot has a load, such as when a lower limb rehabilitation robot carries the patient's lower limbs, in addition to motion singularity, force singularity is an issue that must be considered. Otherwise, when the robot moves near the force singularity configuration, the robot motor will be subjected to excessive external force, resulting in unstable control.

[0005] Among the published patents, CN 114029956 B realizes the avoidance of singularities and collisions in the robot surface machining process, but is not suitable for human-machine interaction processes; CN 115922684 A introduces a method and device for avoiding singularities in the force-controlled traction process, which uses operability as an indicator to judge singularities, but cannot handle force singularities, nor can it handle interactive control requirements other than traction; CN110977974B adopts the same idea as reference [3], using the minimum singular value of the Jacobian matrix to measure the robot performance index, which is also unable to handle force singularities. In addition, this method only realizes the admittance control of the Cartesian space, and cannot meet other interactive control requirements.

[0006] More importantly, the above patent also fails to consider the problem of avoiding joint limits during interactive control. When the robot runs to the joint limit, it will cause the robot to suddenly stop, greatly affecting the interactive experience and efficiency.

[0007] In view of this, a robot interaction control method, device and medium are proposed to solve the problem that during the physical human-machine interaction, the robot is very likely to run near the motion singularity and force singularity configuration. At this time, the robot will have too fast joint speed, unstable control and other situations, which will affect the human-machine interaction experience; in addition, if the robot's movement position is not restricted during the interaction process, the robot is very likely to run to the joint limit and suddenly stop, which has also become a problem to be solved in this field. Prior art literature:

[0008] [1] Selvaggio M, Cognetti M, Nikolaidis S, et al. Autonomy in physical human-robot interaction: Abrief survey [J]. IEEE Robotics and Automation Letters, 2021, 6(4): 7989-7996.

[0009] [2] Lynch KM, Park F C. Modern robotics[M].Cambridge University Press, 2017.

[0010] [3]Dimeas F, Moulianitis VC, Aspragathos N.Manipulator performanceconstraints in human-robot cooperation[J].Robotics and Computer-IntegratedManufacturing,2018,50:222-233.

[0011] [4]Dimeas F, Moulianitis VC, Papakonstantinou C, et al.Manipulatorperformance constraints in cartesian admittance control for human-robotcooperation[C] / / 2016IEEE International Conference on Robotics and Automation(ICRA).IEEE,2016:3049-3054.

[0012] [5]Thananjeyan B,Tanwani A,Ji J,et al.Optimizing robot-assisted surgery suture plans to avoid joint limits and singularities[C] / / 2019International Symposium on Medical Robotics(ISMR).IEEE,2019:1-7.

[0013] [6]Zargarbashi SHH,Khan W,Angeles J.The Jacobian condition number as a dexterity index in 6R machining robots[J].Robotics and Computer-Integrated Manufacturing,2012,28(6):694-699. Summary of the invention

[0014] The purpose of the present invention is to provide a robot interactive control method and system, which can generate virtual forces to cope with strange configurations, and the interactive process is smooth, suitable for more interactive control occasions, and improve the fluency and stability of human-computer interaction.

[0015] In order to solve the above technical problems, the technical solution of the present invention is:

[0016] In a first aspect, a robot interactive control method is provided, comprising:

[0017] Get the current robot joint position;

[0018] Determining a robot singular configuration evaluation index based on the current joint position of the robot; wherein the singular configuration evaluation index simultaneously evaluates the robot's motion singularity and force singularity;

[0019] Determine avoidance virtual forces based on singular configuration evaluation indicators;

[0020] The avoidance virtual force is superimposed on the force applied by the operator, and then the control amount of the interactive control, that is, the control speed or control torque of the robot, is determined according to the selected interactive space, interactive control mode and the robot force interaction impedance model.

[0021] Furthermore, the step of determining the singular configuration evaluation index of the robot based on the current joint position of the robot includes:

[0022] Based on the current robot joint position q, the Jacobian matrix J(q) at the current position is calculated according to the Jacobian matrix calculation function;

[0023] According to the non-zero singular values ​​σ of the Jacobian matrix J(q) i Calculate the singular configuration evaluation index and determine the minimum non-zero singular value σ min and the largest singular value σ max The ratio of the Jacobian matrix J(q), that is, the inverse of the condition number of the Jacobian matrix J(q), is the singular configuration evaluation index, that is, γ(q) = σ min (J) / σ max (J).

[0024] Furthermore, the step of determining the magnitude and direction of the singular configuration avoidance virtual force based on the singular configuration evaluation index includes:

[0025] Evaluation index γ(q) and detection threshold γ for judging singular configuration th size;

[0026] If the singular configuration evaluation index γ(q) is less than a certain threshold γ th , then the barrier function b(γ(q)) sets the magnitude of the virtual force k according to the singular configuration evaluation index γ(q) f , and determine the direction of the virtual force according to the gradient of the singular configuration evaluation index γ(q) f ;

[0027] If the singular configuration evaluation index γ(q) is greater than or equal to the threshold γ th , the virtual force is 0, which does not interfere with the normal movement of the robot;

[0028] The singular configuration avoids the virtual force τ sin Expressed as:

[0029]

[0030] Strange configuration avoids virtual force τ sin Further, the size of the virtual force k of the singular configuration avoidance is calculated. f The methods include:

[0031] According to the obstacle function b(γ(q)) and the amplification factor η, the magnitude of the virtual force to avoid the singular configuration is determined as:

[0032] k f =ηb(γ(q))

[0033] Among them, the barrier function is based on the singular configuration evaluation index γ(q), the detection threshold γ th and the critical value γ cr Determine; the barrier function is selected as:

[0034] 1) Inverse proportional barrier function:

[0035]

[0036] 2) Logarithmic barrier function:

[0037] b(γ(q))=-(ln(γ(q)-γ cr )-ln(γ th -γ cr ))

[0038] Furthermore, the direction d of the virtual force to avoid the singular configuration is calculated. f The methods include:

[0039] The direction of the virtual force of the singular configuration avoidance is determined according to the gradient of the singular configuration evaluation index γ(q);

[0040] The gradient is calculated analytically as:

[0041]

[0042] Among them, S represents the gradient of the Jacobian matrix J(q) with respect to the joint position q, that is, S = ▽J. The Jacobian matrix J(q) of the robot is a function of the joint position q. The symbolic expression of the function S is obtained by calculus. The calculation method of the variable T is:

[0043]

[0044] Among them, the column vector u m ,v m (m = min, max) is determined by the singular column vectors corresponding to the matrices U and V obtained by the singular value decomposition of the Jacobian matrix J. The singular value decomposition form of the Jacobian matrix J is J = UΣV T , Σ is a matrix containing singular values.

[0045] Furthermore, the step of determining the control amount of the interactive control includes:

[0046] Based on the avoidance virtual force τ v And Jacobian matrix, calculate the avoidance virtual force mapping value f in Cartesian space v ,Right now Based on the external force f applied by the operator h Calculate the mapping value in the joint space as τ h =J T f h ;in,(·) T represents the matrix transpose, Represents the matrix pseudo-inverse operation;

[0047] Determine the interaction space and the interaction control method; wherein the interaction space includes joint space or Cartesian space, and the interaction control includes admittance control or impedance control; determine the expected impedance model according to the selected interaction space, and determine the control amount sent to the robot according to the interaction control method; specifically include:

[0048] If the Cartesian space is selected, interactive control is realized in the Cartesian space, and the expected impedance model in the Cartesian space is:

[0049]

[0050] Among them, M cd ,D cd , is the Cartesian space expected mass, damping, and stiffness coefficient matrix; x, is the motion position, velocity, and acceleration in Cartesian space; x d , It is the expected motion position, velocity, and acceleration in Cartesian space, which are set in advance by the task or planned online;

[0051] If Cartesian space admittance control is used, the speed reference value is calculated according to the impedance model And use the Jacobian matrix J of the current joint position q to determine the joint reference velocity Will control the speed Send to the robot position controller;

[0052] If Cartesian space impedance control is used, the Cartesian space control acceleration is calculated according to the impedance model:

[0053]

[0054] According to the feedback linearization, a torque control method is obtained, and the output control torque τ is:

[0055]

[0056] Among them, M x (q), G x (q), is the robot dynamics equation The mapping value of the joint quantity in Cartesian space;

[0057] The variables in the dynamic equations of the above robot are: is the inertia matrix, is the Coriolis force and centripetal force matrix, is the gravity term, is the joint friction torque, is the generalized force acting on the Cartesian space at the end. In the interactive control algorithm for avoiding singular configurations, f ext =f h ;

[0058] The variable expression in the Cartesian spatial impedance control based on feedback linearization is:

[0059]

[0060] If the joint space is selected and interactive control is realized in the joint space, the expected impedance model of the joint space is:

[0061]

[0062] Among them, M jd ,D jd , is the expected mass, damping, and stiffness coefficient matrix of the joint space; q, is the motion position, velocity and acceleration in the joint space; q d , The expected motion position, velocity, and acceleration of the joint space are set in advance by the task or planned online;

[0063] If joint space admittance control is used, the reference joint velocity is calculated based on the joint space expected impedance model Will control the speed Send to the robot position controller;

[0064] If joint space impedance control is adopted, the joint control acceleration value is calculated according to the joint space expected impedance model:

[0065]

[0066] According to a joint space impedance control obtained by feedback linearization, the output control torque τ is expressed as:

[0067]

[0068] Therefore, according to the interaction space and interaction control type, there are 4 different interaction control methods.

[0069] Furthermore, the determination of the avoidance virtual force based on the singular configuration evaluation index specifically includes:

[0070] Determine the virtual force of avoiding the singular configuration based on the singular configuration evaluation index;

[0071] Based on the current robot joint position, determine the size of the joint limit avoidance virtual force;

[0072] The virtual force of avoiding the singular configuration and the virtual force of avoiding the joint limit are obtained, and the virtual force of avoiding is obtained after superposition.

[0073] Furthermore, based on the current robot joint position, the step of determining the joint limit avoidance virtual force includes:

[0074] Determine the joint position q of the robot joint i i ;

[0075] If the joint position q of robot joint i i At the joint limit threshold If the joint limit avoidance virtual force is not applied, and are the lower limit threshold and upper limit threshold of joint i respectively;

[0076] If the robot joint position q i Enter or If the joint limit avoidance virtual force is applied in and They are the lower hard limit and upper hard limit of joint i respectively; specifically:

[0077] When the robot joint position q i Enter The virtual force of joint limit avoidance is

[0078]

[0079] When the robot joint position q i Enter The virtual force of joint limit avoidance is

[0080]

[0081] Among them, ρ>0 is the virtual force amplification coefficient of joint limit avoidance; function h f (x,y) is the barrier function, which can be selected as:

[0082] Inverse proportional barrier function or logarithmic barrier function;

[0083] Inverse proportional barrier function:

[0084] Logarithmic barrier function: h f (x,y)=ln(y)-ln(x).

[0085] In a second aspect, a robot avoidance interactive control system is provided, comprising:

[0086] The robot joint position acquisition module is used to obtain the current robot joint position;

[0087] A singular configuration judgment index calculation module is used to determine the robot singular configuration evaluation index based on the current robot joint position; wherein the singular configuration evaluation index simultaneously evaluates the robot's motion singularity and force singularity;

[0088] An avoidance virtual force generation module is used to determine the avoidance virtual force based on the singular configuration evaluation index;

[0089] An interaction selection module, used to select the interaction space and interaction control mode of the robot force interaction;

[0090] The interactive control quantity generation module is used to superimpose the avoidance virtual force with the force applied by the operator, and then determine the control quantity of the interactive control, that is, the control speed or control torque of the robot, according to the selected interactive space, interactive control method and the robot force interaction impedance model.

[0091] Furthermore, the avoidance virtual force generation module is used to determine the singular configuration avoidance virtual force based on the singular configuration evaluation index; determine the joint limit avoidance virtual force based on the current robot joint position; obtain the singular configuration avoidance virtual force and the joint limit avoidance virtual force, and obtain the avoidance virtual force after superposition.

[0092] According to a third aspect, an electronic device is provided, comprising a memory and a processor; wherein the memory stores a computer program, and when the program is executed by the processor, the above-mentioned robot interaction control method can be implemented.

[0093] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the robot interaction control method described in the claim is implemented.

[0094] The present invention has the following beneficial effects:

[0095] 1. The present invention realizes physical human-machine interaction by avoiding motion singularity and force singularity configurations, preventing the robot from having excessive joint speed and unstable control. The impact of the two singularity configurations on robot control is comprehensively considered, and virtual forces are used to cope with performance constraints. The interaction process is smooth and stable, avoiding the traditional method of using shutdown mode to cope with bad configurations and affecting the interaction experience;

[0096] 2. The present invention uses the inverse of the condition number of the Jacobian matrix as an evaluation index for singular configurations. It not only takes motion singularity into consideration to prevent the robot from losing its ability to move in a certain direction in Cartesian space when entering the vicinity of a motion singular configuration, causing excessive joint speed and unstable robot position tracking; it also takes force singular configurations into consideration. When the robot enters the vicinity of a force singular configuration, a relatively small force in Cartesian space will also generate a huge torque in joint space, causing the motor to vibrate and affecting the robot's control performance. The proposed algorithm can prevent the robot from entering a force singular configuration. Traditional singular evaluation indicators such as the minimum singular value of the Jacobian matrix and operability can only deal with motion singularity, while the proposed algorithm can comprehensively achieve the avoidance of force singularity and motion singular configurations.

[0097] 3. Furthermore, the present invention can prevent the robot from moving to the joint limit. The avoidance of the joint limit is achieved by avoiding the virtual force of the joint limit. When the joint position is close to the joint hard limit, the avoidance virtual force is infinite, which can avoid breaking through the joint hard limit and causing shutdown;

[0098] Fourth, the generation of virtual force in the present invention depends on the setting of the obstacle function. The generated virtual force is smooth and will not suddenly jump and discontinuously affect the interactive experience. The force is generated only when the index enters the avoidance threshold interval. When the performance is good, such as the singular index is greater than γ th , if the joint position does not exceed the limit threshold, no virtual force will be generated, thus avoiding interference with normal operation;

[0099] 5. The calculation of the direction of the virtual force for avoiding the singular configuration in the present invention is realized by using the gradient of the singular evaluation function γ(q), and the calculation of the gradient adopts an analytical form, which has a high solution effect, can meet the real-time calculation requirements, and avoids the low calculation efficiency caused by the numerical method;

[0100] 6. The interactive control algorithm of the present invention realizes the interactive control algorithm of joint space, Cartesian space, and impedance control for a total of four situations, avoiding joint limitations and singular configurations. Compared with the existing interactive control algorithm that can only realize the admittance control of Cartesian space, the proposed algorithm is more versatile and suitable for more interactive control occasions. BRIEF DESCRIPTION OF THE DRAWINGS

[0101] Figure 1 is a flowchart of the interactive control method of the present invention;

[0102] Figure 2 A display diagram of the robot singular configuration evaluation index of the present invention on a horizontal plane;

[0103] Figure 3 The flowchart of calculating the virtual force for avoiding the singular configuration of the present invention;

[0104] Figure 4It is a curve diagram of the evaluation index of the singular configuration and the size of the virtual force of the singular configuration avoidance;

[0105] Figure 5 It is a specific flow chart of the interactive control method for avoiding singular configurations and joint limitations of the robot in the present invention;

[0106] Figure 6 This is a flow chart of calculating the virtual force for joint limit avoidance according to the present invention;

[0107] Figure 7 It is the virtual force curve diagram of joint position and joint limit avoidance;

[0108] Figure 8 This is a Cartesian spatial admittance control block diagram of the present invention;

[0109] Fig. 9 This is a Cartesian spatial impedance control block diagram of the present invention;

[0110] Fig.10 This is a block diagram of the joint space admittance control of the present invention;

[0111] Fig.11 This is a block diagram of the joint space impedance control of the present invention;

[0112] Fig.12 It is a curve diagram of the interaction force between the singular configuration evaluation index and the operator when the singular configuration avoidance is in effect;

[0113] Fig.13 It is the curve diagram of joint position and operator interaction force when joint limit avoidance is in effect. DETAILED DESCRIPTION

[0114] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0115] Please refer to Figure 1 , the present invention is a robot interactive control method, which comprises:

[0116] Step S100: obtaining the current joint position of the robot;

[0117] Step S200: determining a robot singular configuration evaluation index based on the current joint position of the robot; wherein the singular configuration evaluation index simultaneously evaluates the robot's motion singularity and force singularity;

[0118] Step S300: obtaining an avoidance virtual force based on the singular configuration evaluation index;

[0119] Step S400: superimpose the avoidance virtual force and the force applied by the operator, and then determine the control amount of the interactive control, that is, the control speed or control torque of the robot, according to the selected interactive space, interactive control mode and the robot force interaction impedance model.

[0120] Specifically, the present invention quantitatively evaluates the distance of the current robot from the singular configuration by using the singular performance evaluation function, and further determines the avoidance virtual force using the singular configuration evaluation function; then the avoidance virtual force is superimposed on the actual force of the operator, and the human-machine interaction impedance equation is used to determine the final control speed or control torque. The present invention solves the problems of the robot approaching the singularity of motion, the excessive speed of the robot joint near the force singular configuration, and the control instability caused by external disturbances during the human-machine interaction process, thereby improving the fluency and stability of human-machine interaction.

[0121] The following are Figure 1 Each step in the following sections is described in detail.

[0122] In step S100, the current joint positions of the robot are obtained.

[0123] In this embodiment, the current robot joint position q can be obtained by converting the current robot motor encoder value into the connecting rod side position q.

[0124] In step S200, the robot singular configuration evaluation index is determined based on the current joint position of the robot; in the present invention, the inverse of the Jacobian matrix condition number is used as the singular configuration evaluation index; step S200 includes:

[0125] Step S210: Based on the current robot joint position q, the Jacobian matrix J(q) at the current position is calculated according to the Jacobian matrix calculation function. The matrix J(q) can describe the mapping relationship between the joint space motion and the Cartesian space velocity, and also the mapping relationship between the Cartesian space force and the joint space equivalent torque. Since the Jacobian matrix describes the joint velocity and Cartesian space translation velocity v lin and the angular velocity ω rot The relationship between the speed v lin With ω rot The dimensions of are different, so the Jacobian matrix J(q) can be expressed as In practical applications, we can consider the translational velocity v lin The associated Jacobian matrix J lin (q) or the angular velocity ω rot The associated Jacobian matrix J rot(q). The Jacobian matrix J is determined according to the position of the interaction force. If the interaction position is the end tool hand, the Jacobian matrix J is the tool hand Jacobian matrix; if the interaction position is the position of a certain connecting rod of the robot, the contact position is determined by "electronic skin" or visual positioning; in this implementation case, the interaction position is the end tool hand.

[0126] Step S220: According to the non-zero singular values ​​σ of the Jacobian matrix J(q) i Calculate the singular configuration evaluation index and determine the minimum non-zero singular value σ min and the largest singular value σ max The ratio of the Jacobian matrix J(q), that is, the inverse of the condition number of the Jacobian matrix J(q), is the singular configuration evaluation index, that is, γ(q) = σ min (J) / σ max (J), Jacobian matrix singular values ​​σ i The calculation of is determined by the singular value decomposition of the matrix J(q); the singular value decomposition expression of the m×n dimensional Jacobian matrix J is:

[0127] J=U∑V T (1)

[0128] in, is an orthogonal matrix, A rectangular diagonal matrix with singular values ​​on the diagonal. It is also an orthogonal matrix;

[0129] The non-zero diagonal elements σ of the matrix ∑ i You can determine σ max and σ min , when doing singular value decomposition, arrange the singular values ​​in descending order; the column vectors of matrices U and V They are called left singular vectors and right singular vectors respectively.

[0130] In this embodiment, when the program code is implemented, the C++ eigen library is used to implement the singular value decomposition, and the specific operations are as follows:

[0131] JacobiSVD<MatrixXf,ComputeThinU|ComputeThinV>svd(J);

[0132] U = svd.matrixU()

[0133] V = svd.matrixV()

[0134] ∑ = svdsingularValueS();

[0135] Using the robot joint position q and the above-mentioned index γ(q) for determining the current robot singular configuration, it can be determined whether the robot is near a singular configuration. Taking the rehabilitation robot Nurt as an example, the approximate distribution of the robot's singular configuration is analyzed. Figure 2 The numerical display of the configuration evaluation index γ(q) of the Nurt robot when the robot's Cartesian space motion is restricted to the horizontal plane. The worse the index (closer to 0), the darker the color; the better the singular configuration evaluation index γ(q), the lighter the color. Figure 2 It can be seen that when Nurt's movement approaches the outermost boundary, the elbow movement singularity of the 2nd and 3rd axes will appear, and the index γ(q) is poor, which is manifested as a faster joint movement speed; when Nurt moves to the base with load, force singularity occurs, the index γ(q) is poor, the robot joints are subjected to excessive force, the movement is no longer stable, and the loaded robotic arm is prone to shaking.

[0136] In step S300, the avoidance virtual force is determined based on the singular configuration evaluation index; in this embodiment, the magnitude and direction of the singular configuration avoidance virtual force are determined based on the singular configuration evaluation index, thereby obtaining the avoidance virtual force;

[0137] The flow chart of calculation of virtual force for avoiding singular configuration is as follows Figure 3 As shown, the singular configuration avoids the virtual force τ sin Expressed as:

[0138]

[0139] Specifically, in step S300, calculating the avoidance virtual force includes:

[0140] Step S310: Determine the singular configuration evaluation index γ(q) and the detection threshold γ th size;

[0141] If the singular configuration evaluation index γ(q) is less than a certain threshold γ th , then the obstacle function b(γ(q)) sets the size of the virtual force k according to the evaluation index γ(q) f , and determine the direction of the virtual force according to the gradient of the singular configuration evaluation index γ(q) f , due to the additional application of virtual force, the original movement of the robot is changed to prevent the singular evaluation index γ(q) from further deteriorating;

[0142] If the singular configuration evaluation index γ(q) is greater than or equal to the threshold γ th , the virtual force is 0, which does not interfere with the normal movement of the robot;

[0143] Specifically, in step S310, the magnitude k of the virtual force for avoiding the singular configuration is calculated.f The methods include:

[0144] According to the obstacle function b(γ(q)) and the amplification factor η, the magnitude of the virtual force to avoid the singular configuration is determined as:

[0145] k f =ηb(γ(q)) (3)

[0146] Among them, the barrier function is based on the singular configuration evaluation index γ(q), the detection threshold γ th and the critical value γ cr Determine; the barrier function is selected as:

[0147] 1) Inverse proportional barrier function:

[0148]

[0149] 2) Logarithmic barrier function:

[0150] b(γ(q))=-(ln(γ(q)-γ cr )-ln(γ th -γ cr )) (5)

[0151] In this embodiment, the parameter in the barrier function is set to γ cr =0,γ thr = 0.07, when the inverse proportional barrier function is used, the magnification factor η = 5, and when the logarithmic barrier function is used, the magnification factor η = 300. The curve of the singular configuration evaluation index γ(q) avoiding virtual force is shown in Figure 4 As shown, from Figure 4 As can be seen from the figure, when the configuration evaluation index deteriorates (close to 0), the size of the virtual force of the singular configuration avoidance increases rapidly. When the singular configuration evaluation index γ(q) is less than the preset threshold γ th , virtual force f sin It starts to grow larger, which will prevent the robot from continuing to move towards the bad configuration.

[0152] Specifically, in step S310, the direction d of the virtual force of the singular configuration avoidance is calculated. f The methods include:

[0153] The direction of the virtual force of the singular configuration avoidance is determined according to the gradient of the singular configuration evaluation index γ(q);

[0154] The gradient is calculated analytically as:

[0155]

[0156] Among them, S represents the gradient of the Jacobian matrix J(q) to the joint position q, that is, The Jacobian matrix J(q) of the robot is a function of the joint position q. The symbolic expression of the function S is obtained by calculus. The calculation method of the variable T is:

[0157]

[0158] Among them, the column vector u m ,v m (m=min, max) is determined by the singular column vectors corresponding to matrices U and V obtained by the singular value decomposition of the Jacobian matrix J in step S220. The singular value decomposition form of the Jacobian matrix J is J=UΣV T , Σ is a matrix containing singular values.

[0159] In another embodiment, the virtual force avoidance in step S300 further includes the virtual force avoidance by joint limit, see Figure 5 The joint limit avoidance virtual force and the singular configuration avoidance virtual force calculated in the above step S310 constitute the avoidance virtual force to realize the interactive control of the robot avoiding the singular configuration and the joint limit; therefore, step S300 includes the following steps:

[0160] Step S310: determining the magnitude and direction of the singular configuration avoidance virtual force based on the singular configuration evaluation index;

[0161] Step S320: determining the magnitude of the joint limit avoidance virtual force according to the joint limit and the current robot joint position;

[0162] Step S330: Add the singular configuration avoidance virtual force and the joint limit avoidance virtual force to obtain the avoidance virtual force.

[0163] There is no order of precedence for steps S310 and S320.

[0164] The flow chart of joint limit avoidance virtual force calculation is as follows Figure 6 As shown, step S320 includes:

[0165] Determine the joint position q of the robot joint i i ;

[0166] If the joint position q of robot joint i i At the joint limit threshold If the joint limit avoidance virtual force is not applied, and are the lower and upper limit thresholds of joint i, respectively, which are set to the values ​​of 5% and 95% of the joint movement, that is, in the interval The joint limit avoidance problem is not considered within the range. Indicates the range of motion of joint i;

[0167] If the robot joint position q i Enter or If the joint limit avoidance virtual force is applied in and They are the lower hard limit and upper hard limit of joint i respectively; specifically:

[0168] When the robot joint position q i Enter The virtual force of joint limit avoidance is

[0169]

[0170] When the robot joint position q i Enter The virtual force of joint limit avoidance is

[0171]

[0172] Among them, ρ>0 is the virtual force amplification coefficient of joint limit avoidance; function h f (x,y) is the barrier function, which can be selected as:

[0173] Inverse proportional barrier function or logarithmic barrier function; where,

[0174] Inverse proportional barrier function:

[0175] Logarithmic barrier function: h f (x,y)=ln(y)-ln(x);

[0176] In step S330, the singular configuration avoidance virtual force in step S310 is added to the joint limit avoidance virtual force in step S320 to obtain a total avoidance virtual force τ v =τ sin +τ jlim .

[0177] The virtual force curve of joint movement and joint limit avoidance is shown in the figure Figure 8 As shown in the figure, it can be seen that when the robot joint position is close to the joint limit, a joint limit avoidance virtual force will be generated. The closer the distance to the limit, the greater the avoidance virtual force. When the robot moves to the joint limit, the virtual avoidance force will tend to infinity, which can strictly ensure that the robot's joint movement does not exceed the joint limit.

[0178] The joint limit avoidance virtual force is determined by comparing the relationship between the current joint position and the joint limit and the joint limit threshold. The total avoidance virtual force is calculated based on the singular configuration avoidance virtual force and the joint limit avoidance virtual force, which avoids the robot from moving to the joint limit and solves the problem of the robot suddenly stopping when it reaches the joint limit.

[0179] In step S400, the avoidance virtual force in S300 is superimposed with the force applied by the operator, and then the control speed or control torque of the robot is determined according to the robot force interaction impedance model. According to the interaction space and interaction control type, there are a total of 4 different interaction control algorithms, and their control block diagrams are as follows: Figure 8-11 As shown; step S400 includes:

[0180] Step S410: Based on the avoidance virtual force τ v And Jacobian matrix, calculate the avoidance virtual force mapping value in Cartesian space, that is, in(·) T represents the matrix transpose, represents the matrix pseudo-inverse operation, f v =f sin +f jlim , f sin The equivalent singular configuration of Cartesian space avoids the virtual force, f jlim is the virtual force of the equivalent joint limit avoidance in Cartesian space, τ sin =J T f sin , τ jlim =J T f jlim ; Based on the external force f applied by the operator h Calculate the mapping value in the joint space as τ h =J T f h ; Step S420: Determine the interactive space and the interactive control method; wherein the interactive space includes the joint space or the Cartesian space, and the interactive control includes the admittance control or the impedance control; determine the expected impedance model according to the selected interactive space, and determine the control amount sent to the robot according to the interactive control method; specifically including:

[0181] Step S421: If the Cartesian space is selected, interactive control is implemented in the Cartesian space, and the Cartesian space expected impedance model is:

[0182]

[0183] Among them, M cd ,D cd , is the Cartesian space expected mass, damping, and stiffness coefficient matrix; x, is the motion position, velocity, and acceleration in Cartesian space; x d , It is the expected motion position, velocity, and acceleration in Cartesian space, which are set in advance by the task or planned online;

[0184] Step S421a: Refer to Figure 8 If Cartesian space admittance control is used, the speed reference value is calculated according to the impedance model And use the Jacobian matrix J of the current joint position q to determine the joint reference velocity Will control the speed Send to the robot position controller;

[0185] Step S421b: Refer to Fig. 9 , if Cartesian space impedance control is adopted, the Cartesian space control acceleration is calculated according to the impedance model:

[0186]

[0187] According to the feedback linearization, a torque control method is obtained, and the output control torque τ is:

[0188]

[0189] Among them, M x (q), G x (q), is the robot dynamics equation The mapping value of the joint quantity in Cartesian space;

[0190] The variables in the dynamic equations of the above robot are: is the inertia matrix, is the Coriolis force and centripetal force matrix, is the gravity term, is the joint friction torque, is the generalized force acting on the Cartesian space at the end. In the interactive control algorithm for avoiding singular configurations, f ext =f h +f v ;

[0191] The variable expression in the Cartesian spatial impedance control based on feedback linearization is:

[0192]

[0193] Step S422: If the joint space is selected, interactive control is implemented in the joint space, and the expected impedance model of the joint space is:

[0194]

[0195] Among them, M jd ,D jd , is the expected mass, damping, and stiffness coefficient matrix of the joint space; q, is the motion position, velocity and acceleration in the joint space; q d , The expected motion position, velocity, and acceleration of the joint space are usually set in advance by the task or planned online.

[0196] Step S422a: Refer to Fig.10 If joint space admittance control is adopted, the reference is calculated according to the joint space expected impedance model

[0197] Joint Speed Will control the speed Send to the robot position controller;

[0198] Step S422b: Refer to Fig.11 , if joint impedance control is adopted, the joint control acceleration value is calculated according to the joint space expected impedance model:

[0199]

[0200] According to a joint space impedance control obtained by feedback linearization, the output control torque τ is expressed as:

[0201]

[0202] If the robot moves with the operator's movement, some quantities are assigned 0 when designing the control speed or control torque: the expected movement is set to 0, that is, x=0(or q=0), the stiffness term is set to 0, that is, K cd =0(or K jd =0).

[0203] Therefore, according to the interaction space and interaction control type, there are 4 different interaction control methods.

[0204] This implementation case uses the Nurt robot as the object for admittance control in Cartesian space. The operator pulls the Nurt robot to move. Nurt has no preset trajectory, so the impedance equation for the interaction between the robot and the human is:

[0205]

[0206] In the present invention, according to the above steps S100 to S400, the avoidance of singular configurations and joint limits during interactive control is achieved. A 6-dimensional force sensor is installed on the end tool hand of the robot to measure the interactive force. Fig.12 This is a graph of joint position and force when the singular configuration avoidance function takes effect. When the robot approaches the singular configuration at 24 seconds, the singular configuration evaluation index is lower than the set threshold. The proposed interactive control algorithm generates a repulsive virtual force to prevent the operator from operating the robot arm to continue moving toward the bad configuration. The force applied by the operator on the robot also increases. Even if the operator applies a large external force, the robot cannot continue to move forward because the front is the direction of the deteriorating configuration. Fig.13 This is the curve of joint position and interaction force when the joint limit avoidance function takes effect. It can be seen from the figure that when the robot moves close to the joint limit, the proposed control algorithm generates an avoidance virtual force to prevent the robot from moving further to the boundary. When the operator tries to move the robot arm to the joint limit, the force applied by the operator will increase further, hindering the operator's movement intention and achieving avoidance of the joint limit.

[0207] The present invention also provides a robot interactive control system for implementing the interactive control method of steps S100-S400, wherein the interactive control system comprises:

[0208] The robot joint position acquisition module is used to obtain the current robot joint position;

[0209] A singular configuration judgment index calculation module is used to determine the robot singular configuration evaluation index based on the current robot joint position; wherein the singular configuration evaluation index simultaneously evaluates the robot's motion singularity and force singularity;

[0210] An avoidance virtual force generation module, used for determining the avoidance virtual force based on the singular configuration evaluation index;

[0211] An interaction selection module, used to select the interaction space and interaction control mode of the robot force interaction;

[0212] The interactive control quantity generation module superimposes the virtual avoidance force with the force applied by the operator, and then determines the control quantity of the interactive control, that is, the control speed or control torque of the robot, according to the selected interactive space, interactive control method and the robot force interaction impedance model.

[0213] In another embodiment, an avoidance virtual force generation module is used to determine a singular configuration avoidance virtual force based on a singular configuration evaluation index; determine a joint limit avoidance virtual force based on a current robot joint position; obtain the singular configuration avoidance virtual force and the joint limit avoidance virtual force, and obtain the avoidance virtual force after superposition.

[0214] The present invention also provides an electronic device, characterized in that it includes a memory and a processor; wherein the memory stores a computer program, and when the program is executed by the processor, the above-mentioned robot avoidance interactive control method can be implemented.

[0215] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned robot avoidance interactive control method when executed by a processor.

[0216] The parts not involved in the present invention are the same as the prior art or are implemented by using the prior art.

[0217] The above contents are further detailed descriptions of the present invention in combination with specific implementation methods, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A robot interactive control method, characterized in that: include Get the current robot joint position; Determining a robot singular configuration evaluation index based on the current joint position of the robot; wherein the singular configuration evaluation index simultaneously evaluates the robot's motion singularity and force singularity; Determine avoidance virtual forces based on singular configuration evaluation indicators; The virtual avoidance force is superimposed on the force applied by the operator, and then the control amount of the interactive control, i.e. the control speed or control torque of the robot, is determined according to the selected interactive space, interactive control mode and the robot force interaction impedance model; The steps of determining the avoidance virtual force based on the singular configuration evaluation index include: Evaluation index γ(q) and detection threshold γ for judging singular configuration th size; If the singular configuration evaluation index γ(q) is less than a certain threshold γ th , then the barrier function b(γ(q)) sets the magnitude of the virtual force k according to the singular configuration evaluation index γ(q) f , and determine the direction of the virtual force according to the gradient of the singular configuration evaluation index γ(q) f ; If the singular configuration evaluation index γ(q) is greater than or equal to the threshold γ th , the virtual force is 0, which does not interfere with the normal movement of the robot; The singular configuration avoids the virtual force τ sin Expressed as: Strange configuration avoids virtual force τ sin Constitute the virtual force of avoidance; Calculate the size k of the virtual force to avoid the singular configuration f The methods include: According to the obstacle function b(γ(q)) and the amplification factor η, the magnitude of the virtual force to avoid the singular configuration is determined as: k f =ηb(γ(q)) Among them, the barrier function is based on the singular configuration evaluation index γ(q), the detection threshold γ th and the critical value γ cr Determine; the barrier function is selected as: 1) Inverse proportional barrier function: 2) Logarithmic barrier function: b(γ(q))=-(ln(γ(q)-γ cr )-ln(γ th -c cr ))。 2. The robot interactive control method according to claim 1, characterized in that: The steps of determining the singular configuration evaluation index of the robot based on the current joint position of the robot include: Based on the current robot joint position q, calculate the Jacobian matrix J(q) at the current position; According to the non-zero singular values ​​σ of the Jacobian matrix J(q) i Calculate the singular configuration evaluation index and determine the minimum non-zero singular value σ min and the largest singular value σ max The ratio of the Jacobian matrix J(q), that is, the inverse of the condition number of the Jacobian matrix J(q), is the singular configuration evaluation index, that is, γ(q) = σ min (J) / σ max (J).

3. The robot interactive control method according to claim 1, characterized in that: Calculate the direction d of the virtual force to avoid the singular configuration f The methods include: The direction of the virtual force of the singular configuration avoidance is determined according to the gradient of the singular configuration evaluation index γ(q); The gradient is calculated analytically as: Among them, S represents the gradient of the Jacobian matrix J(q) to the joint position q, that is, The Jacobian matrix J(q) of the robot is a function of the joint position q. The symbolic expression of the function S is obtained by calculus. The calculation method of the variable T is: Among them, the column vector u m ,v m (m = min, max) is determined by the singular column vectors corresponding to the matrices U and V obtained by the singular value decomposition of the Jacobian matrix J. The singular value decomposition form of the Jacobian matrix J is J = U∑V T , ∑ is a matrix containing singular values.

4. The robot interactive control method according to claim 1, characterized in that: The steps for determining the amount of control for interactive control include: Based on the avoidance virtual force τ v And Jacobian matrix, calculate the avoidance virtual force mapping value f in Cartesian space v ,Right now Based on the external force f applied by the operator h Calculate the mapping value in the joint space as τ h =J T f h ; Among them, (`) T represents the matrix transpose, Represents the matrix pseudo-inverse operation; Determine the interaction space and the interaction control method; wherein the interaction space includes joint space or Cartesian space, and the interaction control includes admittance control or impedance control; determine the expected impedance model according to the selected interaction space, and determine the control amount sent to the robot according to the interaction control method; specifically include: If the Cartesian space is selected, interactive control is realized in the Cartesian space, and the expected impedance model in the Cartesian space is: in is the expected mass, damping, and stiffness coefficient matrix in Cartesian space; is the position, velocity, and acceleration of motion in Cartesian space; It is the expected motion position, velocity, and acceleration in Cartesian space, which are set in advance by the task or planned online; If Cartesian space admittance control is used, the speed reference value is calculated according to the impedance model And use the Jacobian matrix J of the current joint position q to determine the joint reference velocity Will control the speed Send to the robot position controller; If Cartesian space impedance control is used, the Cartesian space control acceleration is calculated according to the impedance model: According to the feedback linearization, a torque control method is obtained, and the output control torque τ is: in, is the robot dynamics equation The mapping value of the joint quantity in Cartesian space; The variables in the dynamic equations of the above robot are: is the inertia matrix, is the Coriolis force and centripetal force matrix, is the gravity term, is the joint friction torque, is the generalized force acting on the Cartesian space at the end. In the interactive control algorithm to avoid singular configurations, f ext =f h ; The variable expression in Cartesian spatial impedance control obtained by feedback linearization is: If the joint space is selected and interactive control is realized in the joint space, the expected impedance model of the joint space is: in, is the expected mass, damping, and stiffness coefficient matrix of the joint space; is the motion position, velocity, and acceleration in the joint space; The expected motion position, velocity, and acceleration of the joint space are set in advance by the task or planned online; If joint space admittance control is used, the reference joint velocity is calculated based on the joint space expected impedance model Will control the speed Send to the robot position controller; If joint space impedance control is adopted, the joint control acceleration value is calculated according to the joint space expected impedance model: According to a joint space impedance control obtained by feedback linearization, the output control torque τ is expressed as: Therefore, according to the interaction space and interaction control type, there are 4 different interaction control methods.

5. The robot interactive control method according to any one of claims 1 to 4, characterized in that: The step of determining the avoidance virtual force based on the singular configuration evaluation index specifically includes: Determine the virtual force of avoiding the singular configuration based on the singular configuration evaluation index; Based on the current robot joint position, determine the joint limit avoidance virtual force; The avoidance virtual force is obtained by superimposing the singular configuration avoidance virtual force and the joint limit avoidance virtual force.

6. The robot interactive control method according to claim 5, characterized in that: Based on the current robot joint positions, the steps of determining the joint limit avoidance virtual force include: Determine the joint position q of the robot joint i i ; If the joint position q of robot joint i i At the joint limit threshold If the joint limit avoidance virtual force is not applied, and are the lower limit threshold and upper limit threshold of joint i respectively; If the robot joint position q i Enter or If the joint limit avoidance virtual force is applied in and They are the lower hard limit and upper hard limit of joint i respectively; specifically: When the robot joint position q i Enter The virtual force of joint limit avoidance is When the robot joint position q i Enter The virtual force of joint limit avoidance is Among them, ρ>0 is the virtual force amplification coefficient of joint limit avoidance; function h f (x, y) is the barrier function, which can be selected as: inverse proportional barrier function or logarithmic barrier function; Inverse proportional barrier function: Logarithmic barrier function: h f (x,y)=ln(y)-ln(x).

7. An electronic device, characterized in that: including memory and processor; Wherein, the memory stores a computer program, and when the program is executed by the processor, the robot interactive control method according to any one of claims 1 to 6 can be implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the robot interactive control method according to any one of claims 1 to 6 is implemented.