Event-triggered single-link robotic arm control method and system under cloud-edge-end collaboration

By introducing the event triggering mechanism and the online Actor-Critic reinforcement learning network into the cloud edge system, the efficiency and cost problems of traditional control methods under limited bandwidth and resources are solved, and single-connection with higher accuracy and efficiency is achieved. Rod manipulator control.

CN118927260BActive Publication Date: 2025-01-21CHINA RAILWAY DESIGN GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411419480.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-01-21
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

The traditional single-link robot arm control method is limited by system bandwidth and communication resources in the cloud-side end system, resulting in a large amount of network bandwidth and energy consumption of periodic sampling and data transmission schemes, resulting in waste of communication resources and increased system operation costs.

Method used

This paper proposes an event-triggered single-link robotic arm control method under cloud-edge collaboration. Real-time data is collected through the terminal and sent to the edge. The edge performs preprocessing and dynamic event triggering mechanism judgment. If the triggering rules are met, the online Actor is input. -Critic reinforcement learning network performs model-free controller calculations, and the cloud optimizes and updates model-free controller parameters based on feedback data.

Benefits of technology

It effectively reduces unnecessary communications and calculations, saves system resources, improves the control accuracy of single-link robotic arms, reduces modeling difficulty, improves computing efficiency, and broadens the scope of applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118927260B_ABST
    Figure CN118927260B_ABST
Patent Text Reader

Abstract

The present invention discloses a control method and system for a single-link robotic arm triggered by events under cloud-edge-end collaboration; the terminal collects the operating data of the single-link robotic arm and sends it to the edge end for preprocessing; the edge end inputs the data into a model-free controller or a trigger holder to obtain a control instruction according to a preset event trigger rule; the terminal controls the movement of the single-link robotic arm according to the control instruction, collects the operating data and sends it to the edge end; the cloud end selects to optimize and update the parameters of the model-free controller according to the operating data fed back by the edge end and the preset event trigger rules; the control method and system of the present invention are not only suitable for single-link robotic arms, reduce their modeling difficulty, improve control accuracy, enhance computing efficiency, and save system resources, but also have the application prospect of being extended to other single-input and single-output systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of robotic arm control, and in particular, relates to a single-link robotic arm control method and system triggered by events under cloud-edge-end collaboration. Background Art

[0002] With the advancement of science and technology and the accelerated development of industrial automation, robotic arms have become an indispensable part of the automation field, undertaking various important tasks such as assembly, handling, and welding. Single-link robotic arms are widely used in industrial production, medical rehabilitation and other fields due to their simple structure and low cost. Traditional single-link robotic arm control methods are mainly divided into model-based control and data-driven control. Model-based control methods require the establishment of an accurate dynamic model, but complex internal factors and external environment make modeling difficult, which affects its in-depth research and application; data-driven control directly uses rich input and output data to directly design the controller, which has received widespread attention from scholars.

[0003] Direct model-free adaptive control was first proposed by Hou Zhongsheng and Zhu Yuanming in 2013 in the paper "Controller-dynamic-linearization-based model free adaptive control for discrete-time nonlinear systems." IEEE Transactions on Industrial Informatics, 2013, 9(4):2301-2309. It has now developed into a typical data-driven control method, attracting scholars to explore its potential in combination with neural networks to improve the control performance of single-input single-output controlled systems. With the development of cloud computing, edge computing and direct model-free adaptive control methods, new ideas have been provided for the control of single-link robotic arms. However, in practical applications, cloud-edge systems are limited by system bandwidth and communication resources. Traditional periodic sampling and data transmission schemes consume a lot of network bandwidth and energy even if the system state changes slightly, resulting in a waste of communication resources and increasing system operating costs.

[0004] In order to solve the above problems, an event-triggered control scheme came into being. This scheme performs data transmission and control operations only when there is a significant change in the system state, effectively reducing unnecessary communication and calculation, thereby saving system resources; on the other hand, in order to further improve the control performance of the single-link robotic arm and combine the advantages of the cloud-edge, the present invention deeply integrates direct model-free adaptive control and reinforcement learning, and proposes a control method based on event triggering; in view of the fact that such methods have not been involved in existing research, the present invention proposes a single-link robotic arm control method and system triggered by events under the collaboration of cloud-edge. Summary of the invention

[0005] In order to solve the problems existing in the background technology, the purpose of the present invention is to provide a single-link robotic arm control method triggered by an event under cloud-edge-end collaboration, wherein the cloud-edge-end includes a cloud, an edge, and a terminal, and includes the following steps:

[0006] Step (1): The terminal collects real-time data of the single-link robotic arm through a sensor signal acquisition device, wherein the real-time data includes a real-time expected joint angle and a real-time operating joint angle, and sends the real-time data to the edge end;

[0007] Step (2): the edge end preprocesses the real-time data; designs a dynamic event trigger mechanism; if the triggering rules are met, the preprocessed real-time data is input into a model-free controller based on an online Actor-Critic reinforcement learning network for time-varying parameter adaptive learning, and a control instruction of the single-link robotic arm is calculated; if the triggering rules are not met, the control instruction at the last triggering moment is maintained; and the control instruction is sent to the terminal, and the terminal controls the movement of the single-link robotic arm according to the control instruction; at the same time, the preprocessed real-time data is sent to the cloud;

[0008] Step (3): The cloud optimizes and updates the model-free controller parameters based on the data fed back by the edge and the dynamic event trigger mechanism. If the trigger rules are met, the cloud optimizes and updates the model-free controller parameters and transmits the optimized and updated model-free controller parameters to the model-free controller at the edge. If the trigger rules are not met, no operation is performed.

[0009] Repeat the above steps (1) to (3) until the control task is completed.

[0010] According to the event-triggered single-link robotic arm control method under cloud-edge-end collaboration provided by the present invention, the edge end in step (2) preprocesses the real-time data, and the preprocessing step includes filtering and noise reduction; the dynamic event triggering mechanism designed in step (2) is used to determine the dynamic event triggering mechanism for the next triggering moment:

[0011] ;

[0012] in, For the s A trigger moment, s is a positive integer, is the trigger error, For the s The real-time joint angle of the single-link robot arm at the trigger moment, for k The real-time operating joint angle of the single-link robot arm at the sampling moment; is an internal dynamic variable, and the update rule is:

[0013] ;

[0014] in, and All are event trigger parameters. , , is the preset threshold parameter;

[0015] The triggering rule described in step (2) introduces the indicator factor Indicates whether the triggering rule is met:

[0016] ;

[0017] If the triggering rule is met in step (2), the preprocessed real-time data is input into a model-free controller that performs adaptive learning of time-varying parameters based on an online Actor-Critic reinforcement learning network, and the method for calculating the control command of the single-link manipulator is as follows:

[0018] Step (2.1): k At the sampling time, the mathematical formula of the model-free controller is:

[0019] ;

[0020] in, for k The control instructions of the single-link robot arm at the sampling time, For the Control instructions for the single-link robotic arm at each trigger moment; is the indicator factor; for k The time-varying parameter vector at the sampling instant, for No. l elements, , L is the controller pseudo order, L is a positive integer; for k The trajectory tracking error of the single-link robot at the sampling time, , for k The expected joint angle of the single-link robot at the sampling time, for k The operating joint angle of the single-link robot arm at the sampling time; , ; for k Trajectory tracking error of a single-link manipulator at sampling time The first-order backward difference of ;

[0021] Step (2.2): Construct a time-varying parameter adaptive learning mechanism based on an online Actor-Critic reinforcement learning network:

[0022] The input of the online Actor-Critic reinforcement learning network includes the k Trajectory tracking error of the single-link manipulator at the sampling time , k First-order backward difference of the trajectory tracking error of a single-link manipulator at the sampling time , k Any one or any combination of the high-order backward differences of the trajectory tracking error of the single-link manipulator at the sampling time; the output of the online Actor-Critic reinforcement learning network includes an Actor output part and a Critic output part, and the Actor output part includes the time-varying parameter vector In , Any one or any combination of, the Critic output part includes a value function.

[0023] According to the event-triggered single-link robotic arm control method under cloud-edge-end collaboration provided by the present invention, in step (3), the cloud side, based on the data fed back by the edge side and the dynamic event triggering mechanism, optimizes and updates the parameters of the model-free controller if the triggering rules are met:

[0024] Step (3.1): Construct a real-time dynamic linearization model of the single-link robotic arm:

[0025] ;

[0026] in, k is the sampling time, for The real-time operating joint angle of the single-link robotic arm at each moment, ; for k The control instructions of the single-link robot arm at all times, ; for k Pseudo partial derivatives of the single-link manipulator at the sampling moment;

[0027] The pseudo partial derivative The iterative learning law is:

[0028] ;

[0029] in, For the A trigger moment, For the Pseudo partial derivatives of the single-link manipulator at the triggering moment; is the indicator factor, is the step size factor, is the penalty factor;

[0030] Step (3.2): In the optimization update process, a one-step forward error is used; based on the real-time dynamic linearization model of the single-link manipulator in step (3.1), the mathematical formula for calculating the one-step forward error is:

[0031] ;

