A blind stair climbing method for a quadruped robot and a quadruped robot

By recalculating the foothold and adjustment trajectory of the swinging legs in each control cycle of the quadruped robot, combined with multiple polynomial planning and collision detection, the collision problem when blindly climbing stairs is solved, and the robot's performance in uncertain environments is improved. Stable climbing ability.

CN116039797BActive Publication Date: 2024-08-27HUAZHONG UNIV OF SCI & TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310024392.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-09
Publication Date
2024-08-27
Estimated Expiration
2043-01-09

AI Technical Summary

Technical Problem

Existing quadruped robots rely on insufficient prior terrain information when blindly climbing stairs, making it difficult to plan a collision-free trajectory, resulting in frequent collisions, and being unable to effectively climb stairs in an environment where visual sensors are difficult to obtain information.

Method used

By recalculating the expected foothold position of the swinging leg in each control cycle, adjusting the initial swing trajectory, and detecting collisions during the swing, adjusting the trajectory of the swinging leg to avoid collisions, using multiple polynomial planning trajectories and collision detection mechanisms, Ensure that the robot climbs stably during blind climbing.

Benefits of technology

It improves the stability and anti-collision ability of the quadruped robot when blindly climbing stairs, reduces the impact of collisions on climbing, and enhances the ability to climb steps in uncertain environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116039797B
    Figure CN116039797B
Patent Text Reader

Abstract

The invention discloses a method for blindly climbing stairs of a quadruped robot and a quadruped robot. The method comprises: recalculating the expected landing point position of a swinging leg and planning the swinging trajectory of the swinging leg in each control cycle; detecting whether the swinging leg collides during the swinging period; when the swinging leg does not collide, controlling the swinging leg to swing according to the latest planned initial swinging trajectory; when it is detected that the swinging leg collides with the vertical surface of the stairs during the lifting process, D Adjust the trajectory so that the collision position remains unchanged, and follow the Z D Raise your legs toward the trajectory until you reach Z D After reaching the highest point of the trajectory, continue to swing according to the initial swing trajectory; when it is detected that the swing leg hits the vertical surface of the step during the falling process, the X in the subsequent control cycle is D The trajectory is set to the X coordinate of the current collision position. D The above method can reduce the impact of collision on the robot's climbing and improve the stability of the robot's blind climbing of stairs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of robot control, and more specifically, relates to a blind ladder climbing method for a quadruped robot and a quadruped robot. Background Art

[0002] Stairs are typical obstacles in the structural environment and are typical representatives of rugged terrain. They can be found everywhere in human living environments. For walking through stair terrain, a foot-type structure is the best choice. Giving foot-type robots the ability to climb stairs, enabling them to adapt to human living environments, and achieving environmental integration between robots and humans has always been the focus and hotspot of research in related fields.

[0003] Most existing stair climbing methods are "explicit climbing", that is, pre-setting or using visual sensors to obtain prior information on the stair terrain, and then reasonably planning the fuselage posture and the trajectory of the swinging legs and feet. However, this method is completely dependent on prior terrain information and is difficult to work in certain scenarios, such as smoke, fog, haze, or in caves, at night, and other environments where visual sensors cannot obtain terrain information.

[0004] In recent years, "blind climbing" has gradually received research attention as an important supplement to the "explicit climbing" method. "Blind climbing" has no prior knowledge of the terrain, and can only estimate the local terrain a posteriori through the fusion of the robot's internal receptors and tactile information, and adjust the body posture accordingly. However, the local terrain information obtained is not enough to plan a collision-free trajectory for the swinging leg. It can only be tried according to the pre-set foot end motion trajectory, and reflex adjustments are made based on the contact events of the trial. The swinging leg will inevitably collide with the steps of the stairs. Therefore, in the case of "blind climbing", the robot needs to have high dynamic stability and the ability to handle unexpected collision events. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a method for blindly climbing stairs of a quadruped robot and a quadruped robot, the purpose of which is to stably control the robot to blindly climb stairs.

[0006] To achieve the above object, according to one aspect of the present invention, a method for blindly climbing stairs for a quadruped robot is provided, wherein the swinging legs are controlled to swing according to a planned swinging trajectory within a set swinging cycle, and each swinging cycle is divided into a plurality of control cycles; a world coordinate system {X D ,Y D ,Z D}, where X D , Z D are the horizontal forward direction and vertical lifting direction of the quadruped robot, X D Y D is a horizontal plane;

[0007] The planning method of the swing trajectory of each swing cycle includes:

[0008] In each control cycle, the expected footfall position of the swing leg is recalculated and the initial swing trajectory of the swing leg is replanned with the foot end position of the initial swing of the swing leg as the starting point and the expected footfall position as the end point. The initial swing trajectory includes X D Trajectory and Z D Towards trajectory;

[0009] During the swing, detect whether the swinging leg has a collision:

[0010] When the swinging leg does not collide, the swinging leg is controlled to swing according to the initial swinging trajectory;

[0011] When it is detected that the swinging leg hits the vertical surface of the stair step during the lifting process, the X D Adjust the trajectory so that the collision position remains unchanged, and follow the Z D Raise your legs toward the trajectory until you reach Z D After reaching the highest point of the trajectory, continue to swing along the initial swing trajectory;

[0012] When it is detected that the swing leg hits the vertical surface of the step during the falling process, the X in the subsequent control cycle is D The trajectory is set to the X coordinate of the current collision position. D Coordinates move backward by a preset step size.

