WO2022179131A1 - Torque control method and apparatus, terminal device, and storage medium - Google Patents

Torque control method and apparatus, terminal device, and storage medium Download PDF

Info

Publication number
WO2022179131A1
WO2022179131A1 PCT/CN2021/124622 CN2021124622W WO2022179131A1 WO 2022179131 A1 WO2022179131 A1 WO 2022179131A1 CN 2021124622 W CN2021124622 W CN 2021124622W WO 2022179131 A1 WO2022179131 A1 WO 2022179131A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
model
dynamic model
feedforward
nominal
Prior art date
Application number
PCT/CN2021/124622
Other languages
French (fr)
Chinese (zh)
Inventor
赵文
赵明国
熊友军
Original Assignee
深圳市优必选科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市优必选科技股份有限公司 filed Critical 深圳市优必选科技股份有限公司
Publication of WO2022179131A1 publication Critical patent/WO2022179131A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D17/00Control of torque; Control of mechanical power
    • G05D17/02Control of torque; Control of mechanical power characterised by the use of electric means
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/72Electric energy management in electromobility

Definitions

  • the present application belongs to the technical field of Series Elastic Actuator (SEA), and in particular, relates to a torque control method, device, terminal device and storage medium.
  • SEA Series Elastic Actuator
  • the series elastic drive technology is a force-controlled joint technology. It is realized by connecting elastic elements (springs, etc.) in series between the motor and the load. When the motor drives the load to move, the elastic element will be elastically deformed to generate elastic torque. The torque drives the movement of the load, and the magnitude of the elastic torque used to drive the load can be obtained by measuring the deformation of the elastic element.
  • the elastic element improves the flexibility and impact resistance of the load, which makes the load easy to drive back and has natural passive safety characteristics; at the same time, the elastic moment is detected by detecting the deformation amount of the elastic element whose stiffness has been calibrated, which has a higher force guarantee.
  • the storage and release of energy can be realized through elastic elements, and the efficiency of energy use can be improved.
  • the introduction of the elastic element makes the stiffness of the series elastic driver significantly decrease, so that the force control bandwidth of the series elastic driver is obviously reduced compared with that of the rigid driver.
  • the elastic element decouples the motor from the load, its force control algorithm is more complicated. , and the load is more susceptible to disturbance, which affects the accuracy and robustness of torque control.
  • the embodiments of the present application provide a torque control method, device, terminal device and storage medium, so as to solve the problem that the force control algorithm of the series elastic drive in the prior art is complex, the load is more easily affected by disturbance, and the torque control is affected. issues of accuracy and robustness.
  • a first aspect of the embodiments of the present application provides a torque control method, including:
  • a desired current value is obtained and output to the motor.
  • a second aspect of the embodiments of the present application provides a torque control device, including:
  • a disturbance observation unit configured to obtain a real-time disturbance amount through the disturbance observer according to the nominal dynamics model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment;
  • a feed-forward compensation unit configured to obtain a feed-forward dynamic model according to the nominal dynamic model and the scaling factor of the rotational inertia of the motor through a feed-forward compensator; according to the feed-forward dynamic model and the series connection The expected output torque of the elastic driver is obtained, and the feedforward compensation amount is obtained;
  • a proportional-derivative unit configured to obtain a desired current value and output it to the motor according to the real-time disturbance amount, the feedforward compensation amount and the ideal current value obtained by the proportional-derivative controller.
  • a third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and also including a series elastic driver and a load, the The series elastic driver includes a motor and an elastic element, the series elastic driver is connected with the load, and the processor implements the steps of the method according to the first aspect of the embodiments of the present application when the processor executes the computer program.
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the first aspect of the embodiments of the present application is implemented steps of the method described.
  • the nominal dynamics model of the series elastic driver is established; the disturbance observer is used to determine the nominal dynamics model, the current value input by the motor at the current moment, and the series elastic driver at the current moment.
  • the real-time disturbance amount is obtained by the output torque;
  • the feedforward dynamic model is obtained according to the scaling factor of the nominal dynamic model and the moment of inertia of the motor through the feedforward compensator;
  • the expected output torque is obtained according to the feedforward dynamic model and the series elastic drive , obtain the feedforward compensation amount;
  • the real-time disturbance amount, the feedforward compensation amount and the ideal current value obtained by the proportional derivative controller obtain the desired current value and output it to the motor, which can improve the dynamic response performance and ensure Control accuracy and robustness to external disturbances, achieve better control effect, improve stability and simple algorithm.
  • FIG. 1 is a schematic flowchart of a torque control method provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a mathematical model of a disturbance observer provided by an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a torque control device provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • the term “if” may be contextually interpreted as “when” or “once” or “in response to determining” or “in response to detecting “.
  • the phrases “if it is determined” or “if the [described condition or event] is detected” may be interpreted, depending on the context, to mean “once it is determined” or “in response to the determination” or “once the [described condition or event] is detected. ]” or “in response to detection of the [described condition or event]”.
  • references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
  • the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
  • the torque control method provided by the embodiments of the present application can be applied to terminal devices such as robots, robotic arms, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, and the like.
  • the terminal device includes a processor, a series elastic driver, and a load.
  • the processor is used to control the series elastic driver to drive the movement of the load.
  • the embodiment of the present application does not limit the specific type of the terminal device.
  • the robot may specifically be a service robot, an underwater robot, an entertainment robot, a military robot, an agricultural robot, etc.
  • the embodiments of the present application do not impose any restrictions on the specific type of the robot.
  • the type of load is also different. For example, when the terminal device is a robot, the load can be a movable joint of the robot.
  • the torque control method provided by the embodiment of the present application includes the following steps S101 to S105:
  • Step S101 establishing a nominal dynamic model of the series elastic drive.
  • the series elastic drive consists of a motor and an elastic element. Since the elastic element of the series elastic drive decouples the motor from the load, the nominal dynamic model of the series elastic drive consists of the dynamic model of the motor and the dynamic model of the load. Consists of two parts.
  • step S101 includes:
  • the nominal dynamic model of the series elastic drive is established.
  • the expression of the dynamic model of the motor is:
  • J m represents the moment of inertia of the motor
  • ⁇ m represents the rotation angle of the motor
  • B m represents the damping term of the motor
  • K s represents the stiffness of the elastic element
  • ⁇ l represents the rotation angle of the load
  • ⁇ dm represents the uncertainty factor of the motor
  • ⁇ m represents the output torque of the motor.
  • the uncertain factors of the motor include Coulomb friction and the error of the motor's dynamic model.
  • the expression of the dynamic model of the load is:
  • J l represents the moment of inertia of the load
  • B l represents the damping term of the load
  • ⁇ ext represents the moment from the external environment that the load receives.
  • the expression of the nominal kinetic model is:
  • P n (s) represents the nominal dynamic model
  • i(s) represents the current value input by the motor
  • ⁇ s (s) represents the output torque of the series elastic driver
  • represents the motor’s output torque.
  • Equivalent moment coefficient s represents the complex variable in the Laplace transform
  • represents the deformation amount of the elastic element.
  • the elastic torque is the system open-loop transfer function P n (s) of the series elastic drive (ie, the nominal dynamic model) of the output of the serial elastic drive.
  • the parameters used to calculate the nominal dynamic model can be identified through the motor manual or the parameter identification algorithm, and are known parameters.
  • Step S102 Obtain a real-time disturbance amount through the disturbance observer according to the nominal dynamics model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment.
  • a schematic diagram of the mathematical model of the disturbance observer is exemplarily shown; wherein, Cff is the feedforward filter, ⁇ ref is the expected output torque, and PD is the proportional-differential controller (Proportional-differential, PD). ), i is the current value input by the motor, d is the disturbance to the system, P is the actual dynamic model of the system, SEA is the series elastic drive, P n is the nominal dynamic model, and P n -1 is the nominal dynamic The inverse model of the model, Q is the low-pass filter, DOB is the disturbance observer (Disturbance OBserver, DOB), ⁇ s is the output torque of the series elastic driver.
  • Cff is the feedforward filter
  • ⁇ ref is the expected output torque
  • PD is the proportional-differential controller (Proportional-differential, PD).
  • i is the current value input by the motor
  • d is the disturbance to the system
  • P is the actual dynamic model of the system
  • the low-pass filter Q can be a second-order Butterworth (Butterworth) )filter.
  • step S102 includes:
  • the filter model of the low-pass filter is established by the nominal dynamics model
  • the real-time disturbance amount is obtained according to the inverse model of the nominal dynamic model, the current value input by the motor at the current moment, the output torque of the series elastic driver at the current moment, and the filter model.
  • the expression of the filter model is:
  • Q(s) represents the filter model
  • s represents the complex variable in the Laplace transform
  • ⁇ q represents the cutoff frequency of the low-pass filter.
  • the filter model Q(s) is the equivalent mathematical model of the low-pass filter Q shown in FIG. 2 .
  • the value of the cut-off frequency ⁇ q of the low-pass filter should be greater than the upper limit value of the force control bandwidth of the series elastic driver, and at the same time, it should be avoided that the value is too high to filter high-frequency noise as much as possible, so as to eliminate the influence of high-frequency noise, that is, , the cutoff frequency should be greater than the upper limit of the force control bandwidth of the series elastic driver and less than the frequency of high frequency noise.
  • the expression of the real-time disturbance amount is:
  • the output torque ⁇ s of the series elastic driver can be obtained from the calibrated stiffness K s of the elastic element and the detected deformation value ⁇ of the elastic element.
  • the current value i input by the motor at the current moment and the current value of the current The output torque ⁇ s of the series elastic driver at time, the estimated value of the real-time disturbance can be obtained
  • the real-time disturbance estimation value is Compensated to the input of the series elastic driver
  • the output torque ⁇ s (s) of the equivalent series elastic driver can be expressed as:
  • the model of the series elastic drive is adjusted from the actual dynamic model P(s) to the nominal dynamic model Pn (s), which isolates the influence of the disturbance amount d(s).
  • Step S103 obtaining a feedforward dynamic model according to the nominal dynamic model and the scaling factor of the moment of inertia of the motor through a feedforward compensator.
  • a feedforward compensator based on the nominal dynamic model is introduced.
  • the filter Q(s) is composed.
  • P ff -1 (s) contains a scaling factor ⁇ of the motor's moment of inertia such that the moment of inertia in the nominal dynamic model for feedforward is ⁇ J m .
  • the value of ⁇ is 0 ⁇ 1, which can be set according to actual needs.
  • the purpose of introducing ⁇ is to reduce the overcompensation caused by the feedforward of the nominal dynamic model, and at the same time suppress the resonance phenomenon caused by the elastic element.
  • the expression of the feedforward dynamics model is:
  • P ff (s) represents the feedforward dynamic model
  • represents the scaling factor of the moment of inertia of the motor
  • represents the equivalent torque coefficient of the motor
  • K s represents the stiffness of the elastic element
  • J m represents the The moment of inertia of the motor
  • s represents the complex variable in the Laplace transform
  • B m represents the damping term of the motor.
  • Step S104 Obtain a feedforward compensation amount according to the feedforward dynamic model and the expected output torque of the series elastic driver.
  • step S104 includes:
  • a feedforward compensation amount is obtained from the feedforward dynamics model, the expected output torque of the series elastic drive, and the filter model.
  • the expression of the feedforward compensation amount is:
  • C ff (s) represents the feedforward compensation amount
  • Q(s) represents the filter model
  • ⁇ ref (s) represents the desired output torque of the series elastic drive.
  • Step S105 Obtain a desired current value and output it to the motor according to the real-time disturbance amount, the feedforward compensation amount, and the ideal current value obtained through the proportional-derivative controller.
  • a suitable feedback controller is required to stabilize the closed-loop system, and a proportional-derivative controller as shown in Figure 2 can be used.
  • the ideal current value is the current value calculated by the proportional-derivative controller for output to the motor.
  • the expression of the ideal current value is:
  • i PD (s) represents the ideal current value
  • K P represents the coefficient of the proportional link in the proportional-derivative controller
  • ⁇ ref (s) represents the expected output torque of the series elastic driver
  • K P represents the coefficient of the differential link in the proportional-derivative controller
  • ⁇ ref '(s) represents the derivative of the expected output torque of the series elastic driver
  • the expression of the desired current value is:
  • i 1 (s) represents the expected current value of the motor, represents the real-time disturbance amount
  • C ff (s) represents the feedforward compensation amount
  • i PD (s) represents the ideal current value
  • the torque control method provided in the embodiment of the present application can stabilize the closed-loop system of the series elastic driver by using the proportional-differential controller; since the series elastic driver system will be affected by friction and external disturbance, the series The elastic actuator is normalized, which can realize the observation and compensation of the disturbance; in order to improve the dynamic performance of the series elastic actuator system, a feedforward compensator based on the nominal dynamic model is used, and in order to avoid the feedforward of the nominal dynamic model.
  • the scaling factor of the equivalent moment of inertia is introduced into the feedforward term;
  • the control system consisting of the proportional derivative controller, the disturbance observer and the feedforward compensator can not only improve the dynamic response performance of the terminal equipment, but also It can ensure the control accuracy and robustness to external disturbances, and the disturbance observer and feedforward compensator are located in the inner loop of the control architecture of the terminal device, so that the control algorithm of the outer loop can achieve better control effects based on it. .
  • Embodiments of the present application further provide a torque control device, which is used to execute the steps in the above torque control method embodiments.
  • the torque control device can be a virtual appliance in the terminal equipment, run by the processor of the terminal equipment, or it can be the terminal equipment itself.
  • the torque control device provided by the embodiment of the present application includes:
  • model establishment unit 101 used to establish a nominal dynamic model of the series elastic drive
  • a disturbance observation unit 102 configured to obtain a real-time disturbance amount through the disturbance observer according to the nominal dynamics model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment;
  • a feed-forward compensation unit 103 is configured to obtain a feed-forward dynamic model according to the nominal dynamic model and the scaling coefficient of the moment of inertia of the motor through a feed-forward compensator; according to the feed-forward dynamic model and the The expected output torque of the series elastic driver is obtained, and the feedforward compensation amount is obtained;
  • the proportional-derivative unit 104 is configured to obtain a desired current value and output it to the motor according to the real-time disturbance amount, the feed-forward compensation amount and the ideal current value obtained by the proportional-derivative controller.
  • each unit in the torque control device may be a software program unit, or may be implemented by different logic circuits integrated in the processor, or may be implemented by multiple distributed processors.
  • an embodiment of the present application further provides a terminal device 200 , including: at least one processor 201 (only one processor is shown in FIG. 4 ), a memory 202 , and a terminal device 200 stored in the memory 202 and available in at least one
  • the computer program 203 running on the processor 201 further includes a series elastic driver 204 and a load 205.
  • the processor 201 executes the computer program 203, the steps in the above torque control method embodiments are implemented.
  • end devices may include, but are not limited to, memory, processors, serial elastic drives, and loads.
  • FIG. 4 is only an example of a terminal device, and does not constitute a limitation on the terminal device. It may include more or less components than the one shown in the figure, or combine some components, or different components, such as It may also include input and output devices, network access devices, and the like.
  • the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuits) , ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory may be an internal storage unit of the terminal device in some embodiments, such as a hard disk or a memory of the terminal device.
  • the memory can also be an external storage device of the terminal device, for example, a plug-in hard disk equipped on the terminal device, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory Card (Flash Card), etc.
  • the memory may also include both an internal storage unit of the terminal device and an external storage device.
  • the memory is used to store an operating system, application programs, a boot loader (Boot Loader), data, and other programs, such as program codes of computer programs, and the like.
  • the memory may also be used to temporarily store data that has been or will be output.
  • An embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the torque control method of any of the foregoing embodiments.
  • the embodiments of the present application provide a computer program product, which, when the computer program product runs on a terminal device, enables the terminal device to execute the torque control method of any one of the foregoing embodiments.
  • the integrated unit if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium.
  • the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program is stored in a computer-readable storage medium.
  • the steps of the foregoing method embodiments may be implemented.
  • the computer program includes computer program code
  • the computer program code may be in the form of source code, object code, executable file or some intermediate forms, and the like.
  • the computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access memory) Memory), electrical carrier signals, telecommunications signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals electrical carrier signals
  • telecommunications signals and software distribution media.
  • U disk mobile hard disk, disk or CD, etc.
  • the disclosed apparatus, terminal device and method may be implemented in other manners.
  • the above-described embodiments of the apparatus and terminal device are only illustrative.
  • the division of units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

