Control signal quantity determination method, device, equipment and storage medium

By obtaining the current angular velocity and angle of the excavator's mechanical arm, using the fitted control function and combining feedforward and feedback control algorithms, the problem of low PID control accuracy in the excavator hydraulic system is solved and higher control accuracy is achieved. degree and lower operational complexity and hardware costs.

CN115075313BActive Publication Date: 2024-09-24NETEASE LINGDONG (HANGZHOU) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210932616.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-04
Publication Date
2024-09-24
Estimated Expiration
2042-08-04

AI Technical Summary

Technical Problem

The high delay of the excavator hydraulic system makes it difficult for PID feedback control to control joint angular velocity stably and accurately, resulting in low control accuracy.

Method used

By obtaining the current angular velocity and angle of the manipulator joint, the control function obtained by fitting is used to determine the control signal amount, and the control signal amount is optimized to improve control accuracy by combining feedforward and feedback control algorithms.

Benefits of technology

It achieves accurate control of joint angular velocity, improves control accuracy, and reduces operating complexity and hardware costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115075313B
    Figure CN115075313B
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for determining a control signal quantity, wherein the method comprises: obtaining the current joint angular velocity and current joint angle of multiple joints of a preset mechanical arm on a mechanical device to be controlled, and using the control function of the corresponding joint according to the current joint angular velocity and the current joint angle to respectively determine the control signal quantities of the multiple joints, wherein the control function is a function obtained by fitting the historical joint angular velocity and the historical joint angle of the corresponding joint under multiple control signal quantities in advance. In the present application, according to the current joint angular velocity and the current joint angle, the control signal quantity of each joint is determined by using the fitted control function, which can accurately achieve the control effect of the joint angular velocity and improve the control accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automatic control technology, and in particular to a method, device, equipment and storage medium for determining a control signal quantity. Background Art

[0002] With the gradual shortage of human resources, the labor cost of the excavator industry has gradually increased, and because the operating environment of excavators is harsh and dangerous, automated or semi-automated operation of excavators has gradually become an industry trend.

[0003] At present, in the automated operation of excavators, it is usually expected that the mechanical arm joints of the excavator rotate at a specific angular velocity or follow a specific trajectory. Fixed inclination sensors are installed on the joints of the excavator to measure the joint angular velocity in real time. The control signal is calculated based on the proportional–integral–derivative controller (PID) feedback control algorithm according to the joint rotation angular velocity to control the opening size of the hydraulic solenoid valve of the excavator, thereby adjusting the joint angular velocity to the desired angular velocity.

[0004] However, due to the high delay characteristics of the excavator hydraulic system, it is difficult to achieve stable and accurate control of the joint angular velocity using PID feedback, and the control accuracy is low. Summary of the invention

[0005] In view of this, embodiments of the present application provide a method, apparatus, device and storage medium for determining a control signal quantity to solve the problem of low control accuracy.

[0006] In a first aspect, an embodiment of the present application provides a method for determining a control signal amount, comprising:

[0007] Obtain the current joint angular velocities and current joint angles of multiple joints of a preset robotic arm on the mechanical device to be controlled;

[0008] According to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is used to determine the control signal quantities of the multiple joints respectively. The control function is a function pre-fitted according to the historical joint angular velocity and the historical current joint angle of the corresponding joint under multiple control signal quantities.

[0009] In an optional implementation, before respectively determining the control signal amounts of the plurality of joints by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle, the method further comprises:

[0010] Using a preset feedback control algorithm, according to the historical joint angular velocities of the multiple joints and the corresponding historical expected joint angular velocities, respectively determine the feedback control signal amounts of the multiple joints;

[0011] The method of determining the control signal quantities of the plurality of joints respectively by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle comprises:

[0012] According to the current joint angular velocity and the current joint angle, using the control function of the corresponding joint, respectively determining the feedforward control signal amounts of the multiple joints;

[0013] The control signal amounts of the multiple joints are determined according to the feedback control signal amount and the feedforward control signal amount.

[0014] In an optional implementation, the obtaining of the current joint angular velocities and the current joint angles of the plurality of joints of the preset mechanical arm on the mechanical device to be controlled includes:

[0015] The angular velocity and inclination angle of at least two joint connecting parts corresponding to each joint are collected by using an inclination sensor;

[0016] Determining the current joint angular velocity of the corresponding joint according to the angular velocity of the at least two joint connections;

[0017] The current joint angle of the corresponding joint is determined according to the inclination angles of the at least two joint connections.

[0018] In an optional implementation, before respectively determining the control signal amounts of the plurality of joints by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle, the method further comprises:

[0019] Calibrate the control function of each joint according to a plurality of joint angular velocities of each joint under the plurality of control signal quantities;

[0020] The method of determining the control signal quantities of the plurality of joints respectively by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle comprises:

[0021] The control signal quantities of the multiple joints are determined respectively according to the current joint angular velocity and the current joint angle, and the calibrated control function.

[0022] In an optional implementation, before respectively determining the control signal amounts of the plurality of joints by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle, the method further comprises:

[0023] Acquire multiple historical joint angular velocities and multiple historical joint angles of each joint under the multiple control signal quantities;

[0024] Fitting a control function relationship of each joint according to the multiple historical joint angular velocities and the multiple historical joint angles, wherein the control function relationship is a functional relationship between the joint angular velocity, the joint angle and the control signal amount;

[0025] According to the control function relationship, the control function of the corresponding joint is obtained.

[0026] In an optional implementation, acquiring the control function of the corresponding joint according to the control function relationship includes:

[0027] Determining an angular velocity error function according to the control function relationship and a preset desired joint angular velocity;

[0028] updating coefficients of the angular velocity error function, and determining functions and values ​​of the angular velocity error function corresponding to the plurality of control signal quantities until the function coefficients of the angular velocity error function meet a preset update stop condition;

[0029] The control function of the corresponding joint is obtained according to the function and the function coefficient whose value satisfies the preset condition, and the control function relationship.

[0030] In an optional implementation, fitting the control function relationship of each joint according to the multiple historical joint angular velocities and the multiple historical joint angles includes:

[0031] According to the historical joint angle under the preset control signal amount, fitting the angle function relationship of each joint, wherein the angle function relationship is the function relationship between the joint angular velocity and the joint angle;