[0032] in, for The trajectory tracking error of the single-link manipulator at time t, i.e., the one-step forward error; for k +1 The expected joint angle of the single-link robot at the sampling time;

[0033] In the optimization and updating process, the gradient information of the single-link manipulator is used; based on the real-time dynamic linearization model of the single-link manipulator in step (3.1), the mathematical formula for calculating the gradient information of the single-link manipulator is:

[0034] ;

[0035] in, for against The derivative of , that is, the gradient information;

[0036] Step (3.3): During the optimization update process, the control instructions of the single-link robotic arm are used. For the time-varying parameter vector middle , , , The mathematical formula for calculating the partial derivative is:

[0037] If the controller pseudo order ,but

[0038] ;

[0039] If the controller pseudo order ,but

[0040] , ;

[0041] Step (3.4): Define the time difference function ,in is the value function, is the discount factor; to minimize the system performance index function As the goal, the weights of the Actor-Critic reinforcement learning network are optimized and updated by using the gradient descent method, wherein the weights include the Actor network weights and the Critic network weights;

[0042] Optimization Update The Actor network weights at the sampling time , , , h is the number of hidden layer nodes of the reinforcement learning network:

[0043] If the controller is pseudo-order ,but

[0044] ;

[0045] If the controller is pseudo-order ,but

[0046] , ;

[0047] in, For the The Actor network weight at the triggering moment, is the indicator factor, is the learning rate of the Actor network, Use the mathematical formula for the one-step forward error described in step (3.2); is a value with a mean of 0 and a variance of The normal distribution function of is the hidden layer of the reinforcement learning network i The output of each node;

[0048] Optimization Update The Critic network weights at the sampling time , :

[0049] ;

[0050] in, For the The Critic network weight at the triggering moment, is the indicator factor, is the learning rate of the Critic network;

[0051] Step (3.5): Optimize updates The controller time-varying parameter vector at the sampling time is In , , , :

[0052] .

[0053] According to the event-triggered single-link robotic arm control method under cloud-edge collaboration provided by the present invention, the Actor-Critic reinforcement learning network adopts a radial basis function network; the radial basis function network adopts a structure with a single hidden layer, that is, a three-layer network structure consisting of an input layer, a single hidden layer, and an output layer.

[0054] The present invention also provides a single-link robotic arm control system triggered by an event under cloud-edge-end collaboration, comprising:

[0055] The terminal comprises a single-link mechanical arm running in real time, a data acquisition module, a first data output module, and a first data input module;

[0056] A data acquisition module, used to collect real-time data of the single-link robotic arm, wherein the real-time data includes a real-time expected joint angle and a real-time operating joint angle;

[0057] A first data output module, used to send the real-time data to an edge end;

[0058] A first data input module, used to receive control instructions sent by the edge end;

[0059] The edge end includes a second data input module, a data preprocessing module, a first dynamic event triggering module, a model-free controller computing module, a control instruction holding module, and a second data output module;

[0060] A second data input module, used for receiving real-time data of the single-link robotic arm uploaded by a terminal;

[0061] A data preprocessing module, used to preprocess the real-time data and then send it to the dynamic event triggering module and the cloud;

[0062] A first dynamic event triggering module is used to design a dynamic event triggering mechanism, and if the triggering rules are met, the pre-processed real-time data is input into the model-free controller calculation module, otherwise the control instruction holding module is triggered;

[0063] Model-free controller calculation module; used to calculate the control instructions of the single-link manipulator through a model-free controller that performs time-varying parameter adaptive learning based on an online Actor-Critic reinforcement learning network;

[0064] A control instruction holding module, used to hold the control instruction at the last triggering moment;

[0065] A second data output module, used for sending the control instruction to the terminal;

[0066] The cloud comprises a third data input module, a data storage module, a second dynamic event triggering module, a model-free controller optimization and updating module, and a third data output module;

[0067] A third data input module, used to receive the pre-processed real-time data uploaded by the edge end;

[0068] A data storage module, used to store the pre-processed real-time data uploaded by the edge end;

[0069] The second dynamic event triggering module is used to determine whether the triggering rules are met. If so, the model-free controller optimization and updating module is triggered, otherwise no operation is performed;

[0070] A model-free controller optimization and updating module, used for optimizing and updating the parameters of the model-free controller;

[0071] The third data output module is used to transmit the optimized and updated model-free controller parameters to the edge end.

[0072] Furthermore, the present invention adopts the following technical solutions:

[0073] A non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned event-triggered single-link robotic arm control method under cloud-edge-end collaboration.

[0074] Furthermore, the present invention adopts the following technical solutions:

[0075] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned event-triggered single-link robotic arm control method under cloud-edge collaboration is implemented.

