CN110561419A - arm-shaped line constraint flexible robot track planning method and device - Google Patents

arm-shaped line constraint flexible robot track planning method and device Download PDF

Info

Publication number
CN110561419A
CN110561419A CN201910733184.5A CN201910733184A CN110561419A CN 110561419 A CN110561419 A CN 110561419A CN 201910733184 A CN201910733184 A CN 201910733184A CN 110561419 A CN110561419 A CN 110561419A
Authority
CN
China
Prior art keywords
arm
flexible robot
slit
joint
deviation
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.)
Granted
Application number
CN201910733184.5A
Other languages
Chinese (zh)
Other versions
CN110561419B (en
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.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
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 Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN201910733184.5A priority Critical patent/CN110561419B/en
Publication of CN110561419A publication Critical patent/CN110561419A/en
Application granted granted Critical
Publication of CN110561419B publication Critical patent/CN110561419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1602Programme controls characterised by the control system, structure, architecture
    • B25J9/161Hardware, e.g. neural networks, fuzzy logic, interfaces, processor
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • B25J9/1664Programme controls characterised by programming, planning systems for manipulators characterised by motion, path, trajectory planning

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

本发明公开了臂型线约束柔性机器人轨迹规划方法及装置。涉及机器人控制领域,其中,方法通过获取柔性机器人相对偏差数据,根据获取的相对偏差数据与阈值判断条件,判断末端点是否到达目标区域的目标位置点,当满足阈值判断条件,则认为末端点到达目标位置点,否则,根据相对偏差数据获取柔性机器人下一时刻速的速度数据并计算柔性机器人的关节期望角速度,根据关节期望角速度获取下一时刻的关节控制量,来驱动柔性机器人各关节运动到达目标位置点。实现末端点的轨迹规划,并且结合狭缝内臂段和狭缝外臂段的位姿特征,实现柔性机器人进入狭缝内的部分不与狭缝壁发生碰撞以及狭缝外部分实现避障功能,提高了臂型线约束柔性机器人轨迹规划效率并兼顾控制精度。

The invention discloses a trajectory planning method and device for a flexible robot constrained by an arm profile. It relates to the field of robot control, wherein, the method obtains the relative deviation data of the flexible robot, and judges whether the end point reaches the target position point in the target area according to the obtained relative deviation data and the threshold judgment condition. When the threshold judgment condition is met, the end point is considered to have arrived. The target position point, otherwise, according to the relative deviation data, obtain the velocity data of the next moment of the flexible robot and calculate the expected angular velocity of the joints of the flexible robot, and obtain the joint control amount at the next moment according to the expected angular velocity of the joints, to drive the joints of the flexible robot to move to target location point. Realize the trajectory planning of the end point, and combine the pose characteristics of the slit inner arm segment and the slit outer arm segment to realize that the part of the flexible robot entering the slit does not collide with the slit wall and the part outside the slit realizes the obstacle avoidance function , which improves the trajectory planning efficiency of the arm-shaped line-constrained flexible robot and takes into account the control accuracy.

Description

臂型线约束柔性机器人轨迹规划方法及装置Trajectory planning method and device for flexible robot constrained by arm shape line

技术领域technical field

本发明涉及机器人控制领域,尤其是一种臂型线约束柔性机器人轨迹规划方法及装置。The invention relates to the field of robot control, in particular to a trajectory planning method and device for a flexible robot constrained by an arm shape line.

背景技术Background technique

如今对智能机器人的环境适应性以及环境限制的克服能力有着越来越高的要求,由于传统工业机器人工作空间小、运动灵活性能力不足,特别是对一些非结构化的环境适应能力很弱,并且面临自由度数限制以及刚性臂杆难以完成狭小环境中各类障碍物的穿越问题,关于能够满足狭小空间下作业的要求的绳驱超冗余机器人的相关研究越来越多,绳驱超冗余机器人具有自由度数多、臂杆细小、运动灵活性强以及环境适应性好等优点,能满足很多狭小圆柱型空间的穿越任务,例如在核电站冷却管道的维修、油气管道维护以及核反应堆管道检查等超常规作业区域。Nowadays, there are higher and higher requirements for the environmental adaptability of intelligent robots and the ability to overcome environmental restrictions. Due to the small working space and insufficient mobility of traditional industrial robots, especially the weak adaptability to some unstructured environments, In addition, in the face of the limitation of degrees of freedom and the difficulty of passing through various obstacles in a narrow environment with a rigid arm, there are more and more related researches on rope-driven ultra-redundant robots that can meet the requirements of operations in narrow spaces. Yu robot has the advantages of many degrees of freedom, small arm, strong movement flexibility, and good environmental adaptability. It can meet many tasks of traversing narrow cylindrical spaces, such as maintenance of cooling pipelines in nuclear power plants, maintenance of oil and gas pipelines, and inspection of nuclear reactor pipelines. Extraordinary work area.

然而,此类狭小空间通常是圆柱形,要想执行此类狭小空间任务,需要柔性机器人既能抵达目标位置,又不与受限空间内壁发生接触(即柔性臂不与环境障碍物发生碰撞)。传统的研究只考虑柔性机器人末端抵达目标位置作业,或者单纯通过梯度投影避开环境障碍物,没有考虑结合圆柱形狭小空间与臂型的关系。并且传统优化方法解决此类问题计算效率低下或优化方程与优化指标过于复杂,不利于柔性机器人的实时运动控制。因此需要提出一种能够提高穿越圆柱形狭缝轨迹规划效率的同时兼顾控制精度的臂型线约束柔性机器人轨迹规划方法。However, such narrow spaces are usually cylindrical. To perform such narrow space tasks, the soft robot needs to be able to reach the target position without contacting the inner wall of the confined space (that is, the flexible arm does not collide with environmental obstacles) . Traditional research only considers the end of the flexible robot to reach the target position, or simply avoids environmental obstacles through gradient projection, without considering the relationship between the small cylindrical space and the arm shape. Moreover, the traditional optimization method to solve such problems has low calculation efficiency or the optimization equation and optimization index are too complex, which is not conducive to the real-time motion control of flexible robots. Therefore, it is necessary to propose a trajectory planning method for an arm-shaped line-constrained flexible robot that can improve the efficiency of trajectory planning through cylindrical slits while taking into account the control accuracy.

发明内容Contents of the invention

本发明旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本发明的目的是提供一种能够提高穿越圆柱形狭缝轨迹规划效率的同时兼顾控制精度的臂型线约束柔性机器人轨迹规划方法。The present invention aims to solve one of the technical problems in the related art at least to a certain extent. Therefore, the object of the present invention is to provide a trajectory planning method for an arm-shaped line-constrained flexible robot that can improve the efficiency of trajectory planning through a cylindrical slit while taking into account the control accuracy.

本发明所采用的技术方案是:The technical scheme adopted in the present invention is:

第一方面,本发明提供一种臂型线约束柔性机器人轨迹规划方法,适用于臂型线约束柔性机器人,目标区域为圆柱形狭缝,所述柔性机器人进入到所述圆柱形狭缝的部分为狭缝内臂段,对应的,所述圆柱形狭缝外部的部分为狭缝外臂段,包括:In the first aspect, the present invention provides a trajectory planning method for a flexible robot constrained by an arm profile, which is suitable for a flexible robot constrained by an arm profile. The target area is a cylindrical slit, and the flexible robot enters the part of the cylindrical slit is the inner arm section of the slit, and correspondingly, the part outside the cylindrical slit is the outer arm section of the slit, including:

构建空间映射模型并获取所述柔性机器人相对偏差数据,所述相对偏差数据包括:所述柔性机器人末端点和期望点的相对位姿偏差、狭缝内臂段的臂型线矢量和期望臂型线矢量的位置偏差、狭缝外臂段与障碍物的最小距离偏差;Construct a space mapping model and obtain the relative deviation data of the soft robot, the relative deviation data includes: the relative pose deviation between the end point and the expected point of the soft robot, the arm shape line vector of the arm segment in the slit and the expected arm shape The position deviation of the line vector, the minimum distance deviation between the outer arm section of the slit and the obstacle;

根据所述相对偏差数据与阈值判断条件,判断所述末端点是否到达所述目标区域的目标位置点;According to the relative deviation data and the threshold judgment condition, it is judged whether the end point reaches the target position point of the target area;

当满足阈值判断条件,则认为所述末端点到达目标位置点;When the threshold judgment condition is met, it is considered that the end point reaches the target position point;

否则,根据所述相对偏差数据获取所述柔性机器人下一时刻的速度数据,并根据所述速度数据计算所述柔性机器人的关节期望角速度,根据所述关节期望角速度获取下一时刻的关节控制量,来驱动所述柔性机器人各关节运动到达目标位置点;Otherwise, acquire the velocity data of the flexible robot at the next moment according to the relative deviation data, calculate the expected angular velocity of the joints of the flexible robot according to the velocity data, and acquire the joint control amount at the next moment according to the expected angular velocity of the joints , to drive each joint of the flexible robot to move to the target position point;

所述下一时刻速的速度数据包括:末端点的线速度与角速度、所述狭缝内臂段的臂型线速度、所述狭缝外臂段避障的避障瞬时速度。The speed data at the next moment includes: the linear velocity and angular velocity of the end point, the arm shape linear velocity of the arm section inside the slit, and the obstacle avoidance instantaneous velocity of the arm section outside the slit for obstacle avoidance.

进一步地,所述阈值判断条件包括:所述柔性机器人的末端点到达所述目标区域内且所述相对位姿偏差在第一预设阈值范围内、所述位置偏差小于位置偏差阈值、所述狭缝外臂段与障碍物的最小距离偏差小于避障距离阈值。Further, the threshold judgment conditions include: the end point of the flexible robot arrives in the target area and the relative pose deviation is within a first preset threshold range, the position deviation is less than a position deviation threshold, the The minimum distance deviation between the outer arm segment of the slit and the obstacle is smaller than the obstacle avoidance distance threshold.

进一步地,计算所述柔性机器人关节期望角速度的具体公式为:Further, the specific formula for calculating the expected angular velocity of the flexible robot joint is:

其中,表示所述柔性机器人的关节期望角速度,表示臂型线约束的雅可比矩阵和避障约束的扩展雅克比矩阵之间的广义扩展雅可比矩阵的伪逆,表示所述末端点在末端坐标系中的广义速度,表示所述臂型线速度,表示所述避障瞬时速度。in, Indicates the expected angular velocity of the joints of the flexible robot, represents the pseudoinverse of the generalized extended Jacobian matrix between the Jacobian matrix of the arm type constraint and the extended Jacobian matrix of the obstacle avoidance constraint, represents the generalized velocity of the end point in the end coordinate system, represents the linear velocity of the arm type, Indicates the instantaneous speed of the obstacle avoidance.

进一步地,计算所述下一时刻的关节控制量的公式具体为:Further, the formula for calculating the joint control amount at the next moment is specifically:

其中,Θd(t)表示t时刻的期望关节角,表示t时刻的关节期望角速度。Among them, Θ d (t) represents the desired joint angle at time t, Indicates the expected angular velocity of the joint at time t.

进一步地,将所述位置偏差对关节角进行求导,得到所述臂型线约束的雅可比矩阵。Further, the position deviation is derived from the joint angle to obtain the Jacobian matrix constrained by the arm shape line.

进一步地,将所述狭缝外臂段与障碍物的最小距离偏差对关节角进行求导,得到所述避障约束的扩展雅可比矩阵。Further, the minimum distance deviation between the outer arm segment of the slit and the obstacle is derived from the joint angle to obtain the extended Jacobian matrix of the obstacle avoidance constraint.

进一步地,所述狭缝内臂段的臂型为直线,所述直线的线矢量方向与所述狭缝的轴线平行。Further, the arm shape of the arm segment in the slit is a straight line, and the line vector direction of the straight line is parallel to the axis of the slit.

第二方面,本发明还提供一种臂型线约束柔性机器人轨迹规划装置,包括:In the second aspect, the present invention also provides a trajectory planning device for a flexible robot constrained by an arm shape line, including:

获取偏差数据模块:用于构建空间映射模型并获取所述柔性机器人相对偏差数据,所述相对偏差数据包括:所述柔性机器人末端点和期望点的相对位姿偏差、狭缝内臂段的臂型线矢量和期望臂型线矢量的位置偏差、狭缝外臂段与障碍物的最小距离偏差;Obtaining deviation data module: used to construct a space mapping model and obtain the relative deviation data of the flexible robot, the relative deviation data includes: the relative pose deviation between the end point and the expected point of the flexible robot, the arm of the arm segment in the slit The position deviation between the model line vector and the expected arm model line vector, and the minimum distance deviation between the outer arm segment of the slit and the obstacle;

阈值判断模块:用于根据所述相对偏差数据与阈值判断条件,判断所述末端点是否到达所述目标区域的目标位置点;Threshold judgment module: for judging whether the end point reaches the target position point of the target area according to the relative deviation data and the threshold judgment condition;

阈值判断结果执行模块:用于当满足阈值判断条件,则认为所述末端点到达目标位置点,否则,根据所述相对偏差数据获取所述柔性机器人下一时刻速的速度数据,并根据所述速度数据计算所述柔性机器人的关节期望角速度,根据所述关节期望角速度获取下一时刻的关节控制量,来驱动所述柔性机器人各关节运动到达目标位置点,所述下一时刻速的速度数据包括:末端点的线速度与角速度、所述狭缝内臂段的臂型线速度、所述狭缝外臂段避障的避障瞬时速度。Threshold judgment result execution module: used to consider that the end point has reached the target position point when the threshold judgment condition is satisfied, otherwise, obtain the speed data of the next moment of the flexible robot according to the relative deviation data, and according to the The velocity data calculates the expected angular velocity of the joints of the flexible robot, and obtains the joint control amount at the next moment according to the expected angular velocity of the joints to drive the joints of the flexible robot to reach the target position point, and the velocity data of the next moment Including: the linear velocity and angular velocity of the end point, the arm shape linear velocity of the arm section inside the slit, and the obstacle avoidance instantaneous velocity of the arm section outside the slit.

第三方面,本发明提供一种臂型线约束柔性机器人轨迹规划设备,包括:In a third aspect, the present invention provides a trajectory planning device for a flexible robot constrained by an arm shape line, including:

至少一个处理器,以及与所述至少一个处理器通信连接的存储器;at least one processor, and a memory communicatively coupled to the at least one processor;

其中,所述处理器通过调用所述存储器中存储的计算机程序,用于执行如第一方面任一项所述的方法。Wherein, the processor is used to execute the method according to any one of the first aspect by invoking the computer program stored in the memory.

第四方面,本发明提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使计算机执行如第一方面任一项所述的方法。In a fourth aspect, the present invention provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute the method described in any one of the first aspect. method.

本发明的有益效果是:The beneficial effects of the present invention are:

本发明通过构建空间映射模型并获取柔性机器人相对偏差数据,根据获取的相对偏差数据与阈值判断条件,判断末端点是否到达目标区域的目标位置点,当满足阈值判断条件,则认为末端点到达目标位置点,否则,根据相对偏差数据获取柔性机器人下一时刻速的速度数据并计算柔性机器人的关节期望角速度,根据关节期望角速度获取下一时刻的关节控制量,来驱动柔性机器人各关节运动到达目标位置点。本发明根据圆柱形狭缝以及柔性机器人关节空间到末端点笛卡尔空间的映射关系进行统一建模,实现末端点的轨迹规划,并且结合狭缝内臂段和狭缝外臂段的位姿特征,实现柔性机器人进入狭缝内的部分不与狭缝壁发生碰撞以及狭缝外部分实现避障功能,相比于现有技术,提高了臂型线约束柔性机器人轨迹规划效率并兼顾控制精度。The present invention constructs a space mapping model and obtains the relative deviation data of the flexible robot, and judges whether the end point has reached the target position point in the target area according to the obtained relative deviation data and the threshold judgment condition. When the threshold judgment condition is met, the end point is considered to have reached the target Otherwise, according to the relative deviation data, obtain the velocity data of the flexible robot's next moment speed and calculate the expected angular velocity of the joints of the flexible robot, and obtain the joint control amount at the next moment according to the expected angular velocity of the joints, to drive the joints of the flexible robot to move to the target location point. The present invention performs unified modeling according to the mapping relationship between the cylindrical slit and the joint space of the flexible robot to the Cartesian space of the end point, realizes the trajectory planning of the end point, and combines the pose characteristics of the slit inner arm segment and the slit outer arm segment , to realize that the part of the flexible robot entering the slit does not collide with the slit wall and the part outside the slit realizes the obstacle avoidance function. Compared with the prior art, the trajectory planning efficiency of the arm-shaped line-constrained flexible robot is improved while taking into account the control accuracy.

可广泛应用于臂型线约束柔性机器人轨迹规划领域。The invention can be widely used in the field of trajectory planning of flexible robots constrained by arm type lines.

附图说明Description of drawings

图1是本发明中臂型线约束柔性机器人轨迹规划方法的一具体实施例的实现流程图;Fig. 1 is the implementation flow chart of a specific embodiment of the trajectory planning method of the flexible robot with arm profile constraints in the present invention;

图2是本发明中臂型线约束柔性机器人轨迹规划方法的一具体实施例的柔性机器人的关节坐标系示意图;Fig. 2 is a schematic diagram of the joint coordinate system of the flexible robot in a specific embodiment of the trajectory planning method for the flexible robot constrained by the arm shape line of the present invention;

图3是本发明中臂型线约束柔性机器人轨迹规划方法的一具体实施例的柔性机器人一个臂段的D-H坐标系分布图;Fig. 3 is a distribution diagram of the D-H coordinate system of an arm segment of the flexible robot according to a specific embodiment of the trajectory planning method of the flexible robot constrained by the arm shape line in the present invention;

图4是本发明中臂型线约束柔性机器人轨迹规划方法的一具体实施例的规划示意图;Fig. 4 is a planning schematic diagram of a specific embodiment of the trajectory planning method of the flexible robot constrained by the middle arm shape line of the present invention;

图5是本发明中臂型线约束柔性机器人轨迹规划装置的一具体实施例的结构框图。Fig. 5 is a structural block diagram of a specific embodiment of a trajectory planning device for a flexible robot constrained by a line of the middle arm of the present invention.

具体实施方式Detailed ways

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对照附图说明本发明的具体实施方式。显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图,并获得其他的实施方式。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the specific implementation manners of the present invention will be described below with reference to the accompanying drawings. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other accompanying drawings based on these drawings and obtain other implementations.

除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field of the invention. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.

实施例一:Embodiment one:

本发明实施例一提供一种臂型线约束柔性机器人轨迹规划方法,本实施例适用于臂型线约束柔性机器人(即关节型线约束柔性机器人,本实施例中,以关节型柔性臂为例),作业的目标区域为圆柱形狭缝,并定义柔性机器人进入到圆柱形狭缝的部分为狭缝内臂段,圆柱形狭缝外部的部分为狭缝外臂段。Embodiment 1 of the present invention provides a trajectory planning method for an arm-shaped line-constrained flexible robot. This embodiment is applicable to an arm-shaped line-constrained flexible robot (that is, a joint-shaped line-constrained flexible robot. ), the target area of the operation is the cylindrical slit, and the part of the soft robot entering the cylindrical slit is defined as the inner arm segment of the slit, and the part outside the cylindrical slit is the outer arm segment of the slit.

图1为本发明实施例提供的臂型线约束柔性机器人轨迹规划方法的实现流程图,如图1所示,该方法包括以下步骤:Fig. 1 is the implementation flowchart of the trajectory planning method for the arm-shaped line constrained flexible robot provided by the embodiment of the present invention. As shown in Fig. 1, the method includes the following steps:

S1:构建空间映射模型并获取柔性机器人相对偏差数据。S1: Construct a spatial mapping model and obtain relative deviation data of the soft robot.

本实施例中,空间映射模型可选的是根据手眼视觉系统对作业目标区域的圆柱形狭缝、柔性机器人的关节空间以及末端点的笛卡尔空间映射关系进行统一建模,结合末端点位姿约束、狭缝内臂段臂型线约束和狭缝外臂段避障约束,共同建立“末端点位姿-臂型线-避障”一体的雅可比矩阵。In this embodiment, the spatial mapping model can optionally be unified modeling of the cylindrical slit of the operation target area, the joint space of the flexible robot, and the Cartesian spatial mapping relationship of the end point according to the hand-eye vision system, combined with the end point pose Constraints, arm shape line constraints inside the slit, and obstacle avoidance constraints outside the slit, jointly establish a Jacobian matrix integrating "end point pose-arm shape line-obstacle avoidance".

本实施例中,相对偏差数据包括:柔性机器人末端点和期望点(即目标位置点)的相对位姿偏差、狭缝内臂段的臂型线矢量和期望臂型线矢量的位置偏差(记为ΔPm,i)、狭缝外臂段与障碍物的最小距离偏差(记为ΔDo)。其中,相对位姿偏差包括:相对位置偏差(记为ΔPe)和相对姿态偏差(记为)。In this embodiment, the relative deviation data includes: the relative pose deviation between the end point of the flexible robot and the expected point (i.e. the target position point), the position deviation between the arm shape vector of the arm segment in the slit and the expected arm shape vector (record is ΔP m,i ), the minimum distance deviation between the outer arm segment of the slit and the obstacle (denoted as ΔD o ). Among them, relative pose deviation includes: relative position deviation (denoted as ΔP e ) and relative attitude deviation (denoted as ).

S2:根据相对偏差数据与阈值判断条件,判断末端点是否到达目标区域的目标位置点。S2: According to the relative deviation data and the threshold judgment condition, judge whether the end point reaches the target position point in the target area.

S21:当满足阈值判断条件,则认为末端点到达目标位置点,轨迹规划任务结束。S21: When the threshold judgment condition is met, it is considered that the end point has reached the target position point, and the trajectory planning task ends.

S22:否则,继续进行轨迹规划,根据相对偏差数据获取柔性机器人下一时刻的速度数据,并根据速度数据计算柔性机器人的关节期望角速度,根据关节期望角速度获取下一时刻的关节控制量,来驱动柔性机器人各关节运动,重复循环该过程,直至到达目标位置点。S22: Otherwise, continue trajectory planning, obtain the speed data of the flexible robot at the next moment according to the relative deviation data, calculate the joint expected angular velocity of the flexible robot according to the speed data, and obtain the joint control amount at the next moment according to the joint expected angular velocity to drive Each joint of the flexible robot moves, and the process is repeated until it reaches the target position.

本实施例中,下一时刻的速度数据包括:末端点的线速度与角速度、狭缝内臂段的臂型线速度、狭缝外臂段避障的避障瞬时速度。In this embodiment, the speed data at the next moment includes: the linear velocity and angular velocity of the end point, the arm shape linear velocity of the arm segment inside the slit, and the obstacle avoidance instantaneous speed of the arm segment outside the slit for obstacle avoidance.

步骤S22中,进行轨迹规划的具体过程如下所述。In step S22, the specific process of trajectory planning is as follows.

S221:将狭缝内臂段的臂型线矢量和期望臂型线矢量的位置偏差对关节角进行求导,得到臂型线约束的雅可比矩阵,记为JLineS221 : Deriving the position deviation between the arm shape line vector of the arm segment in the slit and the expected arm shape line vector with respect to the joint angle to obtain a Jacobian matrix of the arm shape line constraint, denoted as J Line .

S222:狭缝外臂段与障碍物的最小距离偏差ΔDo对关节角进行求导,得到避障约束的扩展雅可比矩阵,记为JdS222: The minimum distance deviation ΔD o between the outer arm segment of the slit and the obstacle is derived from the joint angle to obtain the extended Jacobian matrix of the obstacle avoidance constraint, denoted as J d .

S223:根据上述步骤的臂型线约束的雅可比矩阵JLine和避障约束的扩展雅可比矩阵Jd得到广义扩展雅可比矩阵,记为通过对该广义扩展雅可比矩阵进行逆运动学求解,计算得到柔性机器人关节期望角速度,记为计算公式表示为:S223: According to the Jacobian matrix J Line constrained by the arm shape line of the above steps and the extended Jacobian matrix J d of the obstacle avoidance constraint, the generalized extended Jacobian matrix is obtained, denoted as By solving the inverse kinematics of the generalized extended Jacobian matrix, the expected angular velocity of the joint of the flexible robot is calculated, denoted as The calculation formula is expressed as:

上式(1)中,表示柔性机器人的关节期望角速度,表示臂型线约束的雅可比矩阵JLine和避障约束的扩展雅克比矩阵Jd之间的广义扩展雅可比矩阵的伪逆,表示末端点在末端坐标系中的广义速度,表示臂型线速度,表示避障瞬时速度。In the above formula (1), Indicates the expected angular velocity of the joints of the flexible robot, Represents the pseudoinverse of the generalized extended Jacobian matrix between the Jacobian matrix J Line of the arm type line constraint and the extended Jacobian matrix J d of the obstacle avoidance constraint, represents the generalized velocity of the end point in the end coordinate system, Indicates the linear velocity of the arm type, Indicates the instantaneous speed of obstacle avoidance.

S224:根据期望关节角速度对其进行积分得到下一时刻的关节控制量,来驱动柔性机器人各关节运动,直至满足阈值判断条件,且运行时间t在预设最大运行时间tf内,判断到达目标位置,完成对轨迹规划。S224: Integrate it according to the expected joint angular velocity to obtain the joint control amount at the next moment, and drive each joint of the flexible robot to move until the threshold judgment condition is met, and the running time t is within the preset maximum running time t f , and then judge to reach the target position to complete the trajectory planning.

本实施例将臂型线约束与避障约束进行融合,组合成带有臂型线、避障功能于一体的新型广义扩展雅可比矩阵,进而能够通过分解速度法得到柔性机器人的关节角速度,对关节角速度的数值进行积分后得到柔性机器人的关节角,进而控制柔性机器人末端点快速向目标位置点运动,实现有效地穿越狭小圆柱形受限空间的目的,能够提高轨迹控制的精度,同时也提高了轨迹控制的效率。In this embodiment, the arm profile constraints and obstacle avoidance constraints are combined to form a new generalized extended Jacobian matrix with arm profile and obstacle avoidance functions, and then the joint angular velocity of the flexible robot can be obtained by the decomposition velocity method. The value of the joint angular velocity is integrated to obtain the joint angle of the flexible robot, and then the end point of the flexible robot is controlled to move quickly to the target position, so as to achieve the purpose of effectively passing through the narrow cylindrical confined space, which can improve the accuracy of trajectory control and improve the efficiency of trajectory control.

下面详细描述本实施例的计算过程。The calculation process of this embodiment will be described in detail below.

如图2所示,为本实施例中柔性机器人的关节坐标系示意图,从图中可见,为柔性机器人第m段第k个子关节的关节坐标系示意图,假设第k个子关节的布线圆盘1(圆心O2p(m-1)+k)上驱动绳索的过线孔表示为:A2p(m-1)+k,1、A2p(m-1)+k,2、A2p(m-1)+k,3,以圆心O2p(m-1)+k建立的坐标系表示为:X2p(m-1)+kY2p(m-1)+kZ2p(m-1)+k,第k+1个关节的布线圆盘2(圆心O2p(m-1)+k+1)驱动绳索的过线孔表示为:B2p(m-1)+k+1,1、B2p(m-1)+k+1,2、B2p(m-1)+k+1,3,以圆心O2p(m-1)+k+1建立的坐标系表示为:X2p(m-1)+k+1Y2p(m-1)+k+1Z2p(m-1)+k+1,线段A2p(m-1)+k,1B2p(m-1)+k+1,1、A2p(m-1)+k,2B2p(m-1)+k+1,2和A2p(m-1)+k,3B2p(m-1)+k+1,3分别代表三个驱动绳索在两个布线圆盘过线孔之间的距离,O2p(m-1)表示第k个子关节的关节中心,以点O2p(m-1)建立的坐标系表示为:X2p(m-1)Y2p(m-1)Z2p(m-1)As shown in Figure 2, it is a schematic diagram of the joint coordinate system of the flexible robot in this embodiment. It can be seen from the figure that it is a schematic diagram of the joint coordinate system of the k-th sub-joint of the m-th segment of the flexible robot. It is assumed that the wiring disc 1 of the k-th sub-joint is (Circle center O 2p(m-1)+k ) The wire-passing hole of the driving rope is expressed as: A 2p(m-1)+k,1 , A 2p(m-1)+k,2 , A 2p(m -1)+k,3 , the coordinate system established with the center O 2p(m-1)+k is expressed as: X 2p(m-1)+k Y 2p(m-1)+k Z 2p(m-1 )+k , the wiring disc 2 of the k+1th joint (circle center O 2p(m-1)+k+1 ) is expressed as: B 2p(m-1)+k+1, 1. B 2p(m-1)+k+1,2 and B 2p(m-1)+k+1,3 , the coordinate system established with the center O 2p(m-1)+k+1 is expressed as: X 2p(m-1)+k+1 Y 2p(m-1)+k+1 Z 2p(m-1)+k+1 , line segment A 2p(m-1)+k,1 B 2p(m -1)+k+1,1 , A 2p(m-1)+k,2 B 2p(m-1)+k+1,2 and A 2p(m-1)+k,3 B 2p(m -1)+k+1, 3 respectively represent the distances between the three driving ropes in the two wiring disc holes, O 2p(m-1) represents the joint center of the kth sub-joint, the point O 2p( The coordinate system established by m-1) is expressed as: X 2p(m-1) Y 2p(m-1) Z 2p(m-1) .

如图3所示,为本实施例中柔性机器人一个臂段的D-H坐标系分布图。本实施例中,设定柔性机器人由n个联动的臂段组成,同一臂段内各关节转动角度相同,假设每个臂段内有四个正交的子关节,坐标系X2pm+1Y2pm+1Z2pm+1是相邻的m+1臂段建立在此关节上的起始坐标系,由运动学递推关系,第m臂段的正运动学方程表示为:As shown in FIG. 3 , it is a distribution diagram of the DH coordinate system of one arm segment of the flexible robot in this embodiment. In this embodiment, it is assumed that the flexible robot is composed of n linked arm segments, and the rotation angle of each joint in the same arm segment is the same, assuming that there are four orthogonal sub-joints in each arm segment, and the coordinate system X 2pm+1 Y 2pm+1 Z 2pm+1 is the initial coordinate system established on this joint by the adjacent m+1 arm segment. According to the kinematic recursive relationship, the positive kinematic equation of the mth arm segment is expressed as:

上式(2)中,(θ2m-12m)表示第m臂段的两个关节角,表示第m臂段的齐次变换矩阵,分别表示齐次变换矩阵在x,y,z轴的方向向量,表示该齐次变换矩阵的位置矢量。In the above formula (2), (θ 2m-12m ) represents the two joint angles of the m-th arm segment, represents the homogeneous transformation matrix of the m-th arm segment, represent the direction vectors of the homogeneous transformation matrix on the x, y, and z axes respectively, represents the position vector of this homogeneous transformation matrix.

由此推出,整个柔性臂的正运动学方程表示为:From this, the positive kinematic equation of the whole flexible arm is expressed as:

上式(3)中,REuler_ZYX表示Te矩阵ZYX欧拉角模式下的旋转矩阵,Pe表示Te矩阵的位置矢量,表示第i段的齐次变换矩阵,(θ2i-12i)表示第i臂段的两个关节角。In the above formula (3), R Euler_ZYX represents the rotation matrix of T e matrix ZYX Euler angle mode, P e represents the position vector of T e matrix, Represents the homogeneous transformation matrix of the i-th segment, (θ 2i-12i ) represents the two joint angles of the i-th arm segment.

整个柔性臂的关节角速度可表示为:The joint angular velocity of the whole flexible arm can be expressed as:

上式(4)中,表示第i臂段的关节角速度。In the above formula (4), Indicates the joint angular velocity of the i-th arm segment.

柔性臂末端的广义运动速度可表示为:The generalized motion velocity at the end of the flexible arm can be expressed as:

上式(5)中,ve=[vex,vey,vez]T∈R3、ωe=[ωexeyez]T∈R3分别表示柔性臂末端点的线速度和角速度,表示末端点的位置微分和姿态微分。In the above formula (5), v e =[v ex , ve ey , ve ez ] T ∈R 3 , ω e =[ω exeyez ] T ∈R 3 represent the lines of the end points of the flexible arm respectively velocity and angular velocity, Indicates the position differential and attitude differential of the end point.

对上(5)进行微分得到柔性臂的速度级正运动学方程,表示为:Differentiate the above (5) to obtain the velocity-level positive kinematics equation of the flexible arm, which is expressed as:

上式(6)中,Jg(Θ)=[J1 J2 … Jn]∈R6×2n表示柔性臂的常规雅可比矩阵,是关于关节角的函数,建立了柔性臂关节角速度与末端点运动速度之间的关系,Ji为关节i的运动速度对柔性臂末端点运动速度的传动比,且Ji为6x1的列向量。In the above formula (6), J g (Θ)=[J 1 J 2 … J n ]∈R 6×2n represents the regular Jacobian matrix of the flexible arm, which is a function of the joint angle, and the joint angular velocity and The relationship between the motion speeds of the end points, J i is the transmission ratio of the motion speed of the joint i to the motion speed of the end point of the flexible arm, and J i is a 6x1 column vector.

假设ξm,i为第m臂段第i个子关节的旋转轴,Pm,i为第m臂段第i个子关节的位置矢量,则第m臂段的雅可比矩阵可表示为:Suppose ξ m,i is the rotation axis of the i-th sub-joint of the m-th arm segment, and P m,i is the position vector of the i-th sub-joint of the m-th arm segment, then the Jacobian matrix of the m-th arm segment can be expressed as:

RefJm=[RefJm,1 RefJm,2RefJm,2p] (7) Ref J m =[ Ref J m,1 Ref J m,2 ... Ref J m,2p ] (7)

其中,下标in表示从i~n,Ref包括{0}系、{n}系。in, The subscript in means from i to n, and Ref includes {0} series and {n} series.

1)当Ref为{0}系时:1) When Ref is {0} series:

2)当Ref为{n}系时:2) When Ref is {n} series:

并且:and:

RefPiRefTi(1:3,4) (10) Ref P i = Ref T i (1:3,4) (10)

RefziRefTi(1:3,3) (11) Ref z i = Ref T i (1:3,3) (11)

nPn=[0 0 0]T (12) n P n = [0 0 0] T (12)

0T0(1:3,3)=[0 0 1]T (13) 0 T 0 (1:3,3)=[0 0 1] T (13)

上式(10)~(13)中,zi表示基于特定坐标系的第i个关节的方向向量,Pi表示基于特定坐标系的第i个关节的位置矢量,上标所示即为选择的特定坐标系。In the above formulas (10) to (13), z i represents the direction vector of the i-th joint based on a specific coordinate system, P i represents the position vector of the i-th joint based on a specific coordinate system, and the superscript indicates the selection specific coordinate system.

由于第m臂段小关节的个数为p个,对应的自由度为2p个,根据式(6),第m臂段末端点的速度可以表示为:Since the number of facet joints of the m-th arm segment is p, and the corresponding degrees of freedom are 2p, according to formula (6), the velocity of the end point of the m-th arm segment can be expressed as:

根据同一个臂段内相邻四个自由度的耦合特征,式(14)可以化简为:According to the coupling characteristics of the adjacent four degrees of freedom in the same arm segment, formula (14) can be simplified as:

假设{0}系为惯性系,则整个柔性臂的常规雅可比矩阵可以简化表示为:Assuming that the {0} system is an inertial system, the general Jacobian matrix of the entire flexible arm can be simplified as:

其中, in,

比较式(15)与式(16),可以看出,的维数是初始柔性机械臂的雅克比矩阵Jm的1/p,实际雅可比求逆过程中,雅克比矩阵求逆的运算量非常大,会影响运算的实时性,因此本实施例中进行简化,从而提高轨迹规划的效率。Comparing formula (15) and formula (16), it can be seen that, The dimension of is the 1/p of the Jacobian matrix J m of the initial flexible manipulator. In the actual Jacobian inversion process, the calculation amount of the Jacobian matrix inversion is very large, which will affect the real-time performance of the operation. Therefore, in this embodiment Simplify to improve the efficiency of trajectory planning.

如图4所示,为本实施例的臂型线约束柔性机器人轨迹规划方法的规划示意图,在柔性臂的机箱上建立机箱的坐标系X0Y0Z0,当第n臂段第p子关节末端点进入狭缝内,将第p-1子关节作为配合点,保持进入狭缝内臂段的末端点与配合点起点的切向方向与切向距离不变。考虑到关节角受限问题,例如将狭缝内臂段的自由度固定的做法,会导致柔性臂可行阈变小,影响其适用范围使得其应用范围受限。本实施例中,狭缝内臂段的臂型为直线,该直线的线矢量方向与狭缝的轴线平行,即将柔性臂的末端相对于待进入节的起点方向与规划轨迹的切线方向保持一致,保证它们之间的欧拉距离为最大距离(即伸直状态)。As shown in Figure 4, it is a schematic diagram of the trajectory planning method of the arm-shaped line constrained flexible robot in this embodiment. The coordinate system X 0 Y 0 Z 0 of the chassis is established on the chassis of the flexible arm. The end point of the joint enters the slit, and the p-1th sub-joint is used as the matching point, and the tangential direction and tangential distance between the end point of the arm segment entering the slit and the starting point of the matching point remain unchanged. Considering the limited joint angle, for example, the method of fixing the degree of freedom of the arm segment in the slit will cause the feasible threshold of the flexible arm to become smaller, which affects its applicable range and limits its application range. In this embodiment, the arm shape of the arm section in the slit is a straight line, and the line vector direction of the straight line is parallel to the axis of the slit, that is, the direction of the end of the flexible arm relative to the starting point of the segment to be entered is consistent with the tangent direction of the planned trajectory , to ensure that the Euler distance between them is the maximum distance (that is, the straight state).