[0013] In one embodiment, when the quadruped robot blindly climbs the stairs, at least the front and rear legs on opposite sides are supported as supporting legs on the planes of two upper and lower adjacent stairs. The blind climbing stairs method further includes setting the pitch angle of the fuselage, specifically including:

[0014] Identify the latest supporting leg, calculate the angle β between the connecting line of the front and rear supporting leg feet and the horizontal plane, and the vertical distance h between the front and rear supporting leg feet t , adjust the pitch angle θ of the fuselage e , when the vertical spacing h t <0.1(l2+l3), let the pitch angle θ e =0, otherwise, let the pitch angle θ e =β, where l2 and l3 represent the length of the thigh and calf supporting the front leg respectively.

[0015] In one embodiment,

[0016] Calculating the expected footfall position of the swing leg in the current swing cycle includes calculating the expected footfall position p of the swing leg on the horizontal plane. i,e,x-y and the maximum expected height z in the vertical lift direction i ,in,

[0017] Z D The maximum expected height z i The calculation formula is:

[0018] z i =z i,0 +(h max +h0)

[0019] Among them, z i,0 is the initial height of the foot end of the swing leg i in the world coordinate system during the current swing cycle, h max is the maximum step height of the set ladder, and h0 is the margin for the set height increase;

[0020] The expected landing point of the swinging leg on the horizontal plane p i,e,x-y The calculation formula is:

[0021]

[0022] Among them, p i,h,d,x-y The hip joint position of the corresponding swing leg i is at X D Y D Projection coordinates on the horizontal plane, T c is the support time of the supporting leg, v c,d,x-y is the center of mass of the fuselage at X D Y D The moving speed of the projection on the horizontal plane, g is the acceleration due to gravity, v is c,e,x-y is the center of mass of the fuselage at X D Y D The expected velocity of the projection on the horizontal plane, v c,d,x-y is the center of mass of the fuselage at X D Y D The actual speed of the projection on the horizontal plane.

[0023] In one embodiment, planning an initial swing trajectory in a current control cycle specifically includes:

[0024] The initial swing trajectory is planned based on a cubic polynomial, with the foot end position of the initial swing leg as the starting point and the expected foot landing point as the end point.

[0025] In one embodiment, planning the initial swing trajectory includes planning X D Trajectory and Z D Towards trajectory, where Z D The planning of the directional trajectory includes the Z D Z of the second half of the swing trajectory and swing D Towards the trajectory, the Z of the first half of the swing cycle D The trajectory is the Z position of the foot end of the initial swing of the swing leg DThe coordinates are taken as the starting point and the desired highest position is taken as Z D Plan towards the coordinate as the end point; Z of the second half of the swing cycle D The trajectory is to take the desired highest position as Z D The Z coordinates of the initial swing of the swing leg are taken as the starting point and the foot position of the swing leg is taken as the starting point. D Plan towards the end point.

[0026] In one of the embodiments, the coordinate position and swing speed of the swinging leg at the next moment are determined based on the initial swing trajectory.

[0027] In one embodiment, the method for detecting whether a swinging leg has collided includes:

[0028] Calculate the X at the foot of the swinging leg D The speed difference between the expected speed and the actual speed is calculated, and the speed difference is compared with a set threshold. When the speed difference is greater than the set threshold and no foot-ground contact information is detected, it is determined that the current swinging leg hits the vertical surface of the stair step;

[0029] When it is detected that the current swinging leg hits the vertical surface of the stair step, it is determined whether the swinging time of the current swinging leg is greater than half a swinging cycle. If the swinging time of the current swinging leg is greater than half a swinging cycle, it is determined that the swinging leg hits the vertical surface of the stair step during the falling process. When the swinging time of the current swinging leg is less than or equal to half a swinging cycle, it is determined that the swinging leg hits the vertical surface of the stair step during the lifting process.

[0030] In one of the embodiments, when the foot end of the swinging leg detects the ground contact information, it is calculated whether the swinging time of the current swinging leg is less than 80% of the swinging cycle. If so, the initial swinging trajectory planned in the subsequent control cycle of the current swinging leg is set to the ground contact position and maintained unchanged.

[0031] In one embodiment, the preset step length of retreat is 20 mm to 40 mm.

[0032] A quadruped robot comprises a body, four legs and a control system for controlling the quadruped robot to blindly climb stairs, wherein the control system comprises a parameter setting module, a coordinate system determination module, an initial swing trajectory planning module, a collision detection module and a processing module, wherein:

[0033] The parameter setting module is used to determine the swing cycle and the control cycle, wherein each swing cycle is divided into a plurality of control cycles, and the swing leg completes the swing according to the planned swing trajectory within the set swing cycle;

[0034] The coordinate system determination module is used to define the world coordinate system {X D ,Y D ,Z D}, where XD Toward is the horizontal moving direction of the quadruped robot, X D Y D is the horizontal plane, Z D It is the vertical lifting direction of the quadruped robot;

[0035] The initial swing trajectory planning module recalculates the expected footfall position of the swing leg in each control cycle and replans the swing trajectory of the swing leg with the initial swing foot end position of the swing leg as the starting point and the expected footfall position as the end point. The initial swing trajectory includes X D Trajectory and Z D Towards trajectory;

[0036] The collision detection module is used to detect whether the swinging leg has a collision during the swinging of the swinging leg;