[0076] The beneficial technical effects of the present invention are:

[0077] For single-input single-output controlled systems, existing research has not yet involved combining direct model-free adaptive control with reinforcement learning networks, and solving the problem of limited system bandwidth and communication resources faced by the cloud-edge through an event triggering mechanism. The event-triggered single-link robotic arm control method and system under cloud-edge collaboration provided by the present invention at least include the following beneficial technical effects:

[0078] (1) Reduce the difficulty of modeling: The present invention adopts a data-driven control method, which does not require the establishment of an accurate dynamic model, reduces the difficulty of modeling, and is easier to apply in practice;

[0079] (2) Improve control accuracy: By deeply integrating model-free adaptive control and reinforcement learning, this method can achieve stronger learning capabilities, thereby improving the control accuracy of the single-link robotic arm and meeting higher-precision application requirements;

[0080] (3) Improve computing efficiency and save system resources: Utilize the powerful computing power of the cloud computing platform for model training and data analysis, and use edge computing devices to achieve real-time data processing and rapid response to control instructions, effectively improving computing efficiency. On the other hand, by introducing an event trigger mechanism, data transmission and control operations are performed only when there is a significant change in the system status, effectively reducing unnecessary communication and computing, thereby saving system resources.

[0081] (4) Broadening the scope of application: The control method and system proposed in the present invention are not only applicable to single-link robotic arms, but can also be extended to other single-input and single-output control systems, and have broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] Figure 1 It is a structural schematic diagram of a single-link robotic arm;

[0083] Figure 2 A schematic flow chart of a single-link robotic arm control method triggered by an event under cloud-edge-end collaboration provided by the present invention;

[0084] Figure 3 A schematic diagram of the connection of the single-link robotic arm control system module triggered by events under cloud-edge-end collaboration provided by the present invention. DETAILED DESCRIPTION

[0085] The present invention discloses a control method and system for a single-link robotic arm triggered by an event under cloud-edge-end collaboration; the terminal collects the operation data of the single-link robotic arm and sends it to the edge end for preprocessing; the edge end inputs the data into a model-free controller or a trigger holder to obtain a control instruction according to a preset event trigger rule; the terminal controls the movement of the single-link robotic arm according to the control instruction, collects the operation data and sends it to the edge end; the cloud end selects to optimize and update the parameters of the model-free controller according to the operation data fed back by the edge end and the preset event trigger rule, and evaluates the control performance. The control method and system of the present invention are not only applicable to single-link robotic arms, reduce their modeling difficulty, improve control accuracy, enhance computing efficiency, and save system resources, but also have the application prospect of being extended to other single-input and single-output systems.

[0086] The following is a further clear and complete description of the single-link robotic arm control method and system triggered by events under cloud-edge-end collaboration provided by the present invention in conjunction with the accompanying drawings:

[0087] Figure 1 The structural diagram of the single-link robotic arm is given. Figure 2 A schematic flow chart of a single-link robotic arm control method triggered by an event under cloud-edge-end collaboration provided by the present invention is given; the present invention provides a single-link robotic arm control method triggered by an event under cloud-edge-end collaboration, wherein the cloud-edge-end includes a cloud, an edge, and a terminal, and includes the following steps:

[0088] Step (1): The terminal collects real-time data of the single-link robotic arm through a sensor signal acquisition device, wherein the real-time data includes a real-time expected joint angle and a real-time operating joint angle, and sends the real-time data to the edge end;

[0089] Step (2): the edge end preprocesses the real-time data; designs a dynamic event trigger mechanism; if the triggering rules are met, the preprocessed real-time data is input into a model-free controller based on an online Actor-Critic reinforcement learning network for time-varying parameter adaptive learning, and a control instruction of the single-link robotic arm is calculated; if the triggering rules are not met, the control instruction at the last triggering moment is maintained; and the control instruction is sent to the terminal, and the terminal controls the movement of the single-link robotic arm according to the control instruction; at the same time, the preprocessed real-time data is sent to the cloud;

[0090] Step (3): The cloud optimizes and updates the model-free controller parameters based on the data fed back by the edge and the dynamic event trigger mechanism. If the trigger rules are met, the cloud optimizes and updates the model-free controller parameters and transmits the optimized and updated model-free controller parameters to the model-free controller at the edge. If the trigger rules are not met, no operation is performed.

[0091] Repeat the above steps (1) to (3) until the control task is completed.

[0092] According to the event-triggered single-link robotic arm control method under cloud-edge-end collaboration provided by the present invention, the edge end in step (2) preprocesses the real-time data, and the preprocessing step includes filtering and noise reduction; the dynamic event triggering mechanism designed in step (2) is used to determine the dynamic event triggering mechanism for the next triggering moment:

[0093] ;

[0094] in, For the s A trigger moment, s is a positive integer, is the trigger error, For the s The real-time joint angle of the single-link robot arm at the trigger moment, for k The real-time operating joint angle of the single-link robot arm at the sampling moment; is an internal dynamic variable, and the update rule is:

[0095] ;

[0096] in, and All are event trigger parameters. , , is the preset threshold parameter;

[0097] The triggering rule described in step (2) introduces the indicator factor Indicates whether the triggering rule is met:

[0098] .

[0099] If the triggering rule is met in step (2), the preprocessed real-time data is input into a model-free controller that performs adaptive learning of time-varying parameters based on an online Actor-Critic reinforcement learning network to calculate a control instruction for the single-link robotic arm; otherwise, the control instruction at the last triggering moment is maintained. The calculation of the model-free controller that performs adaptive learning of time-varying parameters based on an online Actor-Critic reinforcement learning network includes the following steps:

[0100] Step (2.1): k At the sampling time, the mathematical formula of the model-free controller is:

[0101] ;

[0102] in, for kThe control instructions of the single-link robot arm at the sampling time, For the Control instructions for the single-link robotic arm at each trigger moment; is the indicator factor; for k The time-varying parameter vector at the sampling instant, for No. l elements, , L is the controller pseudo order, L is a positive integer; for k The trajectory tracking error of the single-link robot at the sampling time, , for k The expected joint angle of the single-link robot at the sampling time, for k The operating joint angle of the single-link robot arm at the sampling time; , ; for k Trajectory tracking error of a single-link manipulator at sampling time The first-order backward difference of ;

[0103] Step (2.2): Construct a time-varying parameter adaptive learning mechanism based on an online Actor-Critic reinforcement learning network:

[0104] The input of the online Actor-Critic reinforcement learning network includes the k Trajectory tracking error of a single-link manipulator at sampling time , k First-order backward difference of the trajectory tracking error of a single-link manipulator at the sampling time , k Any one or any combination of the high-order backward differences of the trajectory tracking error of the single-link manipulator at the sampling time; the output of the online Actor-Critic reinforcement learning network includes an Actor output part and a Critic output part, and the Actor output part includes the time-varying parameter vector In , Any one or any combination of, the Critic output part includes a value function.

[0105] According to the event-triggered single-link robotic arm control method under cloud-edge-end collaboration provided by the present invention, in step (3), the cloud optimizes and updates the model-free controller parameters based on the data fed back by the edge end in combination with the dynamic event trigger mechanism if the triggering rules are met, otherwise no operation is performed, and the optimization and update process includes the following steps:

[0106] Step (3.1): Construct a real-time dynamic linearization model of the single-link robotic arm:

[0107] ;

[0108] in, k is the sampling time, for The real-time operating joint angle of the single-link robotic arm at each moment, ; for k The control instructions of the single-link robot arm at all times, ; for k Pseudo partial derivatives of the single-link manipulator at the sampling moment;

[0109] The pseudo partial derivative The iterative learning law is:

[0110] ;

[0111] in, For the A trigger moment, For the Pseudo partial derivatives of the single-link manipulator at the triggering moment; is the indicator factor, is the step size factor, is the penalty factor;

[0112] Step (3.2): In the optimization update process, a one-step forward error is used; based on the real-time dynamic linearization model of the single-link manipulator in step (3.1), the mathematical formula for calculating the one-step forward error is:

[0113] ;

[0114] in, for The trajectory tracking error of the single-link manipulator at time t, i.e., the one-step forward error; for k +1 The expected joint angle of the single-link robot at the sampling time;

[0115] In the optimization and updating process, the gradient information of the single-link manipulator is used; based on the real-time dynamic linearization model of the single-link manipulator in step (3.1), the mathematical formula for calculating the gradient information of the single-link manipulator is:

[0116] ;

[0117] in, for against The derivative of , that is, the gradient information;

[0118] Step (3.3): During the optimization update process, the control instructions of the single-link robotic arm are used. For the time-varying parameter vector middle , , , The mathematical formula for calculating the partial derivative is:

[0119] If the controller pseudo order ,but

[0120] ;

[0121] If the controller pseudo order ,but

[0122] , ;

[0123] Step (3.4): Define the time difference function ,in is the value function, is the discount factor; to minimize the system performance index function As the goal, the gradient descent method is used to optimize and update the weights of the Actor-Critic reinforcement learning network, wherein the weights include the Actor network weights and the Critic network weights. h is the number of hidden layer nodes of the reinforcement learning network;

