Humanoid robot gait control method and device based on fall judgment

By analyzing the movement data of the humanoid robot, we can determine the state and cause of the fall, calculate the probability of falling, and adjust the gait and control volume. This solves the problem of the humanoid robot's poor anti-interference ability in complex environments and improves its stability and anti-fall ability. .

CN118226760BActive Publication Date: 2024-09-24BEIJING VISIONARY EMBODIED INTELLIGENCE RESEARCH INSTITUTE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410644753.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-24
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

Existing humanoid robots have poor anti-interference capabilities in complex environments and are prone to falling or walking unsteadily.

Method used

By obtaining the motion analysis data of the humanoid robot, the fall status and cause of the fall are determined, the fall probability is calculated, and the walking gait and control amount are adjusted according to the fall probability and cause, including cadence, stride length, leg lift height, and both legs. Foot width and foothold coordinates.

Benefits of technology

It improves the anti-interference ability of the humanoid robot to the external environment, reduces the probability of falling and walking instability, and makes up for the lack of hardware performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118226760B
    Figure CN118226760B
Patent Text Reader

Abstract

The present invention provides a humanoid robot gait control method and device based on fall judgment, which is applied to the field of robot control technology. The method comprises: obtaining motion analysis data of the humanoid robot; judging the fall state and fall cause of the humanoid robot according to the motion analysis data, wherein the fall state includes stable walking, critical fall and fall, and the fall cause includes environmental interference and hardware error; calculating the fall probability of the humanoid robot based on the fall state; and correcting the walking gait and control amount of the humanoid robot according to the fall probability and the fall cause.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of robot control technology, and in particular to a method and device for controlling the gait of a humanoid robot based on fall judgment. Background Art

[0002] Bipedal humanoid robots have flexible walking ability, can adapt to various terrains, and have strong obstacle-crossing ability. These advantages enable humanoid robots to better adapt to unknown environments and complete some tasks autonomously. However, current humanoid robots have certain hardware errors. When the environment is complex, humanoid robots have poor anti-interference ability and are prone to falling or unstable walking. Summary of the invention

[0003] The present invention provides a humanoid robot gait control method and device based on fall judgment, which are used to solve the problem in the prior art that the humanoid robot has poor anti-interference ability and is prone to fall or unstable walking.

[0004] The present invention provides a humanoid robot gait control method based on fall judgment, comprising: acquiring motion analysis data of the humanoid robot; judging the fall state and fall cause of the humanoid robot according to the motion analysis data, wherein the fall state includes stable walking, critical fall and fall, and the fall cause includes environmental interference and hardware error; calculating the fall probability of the humanoid robot based on the fall state; and correcting the walking gait and control amount of the humanoid robot according to the fall probability and the fall cause.

[0005] According to the present invention, a humanoid robot gait control method based on fall judgment is provided, wherein the fall probability of the humanoid robot is calculated based on the fall state, comprising: calculating the fall probability of the humanoid robot based on the accumulated amount of the warning signal at the previous moment; And calculation factors determine the cumulative amount of warning signals at the current moment , different falling states correspond to different calculation factors; according to the formula Calculating the probability of the humanoid robot falling ; in, Indicates the cumulative amount of early warning signals. Indicates the step size of the sliding window.

[0006] According to the present invention, a humanoid robot gait control method based on fall judgment is provided, wherein the accumulated amount of the warning signal at the last moment And calculation factors determine the cumulative amount of warning signals at the current moment ,include:

[0007] According to the formula Determine the cumulative amount of warning signals at the current moment;

[0008] in, Indicates that the falling state is stable walking, Indicates that the fall state is critical fall, Indicates that the fall state is fall, and the initial value of the accumulated warning signal is 0. Indicates the calculation factor corresponding to the falling state "stable walking", Indicates the calculation factor corresponding to the fall state "critical fall", Indicates the calculation factor corresponding to the falling state "falling".

