[go: up one dir, main page]

CN115344040A - Method and device for foot end trajectory planning of a legged robot and the legged robot - Google Patents

Method and device for foot end trajectory planning of a legged robot and the legged robot Download PDF

Info

Publication number
CN115344040A
CN115344040A CN202210832831.XA CN202210832831A CN115344040A CN 115344040 A CN115344040 A CN 115344040A CN 202210832831 A CN202210832831 A CN 202210832831A CN 115344040 A CN115344040 A CN 115344040A
Authority
CN
China
Prior art keywords
foot end
swing
traction
track
foot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210832831.XA
Other languages
Chinese (zh)
Inventor
凡福飞
熊志林
刘轶
达兴烨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Pengxing Intelligent Research Co Ltd
Original Assignee
Shenzhen Pengxing Intelligent Research Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Pengxing Intelligent Research Co Ltd filed Critical Shenzhen Pengxing Intelligent Research Co Ltd
Priority to CN202210832831.XA priority Critical patent/CN115344040A/en
Publication of CN115344040A publication Critical patent/CN115344040A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0238Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using obstacle or wall sensors
    • G05D1/024Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using obstacle or wall sensors in combination with a laser
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62DMOTOR VEHICLES; TRAILERS
    • B62D57/00Vehicles characterised by having other propulsion or other ground- engaging means than wheels or endless track, alone or in addition to wheels or endless track
    • B62D57/02Vehicles characterised by having other propulsion or other ground- engaging means than wheels or endless track, alone or in addition to wheels or endless track with ground-engaging propulsion means, e.g. walking members
    • B62D57/032Vehicles characterised by having other propulsion or other ground- engaging means than wheels or endless track, alone or in addition to wheels or endless track with ground-engaging propulsion means, e.g. walking members with alternately or sequentially lifted supporting base and legs; with alternately or sequentially lifted feet or skid
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0242Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using non-visible light signals, e.g. IR or UV signals
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0231Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
    • G05D1/0246Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Electromagnetism (AREA)
  • Optics & Photonics (AREA)
  • Transportation (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • Chemical & Material Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Manipulator (AREA)

Abstract

The application discloses a method and a device for planning foot end tracks of a foot-type robot and the foot-type robot, which are used for enabling the robot to stably climb up and down steps and cross over obstacles, reducing collisions and improving the stability of the robot in the processes of ascending and descending steps and crossing over obstacles. The method comprises the following steps: determining the swing height and the swing length of the foot end of at least one leg, which is lifted from the first step to the second step in the first swing phase; if the tread of the second step is higher than that of the first step, determining a first series of track traction points corresponding to the foot end according to the swing height and the swing length; generating a first foot end track according to the first series of track traction points to control the foot end to fall on the second step; if the tread of the second step is lower than that of the first step, determining a second series of track traction points corresponding to the foot end according to the swing height and the swing length; and generating a second foot end track according to the second series of track traction points to control the foot end to fall on the second step.

Description

一种足式机器人足端轨迹规划的方法、装置及足式机器人Method and device for foot end trajectory planning of a legged robot and the legged robot

技术领域technical field

本申请涉及机器人控制技术领域,尤其涉及一种足式机器人足端轨迹规划的方法、装置及足式机器人。The present application relates to the technical field of robot control, in particular to a method and device for foot trajectory planning of a legged robot and a legged robot.

背景技术Background technique

随着计算机性能的提升,传感器科技的发展,机器人技术得到了持续的提高,人类生活中逐步出现了各种各样的机器人帮助人类完成特定工作。足式机器人(双足、四足和多足机器人)相较于传统的轮式机器人和履带式机器人,足式机器人最大的优势是其可通行区域的广泛性,在人类居住场所中能够上、下楼梯是足式机器人相对其他机器人无法比拟的优势,如何能够让足式机器人可靠、安全的上楼梯和下楼梯是足式机器人迫切要解决的问题。With the improvement of computer performance, the development of sensor technology, and the continuous improvement of robot technology, various robots have gradually appeared in human life to help humans complete specific tasks. Footed robots (bipedal, quadrupedal and multi-legged robots) Compared with traditional wheeled robots and tracked robots, the biggest advantage of footed robots is the wide range of their passable areas, which can go up, Descending stairs is an incomparable advantage of legged robots over other robots. How to make legged robots go up and down stairs reliably and safely is an urgent problem to be solved for legged robots.

现有技术中,足式机器人广泛使用一次贝塞尔曲线来进行机器人上、下楼梯时的轨迹规划,但由于其过于简单的曲线形态,很难应对爬楼梯过程中足端点在楼梯位置的随机性带来的跨越障碍,例如在机器人上、下楼梯过程中,如果起始点或落足点贴近楼梯边缘,将可能会发生腿部与楼梯的磕碰,进一步可能会导致机器人失稳摔倒。In the prior art, legged robots widely use one-time Bezier curves for trajectory planning when the robot goes up and down stairs. However, due to its too simple curve shape, it is difficult to cope with the randomness of the foot end point in the stair position during the stair climbing process. For example, when the robot goes up and down the stairs, if the starting point or foothold is close to the edge of the stairs, the legs may collide with the stairs, which may further cause the robot to lose stability and fall.

发明内容Contents of the invention

本申请提供了一种足式机器人足端轨迹规划的方法、装置及足式机器人,用于使机器人能够平稳地上下台阶以及跨越障碍物,减少磕碰,提高机器人在上下台阶以及跨越障碍物过程中的稳定性。This application provides a method and device for foot trajectory planning of a legged robot and a legged robot, which are used to enable the robot to smoothly go up and down steps and cross obstacles, reduce bumps, and improve the robot's ability to move up and down steps and cross obstacles. stability.

本申请第一方面提供了一种足式机器人足端轨迹规划的方法,包括:The first aspect of the present application provides a method for foot trajectory planning of a legged robot, including:

确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度,所述第一台阶为所述支撑腿的足端在第一支撑相时所在台阶,所述第一支撑相和所述第一摆动相在时间上连续,且所述第一支撑相早于所述第一摆动相;Determine the swing height and swing length of the foot end of at least one leg in the first swing phase from the first step to the second step, the first step being the foot end of the supporting leg in the first support phase The step where the time is, the first support phase and the first swing phase are continuous in time, and the first support phase is earlier than the first swing phase;

若所述第二台阶的踏面比所述第一台阶的踏面高,则根据所述摆动高度和摆动长度确定所述足端对应的第一系列轨迹牵引点;If the tread of the second step is higher than the tread of the first step, then determine the first series of trajectory traction points corresponding to the foot end according to the swing height and swing length;

根据所述第一系列轨迹牵引点生成第一足端轨迹,并根据所述第一足端轨迹控制所述足端落足于所述第二台阶;generating a first foot end trajectory according to the first series of trajectory traction points, and controlling the foot end to land on the second step according to the first foot end trajectory;

若所述第二台阶的踏面比所述第一台阶的踏面低,则根据所述摆动高度和摆动长度确定所述足端对应的第二系列轨迹牵引点;If the tread of the second step is lower than the tread of the first step, then determine the second series of track traction points corresponding to the foot end according to the swing height and swing length;

根据所述第二系列轨迹牵引点生成第二足端轨迹,并根据所述第二足端轨迹控制所述足端落足于第二台阶。A second foot end trajectory is generated according to the second series of trajectory traction points, and the foot end is controlled to land on the second step according to the second foot end trajectory.

可选的,所述第一系列轨迹牵引点包括:至少1个第一足端后收牵引点和至少1个第一足端前摆牵引点;Optionally, the first series of trajectory traction points include: at least one traction point of the first foot end retraction and at least one first foot end forward swing traction point;

所述至少1个第一足端后收牵引点,用于在足端抬起过程中牵引足端后收,以防止足端在抬起过程中碰到所述第二台阶的踢面;The at least one first foot end retraction traction point is used to pull the foot end back during the lifting process of the foot end, so as to prevent the foot end from touching the kicking surface of the second step during the lifting process;

所述至少1个第一足端前摆牵引点,用于在足端抬起高度超过所述第二台阶的踏面高度后,牵引足端前摆并绕开所述第二台阶的边缘;The at least one first foot end forward swing traction point is used to pull the foot end forward swing and bypass the edge of the second step after the foot end is raised higher than the tread height of the second step;

所述第二系列轨迹牵引点包括:至少1个第二足端前摆牵引点和至少1个第二足端后收牵引点;The second series of track traction points include: at least one second traction point for the forward swing of the foot end and at least one traction point for the second retraction of the second foot end;

所述至少1个第二足端前摆牵引点,用于在足端抬起过程中牵引足端前摆并绕开所述第一台阶的边缘;The at least one second traction point for forward swing of the foot end is used for pulling the forward swing of the foot end during the lifting process of the foot end and bypassing the edge of the first step;

所述至少1个第二足端后收牵引点,用于在足端下落过程中牵引足端后收,避免足端在下落过程中碰到所述第二台阶的边缘。The at least one second foot-end retraction traction point is used for pulling the foot-end to retract during the falling process of the foot-end, so as to prevent the foot-end from touching the edge of the second step during the falling process.

可选的,所述第一系列轨迹牵引点还包括:至少1个第一足端速度牵引点,所述至少1个第一足端速度牵引点,用于在足端与所述第二台阶的踏面的距离小于预设距离时,牵引足端降低落足于所述第二台阶的踏面的速度和/或加速度;Optionally, the first series of trajectory traction points further include: at least 1 first foot-end speed traction point, the at least 1 first foot-end speed traction point is used to connect the foot end with the second step When the distance of the tread on the second step is less than the preset distance, the traction foot end reduces the speed and/or acceleration of the tread on the second step;

所述第二系列轨迹牵引点还包括:至少1个第二足端速度牵引点,所述至少1个第二足端速度牵引点,用于在足端与所述第二台阶的踏面的距离小于预设距离时,牵引足端降低落足于所述第二台阶的踏面的速度和/或加速度。The second series of track traction points also includes: at least one second foot-end speed traction point, the at least one second foot-end speed traction point is used for the distance between the foot end and the tread surface of the second step When the distance is less than the preset distance, the traction foot end reduces the speed and/or acceleration of the tread on the second step.

可选的,在所述根据所述摆动高度和摆动长度确定所述足端对应的第一系列轨迹牵引点之前,所述方法还包括:Optionally, before the determination of the first series of trajectory traction points corresponding to the foot end according to the swing height and swing length, the method further includes:

判断原足端轨迹与所述第二台阶的踢面或踏面是否存在交叉;Judging whether there is an intersection between the original foot track and the riser or tread of the second step;

所述根据所述摆动高度和摆动长度确定所述足端对应的第一系列轨迹牵引点包括:The determining the first series of track traction points corresponding to the foot end according to the swing height and swing length includes:

若存在交叉,则根据所述摆动高度和摆动长度确定所述足端对应的第一系列轨迹牵引点;If there is an intersection, then determine the first series of trajectory traction points corresponding to the foot end according to the swing height and swing length;

或,or,

在所述根据所述摆动高度和摆动长度确定所述足端对应的第二系列轨迹牵引点之前,所述方法还包括:Before the determination of the second series of trajectory traction points corresponding to the foot end according to the swing height and swing length, the method further includes:

判断原足端轨迹与所述第一台阶的踢面或踏面是否存在交叉;Judging whether there is an intersection between the original foot track and the riser or tread of the first step;

所述根据所述摆动高度和摆动长度确定所述足端对应的第二系列轨迹牵引点包括:The determining the second series of track traction points corresponding to the foot end according to the swing height and swing length includes:

若存在交叉,则根据所述摆动高度和摆动长度确定所述足端对应的第二系列轨迹牵引点。If there is an intersection, a second series of trajectory traction points corresponding to the foot end are determined according to the swing height and swing length.

可选的,在所述根据所述摆动高度和摆动长度确定所述足端对应的第一系列轨迹牵引点之前,所述方法还包括:Optionally, before the determination of the first series of trajectory traction points corresponding to the foot end according to the swing height and swing length, the method further includes:

判断所述足端与所述第二台阶的踢面的距离是否小于预设距离;judging whether the distance between the foot end and the rising surface of the second step is less than a preset distance;

所述根据所述摆动高度和摆动长度确定所述足端对应的第一系列轨迹牵引点包括:The determining the first series of track traction points corresponding to the foot end according to the swing height and swing length includes:

若小于,则根据所述摆动高度和摆动长度确定所述足端对应的第一系列轨迹牵引点。If less, determine the first series of trajectory traction points corresponding to the foot end according to the swing height and swing length.

可选的,所述确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度包括:Optionally, the determination of the swing height and swing length of the foot end of at least one leg in the first swing phase from lifting from the first step to falling to the second step includes:

若机器人为盲爬模式,则接收指令在预设楼梯尺寸表中筛选目标楼梯尺寸信息,并根据所述目标楼梯尺寸信息确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度;If the robot is in the blind climbing mode, receive an instruction to filter the target staircase size information in the preset staircase size table, and determine that the foot end of at least one leg is lifted from the first step in the first swing phase according to the target staircase size information The swing height and swing length to fall to the second step;

或,or,

若机器人为视觉模式,则根据机器人的视觉信息确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度。If the robot is in the visual mode, then determine the swing height and swing length of the foot end of at least one leg in the first swing phase from lifting from the first step to falling to the second step according to the visual information of the robot.

本申请第二方面提供了一种足式机器人足端轨迹规划的方法,包括:The second aspect of the present application provides a method for foot trajectory planning of a legged robot, including:

当感测到障碍物时,确定所述障碍物的属性信息,所述属性信息包括形状和尺寸信息;When an obstacle is sensed, determine attribute information of the obstacle, where the attribute information includes shape and size information;

根据所述属性信息判断是否满足预设的轨迹切换条件;judging whether a preset track switching condition is met according to the attribute information;

若是,则根据所述属性信息确定至少一条腿的足端在第二摆动相,从起始点到落足点的摆动高度和摆动长度,所述起始点为支撑腿的足端在第二支撑相时所在位置,所述第二支撑相和所述第二摆动相在时间上连续,且所述第二支撑相早于所述第二摆动相;If so, determine the swing height and length from the starting point to the foothold point of the foot end of at least one leg in the second swing phase according to the attribute information, and the starting point is that the foot end of the supporting leg is in the second support phase. time position, the second support phase and the second swing phase are continuous in time, and the second support phase is earlier than the second swing phase;

根据所述第三系列轨迹牵引点生成第三足端轨迹,并根据所述第三足端轨迹控制所述足端跨过所述障碍物。A third foot end trajectory is generated according to the third series of trajectory traction points, and the foot end is controlled to cross the obstacle according to the third foot end trajectory.

可选的,所述第三系列轨迹牵引点包括第一组合牵引点和第二组合牵引点;Optionally, the third series of trajectory traction points includes a first combined traction point and a second combined traction point;

所述第一组合牵引点包括至少1个第三足端抬起后收牵引点、至少1个第三足端前摆牵引点和至少1个第三足端落下后收牵引点;The first combined traction point includes at least one traction point where the third foot end is lifted and retracted, at least one traction point where the third foot end is swung forward, and at least one traction point where the third foot end is dropped and retracted;

所述第二组合牵引点包括至少1个第三足端抬起后收牵引点和至少1个第三足端前摆牵引点;The second combined traction point includes at least one traction point for raising and retracting the third foot end and at least one traction point for swinging the third foot end forward;

所述至少1个第三足端抬起后收牵引点,用于在足端抬起过程中牵引足端后收,以防止足端在抬起过程中碰到所述障碍物;The at least one third foot-end lifting and retracting traction point is used for pulling the foot-end to retract during the lifting process of the foot-end, so as to prevent the foot-end from touching the obstacle during the lifting process;

所述至少1个第三足端前摆牵引点,用于在足端抬起高度超过所述障碍物后,牵引足端前摆并绕开所述障碍物边缘;The at least one third foot end forward swing traction point is used to pull the foot end forward swing and bypass the edge of the obstacle after the foot end is lifted higher than the obstacle;

所述至少1个第三足端落下后收牵引点,用于在足端下落过程中牵引足端后收,避免足端在下落过程中碰到所述障碍物边缘。The at least one third foot-end retraction traction point is used for pulling the foot-end to retract during the falling process of the foot-end, so as to prevent the foot-end from touching the edge of the obstacle during the falling process.

可选的,所述根据所述属性信息判断是否满足预设的轨迹切换条件包括:Optionally, the judging whether a preset track switching condition is met according to the attribute information includes:

根据所述属性信息判断原足端轨迹与所述障碍物是否存在交叉,若存在,则确定满足预设的轨迹切换条件;According to the attribute information, it is judged whether there is an intersection between the original foot track and the obstacle, and if there is, it is determined that the preset track switching condition is met;

或,or,

根据所述属性信息判断原足端轨迹中的起始点与所述障碍物的距离是否小于预设距离,若小于,则确定满足预设的轨迹切换条件。According to the attribute information, it is judged whether the distance between the starting point in the original foot-end trajectory and the obstacle is less than a preset distance, and if it is smaller, it is determined that the preset trajectory switching condition is met.

本申请第三方面提供了一种足式机器人足端轨迹规划的装置,所述装置包括:传感单元和控制单元;The third aspect of the present application provides a foot trajectory planning device for a legged robot, the device includes: a sensing unit and a control unit;

所述传感单元用于:The sensing unit is used for:

确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度,所述第一台阶为所述支撑腿的足端在第一支撑相时所在台阶,所述第一支撑相和所述第一摆动相在时间上连续,且所述第一支撑相早于所述第一摆动相;Determine the swing height and swing length of the foot end of at least one leg in the first swing phase from the first step to the second step, the first step being the foot end of the supporting leg in the first support phase The step where the time is, the first support phase and the first swing phase are continuous in time, and the first support phase is earlier than the first swing phase;

所述控制单元用于:The control unit is used for:

若所述第二台阶的踏面比所述第一台阶的踏面高,则根据所述摆动高度和摆动长度确定所述足端对应的第一系列轨迹牵引点;If the tread of the second step is higher than the tread of the first step, then determine the first series of trajectory traction points corresponding to the foot end according to the swing height and swing length;

根据所述第一系列轨迹牵引点生成第一足端轨迹,并根据所述第一足端轨迹控制所述足端落足于所述第二台阶;generating a first foot end trajectory according to the first series of trajectory traction points, and controlling the foot end to land on the second step according to the first foot end trajectory;

若所述第二台阶的踏面比所述第一台阶的踏面低,则根据所述摆动高度和摆动长度确定所述足端对应的第二系列轨迹牵引点;If the tread of the second step is lower than the tread of the first step, then determine the second series of track traction points corresponding to the foot end according to the swing height and swing length;

根据所述第二系列轨迹牵引点生成第二足端轨迹,并根据所述第二足端轨迹控制所述足端落足于第二台阶。A second foot end trajectory is generated according to the second series of trajectory traction points, and the foot end is controlled to land on the second step according to the second foot end trajectory.

本申请第四方面提供了一种足式机器人足端轨迹规划的装置,所述装置包括:传感单元和控制单元;The fourth aspect of the present application provides a device for planning foot trajectory of a legged robot, the device comprising: a sensing unit and a control unit;

所述传感单元用于:The sensing unit is used for:

当感测到障碍物时,确定所述障碍物的属性信息,所述属性信息包括形状和尺寸信息;When an obstacle is sensed, determine attribute information of the obstacle, where the attribute information includes shape and size information;

所述控制单元用于:The control unit is used for:

根据所述属性信息判断是否满足预设的轨迹切换条件;judging whether a preset track switching condition is met according to the attribute information;

所述传感单元还用于:当所述控制单元根据所述属性信息判断满足预设的轨迹切换条件时,根据所述属性信息确定至少一条腿的足端在第二摆动相,从起始点到落足点的摆动高度和摆动长度,所述起始点为支撑腿的足端在第二支撑相时所在位置,所述第二支撑相和所述第二摆动相在时间上连续,且所述第二支撑相早于所述第二摆动相;The sensing unit is further configured to: when the control unit judges according to the attribute information that the preset trajectory switching condition is satisfied, determine according to the attribute information that the foot end of at least one leg is in the second swing phase, from the starting point The swing height and swing length to the foothold point, the starting point is the position where the foot end of the supporting leg is in the second support phase, the second support phase and the second swing phase are continuous in time, and the said second strut phase is earlier than said second swing phase;

所述控制单元还用于:The control unit is also used for:

根据所述摆动高度和摆动长度确定所述足端对应的第三系列轨迹牵引点;Determine the third series of trajectory traction points corresponding to the foot end according to the swing height and swing length;

根据所述第三系列轨迹牵引点生成第三足端轨迹,并根据所述第三足端轨迹控制所述足端跨过所述障碍物。A third foot end trajectory is generated according to the third series of trajectory traction points, and the foot end is controlled to cross the obstacle according to the third foot end trajectory.

本申请第五方面提供了一种足式机器人,所述足式机器人包括:A fifth aspect of the present application provides a legged robot, the legged robot comprising:

处理器、存储器、输入输出单元以及总线;Processor, memory, I/O unit and bus;

所述处理器与所述存储器、所述输入输出单元以及所述总线相连;The processor is connected to the memory, the input and output unit and the bus;

所述存储器保存有程序,所述处理器调用所述程序以执行第一方面以及第一方面中任一项可选的足式机器人足端轨迹规划的方法。The memory stores a program, and the processor invokes the program to execute the first aspect and any optional method for foot trajectory planning of the legged robot in the first aspect.

从以上技术方案可以看出,本申请具有以下优点:As can be seen from the above technical solutions, the present application has the following advantages:

当足式机器人上下台阶或跨越障碍物时,足式机器人将根据不同的障碍类型,设计不同类型的、可变数量的轨迹牵引点,再基于设计的轨迹牵引点生成机器人的足端轨迹,这样设计出的足端轨迹,即本申请中的第一足端轨迹、第二足端轨迹和第三足端轨迹,能够避免机器人足端与台阶或障碍物之间发生磕碰,使得机器人能够平稳地上下台阶以及跨越障碍物,提高机器人在行进过程中的稳定性。When the legged robot goes up and down steps or crosses obstacles, the legged robot will design different types and variable number of trajectory traction points according to different obstacle types, and then generate the foot trajectory of the robot based on the designed trajectory traction points, so that The designed foot trajectory, that is, the first foot trajectory, the second foot trajectory and the third foot trajectory in this application, can avoid the collision between the robot foot and the steps or obstacles, so that the robot can go up smoothly. Go down steps and cross obstacles to improve the stability of the robot during travel.

附图说明Description of drawings

为了更清楚地说明本申请中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in this application more clearly, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1-a和图1-b为本申请提供的足式机器人的硬件结构和机械结构的示意图;Figure 1-a and Figure 1-b are schematic diagrams of the hardware structure and mechanical structure of the legged robot provided by the present application;

图2-a为本申请提供的足式机器人足端轨迹规划的方法中上台阶场景流程示意图;Fig. 2-a is a schematic diagram of the upper step scene flow in the method for foot end trajectory planning of the legged robot provided by the present application;

图2-b为本申请提供的足式机器人足端轨迹规划的方法中第一系列轨迹牵引点和第一足端轨迹示意图;Figure 2-b is a schematic diagram of the first series of trajectory traction points and the first foot end trajectory in the method for foot end trajectory planning of a legged robot provided by the present application;

图3-a为本申请提供的足式机器人足端轨迹规划的方法中下台阶场景流程示意图;Fig. 3-a is a schematic flow diagram of the step-down scene in the method for foot trajectory planning of the legged robot provided by the present application;

图3-b为本申请提供的足式机器人足端轨迹规划的方法中第二系列轨迹牵引点和第二足端轨迹示意图;Figure 3-b is a schematic diagram of the second series of trajectory traction points and the second foot end trajectory in the method for foot end trajectory planning of a legged robot provided by the present application;

图4-a为本申请提供的足式机器人足端轨迹规划的方法中跨越障碍物场景流程示意图;Figure 4-a is a schematic flow diagram of the obstacle-crossing scene in the method for foot trajectory planning of the legged robot provided by the present application;

图4-b为本申请提供的足式机器人足端轨迹规划的方法中第三系列轨迹牵引点和第三足端轨迹示意图;Figure 4-b is a schematic diagram of the third series of trajectory traction points and the third foot end trajectory in the method for foot end trajectory planning of a legged robot provided by the present application;

图5为本申请提供的足式机器人一个实施例结构示意图。Fig. 5 is a schematic structural diagram of an embodiment of a legged robot provided by the present application.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are part of the embodiments of the present invention, rather than all of them. example. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

需要说明的是,本申请所提供的一种足式机器人足端轨迹规划的方法、装置及足式机器人,以下将对本申请提供的机器人的硬件结构和机械结构进行说明。在后续的描述中,使用用于表示部件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。It should be noted that the present application provides a method and device for foot trajectory planning of a legged robot, and the legged robot. The following will describe the hardware structure and mechanical structure of the robot provided by this application. In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting components is only for facilitating description of the present invention and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be used in combination.

请参阅图1-a,图1-a为本发明其中一个实施方式的多足机器人100的硬件结构示意图。在图1-a所示的实施方式中,多足机器人100包括机械单元101、通讯单元102、传感单元103、接口单元104、存储单元105、控制单元110、电源111。多足机器人100的各种部件可以以任何方式连接,包括有线或无线连接等。本领域技术人员可以理解,图1-a中示出的多足机器人100的具体结构并不构成对多足机器人100的限定,多足机器人100可以包括比图示更多或更少的部件,某些部件也并不属于多足机器人100的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略,或者组合某些部件。Please refer to FIG. 1-a. FIG. 1-a is a schematic diagram of the hardware structure of a multi-legged robot 100 according to one embodiment of the present invention. In the embodiment shown in FIG. 1-a , the multi-legged robot 100 includes a mechanical unit 101 , a communication unit 102 , a sensing unit 103 , an interface unit 104 , a storage unit 105 , a control unit 110 , and a power supply 111 . The various components of the multi-legged robot 100 may be connected in any manner, including wired or wireless connections, and the like. Those skilled in the art can understand that the specific structure of the multi-legged robot 100 shown in FIG. Certain components are not essential components of the multi-legged robot 100 , and can be omitted or combined as required without changing the essence of the invention.

下面结合图1-a对多足机器人100的各个部件进行具体的介绍:The various components of the multi-legged robot 100 are specifically introduced below in conjunction with FIG. 1-a:

机械单元101为多足机器人100的硬件。如图1-a所示,机械单元101可包括驱动板1011、电机1012、机械结构1013,如图1-b所示,机械结构1013可包括机身主体1014、可伸展的腿部1015、足部1016,在其他实施方式中,机械结构1013还可包括可伸展的机械臂(图未示)、可转动的头部结构1017、可摇动的尾巴结构1018、载物结构1019、鞍座结构1020、摄像头结构1021等。需要说明的是,机械单元101的各个部件模块可以为一个也可以为多个,可根据具体情况设置,比如腿部1015可为4个,每个腿部1015可配置3个电机1012,对应的电机1012为12个。The mechanical unit 101 is the hardware of the multi-legged robot 100 . As shown in Fig. 1-a, the mechanical unit 101 may include a driving board 1011, a motor 1012, and a mechanical structure 1013. As shown in Fig. part 1016, in other embodiments, the mechanical structure 1013 can also include an extendable mechanical arm (not shown), a rotatable head structure 1017, a swingable tail structure 1018, a loading structure 1019, and a saddle structure 1020 , camera structure 1021, etc. It should be noted that each component module of the mechanical unit 101 can be one or more, which can be set according to specific conditions. For example, there can be four legs 1015, and each leg 1015 can be equipped with three motors 1012, corresponding There are twelve motors 1012 .

通讯单元102可用于信号的接收和发送,还可以通过与网络和其他设备通信,比如,接收遥控器或其他多足机器人100发送的按照特定步态以特定速度值向特定方向移动的指令信息后,传输给控制单元110处理。通讯单元102包括如WiFi模块、4G模块、5G模块、蓝牙模块、红外模块等。The communication unit 102 can be used for receiving and sending signals, and can also communicate with the network and other devices, for example, after receiving the command information sent by the remote controller or other multi-legged robot 100 to move in a specific direction at a specific speed value according to a specific gait , transmitted to the control unit 110 for processing. The communication unit 102 includes, for example, a WiFi module, a 4G module, a 5G module, a Bluetooth module, an infrared module, and the like.

传感单元103用于获取多足机器人100周围环境的信息数据以及监控多足机器人100内部各部件的参数数据,并发送给控制单元110。传感单元103包括多种传感器,如获取周围环境信息的传感器:激光雷达(用于远程物体检测、距离确定和/或速度值确定)、毫米波雷达(用于短程物体检测、距离确定和/或速度值确定)、摄像头、红外摄像头、全球导航卫星系统(GNSS,Global Navigation Satellite System)等。如监控多足机器人100内部各部件的传感器:惯性测量单元(IMU,Inertial Measurement Unit)(用于测量速度值、加速度值和角速度值的值),足底传感器(用于监测足底着力点位置、足底姿态、触地力大小和方向)、温度传感器(用于检测部件温度)。至于多足机器人100还可配置的载荷传感器、触摸传感器、电机角度传感器、扭矩传感器等其他传感器,在此不再赘述。The sensing unit 103 is used to acquire information data of the surrounding environment of the multi-legged robot 100 and monitor parameter data of various components inside the multi-legged robot 100 , and send them to the control unit 110 . The sensing unit 103 includes a variety of sensors, such as sensors for acquiring surrounding environment information: laser radar (for long-range object detection, distance determination and/or speed value determination), millimeter-wave radar (for short-range object detection, distance determination and/or or speed value), camera, infrared camera, Global Navigation Satellite System (GNSS, Global Navigation Satellite System), etc. Sensors such as monitoring the various parts inside the multi-legged robot 100: inertial measurement unit (IMU, Inertial Measurement Unit) (for measuring the value of velocity value, acceleration value and angular velocity value), plantar sensor (for monitoring the position of plantar force point , foot posture, ground contact force size and direction), temperature sensor (used to detect component temperature). As for other sensors such as load sensors, touch sensors, motor angle sensors, and torque sensors that can be configured on the multi-legged robot 100 , details will not be repeated here.

接口单元104可以用于接收来自外部装置的输入(例如,数据信息、电力等)并且将接收到的输入传输到多足机器人100内的一个或多个部件,或者可以用于向外部装置输出(例如,数据信息、电力等)。接口单元104可包括电源端口、数据端口(如USB端口)、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口等。Interface unit 104 may be used to receive input (e.g., data information, power, etc.) For example, data information, power, etc.). The interface unit 104 may include a power port, a data port such as a USB port, a memory card port, a port for connecting a device with an identification module, an audio input/output (I/O) port, a video I/O port, and the like.