[0032] The control function relationship of each joint is fitted according to the multiple historical joint angular velocities, the multiple historical joint angles, the multiple control signal quantities, and the angle function relationship.

[0033] In a second aspect, an embodiment of the present application further provides a control signal quantity determination device, including:

[0034] An acquisition module is used to acquire current joint angular velocities and current joint angles of multiple joints of a preset mechanical arm on a mechanical device to be controlled;

[0035] A processing module is used to determine the control signal quantities of the multiple joints respectively according to the current joint angular velocity and the current joint angle using the control function of the corresponding joint, wherein the control function is a function pre-fitted according to the historical joint angular velocity and the historical joint angle of the corresponding joint under multiple control signal quantities.

[0036] In an optional implementation, the processing module is further used to:

[0037] Using a preset feedback control algorithm, according to the historical joint angular velocities of the multiple joints and the corresponding historical expected joint angular velocities, respectively determine the feedback control signal amounts of the multiple joints;

[0038] The processing module is specifically used for:

[0039] According to the current joint angular velocity and the current joint angle, using the control function of the corresponding joint, respectively determining the feedforward control signal amounts of the multiple joints;

[0040] The control signal amounts of the multiple joints are determined according to the feedback control signal amount and the feedforward control signal amount.

[0041] In an optional implementation manner, the acquisition module is specifically used to:

[0042] The angular velocity and inclination angle of at least two joint connecting parts corresponding to each joint are collected by using an inclination sensor;

[0043] Determining the current joint angular velocity of the corresponding joint according to the angular velocity of the at least two joint connections;

[0044] The current joint angle of the corresponding joint is determined according to the inclination angles of the at least two joint connections.

[0045] In an optional implementation, the processing module is further used to:

[0046] Calibrate the control function of each joint according to a plurality of joint angular velocities of each joint under the plurality of control signal quantities;

[0047] The processing module is specifically used for:

[0048] The control signal quantities of the multiple joints are determined respectively according to the current joint angular velocity and the current joint angle, and the calibrated control function.

[0049] In an optional implementation manner, the acquisition module is further used to:

[0050] Acquire multiple historical joint angular velocities and multiple historical joint angles of each joint under the multiple control signal quantities;

[0051] The processing module is further used to fit the control function relationship of each joint according to the multiple historical joint angular velocities and the multiple historical joint angles, wherein the control function relationship is a functional relationship between the joint angular velocity, the joint angle and the control signal amount;

[0052] The acquisition module is further used to acquire the control function of the corresponding joint according to the control function relationship.

[0053] In an optional implementation manner, the acquisition module is specifically used to:

[0054] Determining an angular velocity error function according to the control function relationship and a preset desired joint angular velocity;

[0055] updating coefficients of the angular velocity error function, and determining functions and values ​​of the angular velocity error function corresponding to the plurality of control signal quantities until the function coefficients of the angular velocity error function meet a preset update stop condition;

[0056] The control function of the corresponding joint is obtained according to the function and the function coefficient whose value satisfies the preset condition, and the control function relationship.

[0057] In an optional implementation manner, the processing module is specifically used to:

[0058] According to the historical joint angle under the preset control signal amount, fitting the angle function relationship of each joint, wherein the angle function relationship is the function relationship between the joint angular velocity and the joint angle;

[0059] The control function relationship of each joint is fitted according to the multiple historical joint angular velocities, the multiple historical joint angles, the multiple control signal quantities, and the angle function relationship.

[0060] In the third aspect, an embodiment of the present application also provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the control signal quantity determination method described in any one of the first aspects.

[0061] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the control signal quantity determination method described in any one of the first aspects is executed.

[0062] The present application provides a method, device, equipment and storage medium for determining a control signal quantity, wherein the method comprises: obtaining the current joint angular velocity and current joint angle of multiple joints of a preset mechanical arm on a mechanical device to be controlled, and using the control function of the corresponding joint according to the current joint angular velocity and the current joint angle to respectively determine the control signal quantities of the multiple joints, wherein the control function is a function obtained by fitting the historical joint angular velocity and the historical joint angle of the corresponding joint under multiple control signal quantities in advance. In the present application, according to the current joint angular velocity and the current joint angle, the control signal quantity of each joint is determined by using the fitted control function, which can accurately achieve the control effect of the joint angular velocity and improve the control accuracy.

[0063] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 A schematic diagram of the functional relationship between the joint angular velocity and the control signal amount provided in an embodiment of the present application;

[0066] Figure 2 A schematic diagram of an excavator mechanical arm provided in an embodiment of the present application;

[0067] Figure 3 Schematic diagram of the process of determining the control signal quantity provided in the embodiment of the present application Figure 1 ;

[0068] Figure 4 Schematic diagram of the process of determining the control signal quantity provided in the embodiment of the present application Figure 2 ;

[0069] Figure 5 A schematic diagram of the angle function relationship provided in an embodiment of the present application;

[0070] Figure 6 A schematic diagram of the control function relationship provided in the embodiment of the present application;

[0071] Figure 7 Schematic diagram of the process of determining the control signal quantity provided in the embodiment of the present application Figure 3 ;

[0072] Figure 8 Schematic diagram of the process of determining the control signal quantity provided in the embodiment of the present application Figure 4 ;

[0073] Fig. 9 A schematic diagram of the structure of a control signal quantity determination device provided in an embodiment of the present application;

[0074] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0076] Proportional–integral–derivative controller (PID): A control algorithm that combines proportional, integral, and derivative control.

[0077] Pulse-width modulation (PWM): An analog control method that modulates the bias of the transistor base or MOS tube gate according to the change of the corresponding load to achieve a change in the conduction time of the transistor or MOS tube, thereby achieving a change in the output of the switching regulated power supply.

[0078] Due to the high latency and other characteristics of the hydraulic system of the excavator, it is difficult to stably and accurately achieve the control effect of the joint angular velocity using PID feedback, and the control accuracy is low. Currently, the angular velocity feedforward model is used to improve the control effect. Feedforward control (feed-forward control) needs to establish a functional relationship between the joint angular velocity and the control signal quantity. The joint angular velocity is related to the joint structure of the robotic arm and the switch size of the electromagnetic hydraulic valve. Among them, the control signal quantity can be a pulse width modulation (Pulse-width modulation, PWM) signal. Figure 1 A schematic diagram of the functional relationship between the joint angular velocity and the control signal quantity provided in the embodiment of the present application, such as Figure 1As shown, each control signal corresponds to a curve, the horizontal axis is time (s), and the vertical axis is the joint angular velocity (rad / s).