[0009] According to the present invention, a humanoid robot gait control method based on fall judgment is provided, wherein the walking gait and control amount of the humanoid robot are corrected according to the fall probability and the fall cause, including: adjusting the gait parameters of the humanoid robot based on preset constants, and the gait parameters include at least one of the following: step frequency, stride, leg lift height and foot width.

[0010] According to the present invention, a method for controlling the gait of a humanoid robot based on fall judgment is provided, wherein the control amount includes the coordinates of a foothold; the walking gait and the control amount of the humanoid robot are corrected according to the fall probability and the fall cause, including: determining the adjusted foothold coordinates of the humanoid robot according to the following formula: :

[0011] ;

[0012] Wherein, x represents the forward direction of the humanoid robot, y represents the vertical direction of the humanoid robot, , and represents the body posture angle of the humanoid robot, , and represents the angular velocity of the humanoid robot, , and represents the desired posture angle of the humanoid robot, , , , , , , as well as represents the adjustment parameter, represents the coordinates of the desired landing point calculated according to the adjustment parameters.

[0013] According to the present invention, a humanoid robot gait control method based on fall judgment is provided, wherein the acquisition of motion analysis data of the humanoid robot comprises: collecting basic motion data of the humanoid robot, wherein the basic motion data includes but is not limited to: active joint position, passive joint position, joint speed, three-dimensional posture angle, center of mass position, center of mass speed, center of mass acceleration; performing a preprocessing operation on the basic motion data, wherein the preprocessing operation includes noise reduction processing and dimensionality reduction processing; and calculating motion analysis data of each basic motion data, wherein the motion analysis data includes at least one of the following: mean, variance, skewness, kurtosis, root mean square, root square amplitude, rectified mean value, peak-to-peak value, waveform factor, peak factor, and margin factor.

[0014] According to the present invention, a humanoid robot gait control method based on fall judgment is provided, wherein the walking gait and control amount of the humanoid robot are corrected according to the fall probability and the fall cause, including: determining a threshold interval corresponding to the fall probability; determining a correction scheme for the control amount according to the threshold interval and the fall cause; wherein one threshold interval corresponds to one correction scheme, and a greater fall probability corresponds to a greater adjustment amount of the corresponding correction scheme.

[0015] The present invention also provides a humanoid robot gait control device based on fall judgment, comprising: an acquisition module and a processing module; the acquisition module is used to acquire motion analysis data of the humanoid robot; the processing module is used to judge the fall state and fall cause of the humanoid robot according to the motion analysis data, the fall state includes stable walking, critical fall and fall, and the fall cause includes environmental interference and hardware error; the fall probability of the humanoid robot is calculated based on the fall state; the walking gait and control amount of the humanoid robot are corrected according to the fall probability and the fall cause.

[0016] According to the present invention, a humanoid robot gait control device based on fall judgment is provided, wherein the processing module is used to: And calculation factors determine the cumulative amount of warning signals at the current moment , different falling states correspond to different calculation factors; according to the formula Calculating the probability of the humanoid robot falling ; in, Indicates the cumulative amount of early warning signals. Indicates the step size of the sliding window.

[0017] According to the present invention, a humanoid robot gait control device based on fall judgment is provided, wherein the processing module is used for:

[0018] According to the formula Determine the cumulative amount of warning signals at the current moment;

[0019] in, Indicates that the falling state is stable walking, Indicates that the fall state is critical fall, Indicates that the fall state is fall, and the initial value of the accumulated warning signal is 0. Indicates the calculation factor corresponding to the falling state "stable walking", Indicates the calculation factor corresponding to the fall state "critical fall", Indicates the calculation factor corresponding to the falling state "falling".

[0020] According to the present invention, a humanoid robot gait control device based on fall judgment is provided, wherein the processing module is used to adjust the gait parameters of the humanoid robot based on preset constants, wherein the gait parameters include at least one of the following: step frequency, stride, leg lift height, and foot width.

[0021] According to the present invention, a humanoid robot gait control device based on fall judgment is provided, wherein the control quantity includes the coordinates of the landing point; the processing module is used to: determine the adjusted coordinates of the landing point of the humanoid robot according to the following formula: :