[0037] The processing module is used to control the swing leg to swing according to the latest planned initial swing trajectory when the swing leg does not collide; when it is detected that the swing leg hits the vertical surface of the step during the lifting process, D Adjust the trajectory so that the collision position remains unchanged, and follow the Z D Raise your legs toward the trajectory until you reach Z D After reaching the highest point of the trajectory, continue to swing according to the initial swing trajectory; when it is detected that the swing leg hits the vertical surface of the step during the falling process, the X in the subsequent control cycle is D The trajectory is set to the X coordinate of the current collision position. D Coordinates move backward by a preset step size.

[0038] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0039] When controlling each leg to swing, the present invention divides the swing cycle into multiple control cycles, and replans the swing trajectory according to the current state in each control cycle to adjust the swing state in real time. At the same time, during the swinging period, it is detected whether the swinging leg emits a bump. When no bump occurs, the swinging leg is controlled to swing according to the initial swing trajectory planned in the current control cycle. When a bump occurs, a corresponding bump remediation mechanism is set according to the type of bump. When the swinging leg bumps against the vertical surface of the step during the lifting process, it means that the swinging leg has not stepped on the previous step, and the initial swing trajectory is adjusted in time to adjust the X D Set the trajectory to the current collision position, according to the Z DRaise the swing leg to the trajectory until the swing leg reaches the highest point, and then continue to swing according to the initial swing trajectory planned in each control cycle, so that the swing leg steps on the previous step. When the swing leg hits the vertical surface of the step during the falling process, it means that the swing leg has stepped on the previous step, but it is too close to the inner side of the step during the falling leg. At this time, the X calculated by the subsequent control cycle of the swing leg D The robot moves back a preset value along the trajectory to avoid collision again. Through the collision remediation mechanism, the robot can handle the collision in a targeted manner according to the situation, reduce the impact of the collision on the robot's climbing, and improve the stability of the robot's blind climbing of stairs. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is a schematic diagram of a ladder structure of an embodiment;

[0041] Figure 2 A schematic diagram of the structure of a quadruped robot according to an embodiment;

[0042] Figure 3 A flowchart of the steps of a method for planning a swing trajectory for each swing cycle of an embodiment;

[0043] Figure 4 A schematic diagram of the parameters required for calculating the "slope" of a step according to an embodiment;

[0044] Figure 5 A schematic diagram of swing leg trajectory planning and adjustment according to an embodiment;

[0045] Figure 6 A schematic diagram of a swing leg foot end hitting a stair step according to an embodiment;

[0046] Figure 7 It is a schematic diagram of an embodiment of the present invention after the foot end hits the step during the swinging leg and lifting foot process;

[0047] Figure 8 This is a schematic diagram of an embodiment of the present invention after adjustment when the foot end hits the step during the landing process of the swinging leg. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0049] like Figure 1Shown is a schematic diagram of a stair structure. The longitudinal dimension of each step of the stair is the step depth d, and the vertical dimension is the step height h. When a quadruped robot blindly climbs the stairs, the parameters of the stairs are unknown.

[0050] like Figure 2 The figure shows a schematic diagram of the structure of a quadruped robot in an embodiment. The robot consists of a body and four legs. For the sake of simplicity, the leg configuration of the robot in this embodiment adopts a double elbow type. The length of the body is l, the width is w, and the legs are numbered as i∈{FL, FR, BL, BR}, where FL, FR, BL and BR represent the left front, right front, left rear and right rear, respectively. Each leg consists of a side swing joint connecting rod, a thigh and a calf, and the lengths of the side swing joint connecting rod, the thigh and the calf are l1, l2, and l3, respectively. The body and the thigh are connected by a side swing joint connecting rod, the side swing joint connecting rod and the thigh are connected by a hip joint, and the thigh and the calf are connected by a knee joint. The structures of the four legs are exactly the same. Take any rectangular coordinate system as the world coordinate system {D} as the reference coordinate system for the robot's posture, where X D Toward is the horizontal moving direction of the quadruped robot, X D Y D is the horizontal plane, Z D The vertical lifting direction of the quadruped robot. The origin of the fuselage coordinate system {B} coincides with the geometric center of the fuselage. The X-axis of the fuselage coordinate system is parallel to the fuselage trunk, the Z-axis is perpendicular to the body and upward, and the Y-axis is determined according to the right-hand rule. Sensors are installed on the fuselage to obtain the position and posture of the robot body. Sensors are installed at the rotation joints of all legs to obtain joint angles, and sensors are installed at the end positions of all feet to obtain foot-ground contact information.

[0051] Before controlling the swinging of the swinging legs, it is necessary to set the swinging cycle of each leg in advance and divide each swinging cycle into multiple control cycles. Among them, the swinging cycle is the time it takes for any leg of the robot to be lifted and put down, that is, the time from the beginning of the swinging of any leg to the touching of the ground and the end of the swinging. When controlling the swinging of the swinging legs within the swinging cycle, each control cycle will re-plan the swinging trajectory according to the current state of the swinging legs, so that the swinging legs will swing according to the latest planned swinging trajectory within the current swinging cycle until the end of the current swinging cycle, and start planning for the next swinging cycle.

[0052] like Figure 3 Shown is a flow chart of the steps of the planning method of the swing trajectory of each swing cycle, which mainly includes an initial swing trajectory planning step, a collision detection step and a processing step.

[0053] Initial swing trajectory planning step: recalculate the expected foothold position of the swing leg in each control cycle and plan the initial swing trajectory.

