Robot control method, device, storage medium and equipment

By calculating the preset control parameters and motion data of the robot, and combining the damping torque and the assist torque for motion control, the problem of stability and uncontrollable resistance of the rehabilitation robot in the active mode is solved, and precise assistance and flexible assistance to the patient's movement are achieved. , improving the effect of rehabilitation training.

CN114967451BActive Publication Date: 2024-10-29SHANGHAI ZHUODAO MEDICAL TECH CO LTD
View PDF 20 Cites 0 Cited by

Patent Information

Application Number
CN202210571437.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-24
Publication Date
2024-10-29
Estimated Expiration
2042-05-24

AI Technical Summary

Technical Problem

Existing rehabilitation robot end effectors have problems such as unstable stopping position, constant acceleration/deceleration and uncontrollable resistance in active mode, and cannot effectively assist patients in flexible and safe rehabilitation training.

Method used

By obtaining the preset control parameters and initial motion data of the target robot, the inertia parameters and inertia coefficients are calculated, and the damping torque and assist torque are combined for motion control to achieve precise motion of the robot, and the resistance is dynamically adjusted according to the patient's movement intentions and training scenarios. size, providing flexible assistance.

Benefits of technology

It achieves the accuracy and stability of robot movement, can assist patients in effective rehabilitation training based on preset parameters and movement data, and solves the problems of unstable robot control and uncontrollable parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114967451B_ABST
    Figure CN114967451B_ABST
Patent Text Reader

Abstract

The present invention discloses a robot control method, device, storage medium and equipment. The method includes: obtaining preset control parameters and initial motion data of a target robot, wherein the preset control parameters include at least passive speed, preset resistance and preset power, and the initial motion data include at least current motion data and historical motion data; calculating inertia parameters based on preset resistance and passive speed, and correcting inertia parameters according to historical motion data and current motion data to determine inertia coefficient; calculating and processing the preset control parameters and inertia coefficient to obtain target motion data, wherein the target motion data includes at least one of the following: target speed, damping torque and / or power torque; controlling the target robot to move according to the target speed combined with damping torque or power torque. The present invention solves the technical problems in the prior art that some parameters in the robot control method are uncontrollable and the robot control is unstable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous development of science and technology, many rehabilitation robots have been developed in the field of medical device technology to help patients with rehabilitation training. However, the active mode of the existing rehabilitation robot end effector is accompanied by a series of side effects, such as unstable end effector stop position, constant acceleration / deceleration, and uncontrollable resistance.

[0003] Existing rehabilitation robots are unable to establish motion control strategies suitable for rehabilitation training scenarios, cannot adapt to the patient's limb movement intentions, and cannot provide flexible and safe assistance when the patient needs assistance.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] Embodiments of the present invention provide a robot control method, apparatus, storage medium and device to at least solve the technical problems in the prior art that some parameters of the robot control method are uncontrollable and the robot control is unstable.

[0006] According to one aspect of an embodiment of the present invention, a robot control method is provided, comprising: obtaining preset control parameters and initial motion data of a target robot, wherein the preset control parameters are set in a preset order, the preset control parameters at least include: passive speed, preset resistance, preset assist, and the initial motion data at least include: current motion data and historical motion data; calculating inertia parameters based on the preset resistance and the passive speed, and correcting the inertia parameters according to the historical motion data and the current motion data to determine the inertia coefficient; calculating and processing the preset control parameters and the inertia coefficient to obtain target motion data, wherein the target motion data at least includes one of the following: target speed, damping torque and / or assist torque; controlling the target robot to move according to the target speed combined with the damping torque or the assist torque.

[0007] Optionally, the above-mentioned preset control parameters, the above-mentioned historical motion data and the above-mentioned current motion data are calculated and processed to obtain target motion data, including: multiplying the above-mentioned current motion data and the above-mentioned historical motion data to obtain change of direction motion data; determining the above-mentioned target motion data based on the above-mentioned change of direction motion data, the above-mentioned preset control parameters and the current motion data.

[0008] Optionally, the target motion data is determined based on the change of direction motion data, the preset control parameters and the current motion data, including at least one of the following: if the change of direction motion data is greater than zero, the target motion data is determined based on the calculation result of the preset control parameters and the current motion data; if the change of direction motion data is less than zero, the passive speed of the target robot is set to zero.

[0009] Optionally, the above-mentioned method of correcting the above-mentioned inertia parameters according to the above-mentioned historical motion data and the above-mentioned current motion data to determine the inertia coefficient includes: obtaining the historical torque in the above-mentioned historical motion data and the input torque in the above-mentioned current motion data; calculating and processing the above-mentioned historical torque and the above-mentioned input torque according to a preset proportional coefficient algorithm to obtain a scaling coefficient; and determining the above-mentioned inertia coefficient based on the above-mentioned scaling coefficient and the above-mentioned inertia parameters.

