Control method and related device of biped robot
By acquiring and adjusting the motion data of the bipedal robot, the problem of control errors caused by inaccurate measurements of the inertial measurement unit is solved, the control accuracy of the bipedal robot is improved, and it ensures that it can walk accurately in the real environment.
Patent Information
- Application Number
- CN202410962163.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-18
AI Technical Summary
In the real environment, the motion control of bipedal robots cannot achieve the expected results due to inaccurate measurement data of the inertial measurement unit, resulting in control errors.
By obtaining the first motion data and the desired motion data of the biped robot, the second motion data is calculated to compensate for the measurement error of the inertial measurement unit, and the gait control parameters are determined based on these data, and the motion of the biped robot is adjusted to optimize the motion. Data and corrected errors.
The control accuracy of the bipedal robot is improved, ensuring that it can accurately perform gait control in the real environment and reducing errors caused by inaccurate IMU measurement data.
Smart Images

Figure CN118502327B
Abstract
Description
Technical Field
[0001] The present application relates to the field of robotics technology, and in particular to a control method and related devices for a bipedal robot. Background Art
[0002] An inertial measurement unit (IMU) usually includes a gyroscope and an accelerometer. In the field of robotics, especially bipedal robots, it is often used to measure the robot's three-dimensional posture data, such as three-axis acceleration, three-axis attitude angle, angular velocity, etc.
[0003] In simulation, IMU can provide accurate data, so that the motion control of the bipedal robot is accurate and in line with expectations. However, for bipedal robots moving in real environments, various factors may cause the data measured by IMU to be inaccurate, which in turn leads to errors in the control of the bipedal robot in real environments and cannot achieve the expected results. Summary of the invention
[0004] The embodiments of the present application provide a control method and related devices for a bipedal robot, in order to optimize the motion data of the bipedal robot, correct the control error caused by inaccurate IMU measurement data, and improve the control accuracy of the bipedal robot.
[0005] In a first aspect, an embodiment of the present application provides a control method for a bipedal robot, which is applied to a controller of the bipedal robot, and the method comprises:
[0006] Acquire first motion data of the bipedal robot, where the first motion data refers to motion data of the bipedal robot at the beginning of a current gait cycle;
[0007] Calculating second motion data according to the first motion data and expected motion data, wherein the expected motion data is used to compensate for a measurement error generated by an inertial measurement unit of the bipedal robot;
[0008] Determining a gait control parameter of the biped robot in a current gait cycle according to the first motion data and the second motion data;
[0009] The biped robot is controlled to move in a current gait cycle according to the gait control parameters.
[0010] In a second aspect, an embodiment of the present application provides a control device for a bipedal robot, which is applied to a controller of the bipedal robot, and the device comprises:
[0011] an acquiring unit, configured to acquire first motion data of the bipedal robot, wherein the first motion data refers to motion data of the bipedal robot at the beginning of a current gait cycle;
[0012] a calculation unit, configured to calculate second motion data according to the first motion data and expected motion data, wherein the expected motion data is used to compensate for a measurement error generated by an inertial measurement unit of the bipedal robot;
[0013] a determining unit, configured to determine a gait control parameter of the biped robot in a current gait cycle according to the first motion data and the second motion data;
[0014] A control unit is used to control the movement of the biped robot in a current gait cycle according to the gait control parameters.
[0015] In a third aspect, an embodiment of the present application provides a controller comprising a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program comprises instructions for executing the steps in the first aspect of the embodiment of the present application.
[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program / instructions stored thereon, which, when executed by a processor, implement the steps in the first aspect of the embodiment of the present application.
[0017] It can be seen that in the embodiment of the present application, the controller first obtains the first motion data of the bipedal robot, and the first motion data refers to the motion data of the bipedal robot at the beginning of the current gait cycle; then the second motion data is calculated based on the first motion data and the expected motion data, and the expected motion data is used to compensate for the measurement error generated by the inertial measurement unit of the bipedal robot; then the gait control parameters of the bipedal robot in the current gait cycle are determined based on the first motion data and the second motion data; finally, the bipedal robot is controlled to move in the current gait cycle according to the gait control parameters. In this way, in each gait cycle, the controller of the bipedal robot can adjust the first motion data of the bipedal robot at the beginning of the current gait cycle according to the expected motion data, realize compensation and optimization of the motion data of the bipedal robot, thereby correcting the error caused by the inaccurate measurement data of the IMU when the bipedal robot walks in the real environment, and improving the control accuracy of the bipedal robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1 is a structural block diagram of a controller of a bipedal robot provided in an embodiment of the present application;
[0020] Figure 2 is a flow chart of a control method of a bipedal robot provided in an embodiment of the present application;
[0021] Figure 3 is a control flow chart of a bipedal robot provided in an embodiment of the present application;
[0022] Figure 4 It is a block diagram of the functional units of a control device for a bipedal robot provided in an embodiment of the present application;
[0023] Figure 5 This is a block diagram of the functional units of another bipedal robot control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0026] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0027] See also Figure 1 , Figure 1 is a structural block diagram of a controller of a bipedal robot provided in an embodiment of the present application. Figure 1As shown, the controller 10 may include one or more of the following components: a processor 101, and a memory 102 coupled to the processor 101, wherein the memory 102 may store one or more computer programs, and the one or more computer programs may be configured to implement the method described in the embodiment of the present application when executed by one or more processors 101.
[0028] The processor 101 may include one or more processing cores. The processor 101 uses various interfaces and lines to connect various parts of the entire controller 10, and executes various functions of the controller 10 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 102, and calling data stored in the memory 102.
[0029] The memory 102 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 102 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing various method embodiments, etc. The data storage area may also store data created by the controller 10 during use, etc.
[0030] It is understandable that the controller 10 may include more or fewer structural elements than those in the above structural block diagram, which is not limited here.
[0031] A control method for a bipedal robot provided in an embodiment of the present application is introduced below.
[0032] See also Figure 2 , Figure 2 is a flow chart of a control method for a bipedal robot provided in an embodiment of the present application, and the method is applied to Figure 1 In the controller 10 shown, as Figure 2 As shown, the control method of the bipedal robot includes:
[0033] S201, obtaining first motion data of the bipedal robot.
[0034] The first motion data refers to the motion data of the biped robot at the beginning of the current gait cycle.
[0035] The gait cycle refers to the cycle corresponding to the biped robot completing one step with each left and right foot. Specifically, each gait cycle can be regarded as the biped robot going through two single support phases (Single Support Phase, SSP) and two double support phases (Double Support Phase, DSP). The SSP phase refers to the phase in which only one leg of the biped robot plays a supporting role, and the DSP phase refers to the phase in which both legs of the biped robot play a supporting role. Exemplarily, assume that the state of the biped robot at the beginning of the current gait cycle is that the left leg is in front and the right leg is behind, and only the left leg plays a supporting role, that is, the SSP stage (left leg support). At this time, the left leg remains in a supporting state, and the right leg walks forward one step to the command position until the right leg also begins to play a supporting role. At this time, the SSP stage (left leg support) is switched to the DSP stage. In the DSP stage, the positions of the two feet of the biped robot do not change. Only the center of gravity position is adjusted by changing the posture, so that the right leg of the biped robot is in front and the left leg is behind, and only the right leg plays a supporting role. At this time, the DSP stage is switched to the SSP stage (right leg support), that is, the right leg remains in a supporting state, and the left leg walks forward one step to the command position until the left leg also begins to play a supporting role. At this time, the SSP stage (right leg support) is switched to the DSP stage, and then the center of gravity position is adjusted until the left leg of the biped robot is in front, the right leg is behind, and only the left leg plays a supporting role, completing a gait cycle. It can be understood that the motion data of the biped robot at the beginning of the current gait cycle is equivalent to the motion data of the biped robot at the end of the previous gait cycle.
[0036] Specifically, when the biped robot completes the previous gait cycle, various states of the biped robot can be collected through sensors such as IMU set on the biped robot body, and then the motion data of the biped robot at the beginning of the current gait cycle, i.e., the first motion data, can be obtained by state estimation through robot kinematics, Kalman filtering and other algorithms. It can be seen that if there is an error in the measurement data of the IMU, there will also be an error in the first motion data obtained by the controller. If gait planning is performed directly based on the first motion data, the calculated gait control parameters will have errors and the expected control effect cannot be achieved.
[0037] S202: Calculate second motion data according to the first motion data and expected motion data.
[0038] The expected motion data is used to compensate for the measurement error generated by the inertial measurement unit of the biped robot, and the second motion data refers to the motion data after compensation by the expected motion data.
[0039] Among them, the expected motion data refers to data that is preset or input by human intervention, so that the gait control of the bipedal robot can be more in line with the user's expectations. Specifically, the expected motion data can be data preset for a specific walking environment, and the preset data is the most stable motion data in the specific walking environment obtained through a large number of experimental verifications, so as to ensure that the bipedal robot will not have serious control errors due to the measurement error of the IMU in the specific walking environment, thereby improving the control accuracy. In addition, the expected motion data can also be data input by an external device based on a communication link, and the external device is, for example, a remote sensing operation device, a mobile terminal device, etc. The user can input the expected motion data through the external device to make the gait control of the bipedal robot more in line with the user's expectations.
[0040] S203: Determine a gait control parameter of the biped robot in a current gait cycle according to the first motion data and the second motion data.
[0041] The first motion data includes motion data that needs to be compensated, such as walking speed, motor offset, etc., and also includes motion data that does not need to be compensated, such as center of mass height, initial position of both feet, etc. The motion data that needs to be compensated is converted into second motion data in S202 in combination with the expected motion data. Therefore, in this example, the gait control parameters of the bipedal robot in the current gait cycle are determined based on the motion data that does not need to be compensated in the first motion data and the second motion data. The gait control parameters are used to control the walking gait of the bipedal robot, such as the ground contact position that the both feet should reach.
[0042] S204: Control the biped robot to move in a current gait cycle according to the gait control parameters.
[0043] It can be seen that in the embodiment of the present application, the controller first obtains the first motion data of the bipedal robot, and the first motion data refers to the motion data of the bipedal robot at the beginning of the current gait cycle; then the second motion data is calculated based on the first motion data and the expected motion data, and the expected motion data is used to compensate for the measurement error generated by the inertial measurement unit of the bipedal robot; then the gait control parameters of the bipedal robot in the current gait cycle are determined based on the first motion data and the second motion data; finally, the bipedal robot is controlled to move in the current gait cycle based on the gait control parameters. In this way, in each gait cycle, the controller of the bipedal robot can adjust the first motion data of the bipedal robot at the beginning of the current gait cycle according to the expected motion data, realize compensation and optimization of the motion data of the bipedal robot, thereby correcting the error caused by the inaccurate measurement data of the IMU when the bipedal robot walks in the real environment, and improving the control accuracy of the bipedal robot.
[0044] In one possible example, the first motion data includes a first speed and a first offset of the bipedal robot, the first speed refers to the walking speed of the bipedal robot at the beginning of the current gait cycle, the first offset refers to the offset of the motor of the bipedal robot at the beginning of the current gait cycle, the expected motion data includes an expected speed, the second motion data includes a second speed and a second offset, and the second motion data calculated based on the first motion data and the expected motion data includes: calculating the second speed based on the first speed, the expected speed and a speed compensation coefficient, the speed compensation coefficient is used to characterize the degree of compensation for the speed deviation generated when the bipedal robot walks in the current gait cycle; calculating the second offset based on the first speed, the expected speed, the first offset and the offset compensation coefficient, the offset compensation coefficient is used to characterize the degree of compensation for the offset deviation generated by the motor when the bipedal robot walks in the current gait cycle.
[0045] Among them, the first speed and the first offset belong to motion data that will be affected by the measurement error of the IMU, that is, motion data that needs to be compensated, that is, the walking speed of the biped robot at the beginning of the current gait cycle and the offset of the motor have data deviations compared to expectations. Among them, the speed compensation coefficient and the offset compensation coefficient are specifically a gain ratio, and its value is associated with the degree of data deviation, that is, the greater the data deviation of the first speed and the first offset, the greater the degree of compensation required, and the greater the speed compensation coefficient and the offset compensation coefficient.
[0046] It can be seen that in this example, the controller adjusts the walking speed of the biped robot at the beginning of the current gait cycle from the first speed to the second speed through the expected speed and the speed compensation coefficient, and adjusts the offset of the motor of the biped robot at the beginning of the current gait cycle from the first offset to the second offset through the first speed, the expected speed and the offset compensation coefficient, thereby optimizing the motion data of the biped robot, thereby correcting the speed error and offset error caused by inaccurate IMU measurement data when the biped robot walks in a real environment, and improving the control accuracy of the biped robot.
[0047] In one possible example, before calculating the second motion data based on the first motion data and the expected motion data, the method also includes: obtaining target terrain information; obtaining the historical usage time of the inertial measurement unit; inputting the target terrain information, the historical usage time of the inertial measurement unit and the first speed into a pre-trained first prediction model to obtain the speed compensation coefficient; inputting the target terrain information, the historical usage time of the inertial measurement unit and the first speed into a pre-trained second prediction model to obtain the offset compensation coefficient.
[0048] Among them, after a large number of experiments and data analysis, it was determined that the factors that can significantly affect the accuracy of IMU data include terrain information, IMU usage time and walking speed. Among them, terrain information can be quantified as the height difference when the two feet touch the ground, and the usage time of the IMU is related to the drift degree of the sensor in the IMU. Specifically, by statistically analyzing a large number of training sample sets, and training and verifying the first prediction model and the second prediction model based on the training sample sets, the pre-trained first prediction model and the pre-trained second prediction model that can be directly called are obtained. Among them, each training sample set contains terrain information, the historical usage time of the IMU, the walking speed, and the speed compensation coefficient and the offset compensation coefficient when the control effect of the bipedal robot in this scenario is best. Specifically, in a scenario where terrain information, historical usage time of the IMU, and walking speed are determined, data identical to that of the scenario is first constructed in a simulation environment. Since all data in the simulation are known and accurate, an accurate simulation speed compensation coefficient / simulation offset compensation coefficient K' can be obtained based on this. K' is then applied to the same scenario in the real environment. By continuously fine-tuning the value of K' and observing the control effect of the bipedal robot, the speed compensation coefficient / offset compensation coefficient K that can achieve the best control effect of the bipedal robot in this scenario can be determined.
[0049] It can be seen that in this example, the controller obtains the target terrain information of the biped robot and the historical usage time of the IMU, and inputs them into the pre-trained first prediction model and the pre-trained second prediction model together with the first speed of the biped robot, and obtains the speed compensation coefficient and the offset compensation coefficient in the scene corresponding to the current gait cycle. In this way, the accuracy of data compensation is improved, making the calculated second motion data more accurate, and further improving the control accuracy of the biped robot.
[0050] In a possible example, calculating the second speed according to the first speed, the expected speed and the speed compensation coefficient includes: calculating the second speed by a first calculation formula, where the first calculation formula is:
[0051]
[0052] Wherein, V1 represents the first speed, represents the second speed, K1 represents the speed compensation coefficient, V in represents the desired speed.
[0053] In a possible example, calculating the second offset according to the first speed, the expected speed, the first offset, and the offset compensation coefficient includes: calculating the second offset by a second calculation formula, where the second calculation formula is:
[0054]
[0055] in, represents the first offset, represents the second offset, and K2 represents the offset compensation coefficient.
[0056] In a possible example, the first motion data includes the center of mass height of the bipedal robot at the beginning of the current gait cycle, and determining the gait control parameters of the bipedal robot in the current gait cycle according to the first motion data and the second motion data includes: calculating the dynamic parameters of the bipedal robot in the current gait cycle by a third calculation formula, and the third calculation formula is:
[0057]
[0058] in, represents the dynamic parameter, g represents the acceleration due to gravity, represents the height of the centroid;
[0059] The gait control parameters of the biped robot in the current gait cycle are calculated according to the dynamic parameters.
[0060] Among them, the center of mass height is a motion data that will not be affected by the measurement error of the IMU, that is, the center of mass height of the biped robot is a motion data that does not need to be compensated. In this example, the controller determines the dynamic parameters based on the center of mass height and the second offset in the second motion data, so that the dynamic parameters are also adjusted data, and then the gait control parameters of the biped robot in the current gait cycle are calculated by the dynamic parameters, which can correct the errors caused by inaccurate measurement data of the IMU when the biped robot walks in a real environment.
[0061] It can be seen that in this example, the controller calculates the dynamic parameters through the new height of the bipedal robot at the beginning of the current gait cycle and the second offset in the second motion data, and then calculates the gait control parameters of the bipedal robot in the current gait cycle based on the dynamic parameters, thereby further improving the control accuracy of the bipedal robot.
[0062] In one possible example, the gait control parameters include a target supporting leg position, a target supporting leg speed, and a ground contact position of both feet of the bipedal robot, and calculating the gait control parameters of the bipedal robot in a current gait cycle based on the dynamic parameters includes: calculating the target supporting leg position and the target supporting leg speed based on the dynamic parameters; calculating the ground contact position of both feet of the bipedal robot based on the dynamic parameters, the second speed, the target supporting leg position, and the target supporting leg speed.
[0063] Among them, the specific calculation process of the target supporting leg position and target supporting leg speed of the biped robot is as follows:
[0064]
[0065]
[0066]
[0067]
[0068] According to the 3D hybrid passive linear inverted pendulum model theory, it can be calculated:
[0069] The target supporting leg position of the biped robot is:
[0070]
[0071] The target supporting leg speed of the biped robot is:
[0072]
[0073] in, , , , are all intermediate parameters, T is the preset period, and the preset period refers to the period experience value corresponding to the biped robot completing one gait obtained after experiments and data analysis; is the time deviation, which is used to compensate for the time error caused by disturbance factors when the bipedal robot completes a gait, such as data transmission delay; t is the time length from the start-up time point of the bipedal robot to the current time point; is the component of the motor’s operating position on the x-axis, is the component of the motor's running speed on the x-axis, is the component of the second offset on the x-axis.
[0074] In this example, i has three values, 0, 1, and 2. When i=0, it represents the component of the data on the x-axis; when i=1, it represents the component of the data on the y-axis; and when i=2, it represents the component of the data on the z-axis.
[0075] Furthermore, after calculating the target supporting leg position and the target supporting leg speed, the ground contact positions of both feet of the bipedal robot are calculated. The specific calculation process is as follows:
[0076]
[0077]
[0078]
[0079]
[0080] Calculate the left foot contact position:
[0081]
[0082] Calculate the right foot contact position:
[0083]
[0084] in, is the speed difference between the two legs; , , are the components of the second velocity on the x-axis, y-axis, and z-axis respectively; , They represent the components of the x-axis and y-axis of the slope of the motion trajectory of the legs of the biped robot within a certain ratio range. , respectively used to limit the ratio range of the slope of the motion trajectory of the legs of the biped robot on the x-axis and y-axis; is the expected period, is the known set value; () function is the proportional control function in the PID (proportional-integral-derivative control) control algorithm, where kp represents the proportional coefficient. Represents the optimal value of the proportional coefficient in the scenario corresponding to the current gait cycle; , They are used to limit the ratio range of the proportional coefficient on the x-axis and y-axis respectively. The left foot touches the ground. This is the right foot contact position.
[0085] It can be seen that in this example, the controller calculates the gait control parameters of the bipedal robot in sequence according to the dynamic parameters, including the target supporting leg position, the target supporting leg speed and the ground contact position of both feet, which makes the calculation results more accurate and improves the control accuracy of the bipedal robot.
[0086] To assist understanding, the detailed technical route involved in the embodiments of the present application is introduced as a whole below in conjunction with the accompanying drawings.
[0087] See also Figure 3 , Figure 3 is a control flow chart of a biped robot provided in an embodiment of the present application. Figure 3 As shown, the first speed and the first offset in the first motion data are calculated in combination with the expected speed in the expected motion data. During the calculation process, the speed compensation coefficient K1 and the offset compensation coefficient K2 can be determined according to the corresponding scene of the current gait cycle, and then the second motion data is calculated. The gait planning algorithm is executed based on the second speed and the second offset in the second motion data and the center of mass height in the first motion data to obtain the gait control parameters, and then the gait control of the bipedal robot is performed according to the gait control parameters; after the movement is completed, the motion data of the bipedal robot at the end of the current gait cycle is obtained through the state estimation framework. The motion data at this time is the first motion data of the next gait cycle, forming a cycle.
[0088] In this way, by compensating the data before gait planning, the data involved in the gait planning algorithm is in line with expectations, and the gait planning algorithm is optimized, so that the gait control link can correct the errors caused by inaccurate IMU measurement data when the bipedal robot walks in a real environment, thereby improving the control accuracy of the bipedal robot.
[0089] In accordance with the above-mentioned embodiments, please refer to Figure 4 , Figure 4 is a block diagram of the functional units of a control device for a bipedal robot provided in an embodiment of the present application, such as Figure 4 As shown, the control device 40 of the bipedal robot includes: an acquisition unit 401, used to acquire first motion data of the bipedal robot, the first motion data refers to the motion data of the bipedal robot at the beginning of the current gait cycle; a calculation unit 402, used to calculate second motion data according to the first motion data and expected motion data, the expected motion data is used to compensate for the measurement error generated by the inertial measurement unit of the bipedal robot; a determination unit 403, used to determine the gait control parameters of the bipedal robot in the current gait cycle according to the first motion data and the second motion data; a control unit 404, used to control the movement of the bipedal robot in the current gait cycle according to the gait control parameters.
[0090] In one possible example, the first motion data includes a first speed and a first offset of the bipedal robot, the first speed refers to the walking speed of the bipedal robot at the beginning of the current gait cycle, the first offset refers to the offset of the motor of the bipedal robot at the beginning of the current gait cycle, the expected motion data includes an expected speed, and the second motion data includes a second speed and a second offset. In terms of calculating the second motion data based on the first motion data and the expected motion data, the calculation unit 402 is specifically used to: calculate the second speed based on the first speed, the expected speed and a speed compensation coefficient, and the speed compensation coefficient is used to characterize the degree of compensation for the speed deviation generated when the bipedal robot walks in the current gait cycle; calculate the second offset based on the first speed, the expected speed, the first offset and the offset compensation coefficient, and the offset compensation coefficient is used to characterize the degree of compensation for the offset deviation generated by the motor when the bipedal robot walks in the current gait cycle.
[0091] In one possible example, before calculating the second motion data based on the first motion data and the expected motion data, the control device 40 of the bipedal robot is also used to: obtain target terrain information; obtain the historical usage time of the inertial measurement unit; input the target terrain information, the historical usage time of the inertial measurement unit and the first speed into a pre-trained first prediction model to obtain the speed compensation coefficient; input the target terrain information, the historical usage time of the inertial measurement unit and the first speed into a pre-trained second prediction model to obtain the offset compensation coefficient.
[0092] In a possible example, in the aspect of calculating the second speed according to the first speed, the expected speed and the speed compensation coefficient, the calculation unit 402 is specifically used to: calculate the second speed by using a first calculation formula, and the first calculation formula is:
[0093]
[0094] Wherein, V1 represents the first speed, represents the second speed, K1 represents the speed compensation coefficient, V in represents the desired speed.
[0095] In a possible example, in the aspect of calculating the second offset according to the first speed, the expected speed, the first offset and the offset compensation coefficient, the calculation unit 402 is specifically used to: calculate the second offset by a second calculation formula, and the second calculation formula is:
[0096]
[0097] in, represents the first offset, represents the second offset, and K2 represents the offset compensation coefficient.
[0098] In a possible example, the first motion data includes the center of mass height of the bipedal robot at the beginning of the current gait cycle. In determining the gait control parameters of the bipedal robot in the current gait cycle according to the first motion data and the second motion data, the determining unit 403 is specifically used to: calculate the dynamic parameters of the bipedal robot in the current gait cycle by a third calculation formula, and the third calculation formula is:
[0099]
[0100] in, represents the dynamic parameter, g represents the acceleration due to gravity, represents the height of the centroid;
[0101] The gait control parameters of the biped robot in the current gait cycle are calculated according to the dynamic parameters.
[0102] In a possible example, the gait control parameters include the target supporting leg position, target supporting leg speed and ground contact position of both feet of the bipedal robot. In terms of calculating the gait control parameters of the bipedal robot in the current gait cycle according to the dynamic parameters, the determination unit 403 is specifically used to: calculate the target supporting leg position and the target supporting leg speed according to the dynamic parameters; calculate the ground contact position of both feet of the bipedal robot according to the dynamic parameters, the second speed, the target supporting leg position and the target supporting leg speed.
[0103] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.
[0104] In the case of integrated units, such as Figure 5 As shown, Figure 5 1 is a block diagram of the functional units of another bipedal robot control device provided in an embodiment of the present application. Figure 5In the embodiment, the control device 40 of the biped robot includes a communication module 41 and a processing module 42. The processing module 42 is used to control and manage the actions of the device, for example, to execute the steps of the acquisition unit 401, the calculation unit 402, the determination unit 403 and the control unit 404, and / or to execute other processes of the technology described herein. The communication module 41 is used to support the interaction between the device and other devices. Figure 5 As shown, the control device 40 of the biped robot may further include a storage module 43, and the storage module 43 is used to store program codes and data of the device.
[0105] Among them, the processing module 42 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 41 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 43 can be a memory.
[0106] Among them, all relevant contents of each scene involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The control device of the above bipedal robot can execute the above Figure 2 The control method of the bipedal robot shown.
[0107] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media sets. The available medium can be a magnetic medium, an optical medium, or a semiconductor medium.
[0108] An embodiment of the present application also provides a computer storage medium, on which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, part or all of the steps of any method recorded in the above method embodiments are implemented.
[0109] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0110] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are merely schematic; for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation; for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0112] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0113] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a volatile memory or a non-volatile memory. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM), etc., various media that can store program code.
[0114] Although the present application is disclosed as above, the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions without departing from the spirit and scope of the present application, and can make various changes and modifications, including the combination of the above-mentioned different functions and implementation steps, including software and hardware implementation methods, all of which are within the scope of protection of the present application.
Claims
1. A control method for a bipedal robot, characterized in that: A controller applied to a biped robot, the method comprising: Acquire first motion data of the bipedal robot, where the first motion data refers to motion data of the bipedal robot at the beginning of a current gait cycle; Calculating second motion data according to the first motion data and expected motion data, wherein the expected motion data is used to compensate for a measurement error generated by an inertial measurement unit of the bipedal robot; Determining a gait control parameter of the biped robot in a current gait cycle according to the first motion data and the second motion data; Controlling the bipedal robot to move in a current gait cycle according to the gait control parameters; The first motion data includes a first speed and a first offset of the bipedal robot, the first speed refers to the walking speed of the bipedal robot at the beginning of the current gait cycle, the first offset refers to the offset of the motor of the bipedal robot at the beginning of the current gait cycle, the expected motion data includes an expected speed, the second motion data includes a second speed and a second offset, and the second motion data is calculated according to the first motion data and the expected motion data, including: The second speed is calculated according to the first speed, the expected speed and a speed compensation coefficient, wherein the speed compensation coefficient is used to characterize the degree of compensation for the speed deviation generated when the biped robot walks in the current gait cycle; The second offset is calculated according to the first speed, the expected speed, the first offset and the offset compensation coefficient, and the offset compensation coefficient is used to characterize the degree of compensation for the offset deviation generated by the motor when the biped robot walks in the current gait cycle.
2. The method according to claim 1, characterized in that Before calculating the second motion data according to the first motion data and the expected motion data, the method further includes: Obtain target terrain information; Obtaining historical usage time of the inertial measurement unit; Inputting the target terrain information, the historical usage time of the inertial measurement unit and the first speed into a pre-trained first prediction model to obtain the speed compensation coefficient; The target terrain information, the historical usage time of the inertial measurement unit and the first speed are input into a pre-trained second prediction model to obtain the offset compensation coefficient.
3. The method according to claim 2, characterized in that The calculating the second speed according to the first speed, the expected speed and a speed compensation coefficient includes: The second speed is obtained by calculating the first calculation formula, wherein the first calculation formula is: Wherein, V1 represents the first speed, represents the second speed, K1 represents the speed compensation coefficient, V in represents the desired speed.
4. The method according to claim 3, characterized in that The calculating the second offset according to the first speed, the expected speed, the first offset and the offset compensation coefficient includes: The second offset is obtained by calculating the second calculation formula, where the second calculation formula is: in, represents the first offset, represents the second offset, and K2 represents the offset compensation coefficient.
5. The method according to claim 4, characterized in that The first motion data includes the center of mass height of the biped robot at the beginning of the current gait cycle, and determining the gait control parameters of the biped robot in the current gait cycle according to the first motion data and the second motion data includes: The dynamic parameters of the biped robot in the current gait cycle are calculated by the third calculation formula, and the third calculation formula is: in, represents the dynamic parameter, g represents the acceleration due to gravity, represents the height of the centroid; The gait control parameters of the biped robot in the current gait cycle are calculated according to the dynamic parameters.
6. The method according to claim 5, characterized in that The gait control parameters include the target supporting leg position, target supporting leg speed and the ground contact position of both feet of the biped robot. The gait control parameters of the biped robot in the current gait cycle are calculated according to the dynamic parameters, including: Calculating the target supporting leg position and the target supporting leg speed according to the dynamic parameters; The ground contact positions of both feet of the biped robot are calculated according to the dynamic parameters, the second speed, the target supporting leg position and the target supporting leg speed.
7. A control device for a bipedal robot, characterized in that: A controller for a bipedal robot, the device comprising: an acquiring unit, configured to acquire first motion data of the bipedal robot, wherein the first motion data refers to motion data of the bipedal robot at the beginning of a current gait cycle; a calculation unit, configured to calculate second motion data according to the first motion data and expected motion data, wherein the expected motion data is used to compensate for a measurement error generated by an inertial measurement unit of the bipedal robot; a determining unit, configured to determine a gait control parameter of the biped robot in a current gait cycle according to the first motion data and the second motion data; a control unit, configured to control the movement of the bipedal robot in a current gait cycle according to the gait control parameters; The first motion data includes a first speed and a first offset of the bipedal robot, the first speed refers to the walking speed of the bipedal robot at the beginning of the current gait cycle, the first offset refers to the offset of the motor of the bipedal robot at the beginning of the current gait cycle, the expected motion data includes an expected speed, the second motion data includes a second speed and a second offset, and the second motion data is calculated according to the first motion data and the expected motion data, including: The second speed is calculated according to the first speed, the expected speed and a speed compensation coefficient, wherein the speed compensation coefficient is used to characterize the degree of compensation for the speed deviation generated when the biped robot walks in the current gait cycle; The second offset is calculated according to the first speed, the expected speed, the first offset and the offset compensation coefficient, and the offset compensation coefficient is used to characterize the degree of compensation for the offset deviation generated by the motor when the biped robot walks in the current gait cycle.
8. A controller, characterized in that: The method comprises a processor, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
