Gait control method, legged robot and computer-readable storage medium
By controlling the gait of the foot robot through preset gait strategy and corresponding relationship data, the gait problem of four-legged robots is solved, and the effect of reducing energy consumption and extending battery life is achieved.
Patent Information
- Application Number
- CN202111222013.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-20
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2041-10-20
AI Technical Summary
Because the legs support the body to exercise more energy and have load capacity limitations, the four-legged robot cannot install a battery with a larger capacity, resulting in serious battery life problems.
The target gait of the target speed value is determined by the preset gait strategy, and the foot-type robot movement is controlled using the corresponding relationship data to make the energy consumption value less than or equal to the energy consumption threshold, thereby reducing energy consumption by switching gait.
It realizes that while ensuring the movement speed, reduces the energy consumption of foot robots and extends the battery life.
Smart Images

Figure CN113848967B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a gait control method, a footed robot and a computer-readable storage medium. Background Art
[0002] With the development of science and technology and the continuous progress of robotics, various robots have gradually appeared in human life to help humans complete specific tasks. As a type of legged robot, quadruped robots have the ability to cross obstacles that wheeled robots lack, while simplifying the complex balance control principles of bipedal robots. They are currently one of the robots that are most easily integrated into human daily life.
[0003] For quadruped robots, using legs to support body movement consumes more energy than wheeled robots. However, quadruped robots have their own carrying capacity limitations and cannot be equipped with larger capacity batteries, making the battery life problem of quadruped robots particularly obvious. Summary of the invention
[0004] The invention provides a gait control method, a foot-type robot and a computer-readable storage medium.
[0005] An embodiment of the present invention provides a gait control method for a legged robot, wherein the gait of the legged robot includes at least two preset gaits, and under the preset gaits, the energy consumption value and the speed value of the legged robot have corresponding relationship data, and the gait control method includes:
[0006] Determine a target speed value of the legged robot, and determine a target gait corresponding to the target speed value according to the target speed value and a gait strategy, wherein the gait strategy is determined according to corresponding relationship data of each of the preset gaits, and an energy consumption value of the legged robot in the target gait is less than or equal to an energy consumption threshold;
[0007] The legged robot is controlled to move according to the target speed value and the target gait.
[0008] The above-mentioned gait control method determines the target gait corresponding to the target speed value through a preset gait strategy, so that the legged robot can be controlled to move at the target speed value and the corresponding target gait, so that the generated energy consumption value is within the allowable range, thereby reducing energy consumption by switching gaits, which is beneficial to increasing the endurance time of the legged robot.
[0009] In some embodiments, the at least two preset gaits include a first gait and a second gait, the first gait and the second gait are adjacent, and the gait control method includes:
[0010] Determine an intersection point between the corresponding relationship data of the first gait and the corresponding relationship data of the second gait, and when the footed robot moves at a crossover speed value corresponding to the intersection point, an energy consumption value corresponding to the first gait and an energy consumption value corresponding to the second gait are the same;
[0011] When the current speed value is less than the cross speed value, determining to control the movement of the legged robot with the first step;
[0012] When the current speed value is greater than the cross speed value, determining to control the movement of the footed robot with the second gait;
[0013] The gait strategy is determined according to the current speed value, the first gait and the second gait.
[0014] In some embodiments, each of the preset gaits has at least two gait cycles, and different gait cycles have corresponding relationship data between different energy consumption values and speed values. The at least two preset gaits include a first gait and a second gait, and the first gait and the second gait are adjacent. The first gait has a first gait cycle and a second gait cycle, and the second gait has a third gait cycle and a fourth gait cycle. The gait control method includes:
[0015] Determine a first intersection point between the corresponding relationship data of the first gait in the first gait period and the corresponding relationship data of the second gait in the third gait period, and when the footed robot moves at a first intersection speed value corresponding to the first intersection point, an energy consumption value corresponding to the first gait and an energy consumption value corresponding to the second gait are the same;
[0016] Determine a second intersection point between the corresponding relationship data of the first gait in the second gait cycle and the corresponding relationship data of the second gait in the fourth gait cycle, and when the footed robot moves at a second cross speed value corresponding to the second intersection point, the energy consumption value corresponding to the first gait is the same as the energy consumption value corresponding to the second gait;
[0017] determining an adaptation speed interval according to the first cross speed value, wherein the first cross speed value and the second cross speed value are within the adaptation speed interval;
[0018] When the current speed value is within the adaptation speed interval and is less than the second cross speed value, determining to control the movement of the footed robot with the first gait corresponding to the second gait cycle;
[0019] When the current speed value is within the adaptation speed interval and greater than the second cross-speed value, determining to control the movement of the footed robot with the second gait corresponding to the fourth gait cycle;
[0020] The gait strategy is determined according to the current speed value, the first gait and the second gait.
[0021] In some embodiments, the gait control method comprises:
[0022] When the current speed value is outside the adaptive speed range and is less than the second cross speed value, determining to control the movement of the legged robot with the first posture corresponding to the first posture cycle;
[0023] When the current speed value is outside the adaptation speed interval and is greater than the second cross-speed value, it is determined to control the movement of the footed robot with the second gait corresponding to the third gait cycle.
[0024] In some embodiments, the first gait cycle is a preferred gait cycle of the first gait, the third gait cycle is a preferred gait cycle of the second gait, the first gait cycle is greater than the second gait cycle, the third gait cycle is greater than the fourth gait cycle, and the gait control method includes:
[0025] The preferred gait cycle corresponding to the preset gait is screened out according to the preferred energy consumption value interval corresponding to each preset gait and the corresponding relationship data between the energy consumption value and the speed value.
[0026] An embodiment of the present invention provides a legged robot, wherein the gait of the legged robot includes at least two preset gaits, and under the preset gaits, the energy consumption value and the speed value of the legged robot have corresponding relationship data, and the legged robot includes a control module, and the control module is used to:
[0027] Determine a target speed value of the legged robot, and determine a target gait corresponding to the target speed value according to the target speed value and a gait strategy, wherein the gait strategy is determined according to corresponding relationship data of each of the preset gaits, and an energy consumption value of the legged robot in the target gait is less than or equal to an energy consumption threshold;
[0028] The legged robot is controlled to move according to the target speed value and the target gait.
[0029] The above-mentioned legged robot determines the target gait corresponding to the target speed value through a preset gait strategy, so that the legged robot can be controlled to move at the target speed value and the corresponding target gait, so that the generated energy consumption value is within an allowable range, thereby reducing energy consumption by switching gaits, which is beneficial to increasing the endurance time of the legged robot.
[0030] In some embodiments, the at least two preset gaits include a first gait and a second gait, the first gait and the second gait are adjacent, and the control module is used to:
[0031] Determine an intersection point between the corresponding relationship data of the first gait and the corresponding relationship data of the second gait, and when the footed robot moves at a crossover speed value corresponding to the intersection point, an energy consumption value corresponding to the first gait and an energy consumption value corresponding to the second gait are the same;
[0032] When the current speed value is less than the cross speed value, determining to control the movement of the legged robot with the first step;
[0033] When the current speed value is greater than the cross speed value, determining to control the movement of the footed robot with the second gait;
[0034] The gait strategy is determined according to the current speed value, the first gait and the second gait.
[0035] In some embodiments, each of the preset gaits has at least two gait cycles, and different gait cycles have different corresponding relationship data between energy consumption values and speed values. The at least two preset gaits include a first gait and a second gait, and the first gait and the second gait are adjacent. The first gait has a first gait cycle and a second gait cycle, and the second gait has a third gait cycle and a fourth gait cycle. The control module is used to:
[0036] Determine a first intersection point between the corresponding relationship data of the first gait in the first gait period and the corresponding relationship data of the second gait in the third gait period, and when the footed robot moves at a first intersection speed value corresponding to the first intersection point, an energy consumption value corresponding to the first gait and an energy consumption value corresponding to the second gait are the same;
[0037] Determine a second intersection point between the corresponding relationship data of the first gait in the second gait cycle and the corresponding relationship data of the second gait in the fourth gait cycle, and when the footed robot moves at a second cross speed value corresponding to the second intersection point, the energy consumption value corresponding to the first gait is the same as the energy consumption value corresponding to the second gait;
[0038] determining an adaptation speed interval according to the first cross speed value, wherein the first cross speed value and the second cross speed value are within the adaptation speed interval;
[0039] When the current speed value is within the adaptation speed interval and is less than the second cross speed value, determining to control the movement of the footed robot with the first gait corresponding to the second gait cycle;
[0040] When the current speed value is within the adaptation speed interval and greater than the second cross-speed value, determining to control the movement of the footed robot with the second gait corresponding to the fourth gait cycle;
[0041] The gait strategy is determined according to the current speed value, the first gait and the second gait.
[0042] In some embodiments, the control module is used to:
[0043] When the current speed value is outside the adaptive speed range and is less than the second cross speed value, determining to control the movement of the legged robot with the first posture corresponding to the first posture cycle;
[0044] When the current speed value is outside the adaptation speed interval and is greater than the second cross-speed value, it is determined to control the movement of the footed robot with the second gait corresponding to the third gait cycle.
[0045] In some embodiments, the first gait cycle is a preferred gait cycle of the first gait, the third gait cycle is a preferred gait cycle of the second gait, the first gait cycle is greater than the second gait cycle, the third gait cycle is greater than the fourth gait cycle, and the control module is used to:
[0046] The preferred gait cycle corresponding to the preset gait is screened out according to the preferred energy consumption value interval corresponding to each preset gait and the corresponding relationship data between the energy consumption value and the speed value.
[0047] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the gait control method described in the above embodiment is implemented.
[0048] The above-mentioned computer-readable storage medium determines the target gait corresponding to the target speed value through a preset gait strategy, so that the legged robot can be controlled to move at the target speed value and the corresponding target gait, so that the generated energy consumption value is within an allowable range, thereby reducing energy consumption by switching gaits, which is beneficial to increasing the endurance time of the legged robot.
[0049] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0051] Figure 1 is a schematic diagram of the hardware structure of a legged robot according to an embodiment of the present invention;
[0052] Figure 2 is a schematic structural diagram of a legged robot according to an embodiment of the present invention;
[0053] Figure 3 is a flow chart of a gait control method according to an embodiment of the present invention;
[0054] Figure 4 It is a data schematic diagram of the corresponding relationship between the energy consumption value and the speed value of the legged robot according to the embodiment of the present invention;
[0055] Figure 5 is another flow chart of a gait control method according to an embodiment of the present invention;
[0056] Figure 6 is another data schematic diagram of the corresponding relationship between the energy consumption value and the speed value of the legged robot according to the embodiment of the present invention;
[0057] Figure 7 is another flow chart of the gait control method according to an embodiment of the present invention;
[0058] Figure 8 It is a schematic diagram of corresponding relationship data of the same preset gait in multiple gait cycles of the gait control method according to the embodiment of the present invention.
[0059] Description of main component symbols:
[0060] Legged robot 100, mechanical unit 101, drive board 1011, motor 1012, mechanical structure 1013, body 1014, leg 1015, foot 1016, communication unit 102, sensor unit 103, interface unit 104, storage unit 105, display unit 106, input unit 107, touch panel 1071, input device 1072, touch detection device 1073, touch controller 1074, audio output unit 108, control module 110, power supply 111. DETAILED DESCRIPTION
[0061] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0062] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0063] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection. It can be a mechanical connection or an electrical connection. It can be directly connected or indirectly connected through an intermediate medium. It can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0064] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0065] The disclosure below provides many different embodiments or examples to realize different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplicity and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the present invention provides various specific examples of processes and materials, but those of ordinary skill in the art can be aware of the application of other processes and / or the use of other materials.
[0066] See also Figure 1 and Figure 2 , Figure 1 Schematic diagram of the hardware structure of the legged robot 100 according to some embodiments of the present invention. Figure 2 Detailed structural diagram of a legged robot 100 according to some embodiments of the present invention. Figure 1 In the illustrated embodiment, the legged robot 100 includes a mechanical unit 101, a communication unit 102, a sensor unit 103, an interface unit 104, a storage unit 105, a control module 110, and a power supply 111. The various components of the legged robot 100 can be connected in any manner, including wired or wireless connections. Those skilled in the art will appreciate that Figure 1 The specific structure of the legged robot 100 shown in the figure does not constitute a limitation of the legged robot 100. The legged robot 100 may include more or fewer components than shown in the figure. Some components are not essential components of the legged robot 100 and can be omitted or combined as needed without changing the essence of the invention.
[0067] Combine the following Figure 1 and Figure 2 The various components of the legged robot 100 are introduced in detail:
[0068] The mechanical unit 101 is the hardware of the legged robot 100. Figure 1 As shown, the mechanical unit 101 may include a driving plate 1011, a motor 1012, and a mechanical structure 1013. Figure 2As shown, the mechanical structure 1013 may include a body 1014, extendable legs 1015, and a foot 1016. In other embodiments, the mechanical structure 1013 may also include an extendable mechanical arm, a rotatable head structure, a swingable tail structure, a load-bearing structure, a saddle structure, a camera structure, etc. It should be noted that each component module of the mechanical unit 101 may be one or more, and may be arranged according to specific circumstances. For example, there may be four legs 1015, and each leg 1015 may be configured with three motors 1012, and the corresponding motors 1012 are 12.
[0069] The communication unit 102 can be used to receive and send signals, and can also communicate with the network and other devices, for example, after receiving the instruction information sent by the remote control or other legged robot 100 to move in a specific direction at a specific speed according to a specific gait, the communication unit 102 is transmitted to the control module 110 for processing. The communication unit 102 includes a WiFi module, a 4G module, a 5G module, a Bluetooth module, an infrared module, etc.
[0070] The sensing unit 103 is used to obtain information data about the environment around the legged robot 100 and to monitor parameter data of each component inside the legged robot 100, and send the information data to the control module 110. The sensing unit 103 includes a variety of sensors, such as sensors for obtaining information about the surrounding environment: laser radar (for long-range object detection, distance determination and / or speed value determination), millimeter wave radar (for short-range object detection, distance determination and / or speed value determination), camera, infrared camera, global navigation satellite system (GNSS, Global Navigation Satellite System), etc. For example, sensors for monitoring each component inside the legged robot 100: inertial measurement unit (IMU, Inertial Measurement Unit) (for measuring the value of velocity value, acceleration value and angular velocity value), sole sensor (for monitoring the position of the sole force point, sole posture, ground contact force size and direction), temperature sensor (for detecting component temperature). As for other sensors such as load sensor, touch sensor, motor angle sensor, torque sensor, etc. that can be configured for the legged robot 100, they will not be described here.
[0071] The interface unit 104 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more components within the legged robot 100, or may be used to output (e.g., data information, power, etc.) to an external device. The interface unit 104 may include a power port, a data port (such as a USB port), a memory card port, a port for connecting a device having an identification module, an audio input / output (I / O) port, a video I / O port, etc.
[0072] The storage unit 105 is used to store software programs and various data. The storage unit 105 may mainly include a program storage area and a data storage area, wherein the program storage area may store operating system programs, motion control programs, application programs (such as text editors), etc.; the data storage area may store data generated by the legged robot 100 during use (such as various sensor data obtained by the sensor unit 103, log file data), etc. In addition, the storage unit 105 may include a high-speed random access memory, and may also include a non-volatile memory, such as a disk storage, a flash memory, or other volatile solid-state memory.
[0073] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0074] The input unit 107 can be used to receive input digital or character information. Specifically, the input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using the palm, finger or suitable accessory), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device 1073 and a touch controller 1074. Among them, the touch detection device 1073 detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller 1074; the touch controller 1074 receives the touch information from the touch detection device 1073, converts it into contact coordinates, and then sends it to the control module 110, and can receive and execute commands sent by the control module 110. In addition to the touch panel 1071, the input unit 107 may also include other input devices 1072. Specifically, other input devices 1072 may include but are not limited to one or more of a remote control operating handle, etc., which are not specifically limited here.
[0075] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the control module 110 to determine the type of the touch event. Then, the control module 110 provides corresponding visual output on the display panel 1061 according to the type of the touch event. Figure 1In the embodiment, the touch panel 1071 and the display panel 1061 are used as two independent components to respectively realize the input and output functions. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions, which is not limited here.
[0076] The audio output unit 108 can convert the audio data received by the communication unit 102 or stored in the storage unit 105 into an audio signal and output it as sound. The audio output unit 108 can include a speaker, a buzzer, and the like.
[0077] The control module 110 is the control center of the legged robot 100. It uses various interfaces and lines to connect the various components of the entire legged robot 100, and controls the legged robot 100 as a whole by running or executing software programs stored in the storage unit 105 and calling data stored in the storage unit 105.
[0078] The power supply 111 is used to supply power to each component. The power supply 111 may include a battery and a power control board. The power control board is used to control functions such as battery charging, discharging, and power consumption management. Figure 1 In the illustrated embodiment, the power supply 111 is electrically connected to the control module 110. In other embodiments, the power supply 111 may also be electrically connected to the sensor unit 103 (such as a camera, a radar, a speaker, etc.) and the motor 1012. It should be noted that each component may be connected to a different power supply 111 or powered by the same power supply 111.
[0079] On the basis of the above embodiments, specifically, in some embodiments, the terminal device can be used to communicate with the legged robot 100. When the terminal device communicates with the legged robot 100, the terminal device can send command information to the legged robot 100. The legged robot 100 can receive the command information through the communication unit 102, and can transmit the command information to the control module 110 after receiving the command information, so that the control module 110 can process the target speed value according to the command information. The terminal device includes but is not limited to: a mobile phone with an image capture function, a tablet computer, a server, a personal computer, a wearable smart device, and other electrical devices.
[0080] The instruction information may be determined according to preset conditions. In one embodiment, the legged robot 100 may include a sensing unit 103, and the sensing unit 103 may generate instruction information according to the current environment of the legged robot 100. The control module 110 may determine whether the current speed value of the legged robot 100 meets the corresponding preset conditions according to the instruction information. If satisfied, the current speed value and the current gait of the legged robot 100 will be maintained; if not satisfied, the target speed value and the corresponding target gait will be determined according to the corresponding preset conditions, so that the legged robot 100 can be controlled to move with the target speed value and the corresponding target gait. The environmental sensor may include a temperature sensor, an air pressure sensor, a visual sensor, and a sound sensor. The instruction information may include temperature information, air pressure information, image information, and sound information. The communication method between the environmental sensor and the control module 110 may be wired communication or wireless communication. The wireless communication method includes, but is not limited to: wireless network, mobile communication network (3G, 4G, 5G, etc.), Bluetooth, and infrared.
[0081] Regarding the energy consumption value of the legged robot 100, in some such embodiments, please combine Figure 2 , the energy consumption value (unit: J) of the legged robot 100 is:
[0082] E=tau*w*t,
[0083] Wherein, E is the energy consumption value of the legged robot 100, tau is the output torque of the motor 1012 (unit: N*m), and w is the speed of the motor 1012 (unit: s -1 ), t is time (unit: s). The energy consumption value of the legged robot 100 may be the total work done by the legged robot 100 in time t when the legged robot 1015 drives itself to move.
[0084] The embodiment of the present invention provides a gait control method for a legged robot 100, wherein the gait of the legged robot 100 includes at least two preset gaits. Under the preset gaits, the energy consumption value and the speed value of the legged robot 100 have corresponding relationship data. Figure 3 , gait control methods include:
[0085] 03: Determine a target speed value of the legged robot 100, and determine a target gait corresponding to the target speed value according to the target speed value and the gait strategy, wherein the gait strategy is determined according to corresponding relationship data of each preset gait, and the energy consumption value of the legged robot 100 in the target gait is less than or equal to the energy consumption threshold;
[0086] 04: Control the movement of the legged robot 100 according to the target speed value and the target gait.
[0087] The gait control method of the embodiment of the present invention can be implemented by the foot-type robot 100 of the embodiment of the present invention. Figure 1 The legged robot 100 includes a control module. The control module is used to: determine a target speed value of the legged robot 100, determine a target gait corresponding to the target speed value according to the target speed value and a gait strategy, the gait strategy is determined according to corresponding relationship data of each preset gait, and the energy consumption value of the legged robot 100 in the target gait is less than or equal to the energy consumption threshold; and control the movement of the legged robot 100 according to the target speed value and the target gait.
[0088] The above-mentioned gait control method determines the target gait corresponding to the target speed value through a preset gait strategy, so that the legged robot 100 can be controlled to move at the target speed value and the corresponding target gait, so that the generated energy consumption value is within an allowable range, thereby reducing energy consumption by switching gaits, which is beneficial to increasing the endurance time of the legged robot 100.
[0089] It can be understood that for the legged robot 100 , the movement of the foot structure is mainly controlled by a certain driving method, thereby controlling the movement of the legged robot 100 , and different driving methods will form the corresponding gait of the legged robot 100 .
[0090] In some embodiments, the specific condition of the gait can be determined by setting the corresponding parameter value. Figure 2 In some embodiments, the legged robot 100 includes a plurality of legs 1015. The legged robot 100 is provided with gait parameters. The gait parameters include a gait cycle, an order parameter, and a vacancy parameter. The gait cycle corresponds to the time it takes for all the legs 1015 to take a step. The order parameter corresponds to the order of the steps of the plurality of legs 1015. The vacancy parameter corresponds to the duration of each leg 1015 being vacant during the gait cycle.
[0091] It can be understood that for the legged robot 100, different gaits will have different parameter representations. In other words, by determining the parameters of the corresponding representation, the corresponding gait can be determined. In some embodiments, the legged robot 100 may have a walk gait, a trot gait, and a gallop gait, and each gait has a corresponding gait parameter. In this way, the corresponding gait can be determined by the corresponding parameters.
[0092] For the gait cycle, specifically, in some cases, the entire process of the leg 1015 from starting to take off and then landing can be regarded as the leg 1015 performing a step operation. From the start of the first leg 1015 to the last leg 1015 landing, all the legs 1015 take a step. In other words, the time from the start of the first leg 1015 to the last leg 1015 landing is the gait cycle. According to the size of the gait cycle, the movement frequency of the multiple legs 1015 of the foot-type robot 100 can be determined. The larger the gait cycle, the lower the movement frequency of the leg 1015; the smaller the gait cycle, the higher the movement frequency of the leg 1015. In one embodiment, a gait cycle of a walk gait is 1000ms (milliseconds), and a gait cycle of a trot gait is 500ms (milliseconds).
[0093] In addition, in some embodiments, the same gait may have multiple gait cycles. In such an embodiment, the gait cycle interval of the walk gait of the legged robot 100 is [800, 1200] ms, that is, when the time for all the legs 1015 of the legged robot 100 to take a step is within the range of 800ms to 1200ms, the corresponding gait can be determined to be a walk gait.
[0094] Regarding the order parameter, specifically, in order to ensure that the legged robot 100 maintains good stability when moving, when one part of the legs 1015 takes a step, another part of the legs 1015 is required to support the entire legged robot 100. The order parameter can be determined according to the order in which all the legs 1015 take steps one after another.
[0095] It should be pointed out that the order parameter is a multidimensional vector, and the dimension of the order parameter corresponds to the number of legs 1015. Specifically, each leg 1015 has a corresponding order value, and the stepping order of the corresponding leg 1015 can be determined according to the size of the order value. The smaller the order value, the earlier the corresponding leg 1015 will step; the larger the order value, the later the corresponding leg 1015 will step. In other words, the order parameter represents the ratio of the time when each leg 1015 starts to step and the gait cycle. The order parameter corresponding to the preset gait can be determined based on all the order values. In some embodiments, the numerical range of the order value is [0,1].
[0096] Further, in such an embodiment, the gait period under one of the preset gaits is 1000ms and the order parameter is [0, 0.25, 0.5, 0.75]. Specifically, the first leg 1015 will take a step at 0ms, the second leg 1015 will take a step at 250ms, the third leg 1015 will take a step at 500ms, and the fourth leg 1015 will take a step at 750ms. In other words, the product of the order value and the gait period represents the moment when the leg 1015 starts to take a step within the gait period.
[0097] In addition, in some embodiments, the same gait may have multiple different order parameters. Specifically, in such an embodiment, the order parameters in the walk gait may be [0, 0.25, 0.5, 0.75], [0.1, 0.25, 0.5, 0.75], [0, 0.3, 0.5, 0.75], [0, 0.25, 0.6, 0.75], [0, 0.25, 0.5, 0.8]. In other words, the order values corresponding to the legs 1015 may be adjusted to obtain multiple order parameters. Multiple order parameters may be adjusted according to specific circumstances, or may be pre-calibrated through actual tests. The order parameter in the above embodiment is to adjust the order value of one of the legs 1015. In other embodiments, the order values of multiple legs 1015 may be adjusted according to actual application scenarios. No specific limitation is made here.
[0098] Regarding the flight parameters, specifically, during the movement of the legged robot 100, the leg 1015 will be in the air for a certain period of time before landing when taking a step. In the corresponding gait cycle, the flight parameters can be determined according to the length of the flight time of the leg 1015.
[0099] It should be pointed out that the soaring parameter is a multidimensional vector, and the dimension of the soaring parameter corresponds to the number of legs 1015. Specifically, each leg 1015 has a corresponding duty cycle, and the soaring proportion of the corresponding leg 1015 in the gait cycle can be determined according to the size of the duty cycle. The smaller the duty cycle, the shorter the soaring time of the corresponding leg 1015 and the faster the stepping action of the leg 1015; the larger the duty cycle, the longer the soaring time of the corresponding leg 1015 and the slower the stepping action of the leg 1015. The soaring parameter corresponding to the preset gait can be determined based on all the duty cycles. In other words, the soaring parameter represents the proportion of the soaring time of each leg 1015 in the entire gait cycle. In some embodiments, the value range of the duty cycle is [0,1].
[0100] Further, in such an embodiment, the gait cycle in one gait is 1000ms, and the air parameter is [0.25, 0.25, 0.25, 0.25]. Specifically, the air duration of the first leg 1015 is 250ms, the air duration of the second leg 1015 is 250ms, the air duration of the third leg 1015 is 250ms, and the air duration of the fourth leg 1015 is 250ms. When a gait cycle is completed, the air duration of each leg 1015 is determined with the same air duty ratio in the next gait cycle. That is, the product of the duty ratio and the gait cycle represents the air duration of the leg 1015 in the gait cycle.
[0101] In addition, in some embodiments, the same gait may have multiple different take-off parameters. Specifically, in such an embodiment, the take-off parameters in the walk gait may be [0.25, 0.25, 0.25, 0.25], [0.3, 0.25, 0.25, 0.25], [0.25, 0.3, 0.25, 0.25], [0.25, 0.25, 0.3, 0.25], [0.25, 0.25, 0.3, 0.25], [0.25, 0.25, 0.25, 0.3]. In other words, the duty cycle corresponding to the leg 1015 may be adjusted to obtain multiple take-off parameters. Multiple take-off parameters may be adjusted according to specific circumstances, or may be pre-calibrated through actual testing. The take-off parameters in the above embodiments are to adjust the duty cycle of one of the legs 1015. In other embodiments, the duty cycles of multiple legs 1015 may be adjusted according to actual application scenarios. No specific limitation is made here.
[0102] That is to say, on the basis of the above, the corresponding gait of the legged robot 100 can be determined by the corresponding gait parameters, and then the corresponding gait can be determined as the preset gait of the legged robot 100 by adjusting the gait parameters.
[0103] Regarding the preset gaits, it can be understood that each preset gait will have a corresponding preferred speed value range, so that when the footed robot 100 moves with the preset gait and the speed value within the preferred speed value range corresponding to the preset gait, the energy consumption value generated will be less than or equal to the energy consumption threshold, so that the target gait can be determined based on each preset gait and the corresponding preferred speed value range.
[0104] Specifically, after determining the target speed value, a preset gait corresponding to the target speed value can be determined according to the target speed value, and the corresponding preset gait can be used as the target gait. In the case where the legged robot 100 uses one of the preset gaits as the gait when moving, if the target speed value is within the preferred speed value interval of the preset gait, the legged robot 100 can have an energy consumption lower than or equal to the energy consumption threshold in the preset gait. In other words, according to the preset gait with a low energy consumption value corresponding to the target speed value, the legged robot 100 can achieve the effect of optimizing the energy consumption value by changing the gait of the legged robot 100 when moving at the target speed value.
[0105] Each preset gait can have a corresponding energy consumption threshold. The energy consumption threshold can be set by the user or obtained through testing, or it can be obtained by the robot through self-learning during actual use. The energy consumption threshold can be fixed or dynamically adjusted according to the setting or robot self-learning. The energy consumption threshold in other embodiments is not limited here.
[0106] Among them, the corresponding relationship data between the energy consumption value and the speed value of the legged robot 100 refers to the corresponding mapping relationship between the energy consumption value and the speed value of the legged robot 100 in each preset gait. Through the determined corresponding relationship data between the energy consumption value and the speed value, the target speed value can be obtained according to the energy consumption value that the legged robot 100 needs to achieve. The corresponding relationship data between the energy consumption value and the speed value can be empirical data, or obtained based on product experimental test statistics, or obtained based on product usage statistics.
[0107] In some embodiments, the method for determining the target speed value may be a speed value strategy calculated by the robot based on the obtained destination distance, destination distance and completion time, and in combination with external environmental factors. According to the strategy, the legged robot 100 continuously adjusts the current speed value to the target speed value. For example, the robot only obtains the destination instruction. If there is no requirement for the robot's moving time, the robot will calculate a speed value strategy with a more energy-saving value; the robot obtains the destination and completion time instructions. If the time is short, the robot will calculate a strategy with a more energy-saving value while maintaining a certain speed value; if the external environment obtained is on a flat ground, a high-speed passing strategy may be preferably adopted; if the external environment obtained is an external environment with obstacles on the road, many pedestrians or a slippery ground, a low-speed passing strategy may be adopted; as an embodiment, the moving speed value strategy may be to move slowly first, then gradually speed up, and then gradually slow down when approaching the destination, and adjust the speed value in the middle section according to the specific conditions of the environment.
[0108] In other embodiments, the method for determining the target speed value may also be to obtain a correction value based on continuous matching of the current scene, so that the legged robot 100 adjusts the current speed value to the target speed value while continuously correcting the target speed value. For example, the user manually adjusts the speed value through a remote control, or directly sends a speed value instruction to the robot through voice control. The robot will quickly adjust to the speed value while taking into account the energy consumption value.
[0109] Regarding the current speed value of the legged robot 100, in some such embodiments, the legged robot 100 may include a speed value sensor. When the legged robot 100 is moving, the speed value sensor may detect the current speed value of the legged robot 100, and may transmit the detected current speed value of the legged robot 100 to the control module 110, so that the control module 110 determines to adjust the gait of the legged robot 100 according to the current speed value of the legged robot 100.
[0110] Please refer to Figure 4 In some embodiments, the at least two preset gaits include a first gait and a second gait. The first gait and the second gait are adjacent. Figure 5 , gait control methods include:
[0111] 011: Determine an intersection point between the corresponding relationship data of the first gait and the corresponding relationship data of the second gait, and when the legged robot 100 moves at a cross speed value corresponding to the intersection point, the energy consumption value corresponding to the first gait is the same as the energy consumption value corresponding to the second gait;
[0112] 012: When the current speed value is less than the cross speed value, determine to control the legged robot 100 to move with the first posture;
[0113] 013: When the current speed value is greater than the cross speed value, determine to control the legged robot 100 to move with the second gait;
[0114] 019: Determine the gait strategy based on the current speed value, the first gait and the second gait.
[0115] The gait control method of the embodiment of the present invention can be implemented by the foot-type robot 100 of the embodiment of the present invention. Figure 1The control module is used to: determine the intersection point between the corresponding relationship data of the first gait and the corresponding relationship data of the second gait, when the legged robot 100 moves at the cross speed value corresponding to the intersection point, the energy consumption value corresponding to the first gait is the same as the energy consumption value corresponding to the second gait; when the current speed value is less than the cross speed value, determine to control the movement of the legged robot 100 with the first gait; when the current speed value is greater than the cross speed value, determine to control the movement of the legged robot 100 with the second gait; determine the gait strategy according to the current speed value, the first gait and the second gait.
[0116] In this way, the legged robot 100 can achieve the effect of reducing energy consumption when adjusting the current gait.
[0117] Specifically, in Figure 4 In the illustrated embodiment, g1 represents the mapping relationship between the energy consumption value and the speed value in the first gait, and g2 represents the mapping relationship between the energy consumption value and the speed value in the second gait. The first gait g1 and the second gait g2 are distributed in different speed value intervals, wherein the minimum energy consumption value in the first gait g1 is Vg1, and the minimum energy consumption value in the second gait g2 is Vg2.
[0118] Furthermore, in the corresponding preset gait, as the speed value increases or decreases, the energy consumption value of the legged robot 100 shows a trend of decreasing first and then increasing, so that the current preset gait will have the lowest energy consumption value, that is, the minimum energy consumption value. In other words, in the preset gait, when the energy consumption value corresponding to the speed value is the minimum energy consumption value of the preset gait, the corresponding energy consumption value will increase due to the increase or decrease of the current speed value.
[0119] Please combine Figure 4 ,exist Figure 4 The mapping relationship of the first gait and the mapping relationship of the second gait are shown to cross at A, and the speed value corresponding to A is Va (i.e., the cross speed value). When the speed value of the legged robot 100 in the first gait is Va, the corresponding energy consumption value is the same as the energy consumption value generated when the legged robot 100 moves at the speed value Va in the second gait, that is, when the current speed value of the legged robot 100 is Va, the energy consumption value generated by switching the current gait between the first gait and the second gait is the same.
[0120] It should be noted that, since each preset gait will obtain an optimal speed value corresponding to the minimum energy consumption value according to the corresponding relationship between the energy consumption value and the speed value (such as Figure 4When there is no optimal speed value of another preset gait between the optimal speed values of the two preset gaits, it means that the two preset gaits are adjacent, and there is an intersection in the corresponding relationship data of the two preset gaits, so that the preferred speed value interval of the preset gaits can be determined according to the intersection. According to the size of the optimal speed values of the two preset gaits, the relative relationship between the two preset gaits can be determined, such as Figure 4 Vg1 in is smaller than Vg2, so it can be determined that the preferred speed value interval of the first gait is located on the left side of the preferred speed value interval of the second gait along the speed axis.
[0121] On the basis of the above, when the speed value is less than Va, the energy consumption value of the legged robot 100 in the first gait will always be less than the energy consumption value in the second gait, so controlling the movement of the legged robot 100 with the first gait can help reduce the energy consumption generated during movement; when the speed value is greater than Va, the energy consumption value of the legged robot 100 in the first gait will always be greater than the energy consumption value in the second gait, so controlling the movement of the legged robot 100 with the second gait can help reduce the energy consumption generated during movement.
[0122] Furthermore, by judging the relationship between the current speed value of the legged robot 100 and the speed value Va, it can be determined whether the first gait or the second gait is used as the target gait, and then the gait strategy of controlling the legged robot 100 to move with the target gait is determined according to the current speed value.
[0123] In addition, in such an embodiment, when the current speed value is equal to Va, the legged robot 100 can be controlled to take any one of the first gait and the second gait as the target gait.
[0124] Please refer to Figure 6 In some embodiments, each preset gait has at least two gait cycles. Different gait cycles have different corresponding relationship data between energy consumption values and speed values. At least two preset gaits include a first gait and a second gait. The first gait and the second gait are adjacent. The first gait has a first gait cycle and a second gait cycle. The second gait has a third gait cycle and a fourth gait cycle.
[0125] Among them, Figure 6 In the illustrated embodiment, the corresponding relationship data of the first gait in the first gait cycle is expressed as g11, the corresponding relationship data in the second gait cycle is expressed as g12, the corresponding relationship data of the second gait in the third gait cycle is expressed as g21, and the corresponding relationship data in the fourth gait cycle is expressed as g22.
[0126] Please refer to Figure 7 , gait control methods include:
[0127] 014: Determine a first intersection point B between the corresponding relationship data of the first gait in the first gait period and the corresponding relationship data of the second gait in the third gait period, when the legged robot 100 moves at a first intersection speed value corresponding to the first intersection point B, the energy consumption value corresponding to the first gait is the same as the energy consumption value corresponding to the second gait;
[0128] 015: Determine a second intersection point C between the corresponding relationship data of the first gait in the second gait cycle and the corresponding relationship data of the second gait in the fourth gait cycle, and when the legged robot 100 moves at a second intersection speed value corresponding to the second intersection point C, the energy consumption value corresponding to the first gait is the same as the energy consumption value corresponding to the second gait;
[0129] 016: determining an adaptive speed interval according to the first cross speed value, the first cross speed value and the second cross speed value being within the adaptive speed interval;
[0130] 017: When the current speed value is within the adaptation speed range and is less than the second cross speed value, determine to control the movement of the legged robot 100 with the first gait corresponding to the second gait cycle;
[0131] 018: When the current speed value is within the adaptation speed interval and is greater than the second cross speed value, determine to control the movement of the footed robot 100 with the second gait corresponding to the fourth gait cycle;
[0132] 019: Determine the gait strategy based on the current speed value, the first gait and the second gait.
[0133] The gait control method of the embodiment of the present invention can be implemented by the foot-type robot 100 of the embodiment of the present invention. Figure 1The control module is used to: determine a first intersection point between the corresponding relationship data of the first gait in the first gait cycle and the corresponding relationship data of the second gait in the third gait cycle, when the footed robot 100 moves at a first intersection speed value corresponding to the first intersection point, the energy consumption value corresponding to the first gait is the same as the energy consumption value corresponding to the second gait; determine a second intersection point between the corresponding relationship data of the first gait in the second gait cycle and the corresponding relationship data of the second gait in the fourth gait cycle, when the footed robot 100 moves at a second intersection speed value corresponding to the second intersection point, the energy consumption value corresponding to the first gait is the same. The same as the energy consumption value corresponding to the second gait; determining an adaptation speed interval according to the first cross-speed value, the first cross-speed value and the second cross-speed value are within the adaptation speed interval; when the current speed value is within the adaptation speed interval and is less than the second cross-speed value, determining to control the movement of the footed robot 100 with the first gait corresponding to the second gait cycle; when the current speed value is within the adaptation speed interval and is greater than the second cross-speed value, determining to control the movement of the footed robot 100 with the second gait corresponding to the fourth gait cycle; determining a gait strategy according to the current speed value, the first gait and the second gait.
[0134] In this way, the legged robot 100 can achieve the effect of reducing energy consumption when adjusting the current gait, and ensure the stability of the body when adjusting the gait.
[0135] It is understandable that in actual applications, when the legged robot 100 adjusts its gait, a brief posture mutation process will occur. Under a certain moving speed, it is easy to cause the legged robot 100 to shake when moving, which will affect the overall balance and reduce stability.
[0136] Based on the above, please combine Figure 6In such an embodiment, as the speed value of the legged robot 100 gradually increases, when the speed value is less than Va1, the first gait under the first gait cycle g11 will be used as the target gait, and the corresponding energy consumption value will change according to the corresponding relationship data in the first gait under the first gait cycle g11. When the speed value is greater than Va1 and less than Vc, the first gait under the second gait cycle g12 will be used as the target gait, and the corresponding energy consumption value will change according to the corresponding relationship data in the first gait under the second gait cycle g12. When the speed value is greater than Vc and less than Va2, the second gait under the fourth gait cycle g22 will be used as the target gait, and the corresponding energy consumption value will change according to the corresponding relationship data in the second gait under the fourth gait cycle g22. When the speed value is greater than Vc, the second gait under the third gait cycle g21 will be used as the target gait, and the corresponding energy consumption value will change according to the corresponding relationship data in the second gait under the third gait cycle g21.
[0137] When the speed value is equal to Va1, the legged robot 100 is in the first gait, and when the speed value increases, the gait cycle is adjusted from the first gait cycle g11 to the second gait cycle g12, or when the speed value decreases, the gait cycle is adjusted from the second gait cycle g12 to the first gait cycle g11. When the speed value is equal to Vc, the legged robot 100 can use the first gait under the second gait cycle g12 as the target gait, or can use the second gait under the fourth gait cycle g22 as the target gait. When the speed value is equal to Va2, the legged robot 100 is in the second gait, and when the speed value increases, the gait cycle is adjusted from the fourth gait cycle g22 to the third gait cycle g21, or when the speed value decreases, the gait cycle is adjusted from the third gait cycle g21 to the fourth gait cycle g22.
[0138] Specifically, in Figure 6 In the illustrated embodiment, the corresponding relationship data respectively corresponding to the first gait in the first gait cycle g11 and the second gait in the third gait cycle g21 have an intersection B (first intersection). If the legged robot 100 starts to adjust its gait at point B (that is, when the current speed value is Vb), the current speed will be relatively large, resulting in an incoordination problem between the gait and the current speed, causing a decrease in the stability of the body.
[0139] In this case, by starting to adjust the gait cycle when the current speed value reaches Va1 which is less than Vb, the footed robot 100 uses the second gait cycle g12 as the gait cycle of the current gait, thereby changing the corresponding relationship data between the speed value and the energy consumption value in the current gait, and enabling the speed value to reach point C corresponding to the speed value Vc.
[0140] Since the state corresponding to the legged robot 100 at point C can maintain the coordination between gait and speed, sufficient body stability can be guaranteed, thereby facilitating gait adjustment. Figure 6 In the figure, point C is the intersection point (second intersection point) of the corresponding relationship data corresponding to the first gait in the second gait cycle g12 and the second gait in the fourth gait cycle g22. The legged robot 100 can transform between the first gait and the second gait when the current speed value is Vc. For point C, its corresponding energy consumption value can still be less than or equal to the energy consumption threshold.
[0141] In addition, Va1 and Va2 can be used to determine the need to switch between gaits, so as to ensure the coordination between the current gait and the current speed value before switching the gait, thereby forming an adaptive speed interval. The speed values Va1 and Va2 as the endpoints of the adaptive speed interval can be determined according to the speed value Vc. In one embodiment, Va1 is 0.9 times Vc, and Va2 is 1.1 times Vc. The first intersection speed value (Vb) and the second intersection speed value (Vc) are located within the adaptive speed interval, which can make the difference between Vb and Vc smaller, thereby facilitating the rapid switch between the first gait and the second gait.
[0142] It should be added that for the same preset gait, the corresponding relationship data between energy consumption value and speed value will be different according to different gait cycles. Figure 8 In such an embodiment, a preset gait has multiple gait cycles, wherein the minimum energy consumption value when the gait cycle is h1 is e1, the minimum energy consumption value when the gait cycle is h2 is e2, the minimum energy consumption value when the gait cycle is h3 is e3, and Figure 5 That is, for the same preset gait, by selecting different gait cycles within a determinable range, the corresponding relationship data between the energy consumption value and the speed value can be changed accordingly, thereby changing the energy consumption generated by the legged robot 100 at the same speed value.
[0143] It is understood that although the preset gait may have corresponding different corresponding relationship data according to different gait cycles, the corresponding preferred speed value interval will still be determined based on whether the energy consumption value in the different corresponding relationship data is less than or equal to the energy consumption threshold. In one embodiment, the larger the gait cycle of a preset gait, the smaller the corresponding preferred speed value interval will be.
[0144] In certain embodiments, a gait control method comprises:
[0145] When the current speed value is outside the adaptation speed range and is less than the second cross speed value, it is determined to control the movement of the legged robot 100 with the first posture corresponding to the first posture cycle;
[0146] When the current speed value is outside the adaptation speed interval and is greater than the second cross speed value, it is determined to control the movement of the legged robot 100 with the second gait corresponding to the third gait cycle.
[0147] The gait control method of the embodiment of the present invention can be implemented by the foot-type robot 100 of the embodiment of the present invention. Figure 1 The control module is used for: when the current speed value is outside the adaptation speed range and is less than the second cross-speed value, determining to control the movement of the footed robot 100 with the first gait corresponding to the first gait cycle; when the current speed value is outside the adaptation speed range and is greater than the second cross-speed value, determining to control the movement of the footed robot 100 with the second gait corresponding to the third gait cycle.
[0148] In this way, the energy consumption of the legged robot 100 in the first gait or the second gait can be optimized.
[0149] Specifically, please combine Figure 6 ,exist Figure 6 In the illustrated embodiment, within the adaptive speed interval formed by Va1 and Va2, the legged robot 100 will determine one of the first gait in the second gait cycle g12 and the second gait in the fourth gait cycle g22 as the target gait according to the current speed value. Outside the adaptive speed interval formed by Va1 and Va2, if the current speed value is less than the second cross speed value Va1, it can be determined that the first gait in the first gait cycle g11 has a lower energy consumption value, so that the first gait in the first gait cycle g11 is used to control the movement of the legged robot 100; if the current speed value is greater than the second cross speed value Va2, it can be determined that the second gait in the third gait cycle g21 has a lower energy consumption value, so that the second gait in the third gait cycle g21 is used to control the movement of the legged robot 100.
[0150] It can be understood that although the legged robot 100 can be ensured to have a certain body stability by adjusting the late stage of the gait, the energy consumption generated by the movement will also increase, which is not conducive to ensuring the endurance effect of the legged robot 100. In this case, when the current speed value is outside the adaptation speed range, it means that the gait conversion has been completed, so that the gait cycle of the current gait that has completed the conversion can be adjusted to reduce the corresponding energy consumption value. In one embodiment, when the current speed value is outside the adaptation speed range and is less than the second cross speed value, it means that the current gait is the first gait, so that the movement of the legged robot 100 will be controlled according to the first gait under the first gait cycle. In another embodiment, when the current speed value is outside the adaptation speed range and is greater than the second cross speed value, it means that the current gait is the third gait, so that the movement of the legged robot 100 will be controlled according to the second gait under the third gait cycle.
[0151] In some embodiments, the first gait cycle is a preferred gait cycle of the first gait, and the third gait cycle is a preferred gait cycle of the second gait. The first gait cycle is greater than the second gait cycle. The third gait cycle is greater than the fourth gait cycle. The gait control method includes:
[0152] According to the preferred energy consumption value interval corresponding to each preset gait, and the corresponding relationship data between the energy consumption value and the speed value, the preferred gait cycle corresponding to the preset gait is screened out.
[0153] The gait control method of the embodiment of the present invention can be implemented by the foot-type robot 100 of the embodiment of the present invention. Figure 1 The control module is used to: select the preferred gait cycle corresponding to the preset gait according to the preferred energy consumption value interval corresponding to each preset gait, and the corresponding relationship data between the energy consumption value and the speed value.
[0154] In this way, the energy consumption generated by the legged robot 100 when moving can be optimized to the greatest extent.
[0155] It can be understood that for any gait, as the gait cycle changes, the energy consumption value corresponding to the same speed value will tend to first decrease and then increase. That is to say, although there may be multiple different gait cycles depending on the situation, there will still be some gait cycles that can achieve lower energy consumption values at the same speed value, and these gait cycles can be used as the preferred gait cycles.
[0156] Specifically, for some gait cycles, the energy consumption value corresponding to the speed value at any stage may be greater than the preset value, so these gait cycles will be filtered out; while for other gait cycles, in some stages, there are situations where the energy consumption value corresponding to the speed value is less than or equal to the preset value. By taking the preferred energy consumption value interval as the partial stage, the corresponding gait cycle can be determined according to the required preferred energy consumption value interval, so that the preset gait in the corresponding gait cycle can achieve the effect of optimizing energy consumption. When the speed value of the legged robot 100 is within the preferred energy consumption value interval, the gait cycle of the current gait can be adjusted, so that the energy consumption value of the legged robot 100 is less than or equal to the preset value, and the gait cycle can be used as the preferred gait cycle.
[0157] Regarding the preferred speed value interval, in some such embodiments, the same or different preferred speed value intervals can be set according to all preset gaits. The set preferred speed value interval can be calibrated through actual testing or determined based on experience. In one embodiment, when the footed robot 100 moves on solid flat ground, the preferred speed value interval corresponding to the walk gait is (0, 0.5) m / s, and when the footed robot 100 moves on sand, the preferred speed value interval corresponding to the walk gait is (0, 0.3) m / s.
[0158] Please combine again Figure 6 , where the first gait cycle is greater than the second gait cycle, which means that the frequency of the footed robot 100 taking steps in the second gait cycle will be greater than the frequency of taking steps in the first gait cycle, thereby matching faster steps with greater speeds and increasing the energy consumption value to a certain extent; the same is true for the third gait cycle and the fourth gait cycle.
[0159] On the basis of the above, when a gait conversion is required, the frequency of the footed robot 100's steps is increased, and the footed robot 100 converts between the first gait and the second gait at a larger stepping frequency. After completing the conversion between the gaits, since the first gait cycle is the preferred gait cycle of the first gait, and the third gait cycle is the preferred gait cycle of the second gait, the gait cycle in the current gait can be adjusted according to the current speed value, thereby reducing the energy consumption generated by the current movement of the footed robot 100.
[0160] Of course, in other embodiments, the first gait cycle may be a suboptimal gait cycle of the first gait, and the third gait cycle may be a suboptimal gait cycle of the second gait, so that the legged robot 100 can still have lower energy consumption in the corresponding gait.
[0161] In summary, the gait control method and the legged robot 100 of the embodiment of the present invention can determine the gait strategy according to the current speed value and a plurality of preset gaits, and determine the target gait corresponding to the target speed value through the gait strategy. Since the energy consumption value generated when the legged robot 100 moves at the target speed value under the target gait will be less than or equal to the preset value, the effect of reducing the energy consumption value generated by the movement of the legged robot 100 can be achieved. In other words, by adjusting the gait of the legged robot 100 when moving, the energy consumption of the legged robot 100 can be saved, thereby achieving the effect of enhancing the endurance function. Compared with the energy consumption value comparison experiment under the related art, the endurance mileage of the legged robot 100 of the embodiment of the present invention can be increased by 10% to 20%. In other embodiments, the preset value can be determined according to the corresponding relationship data between the energy consumption value and the speed value under the preset gait.
[0162] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the gait control method described in any of the above embodiments is implemented.
[0163] The above-mentioned computer-readable storage medium determines the target gait corresponding to the target speed value through a preset gait strategy, so that the legged robot can be controlled to move at the target speed value and the corresponding target gait, so that the generated energy consumption value is within an allowable range, thereby reducing energy consumption by switching gaits, which is beneficial to increasing the endurance time of the legged robot.
[0164] For example, when the program is executed by a processor, the following steps of the display method are implemented:
[0165] 03: Determine a target speed value of the legged robot 100, and determine a target gait corresponding to the target speed value according to the target speed value and the gait strategy, wherein the gait strategy is determined according to corresponding relationship data of each preset gait, and the energy consumption value of the legged robot 100 in the target gait is less than or equal to the energy consumption threshold;
[0166] 04: Control the movement of the legged robot 100 according to the target speed value and the target gait.
[0167] The computer-readable storage medium may be provided in the legged robot 100 or in other terminal devices. The legged robot 100 may communicate with other terminal devices to obtain corresponding programs.
[0168] It can be understood that computer-readable storage media may include: any entity or device capable of carrying a computer program, recording media, USB flash drives, mobile hard disks, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc. A computer program includes computer program code. The computer program code may be in source code form, object code form, executable file, or some intermediate form, etc. A computer-readable storage medium may include: any entity or device capable of carrying a computer program code, recording media, USB flash drives, mobile hard disks, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), and software distribution media, etc.
[0169] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0170] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0171] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0172] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A gait control method for a legged robot, characterized in that: The gait of the legged robot includes at least two preset gaits, under which the energy consumption value and the speed value of the legged robot have corresponding relationship data, the at least two preset gaits include a first gait and a second gait, the first gait and the second gait are adjacent, The gait control method comprises: Determine a target speed value of the legged robot, and determine a target gait corresponding to the target speed value according to the target speed value and a gait strategy, wherein the gait strategy is determined according to corresponding relationship data of each of the preset gaits, and an energy consumption value of the legged robot in the target gait is less than or equal to an energy consumption threshold; Controlling the movement of the footed robot according to the target speed value and the target gait; The gait control method further comprises: Determine an intersection point between the corresponding relationship data of the first gait and the corresponding relationship data of the second gait, and when the footed robot moves at a crossover speed value corresponding to the intersection point, an energy consumption value corresponding to the first gait and an energy consumption value corresponding to the second gait are the same; When the current speed value is less than the cross speed value, determining to control the movement of the legged robot with the first step; When the current speed value is greater than the cross speed value, determining to control the movement of the footed robot with the second gait; The gait strategy is determined according to the current speed value, the first gait and the second gait.
2. The gait control method according to claim 1, characterized in that: Each of the preset gaits has at least two gait cycles, and different gait cycles have corresponding relationship data between different energy consumption values and speed values. The at least two preset gaits include a first gait and a second gait, and the first gait and the second gait are adjacent. The first gait has a first gait cycle and a second gait cycle, and the second gait has a third gait cycle and a fourth gait cycle. The gait control method includes: Determine a first intersection point between the corresponding relationship data of the first gait in the first gait period and the corresponding relationship data of the second gait in the third gait period, and when the footed robot moves at a first intersection speed value corresponding to the first intersection point, an energy consumption value corresponding to the first gait and an energy consumption value corresponding to the second gait are the same; Determine a second intersection point between the corresponding relationship data of the first gait in the second gait cycle and the corresponding relationship data of the second gait in the fourth gait cycle, and when the footed robot moves at a second cross speed value corresponding to the second intersection point, the energy consumption value corresponding to the first gait is the same as the energy consumption value corresponding to the second gait; determining an adaptation speed interval according to the first cross speed value, wherein the first cross speed value and the second cross speed value are within the adaptation speed interval; When the current speed value is within the adaptation speed interval and is less than the second cross speed value, determining to control the movement of the footed robot with the first gait corresponding to the second gait cycle; When the current speed value is within the adaptation speed interval and greater than the second cross-speed value, determining to control the movement of the footed robot with the second gait corresponding to the fourth gait cycle; The gait strategy is determined according to the current speed value, the first gait and the second gait.
3. The gait control method according to claim 2, characterized in that: The gait control method comprises: When the current speed value is outside the adaptive speed range and is less than the second cross speed value, determining to control the movement of the legged robot with the first posture corresponding to the first posture cycle; When the current speed value is outside the adaptation speed interval and is greater than the second cross-speed value, it is determined to control the movement of the footed robot with the second gait corresponding to the third gait cycle.
4. The gait control method according to claim 2, characterized in that: The first gait cycle is a preferred gait cycle of the first gait, the third gait cycle is a preferred gait cycle of the second gait, the first gait cycle is greater than the second gait cycle, the third gait cycle is greater than the fourth gait cycle, and the gait control method includes: The preferred gait cycle corresponding to the preset gait is screened out according to the preferred energy consumption value interval corresponding to each preset gait and the corresponding relationship data between the energy consumption value and the speed value.
5. A legged robot, characterized in that: The gait of the legged robot includes at least two preset gaits, under which the energy consumption value and the speed value of the legged robot have corresponding relationship data, the at least two preset gaits include a first gait and a second gait, the first gait and the second gait are adjacent, and the legged robot includes a control module, which is used to: Determine a target speed value of the legged robot, and determine a target gait corresponding to the target speed value according to the target speed value and a gait strategy, wherein the gait strategy is determined according to corresponding relationship data of each of the preset gaits, and an energy consumption value of the legged robot in the target gait is less than or equal to an energy consumption threshold; Controlling the movement of the footed robot according to the target speed value and the target gait; The control module is also used for: Determine an intersection point between the corresponding relationship data of the first gait and the corresponding relationship data of the second gait, and when the footed robot moves at a crossover speed value corresponding to the intersection point, an energy consumption value corresponding to the first gait and an energy consumption value corresponding to the second gait are the same; When the current speed value is less than the cross speed value, determining to control the movement of the legged robot with the first step; When the current speed value is greater than the cross speed value, determining to control the movement of the footed robot with the second gait; The gait strategy is determined according to the current speed value, the first gait and the second gait.
6. The foot-type robot according to claim 5, characterized in that: Each of the preset gaits has at least two gait cycles, and different gait cycles have different corresponding relationship data between energy consumption values and speed values. The at least two preset gaits include a first gait and a second gait, and the first gait and the second gait are adjacent. The first gait has a first gait cycle and a second gait cycle, and the second gait has a third gait cycle and a fourth gait cycle. The control module is used to: Determine a first intersection point between the corresponding relationship data of the first gait in the first gait period and the corresponding relationship data of the second gait in the third gait period, and when the footed robot moves at a first intersection speed value corresponding to the first intersection point, an energy consumption value corresponding to the first gait and an energy consumption value corresponding to the second gait are the same; Determine a second intersection point between the corresponding relationship data of the first gait in the second gait cycle and the corresponding relationship data of the second gait in the fourth gait cycle, and when the footed robot moves at a second cross speed value corresponding to the second intersection point, the energy consumption value corresponding to the first gait is the same as the energy consumption value corresponding to the second gait; determining an adaptation speed interval according to the first cross speed value, wherein the first cross speed value and the second cross speed value are within the adaptation speed interval; When the current speed value is within the adaptation speed interval and is less than the second cross speed value, determining to control the movement of the footed robot with the first gait corresponding to the second gait cycle; When the current speed value is within the adaptation speed interval and greater than the second cross-speed value, determining to control the movement of the footed robot with the second gait corresponding to the fourth gait cycle; The gait strategy is determined according to the current speed value, the first gait and the second gait.
7. The foot-type robot according to claim 6, characterized in that: The control module is used for: When the current speed value is outside the adaptive speed interval and is less than the second cross speed value, determining to control the movement of the legged robot with the first posture corresponding to the first posture cycle; When the current speed value is outside the adaptation speed interval and is greater than the second cross-speed value, it is determined to control the movement of the footed robot with the second gait corresponding to the third gait cycle.
8. The foot-type robot according to claim 6, characterized in that: The first gait cycle is a preferred gait cycle of the first gait, the third gait cycle is a preferred gait cycle of the second gait, the first gait cycle is greater than the second gait cycle, the third gait cycle is greater than the fourth gait cycle, and the control module is used for: The preferred gait cycle corresponding to the preset gait is screened out according to the preferred energy consumption value interval corresponding to each preset gait and the corresponding relationship data between the energy consumption value and the speed value.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the gait control method according to any one of claims 1 to 4 is implemented.