[0079] Among them, the joint structure of the robotic arm determines the cylinder linear velocity and joint angular velocity. For the functional relationship between the cylinder linear velocity and the joint angular velocity, existing work usually requires accurate modeling of the excavator robotic arm and the derivation of complex functional relationships, which is not only cumbersome to operate but also has calibration errors. Figure 2 A schematic diagram of an excavator mechanical arm provided in an embodiment of the present application, such as Figure 2 As shown, existing work requires accurate acquisition of the precise length of each joint connection of the robotic arm (such as the upper arm, lower arm, bucket, and cabin rotating body).

[0080] The switching size of the electromagnetic hydraulic valve is usually controlled by a PWM signal or current, which further determines the size of the cylinder linear speed. Existing work usually installs a pull-wire sensor at the cylinder connecting rod to measure the cylinder linear speed and establishes the relationship between the cylinder linear speed and the control signal through a table lookup method.

[0081] It can be seen that for the existing angular velocity feedforward model, on the one hand, it is necessary to cooperate with the excavator manufacturer to obtain the precise structural dimensions of the mechanical arm joint connection parts, and then establish the conversion function between the cylinder linear velocity and the joint angular velocity; on the other hand, for the establishment of the functional relationship between the PWM signal and the cylinder linear velocity, it is necessary to collect a large number of PWM signals and cylinder linear velocities and establish a huge relationship lookup table, but this method will bring greater hardware costs, and the lookup table method requires more data to calculate the average prediction value. The table expression ability is limited and requires more storage space. In addition, this method does not consider the impact of environmental or hardware changes on the above functional relationship. It is usually necessary to regularly collect a large amount of data to re-establish the lookup table. The operation cost is very high, which is not conducive to long-term deployment and use.

[0082] Based on the above problems, the present application provides a method for determining the control signal quantity, which establishes the control function of the angular velocity feedforward model through data fitting. The relationship modeling between the cylinder linear velocity and the joint angular velocity does not require the complex modeling of the joint connectors of the excavator mechanical arm, and the relationship modeling between the cylinder linear velocity and the control signal quantity does not require the installation of an additional pull-wire sensor. At the same time, the curve fitting method is more accurate and convenient than the table lookup method, and requires less data. It can accurately achieve the control effect of the joint angular velocity and improve the control accuracy.

[0083] The control signal quantity determination method provided in the present application is described below in conjunction with several specific embodiments.

[0084] Figure 3 Schematic diagram of the process of determining the control signal quantity provided in the embodiment of the present application Figure 1The execution subject of this embodiment may be a mechanical device to be controlled, for example, a heavy mechanical device such as an excavator.

[0085] like Figure 3 As shown, the method includes:

[0086] S101, obtaining current joint angular velocities and current joint angles of multiple joints of a preset mechanical arm on a mechanical device to be controlled.

[0087] The preset mechanical arm may be an arm of a mechanical device to be controlled, and the preset mechanical arm may have multiple joints. For example, in an excavator, the multiple joints on the mechanical arm may include: an arm joint, an arm joint, and a bucket joint. The current joint angular velocity of each joint may be the joint angular velocity of each joint at the current moment, and the current joint angle of each joint may be the joint angle of each joint at the current moment.

[0088] In an optional implementation, obtaining current joint angular velocities and current joint angles of multiple joints of a preset mechanical arm on the mechanical device to be controlled includes:

[0089] The angular velocity and inclination angle of at least two joint connectors corresponding to each joint are collected by an inclination sensor; the current joint angular velocity of the corresponding joint is determined based on the angular velocity of the at least two joint connectors; and the current joint angle of the corresponding joint is determined based on the inclination angle of the at least two joint connectors.

[0090] Among them, at least two joint connectors corresponding to each joint are connecting parts of the corresponding joints, such as an upper arm, an lower arm, a bucket, a cabin rotating body, etc. For example, the joint connectors of the upper arm joint are the upper arm and the lower arm, the joint connectors of the lower arm joint are the lower arm and the bucket, and the joint connectors of the bucket joint are the bucket and the cabin rotating body.

[0091] At least two joint connecting parts may be respectively installed with an inclination sensor, which may be rigidly connected to the joint connecting part for collecting the angular velocity and inclination of the joint connecting part in real time.

[0092] In this step, the angular velocity and inclination angle of at least two joint connections corresponding to each joint are collected by an inclination sensor, and the angular velocity difference of at least the joint connection can be calculated, and the current joint angular velocity of the joint is determined based on the angular velocity difference. The inclination angle difference of at least two joint connections is calculated, and the current joint angle of the joint is determined based on the inclination angle difference.

[0093] For example, the joint connection parts may include a boom, an arm, a bucket, and a cabin rotating body, and the current joint angular velocity may be calculated using the following formula:

[0094]

[0095] Among them, ωa ,ω b ,ω c ,ω d The angular velocity of the boom, the angular velocity of the forearm, the angular velocity of the bucket, and the angular velocity of the cabin rotating body collected by the four inclination sensors, ω boom is the current joint angular velocity of the upper arm joint, ω arm is the current joint angular velocity of the forearm joint, ω bucket is the current joint angular velocity of the bucket joint.

[0096]

[0097] Among them, θ a ,θ b ,θ c ,θ d The inclination angles of the boom, arm, bucket, and cabin rotating body collected by four inclination sensors, θ boom is the angle between the boom and the cabin (i.e. the current joint angle of the boom joint), θ arm is the angle between the upper arm and the lower arm (i.e. the current joint angle of the lower arm joint), θ bucket is the historical angle between the bucket and the forearm (i.e., the current joint angular velocity of the bucket joint), k, m, and n are fixed constants and can take any fixed values.

[0098] S102, according to the current joint angular velocity and the current joint angle, using the control function of the corresponding joint, respectively determining the control signal quantities of the multiple joints.

[0099] Among them, the control function is a function pre-fitted according to the historical joint angular velocity and historical joint angle of the corresponding joint under multiple control signal quantities, wherein the multiple control signal quantities can be PWM signal quantities within the range of 0<=PWM<=100, that is, each joint has a corresponding control function, which is a pre-fitted function of the control signal quantity, joint angular velocity and joint angle.