[0054] Since the swing cycle and control cycle are pre-set, during the swinging of the swing leg, each time the next control cycle is reached, the expected foothold position of the swing leg at the end of the swing cycle will be recalculated according to the current state of the robot, and the initial swing trajectory from the initial swing position (the position when the foot is just lifted) to the expected foothold position will be planned. The initial swing trajectory can be decomposed into X D Trajectory and Z D After the initial swing trajectory is planned in the current cycle, the swing leg completes the swing in the current control cycle according to the planned swing trajectory until it reaches the next control cycle, and then replans and repeats the above steps.

[0055] Bump detection step: During the swing period, detect whether the swinging leg bumps.

[0056] Once the swing leg hits a step, the robot may be unable to continue climbing the steps or fail to maintain stability and fall over. During the swinging of the swing leg, it is necessary to monitor in real time whether the swing leg hits a step. The present invention divides the hit into two situations. The first kind of hit is when the swing leg hits the vertical surface of the step during the lifting process, and the second kind of hit is when the swing leg hits the vertical surface of the step during the falling process. Different processing mechanisms will be executed for different states.

[0057] Processing steps: Different processing mechanisms are executed according to the swinging state of the swinging leg.

[0058] Among them, the processing mechanisms include the following three:

[0059] When the swinging leg does not collide, the swinging leg is controlled to swing according to the latest planned initial swinging trajectory.

[0060] When it is detected that the swinging leg hits the vertical surface of the stair step during the lifting process, the X D Adjust the trajectory so that the collision position remains unchanged, and follow the Z D Raise your legs toward the trajectory until you reach Z D After reaching the highest point of the trajectory, the swing leg continues to swing along the initial swing trajectory. When such a collision occurs, it means that the swing leg has not stepped on the previous step. If it is not adjusted in time, the swing leg will continue to collide and fail. In the present invention, when such a collision occurs, the initial swing trajectory planned by the control cycle is adjusted in time, and the X D The trajectory is adjusted so that the collision position remains unchanged, and only the planned Z D Raise the swing leg to the trajectory, that is, the swing leg does not move forward but only raises. If the swing leg is not raised to Z in the current cycle D To the highest point of the trajectory, enter the next control cycle to re-plan the initial swing trajectory, and continue to move the X DThe trajectory is adjusted so that the collision position remains unchanged, and only the planned Z D Raise the swing leg to the trajectory, repeat the above process until the swing leg is raised to Z in a certain control cycle. D After reaching the highest point of the trajectory, release the X D The adjustment to the trajectory continues, and the swing is performed according to the initial swing trajectory planned by the control cycle until the swing cycle ends.

[0061] When it is detected that the swing leg hits the vertical surface of the step during the falling process, X in the subsequent control cycle D The trajectory is set to the X coordinate of the current collision position. D When this type of collision occurs, it means that the swing leg has stepped on the previous step, but the leg is too close to the inside of the step. If the trajectory is not adjusted in time, the swing leg will continue to collide and fail. In the present invention, by adjusting the X in the subsequent control cycle D Towards the trajectory, in each subsequent control cycle, adjust the planned initial swing trajectory, and change the X D The trajectory is set to a fixed value of the preset step length to move backward, thereby avoiding subsequent bumping into the steps.

[0062] In one embodiment, when the quadruped robot blindly climbs the stairs, at least the front and rear legs on the opposite sides are supported as support legs on the planes of the upper and lower adjacent steps. The blind climbing method also includes setting the body pitch angle, specifically including: identifying the latest support leg, calculating the angle β between the connecting line of the front and rear support leg foot ends and the horizontal plane, and the vertical spacing h between the front and rear support leg foot ends t , adjust the pitch angle θ of the fuselage e , when the vertical spacing h t <0.1(l2+l3), let the pitch angle θ e =0, otherwise, let the pitch angle θ e =β, where l2 and l3 represent the length of the thigh and calf supporting the front leg respectively.

[0063] like Figure 4 As shown in the figure, when the front and rear supporting legs of the robot are located on the horizontal plane of the adjacent steps of the stairs, the angle β formed by the line connecting the two supporting legs and the horizontal plane is the "slope" of the stairs. Assuming that a pair of front and rear supporting legs are located on the adjacent upper and lower steps at a certain moment, the calculation method of β is:

[0064]

[0065] Among them, l t h is the projection distance of the front and rear support leg feet on the horizontal plane of the world coordinate system, t is the vertical distance, and

[0066] lt =lcosθ+Δx bk -Δx fj (2)

[0067] h t =Δz bk -Δh (3)

[0068] Among them, θ is the actual pitch angle of the fuselage, Δx bk It represents the projection distance from the hip joint axis of the rear supporting leg to the foot end of the rear supporting leg in the x direction of the world coordinate system, Δx fj represents the projection distance from the front supporting leg hip joint rotation axis to the front supporting leg foot end in the x direction of the world coordinate system, Δz bk It represents the projection value of the extended length of the rear supporting leg in the z direction of the world coordinate system, and Δh is the projection distance between the hip joint rotation axis of the rear supporting leg and the foot end of the front supporting leg in the z direction of the world coordinate system.

[0069] Δh=Δz fj -lsinθ (4)

[0070] Where Δz fj It represents the projection value of the extended length of the front supporting leg in the z direction of the world coordinate system.

[0071]

[0072]

[0073] in,

[0074]

[0075]

[0076]

[0077] Among them, α f,3 is the knee rotation angle of the front supporting leg, α f,2 The hip joint rotation of the front supporting leg.

[0078] According to formulas (1) to (9), the angle β can be calculated, and the fuselage pitch angle can be adjusted according to the angle β. It is easy to understand that, in particular, when the front and rear support legs are located on the same step level, the β value is 0.

