A biped robot walking control method and biped robot
By calculating the offset of the center of mass position and adjusting the walking parameters, the stability problem of the bipedal robot when walking on a slope is solved, and stable walking on uneven ground is achieved.
Patent Information
- Application Number
- CN201911377654.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-12-27
AI Technical Summary
When a bipedal robot walks on a slope, the center of mass is perpendicular to the ground, causing the center of gravity to deviate from the support area and unable to walk stably.
By obtaining the distance information between the center of mass of the bipedal robot and the preset key points of the feet, the offset of the center of mass position is calculated, and the target center of mass position and walking parameters are adjusted based on the inverse kinematics algorithm to ensure that the center of mass is in the middle of the feet to achieve stability. walk.
It effectively solves the stability problem of bipedal robots when walking on slopes and ensures that the robot can move forward stably on uneven ground.
Smart Images

Figure CN113050616B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of robotics technology, and in particular, relates to a control method for walking of a bipedal robot and a bipedal robot. Background Art
[0002] A robot is a machine device that performs work automatically. It can accept human commands, run pre-programmed programs, or act according to principles formulated by artificial intelligence technology. Its mission is to assist or replace human work, such as manufacturing, construction, or dangerous work. Since bipedal robots are similar to humans in appearance, bipedal robots have always been one of the hot topics in the field of robotics. Bipedal robots need to maintain a stable walking state in various environments when working. However, due to the high center of mass and small support area of the bipedal robot itself, the center of mass of the bipedal robot will be perpendicular to the ground when walking on a slope, causing the center of gravity of the robot to seriously deviate from the support area, which in turn causes the bipedal robot to be unable to walk stably. Summary of the invention
[0003] The embodiments of the present application provide a control method and device for the walking of a bipedal robot, which can solve the problem that when the bipedal robot walks on a slope, the center of mass of the robot is perpendicular to the ground, causing the center of gravity of the robot to seriously deviate from the support area, thereby causing the bipedal robot to be unable to walk stably.
[0004] In a first aspect, an embodiment of the present application provides a method for controlling a bipedal robot to walk, comprising:
[0005] Obtaining distance information between the center of mass of the biped robot and a preset foot key point, and obtaining initial center of mass position information; the number of the distance information is at least two;
[0006] Calculate the center of mass position offset based on the distance information and a preset calculation strategy;
[0007] Adjust the initial center of mass position information based on the center of mass position quantity to obtain target center of mass position information of the biped robot;
[0008] Based on the target center of mass position information and a preset inverse kinematics algorithm, target walking parameters of the bipedal robot are determined; the target walking parameters are used to control the walking of the bipedal robot.
[0009] Further, the preset foot key points include a left foot key point and a right foot key point; the distance information includes first distance information, second distance information, third distance information and fourth distance information; the first distance information is the distance information between the center of mass and the left foot key point in the X-axis direction, the second distance information is the distance information between the center of mass and the left foot key point in the Y-axis direction, the third distance information is the distance information between the center of mass and the right foot key point in the X-axis direction, and the fourth distance information is the distance information between the center of mass and the right foot key point in the Y-axis direction;
[0010] The calculating the center of mass position offset based on the distance information and a preset calculation strategy includes:
[0011] Determine a first center of mass position offset in the X-axis direction based on the first distance information and the third distance information;
[0012] Determine distance average information based on the second distance information and the fourth distance information; the distance average information includes a first distance average and a second distance average; the first distance average is an average value of distance information between the center of mass and the left foot key point in the Y-axis direction; the second distance average is an average value of distance information between the center of mass and the right foot key point in the Y-axis direction;
[0013] The second center of mass position offset in the Y-axis direction is determined based on the distance average value information and preset walking control parameters.
[0014] Further, the determining of the second center of mass position offset in the Y-axis direction based on the distance average value information and the preset walking control parameters includes:
[0015] Get current acceleration information;
[0016] Determine a Y-axis direction walking calculation coefficient based on the first distance average value and the second distance average value;
[0017] Based on the Y-axis direction walking calculation coefficient, the preset walking control parameter and the current acceleration information, the second center of mass position offset in the Y-axis direction is determined.
[0018] Furthermore, the distance information between the center of mass of the biped robot and the preset foot key points is obtained, including:
[0019] Obtaining current walking parameter information of the biped robot;
[0020] Based on the current walking parameter information, the preset connecting rod length information and the preset forward kinematics algorithm, the distance information between the center of mass and the preset foot key point is calculated.
[0021] Further, the determining the distance average value information based on the second distance information and the fourth distance information includes:
[0022] When the array length corresponding to the distance information is equal to the preset array length, average distance information is determined based on the distance information; the average distance information is an average of the second distance information and the fourth distance information.
[0023] Further, after determining the distance average information based on the distance information, the method further includes:
[0024] When the array length corresponding to the distance information is greater than the preset array length, obtaining the first target distance information and the second target distance information, and marking the first target distance information and the second target distance information as target distance information;
[0025] Distance information to be deleted is selected from the distance information based on a preset screening condition, and the distance information to be deleted is deleted, and updated distance information is obtained based on the target distance information.
[0026] Furthermore, the determining of target walking parameters of the biped robot based on the target center of mass position information and a preset inverse kinematics algorithm includes:
[0027] Obtaining current position information of the preset foot key points;
[0028] Based on the current position information, the target center of mass position information and the preset inverse kinematics algorithm, target walking joint angle information of the biped robot is determined.
[0029] In a second aspect, an embodiment of the present application provides a bipedal robot, comprising:
[0030] An acquisition unit, used to acquire distance information between the center of mass of the biped robot and a preset foot key point, and to acquire initial center of mass position information; the number of the distance information is at least two;
[0031] A calculation unit, used to calculate the displacement of the center of mass track position based on the distance information and a preset calculation strategy;
[0032] A first processing unit is used to adjust the initial center of mass position information based on the center of mass track position displacement to obtain the target center of mass position information of the biped robot;
[0033] The second processing unit is used to determine the target walking parameters of the bipedal robot based on the target center of mass position information and a preset inverse kinematics algorithm; the target walking parameters are used to control the walking of the bipedal robot.
[0034] Further, the preset foot key points include a left foot key point and a right foot key point; the distance information includes first distance information, second distance information, third distance information and fourth distance information; the first distance information is the distance information between the center of mass and the left foot key point in the X-axis direction, the second distance information is the distance information between the center of mass and the left foot key point in the Y-axis direction, the third distance information is the distance information between the center of mass and the right foot key point in the X-axis direction, and the fourth distance information is the distance information between the center of mass and the right foot key point in the Y-axis direction;
[0035] The computing unit comprises:
[0036] A first determining unit is used to determine a first centroid position offset in the X-axis direction based on the first distance information and the third distance information.
[0037] a second determining unit, configured to determine distance average information based on the second distance information and the fourth distance information; the distance average information includes a first distance average and a second distance average; the first distance average is an average value of distance information between the center of mass and the left foot key point in the Y-axis direction; the second distance average is an average value of distance information between the center of mass and the right foot key point in the Y-axis direction;
[0038] The third determining unit is used to determine the second center of mass position offset in the Y-axis direction based on the distance average information and the preset walking control parameters.
[0039] Further, the third determining unit is specifically configured to:
[0040] Get current acceleration information;
[0041] Determine a Y-axis direction walking calculation coefficient based on the first distance average value and the second distance average value;
[0042] Based on the Y-axis direction walking calculation coefficient, the preset walking control parameter and the current acceleration information, the second center of mass position offset in the Y-axis direction is determined.
[0043] Furthermore, the acquisition unit is specifically used to:
[0044] Obtaining current walking parameter information of the biped robot;
[0045] Based on the current walking parameter information, the preset connecting rod length information and the preset forward kinematics algorithm, the distance information between the center of mass and the preset foot key point is calculated.
[0046] Further,
[0047] The second determining unit is specifically configured to:
[0048] When the array length corresponding to the distance information is equal to the preset array length, average distance value information is determined based on the distance information; the average distance information value is an average value of the second distance information and the fourth distance information.
[0049] Furthermore, the first determining unit is further configured to:
[0050] When the array length corresponding to the distance information is greater than the preset array length, obtaining the first target distance information and the second target distance information, and marking the first target distance information and the second target distance information as target distance information;
[0051] Distance information to be deleted is selected from the distance information based on a preset screening condition, and the distance information to be deleted is deleted, and updated distance information is obtained based on the target distance information.
[0052] Furthermore, the second processing unit is specifically configured to:
[0053] Obtaining current position information of the preset foot key points;
[0054] Based on the current position information, the target center of mass position information and the preset inverse kinematics algorithm, target walking joint angle information of the biped robot is determined.
[0055] In a third aspect, an embodiment of the present application provides a bipedal robot, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the bipedal robot walking control method as described in the first aspect above is implemented.
[0056] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the control method for bipedal robot walking as described in the first aspect above is implemented.
[0057] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute the bipedal robot walking control method as described in the first aspect above.
[0058] In the embodiment of the present application, the distance information between the center of mass of the bipedal robot and the preset foot key points is obtained, and the initial center of mass position information is obtained; based on the distance information and the preset calculation strategy, the center of mass position offset is calculated; based on the center of mass position offset, the initial center of mass position information is adjusted to obtain the target center of mass position information of the bipedal robot; based on the target center of mass position information and the preset inverse kinematics algorithm, the target walking parameters of the bipedal robot are determined; the target walking parameters are used to control the walking of the bipedal robot. The above method adjusts the center of mass position of the bipedal robot to the middle of the two feet by obtaining the center of mass position offset, so that the robot can walk stably when going uphill. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 labor.
[0060] Figure 1 is a schematic flow chart of a method for controlling bipedal robot walking provided in the first embodiment of the present application;
[0061] Figure 2 is a schematic diagram of a bipedal robot in a standing state provided by the first embodiment of the present application;
[0062] Figure 3 is a schematic flow chart of the refinement of S101 in a biped robot walking control method provided in the first embodiment of the present application;
[0063] Figure 4 is a schematic flow chart of the refinement of S104 in a biped robot walking control method provided in the first embodiment of the present application;
[0064] Figure 5 is a schematic flow chart of another biped robot walking control method provided in the second embodiment of the present application;
[0065] Figure 6 is a schematic flow chart of the refinement of S203 in another biped robot walking control method provided in the second embodiment of the present application;
[0066] Figure 7 is a schematic flow chart of another biped robot walking control method provided in the third embodiment of the present application;
[0067] Figure 8 is a schematic diagram of a bipedal robot provided in the fourth embodiment of the present application;
[0068] Fig. 9 It is a schematic diagram of a bipedal robot provided in the fifth embodiment of the present application. DETAILED DESCRIPTION
[0069] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0070] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0071] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0072] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0073] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0074] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0075] See also Figure 1 , Figure 1 1 is a schematic flow chart of a bipedal robot walking control method provided by the first embodiment of the present application. In this embodiment, the bipedal robot walking control method is executed by the bipedal robot. Figure 1 The control method of the bipedal robot walking shown may include:
[0076] S101: Obtaining distance information between the center of mass of the biped robot and preset foot key points, and obtaining initial center of mass position information; the number of the distance information is at least two.
[0077] The biped robot obtains the distance information between the center of mass of the biped robot and the preset foot key points, as well as the initial center of mass position information. The center of mass is the mass center of a multi-mass system. If a force is applied to the center of mass, the system will move in the direction of the force and will not rotate. Among them, the center of mass of the biped robot can generally be preset according to the specific situation of the biped robot, such as Figure 2 As shown, Figure 2 The figure is a schematic diagram of a biped robot in a standing state. The moving trajectory can be determined based on the robot's destination, and thus the initial center of mass position information can be determined. However, during the movement of the biped robot, in order to achieve dynamic balance, the center of mass of the biped robot is always swinging left and right, which is not a stable trajectory. Therefore, in order to maintain the stability of the biped robot, the initial center of mass trajectory information needs to be adjusted.
[0078] Foot key points are preset in the biped robot, and the positions of the preset foot key points are on the left foot and the right foot of the biped robot. The biped robot obtains distance information between the center of mass and the preset foot key points. In the preset period, the biped robot is in a walking state, and the biped robot obtains multiple distance information, and the number of distance information is at least two.
[0079] Further, in order to more accurately obtain the distance information between the center of mass of the biped robot and the preset foot key points, the distance information between the center of mass of the biped robot and the preset foot key points in S101 includes S1011 to S1012, such as Figure 3 As shown, S1011 to S1012 are as follows:
[0080] S1011: Acquire current walking parameter information of the biped robot.
[0081] The biped robot obtains current walking parameter information of the biped robot, wherein the current walking parameter information may include joint angle information and posture angle information of the current walking, and the joint angle information and posture angle information may be obtained through the sensor of the biped robot.
[0082] S1012: Based on the current walking parameter information, the preset connection rod length information and the preset forward kinematics algorithm, calculate the distance information between the center of mass and the preset foot key point.
[0083] Robot kinematics includes forward kinematics and inverse kinematics. Forward kinematics is to calculate the position and posture of the robot's end given the robot's joint variables; inverse kinematics is to calculate all joint variables of the robot's corresponding position when the robot's end position and posture are known. A forward kinematics algorithm is preset in the bipedal robot. The preset forward kinematics algorithm can determine the position and posture of the robot's end effector relative to the reference coordinate system when the bipedal robot's rod geometry parameters and joint angle information are known. In this embodiment, the current walking parameter information includes the bipedal robot's joint angle information, and the preset connecting rod length information is the bipedal robot's rod geometry parameters. The bipedal robot calculates the distance information between the center of mass and the preset foot key points based on the current walking parameter information, the preset connecting rod length information and the preset forward kinematics algorithm.
[0084] S102: Calculate the center of mass position offset based on the distance information and a preset calculation strategy.
[0085] The biped robot pre-stores a preset calculation strategy, which is used to calculate the mass center position offset. The mass center position offset is used to adjust the initial mass center trajectory information so that the mass center is as close as possible to the center of the support area, thereby ensuring the stability of the biped robot. In this embodiment, the preset calculation strategy is not limited, as long as the mass center position offset can be calculated based on the distance information. The biped robot calculates the distance information through the preset calculation strategy to obtain the mass center position offset.
[0086] S103: Adjusting the initial center of mass position information based on the center of mass position offset to obtain target center of mass position information of the biped robot.
[0087] The bipedal robot obtains the center of mass position offset, adjusts the initial center of mass position information based on the center of mass position offset, and obtains the target center of mass position information of the bipedal robot. The target center of mass position information is the adjusted center of mass position information. The bipedal robot can adjust some current walking parameters based on the adjusted center of mass position information to maintain stability.
[0088] S104: Determine target walking parameters of the bipedal robot based on the target center of mass position information and a preset inverse kinematics algorithm; the target walking parameters are used to control the bipedal robot to walk.
[0089] Robot kinematics includes forward kinematics and inverse kinematics. Forward kinematics is to calculate the position and posture of the robot's end given the variables of each joint of the robot; inverse kinematics is to calculate all joint variables of the robot's corresponding position given the position and posture of the robot's end. The bipedal robot has a preset inverse kinematics algorithm. The preset inverse kinematics algorithm can determine the specific motion form of the robot when the position and posture of the bipedal robot are known, and the specific motion form can be reflected in the form of specific walking parameters. The bipedal robot determines the target walking parameters of the bipedal robot based on the target center of mass position information and the preset inverse kinematics algorithm, wherein the target walking parameters are used to control the walking of the bipedal robot.
[0090] Furthermore, in order to more accurately obtain the target walking parameters, S104 includes S1041 to S1043, such as Figure 4 As shown, S1041 to S1043 are as follows:
[0091] S1041: Obtain current position information of the preset foot key points.
[0092] The biped robot obtains current position information of preset foot key points, wherein the preset foot key points may include left foot key points and right foot key points. The current position information of the preset foot key points may be in the form of coordinates.
[0093] S1042: Determine the target walking joint angle information of the biped robot based on the current position information, the target center of mass position information and the preset inverse kinematics algorithm
[0094] Based on the current position information of the key points of the foot, the target center of mass position information and the preset inverse kinematics algorithm, the biped robot can calculate the target walking joint angle information of the biped robot, and the target walking joint angle information is used to control the walking of the biped robot. For example, the joint angle information of the two legs obtained by inverse kinematics calculation is θ l =[θ l1 θ l2 θ l3 θ l4 θ l5 θ l6 ] T With θ r =[θ r1 θ r2 θ r3 θ r4 θ r5 θ r6 ] T , thereby realizing the modification control of the robot's center of mass position.
[0095] In the embodiment of the present application, within a preset period, the distance information between the center of mass of the bipedal robot and the preset foot key points is obtained, and the initial center of mass position information is obtained; based on the distance information and the preset calculation strategy, the center of mass position offset is calculated; based on the center of mass position offset, the initial center of mass position information is adjusted to obtain the target center of mass position information of the bipedal robot; based on the target center of mass position information and the preset inverse kinematics algorithm, the target walking parameters of the bipedal robot are determined; the target walking parameters are used to control the walking of the bipedal robot. The above method adjusts the center of mass position of the bipedal robot to the middle of the two feet by obtaining the center of mass position offset, so that the robot can walk stably when going uphill.
[0096] See also Figure 5 , Figure 5 It is a schematic flow chart of another bipedal robot walking control method provided by the second embodiment of the present application. The executor of the bipedal robot walking control method in this embodiment is the bipedal robot. In order to obtain the center of mass position offset more accurately, the difference between this embodiment and the first embodiment lies in S202~S204, wherein S201 in this embodiment is the same as S101 in the first embodiment, S205~S206 in this embodiment are the same as S103~S104 in the first embodiment, and S202~S204 are further refinements of S102. Figure 5 As shown, S202 to S204 are specifically as follows:
[0097] S202: Determine a first center of mass position offset in the X-axis direction based on the first distance information and the third distance information.
[0098] In this embodiment, the preset foot key points include the left foot key points and the right foot key points, and the distance information includes the first distance information, the second distance information, the third distance information and the fourth distance information, the first distance information is the distance information between the center of mass and the left foot key point in the X-axis direction, the second distance information is the distance information between the center of mass and the left foot key point in the Y-axis direction, the third distance information is the distance information between the center of mass and the right foot key point in the X-axis direction, and the fourth distance information is the distance information between the center of mass and the right foot key point in the Y-axis direction. In this embodiment, the front of the robot is defined as the positive direction of the X-axis, and the left and right directions of the robot perpendicular to the X-axis are defined as the Y-axis.
[0099] The bipedal robot determines the first center of mass position offset in the X-axis direction based on the X-axis walking calculation coefficient, the preset walking control parameters and the current acceleration information. The bipedal robot determines the X-axis walking calculation coefficient based on the first distance information dLx and the third distance information dRx. For example, the X-axis walking calculation coefficient is dx, then dx=0.5×(dLx+dRx). The above formula is just an example of the method for obtaining the X-axis walking calculation coefficient, and is not limited to the above method to obtain the X-axis walking calculation coefficient. Below, the process of determining the second center of mass position offset in the X-axis direction based on the X-axis walking calculation coefficient, the preset walking control parameters and the current acceleration information is explained. Xacc refers to the acceleration information in the X-axis direction, kp and kd are the preset walking control parameters, Xvel is the target speed in the X-axis direction, Xvel0 is the initial speed in the X-axis direction at the current moment, DeltaX is the first center of mass position offset in the X-axis direction, and Xd is the initial center of mass position information, then:
[0100] Xacc=kp×(0-dx)+kd×(0-Xvel)
[0101] Xvel=Xvel0+Xacc×t
[0102] DeltaX=Xvel×t+0.5×Xacc×t
[0103] S203: Determine the distance average information based on the second distance information and the fourth distance information; the distance average information includes a first distance average and a second distance average; the first distance average is the average of the distance information between the center of mass and the left foot key point in the Y-axis direction; the second distance average is the average of the distance information between the center of mass and the right foot key point in the Y-axis direction.
[0104] In this embodiment, the biped robot obtains the second distance information and the fourth distance information within a gait cycle, that is, the data in the Y-axis direction is the data collected within the preset gait cycle. The second distance information and the fourth distance information of the biped robot determine the distance average information, and the distance average information includes the first distance average and the second distance average. The first distance average is the average of the distance information between the center of mass and the key point of the left foot in the Y-axis direction, and the second distance average is the average of the distance information between the center of mass and the key point of the right foot in the Y-axis direction. The distance information is averaged to obtain the distance average information, and the distance average information includes the first distance average and the second distance average. The first distance average can be recorded as dLy_avg, and the second distance average can be recorded as dRy_avg.
[0105] In order to improve the data quality of the acquired distance information and ensure that the amount of distance information is fixed, S203 may include: when the array length corresponding to the distance information is equal to the preset array length, determining the distance average value information based on the distance information; the distance information average value is the average value of the second distance information and the fourth distance information. In this embodiment, the distance information average value corresponding to the distance information is the average value of the second distance information and the fourth distance information, the second distance information is the distance information between the center of mass and the key point of the left foot in the Y-axis direction, and the fourth distance information is the distance information between the center of mass and the key point of the right foot in the Y-axis direction. The array length is preset in the bipedal robot, and the preset array length is determined according to the gait cycle of the bipedal robot. The data of the preset array length is the second distance information and the fourth distance information collected by the bipedal robot in one gait cycle. When the array length corresponding to the distance information is equal to the preset array length, the distance information does not need to be updated at this time, and the distance average value information is determined based on the distance information.
[0106] S204: Determine a second center of mass position offset in the Y-axis direction based on the distance average value information and preset walking control parameters.
[0107] The biped robot pre-stores preset walking control parameters, wherein the preset walking control parameters are controller parameters of the biped robot, and the preset walking control parameters are used to control walking of the biped robot. The biped robot determines the second center of mass position offset in the Y-axis direction based on the distance average information and the preset walking control parameters.
[0108] In order to more accurately obtain the centroid position offset, S203 may include S2031 to S2033, such as Figure 6 As shown, S2031 to S2033 are as follows:
[0109] S2031: Obtain current acceleration information.
[0110] The biped robot obtains current acceleration information, wherein the current acceleration information may include acceleration information in the Y-axis direction. The acceleration information in the Y-axis direction may be represented by Yacc.
[0111] S2032: Determine a Y-axis direction walking calculation coefficient based on the first distance average value and the second distance average value.
[0112] The biped robot determines the Y-axis walking calculation coefficient based on the first distance average value and the second distance average value. For example, the Y-axis walking calculation coefficient is dy, the first distance average value can be recorded as dLy_avg, and the second distance average value can be recorded as dRy_avg, then dy = 0.5 × (dLy_avg + dRy_avg). The above formula is just an example of the method for obtaining the Y-axis walking calculation coefficient, and is not limited to the above method to obtain the Y-axis walking calculation coefficient.
[0113] S2033: Determine the second center of mass position offset in the Y-axis direction based on the Y-axis direction walking calculation coefficient, the preset walking control parameter and the current acceleration information.
[0114] The biped robot determines the second center of mass position offset in the Y-axis direction based on the Y-axis walking calculation coefficient, the preset walking control parameters and the current acceleration information. The following is a description of the process of determining the second center of mass position offset in the Y-axis direction based on the Y-axis walking calculation coefficient, the preset walking control parameters and the current acceleration information. Yacc refers to the acceleration information in the Y-axis direction, kp and kd are the preset walking control parameters, Yvel is the target speed in the Y-axis direction, Yvel0 is the initial speed in the Y-axis direction at the current moment, DeltaY is the second center of mass position offset in the Y-axis direction, and Yd is the initial center of mass position information. Then:
[0115] Yacc=kp×(0-dy)+kd×(0-Yvel)
[0116] Yvel=Yvel0+Yacc×t
[0117] DeltaY=Yvel×t+0.5×Yacc×t
[0118] See also Figure 7 , Figure 7 This is a schematic flow chart of another bipedal robot walking control method provided in the third embodiment of the present application. In this embodiment, the executor of the bipedal robot walking control method is the bipedal robot. In order to improve the data quality of the acquired distance information and ensure that the amount of distance information is fixed, so as to more accurately acquire the center of mass position offset and improve the stability of the bipedal robot, the difference between this embodiment and the second embodiment lies in S303~S304. S301~S302 in this embodiment are the same as S201~S202 in the second embodiment, and S305~S307 in this embodiment are the same as S204~S206 in the second embodiment. S303~S304 can be executed after S302. Figure 7 As shown, S303-S304 are as follows:
[0119] S303: When the array length corresponding to the distance information is greater than the preset array length, obtain the target first distance information and the target second distance information, and mark the target first distance information and the target second distance information as target distance information.
[0120] When the biped robot detects that the array length corresponding to the distance information is greater than the preset array length, the first target distance information and the second target distance information are obtained, and the first target distance information and the second target distance information are marked as target distance information. The first target distance information and the second target distance information are new distance information data obtained after the distance information has been obtained. In order to ensure that the array length corresponding to the distance information is fixed, that is, to ensure that the distance information is data collected within a gait cycle, when new data is obtained, the earliest received data in the current distance information can be deleted, and then the new data can be added.
[0121] In this embodiment, the first target distance information is the distance information between the center of mass and the key point of the left foot in the Y-axis direction, and the second target distance information is the distance information between the center of mass and the key point of the right foot in the Y-axis direction. A preset threshold corresponding to the average value of the target distance information corresponding to the first target distance information and the second target distance information is preset in the bipedal robot. When it is detected that the average value of the target distance information corresponding to the first target distance information and the second target distance information is greater than or equal to the preset threshold, the first target distance information and the second target distance information are marked as target distance information.
[0122] S304: selecting distance information to be deleted from the distance information based on a preset screening condition, deleting the distance information to be deleted, and obtaining updated distance information based on the target distance information.
[0123] The biped robot selects the distance information to be deleted from the distance information based on the preset filtering conditions. The distance information to be deleted is the distance information to be deleted. The distance information with the earliest acquisition time can be marked as the distance information to be deleted. The biped robot deletes the distance information to be deleted, and then generates a new distance information based on the target distance information and the distance information other than the distance information to be deleted. For example, [a, b, c, d] is the distance information in the current cycle, and now the target distance information is collected as e. At this time, a will be deleted, and then the new distance information is [b, c, d, e].
[0124] It should be understood that the size of the serial numbers of the steps in the above embodiments 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.
[0125] See also Figure 8 , Figure 8 is a schematic diagram of a biped robot provided in the fourth embodiment of the present application. The units included are used to execute Figure 1 , Figure 3 to Figure 7 For details, please refer to the steps in the corresponding embodiment. Figure 1 , Figure 3 to Figure 7 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 8 , the biped robot 8 comprises:
[0126] An acquisition unit 810 is used to acquire distance information between the center of mass of the biped robot and a preset foot key point, and to acquire initial center of mass position information; the number of the distance information is at least two;
[0127] A calculation unit 820, configured to calculate a centroid position offset based on the distance information and a preset calculation strategy;
[0128] A first processing unit 830 is configured to adjust the initial center of mass position information based on the center of mass position offset to obtain target center of mass position information of the biped robot;
[0129] The second processing unit 840 is used to determine the target walking parameters of the biped robot based on the target center of mass position information and a preset inverse kinematics algorithm; the target walking parameters are used to control the walking of the biped robot.
[0130] Further, the preset foot key points include a left foot key point and a right foot key point; the distance information includes first distance information, second distance information, third distance information and fourth distance information; the first distance information is the distance information between the center of mass and the left foot key point in the X-axis direction, the second distance information is the distance information between the center of mass and the left foot key point in the Y-axis direction, the third distance information is the distance information between the center of mass and the right foot key point in the X-axis direction, and the fourth distance information is the distance information between the center of mass and the right foot key point in the Y-axis direction;
[0131] The computing unit 820 includes:
[0132] a first determining unit, configured to determine a first mass center position offset in an X-axis direction based on the first distance information and the third distance information;
[0133] a second determining unit, configured to determine distance average information based on the second distance information and the fourth distance information; the distance average information includes a first distance average and a second distance average; the first distance average is an average value of distance information between the center of mass and the left foot key point in the Y-axis direction; the second distance average is an average value of distance information between the center of mass and the right foot key point in the Y-axis direction;
[0134] The third determining unit is used to determine the second center of mass position offset in the Y-axis direction based on the distance average information and the preset walking control parameters.
[0135] Furthermore, the third determining unit is specifically configured to:
[0136] Get current acceleration information;
[0137] Determine a Y-axis direction walking calculation coefficient based on the first distance average value and the second distance average value;
[0138] Based on the Y-axis direction walking calculation coefficient, the preset walking control parameter and the current acceleration information, the second center of mass position offset in the Y-axis direction is determined.
[0139] Furthermore, the acquisition unit 810 is specifically configured to:
[0140] Obtaining current walking parameter information of the biped robot;
[0141] Based on the current walking parameter information, the preset connecting rod length information and the preset forward kinematics algorithm, the distance information between the center of mass and the preset foot key point is calculated.
[0142] Further,
[0143] The second determining unit is specifically configured to:
[0144] When the array length corresponding to the distance information is equal to the preset array length, average distance value information is determined based on the distance information; the average distance information value is an average value of the second distance information and the fourth distance information.
[0145] Furthermore, the first determining unit is further configured to:
[0146] When the array length corresponding to the distance information is greater than the preset array length, obtaining the first target distance information and the second target distance information, and marking the first target distance information and the second target distance information as target distance information;
[0147] Distance information to be deleted is selected from the distance information based on a preset screening condition, and the distance information to be deleted is deleted, and updated distance information is obtained based on the target distance information.
[0148] Further, the second processing unit 840 is specifically configured to:
[0149] Obtaining current position information of the preset foot key points;
[0150] Based on the current position information, the target center of mass position information and the preset inverse kinematics algorithm, target walking joint angle information of the biped robot is determined.
[0151] Fig. 9 Schematic diagram of a biped robot provided in the fifth embodiment of the present application. Fig. 9 As shown, the biped robot 9 of this embodiment includes: a processor 90, a memory 91, and a computer program 92 stored in the memory 91 and executable on the processor 90, such as a control program for the biped robot to walk. When the processor 90 executes the computer program 92, the steps in the above-mentioned embodiments of the control method for biped robot walking are implemented, such as Figure 1 Alternatively, when the processor 90 executes the computer program 92, the functions of each module / unit in the above-mentioned device embodiments are realized, for example, Figure 8 Functions of modules 810 to 840 are shown.
[0152] Exemplarily, the computer program 92 may be divided into one or more modules / units, which are stored in the memory 91 and executed by the processor 90 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 92 in the wireless node device 9. For example, the computer program 92 may be divided into an acquisition unit, a calculation unit, a first processing unit, and a second processing unit, and the specific functions of each unit are as follows:
[0153] An acquisition unit, used to acquire distance information between the center of mass of the biped robot and a preset foot key point, and to acquire initial center of mass position information; the number of the distance information is at least two;
[0154] A calculation unit, used to calculate the center of mass position offset based on the distance information and a preset calculation strategy;
[0155] A first processing unit, configured to adjust the initial center of mass position information based on the center of mass position offset to obtain target center of mass position information of the bipedal robot;
[0156] The second processing unit is used to determine the target walking parameters of the bipedal robot based on the target center of mass position information and a preset inverse kinematics algorithm; the target walking parameters are used to control the walking of the bipedal robot.
[0157] The biped robot may include, but is not limited to, a processor 90 and a memory 91. Those skilled in the art will appreciate that Fig. 9 It is only an example of the bipedal robot 9 and does not constitute a limitation of the bipedal robot 9. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the bipedal robot may also include input and output devices, network access devices, buses, etc.
[0158] The processor 90 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0159] The memory 91 may be an internal storage unit of the bipedal robot 9, such as a hard disk or memory of the bipedal robot 9. The memory 91 may also be an external storage device of the bipedal robot 9, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the bipedal robot 9. Furthermore, the memory 91 may include both an internal storage unit and an external storage device of the bipedal robot 9. The memory 91 is used to store the computer program and other programs and data required by the bipedal robot. The memory 91 may also be used to temporarily store data that has been output or is to be output.
[0160] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0161] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0162] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0163] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as 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 through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0164] 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.
[0165] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically 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 software functional units.
[0166] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. . Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0167] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for controlling a bipedal robot to walk, characterized in that: include: Obtain the distance information between the center of mass of the biped robot and the preset foot key points, and obtain the initial center of mass position information; The number of the distance information is at least two; Calculate the center of mass position offset based on the distance information and a preset calculation strategy; Adjust the initial center of mass position information based on the center of mass position offset to obtain target center of mass position information of the biped robot; Based on the target center of mass position information and a preset inverse kinematics algorithm, determining target walking parameters of the bipedal robot; the target walking parameters are used to control the bipedal robot to walk; The preset foot key points include a left foot key point and a right foot key point; the distance information includes first distance information, second distance information, third distance information and fourth distance information; the first distance information is the distance information between the center of mass and the left foot key point in the X-axis direction, the second distance information is the distance information between the center of mass and the left foot key point in the Y-axis direction, the third distance information is the distance information between the center of mass and the right foot key point in the X-axis direction, and the fourth distance information is the distance information between the center of mass and the right foot key point in the Y-axis direction; the front of the bipedal robot is the positive direction of the X-axis, and the left and right directions of the bipedal robot perpendicular to the X-axis are the Y-axis; The calculating the center of mass position offset based on the distance information and a preset calculation strategy includes: Determine a first center of mass position offset in the X-axis direction based on the first distance information and the third distance information; Determine distance average information based on the second distance information and the fourth distance information; the distance average information includes a first distance average and a second distance average; the first distance average is an average value of distance information between the center of mass and the left foot key point in the Y-axis direction; the second distance average is an average value of distance information between the center of mass and the right foot key point in the Y-axis direction; The second center of mass position offset in the Y-axis direction is determined based on the distance average value information and preset walking control parameters.
2. The biped robot walking control method according to claim 1, characterized in that: The determining of the second center of mass position offset position in the Y-axis direction based on the distance average value information and the preset walking control parameters includes: Get current acceleration information; Determine a Y-axis direction walking calculation coefficient based on the first distance average value and the second distance average value; Based on the Y-axis direction walking calculation coefficient, the preset walking control parameter and the current acceleration information, the second center of mass position offset in the Y-axis direction is determined.
3. The biped robot walking control method according to claim 1, characterized in that: Get the distance information between the center of mass of the biped robot and the preset foot key points, including: Acquiring current walking parameter information of the biped robot; Based on the current walking parameter information, the preset connecting rod length information and the preset forward kinematics algorithm, the distance information between the center of mass and the preset foot key point is calculated.
4. The biped robot walking control method according to claim 1, characterized in that: The determining the distance average value information based on the second distance information and the fourth distance information includes: When the array length corresponding to the distance information is equal to the preset array length, the average distance information is determined based on the distance information; the distance information average is the average of the second distance information and the fourth distance information; the data of the array length is the second distance information and the fourth distance information collected by the bipedal robot within a gait cycle.
5. The biped robot walking control method according to claim 4, characterized in that: After determining the distance average information based on the distance information, the method further includes: When the array length corresponding to the distance information is greater than the preset array length, obtaining the first target distance information and the second target distance information, and marking the first target distance information and the second target distance information as target distance information; Distance information to be deleted is selected from the distance information based on a preset screening condition, and the distance information to be deleted is deleted, and updated distance information is obtained based on the target distance information.
6. The biped robot walking control method according to claim 1, characterized in that: The step of determining the target walking parameters of the biped robot based on the target center of mass position information and a preset inverse kinematics algorithm includes: Obtaining current position information of the preset foot key points; Based on the current position information, the target center of mass position information and the preset inverse kinematics algorithm, target walking joint angle information of the biped robot is determined.
7. A bipedal robot, characterized in that: include: An acquisition unit, used to acquire the distance information between the center of mass of the biped robot and the preset foot key points, and to acquire the initial center of mass position information; The number of the distance information is at least two positions; A calculation unit, used to calculate the center of mass position offset based on the distance information and a preset calculation strategy; A first processing unit, configured to adjust the initial center of mass position information based on the center of mass position offset to obtain target center of mass position information of the bipedal robot; A second processing unit is used to determine target walking parameters of the bipedal robot based on the target center of mass position information and a preset inverse kinematics algorithm; the target walking parameters are used to control the bipedal robot to walk; The preset foot key points include a left foot key point and a right foot key point; the distance information includes first distance information, second distance information, third distance information and fourth distance information; the first distance information is the distance information between the center of mass and the left foot key point in the X-axis direction, the second distance information is the distance information between the center of mass and the left foot key point in the Y-axis direction, the third distance information is the distance information between the center of mass and the right foot key point in the X-axis direction, and the fourth distance information is the distance information between the center of mass and the right foot key point in the Y-axis direction; The front of the biped robot is the positive direction of the X-axis, and the left and right directions of the biped robot perpendicular to the X-axis are the Y-axis; the computing unit includes: a first determining unit, configured to determine a first mass center position offset in an X-axis direction based on the first distance information and the third distance information; a second determining unit, configured to determine distance average information based on the second distance information and the fourth distance information; the distance average information includes a first distance average and a second distance average; the first distance average is an average value of distance information between the center of mass and the left foot key point in the Y-axis direction; the second distance average is an average value of distance information between the center of mass and the right foot key point in the Y-axis direction; The third determining unit is used to determine the second center of mass position offset in the Y-axis direction based on the distance average information and the preset walking control parameters.
8. A bipedal robot comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