[0022] ;

[0023] Wherein, x represents the forward direction of the humanoid robot, y represents the vertical direction of the humanoid robot, , and represents the body posture angle of the humanoid robot, , and represents the angular velocity of the humanoid robot, , and represents the desired posture angle of the humanoid robot, , , , , , , as well as represents the adjustment parameter, represents the coordinates of the desired landing point calculated according to the adjustment parameters.

[0024] According to the present invention, a humanoid robot gait control device based on fall judgment is provided, and the acquisition module is used to: collect basic motion data of the humanoid robot, and the basic motion data includes but is not limited to: active joint position, passive joint position, joint speed, three-dimensional posture angle, center of mass position, center of mass speed, center of mass acceleration; perform preprocessing operations on the basic motion data, and the preprocessing operations include noise reduction processing and dimensionality reduction processing; calculate motion analysis data of each basic motion data, and the motion analysis data includes at least one of the following: mean, variance, skewness, kurtosis, root mean square, root amplitude, rectified average, peak-to-peak value, waveform factor, peak factor and margin factor.

[0025] According to the present invention, a humanoid robot gait control device based on fall judgment is provided, and the processing module is used to: determine the threshold interval corresponding to the fall probability; determine the correction scheme of the control amount according to the threshold interval and the fall cause; wherein, one threshold interval corresponds to one correction scheme, and the greater the fall probability, the greater the adjustment amount of the corresponding correction scheme, and the fall cause includes environmental interference and hardware error.

[0026] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the humanoid robot gait control method based on fall judgment as described in any one of the above are implemented.

[0027] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described methods for controlling gait of a humanoid robot based on fall judgment.

[0028] The humanoid robot gait control method and device based on fall judgment provided by the present invention can obtain the motion analysis data of the humanoid robot; judge the fall state and fall cause of the humanoid robot according to the motion analysis data, the fall state includes stable walking, critical fall and fall, and the fall cause includes environmental interference and hardware error; calculate the fall probability of the humanoid robot based on the fall state; and correct the walking gait and control amount of the humanoid robot according to the fall probability and the fall cause. Through this scheme, the fall state and fall cause of the humanoid robot can be judged according to the motion analysis data, and the fall probability can be calculated based on the fall state, and the walking gait and control amount of the humanoid robot can be corrected according to the fall probability and the fall cause. Since the walking gait of the humanoid robot can be corrected, the anti-interference ability of the humanoid robot to the external environment can be improved. Since the control amount of the humanoid robot can be corrected, the foothold calculation of the humanoid robot can be compensated, thereby making up for the shortcomings of the hardware performance of the humanoid robot. This reduces the probability of the humanoid robot falling or walking unsteadily. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 is a flow chart of a humanoid robot gait control method based on fall judgment provided by the present invention;

[0031] Figure 2 It is a structural schematic diagram of a humanoid robot gait control device based on fall judgment provided by the present invention;

[0032] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0035] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present invention is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0036] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", etc. are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. are not limiting the quantity and execution order.

[0037] The embodiments of the present invention describe some exemplary embodiments for the purpose of explanation. It should be understood that the present invention can be implemented in other ways that are not specifically shown in the drawings.

[0038] The above implementation is described in detail below with reference to specific embodiments and drawings.

[0039] like Figure 1 As shown, an embodiment of the present invention provides a humanoid robot gait control method, which can be applied to a humanoid robot gait control device. The humanoid robot gait control method may include S101-S103:

[0040] S101. A gait control device for a humanoid robot based on fall judgment obtains motion analysis data of the humanoid robot.

[0041] Optionally, the humanoid robot gait control device can first collect the basic motion data of the humanoid robot, and the basic motion data includes but is not limited to: active joint position, passive joint position, joint speed, three-dimensional posture angle, center of mass position, center of mass speed, center of mass acceleration; then pre-process the basic motion data, and the pre-processing operation includes noise reduction and dimensionality reduction; finally, calculate the motion analysis data of each basic motion data, and the motion analysis data includes at least one of the following: mean, variance, skewness, kurtosis, root mean square, root amplitude, rectified mean, peak-to-peak value, waveform factor, peak factor and margin factor.