存储单元105用于存储软件程序以及各种数据。存储单元105可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统程序、运动控制程序、应用程序(比如文本编辑器)等;数据存储区可存储多足机器人100在使用中所生成的数据(比如传感单元103获取的各种传感数据,日志文件数据)等。此外,存储单元105可以包括高速随机存取存储器,还可以包括非易失性存储器,例如磁盘存储器、闪存器、或其他易失性固态存储器。The storage unit 105 is used to store software programs and various data. The storage unit 105 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system program, a motion control program, an application program (such as a text editor), etc.; The data generated in (such as various sensing data acquired by the sensing unit 103, log file data) and the like. In addition, the storage unit 105 may include a high-speed random access memory, and may also include a non-volatile memory, such as a magnetic disk memory, a flash memory, or other volatile solid-state memory.

显示单元106用于显示由用户输入的信息或提供给用户的信息。显示单元106可包括显示面板1061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1061。The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

输入单元107可用于接收输入的数字或字符信息。具体地,输入单元107可包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏,可收集用户的触摸操作(比如用户使用手掌、手指或适合的附件在触控面板1071上或在触控面板1071附近的操作),并根据预先设定的程式驱动相应的连接装置。触控面板1071可包括触摸检测装置1073和触摸控制器1074两个部分。其中,触摸检测装置1073检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器1074;触摸控制器1074从触摸检测装置1073上接收触摸信息,并将它转换成触点坐标,再送给控制单元110,并能接收控制单元110发来的命令并加以执行。除了触控面板1071,输入单元107还可以包括其他输入设备1072。具体地,其他输入设备1072可以包括但不限于遥控操作手柄等中的一种或多种,具体此处不做限定。The input unit 107 can be used to receive input numeric or character information. Specifically, the input unit 107 may include a touch panel 1071 and other input devices 1072 . The touch panel 1071, also referred to as a touch screen, can collect user's touch operations (such as the user's operation on the touch panel 1071 or near the touch panel 1071 with the palm, fingers or suitable accessories), and The program drives the corresponding connected device. The touch panel 1071 may include two parts, a touch detection device 1073 and a touch controller 1074 . Among them, the touch detection device 1073 detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller 1074; the touch controller 1074 receives the touch information from the touch detection device 1073, and converts it into a touch signal. The point coordinates are sent to the control unit 110, and the commands sent by the control unit 110 can be received and executed. In addition to the touch panel 1071 , the input unit 107 may also include other input devices 1072 . Specifically, other input devices 1072 may include, but are not limited to, one or more of remote control handles, etc., which are not specifically limited here.