[0010] Optionally, the preset control parameters and the inertia coefficient are calculated and processed to obtain target motion data, including: calculating the sum of the preset assist force and the input force in the current motion data to obtain the input resultant force; determining the target speed based on the magnitude relationship between the input resultant force and the preset resistance; determining the damping torque and / or the assist torque based on the magnitude relationship between the target speed and a preset speed threshold; and using the target speed and the damping torque and / or the assist torque as the target motion data.

[0011] Optionally, the above-mentioned determination of the damping torque and / or the above-mentioned assisting torque based on the magnitude relationship between the above-mentioned target speed and a preset speed threshold also includes: judging whether the above-mentioned target speed is greater than the above-mentioned preset speed threshold; if the above-mentioned target speed is greater than the above-mentioned preset speed threshold, controlling the above-mentioned target robot to generate the above-mentioned damping torque; if the above-mentioned target speed is less than the above-mentioned preset speed threshold, controlling the above-mentioned target robot to generate the above-mentioned assisting torque.

[0012] According to another aspect of an embodiment of the present invention, a robot control system is also provided, including: a processor, used to calculate and process preset control parameters and initial motion data to obtain target motion data; a target robot, connected to the above-mentioned processor, used to receive the above-mentioned target motion data and move according to the above-mentioned target motion data; the above-mentioned target robot also includes: an encoder, used to obtain and upload the above-mentioned initial motion data, wherein the above-mentioned initial motion data at least includes: current motion data and historical motion data.

[0013] According to another aspect of an embodiment of the present invention, a robot control device is further provided, including: an acquisition module, used to acquire preset control parameters and initial motion data of a target robot, wherein the preset control parameters are set in a preset order, and the preset control parameters at least include: passive speed, preset resistance, preset assist force, and the initial motion data at least include: current motion data and historical motion data; a first calculation module, used to calculate inertia parameters based on the preset resistance and the passive speed, and to correct the inertia parameters according to the historical motion data and the current motion data to determine the inertia coefficient; a second calculation module, used to calculate and process the preset control parameters and the inertia coefficient to obtain target motion data, wherein the target motion data at least includes one of the following: target speed, damping torque and / or assist torque; a control module, used to control the target robot to move according to the target speed combined with the damping torque or the assist torque.

[0014] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, wherein the non-volatile storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing any one of the above-mentioned robot control methods.

[0015] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein the program is configured to execute any one of the above-mentioned robot control methods when running.

[0016] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the above-mentioned robot control methods.

[0017] In an embodiment of the present invention, preset control parameters and initial motion data of the target robot are obtained, wherein the preset control parameters are set in a preset order, and the preset control parameters at least include: passive speed, preset resistance, preset assistance, and the initial motion data at least include: current motion data and historical motion data; inertia parameters are calculated based on the preset resistance and the passive speed, and the inertia coefficient is determined by correcting the inertia parameters according to the historical motion data and the current motion data; the preset control parameters and the inertia coefficient are calculated and processed to obtain target motion data, wherein the target motion data at least includes one of the following: target speed, damping torque and / or assistance torque; the target robot is controlled to move according to the target speed combined with the damping torque or the assistance torque, so as to achieve the purpose of calculating the target motion data for assisting the patient's movement according to the preset control parameters and motion data, thereby achieving the technical effect of controlling the robot to move accurately based on the target motion data, thereby solving the technical problems of uncontrollable parameters and unstable robot control in the robot control method in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 is a flow chart of a robot control method according to an embodiment of the present invention;

[0020] Figure 2 is an optional target robot control parameter setting flow chart according to an embodiment of the present invention;

[0021] Figure 3 is a schematic diagram of an optional control process structure of a rehabilitation robot according to an embodiment of the present invention;

[0022] Figure 4 is a schematic diagram of an optional direction-changing control structure according to an embodiment of the present invention;

[0023] Figure 5 is a schematic diagram of an optional damping torque generation model structure according to an embodiment of the present invention;

[0024] Figure 6 is a schematic diagram of an optional power-assist torque generation model structure according to an embodiment of the present invention;

[0025] Figure 7 is a structural schematic diagram of an optional variable control model based on position / velocity admittance according to an embodiment of the present invention;

[0026] Figure 8 is a structural schematic diagram of another optional variable control model based on position / velocity admittance according to an embodiment of the present invention;

[0027] Fig. 9 is a schematic structural diagram of a robot control system according to an embodiment of the present invention;

[0028] Fig.10 4 is a schematic structural diagram of a robot control device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Example 1