[0042] Specifically, the motion state of the humanoid robot mainly includes stepping on the spot and walking. The gait control device of the humanoid robot can collect the basic motion data of the humanoid robot through sensors under the motion state of the humanoid robot. The basic motion data includes but is not limited to active joint positions, passive joint positions, joint speeds, three-dimensional attitude angles, center of mass positions, center of mass speeds, center of mass acceleration, etc. The sensors include but are not limited to joint encoders, inertial measurement devices, angle sensors, etc. Afterwards, the gait control device of the humanoid robot can perform noise reduction processing on the basic motion data by means of smoothing filtering, and then perform dimensionality reduction processing on the basic motion data after noise reduction processing, that is, select basic motion data with low measurement errors, such as joint positions, body IMU attitude angles, etc. Finally, use a sliding window to extract 11-dimensional statistical features of the data in the window, that is, calculate the motion analysis data of each selected basic motion data.

[0043] For example, taking the one-dimensional signal X in the basic motion data as an example, if the window size is n, the calculation process of the motion analysis data is as follows:

[0044] The formula for calculating the mean is: ;

[0045] The formula for calculating variance is: ;

[0046] The calculation formula for skewness is: ;

[0047] The calculation formula of kurtosis is: ;

[0048] The formula for calculating the root mean square is: ;

[0049] The formula for calculating square root is: ;

[0050] The formula for calculating the rectified average value is: ;

[0051] The formula for calculating the peak-to-peak value is: ;

[0052] The calculation formula for the shape factor is: ;

[0053] The formula for calculating the crest factor is: ;

[0054] The calculation formula of margin factor is: .

[0055] S102: The humanoid robot gait control device based on fall judgment judges the fall state and fall reason of the humanoid robot according to the motion analysis data.

[0056] The falling states include stable walking, critical falling and falling, and the falling causes include environmental interference and hardware errors.

[0057] Optionally, the humanoid robot gait control device can judge the falling state and the falling cause of the humanoid robot by a machine learning method, that is, the motion analysis data is input information, and the falling state and the falling cause are output information. The machine learning method includes but is not limited to support vector machines, long short-term memory networks, etc.

[0058] It should be noted that judging the falling state can be considered as an abnormality detection process for the motion analysis data of the humanoid robot, that is, a rough state recognition is obtained based on the characteristics of the abnormality occurring in the algorithm process and the persistence or instantaneity of the abnormality occurring. Considering the robustness of the method, the limitations of the data set, and the need for early warning, the humanoid robot gait control device can use machine learning methods including but not limited to support vector machines and long short-term memory networks to classify the motion analysis data for early warning, thereby obtaining a judgment result z, where the falling state corresponding to z=-1 is stable walking, the falling state corresponding to z=0 is critical falling, and the falling state corresponding to z=1 is falling.

[0059] For example, the machine learning method is a support vector machine. The input can select 17 11-dimensional features, one vs one method for multi-classification, linear kernel design classifier, and at least 10,000 sets of labeled data can be used as training data.

[0060] S103. The humanoid robot gait control device based on fall judgment calculates the fall probability of the humanoid robot based on the fall state.

[0061] Optionally, the humanoid robot gait control device can be configured to control the gait of the humanoid robot according to the accumulated amount of the warning signal at the previous moment. And calculation factors determine the cumulative amount of warning signals at the current moment , different falling states correspond to different calculation factors; according to the formula Calculating the probability of the humanoid robot falling ;in, Indicates the cumulative amount of warning signals. Indicates the step size of the sliding window.

[0062] Optionally, the humanoid robot gait control device is configured to control the gait of the humanoid robot according to the accumulated amount of the warning signal at the last moment. And calculation factors determine the cumulative amount of warning signals at the current moment , including: According to the formula Determine the cumulative amount of warning signals at the current moment; Among them, Indicates that the falling state is stable walking, Indicates that the fall state is critical fall, Indicates that the fall status is fall, and the initial value of the accumulated warning signal is 0.