[0100] According to the current angular velocity and current joint angle of each joint, the control signal of each joint can be determined by using the control function of the corresponding joint, wherein the current angular velocity and current joint angle of each joint can be used as the input of the corresponding control function, and the function output is the control signal of the corresponding joint.

[0101] In the control signal determination method of the present embodiment, the current joint angular velocity and the current joint angle of the multiple joints of the preset mechanical arm on the mechanical device to be controlled are obtained, and the control signal quantities of the multiple joints are determined respectively by using the control function of the corresponding joint according to the current joint angular velocity and the current joint angle, and the control function is a function obtained by fitting the joint angular velocity of the corresponding joint under multiple historical control signal quantities in advance. In the present application, according to the current joint angular velocity and the current joint angle, the control signal quantity of each joint is determined by using the fitted control function, which can accurately achieve the control effect of the joint angular velocity and improve the control accuracy.

[0102] Combine the following Figure 4 The process of obtaining the control function is described below. Figure 4 Schematic diagram of the process of determining the control signal quantity provided in the embodiment of the present application Figure 2 ,like Figure 4 As shown, according to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is used to respectively determine the control signal quantities of the multiple joints, and the method also includes:

[0103] S201. Obtain multiple historical joint angular velocities and multiple historical joint angles of each joint under multiple control signal quantities.

[0104] Among them, multiple control signal quantities can be PWM signal quantities within the range of 0<=PWM<=100, and all PWM signal quantities within the range of 0<=PWM<=100 are traversed in turn to control the preset robotic arm to move, and record multiple historical joint angular velocities and multiple historical joint angles of each joint under multiple control signal quantities.

[0105] The historical joint angular velocity can be the joint angular velocity of the joint at the historical moment corresponding to each control signal, which can be calculated by the difference of the historical angular velocities of the two joint connectors. The historical angular velocity of the joint connector can be collected by the inclination sensor installed on the joint connector, wherein the joint connector can include a boom, an arm, a bucket, and a cockpit rotating body. The historical joint angular velocity can be calculated by the following formula:

[0106]

[0107] Among them, ω a ,ω b ,ω c ,ω d The historical angular velocity of the upper arm, the lower arm, the bucket, and the cabin rotating body collected by the four inclination sensors, ω boom is the historical angular velocity of the upper arm joint, ω arm is the historical angular velocity of the forearm joint, ω bucketis the historical angular velocity of the bucket joint.

[0108] The historical joint angle can be calculated by using the difference between the historical inclination angles of the two joint connectors. The historical inclination angle of the joint connector is collected by the inclination sensor installed on the joint connector. The historical joint angle can be calculated by the following formula:

[0109]

[0110] Among them, θ a ,θ b ,θ c ,θ d The historical inclination angles of the boom, arm, bucket, and cabin rotating body collected by four inclination sensors, θ boom is the historical angle between the boom and the cockpit (i.e. the historical joint angle of the boom joint), θ arm is the historical angle between the upper arm and the lower arm (i.e. the historical joint angle of the lower arm joint), θ bucket is the historical angle between the bucket and the forearm (i.e. the historical angular velocity of the bucket joint), k, m, and n are fixed constants and can take any fixed values.

[0111] S202: Fitting a control function relationship of each joint according to a plurality of historical joint angular velocities and a plurality of historical joint angles.

[0112] It should be noted that the joint angular velocity ω is related to the cylinder linear velocity v and the joint angle θ, that is, ω=f(θ)×v, f(θ) is the conversion coefficient of the cylinder linear velocity v and the joint angular velocity ω at the joint angle θ, and this coefficient is related to the joint structure. The cylinder linear velocity v is related to the control signal quantity PWM, and the functional relationship is expressed as v=g(pwm).

[0113] In one specific implementation, the angle function relationship of each joint is fitted according to the historical joint angle under a preset control signal, and the control function relationship of each joint is fitted according to multiple historical joint angular velocities, multiple historical joint angles, multiple control signals, and angle function relationships.

[0114] Among them, the preset control signal amount can be any control signal amount among multiple control signal amounts, such as the maximum control signal amount 100. Since the preset robotic arm has other influencing factors such as friction during movement, in order to reduce other factors, the maximum control signal amount can be taken here.

[0115] Select the historical joint angle of each joint under the preset control signal, that is, fix g(pwm) to g(pwm0), g(pwm0) is the cylinder linear velocity v under the preset control signal pwm0, it can be determined that the joint angular velocity ω is only related to the joint angle θ, then the angle function relationship of each joint can be fitted according to the historical joint angle, the angle function relationship is the functional relationship between the joint angular velocity and the joint angle, Figure 5 A schematic diagram of the angle function relationship provided in the embodiment of the present application, such as Figure 5 As shown, the horizontal axis is the joint angle (rad), the vertical axis is the joint angular velocity (rad / s), the two solid curves in the figure are the angular function relationship between the joint angular velocity and the joint angle under the two control signal quantities of non-PWM0, and the dotted curve in the figure is the angular function relationship obtained by fitting this embodiment.

[0116] Through the above angle function relationship, the joint angular velocity under the preset control signal pwm0 can be obtained That is, in the fitted angle function relationship The function differs from the f(θ) function by g(pwm0) times.

[0117] Then, according to multiple historical joint angular velocities, multiple historical joint angles, multiple control signal quantities, and angle function relationships, the control function relationship of each joint is fitted. In a specific implementation, multiple historical joint angular velocities are processed according to the angle function relationship to obtain the control signal quantity pwm for each joint. Data set, then based on this data set, fit With the control function of pwm, ρ(pwm), due to ω=f(θ)*g(pwm) and The influence of joint angle is removed. Figure 6 A schematic diagram of the control function relationship provided in the embodiment of the present application, such as Figure 6 As shown, after removing the influencing factors of the joint angle, since g(pwm)=v, that is, the control function relationship ρ(pwm) is related to the cylinder linear velocity v, the horizontal axis in the figure is the cylinder linear velocity (v), and the vertical axis is the control signal quantity pwm.

[0118] And since, for any pwm and any joint angle θ, The joint angular velocity is That is, the control function relationship is the functional relationship between the joint angular velocity ω, the joint angle θ and the control signal pwm, where ρ(pwm) is related to the cylinder linear velocity v, and the cylinder linear velocity

[0119] S203. Obtain the control function of the corresponding joint according to the control function relationship.