[0032] According to an embodiment of the present invention, an embodiment of a robot control method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0033] Figure 1 is a flow chart of a robot control method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0034] Step S102, obtaining preset control parameters and initial motion data of the target robot, wherein the preset control parameters are set in a preset order, the preset control parameters at least include: passive speed, preset resistance, preset assistance, and the initial motion data at least include: current motion data and historical motion data;

[0035] Step S104, calculating an inertia parameter based on the preset resistance and the passive speed, and correcting the inertia parameter according to the historical motion data and the current motion data to determine an inertia coefficient;

[0036] Step S106, calculating and processing the preset control parameters and the inertia coefficient to obtain target motion data, wherein the target motion data includes at least one of the following: target speed, damping torque and / or assist torque;

[0037] Step S108, controlling the target robot to move according to the target speed combined with the damping torque or the assist torque.

[0038] In an embodiment of the present invention, the executor of the robot control method provided in the above steps S102 to S108 is the control system of the robot. The operator can pre-set the control parameters of the target robot in the control system. Before the robot moves to the target position, it first obtains the above preset control parameters, historical motion data and current motion data; and decouples, calculates and processes the above multiple data to obtain the target motion data; after completing the calculation, the control system sends the motion amount corresponding to the target motion data to the above target robot, and the above target robot then moves to the target position according to the motion amount.

[0039] It should be noted that if Figure 2 In the target robot control parameter setting flow chart shown in the figure, the user sets the passive speed, target resistance, acceleration, deceleration, input force scaling, speed upper limit, speed damping, acceleration time, deceleration time and other parameters of the target robot one by one in the setting interface; during the setting process, the system will automatically calculate the inertia parameters and other calculated parameters according to the set parameters. In addition, the steps of the above settings must be set strictly in accordance with the preset order and rules.

[0040] Optional, according to Figure 2 The parameters of the speed admittance control are set in the order of the steps in the figure. The designer can separate the variables and set the passive speed, resistance, acceleration curve, deceleration curve and speed upper limit in the assist mode respectively. Thus, the admittance control variables can be changed from top to bottom. Setting the parameters according to the above steps can effectively separate the variables and achieve better decoupling effect.