[0079] In one embodiment, in each control cycle, recalculating the expected footfall position of the swing leg in the current swing cycle includes calculating the expected footfall position p of the swing leg on the horizontal plane. i,e,x-y and the desired height z in the vertical lift direction i .

[0080] Specifically, ZD Expected height z i The calculation formula is:

[0081] z i =z i,0 +(h max +h0) (10)

[0082] Among them, z i,0 is the initial height of the foot end of the swing leg i in the world coordinate system, that is, the height when the swing leg is just lifted, h max is the possible maximum step height. In order to enable the foot end of the swing leg to move to the horizontal plane of the upper step, h max Add h0 margin on the basis, h0=20%h max .

[0083] Specifically, the expected landing point p of the swing leg on the horizontal plane i,e,x-y The calculation formula is:

[0084]

[0085] Among them, p i,h,d,x-y The hip joint position of the corresponding swing leg i is at X D Y D Projection coordinates on the horizontal plane, T c is the support time of the supporting leg, v c,d,x-y is the center of mass of the fuselage at X D Y D The moving speed of the projection on the horizontal plane, g is the acceleration due to gravity, v is c,e,x-y is the center of mass of the fuselage at X D Y D The expected velocity of the projection on the horizontal plane, v c,d,x-y is the center of mass of the fuselage at X D Y D The actual speed of the projection on the horizontal plane.

[0086] In one embodiment, if Figure 5 As shown, when the initial swing trajectory is replanned in each control cycle, a cubic polynomial is selected to plan the initial swing trajectory to obtain a smooth trajectory.

[0087] The cubic polynomial can be expressed as:

[0088] p(t)=at 3 +bt 2 +ct+d (12)

[0089] You can set constraints:

[0090] The position at the beginning of the swing is taken as the starting point of the trajectory, and the position corresponding to the starting point of the trajectory at time t0 is position p0, that is, p(t0) = p0;

[0091] The swing cycle ends at time t end The corresponding position is the end point of the trajectory, and the end point of the trajectory is at time t end The position of the desired foot point position p is recalculated for each control cycle. end , that is, p(t end )=p end ;

[0092] The velocity at the starting point of the trajectory at time t0 is 0, that is,

[0093] The end time of the trajectory t end The acceleration is 0, that is

[0094] According to the above constraints, the coefficients (a, b, c, d) in formula (12) can be obtained, so the planned trajectory formula can be obtained as follows:

[0095] p(t)=p0+(p end -p0)(3-2t)t 2 (13)

[0096] After the trajectory is determined, the speed formula following the trajectory can be obtained:

[0097] v(t)=(p end -p0)(1-t)6t (14)

[0098] Among them, the swing leg swing cycle duration T s =t end -t0.

[0099] In one embodiment, each control cycle is specifically divided into X when planning the initial swing trajectory according to the recalculated expected landing point. D Towards trajectory (or X D Y D Horizontal trajectory) planning and Z D Planning of the trajectory.

[0100] Among them, in each control cycle planning X D Y D The process of horizontal plane trajectory is as follows:

[0101] Get the foot end position p of the swing leg i at the initial swing time (t = 0) i,d,0 ∈R 3 , where X D Y D Coordinate p i,d,0,x-y∈R 2 As the starting point for horizontal trajectory planning;

[0102] At each control cycle t, the expected landing point p is recalculated based on formula (11) i,e,x-y , and the expected landing point p i,e,x-y As the end point of trajectory planning;

[0103] With p i,d,0,x-y =p0,p i,e,x-y =p end , respectively into formula (13) and formula (14), we get X D Y D The expected foot position p at the next moment t+Δt of the horizontal trajectory i,d,t+Δt,z and speed v i,d,t+Δt,z , respectively:

[0104]

[0105]

[0106] Among them, Z D The trajectory planning can be divided into two stages. The first stage is the first half of the swing period (t∈[0, T s / 2)) and the second segment is the second half of the swing period (t∈[T s / 2,T s ])'s trajectory.

[0107] Specifically, the first half of the swing cycle Z D The trajectory planning process includes:

[0108] In the first half of the swing period (t∈[0, T s / 2)) At the beginning (t=0), obtain the initial position p of the swing leg i at t=0 i,d,0 , take Z D Direction coordinate p i,d,0,z As the starting point for trajectory planning;

[0109] In each subsequent control cycle t(t∈[0,T s / 2)) Calculate the maximum expected swing height z according to formula (10) i,t , with the maximum expected swing height z i,t As the end point of the trajectory;

[0110] With p i,d,0,z =p0,z i,t =p end , respectively into formula (13) and formula (14), we get the first half of the swing period Z D The expected position p of the foot at the next moment t+Δt of the trajectoryi,d,t+Δt,z and speed v i,d,t+Δt,z , respectively:

[0111]

[0112]

[0113] Specifically, the period before and after the swing period is Z D The trajectory planning process includes:

[0114] At the maximum desired swing height z i,t As the starting point of the trajectory, since the height of the ground cannot be known in advance, each subsequent moment t(t∈[T s / 2,T s ]) The foot end height p at the beginning of the swing cycle i,d,0,z As the end point of the trajectory, calculate the expected foot position p at the next moment t+Δt i,d,t+Δt,z and speed v i,d,t+Δt,z , respectively:

[0115]

[0116]

[0117] In each control cycle, the swing position and swing speed of the swinging leg foot end in each control cycle can be planned through the above formulas (15) to (20), which is the initial swing trajectory.