进一步的,触控面板1071可覆盖显示面板1061,当触控面板1071检测到在其上或附近的触摸操作后,传送给控制单元110以确定触摸事件的类型,随后控制单元110根据触摸事件的类型在显示面板1061上提供相应的视觉输出。虽然在图1-a中,触控面板1071与显示面板1061是作为两个独立的部件来分别实现输入和输出功能,但是在某些实施例中,可以将触控面板1071与显示面板1061集成而实现输入和输出功能,具体此处不做限定。Further, the touch panel 1071 can cover the display panel 1061, and when the touch panel 1071 detects a touch operation on or near it, it sends it to the control unit 110 to determine the type of the touch event, and then the control unit 110 according to the touch event The type provides a corresponding visual output on the display panel 1061 . Although in FIG. 1-a, the touch panel 1071 and the display panel 1061 are used as two independent components to realize the input and output functions respectively, but in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated. The implementation of the input and output functions is not specifically limited here.

控制单元110是多足机器人100的控制中心,利用各种接口和线路连接整个多足机器人100的各个部件,通过运行或执行存储在存储单元105内的软件程序,以及调用存储在存储单元105内的数据,从而对多足机器人100进行整体控制。The control unit 110 is the control center of the multi-legged robot 100. It uses various interfaces and lines to connect the various parts of the whole multi-legged robot 100, and runs or executes the software program stored in the storage unit 105, and calls the software program stored in the storage unit 105. data, so as to control the multi-legged robot 100 as a whole.

电源111用于给各个部件供电,电源111可包括电池和电源控制板,电源控制板用于控制电池充电、放电、以及功耗管理等功能。在图1-a所示的实施方式中,电源111电连接控制单元110,在其它的实施方式中,电源111还可以分别与传感单元103(比如摄像头、雷达、音箱等)、电机1012电性连接。需要说明的是,各个部件可以各自连接到不同的电源111,或者由相同的电源111供电。The power supply 111 is used to supply power to various components. The power supply 111 may include a battery and a power control board. The power control board is used to control functions such as battery charging, discharging, and power consumption management. In the embodiment shown in Fig. 1-a, the power supply 111 is electrically connected to the control unit 110. sexual connection. It should be noted that each component may be connected to different power sources 111 , or powered by the same power source 111 .

在上述实施方式的基础上,具体地,在一些实施方式中,可以通过终端设备来与多足机器人100进行通信连接,在终端设备与多足机器人100进行通信时,可以通过终端设备来向多足机器人100发送指令信息,多足机器人100可通过通讯单元102来接收指令信息,并可在接收到指令信息的情况下,将指令信息传输至控制单元110,使得控制单元110可根据指令信息来处理得到目标速度值。终端设备包括但不限于:具备图像拍摄功能的手机、平板电脑、服务器、个人计算机、可穿戴智能设备、其它电器设备。On the basis of the above embodiments, specifically, in some embodiments, the terminal device can be used to communicate with the multi-legged robot 100, and when the terminal device communicates with the multi-legged robot 100, the terminal device can be used to communicate with The multi-legged robot 100 sends instruction information, and the multi-legged robot 100 can receive the instruction information through the communication unit 102, and can transmit the instruction information to the control unit 110 when receiving the instruction information, so that the control unit 110 can be based on the instruction information. Process to get the target speed value. Terminal devices include, but are not limited to: mobile phones, tablet computers, servers, personal computers, wearable smart devices, and other electrical equipment with image capture functions.

指令信息可以根据预设条件来确定。在一个实施方式中,多足机器人100可以包括传感单元103,传感单元103可根据多足机器人100所在的当前环境可生成指令信息。控制单元110可根据指令信息来判断多足机器人100的当前速度值是否满足对应的预设条件。若满足,则会保持多足机器人100的当前速度值和当前步态移动;若不满足,则会根据对应的预设条件来确定目标速度值和相应的目标步态,从而可控制多足机器人100以目标速度值和相应的目标步态移动。环境传感器可以包括温度传感器、气压传感器、视觉传感器、声音传感器。指令信息可以包括温度信息、气压信息、图像信息、声音信息。环境传感器与控制单元110之间的通信方式可以为有线通信,也可以为无线通信。无线通信的方式包括但不限于:无线网络、移动通信网络(3G、4G、5G等)、蓝牙、红外。The instruction information can be determined according to preset conditions. In one embodiment, the multi-legged robot 100 may include a sensing unit 103, and the sensing unit 103 may generate instruction information according to the current environment where the multi-legged robot 100 is located. The control unit 110 can determine whether the current speed value of the multi-legged robot 100 satisfies a corresponding preset condition according to the instruction information. If satisfied, the current velocity value and current gait movement of the multi-legged robot 100 will be maintained; if not satisfied, the target velocity value and the corresponding target gait will be determined according to the corresponding preset conditions, so that the multi-legged robot can be controlled 100 moves at a target velocity value and corresponding target gait. Environmental sensors may include temperature sensors, air pressure sensors, visual sensors, sound sensors. The instruction information may include temperature information, air pressure information, image information, and sound information. The communication mode between the environment sensor and the control unit 110 may be wired communication or wireless communication. Ways of wireless communication include but are not limited to: wireless network, mobile communication network (3G, 4G, 5G, etc.), Bluetooth, and infrared.

以上对本申请提供的足式机器人的硬件结构和机械结构进行说明,下面对本申请提供的足式机器人足端轨迹规划的方法进行说明。The hardware structure and mechanical structure of the legged robot provided by the present application are described above, and the method of foot end trajectory planning of the legged robot provided by the present application will be described below.

本申请提供了一种足式机器人足端轨迹规划的方法、装置及足式机器人,用于使机器人能够平稳地上下台阶以及跨越障碍物,减少磕碰,提高机器人在上下台阶以及跨越障碍物过程中的稳定性。本申请中的足式机器人可以是两足、三足、四足、六足、八足等形式的机器人,具体此不作限定,为方便描述,以下统称为足式机器人或机器人。本申请中的足端位置的坐标,可以是足端的中心点坐标,也可以是足端表面上任意一点的坐标,还可以是足端接触地面的坐标,具体此处不做限定。This application provides a method and device for foot trajectory planning of a legged robot and a legged robot, which are used to enable the robot to smoothly go up and down steps and cross obstacles, reduce bumps, and improve the robot's ability to move up and down steps and cross obstacles. stability. The legged robot in this application may be a robot with two legs, three legs, four legs, six legs, eight legs, etc., which is not limited in detail. For the convenience of description, they are collectively referred to as legged robots or robots hereinafter. The coordinates of the foot end position in this application may be the coordinates of the center point of the foot end, or the coordinates of any point on the surface of the foot end, or the coordinates of the foot end touching the ground, which is not limited here.

本申请中对于不同的障碍类型需设计有不同的轨迹牵引点,为方便描述,本申请将障碍类型分为三类描述:其一是机器人上台阶场景;其二是机器人下台阶场景;其三是机器人跨越障碍物场景,下面分别进行描述。In this application, different trajectory traction points need to be designed for different obstacle types. For the convenience of description, this application divides the obstacle types into three types of descriptions: one is the scene where the robot goes up the steps; the other is the scene where the robot goes down the steps; It is the scene where the robot crosses obstacles, which will be described separately below.

一、机器人上台阶场景:1. The scene where the robot goes up the stairs:

请参阅图2-a,图2-a为本申请提供的足式机器人足端轨迹规划的方法的一个实施例,该实施例对应机器人上台阶场景,该方法包括:Please refer to Fig. 2-a, Fig. 2-a is an embodiment of the method for foot trajectory planning of the legged robot provided by the present application. This embodiment corresponds to the scene where the robot goes up the steps. The method includes:

201、确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度,第一台阶为支撑腿的足端在第一支撑相时所在台阶,第一支撑相和第一摆动相在时间上连续,且第一支撑相早于第一摆动相;201. Determine the swing height and swing length of the foot end of at least one leg in the first swing phase from lifting from the first step to falling to the second step. The first step is where the foot end of the supporting leg is in the first support phase step, the first support phase and the first swing phase are continuous in time, and the first support phase is earlier than the first swing phase;

足式机器人的步行周期是指机器人行走过程中某条腿的足端着地至该足端跟再次着地时所经过的时间,在单个步行周期内的足端轨迹主要包括两个阶段,一个阶段是足端与地面接触产生力的时间段,该阶段被称为支撑阶段或支撑相,是指单腿足端着地开始到再次抬腿足端离地期间腿的连续相位变化过程;另一个阶段是足端在空中摆动的时间段,该阶段被称为摆动阶段或摆动相,是指单腿从抬腿时足端离地开始,到迈腿后足端落地期间腿的连续相位变化过程。机器人在行走过程中,各条腿的步态在支撑相和摆动相之间来回切换。The walking cycle of a legged robot refers to the time elapsed from when the foot end of a certain leg touches the ground to when the foot end heel touches the ground again. The foot end trajectory in a single walking cycle mainly includes two stages. One stage is The time period when the foot end is in contact with the ground to generate force, this stage is called the support phase or support phase, which refers to the continuous phase change process of the leg during the period from when the foot end of a single leg touches the ground to when the foot end of the leg is lifted off the ground again; the other stage is The time period during which the foot end swings in the air, which is called the swing phase or swing phase, refers to the continuous phase change process of the leg during the period from when the foot end leaves the ground when the leg is lifted, to when the foot end lands on the ground after the leg is stepped. During the walking process of the robot, the gait of each leg switches back and forth between the stance phase and the swing phase.

在本实施例中,在机器人上下台阶的过程中,控制单元确定机器人至少一个支撑腿的足端从第一台阶抬起至落到第二台阶的摆动高度和摆动长度。该足端从第一台阶抬起,经过第一摆动相后落足于第二台阶,该第一台阶为该足端在第一支撑相时所在的台阶,该第二台阶为足端从该第一台阶离开,经过第一摆动相后足端再次落下的台阶。该摆动高度取决于第一台阶与第二台阶在竖直方向上的高度差,该摆动长度取决于该支撑腿在第一台阶上的起始点到第二台阶上的落足点的水平方向距离。In this embodiment, during the process of the robot going up and down the steps, the control unit determines the swing height and swing length of the foot end of at least one supporting leg of the robot from lifting from the first step to falling to the second step. The foot end is lifted from the first step, and after the first swing phase, it lands on the second step. The first step is the step where the foot end is in the first support phase. The first step leaves, the step where the foot end falls again after the first swing phase. The swing height depends on the height difference between the first step and the second step in the vertical direction, and the swing length depends on the horizontal distance from the starting point of the support leg on the first step to the foothold point on the second step .

在一些具体的实施例中,该摆动高度和摆动长度可以由足端的起始点坐标和落足点坐标确定,其中起始点的坐标是该足端位于第一台阶时的坐标,落足点的坐标是该足端位于第二台阶时的坐标。该摆动高度为起始点和落足点在竖直方向的坐标差,取决于第一台阶与第二台阶在竖直方向上的高度差,该摆动长度为起始点和落足点在水平方向的坐标差,与第一台阶和第二台阶的踏面宽度相关。In some specific embodiments, the swing height and swing length can be determined by the coordinates of the starting point of the foot end and the coordinates of the foothold point, wherein the coordinates of the starting point are the coordinates when the foot end is on the first step, and the coordinates of the foothold point are are the coordinates of the foot end at the second step. The swing height is the coordinate difference between the starting point and the foothold point in the vertical direction, which depends on the height difference between the first step and the second step in the vertical direction, and the swing length is the coordinate difference between the starting point and the foothold point in the horizontal direction. The difference in coordinates, related to the tread widths of the first and second steps.

需要说明的是,本申请中的台阶包括单级、多级台阶以及房屋楼梯,具体不作限定,为方便描述统称为台阶,本申请中的踢面是指台阶的竖直面,踏面是指台阶的水平面。It should be noted that the steps in this application include single-level, multi-level steps and house stairs, which are not specifically limited. For the convenience of description, they are collectively referred to as steps. The kicking surface in this application refers to the vertical surface of the steps, and the tread refers to the steps level.

202、若第二台阶的踏面比第一台阶的踏面高,则根据摆动高度和摆动长度确定足端对应的第一系列轨迹牵引点;202. If the tread surface of the second step is higher than the tread surface of the first step, then determine the first series of track traction points corresponding to the foot end according to the swing height and swing length;

如果第二台阶的踏面高于第一台阶的踏面,具体是指第二台阶的踏面在竖直方向上高于第一台阶的踏面,对应机器人上台阶的场景,在上台阶过程中,如果足端与第二台阶的距离较近,足端抬起时容易磕碰到第二台阶的竖直踢面,并且足端在前摆过程中容易磕碰到第二台阶的边缘,这都会导致机器人失稳,甚至摔倒。If the tread of the second step is higher than the tread of the first step, it specifically means that the tread of the second step is higher than the tread of the first step in the vertical direction, corresponding to the scene where the robot goes up the steps. The distance between the foot end and the second step is relatively short, and the foot end is easy to hit the vertical kick surface of the second step when it is lifted, and the foot end is easy to hit the edge of the second step during the forward swing process, which will cause the robot to become unstable. , or even fall.

为了避免在上台阶过程中足端与第二台阶发生磕碰,控制单元根据上述支撑腿的摆动高度和摆动长度确定该支撑腿足端的第一系列轨迹牵引点,其中第一系列轨迹牵引点包括:至少1个第一足端后收牵引点和至少1个第一足端前摆牵引点,该第一足端后收牵引点用于在足端抬起过程中牵引足端后收,以防止足端在抬起过程中碰到第二台阶的踢面;该第一足端前摆牵引点用于在足端抬起高度超过第二台阶的踏面后,牵引足端前摆并绕开第二台阶的边缘。In order to avoid collision between the foot end and the second step during the step-up process, the control unit determines the first series of trajectory traction points of the foot end of the support leg according to the swing height and swing length of the above-mentioned support leg, wherein the first series of trajectory traction points include: At least 1 first foot-end retraction traction point and at least 1 first foot-end-swing forward traction point, the first foot-end retraction traction point is used to pull the foot-end retraction during the lifting process of the foot-end to prevent The end of the foot hits the riser of the second step during lift; the first end-of-foot traction point is used to pull the end of the foot forward and around the first step after the end of the foot is raised above the tread of the second step The edge of the second step.

进一步的,由于不同的足式机器人的控制性能有较大差异,对于所规划出的足端轨迹的执行能力也有所不同,为了让绝大多数机器人都能执行规划轨迹,就需要轨迹的速度、加速度特性更加柔和。基于上述原因,在一些具体的实施例中,该第一系列轨迹牵引点还可以进一步包括:至少1个第一足端速度牵引点,该第一足端速度牵引点用于在足端与第二台阶的踏面的距离小于预设距离时,牵引足端降低落足于第二台阶的踏面的速度和/或加速度,减轻足端落地时的冲击力,以此保证足端落地时足够平稳。Furthermore, since the control performance of different legged robots is quite different, the execution ability of the planned foot trajectory is also different. In order for most robots to execute the planned trajectory, the trajectory speed, Acceleration characteristics are softer. Based on the above reasons, in some specific embodiments, the first series of trajectory traction points may further include: at least one first foot-end speed traction point, the first foot-end speed traction point is used for When the distance between the treads of the second step is less than the preset distance, the traction foot reduces the speed and/or acceleration of the tread on the second step, reducing the impact of the foot when it lands, so as to ensure that the foot is stable enough when it lands.

203、根据第一系列轨迹牵引点生成第一足端轨迹,并根据第一足端轨迹控制足端落足于第二台阶。203. Generate a first foot end trajectory according to the first series of trajectory traction points, and control the foot end to land on the second step according to the first foot end trajectory.

控制单元根据上台阶场景所对应的第一系列轨迹牵引点,即至少1个第一足端后收牵引点和至少1个第一足端前摆牵引点来生成第一足端轨迹,需要说明的是,本申请中的轨迹牵引点仅是对足端轨迹起到牵引作用,足端的实际轨迹并不一定要经过这些轨迹牵引点,这些轨迹牵引点的目的是让轨迹发生改变。通过第一系列轨迹牵引点所生成的第一足端轨迹,能够使足端在抬起过程中绕开台阶(第二台阶),上台阶时能够避免机器人踢到或磕碰到台阶的竖直平面以及台阶边缘,从而使得机器人能够平稳地完成上台阶动作。The control unit generates the first foot end trajectory according to the first series of trajectory traction points corresponding to the scene of going up stairs, that is, at least one first foot end retraction traction point and at least one first foot end forward swing traction point, which needs to be explained What is more interesting is that the track traction points in this application only play a role of traction on the foot track, and the actual track of the foot end does not necessarily pass through these track traction points. The purpose of these track traction points is to change the track. The first foot end trajectory generated by the first series of trajectory traction points can make the foot end bypass the step (second step) during the lifting process, and prevent the robot from kicking or bumping into the vertical plane of the step when going up the step And the edge of the step, so that the robot can smoothly complete the action of going up the step.

具体请参阅图2-b,图2-b为机器人上台阶场景对应的第一系列轨迹牵引点与第一足端轨迹示意图,其中c1(x1,y1)为起始点,位于第一台阶上;Please refer to Figure 2-b for details. Figure 2-b is a schematic diagram of the first series of trajectory traction points and the first foot end trajectory corresponding to the scene where the robot goes up the steps, where c1 (x1, y1) is the starting point and is located on the first step;

c2(x1-0.1*L,y1+0.3*h)和c3(x1-0.2*L,y1+1.1*h)对应本实施例中的第一足端后收牵引点,其目的在于使足端在x方向有向后的位移,在足端抬起过程中牵引足端后收,避免足端抬起过程中碰到第二台阶的踢面;c2(x1-0.1*L, y1+0.3*h) and c3(x1-0.2*L, y1+1.1*h) correspond to the traction point of the first foot end in this embodiment, and its purpose is to make the foot end There is a backward displacement in the x direction, and the foot end is pulled back during the lifting process to avoid touching the kicking surface of the second step during the lifting process of the foot end;

c4(x1,y1+1.2*h)对应本实施例中的第一足端前摆牵引点,用于牵引足端高度超过第二台阶的踏面高度后,牵引足端前摆并绕开第二台阶的边缘,确保在足端在前摆时不会碰到第二台阶的边缘;c4(x1, y1+1.2*h) corresponds to the traction point of the first foot end forward swing in this embodiment, and is used to draw the foot end forward swing and bypass the second step after the height of the foot end exceeds the tread height of the second step. the edge of the step, making sure that the end of the foot does not touch the edge of the second step when swinging forward;

c5(x1+L,y1+h)为落足点,位于第二台阶上,且与第二台阶的边缘有一定的安全距离;c5(x1+L,y1+h) is the foothold, located on the second step, and has a certain safety distance from the edge of the second step;

足端速度牵引点则具体是通过在轨迹的落足点附近或落足点重合处设置1至3个速度牵引点来降低足端落地速度。以设置2个速度牵引点为例进行说明:在c5附近或重合处增加2个控制点c5_2、c5_3,由此使得足端到达落足点时的速度和加速度都可以接近或降低到0,使上台阶过程中足端可以平稳的落足于第二台阶上,使机器人对于整个轨迹的控制跟踪更加平稳。The foot-end speed traction point is specifically to reduce the foot-end landing speed by setting 1 to 3 speed traction points near the foothold point of the trajectory or at the overlap of the foothold points. Take setting two speed traction points as an example: add two control points c5_2 and c5_3 near or at the overlap of c5, so that the speed and acceleration when the foot reaches the foothold point can be close to or reduced to 0, so that In the process of going up the steps, the end of the foot can smoothly land on the second step, so that the robot can control and track the entire trajectory more smoothly.

在一些具体的实施例中,在确定第一系列轨迹牵引点之前,控制单元可以先判断原足端轨迹与第二台阶的踢面或踏面是否存在交叉:当确定不存在交叉时,则说明足端与第二台阶不会发生磕碰,此时无需进行干预;当确定存在交叉时,足端将可能与第二台阶发生磕碰,此时就需要对机器人原足端轨迹进行干预,即通过上述步骤202和203确定足端对应的第一系列轨迹牵引点,并根据该第一系列轨迹牵引点生成第一足端轨迹。In some specific embodiments, before determining the traction points of the first series of trajectories, the control unit may first judge whether there is an intersection between the original foot end trajectory and the riser or tread of the second step: when it is determined that there is no intersection, then the foot There will be no collision between the foot end and the second step, and there is no need to intervene at this time; when it is determined that there is an intersection, the foot end may collide with the second step, and it is necessary to intervene on the original foot end trajectory of the robot, that is, through the above steps 202 and 203 determine the first series of trajectory traction points corresponding to the foot end, and generate the first foot end trajectory according to the first series of trajectory traction points.