[0041] In the embodiment of the present invention, the passive speed is set to V auto Indicates that the target resistance is F imp Indicates that, through the deceleration a d Set the admittance inertia parameter M = F imp / a d ; Acceleration through unit force a d Set the input force scaling ratio S = a d / ((F input -F imp ) / (F imp / a d ), usually S<1; the speed-related damping coefficient is expressed by D, where the resistance F v =-v*D; D=k*v or D=k, that is, the above damping coefficient is a constant or changes linearly; the speed limit V can be set according to user needs and safety requirements lim And the stiffness K.

[0042] It should also be noted that the above-mentioned historical motion data includes at least one of the following: historical speed, historical position, historical motion direction and other motion data; the above-mentioned current motion data includes at least one of the following: current speed, current position, current motion direction and other motion data.

[0043] As an optional embodiment, taking a rehabilitation robot in the field of medical rehabilitation equipment as an example, Figure 3 As shown in the schematic diagram of the control process structure of the rehabilitation robot, the control system first reads the preset admittance model parameter value, that is, the above-mentioned preset control parameter, and then starts from the current position target, combined with the feedback information of the torque sensor installed on the end effector, and derives the position / speed target at the next moment through position / speed admittance control.

[0044] It should be noted that Figure 3 The type of motor controller shown is not specifically limited. For the time being, a Proportional-Integral-Differential (PID) controller is used as an example. The motor can be controlled by sending a motor control signal to the controller. In addition, the proportional and integral parameters of the motor can be set according to the actual dynamic environment. The above robot type is also not specifically limited. In addition to rehabilitation robots, other types of robots can also be controlled using the above control method.

[0045] Optionally, when the above-mentioned rehabilitation robot actively or passively participates in the patient's rehabilitation training, a virtual scene for the corresponding training can also be established, and at the same time, an appropriate motion control strategy for the rehabilitation training scene can be established to fit the patient's limb movement intentions as much as possible, or provide flexible and safe assistance when the patient needs assistance.

[0046] Through the embodiments of the present invention, the motor speed is controlled by orderly setting the inertia, damping, stiffness and resistance in the robot's admittance control and the motion information fed back by the sensor, so as to achieve the following of the user's motion intention, and the resistance size can be dynamically adjusted from the approximate zero torque according to the training scene, so as to achieve the establishment of a training scene that is closer to the patient's rehabilitation goal; in addition, when the user cannot complete the current training point trajectory, a certain external force of assistance is added to the admittance control through the time accumulation component, or other admittance parameters are changed, so that the user can stably reach the target point. The purpose of calculating the target motion data for assisting the patient's motion according to the preset control parameters and motion data is achieved, thereby achieving the technical effect of controlling the accurate motion of the robot based on the target motion data, thereby solving the technical problems of uncontrollable parameters and unstable robot control in the robot control method in the prior art.

[0047] In an optional embodiment, the above-mentioned preset control parameters, the above-mentioned historical motion data and the above-mentioned current motion data are calculated and processed to obtain target motion data, including: multiplying the above-mentioned current motion data and the above-mentioned historical motion data to obtain change of direction motion data; determining the above-mentioned target motion data based on the above-mentioned change of direction motion data, the above-mentioned preset control parameters and the current motion data.

[0048] In an embodiment of the present invention, before calculating the target motion data, the target robot's change of direction motion data is first calculated. The change of direction motion data is used to determine whether the motion direction of the user and the target robot has changed, so as to prevent unnecessary shaking in time and realize accurate control of the robot.

[0049] Optionally, the changing direction motion data is obtained by calculating the product of the historical motion data and the above-mentioned current motion data. If the motion direction in the historical motion data and the motion direction in the current motion data are inconsistent, the signs of the speed data are not the same, and the obtained product is a negative number, and it can be judged that the motion direction of the target robot has changed; if the motion direction in the historical motion data and the motion direction in the current motion data are consistent, the signs of the speed data are the same, and the obtained product is a positive number, and it can be judged that the motion direction of the target robot has changed.

[0050] In an optional embodiment, the target motion data is determined based on the change of direction motion data, the preset control parameters and the current motion data, including: judging whether the change of direction motion data is greater than zero; if the change of direction motion data is greater than zero, determining the target motion data based on the calculation result of the preset control parameters and the current motion data; if the change of direction motion data is less than zero, setting the passive speed of the target robot to zero.

[0051] As an optional embodiment, Figure 4 The schematic diagram of the change of direction control structure shown in the figure shows that, in the time domain system, when the target speed of the terminal effector acting on the user's limb is different from the sign of the motion speed in the previous cycle, its motion speed is set to 0, and the time in the counter is maintained, which is usually set to within 20ms, so as to effectively attenuate the energy of the terminal effector in the zero-crossing stage to prevent unnecessary jitter; when the target speed of the terminal effector acting on the user's limb is the same as the sign of the motion speed in the previous cycle, the above-mentioned target motion data is determined based on the above-mentioned preset control parameters and the calculation results of the above-mentioned current motion data, and the target robot movement is controlled based on the above-mentioned target motion data.

[0052] It should be noted that after calculating the change of direction motion data, the phase controller promptly feeds back the calculation results to the control system, and the control system determines the target motion data based on the change of direction motion data, the preset control parameters and the current motion data.

[0053] In an embodiment of the present invention, when the user cannot complete the current training point trajectory, a certain external force of assistance is added to the admittance control through the time accumulation component, or other admittance parameters are changed, so that the user can stably reach the target point. Before calculating the assistance, the sum of the input force and the preset assistance in the above current motion data is first calculated to obtain the input resultant force; and according to the relationship between the input resultant force and the resistance in the preset parameters, it is determined whether the motion robot needs to provide assistance or resistance. The damping torque and assistance torque generation process is shown in Figure and Figure 6 shown.

[0054] In an optional embodiment, the preset control parameters and the inertia coefficient are calculated and processed to obtain target motion data, including: calculating the sum of the preset assist force and the input force in the current motion data to obtain the input resultant force; determining the target speed based on the magnitude relationship between the input resultant force and the preset resistance; determining the damping torque and / or the assist torque based on the magnitude relationship between the target speed and a preset speed threshold; and using the target speed and the damping torque and / or the assist torque as the target motion data.

[0055] In the embodiment of the present invention, Figure 7 The schematic diagram of the structure of a variable control model based on position / velocity admittance is shown in FIG. Taking velocity admittance control as an example, when the resistance is determined, the unit acceleration is only determined by the inertia parameter in the admittance control. Figure 7 The user input force F input With setting assist F a The sum is greater than the resistance F imp The user input force F input With setting assist F a With resistance Fimp The opposite direction, that is:

[0056] abs(F input +F a )>abs(F imp ) and sgn(F input +F a )=-sgn(F imp );

[0057] The final output target speed can be calculated according to the preset parameters as follows:

[0058]

[0059] Among them, V target_1 is the target speed of the previous cycle.

[0060] Optionally, the above final output target speed V target As the above-mentioned target motion data, the robot is controlled to move according to the above-mentioned target speed.

[0061] In the embodiment of the present invention, Figure 8 The structural diagram of another variable control model based on position / speed admittance is shown in FIG. 1 . Taking speed admittance control as an example, based on the decoupling of acceleration and deceleration as the goal, the deceleration is set to the impedance force F imp When the value is determined, the unit acceleration is only determined by the inertia parameter in the admittance control, thus solving the side effect of uncontrollable acceleration and deceleration caused by the admittance control. Figure 8 The user input force F input With setting assist F a The sum is less than the resistance F imp or user input force F input With setting assist F a The sum is greater than the resistance F imp , but apply force in the opposite direction (with the resistance F imp same direction), that is:

[0062] abs(F input +F a ) <abs(F imp );

[0063] or abs(F input +F a )>abs(F imp ) and sgn(F input +F a )=sgn(F imp );

[0064] The final output target speed can be calculated according to the preset parameters as follows:

[0065]

[0066] Among them, V target_1 is the target speed of the previous cycle.

[0067] Optionally, the above final output target speed V target As the above-mentioned target motion data, the robot is controlled to move according to the above-mentioned target speed.

[0068] In an optional embodiment, the above-mentioned preset control parameters, the above-mentioned historical motion data and the above-mentioned current motion data are calculated and processed to obtain the target motion data, including: obtaining the historical torque in the above-mentioned historical motion data and the input torque in the above-mentioned current motion data; calculating and processing the above-mentioned historical torque and the above-mentioned input torque according to a preset proportional coefficient algorithm to obtain a scaling coefficient; determining the above-mentioned inertia coefficient based on the above-mentioned scaling coefficient and the above-mentioned inertia parameter.

[0069] Optional, such as Figure 7 as well as Figure 8 As shown, due to the need for emergency stop of the robot's terminal effector, that is, when the user switches to a stopped state under relatively high-speed movement, the preset inertia coefficient can be generated by the current sensor feedback torque and the last feedback torque. The specific formula is: if abs(F'-F)>F α And abs(F')>abs(F), then α=abs(F-F') / F β , otherwise α=1; the above inertia coefficient M(F,F')=α*M, where F' is the last feedback torque, F a is the threshold torque, F β is the maximum set torque, and α is the scaling factor.

[0070] Unfortunately, for safety reasons, when the user suddenly applies a relatively large torque, the inertia coefficient will increase accordingly. The specific formula is: if abs(F-F')>F α And abs(F)>abs(F'), then β=F β / ab(s-F', otherwise β=1; the above inertia coefficient M(F,F')=β*M where F a is the threshold torque, F β is the maximum set torque, and β is the scaling factor.

[0071] As an optional embodiment, based on actual needs, resistance, acceleration, deceleration and damping can be decoupled by setting parameters for position / velocity admittance layer by layer, so that the training model is closer to user needs. The control parameter setting method in the embodiment of the present application can effectively constrain and optimize the position / velocity admittance control parameters of the robot.

[0072] In an optional embodiment, controlling the target robot to move based on the target motion data further includes: determining whether the target speed is greater than the preset speed threshold; if the target speed is greater than the preset speed threshold, controlling the target robot to generate the damping torque; if the target speed is less than the preset speed threshold, controlling the target robot to generate the assist torque.

[0073] In an embodiment of the present invention, after determining that the user needs to add a certain external force to assist in the admittance control or change other admittance parameters, taking the need to add a certain external force as an example, the movement mode of the above-mentioned target robot is determined to be resistance movement or assisted movement through the relationship between the above-mentioned input resultant force and the magnitude of the resistance in the preset control parameters, and the inertia coefficient is calculated according to the historical motion data and the current motion data, and the target motion data is determined based on the above-mentioned motion mode and the above-mentioned inertia coefficient.

[0074] It should be noted that the movement mode of the above-mentioned target robot can be judged by whether the above-mentioned speed information is greater than the preset speed threshold. If the above-mentioned speed information is greater than the above-mentioned preset speed threshold, it is determined that the user's movement is relatively easy, and the target robot can generate a damping torque to help the user perform rehabilitation training; if the above-mentioned speed information is less than the above-mentioned preset speed threshold, it is determined that the user's movement is relatively difficult, and the target robot can generate an assist torque to help the user perform rehabilitation training.

[0075] As an optional embodiment, Figure 5 The damping torque generation model structure diagram is shown in FIG. The damping generation model D can be (1) a proportional function, (2) a quadratic function, or (3) a logical function, which can be expressed as:

[0076] (1)F v =-D·(vv s )

[0077] (2)F v =-D·(vv s ) 2

[0078] (3)

[0079] As an optional embodiment, Figure 6The schematic diagram of the assist torque generation model structure is shown in FIG. 1 . When the target speed is less than the set threshold value Va and the duration exceeds the set time t a , then the patient is given an auxiliary force torque to help him complete the training. The assistance generation model A can be (1) a proportional function, (2) a quadratic function, or (3) a logical function, which can be expressed as:

[0080] (1)F a =-A·(vv a )

[0081] (2)F a =-A·(vv a ) 2

[0082] (3)

[0083] Optionally, the overall preset parameters of the control are determined through user evaluation. During the training process, the end effector of the rehabilitation robot can continue to follow the patient's limb movement; when the speed of the effector continues to be lower than the speed threshold, the assist torque is generated by the assist generation model; when the speed of the effector continues to be greater than the speed threshold, the damping torque is generated by the damping torque generation model.

[0084] Through the above steps, the inertial model in the admittance control can be improved, the dangerous sudden acceleration can be prevented, the limbs can be followed in the emergency stop movement, and the stability can be maintained through the direction change controller during the change of direction. In the field of medical technology, the output force applied to the rehabilitation robot can be finely controlled, and further, the necessary assistance and damping can be applied to the patient's limbs during the training process, thereby helping the patient adapt to the training.

[0085] Example 2

[0086] According to an embodiment of the present invention, a system embodiment for implementing the above robot control method is also provided. Fig. 9 is a schematic diagram of a robot control system according to an embodiment of the present invention. Fig. 9 As shown, the above system includes: a processor 90, a target robot 92 and an encoder 94, wherein:

[0087] The processor 90 is used to calculate and process the preset control parameters and the initial motion data to obtain the target motion data;

[0088] The target robot 92 is connected to the processor and is used to receive the target motion data and move according to the target motion data;

[0089] The target robot further includes an encoder 94 for acquiring and uploading the initial motion data, wherein the initial motion data at least includes current motion data and historical motion data.

[0090] It should be noted here that the above-mentioned processor 90, target robot 92 and encoder 94 correspond to steps S102 to S108 in Example 1, and the above-mentioned system is the same as the instance and application scenario implemented by the corresponding steps, but is not limited to the contents disclosed in the above-mentioned Example 1.

[0091] It should be noted that the preferred implementation of this embodiment can refer to the relevant description in Example 1, which will not be repeated here.

[0092] Example 3

[0093] According to an embodiment of the present invention, there is also provided an apparatus embodiment for implementing the above robot control method. Fig.10 is a schematic diagram of the structure of a robot control device according to an embodiment of the present invention. Fig.10 As shown, the above device includes: an acquisition module 100, a first calculation module 102, a second calculation module 104 and a control module 106, wherein:

[0094] The acquisition module 100 is used to acquire preset control parameters and initial motion data of the target robot, wherein the preset control parameters are set in a preset order, the preset control parameters at least include: passive speed, preset resistance, preset assistance, and the initial motion data at least include: current motion data and historical motion data;

[0095] A first calculation module 102, configured to calculate an inertia parameter based on the preset resistance and the passive speed, and to modify the inertia parameter according to the historical motion data and the current motion data to determine an inertia coefficient;

[0096] The second calculation module 104 is used to calculate and process the preset control parameters and the inertia coefficient to obtain target motion data, wherein the target motion data includes at least one of the following: target speed, damping torque and / or assist torque;

[0097] The control module 106 is used to control the target robot to move according to the target speed combined with the damping torque or the assisting torque.

[0098] It should be noted here that the above-mentioned acquisition module 100, first calculation module 102, second calculation module 104 and control module 106 correspond to steps S102 to S108 in Example 1, and the four modules and the corresponding steps implement the same instances and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1.

[0099] It should be noted that the preferred implementation of this embodiment can refer to the relevant description in Example 1, which will not be repeated here.

[0100] According to an embodiment of the present invention, an embodiment of a computer-readable storage medium is also provided. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the robot control method provided in the above embodiment 1.

[0101] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0102] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: obtaining preset control parameters and initial motion data of the target robot, wherein the preset control parameters are set in a preset order, and the preset control parameters at least include: passive speed, preset resistance, preset assist, and the initial motion data at least include: current motion data and historical motion data; calculating inertia parameters based on the preset resistance and the passive speed, and correcting the inertia parameters according to the historical motion data and the current motion data to determine the inertia coefficient; calculating and processing the preset control parameters and the inertia coefficient to obtain target motion data, wherein the target motion data at least includes one of the following: target speed, damping torque and / or assist torque; controlling the target robot to move according to the target speed combined with the damping torque or the assist torque.