[0063] Specifically, in order to minimize the impact of misjudgment on the results, a suitable function can be selected to fit the fall probability curve, and the continuous fall prediction probability can be output based on the cumulative fall judgment time to match the next adjustment strategy. is the cumulative amount of early warning signals at time t, the cumulative amount of early warning signals The initial value of is 0. After the humanoid robot gait control device determines the fall state each time, it can use the formula Determine the cumulative amount of warning signals at the current moment; where, Indicates the calculation factor corresponding to the falling state "stable walking", Indicates the calculation factor corresponding to the fall state "critical fall", Indicates the calculation factor corresponding to the falling state "falling", and are constants, and > , is the attenuation coefficient, and . Determine the cumulative amount of early warning signals Then, according to the formula Calculating the probability of a humanoid robot falling ,in, Indicates the cumulative amount of warning signals. Indicates the step size of the sliding window.

[0064] S104: The humanoid robot gait control device based on fall judgment corrects the walking gait and control amount of the humanoid robot according to the fall probability and the fall cause.

[0065] Optionally, the humanoid robot gait control device can adjust the gait parameters of the humanoid robot based on preset constants, and the gait parameters include at least one of the following: step frequency, stride, leg lift height and foot width.

[0066] Specifically, when it is determined that the cause of the fall is environmental interference, the gait control device of the humanoid robot can adjust the gait parameters of the humanoid robot by adjusting parameters such as step frequency, stride, leg lift height, and foot width.

[0067] For example, a humanoid robot has a single-step cycle of T, a stride of L, a leg-lifting height of H, and a width of d. When the gait parameters need to be adjusted, they can be transformed according to the following formula:

[0068] ;

[0069] ;

[0070] ;

[0071] ;

[0072] in, represents the adjusted single-step cycle, represents the adjusted stride length, Indicates the adjusted leg lift height. Indicates the adjusted width of the legs. It is a preset constant, that is, the compensation amount that can be adjusted according to hardware conditions and interference size.

[0073] Optionally, the control amount includes a foothold coordinate; and the step of correcting the walking gait and the control amount of the humanoid robot according to the fall probability and the fall cause includes:

[0074] Determine the adjusted landing point coordinates of the humanoid robot according to the following formula: :

[0075] ;

[0076] Wherein, x represents the forward direction of the humanoid robot, y represents the vertical direction of the humanoid robot, , and represents the body posture angle of the humanoid robot, , and represents the angular velocity of the humanoid robot, , and represents the desired posture angle of the humanoid robot, , , , , , , as well as represents the adjustment parameter, represents the coordinates of the desired landing point calculated according to the adjustment parameters.

[0077] Specifically, when it is determined that the cause of the fall is a hardware error, the gait control device of the humanoid robot can compensate for the calculation of the landing point coordinates by adjusting the control amount, thereby avoiding the error caused by the hardware as much as possible.

[0078] Assume that the forward direction of the humanoid robot is x, the vertical direction is y, and the body attitude angle is , and , the angular velocity is , and , the expected attitude angle is , and , the adjustment parameters are , , , , , , as well as , the coordinates of the expected landing point calculated according to the adjustment parameters are , then the adjusted landing point coordinates of the humanoid robot for:

[0079] .

[0080] Optionally, the humanoid robot gait control device can also determine a threshold interval corresponding to the fall probability; determine a correction plan for the control amount according to the threshold interval and the cause of the fall; wherein, one threshold interval corresponds to one correction plan, and the greater the fall probability, the greater the adjustment amount of the corresponding correction plan.

[0081] Specifically, the gait control device of the humanoid robot can use fuzzy logic to design specific strategies and parameters corresponding to the probability of falling to adjust the gait, so as to improve the adaptability of the strategy in different environments and different hardware.

[0082] For example, taking the correction of the control amount as an example, the humanoid robot gait control device can divide the probability of falling into 5 levels (as shown in Table 1), and determine the threshold interval corresponding to the probability of falling in S103, and then determine the correction scheme of the control amount according to the corresponding threshold interval and the cause of falling. As shown in Table 2, U1, U2, U3, U4 and U5 represent 5 sets of preset correction schemes.