在另一些具体的实施例中,由于在上楼梯场景中,如果起始点距离第二台阶的踢面距离较近,足端抬起过程中就极有可能与第二台阶发生磕碰,因此在确定第一系列轨迹牵引点之前,控制单元可以先判断足端与第二台阶的踢面的距离是否小于预设距离:当不小于预设距离时,此时可以选择不进行干预;当小于预设距离时,足端极可能与第二台阶发生磕碰,此时就需要对机器人原足端轨迹进行干预,即通过上述步骤202和203确定足端对应的第一系列轨迹牵引点,并根据该第一系列轨迹牵引点生成第一足端轨迹。In some other specific embodiments, since in the stair climbing scene, if the starting point is relatively close to the riser of the second step, the foot end is likely to collide with the second step during the lifting process, so when determining Before the first series of trajectory traction points, the control unit can first judge whether the distance between the foot end and the rising surface of the second step is less than the preset distance: when it is not less than the preset distance, you can choose not to intervene at this time; when it is less than the preset distance distance, the foot end is likely to collide with the second step. At this time, it is necessary to intervene on the original foot end trajectory of the robot, that is, determine the first series of trajectory traction points corresponding to the foot end through the above steps 202 and 203, and A series of trajectory traction points generate a first foot end trajectory.

二、机器人下台阶场景:2. The scene where the robot goes down the stairs:

请参阅图3-a,图3-a为本申请提供的足式机器人足端轨迹规划的方法的另一个实施例,该实施例对应机器人下台阶场景,该方法包括:Please refer to Fig. 3-a, Fig. 3-a is another embodiment of the method for foot trajectory planning of a legged robot provided by the present application. This embodiment corresponds to the scene where the robot descends steps. The method includes:

301、确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度,第一台阶为支撑腿的足端在第一支撑相时所在台阶,第一支撑相和第一摆动相在时间上连续,且第一支撑相早于第一摆动相;301. Determine the swing height and swing length of the foot end of at least one leg in the first swing phase from lifting from the first step to falling to the second step. The first step is where the foot end of the supporting leg is in the first support phase step, the first support phase and the first swing phase are continuous in time, and the first support phase is earlier than the first swing phase;

在本实施例中,步骤301与前述实施例步骤201类似,此处不再赘述。In this embodiment, step 301 is similar to step 201 in the foregoing embodiment, and will not be repeated here.

302、若第二台阶的踏面比第一台阶的踏面低,则根据摆动高度和摆动长度确定足端对应的第二系列轨迹牵引点;302. If the tread of the second step is lower than the tread of the first step, determine the traction points of the second series of tracks corresponding to the foot end according to the swing height and swing length;

如果第二台阶的踏面低于第一台阶的踏面,具体是指第二台阶的踏面在竖直方向上的高度低于第一台阶的踏面,对应机器人下台阶的场景,在下台阶过程中,足端落下时容易磕碰到第一台阶的边缘,并且足端在落下后如果踩到第二台阶的边缘将可能导致机器人失稳,甚至摔倒。If the tread of the second step is lower than the tread of the first step, it specifically means that the height of the tread of the second step in the vertical direction is lower than that of the first step. It is easy to hit the edge of the first step when the end falls, and if the end of the foot steps on the edge of the second step after falling, it may cause the robot to lose stability or even fall.

为了避免在下台阶过程中足端与第一台阶发生磕碰,并且避免足端落下时踩到第二台阶的边缘,控制单元根据上述支撑腿的摆动高度和摆动长度确定该支撑腿足端的第二系列轨迹牵引点。其中第二系列轨迹牵引点包括:至少1个第二足端前摆牵引点和至少1个第二足端后收牵引点;该第二足端前摆牵引点用于在足端抬起过程中牵引足端前摆并绕开第一台阶的边缘;该第二足端后收牵引点用于在足端下落过程中牵引足端后收,避免足端在下落过程中碰到第二台阶的边缘。In order to prevent the foot end from colliding with the first step during the step-down process, and to prevent the foot end from stepping on the edge of the second step when it falls, the control unit determines the second series of the foot end of the support leg according to the swing height and swing length of the above-mentioned support leg. Trajectory pull point. The second series of trajectory traction points include: at least one second traction point for the forward swing of the foot end and at least one second traction point for the retraction of the second foot end; the second traction point for the forward swing of the foot end is used for lifting the foot end The middle traction foot end swings forward and bypasses the edge of the first step; the second foot end retraction traction point is used to pull the foot end back during the fall of the foot end to prevent the foot end from touching the second step during the fall the edge of.

进一步的,由于不同的足式机器人的控制性能有较大差异,对于所规划出的足端轨迹的执行能力也有所不同,为了让绝大多数机器人都能执行规划轨迹,就需要轨迹的速度、加速度特性更加柔和。基于上述原因,在一些具体的实施例中,与第一系列轨迹牵引点中的足端速度牵引点类似,该第二系列轨迹牵引点也可以进一步包括:至少1个第二足端速度牵引点,该第二足端速度牵引点用于在足端与第二台阶的踏面的距离小于预设距离时,牵引足端降低落足于第二台阶的踏面的速度和/或加速度,减轻足端落地时的冲击力,以此保证足端落地时足够平稳。Furthermore, since the control performance of different legged robots is quite different, the execution ability of the planned foot trajectory is also different. In order for most robots to execute the planned trajectory, the trajectory speed, Acceleration characteristics are softer. Based on the above reasons, in some specific embodiments, similar to the foot-end speed traction points in the first series of trajectory traction points, the second series of trajectory traction points may further include: at least one second foot-end speed traction point , the second foot end speed traction point is used to pull the foot end to reduce the speed and/or acceleration of the tread on the second step when the distance between the foot end and the tread surface of the second step is less than a preset distance, so as to reduce the speed and/or acceleration of the foot end The impact force when landing, so as to ensure that the foot is stable enough when landing.

303、根据第二系列轨迹牵引点生成第二足端轨迹,并根据第二足端轨迹控制足端落足于第二台阶。303. Generate a second foot end trajectory according to the second series of trajectory traction points, and control the foot end to land on the second step according to the second foot end trajectory.

控制单元根据上台阶场景所对应的第二系列轨迹牵引点,即至少1个第二足端前摆牵引点和至少1个第二足端后收牵引点来生成第二足端轨迹,需要说明的是,本申请中的轨迹牵引点仅是对足端轨迹起到牵引作用,足端的实际轨迹并不一定要经过这些轨迹牵引点,这些轨迹牵引点的目的是让轨迹发生改变。通过第二系列轨迹牵引点所生成的第二足端轨迹,能够使足端在落下过程中绕开台阶(第一台阶)的边缘,下台阶时能够避免机器人踢到或磕碰到第一台阶的边缘并且保证落足点距离第二台阶边缘有一定的安全距离,从而使得机器人能够平稳地完成下台阶动作。The control unit generates the second foot end trajectory according to the second series of trajectory traction points corresponding to the scene of going up stairs, that is, at least one second foot end forward swing traction point and at least one second foot end retraction traction point, which needs to be explained What is more interesting is that the track traction points in this application only play a role of traction on the foot track, and the actual track of the foot end does not necessarily pass through these track traction points. The purpose of these track traction points is to change the track. The second foot end trajectory generated by the second series of trajectory traction points can make the foot end avoid the edge of the step (first step) during the falling process, and prevent the robot from kicking or bumping into the edge of the first step when going down the step. and ensure that the landing point has a certain safety distance from the edge of the second step, so that the robot can smoothly complete the step-down action.

在一些具体的实施例中,在确定第二系列轨迹牵引点之前,控制单元可以先判断原足端轨迹与第一台阶的踢面或踏面是否存在交叉:当确定不存在交叉时,则说明足端与第一台阶不会发生磕碰,此时无需进行干预;当确定存在交叉时,足端将可能与第一台阶发生磕碰,此时就需要对机器人原足端轨迹进行干预,即通过上述步骤302和303确定足端对应的第二系列轨迹牵引点,并根据该第二系列轨迹牵引点生成第二足端轨迹。In some specific embodiments, before determining the traction points of the second series of trajectories, the control unit may first judge whether there is an intersection between the original foot end trajectory and the riser or tread of the first step: when it is determined that there is no intersection, then the foot There will be no collision between the foot end and the first step, and no intervention is required at this time; when it is determined that there is an intersection, the foot end may collide with the first step, and it is necessary to intervene on the original foot end trajectory of the robot, that is, through the above steps Steps 302 and 303 determine a second series of trajectory traction points corresponding to the foot end, and generate a second foot end trajectory according to the second series of trajectory traction points.

具体请参阅图3-b,图3-b为机器人下台阶场景对应的第二系列轨迹牵引点与第二足端轨迹示意图,其中c1(x1,y1)为起始点,位于第一台阶上;For details, please refer to Figure 3-b. Figure 3-b is a schematic diagram of the second series of trajectory traction points and the second foot end trajectory corresponding to the scene where the robot descends steps, where c1 (x1, y1) is the starting point and is located on the first step;

c2(x1+1.0*L,y1+0.2*h)和c3(x1+1.2*L,y1+0.1*h)对应本实施例中的第二足端前摆牵引点,用于在足端抬起过程中牵引足端前摆并绕开第一台阶的边缘,确保足端在前摆过程中不会碰到第一台阶的边缘;c2(x1+1.0*L, y1+0.2*h) and c3(x1+1.2*L, y1+0.1*h) correspond to the traction point of the second foot end forward swing in this embodiment, which are used to lift the foot end During the lifting process, pull the foot to swing forward and avoid the edge of the first step, so as to ensure that the foot will not touch the edge of the first step during the forward swing;

c4(x1+1.1*L,y1-0.7*h)对应本实施例中的第二足端后收牵引点,用于在足端下落过程中牵引足端后收,确保足端落下后不会踩在第二台阶的边缘上;c4(x1+1.1*L, y1-0.7*h) corresponds to the second foot end retraction traction point in this embodiment, which is used to pull the foot end back during the fall of the foot end to ensure that the foot end does not fall. step on the edge of the second step;

c5(x1+L,y1-h)为落足点,位于第二台阶上,且与第二台阶的边缘有一定的安全距离。c5(x1+L, y1-h) is the foothold, which is located on the second step and has a certain safety distance from the edge of the second step.

足端速度牵引点则具体是通过在轨迹的落足点附近或落足点重合处设置1至3个速度牵引点。以设置2个速度牵引点为例进行说明:在c5附近或重合处增加2个控制点c5_2、c5_3,由此使得足端到达落足点时的速度和加速度都可以接近或降低到0,使下台阶过程中足端可以平稳的落足于第二台阶上,使机器人对于整个轨迹的控制跟踪更加平稳。The speed traction point at the foot end is specifically set by setting 1 to 3 speed traction points near the foothold point of the trajectory or at the overlapping place of the foothold point. Take setting two speed traction points as an example: add two control points c5_2 and c5_3 near or at the overlap of c5, so that the speed and acceleration when the foot reaches the foothold point can be close to or reduced to 0, so that In the process of going down the steps, the end of the foot can smoothly land on the second step, so that the robot can control and track the entire trajectory more smoothly.

在一些具体的实施例中,对于步骤201及步骤301中确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度可分为两种情况讨论:In some specific embodiments, for determining that the foot end of at least one leg is in the first swing phase in step 201 and step 301, the swing height and swing length from the first step to the second step can be divided into two Cases discussed:

1)若机器人为盲爬模式,则接收指令在预设楼梯尺寸表中筛选目标楼梯尺寸信息,并根据目标楼梯尺寸信息确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度;1) If the robot is in the blind climbing mode, receive an instruction to filter the target stair size information in the preset stair size table, and determine that the foot end of at least one leg is in the first swing phase and lift from the first step according to the target stair size information. The swing height and swing length to fall to the second step;

该盲爬模式具体是指机器人不借助传感器技术和视觉信息实现上下台阶,在该盲爬模式下,机器人无法借助外界环境信息来实现上或下台阶的判断,但机器人处于上下台阶场景时,机身会发生倾斜,因此,对应于上述盲爬模式,本申请还提出一种对于机器人盲爬模型中上下台阶的自适应判断方法:通过计算机器人支撑腿平面与地面水平面的俯仰角来判断机器人当前处于上台阶场景还是下台阶场景。当支撑腿平面和水平面的俯仰角pitch大于预设角度θ(例如15°)则判断为上台阶场景,此时机器人接收上台阶指令,并采取图2-a对应实施例的上台阶策略,当俯仰角pitch小于-预设角度θ(例如-15°)则判断为下台阶场景,此时机器人接收下台阶指令,并采取图3-a对应实施例的下台阶策略。The blind climbing mode specifically means that the robot can go up and down stairs without using sensor technology and visual information. Therefore, corresponding to the above-mentioned blind climbing mode, this application also proposes an adaptive judgment method for the up and down steps in the blind climbing model of the robot: by calculating the pitch angle between the robot support leg plane and the ground horizontal plane to judge the robot's current Whether it is an up-step scene or a down-step scene. When the pitch angle pitch between the support leg plane and the horizontal plane is greater than the preset angle θ (for example, 15°), it is judged as a step-up scene. At this time, the robot receives the step-up instruction and adopts the step-up strategy corresponding to the embodiment in Figure 2-a. If the pitch angle pitch is less than -preset angle θ (eg -15°), it is judged as a step-down scene. At this time, the robot receives the step-down command and adopts the step-down strategy corresponding to the embodiment in Fig. 3-a.

具体以四足机器人的trot双腿支撑步态为例,运动过程中一直保证有前后两腿接触地面,控制单元获取前支撑腿平面foot_front(x1,y1,z1),和后支撑腿平面foot_hind(x2,y2,z2),俯仰角pithch的简化求法如下:Specifically, take the trot double-leg support gait of a quadruped robot as an example. During the movement, the front and rear legs are always in contact with the ground. The control unit obtains the front support leg plane foot_front(x1,y1,z1), and the rear support leg plane foot_hind( x2, y2, z2), the simplified method of pitch angle pithch is as follows:

Figure BDA0003749072660000181
Figure BDA0003749072660000181