Provided are a torque control method and apparatus, a terminal device, and a storage medium. The method comprises: establishing a nominal dynamics model of a series elastic actuator (S101); obtaining a real-time disturbance quantity by means of a disturbance observer according to the nominal dynamics model, a current value input by a motor at the current time point, and an output torque of the series elastic actuator at the current time point (S102); obtaining a feedforward dynamics model by means of a feedforward compensator according to the nominal dynamics model and a scaling coefficient of rotational inertia of the motor (S103); obtaining a feedforward compensation amount according to the feedforward dynamics model and a desired output torque of the series elastic actuator (S104); and obtaining a desired current value and outputting the desired current value to the motor according to the real-time disturbance quantity, the feedforward compensation amount, and an ideal current value obtained by means of a proportional-differential controller (S105). The dynamic response performance can be improved, the control precision and the robustness of external disturbance are ensured, the stability is improved, and an algorithm is simple.

Description

一种力矩控制方法、装置、终端设备及存储介质A torque control method, device, terminal equipment and storage medium
本申请要求于2021年02月24日在中国专利局提交的、申请号为202110206469.0的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. 202110206469.0, filed with the Chinese Patent Office on February 24, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于串联弹性驱动器(Series Elastic Actuator,SEA)技术领域,尤其涉及一种力矩控制方法、装置、终端设备及存储介质。The present application belongs to the technical field of Series Elastic Actuator (SEA), and in particular, relates to a torque control method, device, terminal device and storage medium.
背景技术Background technique
串联弹性驱动器技术是一种力控关节技术,通过在电机与负载之间串联弹性元件(弹簧等)实现,当电机驱动负载运动时,首先会使弹性元件发生弹性形变以产生弹性力矩,通过弹性力矩驱动负载运动,可通过测量弹性元件的形变量获得用于驱动负载的弹性力矩的大小。弹性元件提高了负载的柔顺性和抗冲击性,使得负载容易反驱,有天然的被动安全特性;同时,通过检测已标定刚度的弹性元件的形变量来检测弹性力矩,有较高的力保真性,进而可实现精确的力矩控制;此外,还可通过弹性元件实现能量的储存与释放,提高能量的使用效率。然而,弹性元件的引入使得串联弹性驱动器的刚度明显下降,从而使得串联弹性驱动器的力控带宽与刚性驱动器相比明显下降,此外,由于弹性元件将电机与负载解耦,其力控算法更加复杂,且负载更容易受到扰动影响,影响力矩控制的精度和鲁棒性。The series elastic drive technology is a force-controlled joint technology. It is realized by connecting elastic elements (springs, etc.) in series between the motor and the load. When the motor drives the load to move, the elastic element will be elastically deformed to generate elastic torque. The torque drives the movement of the load, and the magnitude of the elastic torque used to drive the load can be obtained by measuring the deformation of the elastic element. The elastic element improves the flexibility and impact resistance of the load, which makes the load easy to drive back and has natural passive safety characteristics; at the same time, the elastic moment is detected by detecting the deformation amount of the elastic element whose stiffness has been calibrated, which has a higher force guarantee. In addition, the storage and release of energy can be realized through elastic elements, and the efficiency of energy use can be improved. However, the introduction of the elastic element makes the stiffness of the series elastic driver significantly decrease, so that the force control bandwidth of the series elastic driver is obviously reduced compared with that of the rigid driver. In addition, since the elastic element decouples the motor from the load, its force control algorithm is more complicated. , and the load is more susceptible to disturbance, which affects the accuracy and robustness of torque control.
技术问题technical problem
有鉴于此,本申请实施例提供了一种力矩控制方法、装置、终端设备及存储介质,以解决现有技术中串联弹性驱动器的力控算法复杂,负载更容易受到扰动影响,影响力矩控制的精度和鲁棒性的问题。In view of this, the embodiments of the present application provide a torque control method, device, terminal device and storage medium, so as to solve the problem that the force control algorithm of the series elastic drive in the prior art is complex, the load is more easily affected by disturbance, and the torque control is affected. issues of accuracy and robustness.
技术解决方案technical solutions
本申请实施例的第一方面提供了一种力矩控制方法,包括:A first aspect of the embodiments of the present application provides a torque control method, including:
建立串联弹性驱动器的标称动力学模型;Build the nominal dynamics model of the series elastic drive;
通过扰动观测器根据所述标称动力学模型、当前时刻电机输入的电流值和当前时刻所述串联弹性驱动器的输出力矩,获得实时扰动量;Obtain the real-time disturbance amount through the disturbance observer according to the nominal dynamic model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment;
通过前馈补偿器根据所述标称动力学模型和所述电机的转动惯量的缩放系数,获得前馈动力学模型;Obtaining a feedforward dynamic model according to the nominal dynamic model and the scaling factor of the moment of inertia of the motor by a feedforward compensator;
根据所述前馈动力学模型和所述串联弹性驱动器的期望输出力矩,获得前馈补偿量;obtaining a feedforward compensation amount according to the feedforward dynamic model and the expected output torque of the series elastic driver;
根据所述实时扰动量、所述前馈补偿量和通过比例微分控制器获得的理想电流值,获得期望电流值并输出至所述电机。According to the real-time disturbance amount, the feedforward compensation amount and the ideal current value obtained by the proportional-derivative controller, a desired current value is obtained and output to the motor.
本申请实施例的第二方面提供了一种力矩控制装置,包括:A second aspect of the embodiments of the present application provides a torque control device, including:
模型建立单元,用于建立串联弹性驱动器的标称动力学模型;A model building unit for building a nominal dynamic model of the series elastic drive;
扰动观测单元,用于通过扰动观测器根据所述标称动力学模型、当前时刻电机输入的电流值和当前时刻所述串联弹性驱动器的输出力矩,获得实时扰动量;a disturbance observation unit, configured to obtain a real-time disturbance amount through the disturbance observer according to the nominal dynamics model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment;
前馈补偿单元,用于通过前馈补偿器根据所述标称动力学模型和所述电机的转动惯量的缩放系数,获得前馈动力学模型;根据所述前馈动力学模型和所述串联弹性驱动器的期望输出力矩,获得前馈补偿量;a feed-forward compensation unit, configured to obtain a feed-forward dynamic model according to the nominal dynamic model and the scaling factor of the rotational inertia of the motor through a feed-forward compensator; according to the feed-forward dynamic model and the series connection The expected output torque of the elastic driver is obtained, and the feedforward compensation amount is obtained;
比例微分单元,用于根据所述实时扰动量、所述前馈补偿量和通过比例微分控制器获得的理想电流值,获得期望电流值并输出至所述电机。A proportional-derivative unit, configured to obtain a desired current value and output it to the motor according to the real-time disturbance amount, the feedforward compensation amount and the ideal current value obtained by the proportional-derivative controller.
本申请实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,还包括串联弹性驱动器和负载,所述串联弹性驱动器包括电机和弹性元件,所述串联弹性驱动器与所述负载连接,所述处理器执行所述计算机程序时实现如本申请实施例的第一方面所述方法的步骤。A third aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and also including a series elastic driver and a load, the The series elastic driver includes a motor and an elastic element, the series elastic driver is connected with the load, and the processor implements the steps of the method according to the first aspect of the embodiments of the present application when the processor executes the computer program.
本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如本申请实施例的第一方面所述方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the first aspect of the embodiments of the present application is implemented steps of the method described.
本申请实施例的第一方面提供的力矩控制方法,通过建立串联弹性驱动器的标称动力学模型;通过扰动观测器根据标称动力学模型、当前时刻电机输入的电流值和当前时刻串联弹性驱动器的输出力矩,获得实时扰动量;通过前馈补偿器根据标称动力学模型和电机的转动惯量的缩放系数,获得前馈动力学模型;根据前馈动力学模型和串联弹性驱动器的期望输出力矩,获得前馈补偿量;根据所述实时扰动量、所述前馈补偿量和通过比例微分控制器获得的理想电流值,获得期望电流值并输出至所述电机,可以提高动态响应性能,确保控制精度和对外界扰动的鲁棒性,实现更好的控制效果,提高稳定性且算法简单。In the torque control method provided by the first aspect of the embodiments of the present application, the nominal dynamics model of the series elastic driver is established; the disturbance observer is used to determine the nominal dynamics model, the current value input by the motor at the current moment, and the series elastic driver at the current moment. The real-time disturbance amount is obtained by the output torque; the feedforward dynamic model is obtained according to the scaling factor of the nominal dynamic model and the moment of inertia of the motor through the feedforward compensator; the expected output torque is obtained according to the feedforward dynamic model and the series elastic drive , obtain the feedforward compensation amount; according to the real-time disturbance amount, the feedforward compensation amount and the ideal current value obtained by the proportional derivative controller, obtain the desired current value and output it to the motor, which can improve the dynamic response performance and ensure Control accuracy and robustness to external disturbances, achieve better control effect, improve stability and simple algorithm.
可以理解的是,上述第二方面至第四方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the foregoing second aspect to the fourth aspect, reference may be made to the relevant descriptions in the foregoing first aspect, and details are not described herein again.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请实施例提供的力矩控制方法的流程示意图;1 is a schematic flowchart of a torque control method provided by an embodiment of the present application;
图2是本申请实施例提供的扰动观测器的数学模型的示意图;2 is a schematic diagram of a mathematical model of a disturbance observer provided by an embodiment of the present application;
图3是本申请实施例提供的力矩控制装置的结构示意图;3 is a schematic structural diagram of a torque control device provided by an embodiment of the present application;
图4是本申请实施例提供的终端设备的结构示意图。FIG. 4 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
本申请实施例提供的力矩控制方法,可以应用于机器人、机械臂、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备等终端设备。终端设备包括处理器、串联弹性驱动器和负载,处理器用于控制串联弹性驱动器驱动负载运动,本申请实施例对终端设备的具体类型不作任何限制。机器人具体可以是服务机器人、水下机器人、娱乐机器人、军用机器人、农业机器人等,本申请实施例对机器人的具体类型不作任何限制。根据终端设备类型的不同,负载的类型也不相同,例如,终端设备为机器人时,负载可以是机器人的可运动关节。The torque control method provided by the embodiments of the present application can be applied to terminal devices such as robots, robotic arms, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, and the like. The terminal device includes a processor, a series elastic driver, and a load. The processor is used to control the series elastic driver to drive the movement of the load. The embodiment of the present application does not limit the specific type of the terminal device. The robot may specifically be a service robot, an underwater robot, an entertainment robot, a military robot, an agricultural robot, etc. The embodiments of the present application do not impose any restrictions on the specific type of the robot. Depending on the type of terminal device, the type of load is also different. For example, when the terminal device is a robot, the load can be a movable joint of the robot.
如图1所示,本申请实施例提供的力矩控制方法,包括如下步骤S101至S105:As shown in FIG. 1 , the torque control method provided by the embodiment of the present application includes the following steps S101 to S105:
步骤S101、建立串联弹性驱动器的标称动力学模型。Step S101, establishing a nominal dynamic model of the series elastic drive.
在应用中,串联弹性驱动器包括电机和弹性元件,由于串联弹性驱动器的弹性元件将电机与负载解耦,因此,串联弹性驱动器的标称动力学模型由电机的动力学模型和负载的动力学模型两部分组成。In the application, the series elastic drive consists of a motor and an elastic element. Since the elastic element of the series elastic drive decouples the motor from the load, the nominal dynamic model of the series elastic drive consists of the dynamic model of the motor and the dynamic model of the load. Consists of two parts.
在一个实施例中,步骤S101包括:In one embodiment, step S101 includes:
根据电机的动力学模型和负载的动力学模型,建立串联弹性驱动器的标称动力学模型。According to the dynamic model of the motor and the dynamic model of the load, the nominal dynamic model of the series elastic drive is established.
在一个实施例中,所述电机的动力学模型的表达式为:In one embodiment, the expression of the dynamic model of the motor is:
Figure PCTCN2021124622-appb-000001
Figure PCTCN2021124622-appb-000001
其中,J m表示所述电机的转动惯量,θ m表示所述电机的转动角度,B m表示所述电机的阻尼项,K s表示弹性元件的刚度,θ l表示所述负载的转动角度,τ dm表示所述电机的不确定因素,τ m表示所述电机的输出力矩。 Among them, J m represents the moment of inertia of the motor, θ m represents the rotation angle of the motor, B m represents the damping term of the motor, K s represents the stiffness of the elastic element, θ l represents the rotation angle of the load, τ dm represents the uncertainty factor of the motor, and τ m represents the output torque of the motor.
在应用中,电机的输出力矩与电机输入的电流的关系为τ m=βi,β为电机的等效力矩系数,电机的不确定因素包括库伦摩擦、电机的动力学模型的误差等。 In application, the relationship between the motor's output torque and the motor's input current is τ m = βi, where β is the equivalent torque coefficient of the motor. The uncertain factors of the motor include Coulomb friction and the error of the motor's dynamic model.
在一个实施例中,所述负载的动力学模型的表达式为:In one embodiment, the expression of the dynamic model of the load is:
Figure PCTCN2021124622-appb-000002
Figure PCTCN2021124622-appb-000002
其中,J l表示所述负载的转动惯量,B l表示所述负载的阻尼项,τ ext表示所述负载受到的来自外界环境的力矩。 Among them, J l represents the moment of inertia of the load, B l represents the damping term of the load, and τ ext represents the moment from the external environment that the load receives.
在一个实施例中,所述标称动力学模型的表达式为:In one embodiment, the expression of the nominal kinetic model is:
Figure PCTCN2021124622-appb-000003
Figure PCTCN2021124622-appb-000003
τ s(s)=K sΔθ τ s (s)=K s Δθ
Δθ=θ ml Δθ=θ ml
其中,P n(s)表示所述标称动力学模型,i(s)表示所述电机输入的电流值,τ s(s)表示所述串联弹性驱动器的输出力矩,β表示所述电机的等效力矩系数,s表示拉普拉斯变换中的复数变量,Δθ表示所述弹性元件的形变量。 Wherein, P n (s) represents the nominal dynamic model, i(s) represents the current value input by the motor, τ s (s) represents the output torque of the series elastic driver, and β represents the motor’s output torque. Equivalent moment coefficient, s represents the complex variable in the Laplace transform, and Δθ represents the deformation amount of the elastic element.
在应用中,τ s(s)=K sΔθ为弹性元件产生的弹性力矩,也即串联弹性驱动器的输出力矩。考虑理想情况,忽略电机的扰动量τ dm(也即电机的不确定因素)与负载所受外力τ ext,当负载固定时,由电机的动力学模型和负载的动力学模型可得以电流为串联弹性驱动器的输入、弹性力矩为串联弹性驱动器的输出的串联弹性驱动器的系统开环传递函数P n(s)(也即标称动力学模型)。用于计算得到标称动力学模型的各项参数均可通过电机手册或者参数辨识算法辨识得到,属于已知参数。 In application, τ s (s)=K s Δθ is the elastic torque generated by the elastic element, that is, the output torque of the series elastic driver. Considering the ideal situation, ignoring the disturbance of the motor τ dm (that is, the uncertainty factor of the motor) and the external force τ ext on the load, when the load is fixed, the dynamic model of the motor and the dynamic model of the load can take the current as a series connection The input of the elastic drive, the elastic torque is the system open-loop transfer function P n (s) of the series elastic drive (ie, the nominal dynamic model) of the output of the serial elastic drive. The parameters used to calculate the nominal dynamic model can be identified through the motor manual or the parameter identification algorithm, and are known parameters.
步骤S102、通过扰动观测器根据所述标称动力学模型、当前时刻电机输入的电流值和 当前时刻所述串联弹性驱动器的输出力矩,获得实时扰动量。Step S102: Obtain a real-time disturbance amount through the disturbance observer according to the nominal dynamics model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment.
如图2所示,示例性的示出了扰动观测器的数学模型的示意图;其中,C ff为前馈滤波器,τ ref为期望输出力矩,PD表示比例微分控制器(Proportional-differential,PD),i表示电机输入的电流值,d为系统受到的扰动,P为系统的实际动力学模型,SEA为串联弹性驱动器,P n为标称动力学模型,P n -1为标称动力学模型的逆模型,Q为低通滤波器,DOB表示扰动观测器(Disturbance OBserver,DOB),τ s表示串联弹性驱动器的输出力矩。 As shown in FIG. 2 , a schematic diagram of the mathematical model of the disturbance observer is exemplarily shown; wherein, Cff is the feedforward filter, τref is the expected output torque, and PD is the proportional-differential controller (Proportional-differential, PD). ), i is the current value input by the motor, d is the disturbance to the system, P is the actual dynamic model of the system, SEA is the series elastic drive, P n is the nominal dynamic model, and P n -1 is the nominal dynamic The inverse model of the model, Q is the low-pass filter, DOB is the disturbance observer (Disturbance OBserver, DOB), τ s is the output torque of the series elastic driver.
在应用中,由于标称动力学模型的逆模型P n -1在物理上不可实现,因此,需要引入了一个低通滤波器Q,该低通滤波器具体可以是二阶巴特沃斯(Butterworth)滤波器。 In the application, since the inverse model P n -1 of the nominal dynamic model cannot be realized physically, a low-pass filter Q needs to be introduced, and the low-pass filter can be a second-order Butterworth (Butterworth) )filter.
在一个实施例中,步骤S102包括:In one embodiment, step S102 includes:
通过标称动力学模型建立低通滤波器的滤波器模型;The filter model of the low-pass filter is established by the nominal dynamics model;
通过扰动观测器根据所述标称动力学模型获得所述标称动力学模型的逆模型;Obtaining an inverse model of the nominal dynamic model according to the nominal dynamic model by a disturbance observer;
根据所述标称动力学模型的逆模型、当前时刻电机输入的电流值、当前时刻所述串联弹性驱动器的输出力矩和所述滤波器模型,获得实时扰动量。The real-time disturbance amount is obtained according to the inverse model of the nominal dynamic model, the current value input by the motor at the current moment, the output torque of the series elastic driver at the current moment, and the filter model.
在一个实施例中,所述滤波器模型的表达式为:In one embodiment, the expression of the filter model is:
Figure PCTCN2021124622-appb-000004
Figure PCTCN2021124622-appb-000004
其中,Q(s)表示所述滤波器模型,s表示拉普拉斯变换中的复数变量,ω q表示所述低通滤波器的截止频率。 Wherein, Q(s) represents the filter model, s represents the complex variable in the Laplace transform, and ω q represents the cutoff frequency of the low-pass filter.
在应用中,滤波器模型Q(s)即为图2所示的低通滤波器Q的等效数学模型。低通滤波器的截止频率ω q的取值应大于串联弹性驱动器的力控带宽的上限值,同时避免取值过高以尽可能过滤高频噪声,从而消除高频噪声的影响,也即,截止频率应当大于串联弹性驱动器的力控带宽的上限值且小于高频噪声的频率。 In application, the filter model Q(s) is the equivalent mathematical model of the low-pass filter Q shown in FIG. 2 . The value of the cut-off frequency ω q of the low-pass filter should be greater than the upper limit value of the force control bandwidth of the series elastic driver, and at the same time, it should be avoided that the value is too high to filter high-frequency noise as much as possible, so as to eliminate the influence of high-frequency noise, that is, , the cutoff frequency should be greater than the upper limit of the force control bandwidth of the series elastic driver and less than the frequency of high frequency noise.
在一个实施例中,所述实时扰动量的表达式为:In one embodiment, the expression of the real-time disturbance amount is:
Figure PCTCN2021124622-appb-000005
Figure PCTCN2021124622-appb-000005
其中,
Figure PCTCN2021124622-appb-000006
表示的所述扰动量,Q(s)表示所述滤波器模型,i 0(s)表示当前时刻所述电机输入的电流值,
Figure PCTCN2021124622-appb-000007
表示所述标称动力学模型的逆模型,
Figure PCTCN2021124622-appb-000008
表示当前时刻所述串联弹性驱动器的输出力矩。
in,
Figure PCTCN2021124622-appb-000006
represents the disturbance amount, Q(s) represents the filter model, i 0 (s) represents the current value input by the motor at the current moment,
Figure PCTCN2021124622-appb-000007
represents the inverse model of the nominal kinetic model,
Figure PCTCN2021124622-appb-000008
Indicates the output torque of the series elastic driver at the current moment.
在应用中,串联弹性驱动器的输出力矩τ s可通过已标定的弹性元件的刚度K s以及检测得到的弹性元件的形变量Δθ得到,根据图2,结合当前时刻电机输入的电流值i和当前时刻串联弹性驱动器的输出力矩τ s,可得实时扰动量的估计值
Figure PCTCN2021124622-appb-000009
In the application, the output torque τ s of the series elastic driver can be obtained from the calibrated stiffness K s of the elastic element and the detected deformation value Δθ of the elastic element. According to Fig. 2, the current value i input by the motor at the current moment and the current value of the current The output torque τ s of the series elastic driver at time, the estimated value of the real-time disturbance can be obtained
Figure PCTCN2021124622-appb-000009
在应用中,把实时扰动量估计值
Figure PCTCN2021124622-appb-000010
补偿至串联弹性驱动器的输入端,等效的串联弹性驱动器的输出力矩τ s(s)可表示为:
In the application, the real-time disturbance estimation value is
Figure PCTCN2021124622-appb-000010
Compensated to the input of the series elastic driver, the output torque τ s (s) of the equivalent series elastic driver can be expressed as:
Figure PCTCN2021124622-appb-000011
Figure PCTCN2021124622-appb-000011
当实时扰动量估计值
Figure PCTCN2021124622-appb-000012
的频率低于低通滤波器Q(s)的截止频率时,Q(s)=1,则上式可简化为:
When the real-time disturbance estimate is
Figure PCTCN2021124622-appb-000012
When the frequency is lower than the cutoff frequency of the low-pass filter Q(s), Q(s)=1, the above formula can be simplified as:
τ s(s)=P n(s)i(s) τ s (s)=P n (s)i(s)
即串联弹性驱动器的模型由实际动力学模型P(s)调整为标称动力学模型P n(s),隔绝了扰动量d(s)的影响。 That is, the model of the series elastic drive is adjusted from the actual dynamic model P(s) to the nominal dynamic model Pn (s), which isolates the influence of the disturbance amount d(s).
步骤S103、通过前馈补偿器根据所述标称动力学模型和所述电机的转动惯量的缩放系数,获得前馈动力学模型。Step S103 , obtaining a feedforward dynamic model according to the nominal dynamic model and the scaling factor of the moment of inertia of the motor through a feedforward compensator.
在应用中,为提升串联弹性驱动器的动态性能,引入了一个基于标称动力学模型的前馈补偿器,由标称动力学模型的逆模型P ff -1(s)以及二阶巴特沃斯滤波器Q(s)组成。与扰动观测器中的逆模型P n -1不同的是,P ff -1(s)中包含一个电机的转动惯量的缩放系数α,使得用于前馈的标称动力学模型中的转动惯量为αJ m。α的取值为0<α<1,可根据实际需要设置,将α引入的目的是减小标称动力学模型前馈造成的过补偿,同时抑制弹性元件带来的共振现象。 In the application, in order to improve the dynamic performance of the series elastic drive, a feedforward compensator based on the nominal dynamic model is introduced. The filter Q(s) is composed. Unlike the inverse model P n -1 in the disturbance observer, P ff -1 (s) contains a scaling factor α of the motor's moment of inertia such that the moment of inertia in the nominal dynamic model for feedforward is αJ m . The value of α is 0<α<1, which can be set according to actual needs. The purpose of introducing α is to reduce the overcompensation caused by the feedforward of the nominal dynamic model, and at the same time suppress the resonance phenomenon caused by the elastic element.
在一个实施例中,所述前馈动力学模型的表达式为:In one embodiment, the expression of the feedforward dynamics model is:
Figure PCTCN2021124622-appb-000013
Figure PCTCN2021124622-appb-000013
其中,P ff(s)表示所述前馈动力学模型,α表示所述电机的转动惯量的缩放系数,β表示所述电机的等效力矩系数,K s表示弹性元件的刚度,J m表示所述电机的转动惯量,s表示拉普拉斯变换中的复数变量,B m表示所述电机的阻尼项。 Among them, P ff (s) represents the feedforward dynamic model, α represents the scaling factor of the moment of inertia of the motor, β represents the equivalent torque coefficient of the motor, K s represents the stiffness of the elastic element, and J m represents the The moment of inertia of the motor, s represents the complex variable in the Laplace transform, and B m represents the damping term of the motor.
步骤S104、根据所述前馈动力学模型和所述串联弹性驱动器的期望输出力矩,获得前馈补偿量。Step S104: Obtain a feedforward compensation amount according to the feedforward dynamic model and the expected output torque of the series elastic driver.
在一个实施例中,步骤S104包括:In one embodiment, step S104 includes:
根据所述前馈动力学模型、所述串联弹性驱动器的期望输出力矩和所述滤波器模型,获得前馈补偿量。A feedforward compensation amount is obtained from the feedforward dynamics model, the expected output torque of the series elastic drive, and the filter model.
在一个实施例中,所述前馈补偿量的表达式为:In one embodiment, the expression of the feedforward compensation amount is:
Figure PCTCN2021124622-appb-000014
Figure PCTCN2021124622-appb-000014
其中,C ff(s)表示所述前馈补偿量,
Figure PCTCN2021124622-appb-000015
表示所述前馈动力学模型的逆模型,Q(s)表示所述滤波器模型,τ ref(s)表示所述串联弹性驱动器的期望输出力矩。
Among them, C ff (s) represents the feedforward compensation amount,
Figure PCTCN2021124622-appb-000015
represents the inverse model of the feedforward dynamics model, Q(s) represents the filter model, and τ ref (s) represents the desired output torque of the series elastic drive.
步骤S105、根据所述实时扰动量、所述前馈补偿量和通过比例微分控制器获得的理想电流值,获得期望电流值并输出至所述电机。Step S105: Obtain a desired current value and output it to the motor according to the real-time disturbance amount, the feedforward compensation amount, and the ideal current value obtained through the proportional-derivative controller.
在应用中,在串联弹性驱动器的力矩控制中,需要合适的反馈控制器使闭环系统稳定, 可以采用如图2所示的比例微分控制器。理想电流值即为通过比例微分控制器计算得出的用于输出至电机的电流值。In the application, in the torque control of the series elastic drive, a suitable feedback controller is required to stabilize the closed-loop system, and a proportional-derivative controller as shown in Figure 2 can be used. The ideal current value is the current value calculated by the proportional-derivative controller for output to the motor.
在一个实施例中,所述理想电流值的表达式为:In one embodiment, the expression of the ideal current value is:
Figure PCTCN2021124622-appb-000016
Figure PCTCN2021124622-appb-000016
其中,i PD(s)表示所述理想电流值,K P表示所述比例微分控制器中比例环节的系数,τ ref(s)表示所述串联弹性驱动器的期望输出力矩,
Figure PCTCN2021124622-appb-000017
表示当前时刻所述串联弹性驱动器的输出力矩,K P表示所述比例微分控制器中微分环节的系数,τ ref′(s)表示所述串联弹性驱动器的期望输出力矩的导数,
Figure PCTCN2021124622-appb-000018
表示当前时刻所述串联弹性驱动器的输出力矩的倒数。
Among them, i PD (s) represents the ideal current value, K P represents the coefficient of the proportional link in the proportional-derivative controller, τ ref (s) represents the expected output torque of the series elastic driver,
Figure PCTCN2021124622-appb-000017
represents the output torque of the series elastic driver at the current moment, K P represents the coefficient of the differential link in the proportional-derivative controller, τ ref '(s) represents the derivative of the expected output torque of the series elastic driver,
Figure PCTCN2021124622-appb-000018
Indicates the inverse of the output torque of the series elastic driver at the current moment.
在一个实施例中,所述期望电流值的表达式为:In one embodiment, the expression of the desired current value is:
Figure PCTCN2021124622-appb-000019
Figure PCTCN2021124622-appb-000019
其中,i 1(s)表示所述电机的期望电流值,
Figure PCTCN2021124622-appb-000020
表示所述实时扰动量,C ff(s)表示所述前馈补偿量,i PD(s)表示所述理想电流值。
where i 1 (s) represents the expected current value of the motor,
Figure PCTCN2021124622-appb-000020
represents the real-time disturbance amount, C ff (s) represents the feedforward compensation amount, and i PD (s) represents the ideal current value.
本申请实施例提供的力矩控制方法,通过采用比例微分控制器,可以使串联弹性驱动器的闭环系统稳定;由于串联弹性驱动器系统中会受到摩擦力以及外部扰动的影响,通过采用扰动观测器使串联弹性驱动器标称化,可以实现扰动量的观测和补偿;为了提升串联弹性驱动器系统的动态性能,通过采用基于标称动力学模型的前馈补偿器,并且为避免标称动力学模型前馈的过补偿,在前馈项中引入了等效转动惯量的缩放系数;由比例微分控制器、扰动观测器和前馈补偿器三部分组成的控制系统,不仅可以提高终端设备的动态响应性能,又可以确保控制精度和对外界扰动的鲁棒性,且扰动观测器和前馈补偿器皆位于终端设备的控制架构的内环,使得外环的控制算法可在其基础上实现更加良好的控制效果。The torque control method provided in the embodiment of the present application can stabilize the closed-loop system of the series elastic driver by using the proportional-differential controller; since the series elastic driver system will be affected by friction and external disturbance, the series The elastic actuator is normalized, which can realize the observation and compensation of the disturbance; in order to improve the dynamic performance of the series elastic actuator system, a feedforward compensator based on the nominal dynamic model is used, and in order to avoid the feedforward of the nominal dynamic model. Over-compensation, the scaling factor of the equivalent moment of inertia is introduced into the feedforward term; the control system consisting of the proportional derivative controller, the disturbance observer and the feedforward compensator can not only improve the dynamic response performance of the terminal equipment, but also It can ensure the control accuracy and robustness to external disturbances, and the disturbance observer and feedforward compensator are located in the inner loop of the control architecture of the terminal device, so that the control algorithm of the outer loop can achieve better control effects based on it. .
本申请实施例还提供一种力矩控制装置,用于执行上述力矩控制方法实施例中的步骤。力矩控制装置可以是终端设备中的虚拟装置(virtual appliance),由终端设备的处理器运行,也可以是终端设备本身。Embodiments of the present application further provide a torque control device, which is used to execute the steps in the above torque control method embodiments. The torque control device can be a virtual appliance in the terminal equipment, run by the processor of the terminal equipment, or it can be the terminal equipment itself.
如图3所示,本申请实施例提供的力矩控制装置,包括:As shown in FIG. 3 , the torque control device provided by the embodiment of the present application includes:
模型建立单元101,用于建立串联弹性驱动器的标称动力学模型;a model establishment unit 101, used to establish a nominal dynamic model of the series elastic drive;
扰动观测单元102,用于通过扰动观测器根据所述标称动力学模型、当前时刻电机输入的电流值和当前时刻所述串联弹性驱动器的输出力矩,获得实时扰动量;A disturbance observation unit 102, configured to obtain a real-time disturbance amount through the disturbance observer according to the nominal dynamics model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment;
前馈补偿单元103,用于通过前馈补偿器根据所述标称动力学模型和所述电机的转动惯量的缩放系数,获得前馈动力学模型;根据所述前馈动力学模型和所述串联弹性驱动器的期望输出力矩,获得前馈补偿量;A feed-forward compensation unit 103 is configured to obtain a feed-forward dynamic model according to the nominal dynamic model and the scaling coefficient of the moment of inertia of the motor through a feed-forward compensator; according to the feed-forward dynamic model and the The expected output torque of the series elastic driver is obtained, and the feedforward compensation amount is obtained;
比例微分单元104,用于根据所述实时扰动量、所述前馈补偿量和通过比例微分控制 器获得的理想电流值,获得期望电流值并输出至所述电机。The proportional-derivative unit 104 is configured to obtain a desired current value and output it to the motor according to the real-time disturbance amount, the feed-forward compensation amount and the ideal current value obtained by the proportional-derivative controller.
在应用中,力矩控制装置中的各单元可以为软件程序单元,也可以通过处理器中集成的不同逻辑电路实现,还可以通过多个分布式处理器实现。In application, each unit in the torque control device may be a software program unit, or may be implemented by different logic circuits integrated in the processor, or may be implemented by multiple distributed processors.
如图4所示,本申请实施例还提供一种终端设备200,包括:至少一个处理器201(图4中仅示出一个处理器)、存储器202以及存储在存储器202中并可在至少一个处理器201上运行的计算机程序203,还包括串联弹性驱动器204和负载205,处理器201执行计算机程序203时实现上述各个力矩控制方法实施例中的步骤。As shown in FIG. 4 , an embodiment of the present application further provides a terminal device 200 , including: at least one processor 201 (only one processor is shown in FIG. 4 ), a memory 202 , and a terminal device 200 stored in the memory 202 and available in at least one The computer program 203 running on the processor 201 further includes a series elastic driver 204 and a load 205. When the processor 201 executes the computer program 203, the steps in the above torque control method embodiments are implemented.
在应用中,终端设备可包括,但不仅限于,存储器、处理器、串联弹性驱动器和负载。本领域技术人员可以理解,图4仅仅是终端设备的举例,并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。In applications, end devices may include, but are not limited to, memory, processors, serial elastic drives, and loads. Those skilled in the art can understand that FIG. 4 is only an example of a terminal device, and does not constitute a limitation on the terminal device. It may include more or less components than the one shown in the figure, or combine some components, or different components, such as It may also include input and output devices, network access devices, and the like.
在应用中,处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。In an application, the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuits) , ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
在应用中,存储器在一些实施例中可以是终端设备的内部存储单元,例如终端设备的硬盘或内存。存储器在另一些实施例中也可以是终端设备的外部存储设备,例如终端设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器还可以既包括终端设备的内部存储单元也包括外部存储设备。存储器用于存储操作系统、应用程序、引导装载程序(Boot Loader)、数据以及其他程序等,例如计算机程序的程序代码等。存储器还可以用于暂时地存储已经输出或者将要输出的数据。In application, the memory may be an internal storage unit of the terminal device in some embodiments, such as a hard disk or a memory of the terminal device. In other embodiments, the memory can also be an external storage device of the terminal device, for example, a plug-in hard disk equipped on the terminal device, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory Card (Flash Card), etc. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store an operating system, application programs, a boot loader (Boot Loader), data, and other programs, such as program codes of computer programs, and the like. The memory may also be used to temporarily store data that has been or will be output.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the above-mentioned devices/units are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section. It is not repeated here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形式实现。另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of the description, only the division of the above functional units is used for illustration. The internal structure of the device is divided into different functional units to complete all or part of the functions described above. Each functional unit in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may be implemented in the form of hardware. , and can also be implemented in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working process of the units in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现上述任一实施例的力矩控制方法。An embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the torque control method of any of the foregoing embodiments.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述任一实施例的力矩控制方法。The embodiments of the present application provide a computer program product, which, when the computer program product runs on a terminal device, enables the terminal device to execute the torque control method of any one of the foregoing embodiments.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质至少可以包括:能够将计算机程序代码携带到终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above-mentioned embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program is stored in a computer-readable storage medium. When executed by the processor, the steps of the foregoing method embodiments may be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate forms, and the like. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access memory) Memory), electrical carrier signals, telecommunications signals, and software distribution media. For example, U disk, mobile hard disk, disk or CD, etc.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置、终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置、终端设备实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus, terminal device and method may be implemented in other manners. For example, the above-described embodiments of the apparatus and terminal device are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined. Either it can be integrated into another system, or some features can be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换, 并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The recorded technical solutions are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in the application. within the scope of protection.