下面结合图4详细描述本实施例的轨迹规划过程。The trajectory planning process of this embodiment will be described in detail below with reference to FIG. 4 .

当柔性臂的最后一节进入狭缝后,第n臂段第i-1节的起点与最后一节终点的位置矢量表示为:When the last section of the flexible arm enters the slit, the position vectors between the starting point of the i-1 section of the nth arm section and the end point of the last section are expressed as:

上式(17)中,ln,i表示第n臂段第i子关节的长度,表示OAOB直线轨迹的单位向量,OA表示狭缝的起点,OB表示狭缝的终点。In the above formula (17), l n,i represents the length of the i-th sub-joint of the n-th arm segment, Represents the unit vector of the linear trajectory of O A O B , O A represents the starting point of the slit, and O B represents the end point of the slit.

因此能够推出,对于任意的第m臂段第i子关节进入狭缝时,第i-1节的位置矢量表示为:Therefore, it can be deduced that when the i-th sub-joint of any m-th arm section enters the slit, the position vector of the i-1th section is expressed as:

以上是狭缝内臂段的臂型线矢量约束关系,狭缝外臂段需要防止与环境中的障碍物发生碰撞,本实施例中,如图4中所示,环境障碍物用一个以Po为球心为半径的球进行包络设置,通过判断球心与距离最近臂段的欧拉距离是否处于狭缝外臂段的避障距离阈值内,欧拉距离表示为:The above is the vector constraint relationship of the arm shape line of the arm section inside the slit, and the arm section outside the slit needs to prevent collision with obstacles in the environment. In this embodiment, as shown in Figure 4, an o is the center of the ball Set the envelope for the radius ball. By judging whether the Euler distance between the center of the ball and the nearest arm segment is within the obstacle avoidance distance threshold of the outer arm segment of the slit, the Euler distance is expressed as:

上式中,表示球心与距离最近臂段的欧拉距离,dsaf表示安全距离。In the above formula, Indicates the Euler distance between the center of the sphere and the nearest arm segment, and d saf indicates the safety distance.

柔性臂末端点的位姿按期望点的轨迹进行规划,同时考虑到上述欧拉距离约束,从而保证柔性臂进入狭缝的同时既不与狭缝壁发生接触又不与外界环境障碍物发生碰撞。The pose of the end point of the flexible arm is planned according to the trajectory of the desired point, taking into account the above-mentioned Euler distance constraints, so as to ensure that the flexible arm enters the slit without contacting the slit wall or colliding with external environmental obstacles .

因此柔性臂的轨迹规划可以分解为:(1)通过扩展雅克比矩阵一方面保证末端点指向期望点的位姿,另一方面保证运动过程中狭缝内臂段伸直并与狭缝平面平行;(2)通过梯度投影法保证狭缝外臂段不与障碍物发生碰撞,同时满足待进入节顺利进入狭缝的条件。Therefore, the trajectory planning of the flexible arm can be decomposed into: (1) By extending the Jacobian matrix, on the one hand, the pose of the end point pointing to the desired point is ensured, and on the other hand, the arm segment inside the slit is straightened and parallel to the slit plane ; (2) Use the gradient projection method to ensure that the outer arm segment of the slit does not collide with obstacles, and at the same time meet the conditions for the segment to enter the slit smoothly.

柔性臂末端点到任意参考点(以第m段第i子节点末端作参考为例进行说明)的位置矢量表示为:The position vector from the end point of the flexible arm to any reference point (taking the end of the i-th child node in the m-th section as an example for illustration) is expressed as:

rm,i=Pe-Pm,i=Rm,i m,ite (20)r m,i =P e -P m,i =R m,i m,i t e (20)

其中,Rm,i表示第m臂段第i子关节的旋转矩阵,m,ite表示第m臂段第i子关节末端到柔性臂末端坐标系的平移向量,且有 Among them, R m,i represents the rotation matrix of the i-th sub-joint of the m-th arm segment, m,i t e represents the translation vector from the end of the i-th sub-joint of the m-th arm segment to the coordinate system of the end of the flexible arm, and

对式(20)进行微分,可以得到下面的表达式:Differentiate formula (20), the following expression can be obtained:

其中,0Rm,k,m,1Rm,i分别表示从{0}号坐标系到第m段第k子关节的{2p(m-1)+k}号坐标系的姿态转换矩阵以及第m段第1子关节的{2p(m-1)+1}号坐标系到第i子关节的{2p(m-1)+i}号坐标系的姿态转换矩阵。Among them, 0 R m, k , m, 1 R m, i represent the attitude transformation matrix from the {0} coordinate system to the {2p(m-1)+k} coordinate system of the kth sub-joint in the mth segment And the attitude transformation matrix from the {2p(m-1)+1} coordinate system of the first sub-joint in the m segment to the {2p(m-1)+i} coordinate system of the i-th sub-joint.

将上式(21)写成矩阵的形式,即可得到:Write the above formula (21) in the form of a matrix to get:

其中,0Rm,0表示初始坐标系到第m臂段起点坐标系的姿态变换矩阵,m,kRm,k表示第m臂段第k子关节坐标系到第m段第k子关节坐标系的姿态变换矩阵,并且有:0Rm,0m,kRm,k=eye(3)。Among them, 0 R m,0 represents the attitude transformation matrix from the initial coordinate system to the starting point coordinate system of the m-th arm segment, m,k R m,k represents the k-th sub-joint coordinate system of the m-th arm segment to the k-th sub-joint of the m-th segment The attitude transformation matrix of the coordinate system, and has: 0 R m,0 = m,k R m,k =eye(3).