机器人在该盲爬模式下,很难应对上下台阶过程中足端在台阶位置的随机性带来的跨越障碍,但对于一些标准台阶,尤其是常规楼宇建筑中的楼梯,这类楼梯的倾斜角度、台阶高度和台阶宽度都是基于建筑规范下的标准尺寸,该预设楼梯尺寸表中存储了标准楼梯倾斜角度、台阶高度和台阶宽度的相关关系,因此机器人可根据上述计算出的俯仰角,确定与之相近的标准楼梯倾斜角,再根据该标准楼梯倾斜角在预设楼梯尺寸表中筛选对应的目标楼梯尺寸信息,再根据该目标楼梯尺寸信息(台阶高度和台阶宽度)来确定足端的摆动高度和摆动长度,以此来实现盲爬模式下的上下台阶,并且通过第一系列轨迹牵引点和第二系列轨迹牵引点来牵引足端轨迹,使机器人即使处于盲爬模式下,也能够平稳的上、下台阶。In this blind climbing mode, it is difficult for the robot to cope with the obstacles caused by the randomness of the foot position in the process of going up and down the steps. However, for some standard steps, especially the stairs in conventional buildings, the inclination angle of such stairs , step height and step width are based on the standard size under the building code, the preset stair size table stores the relationship between the standard stair inclination angle, step height and step width, so the robot can calculate the pitch angle according to the above, Determine the standard stair inclination angle similar to it, and then filter the corresponding target stair size information in the preset stair size table according to the standard stair inclination angle, and then determine the foot end according to the target stair size information (step height and step width). The swing height and swing length are used to realize the up and down steps in the blind climbing mode, and the foot track is pulled through the first series of trajectory traction points and the second series of trajectory traction points, so that the robot can move up and down even in the blind climbing mode. Go up and down steps smoothly.

2)若机器人为视觉模式,则根据机器人的视觉信息确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度。2) If the robot is in visual mode, determine the swing height and swing length of the foot end of at least one leg in the first swing phase from lifting from the first step to falling to the second step according to the visual information of the robot.

机器人的视觉模式具体是指机器人能够通过机身上搭载的摄像头、激光或红外传感器等传感装置获取视觉信息,如果机器人处于视觉模式下,此时控制单元可直接根据相关传感装置获取的视觉信息来确定台阶高度和台阶宽度,从而进行足端轨迹规划,并且获取至少一条腿的足端在第一摆动相的起始点的坐标和落足点的坐标,再根据起始点的坐标和落足点的坐标来确定足端的摆动高度和摆动长度,其中摆动高度为起始点和落足点在竖直方向的坐标差,该摆动长度为起始点和落足点在水平方向的坐标差。The visual mode of the robot specifically means that the robot can obtain visual information through sensing devices such as cameras, lasers or infrared sensors mounted on the body. If the robot is in the visual mode, the control unit can directly obtain visual information based on the relevant sensing devices Information to determine the step height and step width, so as to plan the foot end trajectory, and obtain the coordinates of the starting point and the foothold point of the foot end of at least one leg in the first swing phase, and then according to the coordinates of the starting point and the foothold Point coordinates determine the swing height and swing length of the foot end, wherein the swing height is the coordinate difference between the starting point and the foothold point in the vertical direction, and the swing length is the coordinate difference between the starting point and the foothold point in the horizontal direction.

三、机器人跨越障碍物场景:3. The scene where the robot crosses obstacles:

请参阅图4-a,图4-a为本申请提供的足式机器人足端轨迹规划的方法的另一个实施例,该实施例对应机器人跨越障碍物场景,该方法包括:Please refer to Fig. 4-a, Fig. 4-a is another embodiment of the method for foot trajectory planning of a legged robot provided by the present application. This embodiment corresponds to the scene where the robot crosses obstacles. The method includes:

401、当感测到障碍物时,确定障碍物的属性信息,属性信息包括形状和尺寸信息;401. When an obstacle is sensed, determine attribute information of the obstacle, where the attribute information includes shape and size information;

当机器人的传感单元感测到障碍物时,本申请中的障碍物具体是指机器人能够跨越的障碍物,例如门槛、石块等障碍物,控制单元根据传感单元的传感信息确定该障碍物的属性信息,包括该障碍物的形状和尺寸信息,例如控制单元根据机器人的视觉信息(超声波、红外、激光等)来确定障碍物的形状和尺寸信息。When the sensor unit of the robot senses an obstacle, the obstacle in this application specifically refers to an obstacle that the robot can cross, such as a threshold, a stone, and other obstacles, and the control unit determines the obstacle according to the sensing information of the sensor unit. The attribute information of the obstacle includes the shape and size information of the obstacle. For example, the control unit determines the shape and size information of the obstacle according to the robot's visual information (ultrasonic, infrared, laser, etc.).

402、根据属性信息判断是否满足预设的轨迹切换条件,若是则执行步骤403;402. Judging whether the preset track switching condition is satisfied according to the attribute information, and if so, execute step 403;

控制单元根据障碍物的属性信息判断是否满足预设的轨迹切换条件,目的是为了确定机器人按照原足端轨迹来跨越障碍物是否具有发生磕碰的可能,如果有可能发生磕碰,则确定满足预设的轨迹切换条件。The control unit judges whether the preset trajectory switching conditions are met according to the attribute information of the obstacle. The purpose is to determine whether the robot may collide when crossing the obstacle according to the original foot trajectory. If there is a possibility of collision, it is determined to meet the preset The track switching condition.

在一些具体的实施例中,该预设的轨迹切换条件可以是原足端轨迹与障碍物存在交叉,即控制单元根据障碍物的属性信息判断原足端轨迹与障碍物是否存在交叉,如果不存在交叉,则按照原足端轨迹进行控制;如果存在交叉,则确定满足预设的轨迹切换条件,继续执行步骤403。这是由于如果原足端轨迹与障碍物之间存在交叉,那么机器人在摆腿跨越障碍物过程中,势必会与障碍物发生磕碰,因此需要执行后续步骤对原足端轨迹进行干预,保证机器人能够平稳跨越障碍物。In some specific embodiments, the preset track switching condition may be that there is an intersection between the original foot track and the obstacle, that is, the control unit judges whether there is an intersection between the original foot track and the obstacle according to the attribute information of the obstacle, and if not If there is an intersection, control is performed according to the original foot-end trajectory; if there is an intersection, it is determined that the preset trajectory switching condition is met, and step 403 is continued. This is because if there is an intersection between the original foot trajectory and the obstacle, the robot will inevitably collide with the obstacle when swinging its legs across the obstacle. Therefore, it is necessary to perform subsequent steps to intervene on the original foot trajectory to ensure that the robot Able to move smoothly over obstacles.

在另一些具体的实施例中,该预设的轨迹切换条件还可以是原足端轨迹中的起始点距离障碍物的距离小于预设距离,即控制单元根据障碍物的属性信息判断原足端轨迹中的起始点与障碍物的距离是否小于预设距离,如果大于或等于预设距离,则按照原足端轨迹进行控制;如果小于预设距离,则确定满足预设的轨迹切换条件,继续执行步骤403。这是由于如果原足端轨迹中的起始点距离障碍物较近,则在机器人抬腿过程中极有可能发生与障碍物的磕碰,因此需要执行后续步骤对原足端轨迹进行干预,保证机器人能够平稳跨越障碍物。In some other specific embodiments, the preset trajectory switching condition can also be that the distance between the starting point of the original foot end trajectory and the obstacle is less than the preset distance, that is, the control unit judges the original foot end according to the attribute information of the obstacle. Whether the distance between the starting point and the obstacle in the trajectory is less than the preset distance, if it is greater than or equal to the preset distance, then control according to the original foot end trajectory; if it is less than the preset distance, then determine that the preset trajectory switching condition is met, and continue Execute step 403 . This is because if the starting point of the original foot trajectory is close to the obstacle, it is very likely that the robot will collide with the obstacle during the leg lifting process. Therefore, it is necessary to perform subsequent steps to intervene on the original foot trajectory to ensure that the robot Able to move smoothly over obstacles.

403、根据属性信息确定至少一条腿的足端在第二摆动相,从起始点到落足点的摆动高度和摆动长度,起始点为支撑腿的足端在第二支撑相时所在位置,第二支撑相和第二摆动相在时间上连续,且第二支撑相早于第二摆动相;403. Determine the swing height and length of the foot end of at least one leg in the second swing phase from the starting point to the foot landing point according to the attribute information. The starting point is the position where the foot end of the supporting leg is in the second support phase. The two support phases and the second swing phase are continuous in time, and the second support phase is earlier than the second swing phase;

足式机器人的步行周期是指机器人行走过程中某条腿的足端着地至该足端跟再次着地时所经过的时间,在单个步行周期内的足端轨迹主要包括两个阶段,一个阶段是足端与地面接触产生力的时间段,该阶段被称为支撑阶段或支撑相,是指单腿足端着地开始到再次抬腿足端离地期间腿的连续相位变化过程;另一个阶段是足端在空中摆动的时间段,该阶段被称为摆动阶段或摆动相,是指单腿从抬腿时足端离地开始,到迈腿后足端落地期间腿的连续相位变化过程。机器人在行走过程中,各条腿的步态在支撑相和摆动相之间来回切换。The walking cycle of a legged robot refers to the time elapsed from when the foot end of a certain leg lands on the ground to when the foot end heel touches the ground again. The foot end trajectory in a single walking cycle mainly includes two stages. One stage is The time period when the foot end is in contact with the ground to generate force, this stage is called the support phase or support phase, which refers to the continuous phase change process of the leg during the period from when the foot end of a single leg touches the ground to when the foot end of the leg is lifted off the ground again; the other stage is The time period during which the foot end swings in the air, this stage is called the swing phase or swing phase, refers to the continuous phase change process of the leg during the period from when the foot end leaves the ground when the leg is lifted, to when the foot end falls to the ground after the leg is stepped. During the walking process of the robot, the gait of each leg switches back and forth between the stance phase and the swing phase.

当控制单元确定满足预设的轨迹切换条件时,则根据障碍物的属性信息获取至少一条腿的足端在第二摆动相从起始点到落足点的摆动高度和摆动长度,该足端从起始点抬起,经过第二摆动相跨过障碍物后在落足点落下。摆动高度和摆动长度可根据起始点的坐标和落足点的坐标确定,其中起始点的坐标为足端跨过障碍物前的坐标,落足点的坐标为足端跨过障碍物后的坐标,摆动高度为起始点和落足点在竖直方向的坐标差,与障碍物的高度相关,摆动长度为起始点和落足点在水平方向的坐标差,与障碍物的宽度相关。When the control unit determines that the preset trajectory switching condition is satisfied, the foot end of at least one leg is obtained from the swing height and the swing length from the starting point to the foothold point in the second swing phase according to the attribute information of the obstacle. The starting point is raised, and after the second swing phase, the obstacle is crossed and then dropped at the footing point. The swing height and swing length can be determined according to the coordinates of the starting point and the foothold point, where the coordinates of the starting point are the coordinates before the foot end crosses the obstacle, and the coordinates of the foothold point are the coordinates after the foot end crosses the obstacle , the swing height is the coordinate difference between the starting point and the foothold point in the vertical direction, which is related to the height of the obstacle, and the swing length is the coordinate difference between the starting point and the foothold point in the horizontal direction, which is related to the width of the obstacle.

404、根据摆动高度和摆动长度确定足端对应的第三系列轨迹牵引点;404. Determine the third series of trajectory traction points corresponding to the foot end according to the swing height and swing length;

控制单元根据所确定的摆动高度和摆动长度确定该支撑腿足端的第三系列轨迹牵引点,该第三系列轨迹牵引点对应机器人跨越障碍物的场景。The control unit determines a third series of trajectory traction points of the foot end of the supporting leg according to the determined swing height and swing length, and the third series of trajectory traction points correspond to a scene where the robot crosses obstacles.

其中第三系列轨迹牵引点有两种情况,第一组合牵引点和第二组合牵引点,其中第一组合牵引点包括:至少1个第三足端抬起后收牵引点、至少1个第三足端前摆牵引点和至少1个第三足端落下后收牵引点;第二组合牵引点包括至少1个第三足端抬起后收牵引点和至少1个第三足端前摆牵引点;第二组合牵引点相较于第一组合牵引点的区别是没有第三足端落下后收牵引点,因为如果足端落下时前方有足够的空间,则足端落下时无需后收,可以选择该第二组合牵引点。There are two types of traction points in the third series of tracks, the first combination traction point and the second combination traction point, wherein the first combination traction point includes: at least one traction point with the third foot end raised and retracted, at least one first combination traction point The traction point of the front swing of the three-foot end and at least one traction point of the third foot end falling and retracting; the second combined traction point includes at least one traction point of the third foot end lifting and retracting point and at least one third foot end swinging forward Traction point; the difference between the second combination traction point and the first combination traction point is that there is no third foot end retraction traction point, because if there is enough space in front of the foot end when the foot end is dropped, there is no need to retract the foot end when it is dropped , you can select the second combined pull point.

该第三足端抬起后收牵引点用于在足端抬起过程中牵引足端后收,以防止足端在抬起过程中碰到障碍物;该第三足端前摆牵引点用于在足端抬起高度超过障碍物后,牵引足端前摆并绕开障碍物边缘;该第三足端落下后收牵引点,用于在足端下落过程中牵引足端后收,避免足端在下落过程中碰到障碍物边缘。The third foot end lifts and retracts the traction point for pulling the foot end and retracting it in the process of lifting the foot end to prevent the foot end from running into obstacles during the lifting process; After the height of the foot end is lifted beyond the obstacle, the foot end is pulled forward to swing forward and around the edge of the obstacle; the third foot end is retracted after the fall of the third foot end, which is used to pull the foot end to retract during the fall of the foot end to avoid The end of the foot hits the edge of the obstacle during the fall.