[0120] After determining the control function relationship of each joint, the angular velocity error function can be calculated based on the control function relationship of each joint and the preset expected joint angular velocity, wherein the preset expected joint angular velocity can be the expected angular velocity of the joint at the historical moment corresponding to each control signal.

[0121] Afterwards, the coefficient of the angular velocity error function is updated, and the function and value of the angular velocity error function corresponding to the plurality of control signal quantities are determined until the function coefficient of the angular velocity error function meets the preset update stop condition, wherein, due to Function and ρ(pwm) function are functions with coefficients, which are used to determine The optimal function coefficient of the function and the ρ(pwm) function can be used to update the coefficient of the angle error function, and for each joint, the functions of the angular velocity error function under multiple control signal quantities are added to obtain the function sum value until the function coefficient of the angle error function meets the preset update stop condition, wherein the preset update stop condition can be, for example, that the function coefficient is outside the preset function coefficient range.

[0122] Next, based on the function coefficients whose function and value satisfy the preset conditions and the control function relationship, the control function of the corresponding joint is obtained, that is, the function coefficients whose function and value satisfy the preset conditions are used as the coefficients of the function in the control function relationship, and then the control function of the corresponding joint is obtained, that is, the function coefficients of the control function are determined, wherein the preset condition can be, for example, the minimum function and value.

[0123] For example, if the expected joint angular velocity is ω1, the angular velocity error function can be The angular velocity error functions of multiple control signal quantities are summed up to obtain Take the minimum value of the function and value, that is, The function coefficient of is the function coefficient of the control function.

[0124] In some embodiments, since the robotic arm of the mechanical device to be controlled may be affected by other factors such as inertia during movement, the control function using only the angular velocity feedforward model may not be able to accurately adjust the joint angular velocity to the desired joint angular velocity. Therefore, on the basis of the feedforward model, PID feedback can also be combined to more accurately achieve the control effect of the joint angular velocity.

[0125] Figure 7 Schematic diagram of the process of determining the control signal quantity provided in the embodiment of the present application Figure 3 ,like Figure 7 As shown, before respectively determining the control signal quantities of multiple joints by using the control function of the corresponding joint according to the current joint angular velocity, the method further includes:

[0126] S301. Using a preset feedback control algorithm, according to the historical joint angular velocities of the multiple joints and the corresponding historical expected joint angular velocities, respectively determine the feedback control signal quantities of the multiple joints.

[0127] Among them, the preset feedback control algorithm can be a PID feedback control algorithm, and the historical joint angular velocity of each joint can be the joint angular velocity of each joint at a historical moment, and the historical moment is the moment before the current moment, for example, it can be the previous moment.

[0128] The historical expected joint angular velocity corresponding to each joint can be the expected joint angular velocity of each joint at a historical moment. During the movement of the mechanical device to be controlled, the mechanical device to be controlled usually moves using a preset motion algorithm, which defines the expected joint angular velocity of each joint of the mechanical device to be controlled at each moment.

[0129] In this step, a preset feedback control algorithm is used to calculate the angular velocity difference between the historical expected joint angular velocity of each joint and the corresponding historical joint angular velocity, and the feedback control signal of each joint is calculated based on the angular velocity difference. For the implementation process of the preset feedback control algorithm, please refer to the relevant description of the prior art, which will not be repeated here.

[0130] It should be noted that the historical joint angular velocity of each joint can be calculated by the angular velocity of the joint connector collected by the inclination sensor. The specific calculation process can be referred to the calculation process of the current joint angular velocity, which will not be repeated here.

[0131] Accordingly, according to the current joint angular velocity, the control function of the corresponding joint is used to determine the control signal quantities of multiple joints respectively, including:

[0132] S302: According to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is used to respectively determine the feedforward control signal amounts of the multiple joints.

[0133] According to the current angular velocity and current joint angle of each joint, the feedforward control signal of each joint can be determined by using the control function of the corresponding joint, wherein the current angular velocity of each joint can be used as the input of the corresponding control function, and the function output is the feedforward control signal of the corresponding joint.

[0134] S303. Determine the control signal quantities of multiple joints according to the feedback control signal quantity and the feedforward control signal quantity.

[0135] According to the feedback control signal quantities of multiple joints and the feedforward control signal quantities of multiple joints, the control signal quantities of corresponding joints can be determined, and the control signal quantities can be the weighted sum or sum value of the feedback control signal quantities of corresponding joints and the feedforward control signal quantities of corresponding joints.

[0136] For example, the preset feedback control algorithm is the PID feedback control algorithm, and the historical expected joint angular velocity is ω t , the historical joint angular velocity is ω o , the feedback control signal is: pid(ω t -ω o ).

[0137] Control Function Right now Where ω is the current angular velocity of the joint, ρ -1 is the inverse function of ρ.

[0138] Then the control signal pwm can be expressed as:

[0139]

[0140] In the control signal amount determination method of the present embodiment, a preset feedback control algorithm is used to determine the feedback control signal amounts of multiple joints according to the historical joint angular velocities of multiple joints and the corresponding historical expected joint angular velocities, respectively, and the feedforward control signal amounts of multiple joints are determined according to the current joint angular velocities and the current joint angles by using the control functions of the corresponding joints, respectively, and the control signal amounts of multiple joints are determined according to the feedback control signal amounts and the feedforward control signal amounts. The control signal amounts are determined in combination with feedback control, so as to further improve the control effect of the joint angular velocities and the control accuracy.

[0141] In some embodiments, the hydraulic control system of the mechanical equipment to be controlled may change with factors such as ambient temperature, that is, the relationship between the cylinder linear speed and the control signal quantity may change with the environment. Based on this, the present application provides a calibration method for the control function of the data fitting feedforward model.

[0142] Figure 8 Schematic diagram of the process of determining the control signal quantity provided in the embodiment of the present application Figure 4 ,like Figure 8 As shown, according to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is used to respectively determine the control signal quantities of the multiple joints, and the method also includes:

[0143] S401, calibrating the control function of each joint according to multiple joint angular velocities of each joint under multiple control signal quantities.

[0144] Among them, during the movement of the mechanical equipment to be controlled, the mechanical equipment to be controlled can also be controlled to move separately under multiple control signal quantities, and the joint angular velocities of multiple joints under multiple control signal quantities can be obtained, and then the control function of each joint is calibrated according to the joint angular velocities of each joint under multiple control signal quantities, that is, the control function of each joint is re-fitted.