[0083] Table 1

[0084]

[0085] Table 2

[0086]

[0087] In the embodiment of the present invention, the falling state and the cause of the humanoid robot can be determined according to the motion analysis data, and the probability of falling can be calculated based on the falling state, and the walking gait and control amount of the humanoid robot can be corrected according to the probability of falling and the cause of falling. Since the walking gait of the humanoid robot can be corrected, the anti-interference ability of the humanoid robot to the external environment can be improved, and since the control amount of the humanoid robot can be corrected, the foothold calculation of the humanoid robot can be compensated, thereby making up for the lack of hardware performance of the humanoid robot. In this way, the probability of the humanoid robot falling or walking unsteadily is reduced.

[0088] The above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the method. In order to achieve the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed in this article, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 exceed the scope of the present invention.

[0089] The humanoid robot gait control method based on fall judgment provided in the embodiment of the present invention can be executed by a humanoid robot gait control device based on fall judgment, or a control module for humanoid robot gait control in the humanoid robot gait control device based on fall judgment. In the embodiment of the present invention, the humanoid robot gait control method based on fall judgment is executed by a humanoid robot gait control device based on fall judgment as an example to illustrate the humanoid robot gait control device based on fall judgment provided in the embodiment of the present invention.

[0090] It should be noted that the embodiment of the present invention can divide the functional modules of the humanoid robot gait control device based on fall judgment according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present invention is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0091] like Figure 2 As shown, an embodiment of the present invention provides a humanoid robot gait control device 200 based on fall judgment. The humanoid robot gait control device 200 based on fall judgment includes: an acquisition module 201 and a processing module 202. The acquisition module 201 is used to acquire motion analysis data of the humanoid robot; the processing module 202 is used to determine the fall state and fall cause of the humanoid robot according to the motion analysis data, the fall state includes stable walking, critical fall and fall, and the fall cause includes environmental interference and hardware error; the fall probability of the humanoid robot is calculated based on the fall state; and the walking gait and control amount of the humanoid robot are corrected according to the fall probability and the fall cause.

[0092] Optionally, the processing module 202 is used to: And calculation factors determine the cumulative amount of warning signals at the current moment , different falling states correspond to different calculation factors; according to the formula Calculating the probability of the humanoid robot falling ; in, Indicates the cumulative amount of warning signals. Indicates the step size of the sliding window.

[0093] Optionally, the processing module 202 is used to:

[0094] According to the formula Determine the cumulative amount of warning signals at the current moment;

[0095] in, Indicates that the falling state is stable walking, Indicates that the fall state is critical fall, Indicates that the fall state is fall, and the initial value of the accumulated warning signal is 0. Indicates the calculation factor corresponding to the falling state "stable walking", Indicates the calculation factor corresponding to the fall state "critical fall", Indicates the calculation factor corresponding to the falling state "falling".

[0096] Optionally, the processing module 202 is used to adjust the gait parameters of the humanoid robot based on preset constants, and the gait parameters include at least one of the following: step frequency, stride, leg lift height and foot width.

[0097] Optionally, the control amount includes the coordinates of the foothold; the processing module 202 is used to: determine the adjusted coordinates of the foothold of the humanoid robot according to the following formula: :

[0098] ;

[0099] Wherein, x represents the forward direction of the humanoid robot, y represents the vertical direction of the humanoid robot, , and represents the body posture angle of the humanoid robot, , and represents the angular velocity of the humanoid robot, , and represents the desired posture angle of the humanoid robot, , , , , , , as well as represents the adjustment parameter, represents the coordinates of the desired landing point calculated according to the adjustment parameters.