假设空间上任意三维点Po的三维坐标为(xo,yo,zo),则柔性臂第m臂段关节处任意相邻两点pm,j与pm,j+1的三维坐标分别表示为(xm,j,ym,j,zm,j)与(xm,j+1,ym,j+1,zm,j+1),则任意点Po到直线的欧拉距离表示为:Assuming that the three-dimensional coordinates of any three-dimensional point P o in space are (x o , y o , z o ), then the three-dimensional coordinates of any two adjacent points p m,j and p m,j+1 The coordinates are expressed as : (x m,j ,y m,j ,z m,j ) and (x m,j+1 ,y m,j+1 ,z m,j+1 ), then any point P o to the straight line The Euler distance of is expressed as:

遍历整个柔性臂的所有关节,取所有距离中离目标位置点最近的那个子关节作为目标距离搜索范围,即有:Traverse all joints of the entire flexible arm, and take the sub-joint closest to the target position point in all distances as the target distance search range, that is:

表示狭缝外臂段与障碍物的最小距离偏差,将Do对Θ求导,可以得到:make Indicates the minimum distance deviation between the outer arm section of the slit and the obstacle, and taking the derivative of D o to Θ, we can get:

并且有: 可以得出:and have: and It can be concluded that:

有上述推导过程可以得出避障约束的扩展雅可比矩阵Jd表示为:With the above derivation process, it can be obtained that the extended Jacobian matrix Jd of the obstacle avoidance constraint is expressed as:

结合式(17)、式(22)、式(27)可以得出基于臂型线约束的雅可比矩阵JLine和避障约束的扩展雅可比矩阵Jd得到广义扩展雅可比矩阵表示为:Combining Equation (17), Equation (22) and Equation (27), the Jacobian matrix J Line based on the arm type line constraint and the extended Jacobian matrix J d of the obstacle avoidance constraint can be obtained to obtain the generalized extended Jacobian matrix Expressed as:

根据轨迹规划思想,本实施例中柔性臂末端点的末端点和期望点(即目标位置点)的相对位姿偏差、狭缝内臂段的臂型线矢量和期望臂型线矢量的位置偏差和狭缝外臂段与障碍物的最小距离偏差之间的关系描述为:According to the idea of trajectory planning, the relative pose deviation between the end point of the flexible arm end point and the expected point (i.e. the target position point), the position deviation between the arm shape vector of the arm segment in the slit and the expected arm shape vector in this embodiment and the relationship between the minimum distance deviation between the outer arm segment of the slit and the obstacle is described as:

其中,Dδ表示期望的距离偏差,Do表示狭缝外臂段与障碍物的距离,ΔDo表示狭缝外臂段与障碍物的最小距离偏差,并且有以下关系:Kp=eye(10)、ΔDo=Do-Dδ Among them, D δ represents the expected distance deviation, D o represents the distance between the slit outer arm segment and the obstacle, ΔD o represents the minimum distance deviation between the slit outer arm segment and the obstacle, and has the following relationship: K p =eye( 10), ΔD o =D o -D δ ,

根据上式(29)进行逆运动学求解方法,计算得到相应的关节角速度,表示为:According to the above formula (29), the inverse kinematics solution method is used to calculate the corresponding joint angular velocity, which is expressed as:

上式(30)中,表示广义扩展雅可比矩阵的伪逆。In the above formula (30), Represents the generalized extended Jacobian matrix pseudo-inverse of .

相应的,根据式(30)得到下一时刻的关节控制量表示为:Correspondingly, according to formula (30), the joint control amount at the next moment can be expressed as:

上式中,Θd(t)表示t时刻的期望关节角,为t时刻的关节期望角速度,t时刻柔性臂的关节控制量即可由式(31)计算得到 In the above formula, Θ d (t) represents the desired joint angle at time t, is the expected angular velocity of the joint at time t, and the joint control amount of the flexible arm at time t can be calculated by formula (31)

本实施例中,如果当前时刻的时间t<tf,且没满足阈值判断条件,则继续进行轨迹规划;否则结束规划过程,tf表示预设最大运行时间,因为刚开始进行轨迹规划时误差很较大,只有多次迭代才会逐渐趋于收敛直到满足阈值判断条件,但是也不能无限时间的运行,因此设定预设最大运行时间,在该时间段内不断循环轨迹规划过程,直至达到目标位置点的容错范围。In this embodiment, if the current time t<t f and the threshold judgment condition is not satisfied, the trajectory planning will continue; otherwise, the planning process will end, and t f represents the preset maximum running time, because the error at the beginning of the trajectory planning It is very large, and only multiple iterations will gradually converge until the threshold judgment condition is met, but it cannot run for an infinite time, so the preset maximum running time is set, and the trajectory planning process is continuously cycled within this time period until it reaches The tolerance range of the target location point.

本实施例,通过广义扩展雅可比矩阵在柔性臂末端点的末端点和期望点(即目标位置点)的相对位姿偏差、狭缝内臂段的臂型线矢量和期望臂型线矢量的位置偏差和狭缝外臂段与障碍物的最小距离偏差之间进行同步,使得柔性机器人末端不但能完成期望位姿的跟踪,进入狭小圆柱形狭缝内的部分又不与狭缝壁发生碰撞,此外,还能实现运动过程中柔性机器人狭缝外部分的避障功能,实现“末端-臂型线-避障”的同步规划。In this embodiment, through the generalized extension of the Jacobian matrix at the end point of the flexible arm end point and the relative pose deviation of the expected point (i.e. the target position point), the arm shape vector of the arm segment in the slit and the expected arm shape vector The position deviation and the minimum distance deviation between the outer arm section of the slit and the obstacle are synchronized, so that the end of the flexible robot can not only complete the tracking of the expected pose, but also the part entering the narrow cylindrical slit does not collide with the slit wall , in addition, it can also realize the obstacle avoidance function of the outer part of the flexible robot slit during the movement process, and realize the synchronous planning of "end-arm shape line-obstacle avoidance".

通过式(31)得到柔性机器人的关节角数据,根据平面型狭缝受限空间作业任务,判断柔性机器人的相对偏差数据,并将其与设定的阈值作对比判断,驱动柔性机器人各关节的运动直至柔性机器人末端与目标位置的相对位姿偏差在第一预设阈值范围内,即抵达目标位置,轨迹规划任务结束。The joint angle data of the flexible robot is obtained by formula (31), and the relative deviation data of the flexible robot is judged according to the task of the planar slit-constrained space, and compared with the set threshold value, and the joint angle of each joint of the flexible robot is driven. Move until the relative pose deviation between the end of the flexible robot and the target position is within the first preset threshold range, that is, the target position is reached, and the trajectory planning task ends.

步骤S2中,进行阈值判断条件包括:In step S2, the threshold judgment conditions include:

1)柔性机器人的末端点到达目标区域内,指柔性机器人的末端点在目标区域内面投影位于目标区域内且相对位姿偏差在第一预设阈值范围内,第一预设阈值范围包括:相对位置偏差阈值和相对姿态偏差阈值;2)位置偏差小于位置偏差阈值;3)距离小于避障距离阈值。当同时满足上述条件时,即判断柔性机器人末端到达目标位置,规划过程结束。1) When the end point of the flexible robot arrives in the target area, it means that the surface projection of the end point of the flexible robot in the target area is located in the target area and the relative pose deviation is within the first preset threshold range. The first preset threshold range includes: relative The position deviation threshold and the relative attitude deviation threshold; 2) the position deviation is less than the position deviation threshold; 3) the distance is less than the obstacle avoidance distance threshold. When the above conditions are met at the same time, it is judged that the end of the flexible robot has reached the target position, and the planning process ends.

阈值判断过程表示为:其中,ΔPe表示相对位置偏差,δp1表示相对位置偏差阈值,表示相对姿态偏差阈值,δθ表示相对姿态偏差的阈值,δp2表示位置偏差阈值,δd表示避障距离阈值。The threshold judgment process is expressed as: Among them, ΔP e represents the relative position deviation, δ p1 represents the relative position deviation threshold, Indicates the threshold of relative attitude deviation, δ θ indicates the threshold of relative attitude deviation, δ p2 indicates the threshold of position deviation, and δ d indicates the threshold of obstacle avoidance distance.

本实施例中,如果当前时刻的时间t<tf,且没满足阈值判断条件,则继续进行轨迹规划;否则结束规划过程,tf表示预设最大运行时间,因为刚开始进行轨迹规划时误差很较大,只有多次迭代才会逐渐趋于收敛直到满足阈值判断条件,但是也不能无限时间的运行,因此设定预设最大运行时间,在该时间段内不断循环轨迹规划过程,直至达到目标位置点的容错范围。In this embodiment, if the current time t<t f and the threshold judgment condition is not satisfied, the trajectory planning will continue; otherwise, the planning process will end, and t f represents the preset maximum running time, because the error at the beginning of the trajectory planning It is very large, and only multiple iterations will gradually converge until the threshold judgment condition is met, but it cannot run for an infinite time, so the preset maximum running time is set, and the trajectory planning process is continuously cycled within this time period until it reaches The tolerance range of the target location point.