[0103] Optionally, the computer-readable storage medium is configured to store program codes for executing the following steps: multiplying the current motion data and the historical motion data to obtain change-of-direction motion data; and determining the target motion data based on the change-of-direction motion data, the preset control parameters and the current motion data.

[0104] Optionally, the computer-readable storage medium is configured to store program codes for executing the following steps: if the change of direction motion data is greater than zero, determining the target motion data based on the calculation results of the preset control parameters and the current motion data; if the change of direction motion data is less than zero, setting the passive speed of the target robot to zero.

[0105] Optionally, the computer-readable storage medium is configured to store program codes for executing the following steps: obtaining historical torques in the historical motion data and input torques in the current motion data; calculating and processing the historical torques and the input torques according to a preset proportional coefficient algorithm to obtain a scaling coefficient; and determining the inertia coefficient based on the scaling coefficient and the inertia parameter.

[0106] Optionally, the computer-readable storage medium is configured to store program codes for executing the following steps: calculating the sum of the preset assist force and the input force in the current motion data to obtain the input resultant force; determining the target speed based on the magnitude relationship between the input resultant force and the preset resistance; determining the damping torque and / or the assist torque based on the magnitude relationship between the target speed and a preset speed threshold; and using the target speed and the damping torque and / or the assist torque as the target motion data.