[0118] In one embodiment, when the leg foot ground contact detection sensor detects the ground contact information during the swinging process, it is considered that the leg foot has landed on the horizontal plane of the previous step. If the difference between the leg swinging time and a swinging cycle is large, for example, the current swinging leg has swung less than 80% of the swinging cycle, it is considered that the leg has touched the ground in advance, but the set swinging cycle still has more than 20% left. If it is not adjusted in time, the robot will continue to swing according to the set mode planning in the remaining time, causing the foot end to be impacted. In this embodiment, when encountering such a situation, in order to reduce the impact on the foot end, the expected position of the foot end after the current swinging cycle and the height of the foot landing point are set to the position when it just touches the ground, that is, the swinging leg no longer swings.

[0119] In one embodiment, when detecting whether a collision occurs, the speed can be used as a reference. Specifically, the speed of the foot end of the swing leg i in the world coordinate system x can be calculated in each control cycle. D The speed difference e i,v,x :

[0120] e i,v,x =v i,e,x -v i,x (twenty one)

[0121] Among them, v i,e,x is the foot end of the swing leg i in the world coordinate system X D The expected speed in the direction, v i,x is the actual speed. i,v,x Compare with the set threshold e0, if e i,v,x >e0, and the foot-end sensor does not detect the foot-ground contact information at this time, then the leg hits the vertical surface of the step. The threshold e0 can be set empirically according to the parameters of the robot.

[0122] At the same time, the type of collision can be further determined based on the actual swing time. Specifically, if the swing time of the current swing leg is greater than half a swing cycle, it is determined that the swing leg hits the vertical surface of the step during the falling process. When the swing time of the current swing leg is less than or equal to half a swing cycle, it is determined that the swing leg hits the vertical surface of the step during the lifting process. Different processing methods are then adopted according to different types of collisions.

[0123] If the foot of the swinging leg hits the vertical surface of the stair step during the lifting process, Figure 6 As shown, in the world coordinate system, the foot end is at X D Although the direction is blocked by the vertical surface and cannot continue to swing, D When this event is detected, the foot end trajectory will be recalculated in each control cycle. D The planned trajectory of X is set to the current actual position. When the foot swings to the highest planned position, D Continue to swing to the original planned point to ensure that the foot finally lands on the horizontal surface of the upper step. Adjust the landing position of the leg that hits the foot. Figure 7 shown.

[0124] If the foot of the swing leg i hits the vertical surface of the stair step during the falling process, its foot can no longer reach the horizontal surface of the previous step within the gait cycle. When this event is detected, the foot of the swing leg is moved to the horizontal plane of the world coordinate system X D The planned trajectory p e,x Set to:

[0125] p e,x =p x -Δx (22)

[0126] Among them, p xis the current actual collision position of the swing leg, Δx is the preset step length of the backward movement, for example, it can be 20mm~40mm, specifically 20mm, to reduce the probability of collision in the next swing. Furthermore, in order to prevent the robot stability from being affected by the swing leg being unable to keep up with the movement of the fuselage, the current gait cycle is subsequently input into the expected climbing speed v of the fuselage of the model predictive control c,e,x Set to 0. The foot position after adjustment is as follows Figure 8 shown.

[0127] After planning the swinging trajectory of the swinging leg, the foot-end force of the supporting leg can be calculated through the rolling optimization controller. The corresponding feedback data and the set desired state of the fuselage and the climbing speed are input into the rolling optimization controller to solve the foot-end force of each supporting leg to ensure the stability of the robot's movement on the stairs. The foot-end force is provided by performing Jacobian back calculation on the expected foot-end force to obtain the expected torque of each joint of the supporting leg, and sending the expected torque command of each joint to the joint motor driver to control each joint motor to provide the corresponding torque. At the same time, the output torque of each joint can be calculated through the single-leg controller. The plantar force of the supporting leg planned by the rolling optimization control and the expected foot-end position and expected speed of each swinging leg are input into the single-leg controller. For the supporting leg, the expected plantar force is calculated by the leg Jacobian to obtain the expected torque of each joint of the supporting leg, and the expected torque command of each joint is sent to the joint motor driver to control each joint motor to provide the corresponding torque. For the swinging leg, the expected rotation angle and expected rotation speed of each joint of each swinging leg are obtained by leg Jacobian calculation. The expected torque of each joint of the swing leg is obtained by performing PD calculation based on the feedback data of each joint, the expected angle of rotation and the expected rotation speed. The expected torque command of each joint is sent to the joint motor driver to control the motor of each joint to provide the corresponding torque.

[0128] In a specific embodiment, the method for planning a swing trajectory may include the following steps:

[0129] Step S1: Detect whether the swing leg hits the vertical surface of the step when it is lifted, execute step S2: Detect whether the swing leg hits the vertical surface of the step when it is lifted, execute step S3: Detect whether the swing leg hits the vertical surface of the step when it is lowered, execute step S4;

[0130] Step S2: Calculate the expected landing point of the swing leg and plan the initial swing trajectory in the current control cycle, control the swing leg to swing according to the initial swing trajectory until entering the next control cycle and then jump to step S1;

[0131] Step S3: Calculate the expected foothold position of the swing leg in the current control cycle and plan the initial swing trajectory. D Adjust the trajectory so that the collision position remains unchanged, according to the ZD Raise the swing leg to the trajectory until entering the next control cycle, and determine whether the swing leg has been raised to the highest point of the lifting trajectory. If so, jump to step S2, if not, repeat step S3;

[0132] Step S4: Calculate the expected foothold position of the swing leg in the current control cycle and plan the initial swing trajectory. D Adjust the trajectory to the X coordinate of the current collision position D The coordinates are moved back by a preset step length, and step S4 is repeated.