[0124] Optimization Update The Actor network weights at the sampling time , , , h is the number of hidden layer nodes of the reinforcement learning network:

[0125] If the controller is pseudo-order ,but

[0126] ;

[0127] If the controller is pseudo-order ,but

[0128] , ;

[0129] in, For the The Actor network weight at the triggering moment, is the indicator factor, is the learning rate of the Actor network, Use the mathematical formula for the one-step forward error described in step (4.2); is a value with a mean of 0 and a variance of The normal distribution function of is the hidden layer of the reinforcement learning network i The output of each node;

[0130] Optimization Update The Critic network weights at the sampling time , :

[0131] ;

[0132] in, For the The Critic network weight at the triggering moment, is the indicator factor, is the learning rate of the Critic network;

[0133] Step (3.5): Optimize updates The controller time-varying parameter vector at the sampling time is In , , , :

[0134] .

[0135] According to the event-triggered single-link robotic arm control method under cloud-edge collaboration provided by the present invention, the Actor-Critic reinforcement learning network adopts a radial basis function network; the radial basis function network adopts a structure with a single hidden layer, that is, a three-layer network structure consisting of an input layer, a single hidden layer, and an output layer.

[0136] Figure 3A schematic diagram of the connection module of a single-link robotic arm control system triggered by an event under cloud-edge-end collaboration provided by the present invention is given. The present invention also provides a single-link robotic arm control system triggered by an event under cloud-edge-end collaboration, including:

[0137] The terminal comprises a single-link mechanical arm running in real time, a data acquisition module, a first data output module, and a first data input module;

[0138] A data acquisition module, used to collect real-time data of the single-link robotic arm through a sensor signal acquisition device, wherein the real-time data includes a real-time expected joint angle and a real-time operating joint angle;

[0139] A first data output module, used to send the real-time data to an edge end;

[0140] A first data input module, used to receive control instructions sent by the edge end;

[0141] The edge end includes a second data input module, a data preprocessing module, a first dynamic event triggering module, a model-free controller computing module, a control instruction holding module, and a second data output module;

[0142] A second data input module, used for receiving real-time data of the single-link robotic arm uploaded by a terminal;

[0143] A data preprocessing module, used to preprocess the real-time data and then send it to the dynamic event triggering module and the cloud;

[0144] A first dynamic event triggering module is used to design a dynamic event triggering mechanism, and if the triggering rules are met, the pre-processed real-time data is input into the model-free controller calculation module, otherwise the control instruction holding module is triggered;

[0145] Model-free controller calculation module; used to calculate the control instructions of the single-link manipulator through a model-free controller that performs time-varying parameter adaptive learning based on an online Actor-Critic reinforcement learning network;

[0146] A control instruction holding module, used to hold the control instruction at the last triggering moment;

[0147] A second data output module, used for sending the control instruction to the terminal;

[0148] The cloud comprises a third data input module, a data storage module, a second dynamic event triggering module, a model-free controller optimization and updating module, and a third data output module;

[0149] A third data input module, used to receive the pre-processed real-time data uploaded by the edge end;

[0150] A data storage module, used to store the pre-processed real-time data uploaded by the edge end;

[0151] The second dynamic event triggering module is used to determine whether the triggering rules are met. If so, the model-free controller optimization and updating module is triggered, otherwise no operation is performed;

[0152] A model-free controller optimization and updating module, used for optimizing and updating the parameters of the model-free controller;

[0153] The third data output module is used to transmit the optimized and updated model-free controller parameters to the edge end.

[0154] Furthermore, the present invention adopts the following technical solutions:

[0155] A non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned event-triggered single-link robotic arm control method under cloud-edge-end collaboration.

[0156] Furthermore, the present invention adopts the following technical solutions:

[0157] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned event-triggered single-link robotic arm control method under cloud-edge collaboration is implemented.

[0158] Through the description of the above embodiments, it can be clearly understood by those skilled in the art that the facilities of the present invention can be implemented by means of software plus the necessary general hardware platform. The embodiments of the present invention can be implemented using an existing processor, or by a dedicated processor used for this purpose or other purposes for an appropriate system, or by a hard-wired system. The embodiments of the present invention also include non-transitory computer-readable storage media, which include machine-readable media for carrying or having machine-executable instructions or data structures stored thereon; such machine-readable media can be any available medium that can be accessed by a general or special-purpose computer or other machine with a processor. For example, such machine-readable media can include RAM, ROM, EPROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of machine-executable instructions or data structures, and can be accessed by a general or special-purpose computer or other machine with a processor. When information is transmitted or provided to a machine via a network or other communication connection (hard-wired, or wireless, or a combination of hard-wired and wireless), the connection is also considered a machine-readable medium.