进一步的,由于不同的足式机器人的控制性能有较大差异,对于所规划出的足端轨迹的执行能力也有所不同,为了让绝大多数机器人都能执行规划轨迹,就需要轨迹的速度、加速度特性更加柔和。基于上述原因,在一些具体的实施例中,该第三系列轨迹牵引点也可以进一步包括:至少1个第三足端速度牵引点,该第三足端速度牵引点用于在足端与地面距离小于预设距离时,牵引足端降低落足于地面的速度和/或加速度,减轻足端落地时的冲击力,以此保证足端落地时足够平稳。Furthermore, since the control performance of different legged robots is quite different, the execution ability of the planned foot trajectory is also different. In order for most robots to execute the planned trajectory, the trajectory speed, Acceleration characteristics are softer. Based on the above reasons, in some specific embodiments, the third series of track traction points may further include: at least one third foot-end speed traction point, the third foot-end speed traction point is used to connect the foot end with the ground When the distance is less than the preset distance, the traction foot end reduces the speed and/or acceleration of the foot landing on the ground, and reduces the impact force when the foot end lands, so as to ensure that the foot end is sufficiently stable when landing.

405、根据第三系列轨迹牵引点生成第三足端轨迹,并根据第三足端轨迹控制足端跨过障碍物。405 . Generate a third foot end trajectory according to the third series of trajectory traction points, and control the foot end to cross the obstacle according to the third foot end trajectory.

控制单元根据跨越障碍物场景所对应的第三系列轨迹牵引点,即至少1个第三足端抬起后收牵引点、至少1个第三足端前摆牵引点和至少1个第三足端落下后收牵引点来生成第三足端轨迹,或至少1个第三足端抬起后收牵引点和至少1个第三足端前摆牵引点来生成第三足端轨迹,需要说明的是,本申请中的轨迹牵引点仅是对足端轨迹起到牵引作用,足端的实际轨迹并不一定要经过这些轨迹牵引点,这些轨迹牵引点的目的是让轨迹发生改变。通过第三系列轨迹牵引点所生成的第三足端轨迹,能够使足端在跨越障碍物的过程中避免与障碍物发生磕碰,从而使得机器人能够平稳地完成跨越障碍物的动作。The control unit is based on the third series of trajectory traction points corresponding to the obstacle crossing scene, that is, at least one third foot end lifts and retracts traction point, at least one third foot end swings forward traction point, and at least one third foot end To generate the third foot-end trajectory, or at least 1 third foot-end lift-back traction point and at least 1 third foot-end forward swing traction point to generate the third foot-end trajectory. What is more interesting is that the track traction points in this application only play a role of traction on the foot track, and the actual track of the foot end does not necessarily pass through these track traction points. The purpose of these track traction points is to change the track. The third foot end trajectory generated by the third series of trajectory traction points can prevent the foot end from colliding with the obstacle in the process of crossing the obstacle, so that the robot can smoothly complete the action of crossing the obstacle.

具体请参阅图4-b,图4-b为机器人跨越障碍物场景对应的第三系列轨迹牵引点与第三足端轨迹示意图,其中c1(x1,y1)为起始点;Please refer to Figure 4-b for details. Figure 4-b is a schematic diagram of the third series of trajectory traction points and the third foot end trajectory corresponding to the robot crossing the obstacle scene, where c1 (x1, y1) is the starting point;

c2(x1-0.1*L,y1+0.3*h)和c3(x1-0.2*L,y1+1.1*h)对应本实施例中的第三足端抬起后收牵引点,目的是使足端在抬起过程中,在x方向有向后的位移,确保足端后收,避免足端抬起过程中碰到障碍物;c2(x1-0.1*L, y1+0.3*h) and c3(x1-0.2*L, y1+1.1*h) correspond to the traction point after the third foot end is lifted in this embodiment, the purpose is to make the foot During the lifting process, the foot end has a backward displacement in the x direction to ensure that the foot end is retracted to avoid encountering obstacles during the foot end lifting process;

c4(x1,y1+1.2*h)、c5(x1+1*L,y1+1.2*h)和c6(x1+1.2*L,y1+1.1*h)对应本实施例中的第三足端前摆牵引点,用于在足端抬起过程中牵引足端前摆并绕开障碍物的边缘,确保在足端前摆过程中不会碰到障碍物边缘;c4(x1, y1+1.2*h), c5(x1+1*L, y1+1.2*h) and c6(x1+1.2*L, y1+1.1*h) correspond to the third foot end in this embodiment The forward swing traction point is used to pull the forward swing of the foot and bypass the edge of the obstacle during the lifting of the foot, so as to ensure that the edge of the obstacle will not be touched during the forward swing of the foot;

c7(x1+1.1*L,y1+0.3*h)对应本实施例中的第三足端落下后收牵引点,目的是确保在足端下落过程中不与障碍物边缘发生磕碰;c7(x1+1.1*L, y1+0.3*h) corresponds to the traction point after the third foot end falls in this embodiment, and the purpose is to ensure that the foot end does not collide with the edge of the obstacle during the falling process;

c8(x1+L,y1)为落足点。c8(x1+L,y1) is the foothold.

足端速度牵引点则具体是通过在轨迹的落足点附近或落足点重合处设置1至3个速度牵引点。以设置2个速度牵引点为例进行说明:在c8附近或重合处增加2个控制点c8_2、c8_3,由此使得足端到达落足点时的速度和加速度都可以接近或降低到0,使足端跨越障碍物后可以平稳的落地,使机器人对于整个轨迹的控制跟踪更加平稳。The speed traction point at the foot end is specifically set by setting 1 to 3 speed traction points near the foothold point of the trajectory or at the overlapping place of the foothold point. Take setting two speed traction points as an example: add two control points c8_2 and c8_3 near c8 or at the coincident place, so that the speed and acceleration when the foot reaches the foothold point can be close to or reduced to 0, so that After the foot end crosses the obstacle, it can land smoothly, which makes the robot's control and tracking of the entire trajectory more stable.

需要说明的是,本申请中的第一足端轨迹、第二足端轨迹以及第三足端轨迹

Figure BDA0003749072660000231
都是基于摆腿相位
Figure BDA0003749072660000232
信息所参数化描述的:It should be noted that the first foot end trajectory, the second foot end trajectory and the third foot end trajectory in this application
Figure BDA0003749072660000231
It's all based on leg swing phase
Figure BDA0003749072660000232
Information parametrically described by:

Figure BDA0003749072660000233
Figure BDA0003749072660000233

Figure BDA0003749072660000234
Figure BDA0003749072660000234

其中

Figure BDA0003749072660000235
是n阶贝塞尔多项式;具有n+1个轨迹牵引点;Ck是第k轨迹牵引点点,其中k∈{0,...8}。在摆腿的垂直平面内,以向前为x轴,向上或向下为y轴建立摆腿规划平面,摆腿面临的台阶信息或障碍物信息来设计轨迹牵引点,以牵引足端轨迹应对障碍物。对于不同的上、下台阶以及跨越障碍物场景,设计可变数量的轨迹牵引点,再基于设计的轨迹牵引点生成机器人的贝塞尔摆腿曲线,即本申请中的第一足端轨迹、第二足端轨迹以及第三足端轨迹,使机器人能够平稳地上下台阶以及跨越障碍物,减少磕碰,提高机器人在上下台阶以及跨越障碍物过程中的稳定性。in
Figure BDA0003749072660000235
is an n-order Bessel polynomial; there are n+1 trajectory traction points; C k is the kth trajectory traction point, where k∈{0,...8}. In the vertical plane of the leg swing, set the forward as the x-axis, and the upward or downward as the y-axis to establish the leg swing planning plane, and design the trajectory traction point based on the step information or obstacle information that the leg swing faces, and use the traction foot trajectory to deal with it. obstacle. For different scenes of going up and down steps and crossing obstacles, design a variable number of trajectory traction points, and then generate the Bezier leg swing curve of the robot based on the designed trajectory traction points, that is, the first foot end trajectory in this application, The second foot end trajectory and the third foot end trajectory enable the robot to smoothly go up and down steps and cross obstacles, reduce bumps, and improve the stability of the robot in the process of going up and down steps and crossing obstacles.

以上对本申请中的足式机器人足端轨迹规划的方法进行说明,以下对本申请中提供的足式机器人足端轨迹规划的装置进行说明。The method for planning the trajectory of the foot end of the legged robot in this application has been described above, and the device for trajectory planning of the foot end of the legged robot provided in this application will be described below.

本申请还提供了足式机器人足端轨迹规划的装置一个实施例,该装置包括:The present application also provides an embodiment of a device for foot trajectory planning of a legged robot, which includes:

传感单元103和控制单元110;Sensing unit 103 and control unit 110;

传感单元103用于:The sensing unit 103 is used for:

确定至少一条腿的足端在第一摆动相,从第一台阶抬起至落到第二台阶的摆动高度和摆动长度,第一台阶为支撑腿的足端在第一支撑相时所在台阶,第一支撑相和第一摆动相在时间上连续,且第一支撑相早于第一摆动相;Determine the swing height and swing length of the foot end of at least one leg in the first swing phase from the first step to the second step, the first step is the step where the foot end of the supporting leg is in the first support phase, The first strut phase and the first swing phase are continuous in time, and the first strut phase is earlier than the first swing phase;

控制单元110用于:The control unit 110 is used for:

若第二台阶的踏面比第一台阶的踏面高,则根据摆动高度和摆动长度确定足端对应的第一系列轨迹牵引点;If the tread surface of the second step is higher than the tread surface of the first step, the first series of trajectory traction points corresponding to the foot end are determined according to the swing height and swing length;

根据第一系列轨迹牵引点生成第一足端轨迹,并根据第一足端轨迹控制足端落足于第二台阶;Generate a first foot end trajectory according to the first series of trajectory traction points, and control the foot end to fall on the second step according to the first foot end trajectory;

若第二台阶的踏面比第一台阶的踏面低,则根据摆动高度和摆动长度确定足端对应的第二系列轨迹牵引点;If the tread of the second step is lower than the tread of the first step, then determine the traction points of the second series of tracks corresponding to the foot end according to the swing height and swing length;

根据第二系列轨迹牵引点生成第二足端轨迹,并根据第二足端轨迹控制足端落足于第二台阶。A second foot end trajectory is generated according to the second series of trajectory traction points, and the foot end is controlled to land on the second step according to the second foot end trajectory.

本实施例装置中,传感单元103和控制单元110如图1-a所示,各单元的功能与前述图2-a及图3-a所示方法实施例中的步骤对应,此处不再赘述。In the device of this embodiment, the sensing unit 103 and the control unit 110 are as shown in Figure 1-a, and the functions of each unit correspond to the steps in the method embodiment shown in Figure 2-a and Figure 3-a, which are not described here Let me repeat.

本申请还提供了足式机器人足端轨迹规划的装置另一个实施例,该装置包括:传感单元103和控制单元110;The present application also provides another embodiment of the device for foot trajectory planning of a legged robot, which includes: a sensing unit 103 and a control unit 110;

传感单元103用于:The sensing unit 103 is used for:

当感测到障碍物时,确定障碍物的属性信息,属性信息包括形状和尺寸信息;When an obstacle is sensed, attribute information of the obstacle is determined, and the attribute information includes shape and size information;

控制单元110用于:The control unit 110 is used for:

根据属性信息判断是否满足预设的轨迹切换条件;Judging whether the preset track switching conditions are met according to the attribute information;

传感单元103还用于:The sensing unit 103 is also used for:

当控制单元根据属性信息判断满足预设的轨迹切换条件时,根据根据属性信息确定至少一条腿的足端在第二摆动相,从起始点到落足点的摆动高度和摆动长度,起始点为支撑腿的足端在第二支撑相时所在位置,第二支撑相和第二摆动相在时间上连续,且第二支撑相早于第二摆动相;When the control unit judges according to the attribute information that the preset trajectory switching condition is satisfied, the foot end of at least one leg is determined according to the attribute information in the second swing phase, the swing height and the swing length from the starting point to the foothold point, the starting point is The foot end of the supporting leg is at the position of the second supporting phase, the second supporting phase and the second swinging phase are continuous in time, and the second supporting phase is earlier than the second swinging phase;

控制单元110还用于:The control unit 110 is also used for:

根据摆动高度和摆动长度确定足端对应的第三系列轨迹牵引点;According to the swing height and swing length, determine the traction points of the third series of tracks corresponding to the foot end;

根据第三系列轨迹牵引点生成第三足端轨迹,并根据第三足端轨迹控制足端跨过障碍物。A third foot end trajectory is generated according to the third series of trajectory traction points, and the foot end is controlled to cross the obstacle according to the third foot end trajectory.

本实施例装置中,传感单元103和控制单元110如图1-a所示,各单元的功能与前述图4-a所示方法实施例中的步骤对应,此处不再赘述。In the device of this embodiment, the sensing unit 103 and the control unit 110 are shown in FIG. 1-a, and the functions of each unit correspond to the steps in the aforementioned method embodiment shown in FIG. 4-a, and will not be repeated here.

本申请还提供了一种足式机器人,请参阅图5,图5为本申请提供的足式机器人一个实施例,该足式机器人包括:This application also provides a legged robot, please refer to Figure 5, Figure 5 is an embodiment of the legged robot provided by this application, the legged robot includes:

处理器501、存储器502、输入输出单元503、总线504;Processor 501, memory 502, input and output unit 503, bus 504;

处理器501与存储器502、输入输出单元503以及总线504相连;The processor 501 is connected to the memory 502, the input and output unit 503 and the bus 504;

存储器502保存有程序,处理器501调用程序以执行如上任一足式机器人足端轨迹规划的方法。The memory 502 stores a program, and the processor 501 invokes the program to execute any of the above methods for foot trajectory planning of a legged robot.