Claims (12)

  1. 一种力矩控制方法,其特征在于,包括:A torque control method, comprising:
    建立串联弹性驱动器的标称动力学模型;Build the nominal dynamics model of the series elastic drive;
    通过扰动观测器根据所述标称动力学模型、当前时刻电机输入的电流值和当前时刻所述串联弹性驱动器的输出力矩,获得实时扰动量;Obtain the real-time disturbance amount through the disturbance observer according to the nominal dynamic model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment;
    通过前馈补偿器根据所述标称动力学模型和所述电机的转动惯量的缩放系数,获得前馈动力学模型;Obtaining a feedforward dynamic model according to the nominal dynamic model and the scaling factor of the moment of inertia of the motor by a feedforward compensator;
    根据所述前馈动力学模型和所述串联弹性驱动器的期望输出力矩,获得前馈补偿量;obtaining a feedforward compensation amount according to the feedforward dynamic model and the expected output torque of the series elastic driver;
    根据所述实时扰动量、所述前馈补偿量和通过比例微分控制器获得的理想电流值,获得期望电流值并输出至所述电机。According to the real-time disturbance amount, the feedforward compensation amount and the ideal current value obtained by the proportional-derivative controller, a desired current value is obtained and output to the motor.
  2. 如权利要求1所述的力矩控制方法,其特征在于,所述建立串联弹性驱动器的标称动力学模型,包括:The torque control method according to claim 1, wherein the establishing a nominal dynamic model of the series elastic driver comprises:
    根据电机的动力学模型和负载的动力学模型,建立串联弹性驱动器的标称动力学模型。According to the dynamic model of the motor and the dynamic model of the load, the nominal dynamic model of the series elastic drive is established.
  3. 如权利要求2所述的力矩控制方法,其特征在于,所述电机的动力学模型的表达式为:The torque control method according to claim 2, wherein the expression of the dynamic model of the motor is:
    Figure PCTCN2021124622-appb-100001
    Figure PCTCN2021124622-appb-100001
    其中,J m表示所述电机的转动惯量,θ m表示所述电机的转动角度,B m表示所述电机的阻尼项,K s表示弹性元件的刚度,θ l表示所述负载的转动角度,τ dm表示所述电机的不确定因素,τ m表示所述电机的输出力矩; Among them, J m represents the moment of inertia of the motor, θ m represents the rotation angle of the motor, B m represents the damping term of the motor, K s represents the stiffness of the elastic element, θ l represents the rotation angle of the load, τ dm represents the uncertainty factor of the motor, and τ m represents the output torque of the motor;
    所述负载的动力学模型的表达式为:The expression of the dynamic model of the load is:
    Figure PCTCN2021124622-appb-100002
    Figure PCTCN2021124622-appb-100002
    其中,J l表示所述负载的转动惯量,B l表示所述负载的阻尼项,τ ext表示所述负载受到的来自外界环境的力矩; Wherein, J l represents the moment of inertia of the load, B l represents the damping term of the load, and τ ext represents the moment from the external environment that the load receives;
    所述标称动力学模型的表达式为:The expression of the nominal kinetic model is:
    Figure PCTCN2021124622-appb-100003
    Figure PCTCN2021124622-appb-100003
    τ s(s)=K sΔθ τ s (s)=K s Δθ
    Δθ=θ ml Δθ=θ ml
    其中,P n(s)表示所述标称动力学模型,i(s)表示所述电机输入的电流值,τ s(s)表示所述串联弹性驱动器的输出力矩,β表示所述电机的等效力矩系数,s表示拉普拉斯变换中的复数变量,Δθ表示所述弹性元件的形变量。 Wherein, P n (s) represents the nominal dynamic model, i(s) represents the current value input by the motor, τ s (s) represents the output torque of the series elastic driver, and β represents the motor’s output torque. The equivalent moment coefficient, s represents the complex variable in the Laplace transform, and Δθ represents the deformation amount of the elastic element.
  4. 如权利要求1所述的力矩控制方法,其特征在于,所述通过扰动观测器根据所述标称动力学模型、当前时刻电机输入的电流值和当前时刻所述串联弹性驱动器的输出力矩, 获得实时扰动量,包括:The torque control method according to claim 1, characterized in that, the disturbance observer obtains, according to the nominal dynamics model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment, Real-time disturbance quantities, including:
    通过标称动力学模型建立低通滤波器的滤波器模型;The filter model of the low-pass filter is established by the nominal dynamics model;
    通过扰动观测器根据所述标称动力学模型获得所述标称动力学模型的逆模型;Obtaining an inverse model of the nominal dynamic model according to the nominal dynamic model by a disturbance observer;
    根据所述标称动力学模型的逆模型、当前时刻电机输入的电流值、当前时刻所述串联弹性驱动器的输出力矩和所述滤波器模型,获得实时扰动量。The real-time disturbance amount is obtained according to the inverse model of the nominal dynamic model, the current value input by the motor at the current moment, the output torque of the series elastic driver at the current moment, and the filter model.
  5. 如权利要求4所述的力矩控制方法,其特征在于,所述滤波器模型的表达式为:The torque control method according to claim 4, wherein the expression of the filter model is:
    Figure PCTCN2021124622-appb-100004
    Figure PCTCN2021124622-appb-100004
    其中,Q(s)表示所述滤波器模型,s表示拉普拉斯变换中的复数变量,ω q表示所述低通滤波器的截止频率; Wherein, Q(s) represents the filter model, s represents the complex variable in the Laplace transform, and ω q represents the cutoff frequency of the low-pass filter;
    所述实时扰动量的表达式为:The expression of the real-time disturbance amount is:
    Figure PCTCN2021124622-appb-100005
    Figure PCTCN2021124622-appb-100005
    其中,
    Figure PCTCN2021124622-appb-100006
    表示的所述扰动量,Q(s)表示所述滤波器模型,i 0(s)表示当前时刻所述电机输入的电流值,
    Figure PCTCN2021124622-appb-100007
    表示所述标称动力学模型的逆模型,
    Figure PCTCN2021124622-appb-100008
    表示当前时刻所述串联弹性驱动器的输出力矩。
    in,
    Figure PCTCN2021124622-appb-100006
    represents the disturbance amount, Q(s) represents the filter model, i 0 (s) represents the current value input by the motor at the current moment,
    Figure PCTCN2021124622-appb-100007
    represents the inverse model of the nominal kinetic model,
    Figure PCTCN2021124622-appb-100008
    Indicates the output torque of the series elastic driver at the current moment.
  6. 如权利要求1所述的力矩控制方法,其特征在于,所述前馈动力学模型的表达式为:The torque control method according to claim 1, wherein the expression of the feedforward dynamic model is:
    Figure PCTCN2021124622-appb-100009
    Figure PCTCN2021124622-appb-100009
    其中,P ff(s)表示所述前馈动力学模型,α表示所述电机的转动惯量的缩放系数,β表示所述电机的等效力矩系数,K s表示弹性元件的刚度,J m表示所述电机的转动惯量,s表示拉普拉斯变换中的复数变量,B m表示所述电机的阻尼项。 Among them, P ff (s) represents the feedforward dynamic model, α represents the scaling factor of the moment of inertia of the motor, β represents the equivalent torque coefficient of the motor, K s represents the stiffness of the elastic element, and J m represents the The moment of inertia of the motor, s represents the complex variable in the Laplace transform, and B m represents the damping term of the motor.
  7. 如权利要求4至6任一项所述的力矩控制方法,其特征在于,所述根据所述前馈动力学模型和所述串联弹性驱动器的期望输出力矩,获得前馈补偿量,包括:The torque control method according to any one of claims 4 to 6, wherein the obtaining a feedforward compensation amount according to the feedforward dynamic model and the expected output torque of the series elastic driver comprises:
    根据所述前馈动力学模型、所述串联弹性驱动器的期望输出力矩和所述滤波器模型,获得前馈补偿量。A feedforward compensation amount is obtained from the feedforward dynamics model, the expected output torque of the series elastic drive, and the filter model.
  8. 如权利要求7所述的力矩控制方法,其特征在于,所述前馈补偿量的表达式为:The torque control method according to claim 7, wherein the expression of the feedforward compensation amount is:
    Figure PCTCN2021124622-appb-100010
    Figure PCTCN2021124622-appb-100010
    其中,C ff(s)表示所述前馈补偿量,
    Figure PCTCN2021124622-appb-100011
    表示所述前馈动力学模型的逆模型,Q(s)表示所述滤波器模型,τ ref(s)表示所述串联弹性驱动器的期望输出力矩。
    Among them, C ff (s) represents the feedforward compensation amount,
    Figure PCTCN2021124622-appb-100011
    represents the inverse model of the feedforward dynamics model, Q(s) represents the filter model, and τ ref (s) represents the desired output torque of the series elastic drive.
  9. 如权利要求1所述的力矩控制方法,其特征在于,所述期望电流值的表达式为:The torque control method according to claim 1, wherein the expression of the desired current value is:
    Figure PCTCN2021124622-appb-100012
    Figure PCTCN2021124622-appb-100012
    其中,i 1(s)表示所述电机的期望电流值,
    Figure PCTCN2021124622-appb-100013
    表示所述实时扰动量,C ff(s)表示所述前 馈补偿量,i PD(s)表示所述理想电流值。
    where i 1 (s) represents the desired current value of the motor,
    Figure PCTCN2021124622-appb-100013
    represents the real-time disturbance amount, C ff (s) represents the feedforward compensation amount, and i PD (s) represents the ideal current value.
  10. 一种力矩控制装置,其特征在于,包括:A torque control device, comprising:
    模型建立单元,用于建立串联弹性驱动器的标称动力学模型;A model building unit for building a nominal dynamic model of the series elastic drive;
    扰动观测单元,用于通过扰动观测器根据所述标称动力学模型、当前时刻电机输入的电流值和当前时刻所述串联弹性驱动器的输出力矩,获得实时扰动量;a disturbance observation unit, configured to obtain a real-time disturbance amount through the disturbance observer according to the nominal dynamics model, the current value input by the motor at the current moment, and the output torque of the series elastic driver at the current moment;
    前馈补偿单元,用于通过前馈补偿器根据所述标称动力学模型和所述电机的转动惯量的缩放系数,获得前馈动力学模型;根据所述前馈动力学模型和所述串联弹性驱动器的期望输出力矩,获得前馈补偿量;a feed-forward compensation unit, configured to obtain a feed-forward dynamic model according to the nominal dynamic model and the scaling factor of the rotational inertia of the motor through a feed-forward compensator; according to the feed-forward dynamic model and the series connection The expected output torque of the elastic driver is obtained, and the feedforward compensation amount is obtained;
    比例微分单元,用于根据所述实时扰动量、所述前馈补偿量和通过比例微分控制器获得的理想电流值,获得期望电流值并输出至所述电机。A proportional-derivative unit, configured to obtain a desired current value and output it to the motor according to the real-time disturbance amount, the feedforward compensation amount and the ideal current value obtained by the proportional-derivative controller.
  11. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,还包括与所述处理器连接的串联弹性驱动器,所述串联弹性驱动器包括电机和弹性元件,所述串联弹性驱动器与负载连接,所述处理器执行所述计算机程序时实现如权利要求1至9任一项所述方法的步骤。A terminal device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that it further comprises a series elastic drive connected to the processor, the series The elastic drive includes a motor and an elastic element, the series elastic drive is connected to a load, and the processor implements the steps of the method according to any one of claims 1 to 9 when executing the computer program.
  12. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至9任一项所述方法的步骤。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
