Method for constructing electromechanical and hydraulic control simulation platform for hydraulic quadruped robot
The Matlab SimMechanics toolbox is used to build a hydraulic quadruped robot simulation platform, which solves the problems of high cost and long cycle in the design and optimization process of hydraulic quadruped robots, realizes modular simulation design, simplifies the design process, reduces costs and improves efficiency. Accuracy of motion state planning.
Patent Information
- Application Number
- CN202210987039.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-08-17
AI Technical Summary
The existing design and optimization process of hydraulic quadruped robots is costly and time-consuming, and lacks effective virtual simulation technology to quickly test and improve the robot's motion status.
The Matlab SimMechanics toolbox is used to build an electromechanical and hydraulic control sensing simulation platform for a hydraulic quadruped robot. The robot is verified through foot trajectory planning, kinematics, joint space and hydraulic drive unit stroke mapping, hydraulic drive unit position control and dynamic model modular design. Accuracy of travel and speed results.
It simplifies the design and optimization process of hydraulic quadruped robots, shortens the design cycle, reduces research and development costs, can better plan the robot's motion state, avoids prototype trial and error, and improves the accuracy and safety of the simulation platform.
Smart Images

Figure CN115416017B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of hydraulic quadruped robot simulation, and in particular to a method for building an electromechanical and hydraulic control sensing simulation platform for a hydraulic quadruped robot. Background Art
[0002] As a branch of robotics technology that is currently a key development area, legged robots have discrete rather than continuous footholds, which can largely achieve the robot's flexible adaptability to terrain. Therefore, legged robots are widely used in complex terrain, cargo transportation and other fields. With the rapid development of hydraulic servo technology, intelligent control technology, new manufacturing technology and reverse engineering, hydraulic quadruped robots that can carry loads and transport materials in complex environments and respond quickly have become a hot topic. Hydraulic robots are mostly bionic designs, and their gait planning is based on the movement mode of quadrupedal mammals to achieve the movement state that humans want to achieve, and ultimately achieve the goal of assisting humans to complete complex tasks or replacing humans to complete tasks that are harmful to humans.
[0003] The hydraulic quadruped robot is a complex system. In addition, users have extremely high requirements for its reliability, adaptability and other performance. Therefore, repeated design and optimization are necessary processes in robot design. In the traditional design method, it is necessary to manufacture prototypes, test analysis and modify the scheme. This process is costly and has a long cycle, and the emergence of virtual simulation technology solves this problem. The virtual simulation system combines computer computing technology and graphics processing technology to provide a new design method around the kinematics, dynamics and control theory of the machine. Using the simulation system, the robot is continuously tested and improved under different working conditions, and finally a relatively perfect design scheme is obtained. Therefore, once the virtual simulation technology appeared, it attracted widespread attention from scholars from all over the world, and virtual simulation technology was introduced into robot research. How to better plan the robot's motion state and make the robot move in the way it wants has become a research direction for many scholars. Therefore, based on the above background, it is very necessary and urgent to seek a method for building a hydraulic quadruped robot electromechanical hydraulic control simulation platform to realize the construction of a hydraulic quadruped robot electromechanical hydraulic control simulation platform. Summary of the invention
[0004] In view of the defects in the above-mentioned prior art, the present invention proposes a method for building an electromechanical and hydraulic control simulation platform for a hydraulic quadruped robot. The method includes planning the foot-end trajectory of the hydraulic quadruped robot through a foot-end trajectory planning module, obtaining the DH coordinate angle of the hydraulic quadruped robot through a kinematics module, obtaining the expected stroke of the hydraulic drive unit through a joint space and hydraulic drive unit stroke mapping module, obtaining the actual rotation angle and actual stroke of the hydraulic drive unit through a hydraulic drive unit position control module, establishing a dynamic model module in the Matlab SimMechanics toolbox, and jointly constructing a hydraulic quadruped robot electromechanical and hydraulic control simulation platform based on the relationship between the signal flow between each module and the force and load force of each joint drive unit, thereby verifying the accuracy of the stroke and speed results of the established hydraulic quadruped robot electromechanical and hydraulic control simulation platform. The present invention uses the SimMechanics toolbox in Matlab to perform modular simulation design on the hydraulic quadruped robot, shortening the design and optimization cycle.
[0005] The present invention provides a method for building an electromechanical-hydraulic control-sensing simulation platform for a hydraulic quadruped robot, which comprises the following steps:
[0006] S1. Planning the foot end trajectory of the hydraulic quadruped robot through the foot end trajectory planning module of the hydraulic quadruped robot so that the foot end forms a continuous trajectory;
[0007] S11, select the experimental gait of the hydraulic quadruped robot, and plan the trajectory of the foot end using a fifth-order polynomial;
[0008] S12. Based on the Matlab SimMechanics toolbox, the foot-end trajectory planning module was built using the foot-end trajectory planning equation;
[0009] S2, taking the foot end coordinates {X, Y, Z} of the hydraulic quadruped robot as the motion input, the DH coordinate angles {CT1, CT2, CT3} of the hydraulic quadruped robot are obtained through the kinematics module;
[0010] S21, establishing a DH coordinate system according to the relationship between the joints of the hydraulic quadruped robot, and determining the corresponding parameters;
[0011] S22. According to the DH coordinate system and the leg structure parameters, the kinematics positive solution of the hydraulic quadruped robot is obtained;
[0012] S23, obtaining an inverse kinematics solution of the hydraulic quadruped robot according to the DH coordinate system, the leg structure parameters and the kinematics forward solution of the hydraulic quadruped robot;
[0013] S24, using the rod length a and the foot end coordinates {X, Y, Z} as variables, using the functional relationship, complete the kinematic module construction in the MatlabSimMechanics toolbox to obtain the hydraulic quadruped robot DH coordinate angles {CT1, CT2, CT3};
[0014] S3, using the hydraulic quadruped robot DH coordinate angle {CT1, CT2, CT3} as the driving input, and obtaining the hydraulic drive unit desired stroke {CT1, L2, L3} through the joint space and hydraulic drive unit stroke mapping module;
[0015] S31, obtaining the stroke of the hydraulic drive unit according to the DH coordinate angle of the hydraulic quadruped robot obtained by the inverse kinematics solution;
[0016] S32, using θ1, θ2 and θ3 as variables and using the functional relationship, complete the construction of the joint space and hydraulic drive unit stroke mapping module in the Matlab SimMechanics toolbox to obtain the expected stroke {CT1, L2, L3} of the hydraulic drive unit;
[0017] S4, using the joint space and hydraulic drive unit stroke mapping module to obtain the expected stroke {CT1, L2, L3} of the hydraulic drive unit, and the torque Torque and force Force collected by the dynamics model as the load force as the actual driving input, input into the hydraulic drive unit position control module, and obtain the actual rotation angle Xc and actual stroke {Xp2, Xp3} of the hydraulic drive unit;
[0018] S5. According to the mechanical structure of the hydraulic quadruped robot, construct the dynamic model module of the hydraulic quadruped robot, draw the three-dimensional model of the hydraulic quadruped robot, set the relevant properties of the material and mass, and establish the dynamic model module of the hydraulic quadruped robot in the Matlab SimMechanics toolbox;
[0019] S6. According to the foot trajectory planning module, kinematics module, joint space and hydraulic drive unit stroke mapping module, hydraulic drive unit position control module and dynamics model module of the hydraulic quadruped robot, and the relationship between the force and load force of each joint drive unit, a hydraulic quadruped robot electromechanical hydraulic control simulation platform is jointly constructed;
[0020] S7. Verify the accuracy of the stroke and speed results of the established hydraulic quadruped robot electromechanical hydraulic control simulation platform;
[0021] S71, verifying the expected stroke of the hydraulic drive unit obtained by theoretical calculation, the actual stroke of the hydraulic drive unit obtained by the hydraulic drive unit position control module, and the simulated stroke measured by the electromechanical hydraulic control simulation platform;
[0022] S72. Compare and verify the theoretical calculation speed and simulation measurement speed results of the hydraulic quadruped robot.
[0023] Further, the step S11 specifically includes the following steps:
[0024] S111, during the support phase, the foot end trajectory of the hydraulic quadruped robot is:
[0025]
[0026] Among them, c zlj represents the jth polynomial coefficient of the z-direction trajectory of the foot end of the hydraulic quadruped robot during the landing phase, j = 0, 1, ..., 5; T represents the period of the hydraulic quadruped robot taking a single step forward; z l (t) represents the z-coordinate of the foot end of the hydraulic quadruped robot at time t during the support phase; x l (t) represents the x-coordinate of the foot end of the hydraulic quadruped robot at time t during the support phase;
[0027] S112. According to the gait characteristics of the hydraulic quadruped robot Trot, the boundary conditions of formula (1) are:
[0028]
[0029] Among them, z l (0), represents the initial coordinate, initial velocity and initial acceleration of the foot end of the hydraulic quadruped robot in the support phase; S represents the step length; Respectively represent the support phase The z-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the moment v t Indicates the speed of the landing leg;
[0030] S113. According to the boundary conditions, the foot end trajectory of the hydraulic quadruped robot in the support phase is calculated as:
[0031]
[0032] S114, during the swing phase, the foot end trajectory of the hydraulic quadruped robot is:
[0033]
[0034] Among them, c zsj represents the jth polynomial coefficient of the z-direction trajectory of the foot end of the hydraulic quadruped robot in the swing phase; c xs1j represents the jth polynomial coefficient of the leg-lifting trajectory in the x-direction of the foot end of the hydraulic quadruped robot in the swing phase; c xs2j represents the jth polynomial coefficient of the leg landing trajectory in the x direction of the foot end of the hydraulic quadruped robot in the swing phase; zs (t) represents the z-coordinate of the foot end of the hydraulic quadruped robot at time t during the swing phase; x s (t) represents the x-coordinate of the foot end of the hydraulic quadruped robot at time t during the swing phase;
[0035] S115. According to the gait characteristics of the hydraulic quadruped robot Trot, the boundary condition of formula (4) is:
[0036]
[0037] in, Respectively represent the swing phase The z-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at this moment; s (T), They represent the z-axis coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the swing phase T respectively; Respectively represent the swing phase The x-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at all times; Respectively represent the swing phase The x-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the moment; s (T), They represent the x-axis coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the swing phase T respectively;
[0038] S116. According to the boundary conditions, the foot end trajectory of the hydraulic quadruped robot during the swing phase is calculated as:
[0039]
[0040] Where H represents step height;
[0041] S117, formula (3) and formula (6) constitute a walking cycle trajectory of the foot end of the hydraulic quadruped robot, and then calculate the foot end trajectory of the hydraulic quadruped robot under the Trot gait.
[0042] Preferably, the step S22 specifically includes the following steps:
[0043] S221. According to the DH coordinate system, the connecting rod relationship is specified: a i-1 Indicates from z i-1 to z i Along x i-1 The distance; α i-1 Indicates from z i-1 to z i Along x i-1 Angle of rotation; d i Indicates that from x i-1 to x i Along zi The distance; θ i Indicates that from x i-1 to x i Along z i The rotation angle; 2b represents the length of the robot body; 2w represents the width of the robot body; h represents the height of the robot body;
[0044] S222. According to the link relationship in the DH coordinate system, when i>1, the position conversion relationship between link i and link i-1 is
[0045]
[0046] S223, substituting the mechanical parameters of the front leg of the hydraulic quadruped robot into equation (7), obtain the kinematics positive solution position transformation matrix from the foot end of the hydraulic quadruped robot to the transition coordinate {0} for:
[0047]
[0048] Among them, the specified abbreviations are respectively represented by S1=sinθ1, C1=cosθ1, S 23 =sin(θ2+θ3),C 23 =cos(θ2+θ3);
[0049] S224, the foot end position transformation relationship from the hydraulic quadruped robot body transition coordinate system {0} to the foot end coordinate system {4} is:
[0050]
[0051] in, They respectively represent the transformation relationship of the foot end x, y, and z positions from the hydraulic quadruped robot body transition coordinate system {0} to the foot end coordinate system {4};
[0052] The step S23 specifically includes the following steps:
[0053] S231. Based on the DH coordinate system, define the position transformation relationship between the hydraulic quadruped robot foot end coordinate system {4} and the hydraulic quadruped robot body transition coordinate system {0}
[0054]
[0055] in, They represent the direction cosines of the i-unit principal vector in the foot-end coordinate system {4} relative to the transition coordinate system {0}; They represent the direction cosines of the j-unit principal vector in the foot-end coordinate system {4} relative to the transition coordinate system {0}; They represent the direction cosines of the k-unit principal vectors in the foot-end coordinate system {4} relative to the transition coordinate system {0};
[0056] S232, use and Left multiplication get:
[0057]
[0058] Right now:
[0059]
[0060] S233, according to formula (12), θ1, θ2 and θ3 are obtained, respectively:
[0061]
[0062] Preferably, the step S31 specifically includes the following steps:
[0063] S311. Calculate the length of the hydraulic drive unit AC that drives the longitudinal swing motion of the hip joint of the hydraulic quadruped robot, because:
[0064] ∠ABC=90°+θ2-∠CBG+∠ABM (14)
[0065] Among them, ∠ABC represents the angle between AB and BC; AB represents the distance between the two hinges of the hip joint; BC represents the distance from the hinge between the hip joint and the knee cylinder to the hinge between the hip cylinder and the knee cylinder; ∠CBG represents the angle between BC and BG; BG represents the distance from the hinge between the hip joint and the knee cylinder to the hinge between the knee cylinder and the calf; ∠ABM represents the angle between AB and BM; BM represents the horizontal reference line passing through the hinge between the hip joint and the knee cylinder;
[0066] In ΔABC, by applying the law of cosines to side AC we get:
[0067]
[0068] S312, solving the length of the hydraulic drive unit DE that drives the longitudinal swing motion of the knee joint of the hydraulic quadruped robot, because:
[0069] ∠FGD=180°-θ3-∠FGH-∠BGD (16)
[0070] Among them, ∠FGD represents the angle between FG and GD; FG represents the distance from the hinge between the knee cylinder and the calf to the hinge between the connecting rod and the calf; GD represents the distance from the hinge between the knee cylinder and the calf to the bottom center of the rodless cavity of the piston cylinder inside the knee cylinder; ∠FGH represents the angle between FG and GH; GH represents the distance from the hinge between the knee cylinder and the calf to the foot end of the calf; ∠BGD represents the angle between BG and GD;
[0071] And satisfy the geometric relationship:
[0072] DE 2 -2DF*cos∠FDE*DE+DF 2 -EF 2 =0 (17)
[0073] Wherein, DF represents the distance from the bottom of the rodless cavity of the knee cylinder to the hinge point between the connecting rod and the shank; EF represents the length of the connecting rod, that is, the distance from the hinge point between the connecting rod and the piston rod of the knee cylinder to the hinge point between the connecting rod and the shank; ∠FDE represents the angle between FD and DE;
[0074] Considering the geometrical relationship limitation of the single leg of the hydraulic quadruped robot, in ΔDEF, ∠EFD is always an acute angle. The root-finding formula of the quadratic equation is used to obtain a solution with a smaller DE as the value of DE required:
[0075]
[0076] Preferably, the step S4 specifically includes the following steps:
[0077] S41. Through the mechanism analysis of the hydraulic drive unit, six linearly independent system variables are selected as the state variables of the control system, which are: x1 = x p , x3=x v , x5=p1,x6=p2, we get the equation:
[0078]
[0079] in, Represent the first-order derivatives of x1, x2, x3, x4, x5, and x6 respectively; x p Indicates the displacement of the servo cylinder rod; x v Indicates the displacement of the servo valve core; Respectively represent x p ,x vThe first derivative of; p1 represents the rodless chamber pressure; p2 represents the rod chamber pressure; ζ represents the servo valve damping ratio; ω represents the servo valve natural frequency, in rad / s; K represents the load stiffness, in N / m; K1 represents the servo valve flow coefficient corresponding to the rodless chamber of the servo cylinder; K2 represents the flow coefficient corresponding to the rod chamber of the servo cylinder; K x Table displacement sensor gain; K axv Indicates the servo valve gain; β e represents the effective volume elastic modulus, in Pa; V1 represents the volume of the cavity without rod; V2 represents the volume of the cavity with rod; C ip Indicates the leakage coefficient in the servo cylinder, in m 3 / (s·Pa); C ep Indicates the external leakage coefficient of the servo cylinder, in m 3 / (s·Pa); A1 represents the rodless cavity area of the asymmetric servo cylinder, in m 2 ; A2 represents the rod cavity area of the asymmetric servo cylinder, in m 2 ;m t Indicates the total mass converted to the servo cylinder piston, in kg; B p represents the viscous damping coefficient of the load and valve-controlled asymmetric cylinder, in N·s / m; u1, u2 represent the first input and the second input, respectively, and u1=L, u2=F p , L represents the total stroke of the servo cylinder piston, F p Indicates the driving force of the power mechanism;
[0080] S42. Use formula (20) to complete the construction of the hydraulic drive unit position control module in the Matlab SimMechanics toolbox.
[0081] Preferably, the step S5 specifically includes the following steps:
[0082] S51. Draw a 3D model of the hydraulic quadruped robot in SolidWorks 3D design software according to design requirements and add relevant attributes of each part;
[0083] S52. In the SolidWorks software assembly environment, constraints are applied between components according to the mutual motion relationship of the components of the hydraulic quadruped robot mechanical structure;
[0084] S53. Use the Simscape Multibody Link tool of SolidWorks software to export the assembly file of the hydraulic quadruped robot mechanical structure into one .xml file and multiple .stl files;
[0085] S54. Run the "smimport" command in the Matlab command window. Matlab automatically reads the corresponding .xml file and .stl file to complete the construction of the dynamic model module of the hydraulic quadruped robot.
[0086] Preferably, the step S6 specifically includes the following steps:
[0087] S61. According to the coordinate system in the simulation platform and actual needs, complete the setting of basic parameters including gravity;
[0088] S62, adding a contact force module to the dynamic model module, and making the foot end of the hydraulic quadruped robot contact the ground through the first coordinate transformation module Transform1 and the second coordinate transformation module Transform2, to obtain the contact point Fc between the foot end of the hydraulic quadruped robot and the ground;
[0089] S63, input Xc, Xp2, and Xp3 into the dynamics model, measure Torque and Force; and input Torque and Force as load forces into the hydraulic drive unit position control module to complete the construction of the hydraulic quadruped robot electromechanical hydraulic control simulation platform;
[0090] S64, set the F module as the combination module of the hydraulic quadruped robot body and leg structure, connect the leg hip cylinder structure and the hip piston rod structure through the first mobile sub-module, and the first mobile sub-module uses the input signal Xp of the second joint of the first leg 12 The first position signal p1, the first velocity signal v1 and the first force signal f1 are used as the input, and the real-time control and monitoring of the hip joint hydraulic drive unit are completed. The first force signal f1 is input into the hydraulic system as the load force to complete the closed-loop control of the hip joint hydraulic drive unit. The leg knee cylinder structure and the knee piston rod structure are connected through the second mobile sub-module. The second mobile sub-module uses the input signal Xp of the third joint of the first leg 13 The signal is used as input, and the second position signal p2, the second velocity signal v2, and the second force signal f2 are used as output to complete the real-time control and monitoring of the knee joint hydraulic drive unit, and the second force signal f2 is used as the load force to input the hydraulic system to complete the closed-loop control of the knee joint hydraulic drive unit; the construction of the electromechanical and hydraulic control simulation platform of the hydraulic quadruped robot is completed;
[0091] S65, run the hydraulic quadruped robot electromechanical hydraulic control simulation platform.
[0092] Preferably, the hydraulic quadruped robot electromechanical and hydraulic control simulation platform includes a foot-end trajectory planning module, a kinematics module, a joint space and hydraulic drive unit stroke mapping module, a hydraulic drive unit position control module and a dynamic model module; the foot-end trajectory planning module is constructed according to the foot-end trajectory model, and the foot-end trajectory model is constructed by mathematical modeling; the kinematics module is constructed according to the forward kinematics and inverse kinematics models of the hydraulic quadruped robot, and the forward kinematics and inverse kinematics models of the hydraulic quadruped robot are determined by the DH coordinate system and the geometric structure of the hydraulic quadruped robot, and are constructed by mathematical modeling; the joint space and hydraulic drive unit stroke mapping module is constructed by the mapping relationship between the joint space and the hydraulic drive unit, and the mapping relationship between the joint space and the hydraulic drive unit is determined by the geometric structure of the leg of the hydraulic quadruped robot, and is constructed by mathematical modeling; The hydraulic drive unit position control module is constructed according to the hydraulic drive unit position control model, and the hydraulic drive unit position control model is determined by the structure of the hydraulic drive unit and is constructed by mechanism modeling; the dynamic model module is constructed according to the mechanical structure of the hydraulic quadruped robot; the hydraulic quadruped robot electromechanical and hydraulic control simulation platform is constructed according to the signal flow between the foot-end trajectory planning module, kinematics module, joint space and hydraulic drive unit stroke mapping module, hydraulic drive unit position control module and dynamic model module; the foot-end trajectory planning module takes X0, Y0, Z0, S, T, H, t, tt as input, and foot-end trajectory coordinates X, Y, Z as output, X0, Y0, Z0 respectively represent the foot-end coordinates in the x, y, z directions in the initial state; tt represents the actual time.
[0093] Preferably, the experimental gaits include Trot gait, Walk gait, Pace gait and Jump gait.
[0094] Compared with the prior art, the technical effects of the present invention are:
[0095] 1. A method for building an electromechanical and hydraulic control simulation platform for a hydraulic quadruped robot designed by the present invention uses the SimMechanics toolbox in Matlab to perform modular simulation design on the foot-end trajectory planning, kinematics, joint space and hydraulic drive unit stroke mapping, hydraulic drive unit position control and dynamic model of the hydraulic quadruped robot, which can verify the control theory of the quadruped robot, simplify the design and optimization process of the quadruped robot, and shorten the design and optimization cycle.
[0096] 2. The method for building an electromechanical and hydraulic control simulation platform for a hydraulic quadruped robot designed by the present invention can better plan the robot's motion state compared to traditional design methods, avoid a large number of prototype trial and error cycles, and greatly reduce research and development costs; in addition, the correctness of the program design can be verified on the simulation platform in advance to prevent direct application to the prototype when the technology is not mature, which may lead to accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0097] Other features, objects and advantages of the present application will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings.
[0098] Figure 1 It is a flow chart of the method for building an electromechanical and hydraulic control and sensing simulation platform for a hydraulic quadruped robot of the present invention;
[0099] Figure 2 It is a schematic diagram of the electromechanical and hydraulic control simulation platform of the hydraulic quadruped robot of the present invention and the signal flow of each module;
[0100] Figure 3 This is a diagram showing the foot-end contact sequence of the hydraulic quadruped robot Trot gait of the present invention;
[0101] Figure 4 It is a schematic diagram of the theoretical calculation of the foot end trajectory of the quadruped robot of the present invention;
[0102] Figure 5 It is a schematic diagram of the DH coordinate system of the hydraulic quadruped robot of the present invention;
[0103] Figure 6a It is a schematic diagram of the three-dimensional mechanical structure of a single leg of the hydraulic quadruped robot of the present invention;
[0104] Figure 6b It is a schematic diagram of the three-dimensional mechanical structure of a single leg of the hydraulic quadruped robot of the present invention;
[0105] Figure 7 It is a schematic diagram of a position control module of a hydraulic drive unit of a hydraulic quadruped robot of the present invention;
[0106] Figure 8 It is a schematic diagram of a dynamic model module of a hydraulic quadruped robot of the present invention;
[0107] Fig. 9 Schematic diagram of system modules for simulating a single-leg dynamics model of a hydraulic quadruped robot of the present invention;
[0108] Fig.10 It is a schematic diagram of image processing in the virtual platform running state in the SimMechanics environment of the present invention;
[0109] Fig.11It is a schematic diagram of position control and simulation verification of the hydraulic driving unit of the hip joint of the hydraulic quadruped robot of the present invention;
[0110] Fig.12 It is a schematic diagram of position control and simulation verification of the hydraulic drive unit of the knee joint of the hydraulic quadruped robot of the present invention;
[0111] Fig.13 It is a schematic diagram of speed simulation verification of the hydraulic quadruped robot of the present invention. DETAILED DESCRIPTION
[0112] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0113] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0114] Figure 1 The invention shows a method for constructing an electromechanical and hydraulic control simulation platform for a hydraulic quadruped robot, which method comprises the following steps:
[0115] The electromechanical and hydraulic control simulation platform of the hydraulic quadruped robot includes a foot-end trajectory planning module, a kinematics module, a joint space and hydraulic drive unit stroke mapping module, a hydraulic drive unit position control module and a dynamic model module; the foot-end trajectory planning module is constructed according to the foot-end trajectory model, and the foot-end trajectory model is constructed by mathematical modeling; the kinematics module is constructed according to the forward kinematics and inverse kinematics models of the hydraulic quadruped robot, and the forward kinematics and inverse kinematics models of the hydraulic quadruped robot are determined by the DH coordinate system and the geometric structure of the hydraulic quadruped robot, and are constructed by mathematical modeling; the joint space and hydraulic drive unit stroke mapping module is constructed by the mapping relationship between the joint space and the hydraulic drive unit, and the mapping relationship between the joint space and the hydraulic drive unit is determined by the geometric structure of the legs of the hydraulic quadruped robot, and is constructed by mathematical modeling; the hydraulic drive unit position control module is constructed according to the hydraulic drive unit position control model, and the hydraulic drive unit position control model is determined by the structure of the hydraulic drive unit, and is constructed by mechanism modeling; the dynamic model module is constructed according to the mechanical structure of the hydraulic quadruped robot.
[0116] The hydraulic quadruped robot electromechanical hydraulic control simulation platform is constructed based on the signal flow between the foot end trajectory planning module, the kinematics module, the joint space and the hydraulic drive unit stroke mapping module, the hydraulic drive unit position control module and the dynamic model module. In a specific embodiment, Figure 2 Shown is a schematic diagram of the hydraulic quadruped robot electromechanical-hydraulic control simulation platform and the flow of signals between various modules.
[0117] S1. The foot-end trajectory planning module of the hydraulic quadruped robot is used to plan the foot-end trajectory of the hydraulic quadruped robot so that the foot-end forms a continuous trajectory.
[0118] S11. Select the experimental gait of the hydraulic quadruped robot, such as Figure 3 As shown in Figure 1, the trajectory of the foot is planned by a fifth-order polynomial. The experimental gaits include Trot gait, Walk gait, Pace gait and Jump gait.
[0119] S111, during the support phase, the foot end trajectory of the hydraulic quadruped robot is:
[0120]
[0121] Among them, c zlj represents the jth polynomial coefficient of the z-direction trajectory of the foot end of the hydraulic quadruped robot during the landing phase, j = 0, 1, ..., 5; T represents the period of the hydraulic quadruped robot taking a single step forward; z l (t) represents the z-coordinate of the foot end of the hydraulic quadruped robot at time t during the support phase; x l (t) represents the x-coordinate of the foot end of the hydraulic quadruped robot at time t during the support phase.
[0122] S112. According to the gait characteristics of the hydraulic quadruped robot Trot, the boundary conditions of formula (1) are:
[0123]
[0124] Among them, z l (0), represents the initial coordinate, initial velocity and initial acceleration of the foot end of the hydraulic quadruped robot in the support phase; S represents the step length; Respectively represent the support phase The z-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the moment v t Indicates the speed of the landing leg.
[0125] S113. According to the boundary conditions, the foot end trajectory of the hydraulic quadruped robot in the support phase is calculated as:
[0126]
[0127] S114, during the swing phase, the foot end trajectory of the hydraulic quadruped robot is:
[0128]
[0129] Among them, c zsj represents the jth polynomial coefficient of the z-direction trajectory of the foot end of the hydraulic quadruped robot in the swing phase; c xs1j represents the jth polynomial coefficient of the leg-lifting trajectory in the x-direction of the foot end of the hydraulic quadruped robot in the swing phase; c xs2j represents the jth polynomial coefficient of the leg landing trajectory in the x direction of the foot end of the hydraulic quadruped robot in the swing phase; z s (t) represents the z-coordinate of the foot end of the hydraulic quadruped robot at time t during the swing phase; x s (t) represents the x-coordinate of the foot end of the hydraulic quadruped robot at time t during the swing phase.
[0130] S115. According to the gait characteristics of the hydraulic quadruped robot Trot, the boundary condition of formula (4) is:
[0131]
[0132] in, Respectively represent the swing phase The z-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at this moment; s (T), They represent the z-axis coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the swing phase T respectively; Respectively represent the swing phase The x-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at all times; Respectively represent the swing phase The x-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the moment; s (T), They respectively represent the x-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the swing phase T.
[0133] S116. According to the boundary conditions, the foot end trajectory of the hydraulic quadruped robot during the swing phase is calculated as:
[0134]
[0135] Wherein, H represents the step height.
[0136] S117, equation (3) and equation (6) form a walking cycle trajectory of the foot end of the hydraulic quadruped robot, and then calculate the foot end trajectory of the hydraulic quadruped robot in Trot gait. In a specific embodiment, the foot end trajectory of the hydraulic quadruped robot in Trot gait is similar to a "steamed bun", and the trajectory planning result is as follows: Figure 4 As shown in Figure 2, when the robot takes a step in the Trot gait, the robot's body speed is equal to the speed of the leg that touches the ground v t In order to avoid a violent collision due to the relative speed between the foot and the ground, the speed of the foot relative to the body of the robot is -v at the moment when the foot touches and leaves the ground. t .
[0137] For the robot Trot gait, the foot end trajectories in the z and x directions of the legs are planned. According to the gait requirements, the foot end trajectories in the y direction of the robot legs can also be planned. Similarly, the foot end trajectories of the Walk gait, Pace gait and Jump gait can also be planned using the same method, which will not be described in detail in the present invention.
[0138] S12. Based on Matlab SimMechanics toolbox, use the foot-end trajectory planning equation to build a foot-end trajectory planning module; the foot-end trajectory planning module uses X0, Y0, Z0, S, T, H, t, tt as input, and the foot-end trajectory coordinates X, Y, Z as output, X0, Y0, Z0 represent the foot-end coordinates in the x, y, z directions in the initial state respectively; tt represents the actual time. In a specific embodiment, for simplicity of expression, the Trot gait foot-end coordinates of the hydraulic quadruped robot have been represented by a collective signal line, such as Figure 2 shown.
[0139] S2. Take the foot end coordinates {X, Y, Z} of the hydraulic quadruped robot as the motion input, and obtain the DH coordinate angles {CT1, CT2, CT3} of the hydraulic quadruped robot through the kinematic module.
[0140] S21, establish a DH coordinate system according to the relationship between the joints of the hydraulic quadruped robot, and determine the corresponding parameters; in a specific embodiment, establish the corresponding DH coordinate system result, such as Figure 5 shown.
[0141] S22. According to the DH coordinate system and leg structure parameters, the kinematic solution of the hydraulic quadruped robot is obtained to prepare for the subsequent simulation platform construction.
[0142] In this specific embodiment, the forward solution and inverse solution of the robot's single-leg kinematics are based on Figure 5 The kinematic relationships of the remaining single legs can be derived similarly based on the following deductions for middle leg 2 (i.e., the right front leg).
[0143] The problem of numerically solving the position of the robot's foot relative to the body coordinate system when the angles of each robot's joints are known belongs to the problem of direct solution of the kinematics of legged robots.
[0144] S221. According to the DH coordinate system, the connecting rod relationship is specified: a i-1 Indicates from z i-1 to z i Along x i-1 The distance; α i-1 Indicates from z i-1 to z i Along x i-1 Angle of rotation; d i Indicates that from x i-1 to x i Along z i The distance; θ i Indicates that from x i-1 to x i Along z i The rotation angle; 2b represents the length of the robot body; 2w represents the width of the robot body; h represents the height of the robot body;
[0145] S222. According to the link relationship in the DH coordinate system, when i>1, the position conversion relationship between link i and link i-1 is
[0146]
[0147] S223, according to Figure 5 The middle coordinate pose definition relationship is substituted into formula (7) by substituting the mechanical parameters of the front leg of the hydraulic quadruped robot into the equation (7) to obtain the kinematic solution pose transformation matrix from the foot end of the hydraulic quadruped robot to the transition coordinate {0} for:
[0148]
[0149] Among them, the specified abbreviations are respectively represented by S1=sinθ1, C1=cosθ1, S 23 =sin(θ2+θ3),C 23 =cos(θ2+θ3).
[0150] S224, the foot end position transformation relationship from the hydraulic quadruped robot body transition coordinate system {0} to the foot end coordinate system {4} is:
[0151]
[0152] in, They respectively represent the foot end x, y, and z position transformation relationship from the hydraulic quadruped robot body transition coordinate system {0} to the foot end coordinate system {4}.
[0153] S23. According to the DH coordinate system, leg structure parameters and the forward kinematics solution of the hydraulic quadruped robot, the inverse kinematics solution of the hydraulic quadruped robot is obtained to prepare for the subsequent simulation platform construction.
[0154] S231. Based on the DH coordinate system, define the position transformation relationship of the hydraulic quadruped robot foot end coordinate system {4} relative to the hydraulic quadruped robot body transition coordinate system {0}
[0155]
[0156] in, They represent the direction cosines of the i-unit principal vector in the foot-end coordinate system {4} relative to the transition coordinate system {0}; They represent the direction cosines of the j-unit principal vector in the foot-end coordinate system {4} relative to the transition coordinate system {0}; They represent the direction cosines of the k unit principal vectors in the foot-end coordinate system {4} relative to the transition coordinate system {0}.
[0157] S232, use and Left multiplication get:
[0158]
[0159] Right now:
[0160]
[0161] S233, according to formula (12), θ1, θ2 and θ3 are obtained, respectively:
[0162]
[0163] Due to the non-negativity of the value range of the inverse cosine function, according to the definition of the DH coordinates in the present invention, when the single leg of the quadruped robot adopts an elbow configuration (front leg), the angle θ3 is a positive value; when the knee configuration (hind leg) is adopted, the angle θ3 should be a negative value, so θ3 = -θ3.
[0164] S24, using the rod length a and the foot end coordinates {X, Y, Z} as variables, using the functional relationship, complete the kinematics module construction in the MatlabSimMechanics toolbox, such as Figure 2 As shown, the coordinate angles {CT1, CT2, CT3} of the hydraulic quadruped robot DH are obtained, preparing for the next step of calculating the stroke of the hydraulic drive unit.
[0165] S3. Using the coordinate angles {CT1, CT2, CT3} of the hydraulic quadruped robot DH as the driving input, the desired stroke of the hydraulic drive unit {CT1, L2, L3} is obtained through the joint space and hydraulic drive unit stroke mapping module.
[0166] S31, obtaining the stroke of the hydraulic drive unit according to the DH coordinate angle of the hydraulic quadruped robot obtained by the inverse kinematics solution;
[0167] The mapping relationship between the hydraulic drive unit stroke and joint angle of the hydraulic quadruped robot in the present invention is based on Figure 5 The mapping relationship of the middle leg 2 (i.e., the right front leg) is derived, and the mapping relationship of the remaining single legs can be derived similarly according to the following derivation.
[0168] Since the longitudinal swing of the hip joint and the knee joint of the single leg of the hydraulic quadruped robot are both driven by the hydraulic drive unit, it is necessary to obtain the stroke of the hydraulic drive unit from the angles of each joint of the hydraulic quadruped robot's leg obtained by the inverse kinematic solution, and then realize the angle change of the hip joint and knee joint of the hydraulic quadruped robot by controlling the stroke of the hydraulic drive unit, and combine it with the angle control of the hip joint lateral swing, finally realize the posture control of the hydraulic quadruped robot's leg.
[0169] The schematic diagram of the hydraulic quadruped robot leg structure and the corresponding diagram are as follows: Figure 6a and Figure 6b As shown in the figure, AC and DE represent the hydraulic drive units that drive the longitudinal swing of the hip joint and the longitudinal swing of the knee joint of the hydraulic quadruped robot, respectively. The main content of this section is to solve the length of AC and DE through the single leg posture angles θ2 and θ3 of the hydraulic quadruped robot.
[0170] S311. Calculate the length of the hydraulic drive unit AC that drives the longitudinal swing motion of the hip joint of the hydraulic quadruped robot, because:
[0171] ∠ABC=90°+θ2-∠CBG+∠ABM(14)
[0172] Among them, ∠ABC represents the angle between AB and BC; AB represents the distance between the two hinge points of the hip joint; BC represents the distance from the hinge point between the hip joint and the knee cylinder to the hinge point between the hip cylinder and the knee cylinder; ∠CBG represents the angle between BC and BG; BG represents the distance from the hinge point between the hip joint and the knee cylinder to the hinge point between the knee cylinder and the calf; ∠ABM represents the angle between AB and BM; BM represents the horizontal reference line passing through the hinge point between the hip joint and the knee cylinder.
[0173] In ΔABC, by applying the law of cosines to side AC we get:
[0174]
[0175] S312, solving the length of the hydraulic drive unit DE that drives the longitudinal swing motion of the knee joint of the hydraulic quadruped robot, because:
[0176] ∠FGD=180°-θ3-∠FGH-∠BGD(16)
[0177] Among them, ∠FGD represents the angle between FG and GD; FG represents the distance from the hinge between the knee cylinder and the calf to the hinge between the connecting rod and the calf; GD represents the distance from the hinge between the knee cylinder and the calf to the bottom center of the rodless cavity of the piston cylinder inside the knee cylinder; ∠FGH represents the angle between FG and GH; GH represents the distance from the hinge between the knee cylinder and the calf to the foot end of the calf; ∠BGD represents the angle between BG and GD.
[0178] And satisfy the geometric relationship:
[0179] DE 2 -2DF*cos∠FDE*DE+DF 2 -EF 2 =0(17)
[0180] Among them, DF represents the distance from the bottom of the rodless cavity of the knee cylinder to the hinge point between the connecting rod and the calf; EF represents the length of the connecting rod, that is, the distance from the hinge point between the connecting rod and the piston rod of the knee cylinder to the hinge point between the connecting rod and the calf; ∠FDE represents the angle between FD and DE.
[0181] Therefore, in formula (17), except for the DE length, other parameters are known or have been calculated. Then formula (17) can be regarded as a quadratic equation with DE length as the unknown variable. Considering the limitation of the geometric relationship of the single leg of the hydraulic quadruped robot, in ΔDEF, ∠EFD is always an acute angle. The root-finding formula of the quadratic equation is used to obtain a solution with a smaller DE as the value of DE to be calculated:
[0182]
[0183] Therefore, the relationship between the front leg joint angle of the hydraulic quadruped robot and the length of the hydraulic drive unit AC and DE is as follows:
[0184]
[0185] S32, using θ1, θ2 and θ3 as variables, using the function relationship, complete the construction of the joint space and hydraulic drive unit stroke mapping module in the Matlab SimMechanics toolbox to obtain the expected stroke {CT1, L2, L3} of the hydraulic drive unit. In a specific embodiment, for simplicity, the expected strokes of the four hip joint longitudinal swing hydraulic drive units and the four knee joint longitudinal swing hydraulic drive units of the hydraulic quadruped robot are represented by a collective signal line, such as Figure 2 shown.
[0186] S4. Use the joint space and hydraulic drive unit stroke mapping module to obtain the expected stroke {CT1, L2, L3} of the hydraulic drive unit, and use the torque Torque and force Force collected by the dynamics model as the load force as the actual drive input, input it into the hydraulic drive unit position control module, and obtain the actual rotation angle Xc and actual stroke {Xp2, Xp3} of the hydraulic drive unit. In a specific embodiment, for simplicity of expression, the actual rotation angles of the four hip joint lateral swing hydraulic drive units, the actual strokes of the four hip joint longitudinal swing hydraulic drive units, and the actual strokes of the four knee joint longitudinal swing hydraulic drive units of the hydraulic quadruped robot are represented by collective signal lines, such as Figure 2 shown.
[0187] Analyze the structure of the hydraulic drive unit, establish the position control model of the hydraulic drive unit by using mechanism modeling, and complete the construction of the hydraulic drive unit position control module in the SimMechanics environment, such as Figure 7 shown.
[0188] S41. Through the mechanism analysis of the hydraulic drive unit, six linearly independent system variables are selected as the state variables of the control system, which are: x1 = x p , x3=x v , x5=p1,x6=p2, we get the equation:
[0189]
[0190] in, Represent the first-order derivatives of x1, x2, x3, x4, x5, and x6 respectively; x p Indicates the displacement of the servo cylinder rod; x v Indicates the displacement of the servo valve core; Respectively represent x p ,x v The first derivative of; p1 represents the rodless chamber pressure; p2 represents the rod chamber pressure; ζ represents the servo valve damping ratio; ω represents the servo valve natural frequency, in rad / s; K represents the load stiffness, in N / m; K1 represents the servo valve flow coefficient corresponding to the rodless chamber of the servo cylinder; K2 represents the flow coefficient corresponding to the rod chamber of the servo cylinder; K x Represents the displacement sensor gain; K axv Indicates the servo valve gain; β e represents the effective volume elastic modulus, in Pa; V1 represents the volume of the cavity without rod; V2 represents the volume of the cavity with rod; C ip Indicates the leakage coefficient in the servo cylinder, in m 3 / (s·Pa); C epIndicates the external leakage coefficient of the servo cylinder, in m 3 / (s·Pa); A1 represents the rodless cavity area of the asymmetric servo cylinder, in m 2 ; A2 represents the rod cavity area of the asymmetric servo cylinder, in m 2 ;m t Indicates the total mass converted to the servo cylinder piston, in kg; B p represents the viscous damping coefficient of the load and valve-controlled asymmetric cylinder, in N·s / m; u1, u2 represent the first input and the second input, respectively, and u1=L, u2=F p , L represents the total stroke of the servo cylinder piston, F p Indicates the driving force of the power mechanism.
[0191] S42. Use formula (20) to build the hydraulic drive unit position control module in the Matlab SimMechanics toolbox.
[0192] S5. According to the mechanical structure of the hydraulic quadruped robot, construct the dynamic model module of the hydraulic quadruped robot, draw the three-dimensional model of the hydraulic quadruped robot, set the relevant properties of the material and mass, and establish the dynamic model module of the hydraulic quadruped robot in the Matlab SimMechanics toolbox.
[0193] S51. Draw a 3D model of the hydraulic quadruped robot in SolidWorks 3D design software according to design requirements and add relevant properties of each part.
[0194] S52. In the SolidWorks software assembly environment, constraints are imposed between components based on the mutual motion relationships of the components of the hydraulic quadruped robot mechanical structure.
[0195] S53. Use the Simscape Multibody Link tool of SolidWorks software to export the assembly file of the hydraulic quadruped robot mechanical structure into one .xml file and multiple .stl files.
[0196] S54. Run the "smimport" command in the Matlab command window. Matlab automatically reads the corresponding .xml file and .stl file to complete the construction of the dynamic model module of the hydraulic quadruped robot.
[0197] S6. Based on the signal flow between the foot-end trajectory planning module, kinematics module, joint space and hydraulic drive unit stroke mapping module, hydraulic drive unit position control module and dynamic model module of the hydraulic quadruped robot and the relationship between the force and load force of each joint drive unit, a hydraulic quadruped robot electromechanical and hydraulic control simulation platform is jointly constructed.
[0198] S61. According to the coordinate system in the simulation platform and actual needs, complete the setting of basic parameters including gravity.
[0199] S62. Add a contact force module to the dynamic model module, and make the foot end of the hydraulic quadruped robot contact the ground through the first coordinate transformation module Transform1 and the second coordinate transformation module Transform2 to obtain the contact point Fc between the foot end of the hydraulic quadruped robot and the ground.
[0200] S63. Input Xc, Xp2, and Xp3 into the dynamic model, and measure Torque and Force. Input Torque and Force as load forces into the hydraulic drive unit position control module to complete the construction of the electromechanical and hydraulic control simulation platform of the hydraulic quadruped robot.
[0201] In a specific embodiment, the topological structures of the four legs of the robot are the same, and the relationships between the four legs and the body and the world coordinates are the same, so leg No. 1 is taken as an example for a specific description:
[0202] like Figure 8 As shown, the fuselage_01_1_RIGID is connected to the 01 leg_1 through the rotation submodule Revolute3, with the actual joint angle Xc output by the hydraulic system 11 As input quantity, enter the revolute module Revolute3, Torque 11 The output is collected back to the hydraulic system as its load torque. 12 With XP 13 As input quantity enter x01 leg_1, Force 12 、Force 13 As output, it is collected back to the hydraulic system module. Among them, the leg structures are all encapsulated in x01leg_1.
[0203] S64, set the F module as the combination module of the hydraulic quadruped robot body and leg structure, connect the leg hip cylinder structure and the hip piston rod structure through the first mobile submodule, and the first mobile submodule uses the input signal Xp of the second joint of the first leg 12 The first position signal p1, the first velocity signal v1 and the first force signal f1 are used as the input, and the real-time control and monitoring of the hip joint hydraulic drive unit are completed. The first force signal f1 is input into the hydraulic system as the load force to complete the closed-loop control of the hip joint hydraulic drive unit. The leg knee cylinder structure and the knee piston rod structure are connected through the second mobile sub-module. The second mobile sub-module uses the input signal Xp of the third joint of the first leg 13The signal is taken as input, and the second position signal p2, the second velocity signal v2 and the second force signal f2 are taken as output to complete the real-time control and monitoring of the knee joint hydraulic drive unit, and the second force signal f2 is input into the hydraulic system as the load force to complete the closed-loop control of the knee joint hydraulic drive unit; the construction of the electromechanical-hydraulic control simulation platform of the hydraulic quadruped robot is completed.
[0204] In a specific embodiment, Fig. 9 As shown, the F module is set as the combination module of the hydraulic quadruped robot body_01_1_RIGID and the leg structure x01kuanjiehe_2_RIGID, and the leg hip cylinder structure and the hip piston rod structure are connected through the first mobile submodule Prismatic1. The first mobile submodule Prismatic1 is Figure 8 The input signal Xp of the second joint of the first leg 12 The first position signal p1, the first velocity signal v1 and the first force signal f1 are used as the input, and the real-time control and monitoring of the hip joint hydraulic drive unit are completed. The first force signal f1 is input into the hydraulic system as the load force to complete the closed-loop control of the hip joint hydraulic drive unit. The leg knee cylinder structure and the knee piston rod structure are connected through the second mobile submodule Prismatic. The second mobile submodule Prismatic is connected with the second mobile submodule Prismatic. Figure 8 The input signal Xp of the third joint of the first leg 13 The signal is taken as the input, and the second position signal p2, the second velocity signal v2, and the second force signal f2 are taken as the output to complete the real-time control and monitoring of the knee joint hydraulic drive unit, and the second force signal f2 is input into the hydraulic system as the load force to complete the closed-loop control of the knee joint hydraulic drive unit; the other leg structure construction methods are the same as the leg structure construction method in step S63. At this point, the construction of the electromechanical and hydraulic control simulation platform of the hydraulic quadruped robot is completed.
[0205] S65, run the hydraulic quadruped robot electromechanical hydraulic control simulation platform, the running effect is as follows Fig.10 shown.
[0206] S7. Verify the accuracy of the stroke and speed results of the established hydraulic quadruped robot electromechanical-hydraulic control simulation platform.
[0207] The main contents verified are: the expected stroke of the hydraulic drive unit obtained by theoretical calculation, the actual stroke of the hydraulic drive unit obtained by the hydraulic drive unit position control module and the simulated stroke measured by the electromechanical and hydraulic control simulation platform; the theoretical calculation speed and simulation measurement speed of the hydraulic quadruped robot.
[0208] S71. Verify the expected stroke of the hydraulic drive unit obtained by theoretical calculation, the actual stroke of the hydraulic drive unit obtained by the hydraulic drive unit position control module, and the simulated stroke measured by the electromechanical hydraulic control simulation platform.
[0209] In a specific embodiment, the four legs of the hydraulic quadruped robot have the same structure, so leg 01 is selected for simulation result verification. The hip joint hydraulic drive unit is verified, and the verification results are as follows: Fig.11 As shown in the figure, the simulation verification results show that the control effect is good and the error is within an acceptable range; the knee joint hydraulic drive unit is verified, and the verification results are as follows Fig.12 As shown in the figure, the simulation verification results show that the control effect is good and the error is within an acceptable range. It has been verified that the simulation results of other hydraulic drive units also meet the requirements.
[0210] S72. Compare and verify the theoretical calculation speed and simulation measurement speed results of the hydraulic quadruped robot.
[0211] In a specific embodiment, the verification results of the theoretical calculation speed and simulation measurement speed of the hydraulic quadruped robot are as follows: Fig.13 The results show that in a stable state, the speed of the hydraulic quadruped robot obtained by simulation is about 7km / h, which is basically the same as the initial setting and achieves the expected effect.
[0212] The invention discloses a method for building an electromechanical and hydraulic control simulation platform for a hydraulic quadruped robot. With the help of the SimMechanics toolbox in Matlab, modular simulation design is performed on the foot-end trajectory planning, kinematics, joint space and hydraulic drive unit stroke mapping, hydraulic drive unit position control and dynamics model of the hydraulic quadruped robot. The method can verify the control theory of the quadruped robot, simplify the design and optimization process of the quadruped robot, and shorten the design and optimization cycle. Compared with the traditional design method, the proposed method can better plan the motion state of the robot, avoid a large number of prototype trial and error cycles, and greatly reduce the research and development cost. In addition, the correctness of the program design can be verified on the simulation platform in advance to prevent the direct application of the technology on the prototype when it is not mature, which may lead to accidents.
[0213] Finally, it should be noted that the above embodiments are only intended to illustrate rather than limit the technical solutions of the present invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the present invention can still be modified or replaced by equivalents. Any modification or partial replacement that does not depart from the spirit and scope of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A method for building a hydraulic quadruped robot electromechanical hydraulic control simulation platform. It is characterized in that It includes the following steps: S1. Planning the foot end trajectory of the hydraulic quadruped robot through the foot end trajectory planning module of the hydraulic quadruped robot so that the foot end forms a continuous trajectory; S11, select the experimental gait of the hydraulic quadruped robot, and plan the trajectory of the foot end using a fifth-order polynomial; S12. Based on the Matlab SimMechanics toolbox, the foot-end trajectory planning module was built using the foot-end trajectory planning equation; S2, taking the foot end coordinates {X, Y, Z} of the hydraulic quadruped robot as the motion input, the DH coordinate angle {CT 1 ,CT 2 ,CT 3 }; S21, establishing a DH coordinate system according to the relationship between the joints of the hydraulic quadruped robot, and determining the corresponding parameters; S22. According to the DH coordinate system and the leg structure parameters, the kinematics positive solution of the hydraulic quadruped robot is obtained; S23, obtaining an inverse kinematics solution of the hydraulic quadruped robot according to the DH coordinate system, the leg structure parameters and the kinematics forward solution of the hydraulic quadruped robot; S24, using the rod length a and the foot end coordinates {X, Y, Z} as variables, using the functional relationship, complete the kinematic module construction in the Matlab SimMechanics toolbox to obtain the hydraulic quadruped robot DH coordinate angle {CT 1 ,CT 2 ,CT 3 }; S3, with the hydraulic quadruped robot DH coordinate angle {CT 1 ,CT 2 ,CT 3 } as the driving input, and the desired stroke of the hydraulic drive unit is obtained through the joint space and hydraulic drive unit stroke mapping module {CT 1 ,L 2 ,L 3 }; S31, obtaining the stroke of the hydraulic drive unit according to the DH coordinate angle of the hydraulic quadruped robot obtained by the inverse kinematics solution; S32, with θ 1 ,θ 2 and θ 3 As variables, the functional relationship is used to complete the construction of the joint space and hydraulic drive unit stroke mapping module in the Matlab SimMechanics toolbox to obtain the expected stroke of the hydraulic drive unit {CT 1 ,L 2 ,L 3 }; S4, using the joint space and hydraulic drive unit stroke mapping module to obtain the expected stroke of the hydraulic drive unit {CT 1 ,L 2 ,L 3 The torque Torque and force Force collected by the dynamic model are used as the load force as the actual driving input, which is input into the hydraulic drive unit position control module to obtain the actual rotation angle Xc and actual stroke {Xp 2 ,Xp 3 }; S5. According to the mechanical structure of the hydraulic quadruped robot, construct the dynamic model module of the hydraulic quadruped robot, draw the three-dimensional model of the hydraulic quadruped robot, set the relevant properties of the material and mass, and establish the dynamic model module of the hydraulic quadruped robot in the Matlab SimMechanics toolbox; S6. According to the foot trajectory planning module, kinematics module, joint space and hydraulic drive unit stroke mapping module, hydraulic drive unit position control module and dynamics model module of the hydraulic quadruped robot, and the relationship between the force and load force of each joint drive unit, a hydraulic quadruped robot electromechanical hydraulic control simulation platform is jointly constructed; S7. Verify the accuracy of the stroke and speed results of the established hydraulic quadruped robot electromechanical hydraulic control simulation platform; S71, verifying the expected stroke of the hydraulic drive unit obtained by theoretical calculation, the actual stroke of the hydraulic drive unit obtained by the hydraulic drive unit position control module, and the simulated stroke measured by the electromechanical hydraulic control simulation platform; S72. Compare and verify the theoretical calculation speed and simulation measurement speed results of the hydraulic quadruped robot; The step S11 specifically includes the following steps: S111, during the support phase, the foot end trajectory of the hydraulic quadruped robot is: Among them, c zlj represents the jth polynomial coefficient of the z-direction trajectory of the foot end of the hydraulic quadruped robot during the landing phase, j = 0, 1, ..., 5; T represents the period of the hydraulic quadruped robot taking a single step forward; z l (t) represents the z-coordinate of the foot end of the hydraulic quadruped robot at time t during the support phase; x l (t) represents the x-coordinate of the foot end of the hydraulic quadruped robot at time t during the support phase; S112. According to the gait characteristics of the hydraulic quadruped robot Trot, the boundary conditions of formula (1) are: Among them, z l (0), represents the initial coordinate, initial velocity and initial acceleration of the foot end of the hydraulic quadruped robot in the support phase; S represents the step length; Respectively represent the support phase The z-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the moment v t Indicates the speed of the landing phase leg; S113. According to the boundary conditions, the foot end trajectory of the hydraulic quadruped robot in the support phase is calculated as: S114, during the swing phase, the foot end trajectory of the hydraulic quadruped robot is: Among them, c zsj represents the jth polynomial coefficient of the z-direction trajectory of the foot end of the hydraulic quadruped robot in the swing phase; c xs1j represents the jth polynomial coefficient of the leg-lifting trajectory in the x-direction of the foot end of the hydraulic quadruped robot in the swing phase; c xs2j represents the jth polynomial coefficient of the leg landing trajectory in the x direction of the foot end of the hydraulic quadruped robot in the swing phase; z s (t) represents the z-coordinate of the foot end of the hydraulic quadruped robot at time t during the swing phase; x s (t) represents the x-coordinate of the foot end of the hydraulic quadruped robot at time t during the swing phase; S115. According to the gait characteristics of the hydraulic quadruped robot Trot, the boundary condition of formula (4) is: in, Respectively represent the swing phase The z-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at this moment; s (T), They represent the z-axis coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the swing phase T respectively; Respectively represent the swing phase The x-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at all times; Respectively represent the swing phase The x-coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the moment; s (T), They represent the x-axis coordinate, velocity and acceleration of the foot end of the hydraulic quadruped robot at the swing phase T respectively; S116. According to the boundary conditions, the foot end trajectory of the hydraulic quadruped robot during the swing phase is calculated as: Where H represents step height; S117, formula (3) and formula (6) constitute a walking cycle trajectory of the foot end of the hydraulic quadruped robot, and then calculate the foot end trajectory of the hydraulic quadruped robot in the Trot gait; The step S22 specifically includes the following steps: S221. According to the DH coordinate system, the connecting rod relationship is specified: a i-1 Indicates from z i-1 to z i Along x i-1 The distance; α i-1 Indicates from z i-1 to z i Along x i-1 Angle of rotation; d i Indicates that from x i-1 to x i Along z i The distance; θ i Indicates that from x i-1 to x i Along z i The rotation angle; 2b represents the length of the robot body; 2w represents the width of the robot body; h represents the height of the robot body; S222. According to the link relationship in the DH coordinate system, when i>1, the position conversion relationship between link i and link i-1 is S223, substituting the mechanical parameters of the front leg of the hydraulic quadruped robot into equation (7), obtain the kinematics positive solution position transformation matrix from the foot end of the hydraulic quadruped robot to the transition coordinate {0} for: Among them, the specified abbreviations are represented by S 1 = sinθ 1 ,C 1 = cosθ 1 ,S 23 = sin(θ 2 +θ 3 ),C 23 =cos(θ 2 +θ 3 ); S224, the foot end position transformation relationship from the hydraulic quadruped robot body transition coordinate system {0} to the foot end coordinate system {4} is: in, They respectively represent the transformation relationship of the foot end x, y, and z positions from the hydraulic quadruped robot body transition coordinate system {0} to the foot end coordinate system {4}; The step S23 specifically includes the following steps: S231. Based on the DH coordinate system, define the position transformation relationship of the hydraulic quadruped robot foot end coordinate system {4} relative to the hydraulic quadruped robot body transition coordinate system {0} in, They represent the direction cosines of the i-unit principal vector in the foot-end coordinate system {4} relative to the transition coordinate system {0}; They represent the direction cosines of the j-unit principal vector in the foot-end coordinate system {4} relative to the transition coordinate system {0}; They represent the direction cosines of the k-unit principal vectors in the foot-end coordinate system {4} relative to the transition coordinate system {0}; S232, use and Left multiplication get: Right now: S233, according to formula (12) to obtain θ 1 ,θ 2 ,θ 3 , respectively:
2. The method for constructing the electromechanical and hydraulic control simulation platform of the hydraulic quadruped robot according to claim 1, It is characterized in that The step S31 specifically includes the following steps: S311. Calculate the length of the hydraulic drive unit AC that drives the longitudinal swing motion of the hip joint of the hydraulic quadruped robot, because: ∠ABC=90°+θ 2 -∠CBG+∠ABM (14) Among them, ∠ABC represents the angle between AB and BC; AB represents the distance between the two hinges of the hip joint; BC represents the distance from the hinge between the hip joint and the knee cylinder to the hinge between the hip cylinder and the knee cylinder; ∠CBG represents the angle between BC and BG; BG represents the distance from the hinge between the hip joint and the knee cylinder to the hinge between the knee cylinder and the calf; ∠ABM represents the angle between AB and BM; BM represents the horizontal reference line passing through the hinge between the hip joint and the knee cylinder; In ΔABC, by applying the law of cosines to side AC we get: S312, solving the length of the hydraulic drive unit DE that drives the longitudinal swing motion of the knee joint of the hydraulic quadruped robot, because: ∠FGD=180°-θ 3 -∠FGH-∠BGD (16) Among them, ∠FGD represents the angle between FG and GD; FG represents the distance from the hinge between the knee cylinder and the calf to the hinge between the connecting rod and the calf; GD represents the distance from the hinge between the knee cylinder and the calf to the bottom center of the rodless cavity of the piston cylinder inside the knee cylinder; ∠FGH represents the angle between FG and GH; GH represents the distance from the hinge between the knee cylinder and the calf to the foot end of the calf; ∠BGD represents the angle between BG and GD; And satisfy the geometric relationship: THE 2 -2DF*cos∠FDE*DE+DF 2 -EF 2 =0 (17) Wherein, DF represents the distance from the bottom of the rodless cavity of the knee cylinder to the hinge point between the connecting rod and the shank; EF represents the length of the connecting rod, that is, the distance from the hinge point between the connecting rod and the piston rod of the knee cylinder to the hinge point between the connecting rod and the shank; ∠FDE represents the angle between FD and DE; Considering the geometrical relationship limitation of the single leg of the hydraulic quadruped robot, in ΔDEF, ∠EFD is always an acute angle. The root-finding formula of the quadratic equation is used to obtain a solution with a smaller DE as the value of DE required:
3. The method for constructing a hydraulic quadruped robot electromechanical hydraulic control simulation platform according to claim 1, It is characterized in that The step S4 specifically comprises the following steps: S41. Through the mechanism analysis of the hydraulic drive unit, six linearly independent system variables are selected as the state variables of the control system, which are: x 1 =x p , x 3 =x v , x 5 =p 1 ,x 6 =p 2 , we get the equation: in, Respectively represent x 1 ,x 2 ,x 3 ,x 4 ,x 5 ,x 6 The first derivative of x p Indicates the displacement of the servo cylinder rod; x v Indicates the displacement of the servo valve core; Respectively represent x p ,x v The first derivative of 1 Indicates the rodless cavity pressure; p 2 represents the rod chamber pressure; ζ represents the servo valve damping ratio; ω represents the servo valve natural frequency, in rad / s; K represents the load stiffness, in N / m; K 1 Indicates the servo valve flow coefficient corresponding to the rodless chamber of the servo cylinder; K 2 Indicates the flow coefficient corresponding to the rod chamber of the servo cylinder; K x Table displacement sensor gain; K axv Indicates the servo valve gain; β e Represents the effective bulk elastic modulus, in Pa; V 1 Represents the volume of the rodless cavity; V 2 Indicates the volume of the rod cavity; C ip Indicates the leakage coefficient in the servo cylinder, in m 3 / (s·Pa); C ep Indicates the external leakage coefficient of the servo cylinder, in m 3 / (s·Pa); A 1 Indicates the rodless cavity area of the asymmetric servo cylinder, in m 2 ; A 2 Indicates the rod cavity area of the asymmetric servo cylinder, in m 2 ;m t Indicates the total mass converted to the servo cylinder piston, in kg; B p Indicates the viscous damping coefficient of the load and valve-controlled asymmetric cylinder, in N·s / m; u 1 ,u 2 Represent the first input and the second input respectively, and u 1 =L,u 2 =F p , L represents the total stroke of the servo cylinder piston, F p Indicates the driving force of the power mechanism; S42. Use formula (20) to complete the construction of the hydraulic drive unit position control module in the Matlab SimMechanics toolbox.
4. The method for constructing a hydraulic quadruped robot electromechanical hydraulic control sensing simulation platform according to claim 1, It is characterized in that The step S5 specifically comprises the following steps: S51. Draw a 3D model of the hydraulic quadruped robot in SolidWorks 3D design software according to design requirements and add relevant attributes of each part; S52. In the SolidWorks software assembly environment, constraints are applied between components according to the mutual motion relationship of the components of the hydraulic quadruped robot mechanical structure; S53. Use the Simscape Multibody Link tool of SolidWorks software to export the assembly file of the hydraulic quadruped robot mechanical structure into one .xml file and multiple .stl files; S54. Run the "smimport" command in the Matlab command window. Matlab automatically reads the corresponding .xml file and .stl file to complete the construction of the dynamic model module of the hydraulic quadruped robot.
5. The method for constructing a hydraulic quadruped robot electromechanical hydraulic control sensing simulation platform according to claim 1, It is characterized in that The step S6 specifically comprises the following steps: S61. According to the coordinate system in the simulation platform and actual needs, complete the setting of basic parameters including gravity; S62. Add the contact force module to the dynamic model module and use the first coordinate transformation module Transform 1 With the second coordinate transformation module Transform 2 The foot end of the hydraulic quadruped robot is brought into contact with the ground, and a contact point Fc between the foot end of the hydraulic quadruped robot and the ground is obtained; S63, Xc, Xp 2 、Xp 3 Input the dynamic model, measure the Torque and Force; input the Torque and Force as load force into the hydraulic drive unit position control module to complete the construction of the hydraulic quadruped robot electromechanical hydraulic control simulation platform; S64, set the F module as the combination module of the hydraulic quadruped robot body and leg structure, connect the leg hip cylinder structure and the hip piston rod structure through the first mobile sub-module, and the first mobile sub-module uses the input signal Xp of the second joint of the first leg 12 The signal is the input quantity, with the first position signal p 1 , the first speed signal v 1 , the first force signal f 1 As the output, the real-time control and monitoring of the hip joint hydraulic drive unit is completed, and the first force signal f 1 As the load force input hydraulic system, the closed-loop control of the hip joint hydraulic drive unit is completed; the leg knee cylinder structure and the knee piston rod structure are connected through the second mobile submodule, and the second mobile submodule uses the input signal Xp of the third joint of the first leg 13 The signal is the input quantity, with the second position signal p 2 , the second speed signal v 2 , the second force signal f 2 As the output, the real-time control and monitoring of the hydraulic drive unit of the knee joint is completed, and the second force signal f 2 As the load force input to the hydraulic system, the closed-loop control of the hydraulic drive unit of the knee joint is completed; the electromechanical and hydraulic control simulation platform of the hydraulic quadruped robot is completed; S65, run the hydraulic quadruped robot electromechanical hydraulic control simulation platform.
6. The method for constructing a hydraulic quadruped robot electromechanical hydraulic control sensing simulation platform according to claim 1, It is characterized in that The hydraulic quadruped robot electromechanical and hydraulic control simulation platform includes a foot-end trajectory planning module, a kinematics module, a joint space and hydraulic drive unit stroke mapping module, a hydraulic drive unit position control module and a dynamic model module; the foot-end trajectory planning module is constructed according to the foot-end trajectory model, and the foot-end trajectory model is constructed by mathematical modeling; the kinematics module is constructed according to the forward kinematics and inverse kinematics models of the hydraulic quadruped robot, and the forward kinematics and inverse kinematics models of the hydraulic quadruped robot are determined by the DH coordinate system and the geometric structure of the hydraulic quadruped robot, and are constructed by mathematical modeling; the joint space and hydraulic drive unit stroke mapping module is constructed by the mapping relationship between the joint space and the hydraulic drive unit, and the joint space and the hydraulic drive unit are mapped to the hydraulic drive unit. The unit mapping relationship is determined by the geometric structure of the hydraulic quadruped robot leg and is constructed by mathematical modeling; the hydraulic drive unit position control module is constructed according to the hydraulic drive unit position control model, and the hydraulic drive unit position control model is determined by the structure of the hydraulic drive unit and is constructed by mechanism modeling; the dynamic model module is constructed according to the mechanical structure of the hydraulic quadruped robot; the hydraulic quadruped robot electromechanical and hydraulic control simulation platform is constructed according to the foot-end trajectory planning module, kinematics module, joint space and hydraulic drive unit stroke mapping module, hydraulic drive unit position control module and dynamic model module signal flow between the hydraulic quadruped robot electromechanical and hydraulic control simulation platform; the foot-end trajectory planning module is based on X 0 , Y 0 , Z 0 , S, T, H, t, tt are input quantities, and the foot end trajectory coordinates X, Y, Z are output quantities, X 0 ,Y 0 ,Z 0 They represent the foot end coordinates in the x, y, and z directions in the initial state respectively; tt represents the actual time.
7. The method for constructing a hydraulic quadruped robot electromechanical hydraulic control sensing simulation platform according to claim 1, It is characterized in that The experimental gaits include Trot gait, Walk gait, Pace gait and Jump gait.