[0107] Optionally, the computer-readable storage medium is configured to store program codes for executing the following steps: determining whether the target speed is greater than the preset speed threshold; if the target speed is greater than the preset speed threshold, controlling the target robot to generate the damping torque; if the target speed is less than the preset speed threshold, controlling the target robot to generate the assist torque.

[0108] According to an embodiment of the present invention, an embodiment of a processor is also provided. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the robot control method provided in the above embodiment 1.

[0109] Optionally, when the program is running, the device where the processor is located performs the following functions: multiplying the above-mentioned current motion data and the above-mentioned historical motion data to obtain the change of direction motion data; determining the above-mentioned target motion data based on the above-mentioned change of direction motion data, the above-mentioned preset control parameters and the current motion data.

[0110] Optionally, when the program is running, the device where the control processor is located performs the following functions: if the above-mentioned change of direction motion data is greater than zero, the above-mentioned target motion data is determined based on the calculation results of the above-mentioned preset control parameters and the above-mentioned current motion data; if the above-mentioned change of direction motion data is less than zero, the passive speed of the above-mentioned target robot is set to zero.

[0111] Optionally, when the program is running, the device where the processor is located controls the following functions: obtaining the historical torque in the above-mentioned historical motion data and the input torque in the above-mentioned current motion data; calculating and processing the above-mentioned historical torque and the above-mentioned input torque according to a preset proportional coefficient algorithm to obtain a scaling coefficient; determining the above-mentioned inertia coefficient based on the above-mentioned scaling coefficient and the above-mentioned inertia parameter.