[0159] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A single-link robotic arm control method triggered by events under cloud-edge-end collaboration, wherein the cloud-edge-end includes a cloud end, an edge end, and a terminal, and is characterized in that: The following steps are involved: Step (1): The terminal collects real-time data of the single-link robotic arm, the real-time data including the real-time expected joint angle and the real-time operating joint angle, and sends the real-time data to the edge end; Step (2): the edge end preprocesses the real-time data; designs a dynamic event trigger mechanism; if the triggering rules are met, the preprocessed real-time data is input into a model-free controller based on an online Actor-Critic reinforcement learning network for time-varying parameter adaptive learning, and a control instruction of the single-link robotic arm is calculated; if the triggering rules are not met, the control instruction at the last triggering moment is maintained; and the control instruction is sent to the terminal, and the terminal controls the movement of the single-link robotic arm according to the control instruction; at the same time, the preprocessed real-time data is sent to the cloud; Step (3): The cloud optimizes and updates the model-free controller parameters based on the data fed back by the edge and the dynamic event trigger mechanism. If the trigger rules are met, the cloud optimizes and updates the model-free controller parameters and transmits the optimized and updated model-free controller parameters to the model-free controller at the edge. If the trigger rules are not met, no operation is performed. Repeat the above steps (1) to (3) until the control task is completed; The dynamic event triggering mechanism designed in step (2) is used to determine the dynamic event triggering mechanism for the next triggering time as follows: ; in, For the s A trigger moment, s is a positive integer, is the trigger error, For the s The real-time joint angle of the single-link robot arm at the trigger moment, for k The real-time operating joint angle of the single-link robot arm at the sampling moment; is an internal dynamic variable, and the update rule is: ; in, and All are event trigger parameters. , , is the preset threshold parameter; The triggering rule described in step (2) introduces the indicator factor Indicates whether the triggering rule is met: 。 2. The event-triggered single-link robotic arm control method under cloud-edge-end collaboration according to claim 1 is characterized in that: If the triggering rule is met in step (2), the preprocessed real-time data is input into a model-free controller that performs adaptive learning of time-varying parameters based on an online Actor-Critic reinforcement learning network, and the method for calculating the control command of the single-link manipulator is as follows: Step (2.1): k At the sampling time, the mathematical formula of the model-free controller is: ; in, for k The control instructions of the single-link robot arm at the sampling time, For the Control instructions for the single-link robotic arm at each trigger moment; is the indicator factor; for k The time-varying parameter vector at the sampling instant, for No. l elements, , L is the controller pseudo order, L is a positive integer; for k The trajectory tracking error of the single-link robot at the sampling time, , for k The expected joint angle of the single-link robot at the sampling time, for k The operating joint angle of the single-link robot arm at the sampling time; , ; for k Trajectory tracking error of the single-link manipulator at the sampling time The first-order backward difference of ; Step (2.2): Construct a time-varying parameter adaptive learning mechanism based on an online Actor-Critic reinforcement learning network: The input of the online Actor-Critic reinforcement learning network includes the k Trajectory tracking error of the single-link manipulator at the sampling time , k First-order backward difference of the trajectory tracking error of a single-link manipulator at the sampling time , k Any one or any combination of the high-order backward differences of the trajectory tracking error of the single-link manipulator at the sampling time; the output of the online Actor-Critic reinforcement learning network includes an Actor output part and a Critic output part, and the Actor output part includes the time-varying parameter vector In , Any one or any combination of, the Critic output part includes a value function.