[0145] For example, multiple joint angular velocities under multiple control signal quantities are processed according to the angle function relationship to obtain the pwm for each control signal quantity. Data set, then based on this data set, fit And the pwm control function ρ2(pwm).

[0146] Also because, The joint angular velocity is That is, the calibrated control function, which is a function between the joint angular velocity ω and the control signal quantity pwm.

[0147] Accordingly, according to the current joint angular velocity, the control function of the corresponding joint is used to determine the control signal quantities of multiple joints respectively, including:

[0148] S402: Determine the control signal quantities of the multiple joints respectively according to the current joint angular velocity and the current joint angle, and the calibrated control function.

[0149] Among them, the calibrated control function is a function of the control signal amount and the joint angular velocity. According to the current angular velocity and the current joint angle of each joint, the calibrated control function of the corresponding joint is used to determine the control signal amount of each joint. Among them, the current angular velocity and the current joint angle of each joint can be used as the input of the corresponding control function, and the function output is the control signal amount of the corresponding joint.

[0150] In the control signal amount determination method of the present embodiment, the control function of each joint is calibrated according to the multiple joint angular velocities of each joint under the multiple control signal amounts, and the control signal amounts of the multiple joints are determined respectively according to the current joint angular velocity and the current joint angle, and the calibrated control function. By providing a fast data fitting feedforward model calibration method, only a small amount of data needs to be collected to recalibrate the control function, while the table lookup method cannot calibrate the control function, thereby improving the control effect of the joint angular velocity.

[0151] Fig. 9 This is a schematic diagram of the structure of a control signal quantity determination device provided in an embodiment of the present application, which can be integrated in an electronic device. Fig. 9 As shown, the device comprises:

[0152] An acquisition module 501 is used to acquire current joint angular velocities and current joint angles of multiple joints of a preset mechanical arm on a mechanical device to be controlled;

[0153] Processing module 502 is used to determine the control signal quantities of multiple joints respectively according to the current joint angular velocity and the current joint angle, using the control function of the corresponding joint. The control function is a function pre-fitted according to the historical joint angular velocity and historical joint angle of the corresponding joint under multiple control signal quantities.

[0154] In an optional implementation, the processing module 502 is further configured to:

[0155] Using a preset feedback control algorithm, according to the historical joint angular velocities of the multiple joints and the corresponding historical expected joint angular velocities, respectively determine the feedback control signal quantities of the multiple joints;

[0156] The processing module 502 is specifically configured to:

[0157] According to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is adopted to respectively determine the feedforward control signal quantities of the multiple joints;

[0158] The control signal quantities of the multiple joints are determined according to the feedback control signal quantity and the feedforward control signal quantity.

[0159] In an optional implementation, the acquisition module 501 is specifically configured to:

[0160] The angular velocity and inclination angle of at least two joint connecting parts corresponding to each joint are collected by using an inclination sensor;

[0161] Determining the current joint angular velocity of the corresponding joint according to the angular velocity of at least two joint connections;

[0162] The current joint angle of the corresponding joint is determined by the inclination angles of at least two connecting members.

[0163] In an optional implementation, the processing module 502 is further configured to:

[0164] Calibrate the control function of each joint according to multiple joint angular velocities of each joint under multiple control signal quantities;

[0165] The processing module 502 is specifically configured to:

[0166] According to the current joint angular velocity and the current joint angle, and the calibrated control function, the control signal quantities of the multiple joints are determined respectively.

[0167] In an optional implementation, the acquisition module 501 is further configured to:

[0168] Obtain multiple historical joint angular velocities and multiple historical joint angles of each joint under multiple control signal quantities;

[0169] The processing module 502 is further used to fit the control function relationship of each joint according to the multiple historical joint angular velocities and the multiple historical joint angles, where the control function relationship is the functional relationship between the joint angular velocity, the joint angle and the control signal amount;

[0170] The acquisition module 501 is further used to acquire the control function of the corresponding joint according to the control function relationship.

[0171] In an optional implementation, the acquisition module 501 is specifically configured to:

[0172] Determine an angular velocity error function according to a control function relationship and a preset desired joint angular velocity;

[0173] updating the coefficients of the angular velocity error function, and determining the functions and values ​​of the angular velocity error function corresponding to the plurality of control signal quantities, until the function coefficients of the angular velocity error function meet a preset update stop condition;

[0174] According to the function coefficients whose functions and values ​​meet the preset conditions and the control function relationship, the control function of the corresponding joint is obtained.

[0175] In an optional implementation, the processing module 502 is specifically configured to:

[0176] According to the historical joint angles under the preset control signal quantity, the angle function relationship of each joint is fitted, and the angle function relationship is the functional relationship between the joint angular velocity and the joint angle;

[0177] The control function relationship of each joint is fitted according to multiple historical joint angular velocities, multiple historical joint angles, multiple control signal quantities, and angle function relationships.

[0178] In the control signal quantity determination device of the present embodiment, the acquisition module is used to obtain the current joint angular velocity and current joint angle of multiple joints of the preset mechanical arm on the mechanical device to be controlled, and the processing module is used to respectively determine the control signal quantities of multiple joints according to the current joint angular velocity and the current joint angle, using the control function of the corresponding joint, and the control function is a function pre-fitted according to the historical joint angular velocity and the historical joint angle of the corresponding joint under multiple control signal quantities. According to the current joint angular velocity and the current joint angle, the control signal quantity of each joint is determined by using the fitted control function, which can accurately achieve the control effect of the joint angular velocity and improve the control accuracy.

[0179] Fig.10This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be the mechanical device to be controlled in the above embodiment. Fig.10 As shown, the device includes: a processor 601, a memory 602 and a bus 603, the memory 602 stores machine-readable instructions executable by the processor 601, when the electronic device is running, the processor and the memory 602 communicate through the bus, and the processor 601 executes the machine-readable instructions to perform the following steps:

[0180] Obtain the current joint angular velocities and current joint angles of multiple joints of a preset robotic arm on the mechanical device to be controlled;

[0181] According to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is used to determine the control signal quantities of multiple joints respectively. The control function is a function pre-fitted according to the historical joint angular velocity and historical joint angle of the corresponding joint under multiple control signal quantities.