[0100] Optionally, the acquisition module 201 is used to: collect basic motion data of the humanoid robot, the basic motion data including but not limited to: active joint position, passive joint position, joint velocity, three-dimensional posture angle, center of mass position, center of mass velocity, center of mass acceleration; perform preprocessing operations on the basic motion data, the preprocessing operations including noise reduction and dimensionality reduction; calculate motion analysis data for each basic motion data, the motion analysis data including at least one of the following: mean, variance, skewness, kurtosis, root mean square, root amplitude, rectified mean, peak-to-peak value, waveform factor, peak factor and margin factor.

[0101] Optionally, the processing module 202 is used to: determine a threshold interval corresponding to the fall probability; determine a correction scheme for the control amount according to the threshold interval and the cause of the fall; wherein one threshold interval corresponds to one correction scheme, and the greater the fall probability, the greater the adjustment amount of the corresponding correction scheme.

[0102] In the embodiment of the present invention, the falling state and the cause of the humanoid robot can be determined according to the motion analysis data, and the probability of falling can be calculated based on the falling state, and the walking gait and control amount of the humanoid robot can be corrected according to the probability of falling and the cause of falling. Since the walking gait of the humanoid robot can be corrected, the anti-interference ability of the humanoid robot to the external environment can be improved, and since the control amount of the humanoid robot can be corrected, the foothold calculation of the humanoid robot can be compensated, thereby making up for the lack of hardware performance of the humanoid robot. In this way, the probability of the humanoid robot falling or walking unsteadily is reduced.

[0103] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the gait control method of the humanoid robot, the method comprising: obtaining motion analysis data of the humanoid robot; judging the fall state and the fall cause of the humanoid robot according to the motion analysis data, the fall state including stable walking, critical fall and fall, the fall cause including environmental interference and hardware error; calculating the fall probability of the humanoid robot based on the fall state; and correcting the walking gait and control amount of the humanoid robot according to the fall probability and the fall cause.

[0104] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0105] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the humanoid robot gait control method provided by the above-mentioned methods, and the method includes: obtaining motion analysis data of the humanoid robot; judging the fall state and the cause of the fall of the humanoid robot according to the motion analysis data, the fall state including stable walking, critical fall and fall, and the cause of the fall including environmental interference and hardware error; calculating the fall probability of the humanoid robot based on the fall state; and correcting the walking gait and control amount of the humanoid robot according to the fall probability and the fall cause.

[0106] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned humanoid robot gait control method, the method comprising: obtaining motion analysis data of the humanoid robot; judging the falling state and the cause of the falling of the humanoid robot according to the motion analysis data, the falling state including stable walking, critical falling and falling, and the cause of the falling including environmental interference and hardware error; calculating the falling probability of the humanoid robot based on the falling state; and correcting the walking gait and control amount of the humanoid robot according to the falling probability and the falling cause.

[0107] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these 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 invention.

Claims

1. A humanoid robot gait control method based on fall detection, characterized in that: include: Obtain motion analysis data of humanoid robots; Determining a falling state and a falling cause of the humanoid robot according to the motion analysis data, wherein the falling state includes stable walking, critical falling and falling, and the falling cause includes environmental interference and hardware error; Calculating a falling probability of the humanoid robot based on the falling state; Correcting the walking gait and control amount of the humanoid robot according to the fall probability and the fall cause; The calculating the falling probability of the humanoid robot based on the falling state includes: According to the cumulative amount of warning signals at the last moment And calculation factors determine the cumulative amount of warning signals at the current moment ,Different falling states correspond to different calculation factors; According to the formula Calculating the probability of the humanoid robot falling ; in, Indicates the cumulative amount of early warning signals. Indicates the step size of the sliding window; The control amount includes the coordinates of the landing point; and the walking gait and the control amount of the humanoid robot are corrected according to the probability of falling and the cause of falling, including: Determine the adjusted landing point coordinates of the humanoid robot according to the following formula: : ; Wherein, x represents the forward direction of the humanoid robot, y represents the vertical direction of the humanoid robot, , and represents the body posture angle of the humanoid robot, , and represents the angular velocity of the humanoid robot, , and represents the desired posture angle of the humanoid robot, , , , , , , as well as represents the adjustment parameter, represents the coordinates of the desired landing point calculated according to the adjustment parameters.