本实施例通过构建空间映射模型并获取柔性机器人相对偏差数据,根据获取的相对偏差数据与阈值判断条件,判断末端点是否到达目标区域的目标位置点,当满足阈值判断条件,则认为末端点到达目标位置点,否则,根据相对偏差数据获取柔性机器人下一时刻速的速度数据并计算柔性机器人的关节期望角速度,根据关节期望角速度获取下一时刻的关节控制量,来驱动柔性机器人各关节运动到达目标位置点。In this embodiment, by constructing a space mapping model and obtaining the relative deviation data of the flexible robot, according to the obtained relative deviation data and the threshold judgment condition, it is judged whether the end point has reached the target position point in the target area. When the threshold judgment condition is satisfied, the end point is considered to have arrived. The target position point, otherwise, according to the relative deviation data, obtain the velocity data of the next moment of the flexible robot and calculate the expected angular velocity of the joints of the flexible robot, and obtain the joint control amount at the next moment according to the expected angular velocity of the joints, to drive the joints of the flexible robot to move to target location point.

实施例二:Embodiment two:

本实施例提供一种臂型线约束柔性机器人轨迹规划装置,用于执行如实施例一所述的方法,如图5所示,为本实施例的臂型线约束柔性机器人轨迹规划装置的结构框图,包括:This embodiment provides a trajectory planning device for a flexible robot constrained by an arm shape line, which is used to execute the method described in Embodiment 1. As shown in FIG. 5 , it is the structure of the trajectory planning device for a flexible robot constrained by an arm shape line in this embodiment. Block diagram, including:

获取偏差数据模块10:用于构建空间映射模型并获取柔性机器人相对偏差数据,相对偏差数据包括:柔性机器人末端点和期望点的相对位姿偏差、狭缝内臂段的臂型线矢量和期望臂型线矢量的位置偏差、狭缝外臂段与障碍物的最小距离偏差;Obtaining deviation data module 10: used to construct a space mapping model and obtain relative deviation data of the flexible robot, the relative deviation data includes: the relative pose deviation between the end point and the expected point of the flexible robot, the arm shape vector and the expected position of the arm segment in the slit The position deviation of the arm shape line vector, the minimum distance deviation between the outer arm section of the slit and the obstacle;

阈值判断模块20:用于根据相对偏差数据与阈值判断条件,判断末端点是否到达目标区域的目标位置点;Threshold judgment module 20: used for judging whether the end point reaches the target position point of the target area according to the relative deviation data and the threshold judgment condition;

阈值判断结果执行模块30:用于当满足阈值判断条件,则认为末端点到达目标位置点,否则,根据相对偏差数据获取柔性机器人下一时刻速的速度数据,并根据速度数据计算柔性机器人的关节期望角速度,根据关节期望角速度获取下一时刻的关节控制量,来驱动柔性机器人各关节运动到达目标位置点,下一时刻速的速度数据包括:末端点的线速度与角速度、所述狭缝内臂段的臂型线速度、狭缝外臂段避障的避障瞬时速度。Threshold judgment result execution module 30: used to consider that the end point has reached the target position point when the threshold judgment condition is satisfied, otherwise, obtain the speed data of the next moment of the flexible robot according to the relative deviation data, and calculate the joint of the flexible robot according to the speed data Expected angular velocity, according to the expected angular velocity of the joint, obtain the joint control amount at the next moment to drive the joints of the flexible robot to reach the target position point. The speed data at the next moment includes: the linear velocity and angular velocity of the end point, the The linear speed of the arm section of the arm section, and the instantaneous speed of obstacle avoidance of the arm section outside the slit.

另外,本发明还提供一种臂型线约束柔性机器人轨迹规划设备,包括:In addition, the present invention also provides a trajectory planning device for an arm-shaped line-constrained flexible robot, including:

至少一个处理器,以及与所述至少一个处理器通信连接的存储器;at least one processor, and a memory communicatively coupled to the at least one processor;

其中,所述处理器通过调用所述存储器中存储的计算机程序,用于执行如实施例一所述的方法。Wherein, the processor is used to execute the method described in Embodiment 1 by invoking the computer program stored in the memory.

另外,本发明还提供一种计算机可读存储介质,计算机可读存储介质存储有计算机可执行指令,其中计算机可执行指令用于使计算机执行如实施例一所述的方法。In addition, the present invention also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, where the computer-executable instructions are used to make a computer execute the method as described in Embodiment 1.

本发明根据圆柱形狭缝以及柔性机器人关节空间到末端点笛卡尔空间的映射关系进行统一建模,实现末端点的轨迹规划,并且结合狭缝内臂段和狭缝外臂段的位姿特征,实现柔性机器人进入狭缝内的部分不与狭缝壁发生碰撞以及狭缝外部分实现避障功能,相比于现有技术,提高了臂型线约束柔性机器人轨迹规划效率并兼顾控制精度。可广泛应用于臂型线约束柔性机器人轨迹规划领域。The present invention performs unified modeling according to the mapping relationship between the cylindrical slit and the joint space of the flexible robot to the Cartesian space of the end point, realizes the trajectory planning of the end point, and combines the pose characteristics of the slit inner arm segment and the slit outer arm segment , to realize that the part of the flexible robot entering the slit does not collide with the slit wall and the part outside the slit realizes the obstacle avoidance function. Compared with the prior art, the trajectory planning efficiency of the arm-shaped line-constrained flexible robot is improved while taking into account the control accuracy. The invention can be widely used in the field of trajectory planning of flexible robots constrained by arm type lines.

以上各实施例仅用以说明本发明的技术方案,而非对其限制,尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围,其均应涵盖在本发明的权利要求和说明书的范围当中。The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still implement the foregoing embodiments. Modifications to the technical solutions described in the examples, or equivalent replacement of some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention, and they shall cover Within the scope of the claims and description of the present invention.

Claims (10)

1. A trajectory planning method for an arm-type line constrained flexible robot is suitable for the arm-type line constrained flexible robot, a target area is a cylindrical slit, the part of the flexible robot entering the cylindrical slit is a slit inner arm section, correspondingly, the part outside the cylindrical slit is a slit outer arm section, and the trajectory planning method is characterized by comprising the following steps:
Constructing a spatial mapping model and acquiring relative deviation data of the flexible robot, wherein the relative deviation data comprises: the relative pose deviation of the tail end point and the expected point of the flexible robot, the position deviation of an arm line vector of the slit inner arm section and an expected arm line vector, and the minimum distance deviation of the slit outer arm section and the obstacle;
Judging whether the tail end point reaches a target position point of the target area or not according to the relative deviation data and a threshold judgment condition;
when a threshold judgment condition is met, the terminal point is considered to reach the target position point;
otherwise, acquiring speed data of the flexible robot at the next moment according to the relative deviation data, calculating expected angular speed of joints of the flexible robot according to the speed data, and acquiring joint control quantity at the next moment according to the expected angular speed of the joints to drive each joint of the flexible robot to move to reach a target position point;
the speed data of the next time instant includes: the linear velocity and the angular velocity of the tail end point, the arm type linear velocity of the slit inner arm section and the obstacle avoidance instantaneous velocity of the slit outer arm section for obstacle avoidance.
2. the trajectory planning method for the arm-type line constrained flexible robot according to claim 1, characterized in that: the threshold judgment condition includes: the tail end point of the flexible robot reaches the target area, the relative pose deviation is within a first preset threshold range, the position deviation is smaller than a position deviation threshold, and the minimum distance deviation between the slit outer arm section and the obstacle is smaller than an obstacle avoidance distance threshold.
3. The trajectory planning method for the arm-type line constrained flexible robot according to claim 1, characterized in that: the specific formula for calculating the expected angular velocity of the flexible robot joint is as follows:
wherein,Representing a desired angular velocity of a joint of the flexible robot,a pseudo-inverse of a generalized extended jacobian matrix between a jacobian matrix representing an arm-type line constraint and an extended jacobian matrix representing an obstacle avoidance constraint,Representing the generalized velocity of the end point in an end coordinate system,The linear velocity of the arm type is indicated,And representing the obstacle avoidance instantaneous speed.
4. The trajectory planning method for the arm-type line constrained flexible robot according to claim 3, characterized in that: the formula for calculating the joint control amount at the next moment is specifically as follows:
wherein, thetad(t) represents the desired joint angle at time t,Represents the desired angular velocity of the joint at time t, and Δ t represents the time interval.
5. the trajectory planning method for the arm-type line constrained flexible robot according to claim 3, characterized in that: and deriving the joint angle by the position deviation to obtain a Jacobian matrix constrained by the arm profile.
6. The trajectory planning method for the arm-type line constrained flexible robot according to claim 3, characterized in that: and deriving a joint angle by the minimum distance deviation between the slit outer arm section and the obstacle to obtain the expanded Jacobian matrix of obstacle avoidance constraint.
7. The trajectory planning method for the arm-type line-constrained flexible robot according to any one of claims 1 to 6, characterized in that: the arm type of the inner arm section of the slit is a straight line, and the line vector direction of the straight line is parallel to the axis of the slit.
8. An arm-type line constraint flexible robot trajectory planning device, comprising:
and a relative deviation data acquisition module: the flexible robot relative deviation data acquisition unit is used for constructing a spatial mapping model and acquiring the relative deviation data of the flexible robot, wherein the relative deviation data comprises: the relative pose deviation of the tail end point and the expected point of the flexible robot, the position deviation of an arm line vector of the slit inner arm section and an expected arm line vector, and the minimum distance deviation of the slit outer arm section and the obstacle;
a threshold value judging module: the terminal point is used for judging whether the terminal point reaches a target position point of a target area or not according to the relative deviation data and a threshold judgment condition;
A threshold judgment result execution module: and when a threshold judgment condition is met, considering that the terminal point reaches a target position point, otherwise, acquiring speed data of the next moment speed of the flexible robot according to the relative deviation data, calculating an expected angular speed of a joint of the flexible robot according to the speed data, and acquiring a joint control quantity of the next moment according to the expected angular speed of the joint to drive each joint of the flexible robot to move to reach the target position point, wherein the speed data of the next moment speed comprises: the linear velocity and the angular velocity of the tail end point, the arm type linear velocity of the slit inner arm section and the obstacle avoidance instantaneous velocity of the slit outer arm section for obstacle avoidance.
9. An arm-type line constraint flexible robot trajectory planning device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the processor is operable to perform the method of any one of claims 1 to 7 by invoking a computer program stored in the memory.
10. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 7.
CN201910733184.5A 2019-08-09 2019-08-09 Method and device for trajectory planning of flexible robot with arm shape line constraint Active CN110561419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910733184.5A CN110561419B (en) 2019-08-09 2019-08-09 Method and device for trajectory planning of flexible robot with arm shape line constraint

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910733184.5A CN110561419B (en) 2019-08-09 2019-08-09 Method and device for trajectory planning of flexible robot with arm shape line constraint