3. The event-triggered single-link robotic arm control method under cloud-edge-end collaboration according to claim 2 is characterized in that: In step (3), the cloud, based on the data fed back by the edge, combines the dynamic event trigger mechanism, and if the triggering rules are met, the method for optimizing and updating the parameters of the model-free controller includes the following steps: Step (3.1): Construct a real-time dynamic linearization model of the single-link robotic arm: ; in, k is the sampling time, for The real-time operating joint angle of the single-link robotic arm at each moment, ; for k The control instructions of the single-link robot arm at all times, ; for k Pseudo partial derivatives of the single-link manipulator at the sampling moment; The pseudo partial derivative The iterative learning law is: ; in, For the A trigger moment, For the Pseudo partial derivatives of the single-link manipulator at the triggering moment; is the indicator factor, is the step size factor, is the penalty factor; Step (3.2): In the optimization update process, a one-step forward error is used; based on the real-time dynamic linearization model of the single-link manipulator in step (3.1), the mathematical formula for calculating the one-step forward error is: ; in, for The trajectory tracking error of the single-link robot arm at time; for k +1 The expected joint angle of the single-link robot at the sampling time; In the optimization and updating process, the gradient information of the single-link manipulator is used; based on the real-time dynamic linearization model of the single-link manipulator in step (3.1), the mathematical formula for calculating the gradient information of the single-link manipulator is: ; in, for against The derivative of Step (3.3): During the optimization update process, the control instructions of the single-link robotic arm are used. For the time-varying parameter vector middle , , , The mathematical formula for calculating the partial derivative is: If the controller pseudo order ,but ; If the controller pseudo order ,but , ; Step (3.4): Define the time difference function ,in is the value function, is the discount factor; to minimize the system performance index function As the goal, the weights of the Actor-Critic reinforcement learning network are optimized and updated by using the gradient descent method, wherein the weights include the Actor network weights and the Critic network weights; Optimization Update The Actor network weights at the sampling time , , , h is the number of hidden layer nodes of the reinforcement learning network: If the controller is pseudo-order ,but ; If the controller is pseudo-order ,but , ; in, For the The Actor network weight at the triggering moment, is the indicator factor, is the learning rate of the Actor network, Use the mathematical formula for the one-step forward error described in step (3.2); is a value with a mean of 0 and a variance of The normal distribution function of is the hidden layer of the reinforcement learning network i The output of each node; Optimization Update The Critic network weights at the sampling time , : ; in, For the The Critic network weight at the triggering moment, is the indicator factor, is the learning rate of the Critic network; Step (3.5): Optimize updates The controller time-varying parameter vector at the sampling time is In , , , : 。 4. The event-triggered single-link robotic arm control method under cloud-edge-end collaboration according to claim 1 is characterized in that: The Actor-Critic reinforcement learning network adopts a radial basis function network; the radial basis function network adopts a structure with a single hidden layer.

5. The event-triggered single-link robotic arm control method under cloud-edge-end collaboration according to claim 1 is characterized in that: The method for preprocessing the real-time data at the edge in step (2) includes filtering and noise reduction.

6. The event-triggered single-link robotic arm control method under cloud-edge-end collaboration according to claim 1 is characterized in that: In step (1), the terminal collects real-time data of the single-link robotic arm through a sensor signal acquisition device.

7. A single-link robotic arm control system triggered by an event under cloud-edge-end collaboration, executing a single-link robotic arm control method as described in any one of claims 1-6, characterized in that: include: The terminal comprises a single-link mechanical arm running in real time, a data acquisition module, a first data output module, and a first data input module; A data acquisition module, used to collect real-time data of the single-link robotic arm, wherein the real-time data includes a real-time expected joint angle and a real-time operating joint angle; A first data output module, used to send the real-time data to an edge end; A first data input module, used to receive control instructions sent by the edge end; The edge end includes a second data input module, a data preprocessing module, a first dynamic event triggering module, a model-free controller computing module, a control instruction holding module, and a second data output module; A second data input module, used for receiving real-time data of the single-link robotic arm uploaded by a terminal; A data preprocessing module, used to preprocess the real-time data and then send it to the dynamic event triggering module and the cloud; A first dynamic event triggering module is used to design a dynamic event triggering mechanism, and if the triggering rules are met, the pre-processed real-time data is input into the model-free controller calculation module, otherwise the control instruction holding module is triggered; Model-free controller calculation module; used to calculate the control instructions of the single-link manipulator through a model-free controller that performs time-varying parameter adaptive learning based on an online Actor-Critic reinforcement learning network; A control instruction holding module, used to hold the control instruction at the last triggering moment; A second data output module, used for sending the control instruction to the terminal; The cloud comprises a third data input module, a data storage module, a second dynamic event triggering module, a model-free controller optimization and updating module, and a third data output module; A third data input module, used to receive the pre-processed real-time data uploaded by the edge end; A data storage module, used to store the pre-processed real-time data uploaded by the edge end; The second dynamic event triggering module is used to determine whether the triggering rules are met. If so, the model-free controller optimization and updating module is triggered, otherwise no operation is performed; A model-free controller optimization and update module, used for optimizing and updating the parameters of the model-free controller; The third data output module is used to transmit the optimized and updated model-free controller parameters to the edge end.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the event-triggered single-link robotic arm control method under cloud-edge-end collaboration as described in any one of claims 1 to 6.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, it implements the event-triggered single-link robotic arm control method under cloud-edge-end collaboration as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Mechanical arm path planning method based on velocity smoothing deterministic policy gradient

    CN110328668A

  • Decentralized tracking control method for mechanical arm based on event triggering-neural dynamic programming

    CN113211446A