本申请还涉及一种计算机可读存储介质,计算机可读存储介质上保存有程序,其特征在于,当程序在计算机上运行时,使得计算机执行如上任一足式机器人足端轨迹规划的方法。The present application also relates to a computer-readable storage medium, on which a program is stored, which is characterized in that, when the program is run on the computer, the computer is made to execute the method for planning the foot end trajectory of any legged robot.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,read-onlymemory)、随机存取存储器(RAM,random access memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), magnetic disk or optical disk, and other media that can store program codes.

Claims (12)

1. A method for foot end trajectory planning of a legged robot, the method comprising:
determining the swing height and the swing length of the foot end of at least one leg, which is lifted from a first step to a second step in a first swing phase, wherein the first step is the step where the foot end of the support leg is located in a first support phase, the first support phase and the first swing phase are continuous in time, and the first support phase is earlier than the first swing phase;
if the tread of the second step is higher than the tread of the first step, determining a first series of track traction points corresponding to the foot end according to the swing height and the swing length;
generating a first foot end track according to the first series of track traction points, and controlling the foot end to fall on the second step according to the first foot end track;
if the tread of the second step is lower than the tread of the first step, determining a second series of track traction points corresponding to the foot end according to the swing height and the swing length;
and generating a second foot end track according to the second series of track traction points, and controlling the foot end to fall on a second step according to the second foot end track.
2. The method of claim 1, wherein the first series of trajectory tow points comprises: at least 1 first foot end backward-retracting traction point and at least 1 first foot end forward-swinging traction point;
the at least 1 first foot end backward-retracting traction point is used for drawing the foot end backward-retracting in the foot end lifting process so as to prevent the foot end from touching the kicking surface of the second step in the lifting process;
the at least 1 first foot end forward swing traction point is used for drawing the foot end forward swing to bypass the edge of the second step after the lifting height of the foot end exceeds the tread height of the second step;
the second series of trajectory traction points comprises: at least 1 second foot end forward swing traction point and at least 1 second foot end backward retraction traction point;
the at least 1 second foot end forward swing traction point is used for drawing the foot end forward swing and winding off the edge of the first step in the foot end lifting process;
and the at least 1 second foot end backward-retracting traction point is used for drawing the foot end backward-retracting in the falling process of the foot end and avoiding the foot end from touching the edge of the second step in the falling process.
3. The method of claim 2, wherein the first series of trajectory traction points further comprises: at least 1 first foot end speed traction point, wherein the at least 1 first foot end speed traction point is used for reducing the speed and/or the acceleration of the traction foot end falling on the tread of the second step when the distance between the foot end and the tread of the second step is smaller than a preset distance;
the second series of trajectory traction points further comprises: and the at least 1 second foot end speed traction point is used for reducing the speed and/or the acceleration of the tread of the second step when the distance between the foot end and the tread of the second step is smaller than the preset distance.
4. The method of claim 2 or 3, wherein prior to said determining a first series of trajectory traction points for said foot end from said swing height and swing length, said method further comprises:
judging whether the original foot end track is crossed with a kick surface or a tread of the second step;
the determining a first series of trajectory traction points corresponding to the foot end according to the swing height and the swing length comprises:
if the intersection exists, determining a first series of track traction points corresponding to the foot end according to the swing height and the swing length;
or the like, or, alternatively,
before the determining a second series of trajectory traction points corresponding to the foot end according to the swing height and the swing length, the method further comprises:
judging whether the original foot end track is crossed with a kick surface or a tread of the first step;
the determining a second series of trajectory traction points corresponding to the foot end according to the swing height and the swing length comprises:
and if the intersection exists, determining a second series of track traction points corresponding to the foot end according to the swing height and the swing length.
5. The method of claim 2 or 3, wherein prior to said determining a first series of trajectory traction points for said foot end from said swing height and swing length, said method further comprises:
judging whether the distance between the foot end and the kick surface of the second step is smaller than a preset distance;
the determining a first series of trajectory traction points corresponding to the foot end according to the swing height and the swing length comprises:
if it is less than the above range, the film is formed, determining a first series of track traction points corresponding to the foot end according to the swing height and the swing length.
6. The method of claim 1, wherein determining the swing height and swing length of the foot end of the at least one leg rising from the first step to falling to the second step in the first swing phase comprises:
if the robot is in a blind climbing mode, receiving an instruction to screen target stair size information in a preset stair size table, determining that the foot end of at least one leg is in a first swing phase according to the target stair size information, and lifting the first leg from a first step to a swing height and a swing length of a second step;
or the like, or, alternatively,
and if the robot is in a visual mode, determining the swing height and the swing length of the foot end of at least one leg in the first swing phase, lifting from the first step to the second step according to the visual information of the robot.
7. A method for foot end trajectory planning of a legged robot, the method comprising:
when an obstacle is sensed, determining attribute information of the obstacle, wherein the attribute information comprises shape and size information;
judging whether a preset track switching condition is met or not according to the attribute information;
if so, determining the foot end of at least one leg in a second swing phase, the swing height and the swing length from a starting point to a foot falling point according to the attribute information, wherein the starting point is the position of the foot end of the support leg in the second support phase, the second support phase and the second swing phase are continuous in time, and the second support phase is earlier than the second swing phase;
determining a third series of track traction points corresponding to the foot end according to the swing height and the swing length;
and generating a third foot end track according to the third series of track traction points, and controlling the foot end to cross the obstacle according to the third foot end track.
8. The method of claim 7, wherein the third series of trajectory tow points comprises a first combined tow point and a second combined tow point;
the first combined traction point comprises at least 1 third foot end lifting rear-retracting traction point, at least 1 third foot end front-swinging traction point and at least 1 third foot end falling rear-retracting traction point;
the second combined traction point comprises at least 1 third foot end lifting rear-retracting traction point and at least 1 third foot end front-swinging traction point;
the at least 1 third foot end drawing point which is drawn back after being lifted is used for drawing the foot end to be drawn back in the foot end lifting process, to prevent the foot end from hitting the obstacle during lifting;
the at least 1 third foot end forward swing traction point is used for drawing the foot end forward swing and winding the edge of the obstacle after the foot end is lifted to a height exceeding the obstacle;
and the at least 1 third foot end is drawn after falling and used for drawing the foot end to retract in the falling process of the foot end so as to avoid the foot end from touching the edge of the obstacle in the falling process.
9. The method according to claim 7 or 8, wherein the determining whether a preset track switching condition is met according to the attribute information comprises:
judging whether the original foot end track is crossed with the barrier or not according to the attribute information, and if so, determining that a preset track switching condition is met;
or the like, or, alternatively,
and judging whether the distance between the starting point in the original foot end track and the obstacle is smaller than a preset distance or not according to the attribute information, and if so, determining that a preset track switching condition is met.
10. An apparatus for foot end trajectory planning for a legged robot, the apparatus comprising: a sensing unit and a control unit;
the sensing unit is used for:
determining the swing height and the swing length of the foot end of at least one leg, which is lifted from a first step to a second step in a first swing phase, wherein the first step is the step where the foot end of the support leg is located in a first support phase, the first support phase and the first swing phase are continuous in time, and the first support phase is earlier than the first swing phase;
the control unit is used for:
if the tread of the second step is higher than that of the first step, determining a first series of track traction points corresponding to the foot end according to the swing height and the swing length;
generating a first foot end track according to the first series of track traction points, and controlling the foot end to fall on the second step according to the first foot end track;
if the tread of the second step is lower than the tread of the first step, determining a second series of track traction points corresponding to the foot end according to the swing height and the swing length;
and generating a second foot end track according to the second series of track traction points, and controlling the foot end to fall on a second step according to the second foot end track.
11. An apparatus for foot end trajectory planning for a legged robot, the apparatus comprising: a sensing unit and a control unit;
the sensing unit is used for:
when an obstacle is sensed, determining attribute information of the obstacle, wherein the attribute information comprises shape and size information;
the control unit is used for:
judging whether a preset track switching condition is met or not according to the attribute information;
the sensing unit is further configured to: when the control unit judges that a preset track switching condition is met according to the attribute information, determining that the foot end of at least one leg is in a second swing phase according to the attribute information, and the swing height and the swing length from a starting point to a foot falling point, wherein the starting point is the position of the foot end of the support leg in the second support phase, the second support phase and the second swing phase are continuous in time, and the second support phase is earlier than the second swing phase;
the control unit is further configured to:
determining a third series of track traction points corresponding to the foot end according to the swing height and the swing length;
and generating a third foot end track according to the third series of track traction points, and controlling the foot end to cross the obstacle according to the third foot end track.
12. A legged robot, characterized in that it comprises:
the device comprises a processor, a memory, an input and output unit and a bus;
the processor is connected with the memory, the input and output unit and the bus;
the memory holds a program that the processor calls to perform the method of any of claims 1 to 6 or claims 7 to 9.
CN202210832831.XA 2022-07-15 2022-07-15 Method and device for foot end trajectory planning of a legged robot and the legged robot Pending CN115344040A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210832831.XA CN115344040A (en) 2022-07-15 2022-07-15 Method and device for foot end trajectory planning of a legged robot and the legged robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210832831.XA CN115344040A (en) 2022-07-15 2022-07-15 Method and device for foot end trajectory planning of a legged robot and the legged robot

Publications (1)

Publication Number Publication Date
CN115344040A true CN115344040A (en) 2022-11-15

Family

ID=83948361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210832831.XA Pending CN115344040A (en) 2022-07-15 2022-07-15 Method and device for foot end trajectory planning of a legged robot and the legged robot

Country Status (1)

Country Link
CN (1) CN115344040A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115981346A (en) * 2023-03-20 2023-04-18 深圳鹏行智能研究有限公司 Robot control method and robot
CN116069027A (en) * 2022-12-29 2023-05-05 苏州光格科技股份有限公司 Method and device for planning crawling ladder of robot, computer equipment and storage medium
CN116787450A (en) * 2023-08-28 2023-09-22 南方电网电力科技股份有限公司 Control method, device and equipment for walking of multi-legged robot stair

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113427482A (en) * 2021-03-18 2021-09-24 长安大学 Method, system, equipment and storage medium for robot to pass obstacle
CN113467445A (en) * 2021-06-17 2021-10-01 南京蔚蓝智能科技有限公司 Four-legged robot swing leg obstacle avoidance method based on vision and path planning
CN114137992A (en) * 2021-10-20 2022-03-04 深圳鹏行智能研究有限公司 Method and related device for reducing shaking of foot type robot
CN114401886A (en) * 2019-08-06 2022-04-26 波士顿动力公司 Leg swing path
CN114633826A (en) * 2022-05-19 2022-06-17 深圳鹏行智能研究有限公司 Leg collision processing method for foot type robot and foot type robot

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114401886A (en) * 2019-08-06 2022-04-26 波士顿动力公司 Leg swing path
CN113427482A (en) * 2021-03-18 2021-09-24 长安大学 Method, system, equipment and storage medium for robot to pass obstacle
CN113467445A (en) * 2021-06-17 2021-10-01 南京蔚蓝智能科技有限公司 Four-legged robot swing leg obstacle avoidance method based on vision and path planning
CN114137992A (en) * 2021-10-20 2022-03-04 深圳鹏行智能研究有限公司 Method and related device for reducing shaking of foot type robot
CN114633826A (en) * 2022-05-19 2022-06-17 深圳鹏行智能研究有限公司 Leg collision processing method for foot type robot and foot type robot

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116069027A (en) * 2022-12-29 2023-05-05 苏州光格科技股份有限公司 Method and device for planning crawling ladder of robot, computer equipment and storage medium
CN115981346A (en) * 2023-03-20 2023-04-18 深圳鹏行智能研究有限公司 Robot control method and robot
CN115981346B (en) * 2023-03-20 2024-06-07 深圳鹏行智能研究有限公司 Robot control method and robot
CN116787450A (en) * 2023-08-28 2023-09-22 南方电网电力科技股份有限公司 Control method, device and equipment for walking of multi-legged robot stair
CN116787450B (en) * 2023-08-28 2023-10-31 南方电网电力科技股份有限公司 Control method, device and equipment for walking of multi-legged robot stair

Similar Documents

Publication Publication Date Title
CN115344040A (en) Method and device for foot end trajectory planning of a legged robot and the legged robot
US12151380B2 (en) Robotically negotiating stairs
US12139217B2 (en) Slip detection for robotic locomotion
US11654569B2 (en) Handling gait disturbances with asynchronous timing
US9926025B1 (en) Slip avoidance
CN104881027B (en) Wheel-track combined Intelligent Mobile Robot active obstacle system and control method
CN108897328A (en) Wheel chair robot and its indoor autonomous navigation method
CN105197123A (en) Judgment method of walking up and down stairs of lifting telescopic corridor cleaning robot easy to operate
CN116449711B (en) Crawling state planning method and system for quadruped robot capable of crossing large obstacles
US20230415343A1 (en) Automatically trasitioning a robot to an operational mode optimized for particular terrain
TWI773947B (en) Control device, exoskeleton system and control method
CN108214447A (en) Intelligent robot moving platform
CN103950482B (en) Dropproof and collision processing method when stair clean robot moves on marking time
CN114633826B (en) Leg collision processing method for foot type robot and foot type robot
TWI527724B (en) Tracked robots with swing arms and control methods thereof
CN219778132U (en) Obstacle avoidance mechanism of mobile robot
CN114633825B (en) Movement control method, legged robot, and computer-readable storage medium
CN213338443U (en) Raspberry Pi-based wheel-leg stair-climbing robot control system
CN118192582B (en) Operation path optimization method and system based on rescue transfer robot
CN116039797B (en) A blind stair climbing method for a quadruped robot and a quadruped robot
CN116276991A (en) Method for lifting robot and robot
CN119668273A (en) Automatic control method, device, equipment and storage medium for climbing robot
CN115981346A (en) Robot control method and robot
CN113304019A (en) Six-legged blind guiding robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination