Control method, device, system and storage medium for a robotic arm based on an adaptive controller
Through the method based on the adaptive controller, the adaptive estimated parameters and tracking error model are used to achieve precise control of the robotic arm, solve the control performance problems caused by structural and non-structural uncertainties in the multi-joint system, and improve the system stability and adaptability.
Patent Information
- Application Number
- CN202410958287.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-17
AI Technical Summary
In multi-joint systems, it is difficult to achieve accurate modeling due to structural and non-structural uncertainties, which affects the control performance. In particular, how to design a stable controller under different load conditions to ensure system stability is an urgent need to solve. problem.
An adaptive controller-based method is adopted, and the input and output data of the rotating mechanism are used for control through the adaptive estimation parameter model and tracking error model, thus avoiding the dependence on the system model and achieving precise control of the rotating mechanism.
It effectively avoids the impact of unmodeled dynamics and system model parameter uncertainty on control performance, improves the control accuracy and stability of the robotic arm, and is suitable for operations under different load conditions.
Smart Images

Figure CN118493408B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of robot arm control, and in particular to a method, device, system and storage medium for controlling a robot arm based on an adaptive controller. Background Art
[0002] Due to its unique operability and flexibility, the robot arm has been widely used in industrial assembly, machine welding, safety and explosion protection, engineering machinery and other fields. For different task modes, it is necessary to plan the spatial motion trajectory of the robot arm to achieve precise positioning or tracking. Therefore, it is particularly important to accurately, quickly and efficiently control the joint space of the robot arm. The spatial trajectory tracking control problem of the robot arm is to make the position, speed, angular displacement and other state information of the robot arm track the given expected trajectory by giving the driving torque of each joint. At present, the modeling of multi-joint robot arms inevitably has structural and non-structural uncertainties. Non-structural uncertainty is mainly caused by its own factors such as measurement error, parameter perturbation, internal friction, and high-order dynamic characteristics. It is difficult to achieve accurate modeling and brings difficulties to the subsequent controller design. Structural uncertainty is determined by its own properties and is difficult to estimate during its movement. In addition, the robot arm can grasp goods ranging from a few kilograms to thousands of kilograms. How to design a stable controller that is not affected by structural changes and ensure the stability of the system is an urgent problem to be solved. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a method, device, system and storage medium for controlling a robotic arm based on an adaptive controller, so as to solve the technical defect that the control of the robotic arm depends on the system model in the prior art.
[0004] In order to achieve the above-mentioned object, the first aspect of the present application provides a control method for a robotic arm based on an adaptive controller, wherein the robotic arm includes at least one rotating mechanism, each rotating mechanism is connected to the adaptive controller by signal, and for any rotating mechanism, the control method includes:
[0005] Identify tasks to be performed;
[0006] For any first moment to be executed, determine a first target output parameter of the rotating mechanism at the first moment, wherein the target output parameter at each moment is determined at least based on an actual output parameter of the rotating mechanism at a moment before the moment and the task to be executed;
[0007] Acquire a second target output parameter of the rotating mechanism based on the task to be performed at a second moment, wherein the second moment is a moment before the first moment;
[0008] Acquire a first actual output parameter of the rotating mechanism when it is executed at a second moment according to a second input parameter determined by the adaptive controller;
[0009] Determine a first adaptive estimation parameter of the adaptive controller at a first moment and a second adaptive estimation parameter at a second moment;
[0010] Determining, by an adaptive controller, a first input parameter of the rotating mechanism at a first moment based on the first target output parameter, the first actual output parameter, the second input parameter, the second target output parameter, the first adaptive estimated parameter, and the second adaptive estimated parameter;
[0011] The rotating mechanism is controlled to perform a related operation according to a first input parameter at a first moment.
[0012] In an embodiment of the present application, the control method further includes: when the first moment is the task start moment, determining the first target output parameter as the first input parameter for the rotating mechanism at the first moment determined by the adaptive controller.
[0013] In an embodiment of the present application, the control method also includes: obtaining a third target output parameter of the rotating mechanism based on the task to be executed at a third moment, wherein the third moment is the previous moment of the second moment; obtaining a second actual output parameter of the rotating mechanism when it is executed at the third moment according to the third input parameter determined by the adaptive controller; determining the first input parameter of the rotating mechanism at the first moment through the adaptive controller based on the first target output parameter, the first actual output parameter, the second input parameter, the second target output parameter, the third input parameter, the third target output parameter, the second actual output parameter, the first adaptive estimated parameter and the second adaptive estimated parameter.
[0014] In an embodiment of the present application, the first input parameter is determined according to formula (1):
[0015]
[0016] in, is the first input parameter, is the first adaptive estimation parameter, is the second adaptive estimation parameter, is the second input parameter, is the third input parameter, is the actual output parameter at the first moment, is the first actual output parameter, is the second actual output parameter, is the first target output parameter, Output parameter for the second target, Output parameter for the third target, are all constants.
[0017] In an embodiment of the present application, the control method also includes a method for determining an adaptive controller, the determination method including: obtaining a body nonlinear model for the robotic arm; for any rotating mechanism, constructing an adaptive estimation parameter model based on multiple historical input parameters and multiple historical actual output parameters of the rotating mechanism at multiple adjacent historical moments, wherein the adaptive estimation parameter model reflects the correlation between the input parameters and actual output parameters of the rotating mechanism; constructing a tracking error model based on the historical target output parameters and historical actual output parameters of the rotating mechanism at any historical moment; determining a first-order filter model and a second-order filter model of the tracking error model; when the tracking error at any historical moment satisfies a first preset condition, determining an adaptive controller for the rotating mechanism based on the body nonlinear model, the adaptive estimation parameter model, the tracking error model, the first-order filter model, and the second-order filter model.
[0018] In the embodiment of the present application, the nonlinear model of the body is shown in formula (2):
[0019]
[0020] in, is the input parameter of the rotating mechanism at the historical moment k, is the unknown order input disturbance of any channel of the robot, is the actual output parameter of the rotating mechanism at the historical moment k, is the actual output parameter of the rotating mechanism at the historical moment k+1, and the historical moment k+1 is the next moment of the historical moment k. is the unknown order output disturbance of any channel of the robot, is the external disturbance caused by the gravity and friction of the robot arm, d Internal disturbances caused by the internal structure of the robot arm.
[0021] In an embodiment of the present application, the adaptive estimation parameter model includes determining according to formula (3):
[0022]
[0023] in, , are constants, is the adaptive estimated parameter of the rotating mechanism at the historical moment k, is the adaptive estimation parameter of the rotating mechanism at the historical k-1 moment, where the historical k-1 moment is the moment before the historical k moment. is the input difference between the historical k-1 moment and the historical k-2 moment, is the actual output difference between historical moment k and historical moment k-1.
[0024] In an embodiment of the present application, the control method also includes: for each rotating mechanism, after determining the adaptive controller of each rotating mechanism, simulating the robotic arm based on a preset simulation model; when it is determined based on the simulation results that the tracking error of each rotating mechanism satisfies the second preset condition, determining that the adaptive controller of each rotating mechanism meets the control requirements.
[0025] A second aspect of the present application provides a control device for a robotic arm based on an adaptive controller, comprising:
[0026] a memory configured to store instructions; and
[0027] The adaptive controller is configured to call the instructions from the memory and implement the above-mentioned method for controlling the robotic arm based on the adaptive controller when executing the instructions.
[0028] A third aspect of the present application provides a control system for a robotic arm, comprising:
[0029] The control device for the robotic arm based on the adaptive controller as described above;
[0030] A robotic arm includes at least one rotating mechanism.
[0031] A fourth aspect of the present application provides a machine-readable storage medium having instructions stored thereon, which, when executed by a controller, configures the controller to execute the above-mentioned method for controlling a robotic arm based on an adaptive controller.
[0032] The above technical scheme provides a control method for a manipulator based on an adaptive controller, determines the task to be executed for any rotating mechanism of the manipulator; determines the first target output parameter of the rotating mechanism at the first moment for any first moment to be executed, wherein the target output parameter of each moment is determined at least according to the actual output parameter of the rotating mechanism at the previous moment of the moment and the task to be executed; obtains the second target output parameter of the rotating mechanism at the second moment based on the task to be executed, wherein the second moment is the previous moment of the first moment; obtains the first actual output parameter of the rotating mechanism when it is executed according to the second input parameter determined by the adaptive controller at the second moment; determines the first adaptive estimation parameter of the adaptive controller at the first moment and the second adaptive estimation parameter at the second moment; and then determines the first input parameter of the rotating mechanism at the first moment based on the first target output parameter, the first actual output parameter, the second input parameter, the second target output parameter, the first adaptive estimation parameter and the second adaptive estimation parameter by the adaptive controller; controls the rotating mechanism to perform related operations according to the first input parameter at the first moment. The adaptive controller realizes the control of the rotating mechanism by only using the input and output data of the rotating mechanism without relying on the system model, effectively avoiding the influence of the uncertainty of the system itself such as the unmodeled dynamics or the uncertainty of the system model parameters on the control performance.
[0033] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0035] Figure 1 A schematic diagram of an application environment of a method for controlling a robotic arm based on an adaptive controller according to an embodiment of the present application is schematically shown;
[0036] Figure 2 The flowchart of the method for controlling a robotic arm based on an adaptive controller according to an embodiment of the present application is schematically shown;
[0037] Figure 3 A schematic diagram of a control system for a robotic arm according to an embodiment of the present application is shown;
[0038] Figure 4 A schematic diagram of the structure of a mechanical arm model according to an embodiment of the present application is shown;
[0039] Figure 5aSchematically shows the angle tracking setting, measured actual value and tracking error curve of joint A according to an embodiment of the present application;
[0040] Figure 5b Schematically shows the angle tracking setting, measured actual value and tracking error curve of joint B according to an embodiment of the present application;
[0041] Figure 5c Schematically shows the angle tracking setting, measured actual value and tracking error curve of the joint C according to the embodiment of the present application;
[0042] Figure 5d Schematically shows a schematic diagram of a partial enlargement (5-30 second curve) of the tracking error curves of joint A, joint B and joint C according to an embodiment of the present application;
[0043] Figure 5e The diagram schematically shows the setting, measurement, and axial tracking error of the end effector x-axis according to an embodiment of the present application;
[0044] Figure 5f The diagram schematically shows the setting, measurement, and axial tracking error of the end effector y-axis according to an embodiment of the present application;
[0045] Figure 5g The diagram schematically shows the setting, measurement, and axial tracking error of the end effector z-axis according to an embodiment of the present application;
[0046] Figure 6 The internal structure of a computer device according to an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution 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. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0048] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), such directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0049] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0050] The control method of the robot arm based on the adaptive controller provided in this application can be applied to Figure 1 In the application environment shown. Figure 1 As shown, the robot model consists of a base, a robot A and a robot B. The rotation angle of the base can be , the rotation angle of robot arm A can be , the rotation angle of robot arm B can be Each rotating mechanism of the robot model is equipped with an adaptive controller, that is, the base, robot A and robot B are all connected to the corresponding adaptive controller signals. It should be noted that the adaptive controller of each rotating mechanism of the robot model can be an integrated adaptive controller, or the adaptive controller of each rotating mechanism can be independently set.
[0051] Figure 2 The following is a schematic diagram showing a flow chart of a method for controlling a robotic arm based on an adaptive controller according to an embodiment of the present application. Figure 2 As shown, an embodiment of the present application provides a method for controlling a robotic arm based on an adaptive controller, wherein the robotic arm includes at least one rotating mechanism, and each rotating mechanism is connected to an adaptive controller signal, that is, each rotating mechanism has an adaptive controller corresponding thereto. It should be noted that the adaptive controller of each rotating mechanism can be an integrated adaptive controller, or an adaptive controller of each rotating mechanism can be independently set. For the control of the rotating mechanism, the method can include the following steps.
[0052] Step 201, determining the tasks to be performed.
[0053] In the embodiments of the present application, it should be noted that the task to be executed may refer to the behavior of controlling the rotation angles of the various rotating mechanisms of the robot arm to make the end manipulator reach the position of the object to be grasped when there is an object to be grasped, or it may refer to the behavior of controlling the rotation angles of the various rotating mechanisms of the robot arm to make the end manipulator reach the target position. This is not specifically limited in the present scheme, and the task to be executed can be determined as the behavior of controlling the rotation angles of the various rotating mechanisms of the robot arm to change.
[0054] Step 202, for any first moment to be executed, determine the first target output parameter of the rotating mechanism at the first moment, wherein the target output parameter at each moment is determined based on at least the actual output parameter of the rotating mechanism at the previous moment and the task to be executed.
[0055] In the embodiment of the present application, it should be noted that it takes a certain amount of time from the start of the task to be executed to the completion of the task. Therefore, the process from the start of the task to be executed to the completion of the task can be divided into a plurality of moments to be executed. The adaptive controller controls the rotating mechanism to be in different states at each moment to be executed, and finally changes from the initial state to the target state corresponding to the task to be executed. Therefore, for any first moment to be executed, the adaptive controller needs to determine the first target output parameter of the rotating mechanism at that moment, wherein the target output parameter of each moment is determined at least according to the actual output parameter of the rotating mechanism at the previous moment of the moment and the task to be executed. Specifically, taking the task to be executed as rotating to 60 degrees as an example, assuming that the current moment is the m moment, the previous moment of the current moment is the m-1 moment, and at the m-1 moment, the actual output parameter of the rotating mechanism is 58.8 degrees, then the target output parameter of the current m moment should be determined according to the 60 degrees of the task to be executed and the actual output parameter of the m-1 moment 58.8 degrees, that is, the target output parameter of the current m moment is 1.2 degrees.
[0056] Step 203 , obtaining a second target output parameter of the rotating mechanism based on the task to be performed at a second moment, wherein the second moment is a moment before the first moment.
[0057] In the embodiment of the present application, taking any first moment of the task to be executed as moment k as an example, the previous moment of the first moment, that is, the second moment, is moment k-1. After determining the first target output parameter of the rotating mechanism at moment k, it is also necessary to obtain the second target output parameter of the rotating mechanism at moment k-1. Among them, the target output parameter of each moment is determined at least based on the actual output parameter of the rotating mechanism at the previous moment and the task to be executed. Therefore, the second target output parameter at moment k-1 can be determined at least based on the actual output parameter of the rotating mechanism at moment k-2 and the task to be executed.
[0058] Step 204 , obtaining a first actual output parameter of the rotating mechanism when it is executed at the second moment according to the second input parameter determined by the adaptive controller.
[0059] In the embodiment of the present application, it should be noted that there are disturbances in both the input and output of the rotating mechanism, which are the input disturbance and output disturbance brought by the robot arm, respectively. Therefore, for the rotating mechanism, the ideal input and the actual output will not be completely consistent, and there must be errors. Therefore, in the present technical solution, the input parameter input by the adaptive controller to the rotating mechanism at any time based on the task to be performed, the rotating mechanism has an actual output parameter corresponding to the input parameter. Specifically, assuming that the task to be performed is to rotate to 60 degrees, taking the second moment as the k-1 moment as an example, the second input parameter input by the adaptive controller to the rotating mechanism at the k-1 moment can be 1.2 degrees, and the first actual output parameter executed by the rotating mechanism based on 1.2 degrees can be 59.5 degrees.
[0060] Step 205 , determining a first adaptive estimation parameter of the adaptive controller at a first moment and a second adaptive estimation parameter at a second moment.
[0061] In the embodiment of the present application, it should be noted that the adaptive controller includes an adaptive estimation parameter model, which can reflect the correlation between the input parameters and the actual output parameters of the rotating mechanism. Therefore, at any time for the task to be performed, the adaptive estimation parameter at that time can be determined by the adaptive estimation parameter model. Specifically, the adaptive estimation parameter in the present technical solution can be expressed as , taking the first moment as moment k as an example, the first adaptive estimation parameter at moment k can be , the second adaptive estimation parameter at time k-1 can be .
[0062] Step 206: Determine the first input parameter of the rotating mechanism at the first moment through an adaptive controller based on the first target output parameter, the first actual output parameter, the second input parameter, the second target output parameter, the first adaptive estimated parameter and the second adaptive estimated parameter.
[0063] In the embodiment of the present application, after respectively obtaining the first target output parameter and the first adaptive estimation parameter of the first moment of the current execution time, and the second target output parameter, the second input parameter, the first actual output parameter, and the second adaptive estimation parameter of the second moment, the first input parameter of the rotating mechanism at the current execution time can be determined based on these parameters by the adaptive controller. Specifically, taking the first moment of the current execution time as moment k as an example, the previous moment of the first moment, that is, the second moment, is moment k-1. After obtaining the first target output parameter at moment k, , the first adaptive estimation parameter , and the second target output parameter at time k-1 , the second input parameter , the first actual output parameter , the second adaptive estimation parameter Afterwards, the adaptive controller can be based on , , , , as well as Determine the first input parameter at time k .
[0064] Step 207: Control the rotating mechanism to perform related operations according to the first input parameter at the first moment.
[0065] In an embodiment of the present application, after determining the first input parameter of the current execution time, the adaptive controller can input the first input parameter to the rotation mechanism to make the rotation mechanism perform related operations and obtain actual output parameters executed based on the first input parameter.
[0066] In this embodiment, it can be determined whether the error between the actual output parameters executed by the rotating mechanism based on the first input parameters and the task to be executed meets the actual requirements. If the actual requirements are met, it can be confirmed that the task to be executed has been completed. If the actual requirements are not met, the current time to be executed is updated to the next time of the current time. The adaptive controller continues to repeat the above steps of determining the input parameters of the time to be executed, and obtains the updated actual output parameters until the error between the updated actual input parameters and the task to be executed meets the actual requirements.
[0067] In the above technical solution, the adaptive controller realizes the control of the rotating mechanism by only utilizing the input and output data of the rotating mechanism without relying on the system model, thereby effectively avoiding the influence of the uncertainty of the system itself such as unmodeled dynamics or uncertainty of system model parameters on the control performance.
[0068] In one embodiment, the control method further includes: when the first moment is the task start moment, determining the first target output parameter as the first input parameter for the rotating mechanism at the first moment determined by the adaptive controller.
[0069] In this embodiment, it takes a certain amount of time from the start of the task to be executed to the completion of the task. Therefore, the process from the start of the task to be executed to the completion of the task can be divided into a plurality of moments to be executed. Specifically, taking the time from the start of the task to be executed to the completion of the task as T as an example, the time T can be divided into T0, T1, T2, ..., Tn, wherein T0 + T1 + T2 + ... + Tn = T, the task starts to execute corresponding to the T0 moment, and the task ends at the Tn moment. It should be noted that for any task to be executed, when the task is started, the target output parameters and input parameters at the start of the task should be the same as the task to be executed. Specifically, taking the task to be executed as rotating to 60 degrees as an example, the target output parameters at the start of the task when the task is started should be 60 degrees, and the input parameters at this time should also be 60 degrees. Therefore, in the present technical solution, when the first moment is the task start moment, the first target output parameter is determined as the first input parameter determined by the adaptive controller for the rotating mechanism at the first moment.
[0070] In one embodiment, the control method also includes: obtaining a third target output parameter of the rotating mechanism based on the task to be executed at a third moment, wherein the third moment is the previous moment of the second moment; obtaining a second actual output parameter of the rotating mechanism when it is executed at the third moment according to the third input parameter determined by the adaptive controller; determining the first input parameter of the rotating mechanism at the first moment through the adaptive controller based on the first target output parameter, the first actual output parameter, the second input parameter, the second target output parameter, the third input parameter, the third target output parameter, the second actual output parameter, the first adaptive estimated parameter and the second adaptive estimated parameter.
[0071] In the present embodiment, it should be noted that, taking the current execution moment, i.e., the first moment, as an example, k, the previous moment of the k moment, i.e., the second moment, is k-1, and the previous moment of the k-1 moment, i.e., the third moment, is k-2. Specifically, the third target output parameter of the rotating mechanism based on the task to be executed at the k-2 moment is obtained, and the second actual output parameter of the rotating mechanism when it is executed according to the third input parameter determined by the adaptive controller at the k-2 moment is obtained, and then the first input parameter of the rotating mechanism at the current execution moment can be determined by the adaptive controller based on the first target output parameter of the first moment of the current execution moment, the first adaptive estimated parameter, the second target output parameter of the second moment, the second input parameter, the first actual output parameter, the second adaptive estimated parameter, and the third input parameter, the second actual output parameter, and the third target output parameter of the third moment. Specifically, taking the current execution moment as the first moment of the k moment, the k-1 moment, and the k-2 moment as an example, after obtaining the first target output parameter at the k moment , the first adaptive estimation parameter , the second target output parameter at time k-1 , the second input parameter , the first actual output parameter , the second adaptive estimation parameter , and the third input parameter at time k-2 , the second actual output parameter , the third target output parameter Afterwards, the adaptive controller can be based on , , , , , , , as well as Determine the first input parameter at time k .
[0072] In one embodiment, the first input parameter includes:
[0073]
[0074] in, is the first input parameter, is the first adaptive estimation parameter, is the second adaptive estimation parameter, is the second input parameter, is the third input parameter, is the actual output parameter at the first moment, is the first actual output parameter, is the second actual output parameter, is the first target output parameter, Output parameter for the second target, Output parameter for the third target, are all normal numbers, is the sliding mode ratio parameter.
[0075] In this embodiment, in order to avoid It may become very large or even unbounded, so a positive parameter m is introduced. At the same time, in order to increase the robustness of the system and reduce the chattering phenomenon of the system, to replace .
[0076] In one embodiment, Figure 3 As shown, a schematic diagram of a control system for a robotic arm is provided. The control system of the robotic arm includes:
[0077] A control device for a mechanical arm based on an adaptive controller, comprising a memory and at least one adaptive controller;
[0078] A robotic arm includes at least one rotating mechanism.
[0079] like Figure 3 As shown in FIG. 1 , the data-driven structured adaptive controller at the control algorithm level is a control device for the robot arm based on the adaptive controller in the technical solution. The robot arm model is the controlled object of the adaptive controller. The parameters, coordinate transformation, and actuator rotation of the controlled object are shown in FIG. Figure 4 It should be noted that the motion of the robot arm may include inverse kinematics and forward kinematics. Inverse kinematics refers to the process of controlling the rotation angles of each joint of the robot arm to make the end manipulator reach the target position when the coordinates of the object to be grasped are known, that is, the x / y / z coordinates of the end of the robot arm are converted into the rotation angles of each joint. i represents the given value of the rotation angle of the joint. Forward kinematics can be understood as the process of finding the position of the end of the robot arm when the rotation angles of each joint of the robot arm are known, that is, the rotation angles of each joint measured in real time by the controlled object. i indicates the joint rotation angle measurement value converted into the real-time end position .
[0080] In this embodiment, if Figure 4 As shown in FIG. 1 , a schematic diagram of the structure of a robotic arm model is provided. The robotic arm can be composed of three rotating mechanisms, namely, a base, two robotic arms, and any two adjacent rotating mechanisms are connected by a rotatable joint. The rotation angle of the base can be expressed as Indicates that the rotation angle of one of the robotic arms can be expressed as Indicates that another robot arm rotation angle can be used express.
[0081] In one embodiment, the control method also includes a method for determining an adaptive controller, the determination method including: obtaining a body nonlinear model for the robotic arm; for any rotating mechanism, constructing an adaptive estimation parameter model based on multiple historical input parameters and multiple historical actual output parameters of the rotating mechanism at multiple adjacent historical moments, wherein the adaptive estimation parameter model reflects the correlation between the input parameters and the actual output parameters of the rotating mechanism; constructing a tracking error model based on the historical target output parameters and the historical actual output parameters of the rotating mechanism at any historical moment; determining a first-order filter model and a second-order filter model of the tracking error model; when the tracking error at any historical moment satisfies a first preset condition, determining an adaptive controller for the rotating mechanism based on the body nonlinear model, the adaptive estimation parameter model, the tracking error model, the first-order filter model, and the second-order filter model.
[0082] In this embodiment, for the problem of robotic arm control, taking into account the heavy reliance of existing model-based control methods on system models, and the impact of unmodeled dynamics on the system that always accompanies model-based control, this technical solution constructs an adaptive controller for the robotic arm structure based on the existing linear model of the body. Therefore, when constructing an adaptive controller, it is necessary to first obtain a nonlinear model of the body for the robotic arm, where the nonlinear model refers to a mathematical expression that reflects the nonlinear relationship between the independent variable and the dependent variable, and construct a tracking error model based on the historical target output parameters and historical actual output parameters of the rotating mechanism at any historical moment. Specifically, taking the historical k+1 moment as an example, the historical target output parameter at the historical k+1 moment is , the actual historical output parameter at the historical k+1 moment is , then the constructed tracking error model can be:
[0083] (1-1)
[0084] in, It is expressed as the tracking error of the system at time k+1.
[0085] In this embodiment, after constructing the tracking error model shown in formula (1), the first-order filtering model and the second-order filtering model of the tracking error model are determined. Specifically, the first-order filtering model of the tracking error model can be expressed as:
[0086] (1-2)
[0087] in, Is a normal number.
[0088] Among them, based on the first-order filtering model shown in formula (1-2), the second-order filtering model of the tracking error model can be further obtained. Specifically, the sliding surface can be defined as:
[0089] (1-3)
[0090] in, Is a normal number.
[0091] In this embodiment, it should be noted that the first preset condition may mean that without considering the generalized disturbance, the goal of the system is:
[0092] (1-4)
[0093] Tracking Error is 0. Therefore, when the tracking error at any historical moment is 0, the adaptive controller for the rotating mechanism can be determined based on the body nonlinear model, the adaptive estimation parameter model, the tracking error model, the first-order filter model and the second-order filter model.
[0094] In one embodiment, the nonlinear model of the body is shown in formula (2):
[0095]
[0096] in, is the input parameter of the rotating mechanism at the historical moment k, is the unknown order input disturbance of any channel of the manipulator, is the actual output parameter of the rotating mechanism at the historical moment k, is the actual output parameter of the rotating mechanism at the historical moment k+1, and the historical moment k+1 is the next moment of the historical moment k. is the unknown order output disturbance of any channel of the robot, is the external disturbance caused by the gravity and friction of the robot arm, Internal disturbances caused by the internal structure of the robot arm.
[0097] The omitted part on the right side of formula (2) can be abbreviated as , is a nonlinear unknown function of any channel of the robot, , , is the unknown order of the system, which can be expressed as Figure 3 The unmodeled dynamics in the robotic arm model shown in Can be Figure 3 Internal disturbances in the robot model shown in ,' ' is a symbol, R represents the real number field, and we can assume is bounded and satisfies , constant, is the norm symbol.
[0098] In this embodiment, it is assumed that in system (1) For the current disturbance input The partial derivative of is continuous, then the dynamic linearization model of formula (2) can be equivalent to:
[0099] (2-1)
[0100] in, , express The pseudo partial derivative values of the control input and disturbance at each time, From formula (2-1), we can see that All of them are unknown. If all designs are completed, the system operation will increase, and the real-time performance of the system cannot be guaranteed. It is difficult to measure, but they are all bounded, so they can be regarded as a generalized disturbance with an overall unknown bound.
[0101] In one embodiment, the adaptive estimation parameter model includes determining according to formula (3):
[0102]
[0103] in, , are constants, is the adaptive estimated parameter of the rotating mechanism at the historical moment k, is the adaptive estimation parameter of the rotating mechanism at the historical k-1 moment, where the historical k-1 moment is the moment before the historical k moment. is the input difference between the historical k-1 moment and the historical k-2 moment, is the actual output difference between historical moment k and historical moment k-1.
[0104] In this embodiment, it can be seen that It realizes adaptive estimation of system structure rather than ordinary adaptive estimation of parameters.
[0105] In this embodiment, is the control input, is a generalized perturbation, so we only need to design The system can be controlled, and this parameter is also the structural adaptive estimation parameter of the system. Substituting formula (3) into formula (2-1), formula (2-1) can be further simplified as:
[0106] (3-2)
[0107] in, It includes information such as measurement error, input disturbance and external disturbance, and can also be regarded as generalized disturbance. Boundedness and control input and pseudo partial derivative estimates related.
[0108] In this embodiment, when the tracking error at any historical moment is 0, the adaptive controller for the rotating mechanism can be determined based on the nonlinear model of the body shown in formula (2), the adaptive estimation parameter model shown in formula (3), the tracking error model shown in formula (1-1), the first-order filter model shown in formula (1-2), and the second-order filter model shown in formula (1-3). Specifically, by substituting formula (3-2), (1-1), (1-2), and (1-3) into formula (1-4), the adaptive controller can be designed as:
[0109]
[0110] Then substitute formula (1-3) into formula (3-3):
[0111]
[0112] Then substitute formula (1-2) into formula (3-4):
[0113]
[0114] Substituting equation (1-1) into equation (3-5), we get the adaptive controller:
[0115]
[0116] Finally, the input of the designed k moment is the same as the input parameters of the previous k-1 and k-2 moments. Related to, and the actual output parameters at time k And the actual output parameters at k-1 and k-2 Related to, and k-time target output parameters And the target output parameters at k-1 and k-2 related, All are constants. It can be seen that the designed adaptive controller has no correlation with the system model parameters. Therefore, once a single-input and single-output channel controller is designed, it can be transplanted modularly.
[0117] In one embodiment, the control method further includes: for each rotating mechanism, after determining the adaptive controller of each rotating mechanism, simulating the robotic arm based on a preset simulation model; when it is determined based on the simulation results that the tracking error of each rotating mechanism satisfies the second preset condition, determining that the adaptive controller of each rotating mechanism meets the control requirements.
[0118] In this embodiment, the preset simulation model may refer to a Matlab / Simulink model, and the second preset condition may refer to the tracking error in Therefore, for each rotating mechanism, after determining the adaptive controller of each rotating mechanism, the robot arm can be simulated based on the Matlab / Simulink model, and the tracking error of each rotating mechanism can be determined based on the simulation results. In the case of the level, it is determined that the adaptive controller of each rotating mechanism meets the control requirements. Specifically, in order to verify the control effect of the adaptive controller constructed by this technical solution, a Matlab / Simulink model is established to Figure 4 The robot model shown in the figure is simulated and the simulation results are shown in Figure 5a to Figure 5g As shown, the simulation time is 0-30 seconds.
[0119] The xyz given trajectory executed by the end of the designed robot arm is:
[0120]
[0121]
[0122] Where t is the simulation time.
[0123] from Figure 5a to Figure 5g It can be seen that the tracking errors of the three joints of the robot arm are all The adaptive controller constructed by this technical solution meets the control requirements.
[0124] The adaptive controller scheme of this technical solution does not require a system model, and the designed adaptive controller does not rely on the system model. It only uses the input and output data of the system, and does not require virtual data for model training in advance, thus avoiding the influence of the uncertainty of the system itself such as unmodeled dynamics or system model parameter uncertainty on the control performance. The robotic arm is sensitive to its own state changes, and the system has high real-time requirements. Therefore, it has strict requirements on the real-time performance and engineering implementation of the control algorithm design. The adaptive controller constructed by this technical solution only uses the first four frames of data, namely, k, k-1, k-2, and k-4, with small calculation amount and high real-time performance. The multi-joint robotic arm is a complex system, which is affected by uncertain time-varying, internal friction, parameter perturbation, external environmental interference, and gravity field. The adaptive controller constructed by this technical solution adopts structural adaptive parameters, which are insensitive to uncertain factors such as system time-varying parameters, time-varying structure, and system order changes, thus avoiding the disadvantage of infinite estimation of common adaptive control parameters. The robot arm can grab cargo ranging from a few kilograms to several thousand kilograms. Robustness is also an important indicator for evaluating the stability design of the controller. The adaptive controller constructed by this technical solution adopts a second-order discrete sliding mode to effectively reduce the system's chattering and enhance the system's robustness. Function substitution The function further reduces the system jitter, avoids the impact of directly using the symbolic function on the stability analysis of the closed-loop system, and avoids the disadvantages of the traditional sliding mode controller that needs to know the internal and external disturbances and uncertainties. At present, most controller designs are designed from the output end, that is, the stability of the robot movement, and do not start from the energy of the input end. The adaptive controller constructed by this technical solution only targets the input and output data of the system, and does not use any known parameters of the model of the system. Therefore, due to the limitation of the mechanical structure, the input energy is essentially bounded, that is, the input energy can be predicted.
[0125] An embodiment of the present application provides a storage medium on which a program is stored. When the program is executed by a controller, the above-mentioned method for controlling a robotic arm based on an adaptive controller is implemented.
[0126] An embodiment of the present application provides an adaptive controller, which is used to run a program, wherein the program executes the above-mentioned method for controlling a robotic arm based on the adaptive controller when running.
[0127] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a controller A01, a network interface A02, a memory (not shown in the figure) and a database (not shown in the figure) connected through a system bus. Among them, the controller A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02 and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store data on a control method for a robotic arm based on an adaptive controller. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the controller A01, a control method for a robotic arm based on an adaptive controller is implemented.
[0128] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0129] An embodiment of the present application provides a device, which includes a controller, a memory, and a program stored in the memory and executable on the controller. When the controller executes the program, a method for controlling a robotic arm based on an adaptive controller is implemented.
[0130] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes the steps of a method for controlling a robotic arm based on an adaptive controller.
[0131] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0132] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a controller of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the controller of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0133] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0134] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0135] In a typical configuration, a computing device includes one or more controllers (CPU), input / output interfaces, network interfaces, and memory.
[0136] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0137] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0138] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0139] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for controlling a robotic arm based on an adaptive controller, characterized in that: The mechanical arm includes at least one rotating mechanism, each rotating mechanism is connected to the adaptive controller signal, and for any rotating mechanism, the control method includes: Identify tasks to be performed; For any first moment to be executed, determine a first target output parameter of the rotating mechanism at the first moment, wherein the target output parameter at each moment is determined at least based on an actual output parameter of the rotating mechanism at a moment before the moment and the task to be executed; Acquire a second target output parameter of the rotating mechanism based on the task to be performed at a second moment, wherein the second moment is a moment before the first moment; Acquire a first actual output parameter of the rotating mechanism when it is executed according to a second input parameter determined by the adaptive controller at the second moment; Determining a first adaptive estimation parameter of the adaptive controller at the first moment and a second adaptive estimation parameter at the second moment; Determining, by the adaptive controller, a first input parameter of the rotating mechanism at the first moment based on the first target output parameter, the first actual output parameter, the second input parameter, the second target output parameter, the first adaptive estimated parameter, and the second adaptive estimated parameter; The rotating mechanism is controlled to perform related operations according to the first input parameter at the first moment.
2. The method for controlling a robotic arm based on an adaptive controller according to claim 1, characterized in that: The control method further comprises: In a case where the first moment is a task start moment, the first target output parameter is determined as a first input parameter for the rotating mechanism at the first moment determined by an adaptive controller.
3. The method for controlling a robotic arm based on an adaptive controller according to claim 1, characterized in that: The control method further comprises: Acquire a third target output parameter of the rotating mechanism based on the task to be performed at a third moment, wherein the third moment is a moment before the second moment; Acquire a second actual output parameter of the rotating mechanism when it is executed according to the third input parameter determined by the adaptive controller at the third moment; The first input parameter of the rotating mechanism at the first moment is determined by the adaptive controller based on the first target output parameter, the first actual output parameter, the second input parameter, the second target output parameter, the third input parameter, the third target output parameter, the second actual output parameter, the first adaptive estimated parameter and the second adaptive estimated parameter.
4. The method for controlling a robotic arm based on an adaptive controller according to claim 3, characterized in that: The first input parameter is determined according to formula (1): in, is the first input parameter, is the first adaptive estimation parameter, is the second adaptive estimation parameter, For the second input parameter, is the third input parameter, is the actual output parameter at the first moment, is the first actual output parameter, is the second actual output parameter, is the first target output parameter, is the second target output parameter, is the third target output parameter, are all constants.
5. The method for controlling a robotic arm based on an adaptive controller according to claim 1, characterized in that: The control method further includes a determination method of the adaptive controller, the determination method including: Obtain a nonlinear model of the robot body; For any rotating mechanism, an adaptive estimation parameter model is constructed based on a plurality of historical input parameters and a plurality of historical actual output parameters of the rotating mechanism at a plurality of historical adjacent moments, wherein the adaptive estimation parameter model reflects the correlation between the input parameters and the actual output parameters of the rotating mechanism; Building a tracking error model based on historical target output parameters and historical actual output parameters of the rotating mechanism at any historical moment; Determining a first-order filtering model and a second-order filtering model of the tracking error model; When the tracking error at any historical moment meets the first preset condition, an adaptive controller for the rotating mechanism is determined based on the body nonlinear model, the adaptive estimation parameter model, the tracking error model, the first-order filter model and the second-order filter model.
6. The method for controlling a robotic arm based on an adaptive controller according to claim 5, characterized in that: The nonlinear model of the body is shown in formula (2): in, is the input parameter of the rotating mechanism at the historical moment k, is the unknown order input disturbance of any channel of the robot, is the actual output parameter of the rotating mechanism at the historical time k, is the actual output parameter of the rotating mechanism at the historical k+1 moment, and the historical k+1 moment is the next moment of the historical k moment, is the unknown order output disturbance of any channel of the robot, is the external disturbance caused by the gravity and friction of the manipulator, Internal disturbances caused by the internal structure of the robotic arm.
7. The method for controlling a robotic arm based on an adaptive controller according to claim 5, characterized in that: The adaptive estimation parameter model includes determining according to formula (3): in, , are constants, is the adaptive estimation parameter of the rotating mechanism at the historical moment k, is the adaptive estimation parameter of the rotating mechanism at the historical moment k-1, where the historical moment k-1 is the moment before the historical moment k, is the input difference between the historical k-1 moment and the historical k-2 moment, is the actual output difference between the historical time k and the historical time k-1.
8. The method for controlling a robotic arm based on an adaptive controller according to claim 5, characterized in that: The control method further comprises: For each rotating mechanism, after determining an adaptive controller for each rotating mechanism, simulating the robotic arm based on a preset simulation model; When it is determined based on the simulation result that the tracking error of each rotating mechanism satisfies the second preset condition, it is determined that the adaptive controller of each rotating mechanism meets the control requirement.
9. A control device for a robotic arm based on an adaptive controller, characterized in that: include: a memory configured to store instructions; as well as An adaptive controller is configured to call the instruction from the memory and implement the method for controlling a robotic arm based on an adaptive controller according to any one of claims 1 to 8 when executing the instruction.
10. A control system for a robotic arm, characterized in that: include: The control device for a robotic arm based on an adaptive controller according to claim 9; A robotic arm includes at least one rotating mechanism.
11. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by the controller, the controller is configured to execute the method for controlling a robot arm based on an adaptive controller according to any one of claims 1 to 8.
Citation Information
Patent Citations
Control method for rehabilitation training of lower extremity exoskeleton rehabilitation robot
CN104698848A
Event triggering self-adaptive control method of aero-engine executing mechanism
CN114397819A
Self-adaptive control method and system for single-master multi-slave teleoperation robot system
CN116540534A
Navigation and control system for autonomous vehicles
US20070219720A1
Massage motion control method and apparatus, robot control device, and storage medium
WO2022247172A1