[0133] Correspondingly, the present invention also relates to a quadruped robot, comprising a body, four legs and a control system for controlling the quadruped robot to blindly climb stairs, the control system comprising a parameter setting module, a coordinate system determination module, an initial swing trajectory planning module, a collision detection module and a processing module, wherein:

[0134] The parameter setting module is used to determine the swing cycle and the control cycle, wherein each swing cycle is divided into a plurality of control cycles, and the swing leg completes the swing according to the planned swing trajectory within the set swing cycle;

[0135] The coordinate system determination module is used to define the world coordinate system {X D ,Y D ,Z D}, where X D Toward is the horizontal moving direction of the quadruped robot, X D Y D is the horizontal plane, Z D It is the vertical lifting direction of the quadruped robot;

[0136] The initial swing trajectory planning module recalculates the expected foot position of the swing leg in each control cycle and replans the swing trajectory of the swing leg with the initial swing foot position of the swing leg as the starting point and the expected foot position as the end point. The initial swing trajectory includes X D Trajectory and Z D Towards trajectory;

[0137] The collision detection module is used to detect whether the swinging leg has a collision during the swinging of the swinging leg;

[0138] The processing module is used to control the swing leg to swing according to the latest planned initial swing trajectory when the swing leg does not collide; when it is detected that the swing leg hits the vertical surface of the step during the lifting process, the X D Adjust the trajectory so that the collision position remains unchanged, and follow the Z D Raise your legs toward the trajectory until you reach Z DAfter reaching the highest point of the trajectory, continue to swing according to the initial swing trajectory; when it is detected that the swing leg hits the vertical surface of the step during the falling process, the X in the subsequent control cycle is D The trajectory is set to the X coordinate of the current collision position. D Coordinates move backward by a preset step size.

[0139] It can be understood that the above-mentioned quadruped robot can complete the blind stair climbing action introduced above, wherein the various modules of the control system are used to implement the relevant steps in the blind stair climbing method. For details, please refer to the above introduction and will not be repeated here.

[0140] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for blindly climbing stairs by a quadruped robot, characterized in that: Control the swing leg to swing according to the planned swing trajectory within the set swing cycle, and each swing cycle is divided into multiple control cycles; define the world coordinate system {X D ,Y D ,Z D }, where X D , Z D are the horizontal forward direction and vertical lifting direction of the quadruped robot, X D Y D is a horizontal plane; The planning method of the swing trajectory of each swing cycle includes: In each control cycle, the expected footfall position of the swing leg is recalculated and the initial swing trajectory of the swing leg is replanned with the foot end position of the initial swing of the swing leg as the starting point and the expected footfall position as the end point. The initial swing trajectory includes X D Trajectory and Z D Towards trajectory; During the swing, detect whether the swinging leg has a collision: When the swinging leg does not collide, the swinging leg is controlled to swing according to the initial swinging trajectory; When it is detected that the swinging leg hits the vertical surface of the stair step during the lifting process, the X D Adjust the trajectory so that the collision position remains unchanged, and follow the Z D Raise your legs toward the trajectory until you reach Z D After reaching the highest point of the trajectory, continue to swing along the initial swing trajectory; When it is detected that the swing leg hits the vertical surface of the step during the falling process, the X in the subsequent control cycle is D The track is set to the X coordinate of the current collision position. D Coordinates retreat preset step size; Calculating the expected footfall position of the swing leg in the current swing cycle includes calculating the expected footfall position p of the swing leg on the horizontal plane. i,e,x-y and the maximum expected height z in the vertical lift direction i , Z D The maximum expected height z i The calculation formula is: With i =from i,0 +(h max +h0) In the formula, z i,0 is the initial height of the foot end of the swing leg i in the world coordinate system during the current swing cycle, h max is the maximum step height of the set ladder, and h0 is the margin for the set height increase; The expected landing point of the swinging leg on the horizontal plane p i,e,x-y The calculation formula is: In the formula, p i,h,d,x-y The hip joint position of the corresponding swing leg i is at X D Y D Projection coordinates on the horizontal plane, T c is the support time of the supporting leg, v c,d,x-y is the center of mass of the fuselage at X D Y D The moving speed of the projection on the horizontal plane, g is the acceleration due to gravity, v is c,e,x-y is the center of mass of the fuselage at X D Y D The expected velocity of the projection on the horizontal plane, v c,d,x-y is the center of mass of the fuselage at X D Y D The actual speed of the projection on the horizontal plane.

2. The method for blindly climbing stairs by a quadruped robot as claimed in claim 1, characterized in that: When the quadruped robot blindly climbs the stairs, at least the front and rear legs on opposite sides are supported as supporting legs on the planes of two upper and lower adjacent stairs. The blind climbing stairs method also includes setting the pitch angle of the fuselage, specifically including: Identify the latest supporting leg, calculate the angle β between the connecting line of the front and rear supporting leg feet and the horizontal plane, and the vertical distance h between the front and rear supporting leg feet t , adjust the pitch angle θ of the fuselage e , when the vertical spacing h t <0.1(l2+l3), let the pitch angle θ e =0, otherwise, let the pitch angle θ e =β, where l2 and l3 represent the length of the thigh and calf supporting the front leg respectively.

3. The method for blindly climbing stairs by a quadruped robot as claimed in claim 1, characterized in that: Plan the initial swing trajectory in the current control cycle, including: The initial swing trajectory is planned based on a cubic polynomial, with the foot end position of the initial swing leg as the starting point and the expected foot landing point as the end point.

4. The method for blindly climbing stairs by a quadruped robot as claimed in claim 3, characterized in that: Planning the initial swing trajectory includes planning X D Trajectory and Z D Towards trajectory, where Z D The planning of the directional trajectory includes the Z D Z of the second half of the swing trajectory and swing D Towards the trajectory, the Z of the first half of the swing cycle D The trajectory is the Z position of the foot end of the initial swing of the swing leg D The coordinates are taken as the starting point and the desired highest position is taken as Z D Plan towards the coordinate as the end point; Z of the second half of the swing cycle D The trajectory is to take the desired highest position as Z D The Z coordinates of the initial swing of the swing leg are taken as the starting point and the foot position of the swing leg is taken as the starting point. D Plan towards the end point.

5. The method for blindly climbing stairs by a quadruped robot as claimed in claim 1, characterized in that: The coordinate position and swing speed of the swinging leg at the next moment are determined based on the initial swing trajectory.

6. The method for blindly climbing stairs by a quadruped robot as claimed in claim 1, characterized in that: Methods for detecting whether a swinging leg has collided include: Calculate the X at the foot of the swinging leg D The speed difference between the expected speed and the actual speed is calculated, and the speed difference is compared with a set threshold. When the speed difference is greater than the set threshold and no foot-ground contact information is detected, it is determined that the current swinging leg hits the vertical surface of the stair step; When it is detected that the current swinging leg hits the vertical surface of the stair step, it is determined whether the swinging time of the current swinging leg is greater than half a swinging cycle. If the swinging time of the current swinging leg is greater than half a swinging cycle, it is determined that the swinging leg hits the vertical surface of the stair step during the falling process. When the swinging time of the current swinging leg is less than or equal to half a swinging cycle, it is determined that the swinging leg hits the vertical surface of the stair step during the lifting process.

7. The method for blindly climbing stairs by a quadruped robot as claimed in claim 1, characterized in that: When the foot of the swinging leg detects the ground contact information, it is calculated whether the swinging time of the current swinging leg is less than 80% of the swinging cycle. If so, the initial swinging trajectory planned in the subsequent control cycle of the current swinging leg is set to the ground contact position and maintained unchanged.

8. The method for blindly climbing stairs by a quadruped robot as claimed in claim 1, characterized in that: The preset step length for backward movement is 20mm to 40mm.

9. A quadruped robot, characterized in that: It includes a body, four legs and a control system for controlling the quadruped robot to blindly climb stairs. The control system includes a parameter setting module, a coordinate system determination module, an initial swing trajectory planning module, a collision detection module and a processing module, wherein: The parameter setting module is used to determine the swing cycle and the control cycle, wherein each swing cycle is divided into a plurality of control cycles, and the swing leg completes the swing according to the planned swing trajectory within the set swing cycle; The coordinate system determination module is used to define the world coordinate system {X D ,Y D ,Z D }, where X D Toward is the horizontal moving direction of the quadruped robot, X D Y D is the horizontal plane, Z D It is the vertical lifting direction of the quadruped robot; The initial swing trajectory planning module recalculates the expected footfall position of the swing leg in each control cycle and replans the swing trajectory of the swing leg with the initial swing foot end position of the swing leg as the starting point and the expected footfall position as the end point. The initial swing trajectory includes X D Trajectory and Z D Towards trajectory; The collision detection module is used to detect whether the swinging leg has a collision during the swinging of the swinging leg; The processing module is used to control the swing leg to swing according to the latest planned initial swing trajectory when the swing leg does not collide; when it is detected that the swing leg hits the vertical surface of the step during the lifting process, D Adjust the trajectory so that the collision position remains unchanged, and follow the Z D Raise your legs toward the trajectory until you reach Z D After reaching the highest point of the trajectory, continue to swing according to the initial swing trajectory; when it is detected that the swing leg hits the vertical surface of the step during the falling process, the X in the subsequent control cycle is D The trajectory is set to the X coordinate of the current collision position. D Coordinates retreat preset step size; Calculating the expected landing point position of the swing leg in the current swing cycle includes calculating the expected landing point p of the swing leg on the horizontal plane. i,e,x-y and the maximum expected height z in the vertical lift direction i , Z D The maximum expected height z i The calculation formula is: With i =from i,0 +(h max +h0) In the formula, z i,0 is the initial height of the foot end of the swing leg i in the world coordinate system during the current swing cycle, h max is the maximum step height of the set ladder, and h0 is the margin for the set height increase; The expected landing point of the swinging leg on the horizontal plane p i,e,x-y The calculation formula is: In the formula, p i,h,d,x-y The hip joint position of the corresponding swing leg i is at X D Y D Projection coordinates on the horizontal plane, T c is the support time of the supporting leg, v c,d,x-y is the center of mass of the fuselage at X D Y D The moving speed of the projection on the horizontal plane, g is the acceleration due to gravity, v is c,e,x-y is the center of mass of the fuselage at X D Y D The expected velocity of the projection on the horizontal plane, v c,d,x-y is the center of mass of the fuselage at X D Y D The actual speed of the projection on the horizontal plane.

Citation Information

Patent Citations

  • Gait track planning method and device, readable storage medium and robot

    CN113110484A

  • Robot foot end collision stability control method and device and foot-type robot

    CN113524190A

  • Stepping down trajectory planning method, robot using the same, and computer readable storage medium

    US20220194500A1

  • Gait planning method and device for humanoid robot, and humanoid robot

    WO2022027914A1