Robot control method, device and equipment and storage medium
By designing a mechanical leg group with the same vertical plane hip rotation center in a wheel-leg robot, overlapping standing and alternating swing are achieved, the problem of low efficiency of climbing stairs by the wheel-leg robot is solved, and the movement efficiency and environmental adaptability are improved.
Patent Information
- Application Number
- CN202310563089.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-17
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2043-05-17
AI Technical Summary
Existing wheel-leg robots are not efficient when climbing stairs because their center of gravity projection cannot exceed the support area, resulting in slow movement.
By designing a mechanical leg set with the same vertical plane hip rotation center, the movement of overlapping standing and alternating swing is achieved, allowing the robot to move quickly in a dynamic equilibrium state.
It improves the robot's mobility efficiency, can quickly climb stairs and cross obstacles without damaging stability, and enhances environmental adaptability.
Smart Images

Figure CN118990467A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a robot control method, device, equipment and storage medium. Background Art
[0002] With the development of robot control technology, some organizations and research institutions have successively launched wheel-legged robots with wheels as feet. These wheel-legged robots can not only slide quickly on the wheels, but also climb stairs and overcome obstacles.
[0003] Taking wheel-legged robots climbing stairs as an example, related technologies use heuristic methods to control wheel-legged robots, such as planning the position of the wheel-legged robots' mechanical legs relative to the stairs, and controlling the projection of the wheel-legged robots' center of gravity to move slowly within its support area to achieve stair climbing. This type of method belongs to static stair climbing, that is, the projection of the robot's center of gravity will not exceed the robot's support area, which results in low efficiency in the robot's stair climbing. Summary of the invention
[0004] The embodiments of the present application provide a robot control method, device, equipment and storage medium, which can improve the movement efficiency of the robot. The technical solution is as follows:
[0005] According to one aspect of an embodiment of the present application, a control method for a robot is provided, wherein the robot comprises a body, a first mechanical leg group and a second mechanical leg group connected to the body via a hip joint, wherein at least one of the first mechanical leg group and the second mechanical leg group comprises at least two mechanical legs, and a rotation center of a hip joint corresponding to the first mechanical leg group and a rotation center of a hip joint corresponding to the second mechanical leg group are located in the same vertical plane; the method comprises:
[0006] Standing on the support surface in an overlapping standing state, wherein the position error of each mechanical leg of the robot in the overlapping standing state in the first direction is zero;
[0007] The first mechanical leg group and the second mechanical leg group are controlled to swing alternately and move toward the first direction on the supporting surface.
[0008] According to one aspect of an embodiment of the present application, a control device of a robot is provided, wherein the robot comprises a body, a first mechanical leg group and a second mechanical leg group connected to the body via a hip joint, wherein at least one of the first mechanical leg group and the second mechanical leg group comprises at least two mechanical legs, and a rotation center of a hip joint corresponding to the first mechanical leg group and a rotation center of a hip joint corresponding to the second mechanical leg group are located in the same vertical plane; the device comprises:
[0009] A standing state control module, used for standing on a support surface in an overlapping standing state, wherein a position error of each mechanical leg of the robot in the overlapping standing state in a first direction is zero;
[0010] The swing state control module is used to control the first mechanical leg group and the second mechanical leg group to swing alternately and move in the first direction on the support surface.
[0011] According to one aspect of an embodiment of the present application, a computer device is provided, wherein the robot comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the control method of the robot.
[0012] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned robot control method.
[0013] According to one aspect of the embodiments of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the control method of the robot.
[0014] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0015] For a robot having a first mechanical leg group and a second mechanical leg group, since the rotation centers of the corresponding hip joints are located in the same vertical plane, the robot can be kept standing by one set of mechanical legs, and the other set of mechanical legs can be swung to allow the robot to move quickly in a dynamic equilibrium state (i.e., the center of gravity of the robot can exceed the support area of the robot), thereby improving the robot's movement efficiency. At the same time, controlling the movement of the robot by alternately swinging the first mechanical leg group and the second mechanical leg group can further improve the robot's movement efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;
[0018] Figure 2 is a schematic diagram of a quadruped wheel-legged robot provided by an embodiment of the present application;
[0019] Figure 3 is a schematic diagram of a wheel-legged robot climbing stairs provided by an embodiment of the present application;
[0020] Figure 4 is a schematic diagram of a wheel-legged robot crossing a road shoulder provided by an embodiment of the present application;
[0021] Figure 5 is a schematic diagram of a wheel-legged robot crossing a pit provided by an embodiment of the present application;
[0022] Figure 6 is a schematic diagram of a robot control method provided by an embodiment of the present application;
[0023] Figure 7 is a schematic diagram of a wheel-legged robot in an overlapping standing state provided by an embodiment of the present application;
[0024] Figure 8 is a schematic diagram of a robot movement method provided by an embodiment of the present application;
[0025] Fig. 9 is a schematic diagram of gait information of a robot provided by an embodiment of the present application;
[0026] Figure 10-12 A schematic diagram of a quadruped wheeled-legged robot climbing stairs is shown as an example;
[0027] Fig.13 is a flow chart of a robot movement method provided by another embodiment of the present application;
[0028] Fig.14 is a schematic diagram of a plane model of a wheel-legged robot provided by an embodiment of the present application;
[0029] Fig.15 is a schematic diagram of a plane model of a wheel-legged robot climbing stairs provided by an embodiment of the present application;
[0030] Fig.16 is a schematic diagram of an inverted pendulum model of a wheel-legged robot provided by an embodiment of the present application;
[0031] Figure 17-20 A schematic diagram showing, by way of example, the robot following each reference movement trajectory;
[0032] Fig.21 is a block diagram of a control device of a robot provided by an embodiment of the present application;
[0033] Fig. 22 is a block diagram of a control device of a robot provided by another embodiment of the present application;
[0034] Fig.23 It is a simplified structural block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0036] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0037] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0038] The technical solution of this application mainly involves the robot technology in artificial intelligence technology, mainly involving robot intelligent control. Robots are mechanical and electronic devices that can imitate certain human skills by combining mechanical transmission and modern microelectronics technology. Robots are developed on the basis of electronic, mechanical and information technology. Robots do not necessarily have to look like humans. As long as they can independently complete the tasks and commands assigned to them by humans, they are members of the robot family. A robot is an automated machine that has some intelligent abilities similar to those of humans or organisms, such as perception, planning, movement and coordination. It is an automated machine with high flexibility. With the development of computer technology and artificial intelligence technology, robots have been greatly improved in terms of function and technical level. Mobile robots and robot vision and touch technologies are typical representatives.
[0039] In the technical solution provided in the embodiment of the present application, the executor of each step may be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities.
[0040] Optionally, the computer device may be a PC (Personal Computer) device such as a desktop computer or a laptop computer for controlling the robot; or a server for controlling the robot. The server may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The computer device and the robot may be connected via a physical line, a network, etc. For example, refer to Figure 1 The computer device 101 can control the movement of the robot 103 through the network 102 according to the reference movement trajectory of the robot 103 (such as the support reference movement trajectory, the center of mass reference movement trajectory and the swing reference movement trajectory mentioned below). For example, the computer device 101 can control the first mechanical leg group 104 and the second mechanical leg group 105 of the robot 103 to swing alternately according to the reference movement trajectory of the robot 103, so that the robot 103 moves in a first direction on the support surface.
[0041] Optionally, the computer device may also be a robot itself, that is, the execution subject of each step in the technical solution provided in the embodiment of the present application is a robot. Figure 1 , the computer device 101 can send the reference movement trajectory of the robot 103 to the robot 103 through the network 102, and the robot 103 moves according to the reference movement trajectory. Optionally, the robot 103 can also automatically obtain the reference movement trajectory according to the real environment to perform different tasks in the real environment, which is not limited in the embodiment of the present application.
[0042] The robot in the embodiments of the present application may refer to a wheel-legged robot, a leg-footed robot, etc. A wheel-legged robot refers to a robot with wheels as feet, and a leg-footed robot refers to a robot with feet as feet. The embodiments of the present application do not limit this.
[0043] In one example, a robot may include a body, a first mechanical leg group and a second mechanical leg group connected to the body through a hip joint, at least one of the first mechanical leg group and the second mechanical leg group includes at least two mechanical legs, such as the first mechanical leg group includes at least two mechanical legs, the first mechanical leg group may also include at least two mechanical legs, there are at least two mechanical legs in the first mechanical leg group, which are respectively located on both sides of the central axis (i.e., the sagittal plane) of the robot, and there are at least two mechanical legs in the second mechanical leg group, which are respectively located on both sides of the central axis of the robot, and the first mechanical leg group and the second mechanical leg group are distributed side by side, that is, the rotation center of the hip joint corresponding to the first mechanical leg group and the rotation center of the hip joint corresponding to the second mechanical leg group are located in the same vertical plane.
[0044] Exemplarily, a wheel-legged robot is taken as an example to illustrate the robot in the embodiments of the present application.
[0045] The wheel-legged robot in the embodiment of the present application may include a fuselage, an outer mechanical leg group (i.e., a first mechanical leg group) connected to the fuselage through a hip joint, and an inner mechanical leg group (i.e., a second mechanical leg group), wherein the outer mechanical leg group may include two outer mechanical legs, and the inner mechanical leg group may include at least one inner mechanical leg. Exemplarily, the wheel-legged robot is a four-legged wheel-legged robot, i.e., the wheel-legged robot includes two outer mechanical legs and two inner mechanical legs; the wheel-legged robot is also a three-legged wheel-legged robot, i.e., the wheel-legged robot includes two outer mechanical legs and one inner mechanical leg. Among them, the hip joint corresponding to at least one inner mechanical leg in the inner mechanical leg group is located between the hip joints corresponding to the two outer mechanical legs in the outer mechanical leg group, and the rotation center of the hip joint corresponding to the outer mechanical leg and the rotation center of the hip joint corresponding to the inner mechanical leg are located in the same vertical plane. The wheel-legged robot can stand on a supporting surface by means of outer mechanical legs or inner mechanical legs, the wheel-legged robot can also slide on the supporting surface by means of the wheels on the outer mechanical legs or the wheels on the inner mechanical legs, and can also move (i.e. walk) on the supporting surface by controlling the outer mechanical leg group and the inner mechanical leg group to swing alternately.
[0046] For example, Figure 2 As shown, it exemplarily shows a structural schematic diagram of a quadruped wheel-legged robot. The quadruped wheel-legged robot 200 may include: a body, a hip joint and mechanical legs.
[0047] The quadruped wheel-legged robot 200 has four mechanical legs: two outer mechanical legs 201 (i.e., the first mechanical leg group) and two inner mechanical legs 202 (i.e., the second mechanical leg group), the two inner mechanical legs 202 are located between the two outer mechanical legs 201, and the four mechanical legs can be extended and retracted individually along the direction shown in the figure. A wheel 203 is installed at the end of each of the four mechanical legs, and each wheel 203 can be driven individually. The quadruped wheel-legged robot 200 can stand up through the two inner mechanical legs 202 or the two outer mechanical legs 201 to be in a double-wheel support state; the quadruped wheel-legged robot 200 can stand up through the two inner mechanical legs 202 and the two outer mechanical legs 201 at the same time to be in a quadruped wheel support state, which is not limited in the embodiments of the present application.
[0048] Optionally, the two inner mechanical legs 202 may be implemented as a whole, that is, the quadruped wheel-legged robot 200 may be implemented as a tripod wheel-legged robot having only one inner mechanical leg.
[0049] The other ends of the four mechanical legs are each connected to a hip joint 204, and each mechanical leg can rotate around its own hip joint 204 and maintain linkage. In the embodiment of the present application, the rotation centers of the hip joints 204 corresponding to the quadruped wheel-legged robot 200 are located in the same vertical plane 205, and the rotation planes of the mechanical legs corresponding to the quadruped wheel-legged robot 200 are parallel. The hip joints 204 corresponding to the two inner mechanical legs 202 are located between the hip joints 204 corresponding to the two outer mechanical legs 201.
[0050] Optionally, the hip joints 204 corresponding to the quadruped wheel-legged robot 200 may be coaxial, that is, the rotation centers of the hip joints 204 are located in the same straight line. The hip joints 204 corresponding to the quadruped wheel-legged robot 200 may also be coaxial, such as the hip joints 204 corresponding to the two inner mechanical legs 202 are coaxial, and the hip joints 204 corresponding to the two outer mechanical legs 201 are coaxial, but the hip joints 204 corresponding to the two inner mechanical legs 202 are not coaxial with the hip joints 204 corresponding to the two outer mechanical legs 201.
[0051] Optionally, the hip joints 204 corresponding to the two outer mechanical legs 201 share a driving motor so that the two outer mechanical legs 201 move synchronously; the hip joints 204 corresponding to the two inner mechanical legs 202 share a driving motor so that the two inner mechanical legs 202 move synchronously. In a feasible example, each hip joint 204 corresponding to the quadruped wheel-legged robot 200 can also be independently driven by its own corresponding driving motor, which is not limited in the embodiment of the present application.
[0052] The body of the quadruped wheeled-legged robot 200 may include a waist 206 , a trunk 207 , a head 208 and upper limbs 209 .
[0053] The hip joints 204 corresponding to the quadruped wheeled leg robot 200 are connected to the same end of the waist 206, and the other end of the waist 206 is connected to one end of the trunk 207. The waist 206 has two rotation centers: a pitch rotation center that can make the trunk 207 pitch, and a sway rotation center that can make the trunk 207 sway sideways. The sway rotation center is designed in series with the pitch rotation center, and is located at the upper end of the pitch rotation center and connected to the trunk 207.
[0054] The other end of the torso 207 is connected to the head 208 and the upper limb 209, and the upper limb 209 can be a multi-degree-of-freedom upper limb. In some embodiments, an end effector, such as a mechanical gripper, a suction cup, etc., is deployed on the upper limb 209. A data acquisition device can be deployed in the head 208 to perceive the real environment, such as an image acquisition device, a video shooting device, etc.
[0055] In the technical solution provided in the embodiment of the present application, the wheels, mechanical legs, hip joints and waist of the four-legged wheeled robot 200 are necessary hardware for the control algorithm, and the rest are non-essential hardware.
[0056] Compared with the two-legged wheel-legged robot, the four-legged wheel-legged robot has a more stable structure and a stronger ability to resist external impact disturbances. Compared with the six-legged wheel-legged robot, it has fewer redundant joints and a lower design complexity. It can bear large loads, pass through narrow spaces, and perform tasks on objects of different heights. The four-legged wheel-legged robot has a strong ability to adapt to the environment.
[0057] The robot control method provided in the embodiment of the present application can be applied to a variety of scenarios, such as the robot climbing stairs, the robot crossing thresholds, the robot crossing shoulders, the robot crossing pits, and any scenario of crossing obstacles. The robot using the technical solution provided in the embodiment of the present application has a stronger ability to adapt to the environment. The robot control method provided in the embodiment of the present application can improve the mobility efficiency of the robot.
[0058] The following will take a wheel-legged robot as an example to illustrate the application scenarios of the technical solution provided in the embodiments of the present application.
[0059] In some embodiments, reference Figure 3 When the wheel-legged robot 301 needs to climb stairs, it can complete the stairs climbing by controlling the outer mechanical leg group 302 (i.e., the first mechanical leg group) and the inner mechanical leg group 303 (i.e., the second mechanical leg group) to swing alternately. For example, the outer mechanical leg group 302 is used as the supporting mechanical leg group and the inner mechanical leg group 303 is used as the swinging mechanical leg group, so that the robot 301 climbs the first step, and then the inner mechanical leg group 303 is used as the supporting mechanical leg group and the outer mechanical leg group 302 is used as the swinging mechanical leg group, so that the robot 301 climbs the second step, and the outer mechanical leg group 302 and the inner mechanical leg group 303 swing alternately in turn to complete the task of climbing stairs.
[0060] In some embodiments, reference Figure 4 When the wheel-legged robot 401 needs to cross the shoulder, it can complete the crossing of the shoulder by controlling the outer mechanical leg group 402 and the inner mechanical leg group 403 to swing alternately. For example, the inner mechanical leg group 403 is first used as the supporting mechanical leg group and the outer mechanical leg group 402 is used as the swinging mechanical leg group, so that the outer mechanical leg group 402 of the robot 401 climbs onto the shoulder, and then the outer mechanical leg group 402 is used as the supporting mechanical leg group and the inner mechanical leg group 403 is used as the swinging mechanical leg group, so that the robot 401 completely crosses the shoulder, and the inner mechanical leg group 403 and the outer mechanical leg group 402 swing alternately in turn to complete the crossing of the shoulder task.
[0061] In some embodiments, reference Figure 5When the wheel-legged robot 501 needs to cross a pit, it can complete the crossing of the pit by controlling the outer mechanical leg group 502 and the inner mechanical leg group 503 to swing alternately. For example, the inner mechanical leg group 503 is first used as the supporting mechanical leg group and the outer mechanical leg group 502 is used as the swinging mechanical leg group, so that the outer mechanical leg group 502 of the robot 501 crosses the pit, and then the outer mechanical leg group 502 is used as the supporting mechanical leg group and the inner mechanical leg group 503 is used as the swinging mechanical leg group, so that the robot 501 completely crosses the pit, and the inner mechanical leg group 503 and the outer mechanical leg group 502 swing alternately in turn to complete the task of crossing the pit.
[0062] The following will use a method embodiment to illustrate the control method of the robot provided in the embodiment of the present application.
[0063] Please refer to Figure 6 , which shows a flow chart of a robot control method provided by an embodiment of the present application. In the embodiment of the present application, the robot control method is described by taking the robot as an example of the execution subject of each step. The method may include the following steps (601-602):
[0064] Step 601: Stand on a support surface in an overlapping standing state, wherein the position error of each mechanical leg of the robot in the overlapping standing state in a first direction is zero.
[0065] Optionally, the overlapping standing state may refer to the initial state of the robot, which can be used to indicate the initial state of the robot when it moves on the support surface. Exemplarily, the overlapping standing state may indicate that the various mechanical legs of the robot overlap in the first direction, such as taking the contact point between the foot of the robot in the initial state and the support surface as the origin, the horizontal direction as the x-axis direction, the vertical direction as the z-axis direction, and the direction perpendicular to both the horizontal and vertical directions as the y-axis direction, to construct the world coordinate system of the robot, and the coordinates of the various mechanical legs of the robot in the overlapping standing state in the x-axis direction are the same, that is, the position error of the various mechanical legs of the robot in the overlapping standing state in the x-axis direction is zero, and when looking at the robot from the y-axis direction, only one outermost mechanical leg can be seen. Among them, the position error may refer to the error between the positions of the feet corresponding to each mechanical leg in the world coordinate system. The robot in the embodiment of the present application is the same as that described in the above embodiment, and will not be repeated here.
[0066] Optionally, the overlapping standing state can be used to constrain the length of each mechanical leg, the positional relationship between the mechanical leg and the waist, the positional relationship between the mechanical leg and the support surface, etc. of the robot in the initial state. For example, the robot in the overlapping standing state stands vertically on the support surface.
[0067] In an embodiment of the present application, the first direction may refer to the forward direction of the robot, such as the first direction may refer to a horizontal direction parallel to the supporting surface, the first direction may refer to a vertical direction perpendicular to the supporting surface, or the first direction may refer to the x-axis direction corresponding to the world coordinate system of the robot. The embodiment of the present application does not limit this.
[0068] In an embodiment of the present application, the above-mentioned support surface may include only one plane, such as a flat ground, a road, etc., or it may include multiple planes of different heights, such as stairs, a road surface with shoulders, a ground with pits, etc. The embodiment of the present application is not limited to this.
[0069] In some examples, the initial state of the robot can be set and adjusted according to actual usage requirements. For example, the initial state of the robot can be a four-legged support standing state, a two-legged support standing state, etc., which is not limited to the embodiments of the present application.
[0070] For example, reference Figure 7 , the wheel-legged robot 701 is in an overlapping standing state, with the two outer mechanical legs in the outer mechanical leg group 702 (i.e., the first mechanical leg group) as supporting mechanical legs, standing on the supporting surface, and the two inner mechanical legs in the inner mechanical leg group 703 (i.e., the second mechanical leg group) are not in contact with the supporting surface. In some embodiments, the two inner mechanical legs in the inner mechanical leg group 703 may also be in contact with the supporting surface. Among them, the four mechanical legs of the robot 701 are in an overlapping state in a certain direction, that is, in this direction, the position error of the four mechanical legs of the robot 701 is zero.
[0071] Step 602: Control the first mechanical leg group and the second mechanical leg group to swing alternately and move in a first direction on the support surface.
[0072] In the embodiment of the present application, the swing of the mechanical leg refers to the process of the mechanical leg rotating with the hip joint of the mechanical leg as a fixed point, which is equivalent to rotating the mechanical leg corresponding to the hip joint through the hip joint. Optionally, during the swing of the mechanical leg, the length of the mechanical leg can be adjusted according to actual use requirements, and the position of the hip joint corresponding to the mechanical leg in the world coordinate system can also be adjusted according to actual use requirements, which is not limited in the embodiment of the present application.
[0073] The swinging of the first mechanical leg group refers to the swinging of the mechanical legs in the first mechanical leg group, the swinging of the second mechanical leg group refers to the swinging of the mechanical legs in the second mechanical leg group, and the alternating swinging of the first mechanical leg group and the second mechanical leg group refers to the alternating swinging of the mechanical legs in the first mechanical leg group and the mechanical legs in the second mechanical leg group.
[0074] Exemplarily, the robot stops moving after n step cycles. For the adjacent i-th step cycle and i+1-th step cycle in the n step cycles, if the first mechanical leg group swings in the i-th step cycle, the second mechanical leg group swings in the i+1-th step cycle; if the second mechanical leg group swings in the i-th step cycle, the first mechanical leg group swings in the i+1-th step cycle. Optionally, when the first mechanical leg group swings, the second mechanical leg group is the supporting mechanical leg group; when the second mechanical leg group swings, the first mechanical leg group is the supporting mechanical leg group, and the supporting mechanical leg group refers to the mechanical leg group used to make the robot stand on the supporting surface.
[0075] Among them, the step cycle is used to indicate the time length for the first mechanical leg group or the second mechanical leg group to complete a swing, and n step cycles can be the same. The step amplitude of the first mechanical leg group or the second mechanical leg group within a step cycle is a step length. For example, the moving distance of the first mechanical leg group or the second mechanical leg group in the first direction within a step cycle can be recorded as a step length. The step length can be set and adjusted according to actual usage requirements, and the step length can also be a fixed value, which is not limited in the embodiments of the present application. n is a positive integer.
[0076] In one example, since the control methods of the first mechanical leg group and the second mechanical leg group are the same in each step cycle, any step cycle in n step cycles will be used as an example for description below. Figure 8 , step 602 may also include the following content:
[0077] Step 602a: for each stepping cycle, determine the supporting mechanical leg group and the swinging mechanical leg group corresponding to the stepping cycle from the first mechanical leg group and the second mechanical leg group.
[0078] Among them, the swinging mechanical leg group refers to a mechanical leg group used to move the robot in the first direction. In the embodiment of the present application, the mechanical legs in the supporting mechanical leg group or the swinging mechanical leg group are of the same type, that is, the mechanical legs in the supporting mechanical leg group or the swinging mechanical leg group can all be mechanical legs in the first mechanical leg group, or can all be mechanical legs in the second mechanical leg group. For example, if the first mechanical leg group is the supporting mechanical leg group, the second mechanical leg group is the swinging mechanical leg group; if the second mechanical leg group is the supporting mechanical leg group, the first mechanical leg group is the swinging mechanical leg group.
[0079] In one example, a step cycle includes a swing cycle and a support cycle, wherein the mechanical leg is in a swing state during the swing cycle, and the mechanical leg is in a support state during the support cycle. The mechanical leg in the swing state does not contact the support surface, and the mechanical leg completes one swing during the swing cycle. The mechanical leg in the support state contacts the support surface, and the mechanical leg completes the transition between the swing mechanical leg and the support mechanical leg during the support cycle. The support cycle is located after the swing cycle.
[0080] Optionally, in the same step cycle, the swing period of the supporting mechanical leg group is zero, that is, the supporting mechanical leg group is in a supporting state, and the swinging mechanical leg group is first in a swinging state and then in a supporting state.
[0081] For example, in the same step cycle, the determination process of the supporting mechanical leg group and the swinging mechanical leg group may be as follows:
[0082] 1. Obtain the robot's gait information based on the ratio of n step cycles to the robot's support period.
[0083] The support period ratio is used to indicate the proportion of time that the swinging mechanical leg of the robot is in the support state in each step cycle. Optionally, in each step cycle, the supporting mechanical leg is in the support state.
[0084] For example, let the step cycle be T, the support period ratio be: α∈[0,1), then the swing period of the swinging mechanical leg in one step cycle is: T swing =(1-α)T, the support period is: T stance =αT. Optionally, the ratio of the stepping period to the support period may be a parameter preset in the robot, or may be a parameter automatically adjusted by the robot according to the real environment, which is not limited in the embodiment of the present application.
[0085] The gait information is used to indicate whether the robot's mechanical legs are swinging mechanical legs in each step cycle, which can be used to instruct the robot's first mechanical leg group and second mechanical leg group to swing alternately. Optionally, for each step cycle, if the swing cycle of a mechanical leg is a non-zero value, the mechanical leg can be determined to be a swinging mechanical leg; if the swing cycle of a mechanical leg is a zero value, the mechanical leg can be determined to be a supporting mechanical leg.
[0086] The gait information of each mechanical leg can be expressed as a time series of the support state and the swing state. For example, assuming that the support state is 1 and the swing state is 0, the first mechanical leg group includes mechanical legs c1 and c2, and the second mechanical leg group includes mechanical legs c3 and c4. If the robot first steps on the second mechanical leg group, the gait of each mechanical leg at time t can be expressed as follows:
[0087]
[0088]
[0089] Wherein, n=floor(t / T) represents the current number of steps (ie, the current step cycle).
[0090] If the robot first steps with the first mechanical leg group, the gait of each mechanical leg at time t can be expressed as follows:
[0091]
[0092]
[0093] For example, refer to Fig. 9 Taking the second mechanical leg group as an example, the robot's gait information can be used Fig. 9 The line graph shown in FIG. 9 shows that for the first step cycle 901, during the swing period T swing =(1-α)T, the second mechanical leg group is in the swinging state, and the first mechanical leg group is in the supporting state; in the supporting period T swing =(1-α)T, the second mechanical leg group is in the support state, and the first mechanical leg group is also in the support state. For the second step cycle 902, in the swing cycle, the first mechanical leg group is in the swing state, and the second mechanical leg group is in the support state; in the support cycle, the first mechanical leg group is in the support state, and the second mechanical leg group is also in the support state, and so on.
[0094] 2. According to the gait information, determine the supporting mechanical leg group and the swinging mechanical leg group corresponding to the step cycle from the first mechanical leg group and the second mechanical leg group.
[0095] Optionally, it is possible to first determine whether the sequence number of the step cycle is odd or even, and then combine the gait information of the robot to determine the supporting mechanical leg group and the swinging mechanical leg group corresponding to the step cycle. Fig. 9 If a certain step cycle is the third step cycle among n step cycles, it can be determined that in this step cycle, the first mechanical leg group is a supporting mechanical leg group and the second mechanical leg group is a swinging mechanical leg group.
[0096] Step 602b: swing the mechanical leg assembly in a first direction with the support of the mechanical leg assembly.
[0097] The robot stands on the support surface by supporting the mechanical leg group, and rotates the hip joint corresponding to the swinging mechanical leg group in the first direction, so that the swinging mechanical leg group swings in the first direction. This process occurs within the swinging cycle of the step cycle.
[0098] For example, refer to Figure 3The robot 301 stands on the supporting surface by relying on the supporting mechanical leg group (i.e., the first mechanical leg group 302), and rotates the hip joint corresponding to the swinging mechanical leg group (i.e., the second mechanical leg group 303) in the first direction, so that the swinging mechanical leg group swings in the first direction to climb the first step of the stairs.
[0099] Optionally, the mechanical legs in the first mechanical leg group move synchronously, and the mechanical legs in the second mechanical leg group move synchronously. That is, during the supporting process of the supporting mechanical leg group, each supporting mechanical leg moves synchronously; during the swinging process of the swinging mechanical leg group, each swinging mechanical leg moves synchronously.
[0100] Optionally, the body of the robot remains vertical during the movement of the robot, such as Figure 3 The body of the robot 301 always remains vertical during the stair climbing process, that is, only the rotation of each hip joint needs to be adjusted, and the pitch joint, the roll rotation joint, etc. do not need to be rotated to adjust the posture of the robot body, thereby further reducing the control workload of the robot, which is beneficial to improving the control efficiency of the robot.
[0101] In one example, in a swinging cycle in a stepping cycle, while the swinging mechanical leg group is swinging in a first direction, the leg length of each supporting mechanical leg in the supporting mechanical leg group is increased.
[0102] By increasing the length of each supporting mechanical leg in the supporting mechanical leg group, the robot can change the position of the robot's center of mass in the second direction, so that the robot can completely cross obstacles, such as the entire robot can completely climb each step of the stairs. The second direction refers to a direction perpendicular to the first direction. For example, if the first direction is a horizontal rightward direction, the second direction may refer to a vertical upward direction.
[0103] During the swinging process of the swinging mechanical leg group, the leg length of each swinging mechanical leg can be adjusted according to the actual environment, such as being able to reach the desired position without colliding with the contact surface. The adjustment process will be described in detail below and will not be repeated here.
[0104] Step 602c, when the swinging mechanical leg group reaches the desired position corresponding to the stepping cycle on the support surface, stop swinging the swinging mechanical leg group.
[0105] In the embodiment of the present application, each step cycle corresponds to an initial position and an expected position, the initial position may refer to the position where the swinging mechanical leg starts to swing, and the expected position may refer to the position where the swinging mechanical leg ends to swing. The expected position corresponding to each step cycle can be determined based on the step length of the robot and the size information of the support surface.
[0106] Optionally, for the adjacent i-th step cycle and i+1-th step cycle in n step cycles, the expected position of the i-th step cycle can be used as the initial position of the i+1-th step cycle, that is, the initial position of the i+1-th step cycle is the same as the expected position of the i+1-th step cycle.
[0107] The expected position may refer to the expected position where the foot of the swinging machine leg contacts the support surface. For example, when the robot uses wheels as feet, the expected position may refer to the expected position where the wheels of the swinging machine leg contact the support surface; when the robot uses feet as feet, the expected position may refer to the expected position where the feet of the swinging machine leg contact the support surface.
[0108] After the swinging mechanical leg group stops swinging, the robot enters the support period. When the support period is a non-zero value, the robot is in a four-legged support standing state; when the support period is a zero value, the robot immediately alternates between the swinging mechanical leg group and the support mechanical leg group, that is, during the movement of the robot, the robot is always in a two-legged support standing state, which can further improve the robot's movement efficiency.
[0109] After the current step cycle ends, the robot enters the next step cycle, and the robot stops moving after n step cycles. For example, the robot can stop moving after climbing stairs, crossing a shoulder, crossing a pit, etc. After n step cycles, the robot can return to the overlapping standing state. Optionally, the robot can return to the overlapping standing state after stopping moving.
[0110] In summary, the technical solution provided by the embodiment of the present application is that for a robot having a first mechanical leg group and a second mechanical leg group, since the rotation centers of the corresponding hip joints are located in the same vertical plane, the robot can be kept standing by one set of mechanical legs, and the other set of mechanical legs can be swung to enable the robot to move quickly in a dynamic equilibrium state (i.e., the center of gravity of the robot can exceed the support area of the robot), thereby improving the movement efficiency of the robot. At the same time, controlling the movement of the robot by alternately swinging the first mechanical leg group and the second mechanical leg group can further improve the movement efficiency of the robot.
[0111] Among them, the center of gravity of the robot refers to the point where the gravity of the robot is concentrated, and the center of mass of the robot is the weighted average of the position of the mass point with respect to its mass. If the gravity is uniform, the center of mass and the center of gravity can coincide. The support area of the robot refers to the area enclosed by the contact points between the feet on each mechanical leg of the robot and the support surface. The related technology needs to always control the projection of the center of gravity within the support area, resulting in a very small center of mass speed of the robot and a very slow entire movement. The center of gravity of the robot in the embodiment of the present application can exceed the support area of the robot, and the entire movement is very fast, thereby improving the movement efficiency of the robot.
[0112] In addition, by setting the support period in each step cycle of the robot to zero, the robot can control the first mechanical leg group and the second mechanical leg group to swing continuously and alternately without stopping, thereby further improving the movement efficiency of the robot.
[0113] In addition, setting the robot's hip joints to be coaxial, controlling the synchronous movement of the mechanical legs in the first mechanical leg group, and controlling the synchronous movement of the mechanical legs in the second mechanical leg group can reduce the control difficulty of the robot, thereby improving the control efficiency of the robot.
[0114] In some embodiments, reference Figure 10-12 Taking a four-legged wheeled robot climbing stairs as an example, the technical solution provided by the embodiment of the present application is described, which may include the following contents:
[0115] The initial state of the quadruped wheeled-legged robot 1000 climbing stairs is an overlapping standing state, that is, the four mechanical legs of the quadruped wheeled-legged robot 1000 in the initial state are synchronously close together in the forward direction (such as horizontally to the right).
[0116] During the first step cycle (i.e. Fig.10 ), the four-legged wheeled robot 1000 is supported by the outer mechanical leg group 1001 (i.e. the first mechanical leg group) and swings the inner mechanical leg group 1002 (i.e. the second mechanical leg group) in the forward direction, so that the four-legged wheeled robot 1000 climbs the first step of the stairs.
[0117] Among them, for the two inner mechanical legs in the inner mechanical leg group 1002, the two inner mechanical legs are controlled by their corresponding hip joints to swing synchronously in the forward direction, and the leg lengths of the two inner mechanical legs are shortened synchronously, so that the two inner mechanical legs are higher than the first step and do not touch the first step, and then the two inner mechanical legs are controlled by their corresponding hip joints to continue to swing synchronously in the forward direction, and the leg lengths of the two inner mechanical legs are extended synchronously, so that the inner mechanical leg group 1002 reaches the desired position of the first step. In this process, the two outer mechanical legs in the outer mechanical leg group 1001 are adaptively extended synchronously, and the fuselage of the quadruped wheeled leg robot 1000 remains vertical.
[0118] In the second step cycle (i.e. Fig.11 ), the quadruped wheeled leg type robot 1000 uses the inner mechanical leg group 1002 as support and swings the outer mechanical leg group 1001 in the forward direction so that the quadruped wheeled leg type robot 1000 climbs onto the second step of the stairs.
[0119] Among them, for the two outer mechanical legs in the outer mechanical leg group 1001, the two outer mechanical legs are controlled by their corresponding hip joints to swing synchronously in the forward direction, and the leg lengths of the two outer mechanical legs are shortened synchronously, so that the two outer mechanical legs are higher than the first step and do not touch the first step, and then continue to control the two outer mechanical legs by their corresponding hip joints to continue to swing synchronously in the forward direction, and shorten the leg lengths of the two outer mechanical legs synchronously, so that the two outer mechanical legs are higher than the second step and do not touch the second step, and finally continue to control the two outer mechanical legs by their corresponding hip joints to continue to swing synchronously in the forward direction, and extend the leg lengths of the two outer mechanical legs synchronously, so that the outer mechanical leg group 1001 reaches the desired position of the second step. In this process, the two inner mechanical legs in the inner mechanical leg group 1002 are adaptively extended synchronously, the fuselage of the quadruped wheel-legged robot 1000 remains vertical, and follows the extension of the two inner mechanical legs, and moves in the vertical and forward directions at the same time, so as to achieve the center of mass adjustment of the quadruped wheel-legged robot 1000.
[0120] In the third step cycle (i.e. Fig.12 ), the quadruped wheeled leg robot 1000, supported by the outer mechanical leg group 1001, swings the inner mechanical leg group 1002 in the forward direction so that the quadruped wheeled leg robot 1000 climbs the third step of the stairs.
[0121] Among them, for the two inner mechanical legs in the inner mechanical leg group 1002, while the two inner mechanical legs are controlled to swing synchronously in the forward direction through their corresponding hip joints, the leg lengths of the two inner mechanical legs are shortened synchronously, so that the two inner mechanical legs are higher than the second step and do not touch the second step, and then continue to control the two inner mechanical legs to continue to swing synchronously in the forward direction through their corresponding hip joints, while the leg lengths of the two inner mechanical legs are shortened synchronously, so that the two outer mechanical legs are higher than the third step and do not touch the third step, and finally continue to control the two inner mechanical legs to continue to swing synchronously in the forward direction through their corresponding hip joints, while the leg lengths of the two inner mechanical legs are extended synchronously, so that the inner mechanical leg group 1002 reaches the desired position of the third step. In this process, the two outer mechanical legs in the outer mechanical leg group 1001 are adaptively extended synchronously, the fuselage of the quadruped wheel-legged robot 1000 remains vertical, and follows the extension of the two outer mechanical legs, and moves in the vertical and forward directions at the same time, so as to achieve the center of mass adjustment of the quadruped wheel-legged robot 1000.
[0122] In the subsequent stepping cycle, the inner mechanical leg group 1002 and the outer mechanical leg group 1001 swing alternately, so that the quadruped wheel-legged robot 1000 climbs up the stairs.
[0123] In summary, the technical solution provided by the embodiment of the present application is that for a four-legged wheeled robot with an inner mechanical leg group and an outer mechanical leg group, since the rotation centers of the corresponding hip joints are located in the same vertical plane, a set of mechanical legs can be used to keep the robot standing, and the other set of mechanical legs can be swung, so that the robot can quickly climb stairs in a dynamic balance state (i.e., the center of gravity of the robot can exceed the support area of the robot), thereby improving the robot's mobility. At the same time, the robot can be controlled to climb stairs by alternating the swinging of the inner mechanical leg group and the outer mechanical leg group, which can further improve the robot's stair climbing efficiency.
[0124] In some embodiments, reference Fig.13 The above step 602b of "using the supporting mechanical leg group as support, swinging the swinging mechanical leg group in the first direction" may also include the following contents:
[0125] Step S101, determining a support reference movement trajectory of the supporting mechanical leg group according to the size information of the area corresponding to the step cycle on the support surface and the step length of the robot in the step cycle.
[0126] Optionally, since the robot moves in the form of strides (i.e. swinging), the support surface can be divided into different areas according to the landing point of each step of the robot. Optionally, when the support surface has multiple areas, the expected position (i.e. step length) corresponding to each step cycle can also be determined according to the size information of the multiple areas.
[0127] For example, when the support surface is a staircase, the staircase has a plurality of steps, each step corresponds to an area, and each step cycle is used to climb a step, then the size information may refer to the size information of each step, such as the length, width and height of the step. Optionally, the size information may also include the total number of steps of the staircase.
[0128] The above-mentioned support reference movement trajectory may refer to the expected movement trajectory of the supporting mechanical leg, and the support reference movement trajectory may be a position sequence composed of the expected positions corresponding to each step cycle, which is used to guide the support mechanical leg group of the robot to move. For example, n step cycles correspond to n expected positions, and then the n expected positions and the initial position of the robot are sorted in chronological order to obtain the support reference movement trajectory. Among them, for each control moment t within the swing period of the same step cycle, the expected position corresponding to each control moment t is the same. Optionally, the above-mentioned support reference movement trajectory can be characterized by the expected movement trajectory of the foot corresponding to the supporting mechanical leg.
[0129] In one example, since the robot always moves in the first direction (e.g., no displacement occurs in the y-axis direction of the above-mentioned world coordinate system), and the mechanical legs in the supporting mechanical leg group move synchronously, the mechanical legs in the swinging mechanical leg group move synchronously, and the hip joints of the robot are coaxial, the robot can be simplified into a sagittal plane (e.g., Figure 2 Plane model under the sagittal plane).
[0130] For example, refer to Fig.14 , which exemplarily shows a plane model 1400 of a wheel-legged robot in a sagittal plane, wherein the plane model 1400 includes a body 1401, which is connected to a waist 1403 via a waist joint 1402 (corresponding to the above-mentioned roll rotation center and pitch rotation center), and the waist 1403 is connected to an outer mechanical leg 1406 and an inner mechanical leg 1407 via a hip 1404, and a hip joint 1405 of the hip 1404 is used to rotate the outer mechanical leg 1406 and the inner mechanical leg 1407, and the feet of the outer mechanical leg 1406 and the inner mechanical leg 1407 are wheels 1408, and the wheel 1408 has a wheel joint 1409.
[0131] For example, reference Fig.15 , Taking the quadruped wheel-legged robot climbing stairs as an example, the process of obtaining the support reference movement trajectory of the supporting mechanical leg group can be as follows:
[0132] Based on the plane model 1500 and the stairs 1503 of the quadruped wheeled-legged robot, a world coordinate system W-xyz corresponding to the quadruped wheeled-legged robot is constructed. The world coordinate system is constructed with the initial contact point 1502 between the plane model 1500 and the stairs 1503 as the origin, the first direction (i.e., the forward direction) as the x-axis direction, and the second direction perpendicular to the first direction (i.e., the vertical direction) as the z-axis direction.
[0133] The initial contact point 1502 may also be the projection of the center of gravity of the quadruped wheel-legged robot on the ground in the initial state.
[0134] Then, the floating base coordinate system B-xyz of the quadruped wheel-legged robot is constructed with the hip joint 1501 of the plane model 1500 as the origin. The floating base coordinate system is fixedly connected to the hip joint 1501, that is, it moves with the movement of the hip joint 1501, and the initial direction of each coordinate axis of the floating base coordinate system is the same as the world coordinate system. Optionally, the floating base coordinate system can also be fixedly connected to the torso of the quadruped wheel-legged robot, which is not limited in the embodiment of the present application. Optionally, the following calculations all occur in the world coordinate system and the floating base coordinate system.
[0135] In the world coordinate system, the initial position of the supporting mechanical leg can be expressed as (0, 0, 0), which is the first reference point in the supporting reference movement trajectory. Assume that the length of each step on the stair 1503 is Ls, the height is Hs, the distance between the initial position of the supporting mechanical leg and the first step is l, and the step length of the quadruped wheel-legged robot in each step cycle is the length of the step corresponding to the step cycle, then the supporting reference movement trajectory can be expressed as follows:
[0136]
[0137] Where n = floor (t / T) represents the current number of steps (i.e., the current step cycle), t is the control time, r is the radius of the wheel, L s,j is the step length corresponding to the j-th step cycle (i.e., the length of the j-th step), H s,j is the height of the jth step. Since the quadruped wheeled robot only climbs stairs in the sagittal plane, there is no need to pay attention to the movement in the y-axis direction, so the position value in the y-axis direction is set to 0. Optionally, L s,j Greater than l.
[0138] Step S102, determining the reference movement trajectory of the center of mass of the robot according to the support reference movement trajectory of the supporting mechanical leg group, where the reference movement trajectory of the center of mass refers to the reference movement trajectory of the center of mass of the robot.
[0139] In the embodiment of the present application, the height between the center of mass of the robot and the foot of the supporting mechanical leg of the robot is set to a constant value, that is, the constant height hereinafter, which may refer to the distance between the center of mass of the robot and the center of the foot corresponding to the supporting mechanical leg (such as the wheel center) in the z-axis direction, denoted as H com .
[0140] In one example, the reference moving trajectory of the center of mass of the robot can be planned in a first direction and a second direction, and the second direction is perpendicular to the first direction. Then, the process of obtaining the reference moving trajectory of the center of mass may include the following contents:
[0141] 1. Determine the reference movement trajectory of the center of mass of the robot in the second direction according to the support reference movement trajectory, the support period ratio, and the constant height of the center of mass of the robot relative to the foot of the supporting mechanical leg group.
[0142] The center of mass reference movement trajectory is used to guide the center of mass of the robot to move. The support period ratio is used to indicate the proportion of time that the robot's swinging mechanical leg is in the support state in each step cycle.
[0143] Optionally, during the swing period, the reference movement trajectory of the center of mass in the second direction is obtained by interpolating the initial position and the end position in the support reference movement trajectory in combination with a constant height; during the support period, the reference movement trajectory of the center of mass in the second direction is determined by the end position and the constant height in the support reference movement trajectory.
[0144] The initial position and the end position in the support reference movement trajectory corresponding to the current step cycle are the reference position of the support mechanical leg of the current step cycle and the reference position of the support mechanical leg of the next step cycle of the current step cycle, respectively. For the second direction, the initial position is the position component of the reference position of the support mechanical leg of the current step cycle in the second direction (i.e., the z-axis direction), and the end position is the position component of the reference position of the support mechanical leg of the next step cycle of the current step cycle in the second direction (i.e., the z-axis direction).
[0145] Exemplarily, in the swing period of the nth step cycle, the reference movement trajectory of the center of mass in the second direction is interpolated to the reference position of the supporting mechanical leg in the n+1th step cycle based on the reference position of the supporting mechanical leg in the nth step cycle; in the support period of the nth step cycle, the reference position of the center of mass in the second direction remains unchanged, then the reference movement trajectory of the center of mass of the robot in the second direction can be expressed as follows:
[0146]
[0147] Among them, P com,z (t) represents the reference position of the robot’s center of mass in the second direction at the control time t, P stance,z (nT)+H com is the initial position of the center of mass in the nth step cycle (i.e., the sum of the position component of the reference position of the supporting mechanical leg in the nth step cycle in the z-axis direction and the constant height), P stance,z ((n+1)T)+H com is the end position of the center of mass in the nth step cycle (i.e., the sum of the position component of the reference position of the supporting mechanical leg in the n+1th step cycle in the z-axis direction and the constant height), Spline() is a spline curve interpolation method, such as a cubic spline curve interpolation method, and any interpolation method that can ensure that the velocity and acceleration at the start and contact moments of the reference moving trajectory are zero, and the start and end positions meet the constraints. Spline() is used to interpolate the end position of the center of mass in the nth step cycle and the end position of the center of mass in the swing cycle.
[0148] Each control moment in the swing period of the nth step cycle can be recorded as: nT≤t≤(n+1)T-αT, and each control moment in the support period of the nth step cycle can be recorded as: (n+1)T-αT≤t≤(n+1)T.
[0149] 2. Determine the robot's zero moment point ZMP reference trajectory based on the support reference movement trajectory and support period ratio.
[0150] In an embodiment of the present application, the ZMP (Zero Moment Point) corresponding to the step cycle is the contact point between the foot of the supporting mechanical leg and the supporting surface corresponding to the step cycle (hereinafter referred to as the supporting contact point), and the ZMP reference trajectory is a plurality of ZMPs arranged in chronological order during the movement of the robot.
[0151] Optionally, since the ZMP is the same as the support contact point, the ZMP reference trajectory is the same as the support contact point reference trajectory during the swing cycle, i.e., remains unchanged. During the support cycle, the support contact point needs to be converted from the support contact point of the current step cycle to the support contact point of the next step cycle of the current step cycle, and an interpolation method can be used to obtain the ZMP reference trajectory within the support cycle.
[0152] Exemplarily, during the swing cycle, the ZMP reference trajectory is the same as the reference trajectory of the contact point between the supporting mechanical leg group and the supporting surface. During the supporting cycle, the ZMP reference trajectory is obtained by interpolating the initial position and the end position in the supporting reference movement trajectory. Then, the zero moment point ZMP reference trajectory can be expressed as follows:
[0153]
[0154] Among them, P zmp (t) represents the reference position of the robot’s ZMP at the control time t, P stance (nT) is the reference position of the supporting mechanical leg in the nth step cycle, P stance ((n+1)T) is the reference position of the supporting mechanical leg in the n+1th step cycle, Spline() is a spline curve interpolation method, such as a cubic spline curve interpolation method, and any interpolation method that can ensure that the velocity and acceleration at the start and contact moments of the reference moving trajectory are zero, and the start and end positions meet the constraints. Spline() is used to interpolate the reference position of the supporting mechanical leg in the nth step cycle and the reference position of the supporting mechanical leg in the n+1th step cycle within the support cycle.
[0155] 3. Based on the ZMP reference trajectory, determine the reference movement trajectory of the robot's center of mass in the first direction.
[0156] Optionally, the reference movement trajectory of the center of mass in the first direction is used to guide the center of mass of the robot to move in the first direction. The reference movement trajectory of the center of mass in the first direction may be a sequence of position components of the center of mass in the first direction sorted in chronological order during the movement of the robot.
[0157] In one example, the movement of the center of mass of the robot in the first direction can be simplified as an inverted pendulum model. Fig.16 , the quadruped wheeled robot can be simplified as an inverted pendulum model 1600, m is the total mass of the robot, P com.x is the position of the center of mass in the first direction (i.e., the x-axis direction) in the world coordinate system, P zmp,x is the position of ZMP in the first direction in the world coordinate system, P com,z It is the position of the center of mass in the second direction (i.e., the z-axis direction) in the world coordinate system.
[0158] The reference moving trajectory of the robot's center of mass in the first direction can be expressed as P at each control moment. com,x The sequence composed of.
[0159] For example, P at each control moment can be calculated based on SLQR (Singular Quadratic Regulator) control. com,x . Among them, SLQR control is a variation of LQR (Linear Quadratic Regulator) control. The objective function of SLQR is still a quadratic functional, but the quadratic weight of its control variable is always 0, and the rest is similar to LQR control. The advantage of using SLQR control is that it avoids the use of the Riccati equation to calculate the feedback coefficient in LQR control, and the feedback coefficient can be calculated directly by numerical iteration, which greatly reduces the amount of calculation and improves the calculation efficiency. The process can specifically include the following contents:
[0160] 1) Construct the state variables of the discrete-time state equation of the robot based on the position of the ZMP, the position of the center of mass of the robot in the first direction, and the speed of the center of mass of the robot in the first direction.
[0161] For each control moment, the state variable at the control moment is constructed according to the ZMP position, the center of mass position in the first direction, and the center of mass speed in the first direction at the control moment. Exemplarily, the state variable at each control moment can be expressed as follows:
[0162]
[0163] The discrete-time state equation of the robot can be expressed as follows:
[0164] x(k+1)=Ax(k)+Bu(k);
[0165] y(k)=Cx(k);
[0166] C = [0 1 0];
[0167] Among them, x(k+1) is the state variable at time k+1 in discrete time, t c represents the control cycle (i.e. the time for each regulator operation), is a constant, y(k) is P at time k zmp,x , which is an unnecessary calculation.
[0168] 2) Using the SLQR control method, the objective function is constructed according to the reference position of the ZMP in the ZMP reference trajectory.
[0169] Exemplarily, the objective function can be expressed as follows:
[0170]
[0171] in, represents the reference position of ZMP in the first direction at time j, P zmp,x represents the actual position of ZMP in the first direction at time j, and u(j) represents the position of ZMP in the first direction at time j.
[0172] 3) Determine the feedback gain matrix based on the objective function.
[0173] Alternatively, the input weight R of the objective function can be directly set to 0, and the feedback gain matrix can be obtained:
[0174]
[0175] 4) Construct the control variables of the discrete time state equation based on the feedback gain matrix, the center of mass position of the robot in the first direction, and the reference position of the ZMP in the ZMP reference trajectory.
[0176] Optionally, the control variable of the discrete-time state equation is the SLQR controller output, and the control variable can be expressed as:
[0177]
[0178] Among them, u(k) is the control variable at time k, δ j is an impulse function, which takes 1 only at the initial moment and 0 at other moments. p is the prediction time under the unit control cycle, is the reference position of ZMP in the ZMP reference trajectory at time k+j.
[0179] 5) Substitute the state variables and control variables into the discrete time state equation and iterate to obtain the reference moving trajectory of the center of mass of the robot in the first direction.
[0180] Optionally, for each control moment, the state variable and the control variable are substituted into the discrete time state equation, and x(k) at each control moment is obtained by iteration, and then y(k) at each control moment is obtained, that is, P at each control moment com,x , and then arrange them in chronological order to obtain the reference moving trajectory of the robot's center of mass in the first direction.
[0181] Optionally, the embodiment of the present application may also use LQR control to calculate P at each control moment. com,x If the robot is described as a linear quadratic LQ problem, the output of the linear system is obtained through iterative calculation of the equation, which is used as the control quantity of the robot to make the robot reach a stable state, and the P at each control moment is calculated. com,x , the embodiments of the present application do not limit this.
[0182] 4. Determine the reference movement trajectory of the center of mass of the robot according to the reference movement trajectory of the center of mass of the robot in the second direction and the reference movement trajectory of the center of mass of the robot in the first direction.
[0183] Optionally, the center-of-mass reference movement trajectory is a combination of the center-of-mass reference movement trajectory of the robot in the second direction and the center-of-mass reference movement trajectory of the robot in the first direction.
[0184] Step S103, interpolating a swing reference movement trajectory of the swing mechanical leg group according to the initial position and the expected position corresponding to the swing mechanical leg group in the step cycle.
[0185] The swing reference movement trajectory may refer to the expected movement trajectory of the swinging mechanical leg. The swing reference movement trajectory of the robot may be composed of the expected movement trajectory corresponding to each step cycle, which may be used to guide the swinging mechanical leg group of the robot to swing. Optionally, the swing reference movement trajectory corresponding to the step cycle may be characterized by the movement trajectory of the foot of the swinging mechanical leg corresponding to the step cycle.
[0186] The initial position and expected position corresponding to the swinging mechanical leg group in the step cycle may respectively refer to: the initial position (i.e., the reference position of the supporting mechanical leg in the current step cycle) and the end position (i.e., the reference position of the supporting mechanical leg in the next step cycle of the current step cycle) of the corresponding supporting mechanical leg in the step cycle.
[0187] In one example, the reference moving trajectory of the robot's swinging mechanical leg can be divided into a first direction (i.e., x-axis direction) and a second direction (i.e., z-axis direction) for planning, and the second direction is perpendicular to the first direction. Then, the process of obtaining the swinging reference moving trajectory may include the following contents:
[0188] 1. Construct a world coordinate system corresponding to the robot. The world coordinate system is constructed with the initial contact point between the robot and the support surface as the origin, the first direction as the x-axis direction, and the second direction perpendicular to the first direction as the z-axis direction.
[0189] The method of constructing the world coordinate system is the same as above and will not be repeated here.
[0190] 2. Use the spline curve interpolation method to interpolate the position component of the initial position in the first direction and the position component of the expected position in the first direction to obtain the swing reference movement trajectory of the swing mechanical leg group in the first direction.
[0191] Exemplarily, the interpolation is performed using a cubic spline curve interpolation method, and the swing reference movement trajectory in the first direction can be expressed as follows:
[0192] P swing,x (t n )=a0+a1t n +a2t n 2 +a3t n 3 ;
[0193] Among them, t n ∈[0, (1-α)T], and t n =t-nT, which represents the control time normalized by the step cycle T in the nth step cycle, P swing,x (t n ) represents the control time t, the reference position of the swinging mechanical leg in the first direction, and a0...a3 represent coefficients, which can be calculated according to the following constraints:
[0194] P swing,x (0) = a0 = P stance,x (nT);
[0195] P swing,x (T) = a0 + a1T + a2T 2 +a3T 3 =P stance,x ((n+1)T);
[0196]
[0197]
[0198] Optionally, in the process of using the cubic spline curve interpolation method to obtain the swing reference movement trajectory in the first direction, parameters corresponding to the cubic spline curve interpolation method can be set to prevent the swinging mechanical leg from colliding with the supporting surface in the first direction.
[0199] 3. Use the spline curve interpolation method to interpolate the position component of the initial position in the second direction and the position component of the expected position in the second direction to obtain the swing reference movement trajectory of the swing mechanical leg group in the second direction.
[0200] The process of acquiring the swing reference movement trajectory in the second direction is similar to the process of acquiring the swing reference movement trajectory in the first direction. However, when the support surface includes multiple areas with different heights, in order to avoid the robot's foot colliding with the support surface, the swing reference movement trajectory in the second direction can be divided into the same number of segments as the number of areas that need to be crossed according to the number of areas that the robot needs to cross during a step cycle, so as to perform planning to avoid the robot colliding with the areas that need to be crossed.
[0201] Exemplarily, in the case where the support surface is a staircase including m steps, m is a positive integer, for each step, a sub-expected position of the swinging mechanical leg group at the step is obtained, the foot of the swinging mechanical leg located at the sub-expected position is higher than the step in the second direction and does not contact the step in the first direction; interpolation is performed one by one in chronological order between the initial position, the sub-expected positions corresponding to the m steps, and the expected position, to obtain a swing reference movement trajectory of the swinging mechanical leg group. Wherein, m is a positive integer.
[0202] For example, when the robot climbs the first step, the swinging mechanical leg only needs to step onto the first step, so the swinging reference movement trajectory in the second direction can be divided into two sections for planning; when the robot climbs the second step, the swinging mechanical leg needs to pass the first step and step onto the second step, so the swinging reference movement trajectory in the second direction can be divided into three sections for planning.
[0203] Taking the planning of dividing the swing reference movement trajectory in the second direction into two sections as an example, assuming that the time corresponding to the expected position is 1 / 2 of the swing period (which can be set and adjusted according to actual usage requirements), the cubic spline curve interpolation method is used for interpolation. The swing reference movement trajectory in the second direction in the first stage can be expressed as follows:
[0204] P swing,z (t n )=a0+a1t n +a2t n 2 +a3t n 3 ;
[0205] Among them, t n ∈[0, (1-α)T / 2], and t n =t-nT, which represents the control time normalized by the step cycle T in the nth step cycle, P swing,z(t n ) represents the control time t, the reference position of the swinging mechanical leg in the second direction, a0...a3 represents the coefficients, which can be calculated according to the following constraints:
[0206] P swing,z (0) = a0 = P stance,z (nT);
[0207] P swing,z ((1-α)T / 2)=a0+a1T+a2T 2 +a3T 3 =P stance,z (nT)+βH s ;
[0208]
[0209]
[0210] Among them, β∈[1, 1.5] is the height coefficient, which represents the proportion of the foot of the swinging mechanical leg exceeding the step height in the nth step cycle.
[0211] Using the cubic spline interpolation method, the swing reference movement trajectory in the second direction in the second stage can be expressed as follows:
[0212] P swing,z (t n )=a0+a1t n +a2t n 2 +a3t n 3 ;
[0213] Among them, t n ∈[(1-α)T / 2, (1-α)T], and t n =t-nT, which represents the control time of the nth step cycle normalized according to the step cycle T, P swing,z (t n ) represents the reference position of the swinging mechanical leg in the second direction at the control moment, and a0...a3 represents the coefficients, which can be calculated according to the following constraints:
[0214] P swing,z ((1-α)T / 2)=a0=P stance,z (nT)+βH s ;
[0215] P swing,z ((1-α)T)=a0+a1T+a2T 2 +a3T 3 =P stance,z((n+1)T);
[0216]
[0217]
[0218] The swing reference movement trajectory in the second direction in the first stage is spliced with the swing reference movement trajectory in the second direction in the second stage to obtain the swing reference movement trajectory in the second direction.
[0219] 4. According to the swing reference movement trajectory of the swing mechanical leg group in the first direction and the swing reference movement trajectory of the swing mechanical leg group in the second direction, a swing reference movement trajectory of the swing mechanical leg group is obtained.
[0220] Optionally, the swing reference movement trajectory is a combination of a swing reference movement trajectory of the swing mechanical leg group in the first direction and a swing reference movement trajectory of the swing mechanical leg group in the second direction.
[0221] Step S104, controlling the robot to swing the swinging mechanical leg group in a first direction with the supporting mechanical leg group as support according to the mass center reference movement trajectory and the swinging reference movement trajectory.
[0222] Optionally, the robot determines the reference position of the center of mass of the robot, the reference position of the swinging mechanical legs and the reference position of the supporting mechanical legs at each control moment according to the center of mass reference moving trajectory, the swinging reference moving trajectory and the supporting reference moving trajectory. The robot controls each mechanical leg, the body and the waist to follow each reference position at each control moment in time sequence, thereby swinging the swinging mechanical leg group in the first direction with the supporting mechanical leg group as the support, and then completing the moving task on the supporting surface.
[0223] For example, in the robot climbing stairs scenario, the robot follows the center of mass reference moving trajectory, the swing reference moving trajectory and the support reference moving trajectory, and the stair climbing task can be completed after n step cycles (n can be the number of steps at this time); in the robot crossing the shoulder scenario, the robot follows the center of mass reference moving trajectory, the swing reference moving trajectory and the support reference moving trajectory, and the shoulder crossing task can be completed after n step cycles (n can be 2 at this time, that is, two swing processes); in the robot crossing the shoulder scenario, the robot follows the center of mass reference moving trajectory, the swing reference moving trajectory and the support reference moving trajectory, and the pit crossing task can be completed after n step cycles (n can be 2 at this time, that is, two swing processes).
[0224] In some embodiments, reference Figure 17-20 , which exemplarily shows the following process of each reference movement trajectory.
[0225] exist Fig.17 In the figure, curve 1701 is the support reference movement trajectory of the first direction (i.e., the forward direction) corresponding to the support mechanical leg group, and curve 1702 is the actual movement trajectory of the first direction (i.e., the forward direction) corresponding to the support mechanical leg group. Curve 1703 is the support reference movement trajectory of the second direction (i.e., the vertical direction) corresponding to the support mechanical leg group, and curve 1704 is the actual movement trajectory of the second direction (i.e., the vertical direction) corresponding to the support mechanical leg group. It can be seen that the robot can follow the support reference movement trajectory well to achieve the support function of the support mechanical leg group.
[0226] exist Fig.18 In the figure, curve 1801 is the swing reference movement trajectory of the swing mechanical leg group in the first direction (i.e., the forward direction), and curve 1802 is the actual movement trajectory of the swing mechanical leg group in the first direction (i.e., the forward direction). Curve 1803 is the swing reference movement trajectory of the swing mechanical leg group in the second direction (i.e., the vertical direction), and curve 1804 is the actual movement trajectory of the swing mechanical leg group in the second direction (i.e., the vertical direction). It can be seen that the robot can follow the swing reference movement trajectory well to realize the swinging effect of the swing mechanical leg group.
[0227] exist Fig.19 and Fig. 20 In the figure, curve 1901 is the ZMP reference trajectory in the first direction (i.e., the forward direction) corresponding to the ZMP, and curve 1902 is the center of mass reference moving trajectory in the first direction corresponding to the center of mass. Curve 1903 is the actual moving trajectory in the first direction corresponding to the center of mass. It can be seen that the robot can follow the center of mass reference moving trajectory in the first direction well to adjust the center of mass of the robot.
[0228] In summary, the technical solution provided by the embodiment of the present application is that for a robot having a first mechanical leg group and a second mechanical leg group, since the rotation centers of the corresponding hip joints are located in the same vertical plane, the robot can be kept standing by one set of mechanical legs, and the other set of mechanical legs can be swung to enable the robot to move quickly in a dynamic equilibrium state (i.e., the center of gravity of the robot can exceed the support area of the robot), thereby improving the movement efficiency of the robot. At the same time, controlling the movement of the robot by alternately swinging the first mechanical leg group and the second mechanical leg group can further improve the movement efficiency of the robot.
[0229] In addition, by adopting the technical solution provided in the embodiments of the present application, the robot can have the ability to overcome obstacles, such as climbing stairs, crossing shoulders, crossing pits, etc., thereby improving the robot's ability to adapt to the real environment.
[0230] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0231] refer to Fig.21 , which shows a block diagram of a robot control device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned robot control method, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the computer device introduced above (such as a wheel-legged robot), or it can be placed in a computer device. Fig.21 As shown, the device 2100 includes a standing state control module 2101 and a swinging state control module 2102 .
[0232] The standing state control module 2101 is used to stand on the support surface in an overlapping standing state, and the position error of each mechanical leg of the robot in the overlapping standing state in the first direction is zero.
[0233] The swing state control module 2102 is used to control the first mechanical leg group and the second mechanical leg group to swing alternately and move in the first direction on the support surface.
[0234] In some embodiments, the robot stops moving after n step cycles, where the step cycle is used to indicate the duration of a swing of the first mechanical leg group or the second mechanical leg group, and n is a positive integer;
[0235] like Fig. 22 As shown, the swing state control module 2102 includes: a mechanical leg allocation submodule 2102a and a swing state control submodule 2102b.
[0236] The mechanical leg allocation submodule 2102a is used to determine, for each step cycle, from the first mechanical leg group and the second mechanical leg group, a supporting mechanical leg group and a swinging mechanical leg group corresponding to the step cycle.
[0237] The swing state control submodule 2102b is used to swing the swing mechanical leg group toward the first direction with the support of the supporting mechanical leg group.
[0238] The swing state control submodule 2102b is further configured to stop swinging the swing mechanical leg group when the swing mechanical leg group reaches a desired position corresponding to the step cycle on the support surface.
[0239] In some embodiments, Fig. 22As shown, the swing state control submodule 2102b includes: a support trajectory determination unit 2102b1, a center of mass trajectory determination unit 2102b2, a swing trajectory determination unit 2102b3 and a swing state control unit 2102b4.
[0240] The support trajectory determination unit 2102b1 is used to determine the support reference movement trajectory of the supporting mechanical leg group according to the size information of the area corresponding to the step cycle on the support surface and the step length of the robot in the step cycle.
[0241] The center of mass trajectory determination unit 2102b2 is used to determine the center of mass reference movement trajectory of the robot according to the support reference movement trajectory of the supporting mechanical leg group, and the center of mass reference movement trajectory refers to the reference movement trajectory of the center of mass of the robot.
[0242] The swing trajectory determination unit 2102b3 is used to interpolate the swing reference movement trajectory of the swing mechanical leg group according to the initial position and the expected position corresponding to the swing mechanical leg group in the step cycle.
[0243] The swing state control unit 2102b4 is used to control the robot to swing the swing mechanical leg group in the first direction with the support of the supporting mechanical leg group according to the center of mass reference movement trajectory and the swing reference movement trajectory.
[0244] In some embodiments, the stepping cycle includes a swing cycle and a support cycle, the mechanical leg in the swing cycle is in a swing state, and the mechanical leg in the support cycle is in a support state; the center of mass trajectory determination unit 2102b2 is used to:
[0245] According to the support reference movement trajectory, the support period ratio, and the constant height of the center of mass of the robot relative to the foot of the supporting mechanical leg group, determine the center of mass reference movement trajectory of the robot in the second direction; wherein the support period ratio is used to indicate the proportion of time that the swinging mechanical leg of the robot is in the support state in each step cycle, and within the swinging cycle, the center of mass reference movement trajectory in the second direction is obtained by combining the initial position and the end position in the support reference movement trajectory with the constant height interpolation, and within the support cycle, the center of mass reference movement trajectory in the second direction is determined by the end position in the support reference movement trajectory and the constant height, and the second direction is perpendicular to the first direction;
[0246] Determine the zero moment point ZMP reference trajectory of the robot according to the support reference movement trajectory and the support period ratio; wherein, within the swing period, the ZMP reference trajectory is the same as the reference trajectory of the contact point between the support mechanical leg group and the support surface, and within the support period, the ZMP reference trajectory is obtained by interpolating the initial position and the end position in the support reference movement trajectory;
[0247] Determining a reference movement trajectory of the center of mass of the robot in the first direction according to the ZMP reference trajectory;
[0248] The reference movement trajectory of the center of mass of the robot is determined according to the reference movement trajectory of the center of mass of the robot in the second direction and the reference movement trajectory of the center of mass of the robot in the first direction.
[0249] In some embodiments, the center of mass trajectory determination unit 2102b2 is further used to:
[0250] Constructing state variables of a discrete-time state equation of the robot based on the position of the ZMP, the center-of-mass position of the robot in the first direction, and the center-of-mass velocity of the robot in the first direction;
[0251] Using a singular linear quadratic machine SLQR control method, constructing an objective function according to a reference position of the ZMP in the ZMP reference trajectory;
[0252] According to the objective function, determining a feedback gain matrix;
[0253] constructing control variables of the discrete-time state equation according to the feedback gain matrix, the center of mass position of the robot in the first direction, and the reference position of the ZMP in the ZMP reference trajectory;
[0254] The state variable and the control variable are introduced into the discrete time state equation, and a reference movement trajectory of the center of mass of the robot in the first direction is obtained by iteration.
[0255] In some embodiments, the swing trajectory determination unit 2102b3 is used to:
[0256] Constructing a world coordinate system corresponding to the robot, wherein the world coordinate system is constructed with the initial contact point between the robot and the support surface as the origin, the first direction as the x-axis direction, and a second direction perpendicular to the first direction as the z-axis direction;
[0257] Using a spline curve interpolation method, interpolate the position component of the initial position in the first direction and the position component of the expected position in the first direction to obtain a swing reference movement trajectory of the swing mechanical leg group in the first direction;
[0258] Using a spline curve interpolation method, interpolate the position component of the initial position in the second direction and the position component of the desired position in the second direction to obtain a swing reference movement trajectory of the swing mechanical leg group in the second direction;
[0259] The swing reference movement trajectory of the swing mechanical leg group is obtained according to the swing reference movement trajectory of the swing mechanical leg group in the first direction and the swing reference movement trajectory of the swing mechanical leg group in the second direction.
[0260] In some embodiments, the support surface is a staircase including m steps, where m is a positive integer; the swing trajectory determination unit 2102b3 is further used to:
[0261] For each of the steps, obtaining a sub-expected position of the swing mechanical leg group at the step, wherein the foot of the swing mechanical leg located at the sub-expected position is higher than the step in the second direction and does not contact the step in the first direction;
[0262] Interpolation is performed one by one in chronological order between the initial position, the sub-expected positions corresponding to the m steps respectively, and the expected position to obtain a swing reference movement trajectory of the swing mechanical leg group.
[0263] In some embodiments, the step cycle includes a swing cycle and a support cycle, the mechanical leg in the swing cycle is in a swing state, and the mechanical leg in the support cycle is in a support state; the mechanical leg allocation submodule 2102a is used to:
[0264] According to the n step cycles and the support period ratio of the robot, the gait information of the robot is obtained, wherein the support period ratio is used to indicate the proportion of time that the swinging mechanical leg of the robot is in the support state in each step cycle, and the gait information is used to indicate whether the mechanical leg of the robot is a swinging mechanical leg in each step cycle;
[0265] According to the gait information, a supporting mechanical leg group and a swinging mechanical leg group corresponding to the step cycle are determined from the first mechanical leg group and the second mechanical leg group.
[0266] In some embodiments, the swing state control module 2102 is used to increase the leg length of each supporting mechanical leg in the supporting mechanical leg group during the swinging period of the step cycle while the swinging mechanical leg group is swinging in the first direction.
[0267] In some embodiments, the hip joints of the robot are coaxial.
[0268] In some embodiments, the mechanical legs in the first mechanical leg group move synchronously, the mechanical legs in the second mechanical leg group move synchronously, and the body of the robot remains vertical during the movement of the robot.
[0269] In summary, the technical solution provided by the embodiment of the present application is that for a robot having a first mechanical leg group and a second mechanical leg group, since the rotation centers of the corresponding hip joints are located in the same vertical plane, the robot can be kept standing by one set of mechanical legs, and the other set of mechanical legs can be swung to enable the robot to move quickly in a dynamic equilibrium state (i.e., the center of gravity of the robot can exceed the support area of the robot), thereby improving the movement efficiency of the robot. At the same time, controlling the movement of the robot by alternately swinging the first mechanical leg group and the second mechanical leg group can further improve the movement efficiency of the robot.
[0270] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0271] Please refer to Fig.23 , which shows a simplified structural block diagram of a computer device provided by an embodiment of the present application. The computer device may refer to any electronic device with data calculation, processing and storage capabilities.
[0272] Alternatively, if Fig.23As shown, the computer device includes a processor 2301 and a memory 2302. The processor 2301 includes but is not limited to any one of the following: CPU (Central Processing Unit), GPU (Graphics Processing Unit) and FPGA (Field Programmable Gate Array). The memory 2302 may include storage devices such as RAM (Random-Access Memory) and ROM (Read-Only Memory). The processor 2301 and the memory 2302 may be connected via a system bus.
[0273] In some embodiments, a computer program is stored in the memory 2302 , and the computer program is loaded and executed by the processor 2301 to implement the above-mentioned robot control method.
[0274] In some embodiments, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor of a computer device, the control method of the robot is implemented.
[0275] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0276] In some embodiments, a computer program product is further provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned robot control method.
[0277] It should be noted that, before collecting the relevant data of the user and during the process of collecting the relevant data of the user, the embodiment of the present application can display a prompt interface, a pop-up window or output a voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that the relevant data is currently being collected, so that the present application only starts to execute the relevant steps of obtaining the relevant data of the user after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining the relevant data of the user are terminated, that is, the relevant data of the user is not obtained. In other words, all user data collected by this application are processed strictly in accordance with the requirements of the laws and regulations of relevant countries, and the informed consent or separate consent of the subject of personal information is obtained with the consent and authorization of the user. The subsequent data use and processing behavior is carried out within the scope of authorization of laws and regulations and the subject of personal information, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the real environment, support surface, etc. involved in this application are all obtained with full authorization.
[0278] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0279] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A robot control method, characterized in that: The robot comprises a body, a first mechanical leg group and a second mechanical leg group connected to the body via a hip joint, at least one of the first mechanical leg group and the second mechanical leg group comprises at least two mechanical legs, and a rotation center of a hip joint corresponding to the first mechanical leg group and a rotation center of a hip joint corresponding to the second mechanical leg group are located in the same vertical plane; the method comprises: Standing on the support surface in an overlapping standing state, wherein the position error of each mechanical leg of the robot in the overlapping standing state in the first direction is zero; The first mechanical leg group and the second mechanical leg group are controlled to swing alternately and move toward the first direction on the supporting surface.
2. The method according to claim 1, characterized in that The robot stops moving after n stepping cycles, where the stepping cycle is used to indicate the time length for the first mechanical leg group or the second mechanical leg group to complete a swing, and n is a positive integer; The controlling the first mechanical leg group and the second mechanical leg group to swing alternately and move in the first direction on the supporting surface includes: For each of the stepping cycles, determining a supporting mechanical leg group and a swinging mechanical leg group corresponding to the stepping cycle from the first mechanical leg group and the second mechanical leg group; Using the supporting mechanical leg group as support, swinging the swinging mechanical leg group toward the first direction; When the swinging mechanical leg group reaches the desired position corresponding to the stepping cycle on the support surface, the swinging mechanical leg group is stopped.
3. The method according to claim 2, characterized in that The step of swinging the swinging mechanical leg group in the first direction with the support of the supporting mechanical leg group comprises: Determine the support reference movement trajectory of the supporting mechanical leg group according to the size information of the area corresponding to the step cycle on the supporting surface and the step length of the robot in the step cycle; Determine the reference movement trajectory of the center of mass of the robot according to the support reference movement trajectory of the support mechanical leg group, wherein the reference movement trajectory of the center of mass refers to the reference movement trajectory of the center of mass of the robot; interpolating a swing reference movement trajectory of the swing mechanical leg group according to the initial position and the expected position corresponding to the swing mechanical leg group in the step cycle; According to the mass center reference movement trajectory and the swing reference movement trajectory, the robot is controlled to swing the swing mechanical leg group toward the first direction with the support of the support mechanical leg group.
4. The method according to claim 3, characterized in that The stepping cycle includes a swinging cycle and a supporting cycle, the mechanical leg in the swinging cycle is in a swinging state, and the mechanical leg in the supporting cycle is in a supporting state; The step of determining the center of mass reference movement trajectory of the robot according to the support reference movement trajectory of the support mechanical leg group comprises: According to the support reference movement trajectory, the support period ratio, and the constant height of the center of mass of the robot relative to the foot of the supporting mechanical leg group, determine the center of mass reference movement trajectory of the robot in the second direction; wherein the support period ratio is used to indicate the proportion of time that the swinging mechanical leg of the robot is in the support state in each step cycle, and within the swinging cycle, the center of mass reference movement trajectory in the second direction is obtained by combining the initial position and the end position in the support reference movement trajectory with the constant height interpolation, and within the support cycle, the center of mass reference movement trajectory in the second direction is determined by the end position in the support reference movement trajectory and the constant height, and the second direction is perpendicular to the first direction; Determine the zero moment point ZMP reference trajectory of the robot according to the support reference movement trajectory and the support period ratio; wherein, within the swing period, the ZMP reference trajectory is the same as the reference trajectory of the contact point between the support mechanical leg group and the support surface, and within the support period, the ZMP reference trajectory is obtained by interpolating the initial position and the end position in the support reference movement trajectory; Determining a reference movement trajectory of the center of mass of the robot in the first direction according to the ZMP reference trajectory; The reference movement trajectory of the center of mass of the robot is determined according to the reference movement trajectory of the center of mass of the robot in the second direction and the reference movement trajectory of the center of mass of the robot in the first direction.
5. The method according to claim 4, characterized in that Determining the reference movement trajectory of the center of mass of the robot in the first direction according to the ZMP reference trajectory includes: Constructing state variables of a discrete-time state equation of the robot based on the position of the ZMP, the center-of-mass position of the robot in the first direction, and the center-of-mass velocity of the robot in the first direction; Using a singular linear quadratic machine SLQR control method, constructing an objective function according to a reference position of the ZMP in the ZMP reference trajectory; According to the objective function, determining a feedback gain matrix; constructing control variables of the discrete-time state equation according to the feedback gain matrix, the center of mass position of the robot in the first direction, and the reference position of the ZMP in the ZMP reference trajectory; The state variable and the control variable are introduced into the discrete time state equation, and a reference movement trajectory of the center of mass of the robot in the first direction is obtained by iteration.
6. The method according to claim 3, characterized in that The step of interpolating a swing reference movement trajectory of the swing mechanical leg group according to the initial position and the expected position corresponding to the swing mechanical leg group in the step cycle includes: Constructing a world coordinate system corresponding to the robot, wherein the world coordinate system is constructed with the initial contact point between the robot and the support surface as the origin, the first direction as the x-axis direction, and a second direction perpendicular to the first direction as the z-axis direction; Using a spline curve interpolation method, interpolate the position component of the initial position in the first direction and the position component of the expected position in the first direction to obtain a swing reference movement trajectory of the swing mechanical leg group in the first direction; Using a spline curve interpolation method, interpolate the position component of the initial position in the second direction and the position component of the desired position in the second direction to obtain a swing reference movement trajectory of the swing mechanical leg group in the second direction; The swing reference movement trajectory of the swing mechanical leg group is obtained according to the swing reference movement trajectory of the swing mechanical leg group in the first direction and the swing reference movement trajectory of the swing mechanical leg group in the second direction.
7. The method according to claim 3, characterized in that The support surface is a staircase comprising m steps, where m is a positive integer; The step of interpolating a swing reference movement trajectory of the swing mechanical leg group according to the initial position and the expected position corresponding to the swing mechanical leg group in the step cycle includes: For each of the steps, obtaining a sub-expected position of the swing mechanical leg group at the step, wherein the foot of the swing mechanical leg located at the sub-expected position is higher than the step in the second direction and does not contact the step in the first direction; Interpolation is performed one by one in chronological order between the initial position, the sub-expected positions corresponding to the m steps respectively, and the expected position to obtain a swing reference movement trajectory of the swing mechanical leg group.
8. The method according to claim 2, characterized in that: The stepping cycle includes a swinging cycle and a supporting cycle, the mechanical leg in the swinging cycle is in a swinging state, and the mechanical leg in the supporting cycle is in a supporting state; The step of determining the supporting mechanical leg group and the swinging mechanical leg group corresponding to the stepping cycle from the first mechanical leg group and the second mechanical leg group includes: According to the n step cycles and the support period ratio of the robot, the gait information of the robot is obtained, wherein the support period ratio is used to indicate the proportion of time that the swinging mechanical leg of the robot is in the support state in each step cycle, and the gait information is used to indicate whether the mechanical leg of the robot is a swinging mechanical leg in each step cycle; According to the gait information, a supporting mechanical leg group and a swinging mechanical leg group corresponding to the step cycle are determined from the first mechanical leg group and the second mechanical leg group.
9. The method according to claim 2, characterized in that: The step of swinging the swinging mechanical leg group in the first direction with the support of the supporting mechanical leg group comprises: In the swinging cycle of the stepping cycle, when the swinging mechanical leg group swings toward the first direction, the leg length of each supporting mechanical leg in the supporting mechanical leg group is increased.
10. The method according to any one of claims 1 to 9, characterized in that: The hip joints of the robot are coaxial.
11. The method according to any one of claims 1 to 9, characterized in that: The mechanical legs in the first mechanical leg group move synchronously, the mechanical legs in the second mechanical leg group move synchronously, and the body of the robot remains vertical during the movement of the robot.
12. A robot control device, characterized in that: The robot comprises a body, a first mechanical leg group and a second mechanical leg group connected to the body via a hip joint, at least one of the first mechanical leg group and the second mechanical leg group comprises at least two mechanical legs, and the rotation center of the hip joint corresponding to the first mechanical leg group and the rotation center of the hip joint corresponding to the second mechanical leg group are located in the same vertical plane; the device comprises: A standing state control module, used for standing on a support surface in an overlapping standing state, wherein a position error of each mechanical leg of the robot in the overlapping standing state in a first direction is zero; The swing state control module is used to control the first mechanical leg group and the second mechanical leg group to swing alternately and move in the first direction on the support surface.
13. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the robot control method according to any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the robot control method according to any one of claims 1 to 11.
15. A computer program product, characterized in that The computer program product comprises a computer program, the computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the robot control method according to any one of claims 1 to 11.
Citation Information
Patent Citations
All-landform walking device and control method thereof
CN104973163A
Trajectory planning system and method for robot
CN112720462A
Method of Controlling a Robot
US20140257559A1
Cited By
Robot control method and apparatus, device, and storage medium
EP4609998A1
