Robot joint control method and device
By constructing a friction torque model and performing friction torque compensation, the problem of small application range of the robot joint torque control method is solved, accurate joint control under high frequency and large load conditions is achieved, impact force is reduced and control accuracy is improved.
Patent Information
- Application Number
- CN202210306868.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-03-25
AI Technical Summary
The robot joint torque control method in the existing technology has a small scope of application. Especially in legged robots that require high-frequency control, the torque sensor measurement frequency is difficult to meet the demand, and there are space and weight limitations for installing the torque sensor.
By constructing a friction torque model based on multiple sets of test data, input the target torque of the target joint and the motor speed, identify the friction torque, and calculate the motor control current to achieve friction torque compensation, thereby achieving accurate joint control.
When the reducer has a large deceleration ratio or a large joint load, it can accurately control joint motion, reduce impact force, and improve joint control accuracy and flexibility.
Smart Images

Figure CN114734437B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a robot joint control method and device. Background Art
[0002] Robots have broad application prospects in disaster relief, remote unmanned area operations, ground battlefield counter-terrorism and other dangerous environment operations. At present, most robots are using traditional position control. The robot control system calculates the target position of each joint as the control output, and each joint moves according to the pre-planned trajectory. When the end of the robot's foot contacts the ground, it will generate a large impact force.
[0003] In order to more accurately control the force applied to the robot joints and reduce the impact caused by collisions, torque control needs to be introduced. There are mainly the following modes of introducing torque control: force closed-loop feedback control through the motor's current closed loop, which is only applicable to the case where the reducer deceleration is relatively small; using a torque sensor to measure the force. For legged robots that require high-frequency control, the torque sensor's torque measurement frequency is difficult to meet the requirements, or due to installation space and weight limitations, it is not realistic to install a torque sensor torque on each joint. Summary of the invention
[0004] The present invention provides a robot joint control method and device, which are used to solve the defect that the method of controlling joints according to torque in the prior art has a small application range.
[0005] The present invention provides a robot joint control method, comprising:
[0006] The target torque and target motor speed of the target joint are input into the friction torque model of the target joint to obtain the identified friction torque of the target joint, wherein the friction torque model is constructed based on multiple groups of first test data, and each group of the first test data includes the test motor current, test load torque and test motor speed of the target joint; based on the identified friction torque and the target torque, the motor control current of the target joint is calculated.
[0007] According to a robot joint control method provided by the present invention, before inputting the target torque and target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, the method further includes:
[0008] Acquire multiple groups of the first test data corresponding to the target joint; for each group of the first test data, calculate the friction torque based on the test motor current and the test load torque; use the friction torque, the test load torque corresponding to the friction torque and the test motor speed as a group of second test data to obtain multiple groups of second test data; fit the multiple groups of second test data and the initial friction torque model to obtain the friction torque model of the target joint.
[0009] According to a robot joint control method provided by the present invention, the friction torque is:
[0010]
[0011] Among them, T f is the friction torque, k m is the test motor torque constant of the target joint, i is the test motor current, τ is the test load torque, and N is the reducer reduction ratio of the target joint.
[0012] According to a robot joint control method provided by the present invention, before inputting the target torque and target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, the method further includes:
[0013] Obtain the motor speed of the target joint after speed filtering; when the motor speeds of the first control cycle and the Xth control cycle of the target joint are both greater than or equal to the preset speed threshold, use the motor speed as the target motor speed; when the absolute values of the motor speeds of the first control cycle and the Xth control cycle of the target joint are both less than the preset speed threshold, set the direction of the motor speed to the direction of the target torque to obtain the target motor speed; when the motor speeds of the first control cycle and the Xth control cycle of the target joint are both less than or equal to the opposite of the preset speed threshold, use the motor speed as the target motor speed; wherein the first control cycle is the control cycle before the Xth control cycle, and X is a positive integer.
[0014] According to a robot joint control method provided by the present invention, the friction torque model of the target joint is:
[0015]
[0016] Among them, T f (v r ,τ ref ) is the identified friction torque, and the target motor speed v r is the actual speed of the motor, τ ref is the target torque, vs is the critical Stribeck speed, Among them, t s1 , t s2 , ..., t sm are the coefficients of the m-degree polynomial, Among them, t c1 , t c2 , ..., t cn is the coefficient of the n-order polynomial, σ|v r | is the viscous friction torque.
[0017] According to a robot joint control method provided by the present invention, the motor control current of the target joint is:
[0018]
[0019] Among them, i ref is the motor control current, N is the speed reducer ratio of the target joint, k m is the motor torque constant of the target joint, τ ref is the target torque, T f This is the identification of the friction torque.
[0020] According to a robot joint control method provided by the present invention, before inputting the target torque and target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, the method further includes:
[0021] A planning control instruction is obtained, where the planning control instruction is a target position or the target torque; when the planning control instruction is a target position, the target position is converted into the target torque.
[0022] According to a robot joint control method provided by the present invention, when the planned control instruction is a target position, the target torque is:
[0023]
[0024] Among them, τ ref is the target torque, T is the control period of the target joint, k p is the proportionality constant, k i T is the integration constant, is the differential constant, e(k)=P ref (k)-P act (k), where P ref (k) is the target position of the kth control cycle, P act (k) is the actual position of the kth control cycle.
[0025] The present invention also provides a robot joint control device, comprising:
[0026] An input module is used to input the target torque and target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, wherein the friction torque model is constructed based on multiple groups of first test data, and each group of the first test data includes the test motor current, test load torque and test motor speed of the target joint; a first calculation module is used to calculate the motor control current of the target joint based on the identified friction torque and the target torque.
[0027] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-described robot joint control methods is implemented.
[0028] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the robot joint control method as described above is implemented.
[0029] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the robot joint control method as described above is implemented.
[0030] The robot joint control method and device provided by the present invention pre-constructs a friction torque model about the relationship between the target motor speed, the target torque and the identification friction torque through multiple groups of first test data of the target joint, and can obtain accurate identification friction torque. Based on the identification friction torque and the target torque, the motor control current of the target joint is calculated, the friction torque compensation of the target joint is achieved, and then the accurate motor control current of the target joint is obtained. After the friction torque compensation, it will be more conducive to the target joint to move in the direction of the target torque, and the target joint can be accurately controlled. And this method can be applied when the speed reducer in the joint is relatively large, it is impossible to install a torque sensor for the joint, or the joint load is large. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 is a flow chart of a robot joint control method provided by an embodiment of the present invention;
[0033] Figure 2 is a schematic diagram of a test platform provided by an embodiment of the present invention;
[0034] Figure 3 is a relationship curve between the friction torque and the test motor speed provided by an embodiment of the present invention;
[0035] Figure 4 is a relationship curve between the friction torque and the test load torque provided by an embodiment of the present invention;
[0036] Figure 5 One of the schematic diagrams of comparative test results provided by an embodiment of the present invention;
[0037] Figure 6 The second schematic diagram of comparative test results provided by an embodiment of the present invention;
[0038] Figure 7 is a schematic structural diagram of a robot joint control device provided by an embodiment of the present invention;
[0039] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] The robot joint control method and device provided by the embodiments of the present invention are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0042] Figure 1 is a flow chart of a robot joint control method provided by an embodiment of the present invention, such as Figure 1 As shown, including:
[0043] Step 110, inputting the target torque and target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, wherein the friction torque model is constructed based on multiple groups of first test data, each group of the first test data includes the test motor current, test load torque and test motor speed of the target joint;
[0044] Specifically, when the robot is in online operation, the structure of the controller can be divided into an upper-layer motion planner and a lower-layer joint state tracker. The embodiment of the present invention mainly describes the lower-layer joint state tracker.
[0045] The upper-level motion planner estimates the body state based on the observation data of each joint and body sensor, and combines it with the expected action trajectory to generate planning control instructions and send them to the joint state tracker of each joint, so that the robot can complete stable walking.
[0046] The target torque described in the embodiment of the present invention is a planning control instruction sent by the upper-level motion planner to the target joint.
[0047] Optionally, the target motor speed described in the embodiment of the present invention may be the actual speed of the motor in the target joint, or may be obtained by processing the actual speed of the motor in the target joint. The multiple sets of first test data may be measured by the constructed test platform, or may be obtained by historical data.
[0048] Specifically, Figure 2 is a schematic diagram of a test platform provided by an embodiment of the present invention, such as Figure 2 As shown, it includes an integrated joint, an input end bearing, a torque sensor, an output end bearing and a load. Among them, the integrated joint and the target joint are exactly the same. The integrated joint includes a drive control board, a relative encoder, a test motor, a reducer and an absolute encoder. The load includes a drive control board, an encoder, a load reducer and a load motor. The load plays a role in adjusting the speed of the test motor or adjusting the test load torque. Perform the following operations through the test platform:
[0049] a) Set the current of the test motor to i1, and set the speed of the load motor to v1, v2, ..., v p , and after the speed of the test motor is stable, the test motor current i, the test motor speed v, and the torque τ measured by the torque sensor are collected as the test load torque;
[0050] b) Set the current of the test motor to i2, i3, ..., i q , repeat the above steps to obtain multiple groups of first test data, each group of the first test data tests the motor current, the load torque and the motor speed;
[0051] Among them, the speed v1, v2, ..., v p , current i1,i2,...,i qIt is necessary to traverse the working space range of the integrated joint, that is, the working space range of the target joint, including the positive and negative directions. The method to determine the positive direction is: make a fist with your right hand, hold the motor shaft, and point the thumb to the output end of the joint. Then the direction of the bent four fingers is the positive direction of the speed and torque.
[0052] Step 120: Calculate the motor control current of the target joint based on the identified friction torque and the target torque.
[0053] Specifically, according to the planning control instructions sent by the upper-level motion planner to the target joint and the identified friction torque of the target joint, the motor control current is output to the motor of the target joint to complete the follow-up control of the upper-level motion planner.
[0054] Optionally, the motor control current of the target joint is:
[0055]
[0056] Among them, i ref is the motor control current, N is the speed reducer ratio of the target joint, k m is the motor torque constant of the target joint, τ ref is the target torque, T f This is the identification of the friction torque.
[0057] In addition, when the joint load is large, because the required torque is large, the reduction ratio of the reducer is large, the friction force also accounts for a correspondingly large proportion, and the friction torque is difficult to be ignored.
[0058] In an embodiment of the present invention, a friction torque model about the relationship between the target motor speed, the target torque and the identification friction torque is pre-constructed through multiple groups of first test data of the target joint, and an accurate identification friction torque can be obtained. Based on the identification friction torque and the target torque, the motor control current of the target joint is calculated, and the friction torque compensation of the target joint is achieved, and then the accurate motor control current of the target joint is obtained. After the friction torque compensation, it will be more conducive to the movement of the target joint in the direction of the target torque, and the accurate control of the target joint is achieved. And this method can be applied in the case where the speed reducer in the joint is relatively large, the torque sensor cannot be installed for the joint, or the joint load is large.
[0059] Optionally, before inputting the target torque and the target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, the method further includes:
[0060] Acquire multiple groups of the first test data corresponding to the target joint;
[0061] For each set of first test data, calculating the friction torque based on the test motor current and the test load torque;
[0062] Taking the friction torque, the test load torque corresponding to the friction torque and the test motor speed as a set of second test data, to obtain multiple sets of second test data;
[0063] The plurality of groups of second test data are fitted to the initial friction torque model to obtain the friction torque model.
[0064] Specifically, the friction torque is:
[0065]
[0066] Among them, T f is the friction torque, k m is the test motor torque constant of the target joint, i is the test motor current, τ is the test load torque, and N is the reducer reduction ratio of the target joint.
[0067] Optionally, the first test data of the plurality of groups is based on Figure 2 The test platform diagram is obtained, then k in the above expression m is the test motor torque constant of the integrated joint, i is the test motor current of the integrated joint, τ is the test load torque of the integrated joint, and N is the reduction ratio of the reducer of the integrated joint. Friction torque T f It mainly includes the friction of the input-end bearing and the friction generated by the meshing of the reducer gears in the integrated joint. The friction of the output-end bearing can be ignored.
[0068] Optionally, the fitting of multiple sets of second test data and the initial friction torque model described in the embodiment of the present invention can be implemented using a fitting toolbox in matlab, specifically using c++, python, other programming languages or mathematical toolboxes to implement the fitting, which is not specifically limited in the embodiment of the present invention. Inputting multiple sets of second test data and the initial friction torque model can directly perform fitting to obtain the parameters required in the initial friction torque model, and substituting the corresponding parameters into the initial friction torque model is the corresponding friction torque model.
[0069] Optionally, the friction torque model of the target joint is:
[0070]
[0071] Among them, T f (v r ,τ ref ) is the identified friction torque, and the target motor speed v r is the actual speed of the motor, τref is the target torque, v s is the critical Stribeck speed, Among them, t s1 , t s2 , ..., t sm are the coefficients of the m-degree polynomial, Among them, t c1 , t c2 , ..., t cn is the coefficient of the n-order polynomial, σ|v r | is the viscous friction torque.
[0072] Specifically, the friction torque model of the target joint is obtained according to the initial friction torque model, that is, the friction torque of the second test data is substituted into T f (v r ,τ ref ), the test load torque is introduced into τ ref , test the motor speed into v r Fitting is performed to obtain the polynomial coefficient t s1 , t s2 , ..., t sm , polynomial coefficient t c1 , t c2 , ..., t cn and v s The specific value of σ|v r |process.
[0073] Optionally, m=2, n=2 may be set, and a quadratic polynomial pair may be used for fitting.
[0074] T s (τ ref )·sign(v r ) represents the static friction torque term, which is the target torque τ of the target joint ref Function of T c (τ ref )·sign(v r ) represents the Coulomb friction torque term, which is the target torque τ of the target joint ref This friction torque model takes into account the influence of load torque on joint friction. Previous friction torque models often only consider its motor speed dependence.
[0075] Furthermore, the initial friction torque model of each joint is the same, but the test platforms are different, the test data obtained are different, and the polynomial coefficients t obtained by fitting are s1 , t s2 , ..., t sm , polynomial coefficient t c1 , t c2, ..., t cn and v s The specific values of σ|v are different, and r |Different, that is, the friction torque model of each joint is different.
[0076] Figure 3 is a curve showing the relationship between the friction torque and the test motor speed provided by the embodiment of the present invention, such as Figure 3 As shown, based on Figure 2 The relationship curve obtained from the first test data of the test platform is obtained by taking three different values of the test load torque to obtain the corresponding three coordinate schematic diagrams. The test load torque in each coordinate is fixed, the horizontal axis is the test motor speed, and the vertical axis is the torque. f represents the friction torque, T s represents the static friction torque term, T c represents the Coulomb friction torque term. As the test motor speed increases, The static friction torque gradually decreases to the Coulomb friction torque. σv represents the viscous friction torque term, which is proportional to the test motor speed. The final friction torque T is obtained by adding the two terms. f Curve. Figure 3 It can be seen that the static friction torque term T s and the Coulomb friction torque term T c When the test load torque is different, the value is different.
[0077] Figure 4 is a relationship curve between the friction torque and the test load torque provided by the embodiment of the present invention, such as Figure 4 As shown, based on Figure 2 The relationship curve is obtained from the first test data of the test platform, the horizontal axis is the test load torque, the vertical axis is the friction torque, and the two curves in the figure are respectively the cases where the test motor speed is positive and the test motor speed is negative.
[0078] In this embodiment, the second test data is obtained by acquiring the first test data of the target joint, and the second test data is fit to the initial friction torque model. The obtained friction torque model takes into account the motor speed and friction torque at the same time, making the friction torque model of the target joint more accurate, which is conducive to achieving accurate control of the target joint.
[0079] Optionally, before inputting the target torque and the target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, the method further includes:
[0080] Obtaining the motor speed of the target joint after speed filtering;
[0081] When the motor speeds of the first control cycle and the Xth control cycle of the target joint are both greater than or equal to a preset speed threshold, the motor speed is used as the target motor speed;
[0082] When the absolute values of the motor speeds of the first control period and the Xth control period of the target joint are both less than the preset speed threshold, setting the direction of the motor speed to the direction of the target torque to obtain the target motor speed;
[0083] When the motor speeds of the first control cycle and the Xth control cycle of the target joint are both less than or equal to the inverse of the preset speed threshold, the motor speed is used as the target motor speed;
[0084] The first control period is the control period before the Xth control period, where X is a positive integer.
[0085] Specifically, the motor speed of the target joint may fluctuate greatly around 0, which will cause the positive and negative jumps in the identified friction torque, and may cause the motor control current of the target joint to jitter. This situation can be alleviated after filtering, but there will still be fluctuations around 0.
[0086] In order to prevent the motor control current of the target joint from jittering, the motor speed of the target joint is multiplied by a sign function to obtain the target motor speed of the target joint:
[0087]
[0088] Among them, v0 is the motor speed of the target joint, which is the actual motor speed, ω0 is the preset speed threshold, and ω0 is a value close to 0.
[0089] When the absolute value of the motor speed v0 of the target joint is large and the speed is not near zero, the target motor speed v r Keep the same sign as the motor speed v0 of the target joint, which means that the friction torque T is identified. f (v r ,τ ref ) direction and target motor speed v r in the opposite direction.
[0090] When the motor speed v0 of the target joint is near zero, it means that the target joint is almost at rest. In order to achieve smooth control of the target joint, the motor control current of the target joint should facilitate the joint to move in the direction of the target torque. The target motor speed v r Direction and target torque τ ref The direction is the same, and the calculated identification friction torque T f (v r ,τref ) direction is the same as the target torque τ ref In opposite direction.
[0091] More specifically, when it is detected that the motor speed v0 of a certain control cycle of the target joint satisfies different conditions from the previous ones, namely, v0≥ω0, |v0|<ω0, v0≤-ω0, the method for determining the corresponding target motor speed will not be switched immediately. Instead, it will be switched to the corresponding target motor speed confirmation method only when it is detected that the motor speed v0 still satisfies the same conditions after multiple control cycles.
[0092] For example, the previous motor speed v0 satisfies v0 ≥ ω0, using v r =v0 determination method, if it is detected that the motor speed v0 of the first control cycle immediately following satisfies |v0|<ω0, then v will not be used r =|v0|·sign(τ ref ) is not determined by the method, but continues to use v r =v0 is determined by the method that only when |v0|<ω0 is satisfied in the Xth control cycle after multiple control cycles, v is adopted in the Xth control cycle. r =|v0|·sign(τ ref ) is determined by
[0093] Optionally, identify the friction torque T f (v r , τ ref ) direction and target motor speed v r The direction is opposite, discontinuous at v = 0, and the friction torque T is identified. f (v r , τ ref )The left and right limits are:
[0094]
[0095]
[0096] In an embodiment of the present invention, the motor speed of the target joint is first filtered to obtain the filtered motor speed, and then the motor speed is sign processed to obtain the target motor speed. This can greatly reduce the jitter phenomenon of the motor control current of the target joint, thereby improving the joint flexibility and adaptability to unknown interference.
[0097] Optionally, before inputting the target torque and the target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, the method further includes:
[0098] Acquire a planning control instruction, where the planning control instruction is a target position or the target torque;
[0099] When the planned control instruction is a target position, the target position is converted into the target torque.
[0100] Specifically, each joint receives a planned control instruction as a target position or a target torque. If the planned control instruction is a target position, a PID controller needs to be added to convert the target position into a target torque:
[0101]
[0102] Among them, τ ref is the target torque, T is the control period of the target joint, k p is the proportionality constant, k i T is the integration constant, is the differential constant, e(k)=P ref (k)-P act (k), where P ref (k) is the target position of the kth control cycle, P act (k) is the actual position of the kth control cycle.
[0103] Specifically, the proportional term k p e(k) can effectively follow the control target, and the integral term Can eliminate steady-state errors, differential terms Can effectively reduce the overshoot trend.
[0104] In the embodiment of the present invention, no matter whether the planned control instruction is the target position or the target torque, the motor control current of the target joint can be obtained by subsequent calculation. When the target position is converted into the target torque, it can effectively follow the control target, eliminate the steady-state error and reduce the overshoot trend, obtain the accurate target torque, and realize the accurate control of the target joint.
[0105] Figure 5 One of the schematic diagrams of comparative test results provided by the embodiment of the present invention is as follows: Figure 5 As shown, based on Figure 2 The test platform tests the joint state tracker at the lower level. The dotted line (the uppermost line) represents the target torque of the target joint, the dotted line (the lowermost line) is the actual output torque without friction compensation, and the solid line (the line in the middle) is the actual output torque obtained by compensating with the one-dimensional friction model. The joint torque tracking based on the friction torque model that only considers the motor speed has a certain effect, but there is still a certain gap from the target torque.
[0106] Figure 6 The second schematic diagram of the comparative test results provided by the embodiment of the present invention is as follows: Figure 6 As shown, based on Figure 2 The test platform is used to test the joint state tracker at the lower layer. The dotted line in the figure represents the target torque of the target joint, the dotted line (the line at the bottom) is the actual output torque without friction compensation, and the solid line is the actual output torque obtained by using the identified friction torque model of the embodiment of the present invention to compensate. It can be seen that the identified friction torque model of the embodiment of the present invention has a good tracking effect on the target torque.
[0107] The robot joint control device provided by the present invention is described below. The robot joint control device described below and the robot joint control method described above can be referenced to each other.
[0108] Figure 7 is a schematic diagram of the structure of a robot joint control device provided by an embodiment of the present invention. Figure 7 As shown, it includes an input module 710 and a first calculation module 720; wherein, the input module 710 is used to input the target torque and target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, wherein the friction torque model is constructed based on multiple groups of first test data, and each group of the first test data includes the test motor current, test load torque and test motor speed of the target joint; the first calculation module 720 is used to calculate the motor control current of the target joint based on the identified friction torque and the target torque.
[0109] Optionally, the device further comprises:
[0110] A first acquisition module, used for acquiring a plurality of groups of the first test data corresponding to the target joint;
[0111] A second calculation module, configured to calculate the friction torque based on the test motor current and the test load torque for each set of first test data;
[0112] A fitting module is used to take the friction torque, the test load torque corresponding to the friction torque and the test motor speed as a set of second test data to obtain multiple sets of second test data; fit the multiple sets of second test data and the initial friction torque model to obtain the friction torque model of the target joint.
[0113] Optionally, the friction torque is:
[0114]
[0115] Among them, T f is the friction torque, km is the test motor torque constant of the target joint, i is the test motor current, τ is the test load torque, and N is the reducer reduction ratio of the target joint.
[0116] Optionally, the device further comprises:
[0117] A second acquisition module is used to acquire the motor speed of the target joint after speed filtering;
[0118] The third acquisition module is used to use the motor speed as the target motor speed when the motor speeds of the first control cycle and the Xth control cycle of the target joint are both greater than or equal to the preset speed threshold; when the absolute values of the motor speeds of the first control cycle and the Xth control cycle of the target joint are both less than the preset speed threshold, set the direction of the motor speed to the direction of the target torque to obtain the target motor speed; when the motor speeds of the first control cycle and the Xth control cycle of the target joint are both less than or equal to the opposite of the preset speed threshold, use the motor speed as the target motor speed; wherein the first control cycle is the control cycle before the Xth control cycle, and X is a positive integer.
[0119] Optionally, the friction torque model of the target joint is:
[0120]
[0121] Among them, T f (v r ,τ ref ) is the identified friction torque, and the target motor speed v r is the actual speed of the motor, τ ref is the target torque, v s is the critical Stribeck speed, Among them, t s1 , t s2 , ..., t sm are the coefficients of the m-degree polynomial, Among them, t c1 , t c2 , ..., t cn is the coefficient of the n-order polynomial, σ|v r | is the viscous friction torque.
[0122] Optionally, the device further comprises:
[0123] A fourth acquisition module is used to acquire a planning control instruction, where the planning control instruction is a target position or the target torque;
[0124] The conversion module is used to convert the target position into the target torque when the planned control instruction is the target position.
[0125] Optionally, when the planned control instruction is a target position, the target torque is:
[0126]
[0127] Among them, τ ref is the target torque, T is the control period of the target joint, k p is the proportionality constant, k i T is the integration constant, is the differential constant, e(k)=P ref (k)-P act (k), where P ref (k) is the target position of the kth control cycle, P act (k) is the actual position of the kth control cycle.
[0128] In an embodiment of the present invention, a friction torque model about the relationship between the target motor speed, the target torque and the identified friction torque is pre-constructed through multiple groups of first test data of the target joint, and an accurate identification friction torque can be obtained. Based on the identification friction torque and the target torque, the motor control current of the target joint is calculated, the friction torque compensation of the target joint is achieved, and then the accurate motor control current of the target joint is obtained. After the friction torque compensation, it will be more conducive to the movement of the target joint in the direction of the target torque, and the accurate control of the target joint is achieved. And this method can be applied in the case where the speed reducer in the joint is relatively large, the torque sensor cannot be installed for the joint, or the joint load is large.
[0129] Figure 8 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 8As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the robot joint control method, the method comprising: inputting the target torque and the target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, wherein the friction torque model is constructed based on multiple groups of first test data, each group of the first test data includes the test motor current, the test load torque and the test motor speed of the target joint; based on the identified friction torque and the target torque, the motor control current of the target joint is calculated.
[0130] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0131] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the robot joint control method provided by the above-mentioned methods, and the method includes: inputting the target torque and target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, wherein the friction torque model is constructed based on multiple groups of first test data, and each group of the first test data includes the test motor current, test load torque and test motor speed of the target joint; based on the identified friction torque and the target torque, the motor control current of the target joint is calculated.
[0132] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the robot joint control method provided by the above-mentioned methods, the method comprising: inputting the target torque and target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, wherein the friction torque model is constructed based on multiple groups of first test data, each group of the first test data includes the test motor current, test load torque and test motor speed of the target joint; based on the identified friction torque and the target torque, the motor control current of the target joint is calculated.
[0133] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0134] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A robot joint control method, characterized in that: include: Inputting the target torque and target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, wherein the friction torque model is constructed based on multiple groups of first test data, each group of the first test data includes the test motor current, test load torque and test motor speed of the target joint; Based on the identified friction torque and the target torque, a motor control current of the target joint is calculated; Wherein, before inputting the target torque and the target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, the method further includes: Obtaining the motor speed of the target joint after speed filtering; When the motor speeds of the first control cycle and the Xth control cycle of the target joint are both greater than or equal to a preset speed threshold, the motor speed is used as the target motor speed; When the absolute values of the motor speeds of the first control period and the Xth control period of the target joint are both less than the preset speed threshold, setting the direction of the motor speed to the direction of the target torque to obtain the target motor speed; When the motor speeds of the first control cycle and the Xth control cycle of the target joint are both less than or equal to the inverse of the preset speed threshold, the motor speed is used as the target motor speed; The first control period is the control period before the Xth control period, where X is a positive integer.
2. The robot joint control method according to claim 1, characterized in that: Before inputting the target torque and the target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, the method further includes: Acquire multiple groups of the first test data corresponding to the target joint; For each set of first test data, calculating the friction torque based on the test motor current and the test load torque; Taking the friction torque, the test load torque corresponding to the friction torque and the test motor speed as a set of second test data, to obtain multiple sets of second test data; The multiple groups of second test data are fitted to the initial friction torque model to obtain the friction torque model of the target joint.
3. The robot joint control method according to claim 2, characterized in that: The friction torque is: Among them, T f is the friction torque, k m is the test motor torque constant of the target joint, i is the test motor current, τ is the test load torque, and N is the reducer reduction ratio of the target joint.
4. The robot joint control method according to claim 1, characterized in that: The friction torque model of the target joint is: Among them, T f (v r ,τ ref ) is the identified friction torque, and the target motor speed v r is the actual speed of the motor, τ ref is the target torque, v s is the critical Stribeck speed, Among them, t s1 , t s2 , ..., t sm are the coefficients of the m-degree polynomial, Among them, t c1 , t c2 , ..., t cn is the coefficient of the n-order polynomial, σ|v r | is the viscous friction torque.
5. The robot joint control method according to claim 1, characterized in that: The motor control current of the target joint is: Among them, i ref is the motor control current, N is the speed reducer ratio of the target joint, k m is the motor torque constant of the target joint, τ ref is the target torque, T f This is the identification of the friction torque.
6. The robot joint control method according to claim 1, characterized in that: Before inputting the target torque and the target motor speed of the target joint into the friction torque model of the target joint to obtain the identified friction torque of the target joint, the method further includes: Acquire a planning control instruction, where the planning control instruction is a target position or the target torque; When the planned control instruction is a target position, the target position is converted into the target torque.
7. The robot joint control method according to claim 6, characterized in that: When the planned control instruction is a target position, the target torque is: Among them, τ ref is the target torque, T is the control period of the target joint, k p is the proportionality constant, k i T is the integration constant, is the differential constant, e(k)=P ref (k)-P act (k), where P ref (k) is the target position of the kth control cycle, P act (k) is the actual position of the kth control cycle.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the robot joint control method according to any one of claims 1 to 7 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the robot joint control method according to any one of claims 1 to 7 is implemented.