[0112] Optionally, when the program is running, the device where the control processor is located performs the following functions: calculate the sum of the above-mentioned preset assist force and the input force in the above-mentioned current motion data to obtain the input resultant force; determine the above-mentioned target speed based on the magnitude relationship between the above-mentioned input resultant force and the above-mentioned preset resistance; determine the above-mentioned damping torque and / or the above-mentioned assist torque based on the magnitude relationship between the above-mentioned target speed and a preset speed threshold; use the above-mentioned target speed and the above-mentioned damping torque and / or the above-mentioned assist torque as the above-mentioned target motion data.

[0113] Optionally, when the program is running, the device where the processor is located controls the following functions: determining whether the target speed is greater than the preset speed threshold; if the target speed is greater than the preset speed threshold, controlling the target robot to generate the damping torque; if the target speed is less than the preset speed threshold, controlling the target robot to generate the assist torque.

[0114] An embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining preset control parameters and initial motion data of a target robot, wherein the preset control parameters are set in a preset order, and the preset control parameters at least include: passive speed, preset resistance, preset assistance, and the initial motion data at least include: current motion data and historical motion data; calculating inertia parameters based on the preset resistance and the passive speed, and correcting the inertia parameters according to the historical motion data and the current motion data to determine the inertia coefficient; calculating and processing the preset control parameters and the inertia coefficient to obtain target motion data, wherein the target motion data at least includes one of the following: target speed, damping torque and / or assistance torque; controlling the target robot to move according to the target speed combined with the damping torque or the assistance torque.

[0115] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: obtaining preset control parameters and initial motion data of a target robot, wherein the preset control parameters are set in a preset order, and the preset control parameters at least include: passive speed, preset resistance, preset assist, and the initial motion data at least include: current motion data and historical motion data; calculating inertia parameters based on the preset resistance and the passive speed, and correcting the inertia parameters according to the historical motion data and the current motion data to determine the inertia coefficient; calculating and processing the preset control parameters and the inertia coefficient to obtain target motion data, wherein the target motion data at least includes one of the following: target speed, damping torque and / or assist torque; controlling the target robot to move according to the target speed combined with the damping torque or the assist torque.

[0116] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0117] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0118] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0120] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0121] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or 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, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0122] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A robot control method, characterized in that: include: Acquire preset control parameters and initial motion data of the target robot, wherein the preset control parameters are set in a preset order, the preset control parameters at least include: passive speed, preset resistance, preset assistance, and the initial motion data at least include: current motion data and historical motion data; Calculating an inertia parameter based on the preset resistance and the passive speed, and correcting the inertia parameter according to the historical motion data and the current motion data to determine an inertia coefficient; Calculating and processing the preset control parameter and the inertia coefficient to obtain target motion data, wherein the target motion data at least includes: target speed, damping torque and / or assist torque; Controlling the target robot to move according to the target speed combined with the damping torque or the assisting torque; Among them, the method of correcting the inertia parameter according to the historical motion data and the current motion data to determine the inertia coefficient includes: obtaining the historical torque in the historical motion data and the input torque in the current motion data; calculating and processing the historical torque and the input torque according to a preset proportional coefficient algorithm to obtain a scaling coefficient; and determining the inertia coefficient based on the scaling coefficient and the inertia parameter.

2. The method according to claim 1, characterized in that The step of calculating and processing the preset control parameter, the historical motion data, and the current motion data to obtain the target motion data includes: Performing a multiplication operation on the current motion data and the historical motion data to obtain the change of direction motion data; The target motion data is determined based on the direction-changing motion data, the preset control parameters and the current motion data.

3. The method according to claim 2, characterized in that The determining the target motion data based on the change-of-direction motion data, the preset control parameter and the current motion data comprises at least one of the following: If the direction-changing motion data is greater than zero, determining the target motion data based on the calculation result of the preset control parameter and the current motion data; If the direction-changing motion data is less than zero, the passive speed of the target robot is set to zero.

4. The method according to claim 1, characterized in that Calculating and processing the preset control parameter and the inertia coefficient to obtain target motion data includes: Calculating the sum of the preset assist force and the input force in the current motion data to obtain an input resultant force; Determining the target speed based on a magnitude relationship between the input resultant force and the preset resistance, and a direction relationship between the input resultant force and the preset resistance; Determining the damping torque and / or the assisting torque based on a magnitude relationship between the target speed and a preset speed threshold; The target speed and the damping torque and / or the assisting torque are used as the target motion data.

5. The method according to claim 4, characterized in that The determining of the damping torque and / or the assisting torque based on the magnitude relationship between the target speed and a preset speed threshold value further includes: Determining whether the target speed is greater than the preset speed threshold; If the target speed is greater than the preset speed threshold, controlling the target robot to generate the damping torque; If the target speed is less than the preset speed threshold, the target robot is controlled to generate the assist torque.

6. A robot control system, characterized in that: include: A processor is used to calculate and process preset control parameters and initial motion data to obtain target motion data, wherein the preset control parameters are set in a preset order, the preset control parameters at least include: passive speed, preset resistance, preset assistance, and the initial motion data at least include: current motion data and historical motion data; a target robot, connected to the processor, configured to receive the target motion data and move according to the target motion data; The target robot further includes: an encoder for acquiring and uploading the initial motion data, wherein the initial motion data at least includes: current motion data and historical motion data; The processor is also used to: calculate the inertia parameters based on the preset resistance and the passive speed; obtain the historical torque in the historical motion data and the input torque in the current motion data; calculate and process the historical torque and the input torque according to a preset proportional coefficient algorithm to obtain a scaling coefficient; determine the inertia coefficient based on the scaling coefficient and the inertia parameters; calculate and process the preset control parameters and the inertia coefficient to obtain the target motion data, wherein the target motion data at least includes: a target speed, a damping torque and / or an assist torque.

7. A robot control device, characterized in that: include: An acquisition module, used to acquire preset control parameters and initial motion data of the target robot, wherein the preset control parameters are set in a preset order, the preset control parameters at least include: passive speed, preset resistance, preset assistance, and the initial motion data at least include: current motion data and historical motion data; A first calculation module, configured to calculate an inertia parameter based on the preset resistance and the passive speed, and to modify the inertia parameter according to the historical motion data and the current motion data to determine an inertia coefficient; A second calculation module is used to calculate and process the preset control parameter and the inertia coefficient to obtain target motion data, wherein the target motion data at least includes: a target speed, a damping torque and / or an assist torque; A control module, used for controlling the target robot to move according to the target speed combined with the damping torque or the assist torque; The first calculation module is also used to obtain the historical torque in the historical motion data and the input torque in the current motion data; calculate and process the historical torque and the input torque according to a preset proportional coefficient algorithm to obtain a scaling coefficient; and determine the inertia coefficient based on the scaling coefficient and the inertia parameter.

8. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the robot control method according to any one of claims 1 to 5.

9. A processor, characterized in that: The processor is used to run a program, wherein the program is configured to execute the robot control method according to any one of claims 1 to 5 when running.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the robot control method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Self-adaption control method for rehabilitation robot based on expression

    CN109662866A

  • Variable-conductance nano control method and system used for robot

    CN109910005A

  • Rehabilitation robot constant-speed motion control method and system

    CN112207823A

  • Flexible lower limb exoskeleton and walking aid co-fusion rehabilitation assisting method and device

    CN112263440A

  • Upper limb exoskeleton robot control method and device based on LSTM neural network

    CN112621714A