Self-balancing bicycle controller design method based on Nash game theory
Through the design of adaptive robust constraint following controller based on Nash game theory, the problem of second-order non-holonomic passive constraints in under-actuated mechanical systems is solved, the stability of the system and the control effect are improved, and the problems in the existing technology are compensated. Problems with controller complexity and limited application range.
Patent Information
- Application Number
- CN202410873831.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-06
AI Technical Summary
There is a second-order non-holonomic passive constraint problem in self-balancing control of underactuated mechanical systems, which results in increased controller design complexity, limited application range and large amount of calculation. There is a lack of effective methods to reduce controller complexity.
The adaptive robust constraint following controller design method based on Nash game theory is used to establish an uncertain under-actuated mechanical system dynamic model through fuzzy set theory. The dynamic equation is disassembled into nominal and uncertainty parts, and the control parameters are optimized to Improve control effect.
It achieves stability control of under-actuated mechanical systems, reduces controller complexity, improves control effects, adapts to unknown but bounded uncertainties in the system, and balances multi-dimensional performance requirements.
Smart Images

Figure CN118605337A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of robot automation, in particular to a design method for a self-balancing bicycle controller based on Nash game theory. Background Art
[0002] With the rise of autonomous driving in recent years, academia and industry are actively exploring the use of self-balancing bicycles under autonomous driving as a new, environmentally friendly, efficient, convenient and flexible mode of transportation in the future. However, the balance control of self-balancing bicycles is still a key basic technology.
[0003] An underactuated mechanical system refers to a nonlinear mechanical system in which the number of independent control variables is less than the system's degrees of freedom. It is widely used in transportation, engineering machinery, robotics, and other fields. Compared with a fully driven system, an underactuated system has the advantages of compact structure, high flexibility, light weight, low energy consumption, and low cost.
[0004] Underactuated mechanical systems have the problem of second-order nonholonomic passive constraints, which has been widely studied. The Udwadia-Kalaba theory provides the basic equations of constrained dynamics, combines the control problem with the solution of the constraint force, and is used to deal with the complete and nonholonomic constraints in the dynamic equations. Among the nonlinear control methods, there are mainly methods based on partial feedback linearization, coordinate transformation, and energy perspective. These methods have achieved the stability of the system to a certain extent, but they also bring about problems such as increased difficulty in controller design, limited application scope, and large amount of calculation. Therefore, reducing the complexity of the controller and designing an analytical form of control method that is easy to implement is of great significance to both theory and engineering. Summary of the invention
[0005] The purpose of the present invention is to provide a design method for a self-balancing bicycle controller based on Nash game theory, which solves the problems raised by the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solution: a method for designing a self-balancing bicycle controller based on Nash game theory, comprising the following steps:
[0007] S1. Based on fuzzy set theory, the dynamic equation of the uncertain underactuated mechanical system of the self-balancing bicycle is established, and the constraint following idea is introduced to construct the dynamic model of the fuzzy uncertain underactuated mechanical system subject to servo constraints;
[0008] S2. Based on the analysis of inverse dynamics and adaptive robust technology, the matrix and vector in the dynamic equation are decomposed into the nominal part and the uncertainty part, and an adaptive robust constraint following controller is designed;
[0009] S3. Based on Nash game theory, the control parameters in the adaptive robust constraint following controller are optimized and selected, and the obtained optimal parameters are brought into the controller to improve the comprehensive control effect of the controller;
[0010] S4. Finally, analyze the control effect and draw conclusions.
[0011] In step S1, the dynamic equation of the uncertain underactuated mechanical system is established as follows, and its uncertainty parameters are described using fuzzy set theory:
[0012]
[0013] in, Indicates time, represents the generalized coordinates of the system, Indicates speed, represents acceleration, represents the uncertainty parameter of the system, is a compact set and is unknown, used to represent the system uncertainty parameters The borders of is the inertia matrix of the system, represents the Coriolis force / centrifugal force on the system, represents the gravity acting on the system, is the control input, i.e., the servo constraint force, is the coefficient matrix of control input;
[0014] By using the inverse dynamics analysis method of underactuated mechanical systems, the control task is expressed in the form of a second-order servo constraint, so that the servo constraint equation is consistent with the system acceleration (system dynamics) in mathematical form, and the servo control force and torque are obtained in analytical form.
[0015] In step S1, the ideal servo constraint of the system is set, thereby obtaining the first-order derivative form of the servo constraint, which can be expressed in the available matrix as:
[0016]
[0017] Where M = [M li ] m×n ,c=[c1 c2 … c m ] T It is a first-order form constraint. Similarly, the second-order derivative form of the servo constraint obtained on the basis of the first-order form can be expressed in the form of a matrix:
[0018]
[0019] Where b=[b1 b2 … b m ] Tis a second-order formal constraint.
[0020] In step S2, the matrix and vector in the dynamic equation of the uncertain underactuated mechanical system are decomposed into a nominal part and an uncertain part;
[0021] Considering the uncertainty of the underactuated mechanical system, the matrices and vectors of the system model can be decomposed as follows:
[0022]
[0023] in, is the nominal part (deterministic part) of the system and is the uncertainty part of the system, function All are continuous functions.
[0024] In step S2, an adaptive robust constraint following controller is established:
[0025]
[0026] and
[0027]
[0028]
[0029] in,
[0030]
[0031] where κ>0,κ∈R, is a scalar constant, and the adaptive law control vector
[0032]
[0033] In step S3, a dual-parameter performance index based on uncertainty fuzzy information is designed:
[0034] exist and t s ≥0, for any Γ≥t s Establish the following two performance indicator functions:
[0035]
[0036] and
[0037]
[0038] in, Indicates that from time t s The overall transient performance of the start represents steady-state performance, κ 2 , Represents the control cost.
[0039] In step S3, the parameter selection is transformed into a two-parameter optimization problem through defuzzification operation. According to the Nash equilibrium definition, for any t s , given k1, k2, k3, P, the parameters κ>0 and The selection should minimize the performance indicators J1 and J2 respectively. yes The Nash equilibrium value of is the solution to the following optimization problem:
[0040]
[0041] In step S3, the Nash equilibrium value It is brought into the adaptive robust constraint following controller to complete the implementation of the control method of the uncertain under-actuated mechanical system.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] The present invention adopts an adaptive robust constraint following controller, which includes a nominal control term, a robust control term and an adaptive control term to solve the controller design problem of the second-order non-holonomic passive constraint of the under-actuated mechanical system.
[0044] The present invention proposes a new uncertainty modeling method for underactuated mechanical systems. The membership function in fuzzy set theory is used to express the boundary information of uncertainty as the degree of event occurrence, and reflects it in the dynamic model of the underactuated mechanical system. This method makes up for the shortcomings of bounded uncertainty models and random uncertainty models, and proposes a new control method to compensate for uncertainty. It is adaptive and robust and can adapt to unknown but bounded uncertainties in the system. The control is adjusted by designing an adaptive law based on the tracking error to ensure the stability of the system.
[0045] Based on fuzzy uncertainty information and Nash game theory, the present invention establishes the optimization problem of control parameters and proposes a solution strategy for the optimal parameters. The problem of selecting control parameters is theoretically solved, the multi-dimensional performance requirements of the controlled under-actuated mechanical system are balanced, and the comprehensive control effect of the controller on the under-actuated mechanical system is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a schematic diagram of the process of the present invention;
[0047] Figure 2It is a schematic diagram of the structure of a bicycle controller of the present invention. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] The present invention provides a technical solution: a method for designing a self-balancing bicycle controller based on Nash game theory, comprising the following steps:
[0050] 101. Establish the dynamic equation of the uncertain underactuated mechanical system of the self-balancing bicycle:
[0051]
[0052] in, Indicates time, represents the generalized coordinates of the system, Indicates speed, represents acceleration, Represents the uncertainty parameter of the system (which may be rapidly time-varying). is a compact set and is unknown, used to represent the system uncertainty parameters of the border.
[0053] is the inertia matrix of the system, represents the Coriolis force / centrifugal force on the system, is the gravitational force on the system, is the control input, i.e., the servo constraint force, is the coefficient matrix of the control input. Assuming that the functions H(·), C(·), g(·) are continuous, then H(·), C(·), g(·) are Lebesgue measurable functions with respect to time T.
[0054] 102. According to the idea of constraint following, the control task is expressed in the form of servo constraints. Assume that the uncertain underactuated system is subject to q differentiable complete servo constraints:
[0055]
[0056] and mq differentiable nonholonomic servo constraints:
[0057]
[0058] 103. Calculate the first-order derivative of the complete servo constraint with respect to time t, and combine it with the incomplete servo constraint to obtain the first-order derivative form of the servo constraint:
[0059]
[0060] Constructing the above formula into a unified expression, we have:
[0061]
[0062] is a vector The i-th item in and About and a first-order continuously differentiable function of t.
[0063] 104. Therefore, the first-order derivative form of the servo constraint can be expressed in the form of a matrix:
[0064]
[0065] Where M = [M li ] m×n ,c=[c1 c2 … c m ] T . (6)
[0067] 105. The first-order derivative form of the system servo constraint is converted into the second-order derivative form, that is, the first-order derivative of equation (5) with respect to time t is obtained:
[0068]
[0069] in,
[0070]
[0071] make Available
[0072]
[0073] Then the second-order derivative form of the servo constraint can be expressed in the form of a matrix:
[0074]
[0075] in,
[0076] b=[b1 b2 … b m ] T
[0077] 106. Design an adaptive robust constraint following controller, considering the uncertainty of the underactuated mechanical system. The matrix and vector of the system model can be decomposed as follows:
[0078]
[0079] in, is the nominal part (deterministic part) of the system and is the uncertainty part of the system. Function All are continuous functions.
[0080] 107. Order
[0081]
[0082] From (12), we can get:
[0083]
[0084] 108. Assume that for each are all full rank, and is reversible.
[0085]
[0086] 109. Assume that for all exist So that:
[0087]
[0088] Among them, "+" represents the matrix The reciprocal of .
[0089] 110. For a given P∈R m×n ,P>0, let:
[0090]
[0091] 111. For all There is a constant ρ E >-l, which makes:
[0092]
[0093] Consider the vector ω∈(0,∞) k , function Π(·):(0,∞) k ×R n ×R n ×R→R + , so that all
[0094]
[0095] 112. For each If the function For ω:R n ×R n ×R→R + can be linearly decomposed, then the existence of the function Π(·) can be established, so that:
[0096]
[0097] 113. Design an adaptive robust constraint tracking control as follows:
[0098]
[0099] and
[0100]
[0101]
[0102] in,
[0103]
[0104] where κ>0,κ∈R, and adaptive law control vector
[0105]
[0106] 114. Analyze the relationship between the two adjustable gain parameters and the system performance. According to the Rayleigh principle, we can get
[0107] λ m (P)||η|| 2 ≤η T Pη≤λ M (P)||η|| 2 , (twenty two)
[0108] Where P is a positive definite matrix.
[0109] 115. According to the Nash game theory framework, the two control parameters are regarded as two participants in the Nash game. and t s ≥0, for any Γ≥t s Establish the following two performance indicator functions:
[0110]
[0111] and
[0112]
[0113] in, Indicates that from time t s The overall transient performance of the start represents steady-state performance, k 2 and Represents the control cost.
[0114] 116. By bringing the two parameters into the controller, the required hardware interface modules are configured in Matlab / Simulink, and a graphical model of the control method is built; secondly, the Matlab / Simulink model is automatically converted into executable code and downloaded to the main controller; then, the test data measured by the sensor is observed by the host computer; finally, the obtained test data is saved, processed and analyzed.
[0115] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A self-balancing bicycle controller design method based on Nash game theory, characterized in that: The following steps are involved: S1. Based on fuzzy set theory, the dynamic equation of the uncertain underactuated mechanical system of the self-balancing bicycle is established, and the constraint following idea is introduced to construct the dynamic model of the fuzzy uncertain underactuated mechanical system subject to servo constraints; S2. Based on the analysis of inverse dynamics and adaptive robust technology, the matrix and vector in the dynamic equation are decomposed into the nominal part and the uncertainty part, and an adaptive robust constraint following controller is designed; S3. Based on Nash game theory, the control parameters in the adaptive robust constraint following controller are optimized and selected, and the obtained optimal parameters are brought into the controller to improve the comprehensive control effect of the controller; S4. Finally, analyze the control effect and draw conclusions.
2. The method for designing a self-balancing bicycle controller based on Nash game theory according to claim 1, characterized in that: In step S1, the dynamic equation of the uncertain underactuated mechanical system is established as follows, and its uncertainty parameters are described using fuzzy set theory: in, Indicates time, represents the generalized coordinates of the system, Indicates speed, represents acceleration, represents the uncertainty parameter of the system, is a compact set and is unknown, used to represent the system uncertainty parameters The borders of is the inertia matrix of the system, represents the Coriolis force / centrifugal force on the system, represents the gravity acting on the system, is the control input, i.e., the servo constraint force, is the coefficient matrix of control input; By using the inverse dynamics analysis method of underactuated mechanical systems, the control task is expressed in the form of a second-order servo constraint, so that the servo constraint equation is consistent with the system acceleration (system dynamics) in mathematical form, and the servo control force and torque are obtained in analytical form.
3. The method for designing a self-balancing bicycle controller based on Nash game theory according to claim 1, characterized in that: In step S1, the ideal servo constraint of the system is set, thereby obtaining the first-order derivative form of the servo constraint, which can be expressed in the available matrix as: Where M = [M li ] m×n ,c=[c1 c2 … c m ] T It is a first-order form constraint. Similarly, the second-order derivative form of the servo constraint obtained on the basis of the first-order form can be expressed in the form of a matrix: Where b=[b1 b2 … b m ] T is a second-order formal constraint.
4. The method for designing a self-balancing bicycle controller based on Nash game theory according to claim 1, characterized in that: In step S2, the matrix and vector in the dynamic equation of the uncertain underactuated mechanical system are decomposed into a nominal part and an uncertain part; Considering the uncertainty of the underactuated mechanical system, the matrices and vectors of the system model can be decomposed as follows: in, is the nominal part (deterministic part) of the system and is the uncertainty part of the system, function All are continuous functions.
5. The method for designing a self-balancing bicycle controller based on Nash game theory according to claim 1, characterized in that: In step S2, an adaptive robust constraint following controller is established: and in, where κ>0,κ∈R, is a scalar constant, and the adaptive law control vector 6. The method for designing a self-balancing bicycle controller based on Nash game theory according to claim 1, characterized in that: In step S3, a dual-parameter performance index based on uncertainty fuzzy information is designed: In κ, and t s ≥0, for any Γ≥t s Establish the following two performance indicator functions: and in, Indicates that from time t s The overall transient performance of the start represents steady-state performance, κ 2 , Represents the control cost.
7. The method for designing a self-balancing bicycle controller based on Nash game theory according to claim 1, characterized in that: In step S3, the parameter selection is transformed into a two-parameter optimization problem through defuzzification operation. According to the Nash equilibrium definition, for any t s , given k1, k2, k3, P, the parameters κ>0 and The selection should minimize the performance indicators J1 and J2 respectively. yes The Nash equilibrium value of is the solution to the following optimization problem:
8. The method for designing a self-balancing bicycle controller based on Nash game theory according to claim 1, characterized in that: In step S3, the Nash equilibrium value It is brought into the adaptive robust constraint following controller to complete the implementation of the control method of the uncertain under-actuated mechanical system.
Citation Information
Cited By
Four-foot cooperative robot preset performance tracking control method based on Nash game
CN120255336A
Four-legged collaborative robot preset performance tracking control method based on nash game
CN120255336B