[0182] In an optional implementation, the processor 601 is further configured to:

[0183] Using a preset feedback control algorithm, according to the historical joint angular velocities of the multiple joints and the corresponding historical expected joint angular velocities, respectively determine the feedback control signal quantities of the multiple joints;

[0184] When the processor 601 respectively determines the control signal amounts of multiple joints according to the current joint angular velocity and the current joint angle by using the control function of the corresponding joint, it is specifically used to:

[0185] According to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is adopted to respectively determine the feedforward control signal quantities of the multiple joints;

[0186] The control signal quantities of the multiple joints are determined according to the feedback control signal quantity and the feedforward control signal quantity.

[0187] In an optional implementation, when the processor 601 executes the acquisition of the current joint angular velocities and current joint angles of multiple joints of a preset mechanical arm on the mechanical device to be controlled, it is specifically used to:

[0188] The angular velocity and inclination angle of at least two joint connecting parts corresponding to each joint are collected by using an inclination sensor;

[0189] Determining the current joint angular velocity of the corresponding joint according to the angular velocity of at least two joint connections;

[0190] The current joint angle of the corresponding joint is determined by the inclination angles of at least two connecting members.

[0191] In an optional implementation, the processor 601 is further configured to:

[0192] Calibrate the control function of each joint according to multiple joint angular velocities of each joint under multiple control signal quantities;

[0193] When the processor 601 respectively determines the control signal amounts of multiple joints according to the current joint angular velocity and the current joint angle by using the control function of the corresponding joint, it is specifically used to:

[0194] According to the current joint angular velocity and the current joint angle, and the calibrated control function, the control signal quantities of the multiple joints are determined respectively.

[0195] In an optional implementation, the processor 601 is further configured to:

[0196] Obtain multiple historical joint angular velocities and multiple historical joint angles of each joint under multiple control signal quantities;

[0197] According to multiple historical joint angular velocities and multiple historical joint angles, a control function relationship of each joint is fitted, where the control function relationship is a functional relationship between the joint angular velocity, the joint angle and the control signal quantity;

[0198] According to the control function relationship, obtain the control function of the corresponding joint.

[0199] In an optional implementation, when the processor 601 executes the acquisition of the control function of the corresponding joint according to the control function relationship, it is specifically used to:

[0200] Determine an angular velocity error function according to a control function relationship and a preset desired joint angular velocity;

[0201] updating the coefficients of the angular velocity error function, and determining the functions and values ​​of the angular velocity error function corresponding to the plurality of control signal quantities, until the function coefficients of the angular velocity error function meet a preset update stop condition;

[0202] According to the function coefficients whose functions and values ​​meet the preset conditions and the control function relationship, the control function of the corresponding joint is obtained.

[0203] In an optional implementation, when the processor 601 performs fitting of the control function relationship of each joint according to a plurality of historical joint angular velocities and historical joint angles, it is specifically used to:

[0204] According to the historical joint angles under the preset control signal quantity, the angle function relationship of each joint is fitted, and the angle function relationship is the functional relationship between the joint angular velocity and the joint angle;

[0205] The control function relationship of each joint is fitted according to multiple historical joint angular velocities, multiple historical joint angles, multiple control signal quantities, and angle function relationships.

[0206] Through the above method, the current joint angular velocity and current joint angle of multiple joints of the preset mechanical arm on the mechanical device to be controlled are obtained, and according to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is adopted to respectively determine the control signal amount of the multiple joints, and the control function is a function obtained by fitting the historical joint angular velocity and the historical joint angle of the corresponding joint under the multiple control signal amounts in advance. According to the current joint angular velocity and the current joint angle, the control signal amount of each joint is determined by using the fitted control function, which can accurately achieve the control effect of the joint angular velocity and improve the control accuracy.

[0207] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program is executed when a processor is running, and the processor performs the following steps:

[0208] Obtain the current joint angular velocities and current joint angles of multiple joints of a preset robotic arm on the mechanical device to be controlled;

[0209] According to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is used to determine the control signal quantities of multiple joints respectively. The control function is a function pre-fitted according to the historical joint angular velocity and historical joint angle of the corresponding joint under multiple control signal quantities.

[0210] In an optional implementation, the processor is further configured to:

[0211] Using a preset feedback control algorithm, according to the historical joint angular velocities of the multiple joints and the corresponding historical expected joint angular velocities, respectively determine the feedback control signal quantities of the multiple joints;

[0212] When the processor executes the control function of the corresponding joint according to the current joint angular velocity and the current joint angle, and respectively determines the control signal quantities of multiple joints, it is specifically used to:

[0213] According to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is adopted to respectively determine the feedforward control signal quantities of the multiple joints;

[0214] The control signal quantities of the multiple joints are determined according to the feedback control signal quantity and the feedforward control signal quantity.

[0215] In an optional implementation, when the processor executes the acquisition of current joint angular velocities and joint angles of multiple joints of a preset mechanical arm on the mechanical device to be controlled, it is specifically used to:

[0216] The angular velocity and inclination angle of at least two joint connecting parts corresponding to each joint are collected by using an inclination sensor;

[0217] Determining the current joint angular velocity of the corresponding joint according to the angular velocity of at least two joint connections;

[0218] The current joint angle of the corresponding joint is determined by the inclination angles of at least two connecting members.

[0219] In an optional implementation, the processor is further configured to:

[0220] Calibrate the control function of each joint according to multiple joint angular velocities of each joint under multiple control signal quantities;

[0221] When the processor executes the control function of the corresponding joint according to the current joint angular velocity and the current joint angle, and respectively determines the control signal quantities of multiple joints, it is specifically used to:

[0222] According to the current joint angular velocity and the current joint angle, and the calibrated control function, the control signal quantities of the multiple joints are determined respectively.

[0223] In an optional implementation, the processor is further configured to:

[0224] Obtain multiple historical joint angular velocities and multiple historical joint angles of each joint under multiple control signal quantities;

[0225] According to multiple historical joint angular velocities and multiple historical joint angles, a control function relationship of each joint is fitted, where the control function relationship is a functional relationship between the joint angular velocity, the joint angle and the control signal quantity;

[0226] According to the control function relationship, obtain the control function of the corresponding joint.

[0227] In an optional implementation, when the processor executes the acquisition of the control function of the corresponding joint according to the control function relationship, it is specifically used to:

[0228] Determine an angular velocity error function according to a control function relationship and a preset desired joint angular velocity;

[0229] updating the coefficients of the angular velocity error function, and determining the functions and values ​​of the angular velocity error function corresponding to the plurality of control signal quantities, until the function coefficients of the angular velocity error function meet a preset update stop condition;

[0230] According to the function coefficients whose functions and values ​​meet the preset conditions and the control function relationship, the control function of the corresponding joint is obtained.

[0231] In an optional implementation, when the processor performs fitting of the control function relationship of each joint according to a plurality of historical joint angular velocities and a plurality of historical joint angles, it is specifically used to:

[0232] According to the historical joint angles under the preset control signal quantity, the angle function relationship of each joint is fitted, and the angle function relationship is the functional relationship between the joint angular velocity and the joint angle;

[0233] The control function relationship of each joint is fitted according to multiple historical joint angular velocities, multiple current joint angles, multiple control signal quantities, and angle function relationships.

[0234] Through the above method, the current joint angular velocity and current joint angle of multiple joints of the preset mechanical arm on the mechanical device to be controlled are obtained, and according to the current joint angular velocity and the current joint angle, the control function of the corresponding joint is adopted to respectively determine the control signal amount of the multiple joints, and the control function is a function obtained by fitting the historical joint angular velocity and the historical joint angle of the corresponding joint under the multiple control signal amounts in advance. According to the current joint angular velocity and the current joint angle, the control signal amount of each joint is determined by using the fitted control function, which can accurately achieve the control effect of the joint angular velocity and improve the control accuracy.

[0235] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.

[0236] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only 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 communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0237] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0238] In addition, each functional unit in the embodiments provided in the present application 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.

[0239] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several 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 methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0240] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0241] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes 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 present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for determining a control signal quantity, characterized in that: include: Obtain the current joint angular velocities and current joint angles of multiple joints of a preset robotic arm on the mechanical device to be controlled; According to the current joint angular velocity and the current joint angle, the control signal quantities of the multiple joints are determined respectively by using the control function of the corresponding joint, wherein the control function is a function pre-fitted according to the historical joint angular velocity and the historical joint angle of the corresponding joint under the multiple control signal quantities; Before respectively determining the control signal amounts of the plurality of joints by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle, the method further comprises: Acquire multiple historical joint angular velocities and multiple historical joint angles of each joint under the multiple control signal quantities; Fitting a control function relationship of each joint according to the multiple historical joint angular velocities and the multiple historical joint angles, wherein the control function relationship is a functional relationship between the joint angular velocity, the joint angle and the control signal amount; Determining an angular velocity error function according to the control function relationship and a preset desired joint angular velocity; updating coefficients of the angular velocity error function, and determining functions and values ​​of the angular velocity error function corresponding to the plurality of control signal quantities until the function coefficients of the angular velocity error function meet a preset update stop condition; The control function of the corresponding joint is obtained according to the function and the function coefficient whose value satisfies the preset condition, and the control function relationship.

2. The method according to claim 1, characterized in that Before respectively determining the control signal amounts of the plurality of joints by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle, the method further comprises: Using a preset feedback control algorithm, according to the historical joint angular velocities of the multiple joints and the corresponding historical expected joint angular velocities, respectively determine the feedback control signal amounts of the multiple joints; The method of determining the control signal quantities of the plurality of joints respectively by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle comprises: According to the current joint angular velocity and the current joint angle, using the control function of the corresponding joint, respectively determining the feedforward control signal amounts of the multiple joints; The control signal amounts of the multiple joints are determined according to the feedback control signal amount and the feedforward control signal amount.

3. The method according to claim 1, characterized in that The method of obtaining the current joint angular velocities and current joint angles of multiple joints of a preset mechanical arm on the mechanical device to be controlled includes: The angular velocity and inclination angle of at least two joint connecting parts corresponding to each joint are collected by using an inclination sensor; Determining the current joint angular velocity of the corresponding joint according to the angular velocity of the at least two joint connections; The current joint angle of the corresponding joint is determined according to the inclination angles of the at least two joint connections.

4. The method according to claim 1, characterized in that Before respectively determining the control signal amounts of the plurality of joints by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle, the method further comprises: Calibrate the control function of each joint according to a plurality of joint angular velocities of each joint under the plurality of control signal quantities; The method of determining the control signal quantities of the plurality of joints respectively by using the control functions of the corresponding joints according to the current joint angular velocity and the current joint angle comprises: The control signal quantities of the multiple joints are determined respectively according to the current joint angular velocity and the current joint angle, and the calibrated control function.

5. The method according to claim 1, characterized in that The step of fitting the control function relationship of each joint according to the multiple historical joint angular velocities and the multiple historical joint angles includes: According to the historical joint angle under the preset control signal amount, fitting the angle function relationship of each joint, wherein the angle function relationship is the function relationship between the joint angular velocity and the joint angle; The control function relationship of each joint is fitted according to the multiple historical joint angular velocities, the multiple historical joint angles, the multiple control signal quantities, and the angle function relationship.

6. A control signal quantity determination device, characterized in that: include: An acquisition module is used to acquire current joint angular velocities and current joint angles of multiple joints of a preset mechanical arm on a mechanical device to be controlled; A processing module, for determining control signal quantities of the plurality of joints respectively according to the current joint angular velocity and the current joint angle by using a control function of the corresponding joint, wherein the control function is a function pre-fitted according to historical joint angular velocities and historical joint angles of the corresponding joint under multiple control signal quantities; The acquisition module is further used for: Acquire multiple historical joint angular velocities and multiple historical joint angles of each joint under the multiple control signal quantities; The processing module is further used to fit the control function relationship of each joint according to the multiple historical joint angular velocities and the multiple historical joint angles, wherein the control function relationship is a functional relationship between the joint angular velocity, the joint angle and the control signal amount; The acquisition module is further used to determine an angular velocity error function according to the control function relationship and a preset expected joint angular velocity; updating coefficients of the angular velocity error function, and determining functions and values ​​of the angular velocity error function corresponding to the plurality of control signal quantities until the function coefficients of the angular velocity error function meet a preset update stop condition; The control function of the corresponding joint is obtained according to the function and the function coefficient whose value satisfies the preset condition, and the control function relationship.

7. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to execute the control signal quantity determination method described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control signal quantity determination method according to any one of claims 1 to 5 is executed.