Publications (2)

Publication Number Publication Date
CN110561419A true CN110561419A (en) 2019-12-13
CN110561419B CN110561419B (en) 2021-01-12

Family

ID=68774907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910733184.5A Active CN110561419B (en) 2019-08-09 2019-08-09 Method and device for trajectory planning of flexible robot with arm shape line constraint

Country Status (1)

Country Link
CN (1) CN110561419B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111300420A (en) * 2020-03-16 2020-06-19 大连理工大学 Method for solving minimum path of joint space corner of mechanical arm
CN112862812A (en) * 2021-03-10 2021-05-28 中山大学 Method, system and device for optimizing operation space trajectory of flexible robot
CN112936287A (en) * 2021-03-19 2021-06-11 中山大学 Flexible robot control method and device based on dynamics iterative learning
WO2022199610A1 (en) * 2021-03-23 2022-09-29 中联重科股份有限公司 Method and apparatus for compensating boom deflection, and method and apparatus for controlling boom

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102079093A (en) * 2010-12-27 2011-06-01 上海大学 Novel flexible body feeding method
CN103717147A (en) * 2011-05-27 2014-04-09 伊西康内外科公司 Robotically-controlled endoscopic accessory channel
CN106956260A (en) * 2017-03-31 2017-07-18 浙江大学 A kind of inverse kinematics method of multi-joint mechanical arm flat serpentine track motion
US9763683B2 (en) * 2001-08-28 2017-09-19 Bonutti Skeletal Innovations Llc Method for performing surgical procedures using optical cutting guides
US20180333855A1 (en) * 2017-05-19 2018-11-22 Stc.Unm System and methods for multiple-place swarm foraging with dynamic depots
CN109303610A (en) * 2017-07-27 2019-02-05 赛诺微医疗科技(北京)有限公司 Surgical instrument clamping device, end effector and the surgery mechanical arm using it
CN109991847A (en) * 2019-01-11 2019-07-09 天津理工大学 An Approximate Time Optimal Trajectory Planning Method for Flexible Multibody Robots

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9763683B2 (en) * 2001-08-28 2017-09-19 Bonutti Skeletal Innovations Llc Method for performing surgical procedures using optical cutting guides
CN102079093A (en) * 2010-12-27 2011-06-01 上海大学 Novel flexible body feeding method
CN103717147A (en) * 2011-05-27 2014-04-09 伊西康内外科公司 Robotically-controlled endoscopic accessory channel
CN106956260A (en) * 2017-03-31 2017-07-18 浙江大学 A kind of inverse kinematics method of multi-joint mechanical arm flat serpentine track motion
US20180333855A1 (en) * 2017-05-19 2018-11-22 Stc.Unm System and methods for multiple-place swarm foraging with dynamic depots
CN109303610A (en) * 2017-07-27 2019-02-05 赛诺微医疗科技(北京)有限公司 Surgical instrument clamping device, end effector and the surgery mechanical arm using it
CN109991847A (en) * 2019-01-11 2019-07-09 天津理工大学 An Approximate Time Optimal Trajectory Planning Method for Flexible Multibody Robots

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111300420A (en) * 2020-03-16 2020-06-19 大连理工大学 Method for solving minimum path of joint space corner of mechanical arm
CN111300420B (en) * 2020-03-16 2021-08-10 大连理工大学 Method for solving minimum path of joint space corner of mechanical arm
CN112862812A (en) * 2021-03-10 2021-05-28 中山大学 Method, system and device for optimizing operation space trajectory of flexible robot
CN112862812B (en) * 2021-03-10 2023-04-07 中山大学 Method, system and device for optimizing operation space trajectory of flexible robot
CN112936287A (en) * 2021-03-19 2021-06-11 中山大学 Flexible robot control method and device based on dynamics iterative learning
WO2022199610A1 (en) * 2021-03-23 2022-09-29 中联重科股份有限公司 Method and apparatus for compensating boom deflection, and method and apparatus for controlling boom

Also Published As

Publication number Publication date
CN110561419B (en) 2021-01-12

Similar Documents

Publication Publication Date Title
US11845186B2 (en) Inverse kinematics solving method for redundant robot and redundant robot and computer readable storage medium using the same
CN110561419A (en) arm-shaped line constraint flexible robot track planning method and device
CN106503373A (en) The method for planning track that a kind of Dual-robot coordination based on B-spline curves is assembled
CN113146600B (en) Flexible robot trajectory planning method and device based on kinematics iterative learning control
CN109976347B (en) Visual servo path planning method based on rapid expansion random tree and potential field method
CN110561420B (en) Method and device for trajectory planning of flexible robot with arm profile constraint
CN109702751A (en) A position-level inverse solution method for a seven-degree-of-freedom serial manipulator
CN109978272B (en) A path planning system and method based on multiple omnidirectional mobile robots
CN105183009A (en) Trajectory control method for redundant mechanical arm
CN114888812B (en) Mobile mechanical arm station planning method based on rigidity performance optimization
Gochev et al. Motion planning for robotic manipulators with independent wrist joints
Ji et al. E-RRT*: Path planning for hyper-redundant manipulators
CN108356820B (en) An inverse kinematics solution method for manual manipulation of a multi-joint manipulator
CN108326854B (en) Inverse kinematics solving method for multi-joint mechanical arm space function trajectory motion
Su et al. Pythagorean-Hodograph curves-based trajectory planning for pick-and-place operation of Delta robot with prescribed pick and place heights
CN115533920A (en) A collaborative planning method and system for solving the inverse kinematics of a rope-driven manipulator, and a computer storage medium
CN113721626A (en) Robot track planning method for compensating accumulated errors by brake disc
Balkcom et al. The Dubins car and other arm-like mobile robots
Siméon Motion planning for a non-holonomic mobile robot on 3-dimensional terrains
CN114518709B (en) A method, device and medium for solving frame angle instructions of a full-attitude four-axis turntable
CN116728412A (en) A spatial double arc planning method and system for coaxial rope-driven robots, and computer storage media
CN115674195A (en) Online Arm Shape Planning Method for Flexible Manipulator
De la Rosa et al. Robust path planning in the plane
Kuang et al. Space Trajectory Planning of Electric Robot Based on Unscented Kalman Filter.
Liu et al. Task planning of manipulator based on dynamic space constraint and torque sensor

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
GR01 Patent grant
GR01 Patent grant