PCT/CN2021/124622 2021-02-24 2021-10-19 Torque control method and apparatus, terminal device, and storage medium WO2022179131A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110206469.0A CN112987812B (en) 2021-02-24 2021-02-24 Torque control method and device, terminal equipment and storage medium
CN202110206469.0 2021-02-24

Publications (1)

Publication Number Publication Date
WO2022179131A1 true WO2022179131A1 (en) 2022-09-01

Family

ID=76350140

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/124622 WO2022179131A1 (en) 2021-02-24 2021-10-19 Torque control method and apparatus, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN112987812B (en)
WO (1) WO2022179131A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112987812B (en) * 2021-02-24 2021-12-10 深圳市优必选科技股份有限公司 Torque control method and device, terminal equipment and storage medium
CN113954078B (en) * 2021-11-17 2023-02-24 深圳市优必选科技股份有限公司 Force control joint control method and device, robot and readable storage medium
CN114260892B (en) * 2021-12-17 2023-12-15 深圳市优必选科技股份有限公司 Elastic joint moment control method and device, readable storage medium and robot
CN114541502B (en) * 2022-02-21 2023-01-10 北京合众鼎新信息技术有限公司 Control method of valve-controlled hydraulic cylinder and automatic control system of bulldozer blade

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110190934A1 (en) * 2010-02-02 2011-08-04 Gm Global Technology Operations, Inc. Architecture for robust force and impedance control of series elastic actuators
CN108873686A (en) * 2018-07-03 2018-11-23 北京华悦龙驰科技有限公司 A kind of control method for series elastic driver
CN109358510A (en) * 2018-11-12 2019-02-19 北京理工大学 A kind of design method for the automatic disturbance rejection controller overcoming backlash nonlinearity
CN110561427A (en) * 2019-08-21 2019-12-13 华中科技大学 Series elastic driver compliance control system and method based on compensation
CN112199833A (en) * 2020-09-29 2021-01-08 深圳市优必选科技股份有限公司 Joint dynamics model optimization method, system, terminal device and storage medium
CN112394637A (en) * 2020-11-13 2021-02-23 江苏集萃智能制造技术研究所有限公司 Cooperative robot control method based on active disturbance rejection control technology
CN112987812A (en) * 2021-02-24 2021-06-18 深圳市优必选科技股份有限公司 Torque control method and device, terminal equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063134A (en) * 2009-11-18 2011-05-18 北京航空航天大学 Device and method for controlling moment
CN102208891B (en) * 2010-11-18 2013-04-24 东南大学 Method for controlling PMSM (permanent magnet synchronous motor) servo system based on friction and disturbance compensation
CN103941586B (en) * 2014-02-08 2016-06-01 上海交通大学 A kind of predictive functional control algorithm tunneling owner's drive system rotating speed
CN106945046A (en) * 2017-04-24 2017-07-14 华南理工大学 Mechanical arm control system and its control method based on variation rigidity elastic driver
AT520232B1 (en) * 2017-07-21 2019-11-15 Avl List Gmbh Method and apparatus for estimating the torque ripple of an electric motor
CN112130598B (en) * 2020-09-25 2021-11-02 北京车和家信息技术有限公司 Torque filtering method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110190934A1 (en) * 2010-02-02 2011-08-04 Gm Global Technology Operations, Inc. Architecture for robust force and impedance control of series elastic actuators
CN108873686A (en) * 2018-07-03 2018-11-23 北京华悦龙驰科技有限公司 A kind of control method for series elastic driver
CN109358510A (en) * 2018-11-12 2019-02-19 北京理工大学 A kind of design method for the automatic disturbance rejection controller overcoming backlash nonlinearity
CN110561427A (en) * 2019-08-21 2019-12-13 华中科技大学 Series elastic driver compliance control system and method based on compensation
CN112199833A (en) * 2020-09-29 2021-01-08 深圳市优必选科技股份有限公司 Joint dynamics model optimization method, system, terminal device and storage medium
CN112394637A (en) * 2020-11-13 2021-02-23 江苏集萃智能制造技术研究所有限公司 Cooperative robot control method based on active disturbance rejection control technology
CN112987812A (en) * 2021-02-24 2021-06-18 深圳市优必选科技股份有限公司 Torque control method and device, terminal equipment and storage medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
CALANCA ANDREA, FIORINI PAOLO: "A Rationale for Acceleration Feedback in Force Control of Series Elastic Actuators", IEEE TRANSACTIONS ON ROBOTICS, vol. 34, no. 1, 1 February 2018 (2018-02-01), US , pages 48 - 61, XP055961610, ISSN: 1552-3098, DOI: 10.1109/TRO.2017.2765667 *
LEE CHAN; OH SEHOON: "Robust assistive force control of leg rehabilitation robot", 2017 IEEE INTERNATIONAL CONFERENCE ON ADVANCED INTELLIGENT MECHATRONICS (AIM), 3 July 2017 (2017-07-03), pages 634 - 638, XP033144388, ISBN: 978-1-5090-5998-0, DOI: 10.1109/AIM.2017.8014088 *
LEE HYUNWOOK; KWAK SUHUI; OH SEHOON: "Force Control of Series Elastic Actuators-Driven Parallel Robot", 2018 IEEE INTERNATIONAL CONFERENCE ON ROBOTICS AND AUTOMATION (ICRA), 21 May 2018 (2018-05-21), pages 1 - 5, XP033403268, DOI: 10.1109/ICRA.2018.8460768 *
LIU WEIYING: "Design of Series Elastic Actuator System for the Assistive Limb", CHINESE MASTER'S THESES FULL-TEXT DATABASE, 1 June 2014 (2014-06-01), pages 1 - 70, XP055961612 *
MEHLING JOSHUA S.; HOLLEY JAMES; O'MALLEY MARCIA K.: "Leveraging disturbance observer based torque control for improved impedance rendering with series elastic actuators", 2015 IEEE/RSJ INTERNATIONAL CONFERENCE ON INTELLIGENT ROBOTS AND SYSTEMS (IROS), 28 September 2015 (2015-09-28), pages 1646 - 1651, XP032831809, DOI: 10.1109/IROS.2015.7353588 *
OH SEHOON, KONG KYOUNGCHUL: "High-Precision Robust Force Control of a Series Elastic Actuator", IEEE/ASME TRANSACTIONS ON MECHATRONICS, vol. 22, no. 1, 1 February 2017 (2017-02-01), US , pages 71 - 80, XP055961609, ISSN: 1083-4435, DOI: 10.1109/TMECH.2016.2614503 *

Also Published As

Publication number Publication date
CN112987812A (en) 2021-06-18
CN112987812B (en) 2021-12-10

Similar Documents

Publication Publication Date Title
WO2022179131A1 (en) Torque control method and apparatus, terminal device, and storage medium
CN109760048B (en) Robot servo control method and device and robot
WO2021109861A1 (en) Electric motor control method and apparatus, terminal device, and storage medium
WO2022121003A1 (en) Robot control method and device, computer-readable storage medium, and robot
CN103222183B (en) For the position control apparatus of motor
CN111965976B (en) Robot joint sliding mode control method and system based on neural network observer
CN111828296B (en) Compressor control method, controller, air conditioning equipment and storage medium
CN112199833B (en) Joint dynamics model optimization method, system, terminal equipment and storage medium
WO2023213243A1 (en) Adaptive variable impedance electric driving system for robot, control method, and apparatus
CN113364380A (en) Motor parameter determination method and device
CN113651239A (en) Speed adjusting method, device and equipment of crane system
WO2024060683A1 (en) Energy storage converter control system stability verification method
CN115313931A (en) Sensor-free vector control method of permanent magnet synchronous motor based on AEKF
KR20210103164A (en) Position controlling apparatus for motor
CN108540033B (en) Compressor compensation apparatus and method
CN111208728A (en) Linear active disturbance rejection control method, device equipment and storage medium
CN110625616A (en) Fixed time control method considering uncertainty and interference of mechanical arm parameters
CN113992101B (en) Current compensation method and device based on vector control of permanent magnet synchronous motor
CN116922392B (en) Dynamic preset performance weak disturbance decoupling control method and system for single-joint mechanical arm
CN116922401B (en) Control method for improving joint peak speed, robot and electronic equipment
CN116345451B (en) Operation control method and device for variable frequency temperature control load and terminal equipment
CN114268259B (en) Multi-target control method, controller and control system for permanent magnet synchronous motor
CN113659894B (en) Asynchronous motor random limited time fuzzy self-adaptive control method based on instruction filtering
CN113296411B (en) Method and system for tracking high-frequency noise power gain adjustment control strategy parameters
CN112039374B (en) Permanent magnet synchronous motor command filtering discrete control method considering input saturation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21927555

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21927555

Country of ref document: EP

Kind code of ref document: A1