Quadruped robot gait control method and quadruped robot thereof
Through the combination of fuzzy controller and error backpropagation neural network model, the self-learning and adaptive tuning of the gait parameters of the quadruped robot are realized, which solves the problems of long gait control time and difficulty in parameter tuning in the existing technology, and improves the efficiency of the gait parameters. Load capacity and service life of quadruped robots.
Patent Information
- Application Number
- CN202410707515.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-03
AI Technical Summary
Existing gait control methods for quadruped robots require manual debugging, which is time-consuming and difficult to adjust parameters, and lacks self-learning and adaptive capabilities.
A fuzzy controller is used to process source domain data, a simulation model is established, an error backpropagation neural network model is trained, gait parameters are optimized, the decision accuracy is verified through virtual models and algorithm verification machines, and self-learning and adaptive gait parameter tuning are achieved.
It improves the efficiency and accuracy of gait parameter setting, enhances the load capacity and movement flexibility of the quadruped robot, and extends the service life of the robot.
Smart Images

Figure CN118732701A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robots, and in particular to a gait control method of a quadruped robot and the quadruped robot. Background Art
[0002] In the related technologies, during the deployment of the control system of the quadruped robot, the gait design and parameter design that adapt to the dynamic characteristics of the body often require researchers to manually debug and gradually converge the parameters to a certain reasonable range. This requires researchers to have high theoretical knowledge of dynamics and control science, and is time-consuming and requires long-term field training. When performing parameter tuning, the existing control methods can usually only be tried again and again, which brings difficulties to the widespread deployment of control methods. Summary of the invention
[0003] Based on this, it is necessary to provide a quadruped robot gait control method to address the problems of manual participation in parameter adjustment and cumbersome parameter adjustment, including the following steps: S1: Acquire source domain data and use a fuzzy controller to fuzzy process the source domain data; Establish a simulation model for the quadruped robot to obtain target domain data, and use the fuzzy processed source domain data and target domain data to train the error back propagation neural network model to obtain an optimized error back propagation neural network model; S2: Deploy the optimized error back propagation fuzzy neural network model to the simulation model of the quadruped robot, adjust the parameters of the virtual model controller, and use the attitude angle measured by the virtual GPS speed measurement node and the inertial unit as a quantitative indicator to observe the root of the error back propagation fuzzy neural network model. The accuracy of the parameter adjustment decisions made according to the target domain data is observed; S3: the optimized error back propagation neural network model is deployed to the algorithm platform to verify the prototype, the parameters of the virtual model controller are adjusted, and the attitude angle measured by the virtual GPS speed measurement node and the inertial unit is used as a quantitative indicator to observe the accuracy of the parameter adjustment decisions made by the error back propagation fuzzy neural network according to the target domain data; S4: an algorithm verification machine is built, and the optimized error back propagation neural network model is deployed to the algorithm verification machine to verify the algorithm verification machine, the parameters of the virtual model controller are adjusted, and the attitude angle measured by the virtual GPS speed measurement node and the inertial unit is used as a quantitative indicator to observe the accuracy of the parameter adjustment decisions made by the fuzzy neural network according to the target domain data.
[0004] As a further improvement of the present invention, the step of obtaining target domain data includes: S11: building a dynamic model of a quadruped robot in the webots simulation software; S12: debugging the parameters of the virtual model controller of the quadruped robot in the webots simulation software to obtain posture feedback data of the dynamic model of the quadruped robot; S13: storing the posture feedback data of the dynamic model of the quadruped robot obtained above into the matlab workspace, and retaining the correct adjustment operation according to the gait performance before and after the adjustment to obtain the input-decision output data set.
[0005] As a further improvement of the present invention, debugging the parameters of the virtual model controller includes: debugging the stiffness of the virtual model controller, debugging the initial height of the legs, debugging the swing phase amplitude of the legs, debugging the flight phase amplitude of the legs, and debugging the step frequency of the legs; the posture feedback data of the quadruped robot dynamic model includes: motor torque feedback data based on the current loop, the body posture of the quadruped robot, the body angular velocity of the quadruped robot, and the three-axis acceleration of the quadruped robot.
[0006] As a further improvement of the present invention, the error back propagation neural network includes: an input layer for preprocessing the input target domain data; an output layer for outputting the control parameters of the virtual model controller; and two hidden layers for establishing a characteristic relationship between the input and the output.
[0007] As a further improvement of the present invention, the preprocessing method adopted in the input layer is setting a bias.
[0008] As a further improvement of the present invention, output cutoff and anti-saturation measures are set at the output layer.
[0009] As a further improvement of the present invention, the accuracy of the parameter adjustment decision is based on calculating the unit transportation cost CoT of the robot movement before and after the decision. The expression of the unit transportation cost CoT is as follows:
[0010]
[0011] Among them, P inpu is the power consumption; mgv is the actual effective power; mg is the weight of the quadruped robot; v is the speed of the quadruped robot.
[0012] As a further improvement of the present invention, if the unit transportation cost after the decision is greater than the unit transportation cost before the decision, the decision is correct; if the unit transportation cost after the decision is less than the unit transportation cost before the decision, the correct parameter adjustment decision data is saved, and the saved parameter adjustment decision data is used to train the error back propagation fuzzy neural network model until the unit transportation cost after the decision is greater than the unit transportation cost before the decision.
[0013] The present invention also proposes a quadruped robot, which is applied to the above-mentioned quadruped robot gait control method. The quadruped robot gait control method is used to control the gait parameters of the quadruped robot to adjust the movement posture of the quadruped robot, including: a fuselage; four legs, the four legs are symmetrically arranged on both sides of the fuselage to drive the fuselage to move, and the legs are all parallel opposed five-link structures.
[0014] As a further improvement of the present invention, a foot end is provided at the end of the leg that contacts the ground, and the cross-section of the foot end is a semicircular structure.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] 1. The present invention obtains source domain data through sensors, and uses a fuzzy controller to perform fuzzy processing on the source domain data; establishes a simulation model for a quadruped robot to obtain target domain data, and uses the fuzzy processed source domain data and target domain data to train the error back propagation neural network model to obtain an optimized error back propagation neural network model, so that the gait parameter adjustment function in the virtual model controller has the ability of self-learning and self-adaptation, which can be used for the training of multiple gaits and multiple actions of quadruped robots with various leg and foot configurations.
[0017] 2. The legs of the robot in the present invention adopt a parallel opposed design, which can increase the load capacity of the robot and expand the range of motion of the legs. In this way, the quadruped robot can perform somersaults, jumps and other actions by adjusting the relative position between the legs and the body to achieve self-rescue. Moreover, the semicircular foot end can ensure good contact between the quadruped robot and the ground in different postures, especially good contact with the ground when jumping, so that the foot end is not easily damaged and the service life of the robot can be extended. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a flow chart of a quadruped robot control method according to an embodiment of the present invention;
[0019] Figure 2 The figure is a schematic structural diagram of a quadruped robot according to an embodiment of the present invention.
[0020] Main component symbols
[0021] 1. Body; 2. Legs; 21. First rod group; 22. Second rod group; 23. Motor; 24. First connecting rod; 25. Second connecting rod; 26. Foot end.
[0022] The above description of the main component symbols is combined with the accompanying drawings and specific implementation methods to further illustrate the present invention in detail. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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.
[0024] It should be noted that when a component is referred to as being "mounted on" another component, it may be directly on the other component or there may be a central component. When a component is considered to be "set on" another component, it may be directly set on the other component or there may be a central component at the same time. When a component is considered to be "fixed to" another component, it may be directly fixed on the other component or there may be a central component at the same time.
[0025] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "or / and" used herein includes any and all combinations of one or more of the related listed items.
[0026] like Figure 2 As shown: the embodiment of the present invention proposes a quadruped robot, which includes a body 1 and four legs 2. It should be noted that two motors 23 are arranged on each leg.
[0027] The four legs 2 are symmetrically arranged on both sides of the body 1 to drive the body 1 to move, and the legs 2 are all constructed as parallel opposed five-link structures. The legs 2 are designed as parallel opposed five-link structures. Since each five-link has two degrees of freedom, the movement of the quadruped robot can be more flexible.
[0028] As a further improvement of the present invention, a foot end 26 is provided at one end of the leg 2 that contacts the ground, and the cross section of the foot end 26 is semicircular. Compared with the existing planar structure, the semicircular foot end 26 can satisfy the good contact between the quadruped robot and the ground in different postures, especially the good contact with the ground when jumping. Moreover, the design of the semicircular foot end 26 is not easily damaged when passing through a rough road surface, because the contact area between the foot end 26 and the ground is small and the contact surface is smooth, so the service life of the quadruped robot can be extended.
[0029] In addition, the legs 2 adopt a parallel opposed design, which can increase the load capacity of the robot and expand the range of motion of the legs 2. In this way, the quadruped robot can perform somersaults and jumps by adjusting the relative position between the legs 2 and the body 1, thereby achieving self-rescue.
[0030] The parallel opposed design is to divide the leg 2 into a first rod group 21 and a second rod group 22, the first rod group 21 and the second rod group 22 are respectively controlled by separate motors 23, and the movements of the first rod group 21 and the second rod group 22 are finally simultaneously input to the foot end 26 to synthesize an output movement. In this way, both the first rod group 21 and the second rod group 22 can bear the load, thereby increasing the load capacity of the robot.
[0031] Furthermore, the first rod group 21 and the second rod group 22 both include a first connecting rod 24 and a second connecting rod 25. The motor 23 drives the first connecting rod 24 to work through a flange, and a thin-walled bearing is installed on the outer side of the flange to improve the structural strength of the first rod group 21 and the second rod group 22. The first connecting rod 24 and the second connecting rod 25 are connected by flange bearings, thrust ball bearings, plug bolts and gaskets, which can not only reduce the resistance of the revolute pair, but also ensure that the leg 2 is not easily damaged under long-term movement conditions. In addition, the fuselage 1 is mainly made of carbon tubes and aluminum alloys with a diameter of 18 mm, which can reduce production costs and body quality while ensuring the bending and torsional strength of the fuselage 1.
[0032] like Figure 1 As shown, the present invention also proposes a quadruped robot gait control method for controlling the gait parameters of the quadruped robot to adjust the motion posture of the quadruped robot, which comprises the following steps:
[0033] S1: Acquire source domain data and perform fuzzy processing on the source domain data using a fuzzy controller; wherein the source domain data may be the root mean square of the horizontal force of the quadruped robot within several cycles, the mean square error of the horizontal force of the quadruped robot within several cycles, the root mean square of the vertical force of the quadruped robot within several cycles, the mean square error of the vertical force of the quadruped robot within several cycles, the root mean square of the pitch attitude angle of the quadruped robot within several gait cycles, the square root of the horizontal acceleration of the quadruped robot within several cycles, and the square root of the vertical acceleration of the quadruped robot within several cycles.
[0034] The significance of extracting these data is that the dynamic characteristics fed back by these data can be used to reversely infer the state of the control system through the information-physical system. The gait control method proposed in this paper is mainly aimed at the gait parameter adjustment of the quadruped robot moving quickly on a relatively flat ground. Therefore, it is hoped that the impact of the quadruped robot in the vertical direction is as small as possible during control. For example: the output force of the sole of the foot on the ground is only expected to be able to bear the weight of the fuselage, and its change amplitude is as small as possible. Therefore, the root mean square of the vertical force of the quadruped robot in several cycles, the mean square error of the vertical force of the quadruped robot in several cycles, and the square root of the vertical acceleration of the quadruped robot in several cycles are introduced.
[0035] The specific steps of the fuzzy controller for processing source domain data are as follows: based on expert experience, the fuzzy controller is first used to fuzzify the source domain data features extracted by the sensor, so that its features are reasonably identified as fuzzy languages such as "too large", "too small" and "reasonable", and then these languages are converted into discrete values as input of the error back propagation neural network model.
[0036] A simulation model is built for the quadruped robot to obtain target domain data. The specific steps are:
[0037] S11: Build a dynamic model of a quadruped robot in the webots simulation software; and design a control system based on a virtual force model.
[0038] S12: Debug the parameters of the virtual model controller of the quadruped robot in the webots simulation software to obtain the posture feedback data of the quadruped robot dynamics model.
[0039] This debugging process is a manual debugging process, which mainly debugs the gait parameters of the quadruped robot in the virtual model controller. The debugging gait parameters include: debugging the stiffness KP of the virtual model controller, debugging the initial height of the legs, debugging the swing phase amplitude of the legs, debugging the flight phase amplitude of the legs, and debugging the step frequency of the legs.
[0040] The posture feedback data includes: the torque feedback data of the motor 23 based on the current loop, the body posture of the quadruped robot, the body angular velocity of the quadruped robot, and the three-axis acceleration of the quadruped robot
[0041] S13: The posture feedback data of the quadruped robot dynamics model obtained above is stored in the matlab workspace for subsequent training of the error back propagation fuzzy neural network model, and the correct adjustment operation is retained according to the gait performance before and after the adjustment to obtain the input-decision output data set, which is the data of the target domain. This process is mainly performed by humans for continuous debugging, and the corresponding decision is obtained based on the number of debugging times and experience.
[0042] Then, the error back propagation neural network model is trained using the fuzzy processed source domain data and target domain data to obtain an optimized error back propagation neural network model.
[0043] The error back propagation neural network model has an input layer, two hidden layers and an output layer. Among them, the input layer is mainly used to preprocess the input source domain data and target domain data, which is conducive to the subsequent training of the error back propagation neural network model. The two hidden layers are mainly used to establish the relationship between input and output. The output layer is used to output the control parameters of the virtual model controller, namely the stiffness of the virtual model controller, the initial height of the leg, the swing phase amplitude of the leg, the flight phase amplitude of the leg, and the step frequency of the debugging leg. It is equivalent to the error back propagation fuzzy neural network model appropriately adjusting the above five parameters according to the input.
[0044] As an optional embodiment, the preprocessing method may adopt a method of setting a bias. For example, for the plantar force, the amplitude of the plantar force is usually large. If the plantar force data of the quadruped robot and the pitch angle of the quadruped robot are processed in the same way to train the error back propagation neural network model, the training effect will be affected. That is, different processing methods are used for different input data.
[0045] As an optional embodiment, output cutoff and anti-saturation measures are set at the output layer. Since the error back propagation neural network model will output some data with large deviations when outputting, resulting in overfitting and other phenomena, setting output cutoff and anti-saturation measures can limit the output to a range, thereby shielding data with large deviations.
[0046] S2: The optimized error back-propagation fuzzy neural network model is deployed to the simulation model of the quadruped robot after randomly generating gait parameters, and the parameters of the virtual model controller are adjusted. The attitude angles measured by the virtual GPS speed measurement node and the inertial unit (IMU) are used as quantitative indicators to observe the accuracy of the parameter adjustment decisions made by the error back-propagation fuzzy neural network model according to the target domain data.
[0047] Specifically, the accuracy of the parameter adjustment decision is based on calculating the unit transportation cost CoT of the robot's movement before and after the decision. The expression of the unit transportation cost CoT is as follows:
[0048]
[0049] Among them, P input is the power consumption; mgv is the actual effective power; mg is the weight of the quadruped robot; v is the speed of the quadruped robot.
[0050] If the unit transportation cost after the decision is greater than the unit transportation cost before the decision, the decision is correct;
[0051] If the unit transportation cost after the decision is less than the unit transportation cost before the decision, the correct parameter adjustment decision data is saved, and the saved parameter adjustment decision data is spliced into the source domain data, and the error back propagation fuzzy neural network model is trained again until the unit transportation cost after the decision is greater than the unit transportation cost before the decision, that is, it meets the accuracy standard.
[0052] S3: Deploy the optimized error back propagation neural network model to the algorithm platform to verify the prototype, adjust the parameters of the virtual model controller, and use the attitude angle measured by the virtual GPS speed measurement node and the inertial unit (IMU) as a quantitative indicator to observe the accuracy of the parameter adjustment decision made by the error back propagation fuzzy neural network based on the target domain data.
[0053] Specifically, the accuracy of the parameter adjustment decision is based on calculating the unit transportation cost CoT of the robot's movement before and after the decision. The expression of the unit transportation cost CoT is as follows:
[0054]
[0055] Among them, P input is the power consumption; mgv is the actual effective power; mg is the weight of the quadruped robot; v is the speed of the quadruped robot.
[0056] If the unit transportation cost after the decision is greater than the unit transportation cost before the decision, the decision is correct;
[0057] If the unit transportation cost after the decision is less than the unit transportation cost before the decision, the correct parameter adjustment decision data is saved, and the saved parameter adjustment decision data is spliced into the source domain data, and the error back propagation fuzzy neural network model is trained again until the unit transportation cost after the decision is greater than the unit transportation cost before the decision, that is, it meets the accuracy standard.
[0058] It should be noted that since the speed in the real world is not easy to obtain, the CoT is calculated here by measuring the average speed of the quadruped robot walking a certain distance.
[0059] S4: Build an algorithm verification machine and deploy the optimized error back propagation neural network model to the algorithm verification machine to verify the algorithm verification machine, adjust the parameters of the virtual model controller, and use the attitude angle measured by the virtual GPS speed measurement node and the inertial unit as quantitative indicators to observe the accuracy of the parameter adjustment decision made by the fuzzy neural network based on the target domain data.
[0060] Specifically, the accuracy of the parameter adjustment decision is based on calculating the unit transportation cost CoT of the robot's movement before and after the decision. The expression of the unit transportation cost CoT is as follows:
[0061]
[0062] Among them, P input is the power consumption; mgv is the actual effective power; mg is the weight of the quadruped robot; v is the speed of the quadruped robot.
[0063] If the unit transportation cost after the decision is greater than the unit transportation cost before the decision, the decision is correct;
[0064] If the unit transportation cost after the decision is less than the unit transportation cost before the decision, the correct parameter adjustment decision data is saved, and the saved parameter adjustment decision data is spliced into the source domain data, and the error back propagation fuzzy neural network model is trained again until the unit transportation cost after the decision is greater than the unit transportation cost before the decision, that is, it meets the accuracy standard. In this way, we can get the error back propagation neural network model we need.
[0065] It should be noted that since the speed in the real world is not easy to obtain, the CoT is calculated here by measuring the average speed of the quadruped robot walking a certain distance. In addition, in order to ensure the universality and extensiveness of the gait control method, motors 23 with different parameters can be used, and the algorithm verification machine can be built according to a certain size. The working characteristic parameters of the motor 23 mainly include torque constant, rated speed, etc.
[0066] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0067] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A robot gait control method, characterized in that: Includes the following steps: S1: Acquire source domain data, and perform fuzzy processing on the source domain data using a fuzzy controller; A simulation model is established for the quadruped robot to obtain target domain data, and the error back propagation neural network model is trained using the fuzzy processed source domain data and target domain data to obtain an optimized error back propagation neural network model. S2: Deploy the optimized error back-propagation fuzzy neural network model to the simulation model of the quadruped robot, adjust the parameters of the virtual model controller, use the attitude angle measured by the virtual GPS speed measurement node and the inertial unit as quantitative indicators, and observe the accuracy of the parameter adjustment decision made by the error back-propagation fuzzy neural network model according to the target domain data; S3: Build an algorithm platform, deploy the optimized error back propagation neural network model into the algorithm platform to verify the prototype, adjust the parameters of the virtual model controller, use the attitude angle measured by the virtual GPS speed measurement node and the inertial unit as a quantitative indicator, and observe the accuracy of the parameter adjustment decision made by the error back propagation fuzzy neural network according to the target domain data; S4: Build an algorithm verification machine, deploy the optimized error back propagation neural network model into the algorithm verification machine to verify the algorithm verification machine, adjust the parameters of the virtual model controller, use the attitude angle measured by the virtual GPS speed measurement node and the inertial unit as quantitative indicators, and observe the accuracy of the parameter adjustment decision made by the fuzzy neural network according to the target domain data.
2. A robot gait control method according to claim 1, characterized in that: The steps to obtain target domain data include: S11: Build a dynamic model of a quadruped robot in the webots simulation software; S12: Debug the parameters of the virtual model controller of the quadruped robot in the Webots simulation software to obtain the posture feedback data of the quadruped robot dynamics model; S13: The posture feedback data of the quadruped robot dynamics model obtained above is stored in the matlab workspace, and according to the gait performance before and after the adjustment, the correct adjustment operation is retained to obtain an input-decision output data set.
3. A robot gait control method according to claim 2, characterized in that: Debugging the parameters of the virtual model controller includes: debugging the stiffness of the virtual model controller, debugging the initial height of the legs, debugging the swing phase amplitude of the legs, debugging the flight phase amplitude of the legs, and debugging the step frequency of the legs; The posture feedback data of the quadruped robot dynamics model include: motor torque feedback data based on the current loop, the body posture of the quadruped robot, the body angular velocity of the quadruped robot and the three-axis acceleration of the quadruped robot.
4. A robot gait control method according to claim 1, characterized in that: The error back propagation neural network includes: The input layer is used to preprocess the input target domain data; The output layer is used to output the control parameters of the virtual model controller; Two hidden layers are used to establish the characteristic relationship between input and output.
5. A robot gait control method according to claim 4, characterized in that: The preprocessing method used in the input layer is to set the bias.
6. A robot gait control method according to claim 5, characterized in that: Set output cutoff and anti-saturation measures at the output layer.
7. A robot gait control method according to claim 1, characterized in that: The accuracy of the parameter adjustment decision is based on calculating the unit transportation cost CoT of the robot movement before and after the decision. The expression of the unit transportation cost CoT is as follows: Among them, P input is the power consumption; mgv is the actual effective power; mg is the weight of the quadruped robot; v is the speed of the quadruped robot.
8. A quadruped robot gait control method according to claim 7, characterized in that: If the unit transportation cost after the decision is greater than the unit transportation cost before the decision, the decision is correct; If the unit transportation cost after the decision is less than the unit transportation cost before the decision, the correct parameter adjustment decision data is saved, and the error back-propagation fuzzy neural network model is trained with the saved parameter adjustment decision data until the unit transportation cost after the decision is greater than the unit transportation cost before the decision.
9. A quadruped robot, applied to a quadruped robot gait control method according to any one of claims 1 to 8, the quadruped robot gait control method being used to control the gait parameters of the quadruped robot to adjust the motion posture of the quadruped robot, characterized in that: include: Body (1); The four legs (2) are symmetrically arranged on both sides of the fuselage (1) to drive the fuselage (1) to move, and the structure of the legs (2) is a parallel opposed five-link structure.
10. The quadruped robot according to claim 9, characterized in that: A foot end (26) is provided at one end of the leg (2) that contacts the ground, and the cross section of the foot end (26) is a semicircular structure.
Citation Information
Patent Citations
Method and system for intelligently recognizing aircraft wreckage based on error back propagation neural network
CN104615987A
Reinforced learning action generation system for leg-foot robot
CN113821045A
Hexapod robot fault-tolerant gait planning method based on reinforcement learning
CN116449727A