2. The humanoid robot gait control method based on fall detection according to claim 1, characterized in that: The cumulative amount of the warning signal at the last moment And calculation factors determine the cumulative amount of warning signals at the current moment ,include: According to the formula Determine the cumulative amount of warning signals at the current moment; in, Indicates that the falling state is stable walking, Indicates that the fall state is critical fall, Indicates that the fall state is fall, and the initial value of the accumulated warning signal is 0. Indicates the calculation factor corresponding to the falling state "stable walking", Indicates the calculation factor corresponding to the fall state "critical fall", Indicates the calculation factor corresponding to the fall state "fall".

3. The humanoid robot gait control method based on fall detection according to claim 1, characterized in that: The step of correcting the walking gait and control amount of the humanoid robot according to the probability of falling and the cause of falling includes: The gait parameters of the humanoid robot are adjusted based on preset constants, wherein the gait parameters include at least one of the following: step frequency, stride, leg lift height, and foot width.

4. The humanoid robot gait control method based on fall detection according to claim 1, characterized in that: The step of obtaining motion analysis data of the humanoid robot comprises: Collecting basic motion data of the humanoid robot, the basic motion data including but not limited to: active joint position, passive joint position, joint velocity, three-dimensional posture angle, center of mass position, center of mass velocity, and center of mass acceleration; Performing a preprocessing operation on the basic motion data, wherein the preprocessing operation includes noise reduction processing and dimensionality reduction processing; Motion analysis data of each basic motion data is calculated, and the motion analysis data includes at least one of the following: mean, variance, skewness, kurtosis, root mean square, root square amplitude, rectified mean, peak-to-peak value, waveform factor, peak factor and margin factor.

5. The humanoid robot gait control method based on fall detection according to any one of claims 1 to 4, characterized in that: The step of correcting the walking gait and control amount of the humanoid robot according to the probability of falling and the cause of falling includes: Determine a threshold interval corresponding to the fall probability; Determining a correction scheme for the control amount according to the threshold interval and the cause of the fall; Among them, one threshold interval corresponds to one correction plan, and the greater the probability of falling, the greater the adjustment amount of the corresponding correction plan.

6. A humanoid robot gait control device based on fall detection, characterized in that: include: Acquisition module and processing module; The acquisition module is used to acquire motion analysis data of the humanoid robot; The processing module is used to determine the falling state and the falling cause of the humanoid robot according to the motion analysis data, the falling state includes stable walking, critical falling and falling, and the falling cause includes environmental interference and hardware error; calculate the falling probability of the humanoid robot based on the falling state; and modify the walking gait and control amount of the humanoid robot according to the falling probability and the falling cause; The processing module is used for: According to the cumulative amount of warning signals at the last moment And calculation factors determine the cumulative amount of warning signals at the current moment ,Different falling states correspond to different calculation factors; According to the formula Calculating the probability of the humanoid robot falling ; in, Indicates the cumulative amount of early warning signals. Indicates the step size of the sliding window; The control amount includes the coordinates of the landing point; the processing module is used to: Determine the adjusted landing point coordinates of the humanoid robot according to the following formula: : ; Wherein, x represents the forward direction of the humanoid robot, y represents the vertical direction of the humanoid robot, , and represents the body posture angle of the humanoid robot, , and represents the angular velocity of the humanoid robot, , and represents the desired posture angle of the humanoid robot, , , , , , , as well as represents the adjustment parameter, represents the coordinates of the desired landing point calculated according to the adjustment parameters.

7. The humanoid robot gait control device based on fall detection according to claim 6, characterized in that: The processing module is used for: According to the formula Determine the cumulative amount of warning signals at the current moment; in, Indicates that the falling state is stable walking, Indicates that the fall state is critical fall, Indicates that the fall state is fall, and the initial value of the accumulated warning signal is 0. Indicates the calculation factor corresponding to the falling state "stable walking", Indicates the calculation factor corresponding to the fall state "critical fall", Indicates the calculation factor corresponding to the fall state "fall".