WO2023029901A1 - Robot collision prediction method, computer storage medium, and electronic device - Google Patents

Robot collision prediction method, computer storage medium, and electronic device Download PDF

Info

Publication number
WO2023029901A1
WO2023029901A1 PCT/CN2022/111071 CN2022111071W WO2023029901A1 WO 2023029901 A1 WO2023029901 A1 WO 2023029901A1 CN 2022111071 W CN2022111071 W CN 2022111071W WO 2023029901 A1 WO2023029901 A1 WO 2023029901A1
Authority
WO
WIPO (PCT)
Prior art keywords
robot
bounding boxes
motion
cylindrical bounding
cylindrical
Prior art date
Application number
PCT/CN2022/111071
Other languages
French (fr)
Chinese (zh)
Inventor
李明洋
戚祯祥
刘博峰
邵威
Original Assignee
节卡机器人股份有限公司
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 节卡机器人股份有限公司 filed Critical 节卡机器人股份有限公司
Publication of WO2023029901A1 publication Critical patent/WO2023029901A1/en

Links

Images

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/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
    • B25J9/1666Avoiding collision or forbidden zones

Abstract

A robot collision prediction method, a computer storage medium, and an electronic device. The robot collision prediction method comprises: monitoring a movement state of a robot; according to the movement state, predicting a future movement trajectory of the robot; and according to a size parameter of the robot, determining whether a collision with the robot will occur in the future movement trajectory.

Description

机器人碰撞预测方法、计算机存储介质及电子设备Robot collision prediction method, computer storage medium and electronic equipment
本申请要求在2021年09月01日提交中国专利局、申请号为202111019083.5的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application with application number 202111019083.5 filed with the China Patent Office on September 1, 2021, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及机器人技术领域,例如涉及一种机器人碰撞预测方法、计算机存储介质及电子设备。The present application relates to the technical field of robots, for example, to a robot collision prediction method, computer storage media and electronic equipment.
背景技术Background technique
对机器人拖动示教、通过软件开发工具包(Software Development Kit,SDK)控制机器人、基于视觉等的机器人自适应移动过程中,可能会发生机器人自身的碰撞。In the process of dragging and teaching the robot, controlling the robot through the software development kit (Software Development Kit, SDK), and adaptively moving the robot based on vision, the collision of the robot itself may occur.
出于对机器人本体和用户使用机器人的安全考虑,需要在机器人本体与本体发生碰撞时,使机器人停下来而不继续撞击本体,这就需要机器人能有自我碰撞检测的功能。For the safety of the robot body and the user's use of the robot, it is necessary to stop the robot and not continue to hit the body when the robot body collides with the body, which requires the robot to have the function of self-collision detection.
相关技术对于机器人的碰撞检测都依赖于传感器或电机。例如几种常用的碰撞检测方法:Related technologies rely on sensors or motors for collision detection of robots. For example, several commonly used collision detection methods:
(1)使用腕力传感器来检测碰撞:能够准确地检测到机器人末端的碰撞力,但不能检测到机器人其他部分的碰撞,检测范围有局限性,通常用于磨削力、装配力等手部碰撞力的检测。(1) Use the wrist force sensor to detect collision: it can accurately detect the collision force at the end of the robot, but cannot detect the collision of other parts of the robot. The detection range is limited, and it is usually used for hand collisions such as grinding force and assembly force. force detection.
(2)用电子皮肤来检测碰撞:覆盖整个机器人感知的电子皮肤,可以检测机器人的任意部位的碰撞。但缺点是布线复杂,抗干扰能力差。(2) Use electronic skin to detect collisions: the electronic skin covering the entire robot perception can detect collisions at any part of the robot. But the disadvantage is that the wiring is complicated and the anti-interference ability is poor.
(3)通过电机的电流或反馈转矩来检测碰撞:这是一种广泛应用于多种工业机器人的碰撞方案,不需要使用其他传感器,其优点是检测范围可以覆盖机器人的整个表面,但缺点是由于关节处摩擦力问题可能使检测不准确。(3) Collision detection by motor current or feedback torque: This is a collision scheme widely used in various industrial robots without using other sensors. Its advantage is that the detection range can cover the entire surface of the robot, but its disadvantages It is due to the friction problem at the joint that may make the detection inaccurate.
以上方法都是在机器人已经发生碰撞后才能检测出碰撞信号。在本行业还不存在机器人自身碰撞预警和提示相关的功能,由于机器人收到碰撞信号后才能及时停止或做出规避动作,不能完全阻止碰撞事件的发生,不可避免会造成对人员的伤害、机器人本体的伤害或对其他物品的伤害。In the above methods, the collision signal can only be detected after the robot has collided. In this industry, there is no function related to the robot’s own collision warning and prompting. Since the robot can only stop or take evasive actions in time after receiving the collision signal, it cannot completely prevent the occurrence of the collision event, which will inevitably cause harm to personnel. Physical damage or damage to other objects.
发明内容Contents of the invention
本申请提供一种机器人碰撞预测方法、计算机存储介质及电子设备,用以解决相关技术由于机器人收到碰撞信号后才能及时停止或做出规避动作,不能完全阻止碰撞事件的发生,不可避免会造成对人员的伤害、机器人本体的伤害或对其他物品的伤害的问题。This application provides a robot collision prediction method, computer storage media and electronic equipment to solve related technologies. Because the robot can only stop in time or make evasive actions after receiving the collision signal, it cannot completely prevent the occurrence of collision events, which will inevitably cause The problem of damage to people, damage to the robot itself, or damage to other objects.
本申请提供的一种机器人碰撞预测方法,包括:A robot collision prediction method provided by the application includes:
监测机器人的运动状态;Monitor the movement status of the robot;
根据运动状态,实时预测机器人的未来运动轨迹;According to the motion state, predict the future trajectory of the robot in real time;
根据机器人的尺寸参数,判断机器人在未来运动轨迹中是否发生碰撞。According to the size parameters of the robot, it is judged whether the robot will collide in the future trajectory.
在一些实施方式中,根据机器人的尺寸参数,判断机器人在未来运动轨迹中是否发生碰撞,包括:In some implementations, according to the size parameters of the robot, it is judged whether the robot collides in the future trajectory, including:
将机器人的机械模型简化为多个圆柱体包围盒,选取多个圆柱体包围盒中的两个圆柱体包围盒;Simplify the mechanical model of the robot into multiple cylindrical bounding boxes, and select two cylindrical bounding boxes in the multiple cylindrical bounding boxes;
根据两个圆柱体包围盒的尺寸参数,判断两个圆柱体包围盒在未来运动轨迹中是否发生碰撞。According to the size parameters of the two cylindrical bounding boxes, it is judged whether the two cylindrical bounding boxes collide in the future motion trajectory.
上述技术方案中,将机器人机械模型简化为多个圆柱体包围盒,每次以两个圆柱体包围盒为目标进行判断。在机器人具有N(N>2)个圆柱体包围盒时,需要进行自身是否发生碰撞的判断一次或多次,关于判断次数的计算,首先从N个圆柱体包围盒中每次选取任意两个不分次序的不同圆柱体包围盒,一共N×(N-1)/2次,再减去不会发生碰撞的相邻圆柱体包围盒的情况(即N-1次),最后可通过人工筛选简化判断次数。In the above technical solution, the mechanical model of the robot is simplified into a plurality of cylindrical bounding boxes, and two cylindrical bounding boxes are used as targets for judgment each time. When the robot has N (N>2) cylindrical bounding boxes, it needs to judge whether it collides with itself one or more times. For the calculation of the number of judgments, first select any two from the N cylindrical bounding boxes each time. Different cylindrical bounding boxes in no order, a total of N×(N-1)/2 times, and then subtract the adjacent cylindrical bounding boxes that will not collide (ie N-1 times), and finally can be manually Screening simplifies the number of judgments.
在一些实施方式中,判断两个圆柱体包围盒在未来运动轨迹中是否发生碰撞,包括:In some implementations, judging whether two cylindrical bounding boxes collide in the future trajectory includes:
若两个圆柱体包围盒的两个几何中心点之间的距离低于预设阈值,则确定机器人发生碰撞。If the distance between the two geometric center points of the two cylindrical bounding boxes is lower than a preset threshold, it is determined that the robot collides.
在一些实施方式中,判断两个圆柱体包围盒在未来运动轨迹中是否发生碰撞,还包括:In some implementation manners, judging whether two cylindrical bounding boxes collide in the future trajectory also includes:
若两个中心点的距离大于或等于预设阈值,且两个圆柱体包围盒的两个端面圆相交,则确定机器人发生碰撞。If the distance between the two center points is greater than or equal to a preset threshold and the two end circles of the two cylindrical bounding boxes intersect, it is determined that the robot collides.
在一些实施方式中,判断两个圆柱体包围盒在未来运动轨迹中是否发生碰撞,还包括:In some implementation manners, judging whether two cylindrical bounding boxes collide in the future trajectory also includes:
若两个中心点的距离大于或等于预设阈值,两个圆柱体包围盒的两个端面圆不相交,两个圆柱体包围盒的两条中轴线共面且垂直,且两条中轴线相交, 则确定机器人发生碰撞。If the distance between the two center points is greater than or equal to the preset threshold, the two end circles of the two cylindrical bounding boxes do not intersect, the two central axes of the two cylindrical bounding boxes are coplanar and perpendicular, and the two central axes intersect , then it is determined that the robot has collided.
在一些实施方式中,判断两个圆柱体包围盒在未来运动轨迹中是否发生碰撞,还包括:In some implementation manners, judging whether two cylindrical bounding boxes collide in the future trajectory also includes:
若两个中心点的距离大于或等于预设阈值,两个圆柱体包围盒的两个端面圆不相交,两个圆柱体包围盒的两条中轴线平行,两条中轴线的轴距小于两圆柱体半径之和,且两条中轴线在同一直线上的投影存在重合部分,则确定机器人发生碰撞。If the distance between the two center points is greater than or equal to the preset threshold, the two end circles of the two cylindrical bounding boxes do not intersect, the two central axes of the two cylindrical bounding boxes are parallel, and the axis distance between the two central axes is less than two The sum of the radii of the cylinders, and the projection of the two central axes on the same straight line overlaps, then it is determined that the robot has collided.
在一些实施方式中,判断两个圆柱体包围盒在未来运动轨迹中是否发生碰撞,还包括:In some implementation manners, judging whether two cylindrical bounding boxes collide in the future trajectory also includes:
若两个中心点的距离大于或等于预设阈值,两个圆柱体包围盒的端面圆不相交,两个圆柱体包围盒的两条中轴线非平行且非共面,两个圆柱体包围盒分别对应的两条母线相交或任一圆柱体包围盒的母线与另一圆柱体包围盒的中轴线的公垂线长度值小于所述另一圆柱体包围盒的半径,则确定机器人发生碰撞,其中,所述母线为一圆柱体包围盒上最靠近另一圆柱体包围盒的一条母线。If the distance between the two center points is greater than or equal to the preset threshold, the end circles of the two cylindrical bounding boxes do not intersect, the two central axes of the two cylindrical bounding boxes are non-parallel and non-coplanar, and the two cylindrical bounding boxes If the corresponding two bus lines intersect or the length of the common perpendicular between the bus line of any cylindrical bounding box and the central axis of another cylindrical bounding box is less than the radius of the other cylindrical bounding box, it is determined that the robot has collided. Wherein, the generatrix is a generatrix on a cylindrical bounding box closest to another cylindrical bounding box.
在一些实施方式中,在机器人处于第一运动模式的情况下,控制机器人的关节转动;In some embodiments, when the robot is in the first motion mode, controlling the joint rotation of the robot;
运动状态包括当前关节角度和关节的角速度;The motion state includes the current joint angle and the angular velocity of the joint;
根据运动状态,预测机器人的未来运动轨迹,包括:According to the motion state, predict the future trajectory of the robot, including:
根据当前关节角度和关节的角速度,预测未来运动轨迹。According to the current joint angle and the angular velocity of the joint, predict the future trajectory.
上述技术方案中,第一运动模式是一种通过控制机器人关节转动,包括关节的转动速度和顺时针或逆时针方向,来实现机器人的运动。在第一运动模式下,根据当前关节角度位置+单一关节的速度×(时间间隔×个数),可得到多个时间间隔后机器人关节角度位置,对应为多个未来时刻下圆柱体的空间位置,当时间间隔足够小时,可得到机器人的未来运动轨迹。In the above technical solution, the first movement mode is to realize the movement of the robot by controlling the rotation of the joints of the robot, including the rotation speed of the joints and the clockwise or counterclockwise direction. In the first motion mode, according to the current joint angular position + the speed of a single joint × (time interval × number), the joint angular position of the robot after multiple time intervals can be obtained, which corresponds to the spatial position of the cylinder at multiple future moments , when the time interval is small enough, the future trajectory of the robot can be obtained.
在一些实施方式中,在机器人处于第二运动模式的情况下,直接控制机器人的末端点移动;In some embodiments, directly controlling the movement of the end point of the robot while the robot is in the second motion mode;
运动状态包括当前末端点的位姿和末端点的运动速度;The motion state includes the pose of the current end point and the motion speed of the end point;
根据运动状态,预测机器人的未来运动轨迹,包括:According to the motion state, predict the future trajectory of the robot, including:
根据当前末端点的位姿和末端点的运动速度,预测末端点的运动轨迹;Predict the trajectory of the end point according to the pose of the current end point and the movement speed of the end point;
根据末端点的运动轨迹,逆解出机器人的关节角度变化,根据所述机器人的关节角度变化获得机器人的未来运动轨迹。According to the movement trajectory of the end point, the change of the joint angle of the robot is inversely solved, and the future movement trajectory of the robot is obtained according to the change of the joint angle of the robot.
上述技术方案中,第二运动模式是一种通过控制机器人末端点在笛卡尔空间的运动,来实现机器人的运动。在第二运动模式下,根据当前末端的位姿+末端点的运动速度×(时间间隔×个数),可得到多个时间间隔的末端位姿,将其逆解后得到多个时间下的圆柱体空间位置,当时间间隔足够小时,可得到机器人的未来运动轨迹。In the above technical solution, the second movement mode is to realize the movement of the robot by controlling the movement of the end point of the robot in Cartesian space. In the second motion mode, according to the current terminal pose + the movement speed of the terminal point × (time interval × number), the terminal poses of multiple time intervals can be obtained, and the inverse solutions can be obtained at multiple times The spatial position of the cylinder, when the time interval is small enough, the future trajectory of the robot can be obtained.
在一些实施方式中,在机器人处于第三运动模式的情况下,控制机器人按照已完成的作业编程进行运动,并在图像中同步显示机器人的运动状态;In some embodiments, when the robot is in the third motion mode, the robot is controlled to move according to the completed job programming, and the motion state of the robot is displayed synchronously in the image;
根据运动状态,预测机器人的未来运动轨迹,包括:According to the motion state, predict the future trajectory of the robot, including:
根据呈现在图像中的机器人的运动状态,通过插补算法,预测未来运动轨迹。According to the motion state of the robot presented in the image, the future trajectory is predicted through an interpolation algorithm.
上述技术方案中,第三运动模式是利用对机器人进行作业编程,使机器人按照作业编程进行运动,并且,将机器人的运动过程同步到图像中进行显示,针对图像中的机器人,通过插补算法,得到机器人的未来运动轨迹。In the above technical solution, the third motion mode is to use the job programming of the robot to make the robot move according to the job programming, and to synchronize the motion process of the robot to the image for display. For the robot in the image, through the interpolation algorithm, Get the future trajectory of the robot.
本申请提供的一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序指令,该计算机程序指令被处理器读取并运行时,执行如以上所项所述的机器人碰撞预测方法。A computer-readable storage medium provided by the present application, computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are read and executed by a processor, the robot collision prediction method as described above is executed .
本申请提供的一种电子设备,包括存储器以及处理器,该存储器中存储有计算机程序指令,该计算机程序指令被所述处理器读取并运行时,执行如以上所项所述的机器人碰撞预测方法。An electronic device provided by the present application includes a memory and a processor, and computer program instructions are stored in the memory. When the computer program instructions are read and run by the processor, the robot collision prediction described in the above items is performed. method.
附图说明Description of drawings
图1为本申请实施例提供的一种机器人碰撞预测方法的流程图;FIG. 1 is a flow chart of a robot collision prediction method provided in an embodiment of the present application;
图2为本申请实施例提供的一种机器人立体图;Fig. 2 is a perspective view of a robot provided by the embodiment of the present application;
图3为本申请实施例提供的一种机器人俯视图;Fig. 3 is a top view of a robot provided in the embodiment of the present application;
图4为本申请实施例提供的一种机器人碰撞判断流程图;Fig. 4 is a flow chart of a robot collision judgment provided by the embodiment of the present application;
图5为本申请实施例提供的一种电子设备的结构图;FIG. 5 is a structural diagram of an electronic device provided in an embodiment of the present application;
图6为本申请实施例提供的一种母线的示意图。Fig. 6 is a schematic diagram of a busbar provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
对于机器人的碰撞检测都依赖于传感器或电机,并且,机器人收到碰撞信 号后才能及时停止或做出规避动作。本申请实施例提供的一种机器人碰撞预测方法、计算机存储介质及电子设备,提供了机器人碰撞的预警机制,不依赖传感器和电机,提取反馈碰撞信号,避免碰撞发生。The collision detection of the robot all depends on the sensor or the motor, and the robot can stop in time or take an evasive action after receiving the collision signal. A robot collision prediction method, computer storage medium, and electronic equipment provided in the embodiments of the present application provide an early warning mechanism for robot collisions, and extract feedback collision signals without relying on sensors and motors to avoid collisions.
请参照图1,图1为本申请实施例提供的一种机器人碰撞预测方法的流程图,包括:Please refer to Fig. 1, Fig. 1 is a flow chart of a robot collision prediction method provided by the embodiment of the present application, including:
101、监测机器人的运动状态。101. Monitor the movement state of the robot.
本申请实施例的机器人碰撞预测方法适用于包括但不限于以下三种机器人的运动模式中:The robot collision prediction method of the embodiment of the present application is applicable to the movement modes of the robots including but not limited to the following three types:
在第一运动模式中,控制器通过控制机器人的多个关节的转动,包括多个关节的转动速度和顺时针或逆时针方向转动,来实现机器人整体的运动。In the first motion mode, the controller realizes the overall motion of the robot by controlling the rotation of multiple joints of the robot, including the rotation speed and clockwise or counterclockwise rotation of the multiple joints.
在第二运动模式中,控制器通过控制机器人末端点在笛卡尔空间的运动,来实现机器人的运动。其中,机器人末端点的运动轨迹确定后,通过最优解确定机器人唯一的运动过程,即机器人末端点的运动轨迹与机器人的运动过程一一对应,可通过机器人末端点的运动轨迹逆解出机器人的运动过程。In the second movement mode, the controller realizes the movement of the robot by controlling the movement of the end point of the robot in Cartesian space. Among them, after the motion trajectory of the robot end point is determined, the unique motion process of the robot is determined through the optimal solution, that is, the motion trajectory of the robot end point corresponds to the motion process of the robot one by one, and the robot can be inversely solved by the motion trajectory of the robot end point. movement process.
在第三运动模式中,控制器通过已完成的作业编程,使机器人按照作业编程进行运动,并且,将机器人的运动过程同步到图像中进行显示。In the third motion mode, the controller makes the robot move according to the job programming through the completed job programming, and synchronously displays the motion process of the robot on the image.
102、根据运动状态,实时预测机器人的未来运动轨迹。102. According to the motion state, predict the future motion trajectory of the robot in real time.
对应于机器人的三种运动模式,分别阐述如下:Corresponding to the three motion modes of the robot, they are described as follows:
机器人在第一运动模式下,控制机器人的关节转动;运动状态包括当前关节角度和关节的角速度;根据运动状态,预测机器人的未来运动轨迹,包括:根据当前关节角度和关节的角速度,预测未来运动轨迹。在第一运动模式下,根据当前关节角度位置+单一关节的速度×(时间间隔×个数),可得到多个时间间隔后机器人关节角度位置,对应为多个未来时刻下圆柱体的空间位置,当时间间隔足够小时,可得到机器人的未来运动轨迹。In the first motion mode, the robot controls the joint rotation of the robot; the motion state includes the current joint angle and the angular velocity of the joint; according to the motion state, the future trajectory of the robot is predicted, including: predicting the future motion according to the current joint angle and the angular velocity of the joint track. In the first motion mode, according to the current joint angular position + the speed of a single joint × (time interval × number), the joint angular position of the robot after multiple time intervals can be obtained, which corresponds to the spatial position of the cylinder at multiple future moments , when the time interval is small enough, the future trajectory of the robot can be obtained.
机器人在第二运动模式下,直接控制机器人的末端点移动;运动状态包括当前末端点的位姿和末端点的运动速度;根据运动状态,预测机器人的未来运动轨迹,包括:根据当前末端点的位姿和末端点的运动速度,预测末端点的运动轨迹;根据末端点的运动轨迹,逆解出机器人关节角度变化,从而获得机器人的未来运动轨迹。第二运动模式是一种通过控制机器人末端点在笛卡尔空间的运动,来实现机器人的运动,即,根据当前末端点的位姿+末端点的运动速度×(时间间隔×个数),可得到多个时间间隔的末端位姿,将其逆解后得到多个时间下的圆柱体空间位置,当时间间隔足够小时,可得到机器人的未来运动轨迹。In the second motion mode, the robot directly controls the movement of the end point of the robot; the motion state includes the pose of the current end point and the movement speed of the end point; according to the motion state, the future trajectory of the robot is predicted, including: according to the current end point The pose and the movement speed of the end point predict the movement trajectory of the end point; according to the movement trajectory of the end point, the change of the robot joint angle is inversely solved to obtain the future movement trajectory of the robot. The second movement mode is to realize the movement of the robot by controlling the movement of the end point of the robot in Cartesian space, that is, according to the pose of the current end point + the movement speed of the end point × (time interval × number), it can be The terminal poses of multiple time intervals are obtained, and the spatial position of the cylinder at multiple times is obtained after inverse solution. When the time interval is small enough, the future trajectory of the robot can be obtained.
机器人在第三运动模式下,机器人按照已完成的作业编程进行运动,并在图像中同步显示机器人的运动状态,此时,根据呈现在图像中的机器人的运动状态,通过插补算法,预测未来运动轨迹。第三运动模式是利用对机器人进行作业编程,使机器人按照作业编程进行运动,并且,将机器人的运动过程同步到图像中进行显示,针对图像中的机器人,通过插补算法,得到机器人的未来运动轨迹。In the third movement mode of the robot, the robot moves according to the completed job programming, and the movement state of the robot is displayed synchronously in the image. At this time, according to the movement state of the robot presented in the image, the future is predicted through an interpolation algorithm motion track. The third movement mode is to use the job programming of the robot to make the robot move according to the job programming, and to synchronize the movement process of the robot to the image for display, and to obtain the future movement of the robot through the interpolation algorithm for the robot in the image track.
103、根据机器人的尺寸参数,判断机器人在未来运动轨迹中是否发生碰撞。103. According to the size parameters of the robot, it is judged whether the robot collides in the future trajectory.
要判断机器人任意处是否发生自身碰撞,需要对机器人的多个构件分别进行是否碰撞的判断,因此,将所述机器人的机械模型简化为多个圆柱体包围盒,每次以两个圆柱体包围盒为目标进行判断,多次判断之后,若机器人的任意两个圆柱体包围盒之间均不会发生碰撞,则认为机器人在未来运动轨迹中没有发生自身碰撞。虽然本申请实施例讨论机器人是否发生自身碰撞,但本申请实施例的机器人碰撞预测方法仍然适用于机器人可能与外部静态环境或动态物体碰撞的预测,对于外部静态环境,只需要采用类似的方式,提前将环境中的物体参数导入,将环境中物体简化为长方体包围盒后加入机器人碰撞预测的判断中。对于动态物体,则可参照机器人的圆柱体包围盒,将其简化为圆柱体包围盒,当成机器人的新的圆柱体包围盒,加入到机器人碰撞预测的判断中。To judge whether the robot collides with itself at any place, it is necessary to judge whether the multiple components of the robot collide. Therefore, the mechanical model of the robot is simplified into a plurality of cylindrical bounding boxes, each time surrounded by two cylinders The box is judged as the target. After multiple judgments, if there is no collision between any two cylindrical bounding boxes of the robot, it is considered that the robot does not collide with itself in the future trajectory. Although the embodiment of the present application discusses whether the robot collides with itself, the robot collision prediction method in the embodiment of the present application is still applicable to the prediction that the robot may collide with the external static environment or dynamic objects. For the external static environment, only a similar method is required. Import the parameters of objects in the environment in advance, simplify the objects in the environment into cuboid bounding boxes, and then add them to the judgment of robot collision prediction. For dynamic objects, refer to the cylindrical bounding box of the robot, simplify it into a cylindrical bounding box, and use it as a new cylindrical bounding box of the robot to add it to the judgment of robot collision prediction.
在机器人具有N(N>2)个圆柱体包围盒时,需要进行自身是否发生碰撞的判断一次或多次,关于判断次数的计算,首先从N个圆柱体包围盒中每次选取任意两个不分次序的不同圆柱体包围盒,一共N×(N-1)/2次,再减去不会发生碰撞的相邻圆柱体包围盒的情况(即N-1次),最后可通过人工筛选简化判断次数。例如,请参照图2、以及图3中的机器人,该机器人具有9个圆柱体包围盒(a1、a2、a3、a4、a5、a6、b1、b2、b3),若两两圆柱体包围盒进行检测则需要进行9×8/2=36次检测,但由于机械结构的限制,有些结构体之间不可能产生碰撞,如相邻的两个圆柱体包围盒不会发生碰撞,则筛选出36-8=28次,再进行人为判断筛选,最终设置14次检测,如下表所示,Y表示对应编号的圆柱体包围盒应用进行检测,N表示不需要进行检测的情况。When the robot has N (N>2) cylindrical bounding boxes, it needs to judge whether it collides with itself one or more times. For the calculation of the number of judgments, first select any two from the N cylindrical bounding boxes each time. Different cylindrical bounding boxes in no order, a total of N×(N-1)/2 times, and then subtract the adjacent cylindrical bounding boxes that will not collide (ie N-1 times), and finally can be manually Screening simplifies the number of judgments. For example, please refer to the robot in Figure 2 and Figure 3, the robot has 9 cylindrical bounding boxes (a1, a2, a3, a4, a5, a6, b1, b2, b3), if two cylindrical bounding boxes The detection requires 9×8/2=36 detections, but due to the limitation of the mechanical structure, it is impossible for some structures to collide. For example, if two adjacent cylinder bounding boxes do not collide, then the 36-8=28 times, and then perform artificial judgment screening, and finally set 14 detections, as shown in the table below, Y indicates that the corresponding numbered cylindrical bounding box should be tested, and N indicates that no detection is required.
表1 圆柱体包围盒可发生碰撞筛选Table 1 The cylinder bounding box can undergo collision screening
Figure PCTCN2022111071-appb-000001
Figure PCTCN2022111071-appb-000001
Figure PCTCN2022111071-appb-000002
Figure PCTCN2022111071-appb-000002
针对上述筛选出的任意两个可发生碰撞的圆柱体包围盒,根据两个圆柱体包围盒的尺寸参数(包括半径、高度),判断两个圆柱体包围盒在未来运动轨迹中是否发生碰撞,进行如下判断流程:For any two collidable cylindrical bounding boxes screened out above, according to the size parameters (including radius and height) of the two cylindrical bounding boxes, it is judged whether the two cylindrical bounding boxes collide in the future trajectory, Carry out the following judgment process:
请参照图4,图4为本申请实施例中,判断两个圆柱体包围盒在未来运动轨迹中是否发生碰撞的判断流程图,碰撞检测按照以下三个流程,中心距离预检测、端面相交检测、侧面相交检测的顺序进行。Please refer to Figure 4. Figure 4 is a flow chart for judging whether two cylindrical bounding boxes collide in the future motion trajectory in the embodiment of the present application. The collision detection follows the following three processes, center distance pre-detection, end face intersection detection , side intersection detection sequence.
S1、中心距离预检测:若两个圆柱体包围盒的连心线够短,则确定所述机器人发生碰撞,若两个圆柱体包围盒的连心线不够短,则进行下一步检测。其中,两个圆柱体包围盒的连心线够短可以是指两个圆柱体包围盒的连心线低于预设阈值,两个圆柱体包围盒的连心线不够短可以是指两个圆柱体包围盒的连心线高于或等于预设阈值。S1. Pre-detection of the center distance: if the line connecting the two cylindrical bounding boxes is short enough, it is determined that the robot has collided; if the line connecting the two cylindrical bounding boxes is not short enough, proceed to the next step of detection. Among them, the short enough connecting center line of two cylindrical bounding boxes may mean that the connecting center line of two cylindrical bounding boxes is lower than the preset threshold, and the not short enough connecting center line of two cylindrical bounding boxes may mean that two The centerline of the cylindrical bounding box is higher than or equal to the preset threshold.
S2、端面相交检测:若两个圆柱体包围盒的两个端面圆相交,则确定所述机器人发生碰撞,若两个圆柱体包围盒的两个端面圆不相交,则进行下一步。S2. End face intersection detection: If the two end face circles of the two cylindrical bounding boxes intersect, it is determined that the robot has collided; if the two end face circles of the two cylindrical bounding boxes do not intersect, proceed to the next step.
S3、侧面碰撞检测:求两个圆柱包围盒的两条中轴线的位置关系。S3. Side collision detection: Find the positional relationship between the two central axes of the two cylindrical bounding boxes.
(1)当两个圆柱包围盒的两条中轴线共面且垂直时,若两个圆柱包围盒的两条中轴线丁字或十字相交则确定所述机器人发生碰撞,若两个圆柱包围盒的两条中轴线非丁字且非十字相交,则确定所述机器人不碰撞。(1) When the two central axes of the two cylindrical bounding boxes are coplanar and perpendicular, if the two central axes of the two cylindrical bounding boxes intersect with a T or a cross, it is determined that the robot collides; if the two cylindrical bounding boxes If the two central axes are not T-shaped and do not intersect with each other, it is determined that the robot does not collide.
(2)当两个圆柱包围盒的两条中轴线平行时,若轴距小于两圆柱半径之和,且两个圆柱包围盒的两条中轴线在同一直线上的投影存在重合部分,则确定所 述机器人发生碰撞,若轴距不小于两圆柱半径之和,或两个圆柱包围盒的两条中轴线在同一直线上的投影不存在重合部分,则确定所述机器人不碰撞。(2) When the two central axes of the two cylindrical bounding boxes are parallel, if the axis distance is less than the sum of the radii of the two cylinders, and the projections of the two central axes of the two cylindrical bounding boxes on the same straight line overlap, then determine When the robot collides, if the wheelbase is not less than the sum of the radii of the two cylinders, or the projections of the two central axes of the bounding boxes of the two cylinders on the same straight line do not overlap, then it is determined that the robot does not collide.
(3)当两个圆柱包围盒的两条中轴线非平行其非共面时,分别求每个圆柱包围盒上最靠近对方的母线,若两条母线相交或两个圆柱包围盒足够近则确定所述机器人发生碰撞,若母线不相交且两个圆柱包围盒不足够近则确定所述机器人不碰撞。如图6所示,要找圆柱A上的一条距离圆柱B最近的母线,首先假设圆柱B的中心为P,将P投影到圆柱A的上表面所在的平面得到点P’,连接圆心C A和P’得到一条半径向量r’,将圆柱A的轴线X A沿r’方向平移一个半径距离得到母线,该母线即为圆柱A距离圆柱B最近的母线。设该母线为G A,可求出G A到圆柱B中轴线X B的公垂线长度d AB。同理也可在圆柱B上找到一条距离圆柱A最近的母线。设该母线为G B,可求出G B到圆柱A中轴线X A的公垂线长度d BA。若d AB小于或等于圆柱B的半径r B,和/或d BA小于或等于圆柱A的半径r A则认为圆柱A与圆柱B距离过近,判断为所述机器人发生碰撞。或者,若母线G A与母线为G B相交,判断为所述机器人发生碰撞。 (3) When the two central axes of the two cylindrical bounding boxes are non-parallel and non-coplanar, respectively find the generatrices closest to each other on each cylindrical bounding box, if the two generatrices intersect or the two cylindrical bounding boxes are close enough then It is determined that the robot collides, and if the bus lines do not intersect and the two cylindrical bounding boxes are not close enough, then it is determined that the robot does not collide. As shown in Figure 6, to find a generatrix on cylinder A closest to cylinder B, first assume that the center of cylinder B is P, project P onto the plane where the upper surface of cylinder A is located to obtain point P', and connect the center C A and P' to get a radius vector r', and translate the axis X A of cylinder A along the r' direction for a radius distance to get the generatrix, which is the closest generatrix between cylinder A and cylinder B. Assuming the generatrix is G A , the length d AB of the common perpendicular from G A to the central axis X B of cylinder B can be obtained. Similarly, a generatrix closest to cylinder A can also be found on cylinder B. Assuming the generatrix is G B , the length d BA of the common perpendicular from G B to the central axis X A of cylinder A can be obtained. If d AB is less than or equal to the radius r B of cylinder B, and/or d BA is less than or equal to the radius r A of cylinder A , it is considered that the distance between cylinder A and cylinder B is too close, and it is determined that the robot has collided. Alternatively, if the bus G A intersects the bus G B , it is determined that the robot has collided.
本申请实施例的机器人碰撞预测方法,在检测机器人本体与本体或者机器人本体与已知静态环境是否发生碰撞时,可以不再依赖传感器。在检测机器人本体与外部动态环境或人员是否碰撞时,才会需要引入传感器获取外部动态环境或人员的运动状态。The robot collision prediction method of the embodiment of the present application can no longer rely on sensors when detecting whether the robot body collides with the body or the robot body collides with a known static environment. When detecting whether the robot body collides with the external dynamic environment or personnel, it is necessary to introduce sensors to obtain the motion status of the external dynamic environment or personnel.
由于机器人的每个机械参数是已知的,可以建立比较精确的机器人的每个关节部件的圆柱体包围盒模型。如,使用OpenGL绘制机器人模型:在机器人本体运动时,该功能模块会实时检测预测轨迹上的一些圆柱体包围盒是否相互碰撞。而这只依赖于软件算法和机器人上获取的关节数据,不需要增加额外的传感器。另外,在需要检测机器人与外部静态环境是否碰撞时,也可以采取类似的方式,提前将环境中其余物体参数导入该功能模块,将环境物体简化为长方体包围盒后加入进机器人碰撞检测中。Since every mechanical parameter of the robot is known, a relatively accurate cylindrical bounding box model of each joint part of the robot can be established. For example, use OpenGL to draw the robot model: when the robot body is moving, this function module will detect in real time whether some cylindrical bounding boxes on the predicted trajectory collide with each other. And this only depends on the software algorithm and the joint data acquired on the robot, without adding additional sensors. In addition, when it is necessary to detect whether the robot collides with the external static environment, a similar method can be adopted to import the parameters of other objects in the environment into this function module in advance, simplify the environmental objects into cuboid bounding boxes, and then add them to the robot collision detection.
其效果类似于三维(3Dimension,3D)游戏中物体与物体之间的碰撞检测,检测算法复杂度可依据硬件能力适当调整以获取更快的检测和响应速度。Its effect is similar to the collision detection between objects in 3D (3Dimension, 3D) games, and the complexity of the detection algorithm can be appropriately adjusted according to the hardware capability to obtain faster detection and response speed.
本申请实施例还能够根据用户需要设置碰撞预警的级别,即设置0.5s或1s后将会发生碰撞则返回碰撞警示和报警信号。提前提醒操作人员正在进行的操作是否符合规范、存在危险,避免机器人发生碰撞事件。The embodiment of the present application can also set the level of collision warning according to user needs, that is, if a collision occurs after 0.5s or 1s, the collision warning and alarm signal will be returned. Remind the operator in advance whether the ongoing operation is in compliance with the regulations and there is danger, so as to avoid the collision of the robot.
该方法依赖于机器人运动学,通过历史关节的角度得出速度后,能够预测后面一段时间的每个圆柱体包围盒的位置,再根据包围盒碰撞检测算法检测每一个预测时刻是否碰撞,返回碰撞标志。This method relies on the kinematics of the robot. After obtaining the velocity through the angle of the historical joints, it can predict the position of each cylindrical bounding box in the next period of time, and then detect whether each prediction time is collided according to the bounding box collision detection algorithm, and return the collision sign.
该碰撞检测方案既能使检测范围覆盖到机器人整个本体表面、机器人与外部环境,又能在碰撞事件发生前提前预警,解决了碰撞检测技术方案中大量依赖传感器、检测准确性不够高、碰撞后才能得出反馈等问题。The collision detection scheme can not only make the detection range cover the entire surface of the robot body, the robot and the external environment, but also provide an early warning before the collision event occurs, which solves the problem of relying heavily on sensors in the collision detection technology scheme, the detection accuracy is not high enough, and the collision after collision In order to get feedback and other issues.
综上所述,机器人碰撞预测方法包括监测机器人的运动状态并预测其未来运动轨迹,再结合机器人的尺寸参数预测机器人是否发生碰撞,提供了机器人自身碰撞的预警机制思路,不依赖传感器,目的在于提前反馈碰撞信号,来提示使用者正在进行危险操作,从而避免碰撞发生,提高机器人使用的安全性,同时降低使用者的使用门槛。To sum up, the robot collision prediction method includes monitoring the motion state of the robot and predicting its future trajectory, combined with the size parameters of the robot to predict whether the robot will collide, and provides an early warning mechanism for the robot's own collision, without relying on sensors. The purpose is to The collision signal is fed back in advance to remind the user of dangerous operations, thereby avoiding collisions, improving the safety of the robot, and lowering the user's threshold for use.
图5为本申请实施例提供的一种电子设备的结构图。参照图5,电子设备500包括:处理器510、存储器520、通信接口530以及图像采集器540,这些组件通过通信总线550和/或其他形式的连接机构(未示出)互连并相互通讯。FIG. 5 is a structural diagram of an electronic device provided by an embodiment of the present application. 5, the electronic device 500 includes: a processor 510, a memory 520, a communication interface 530, and an image collector 540. These components are interconnected and communicate with each other through a communication bus 550 and/or other forms of connection mechanisms (not shown).
存储器520包括一个或多个(图中仅示出一个),其可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)等。处理器510以及其他可能的组件可对存储器520进行访问,读和/或写其中的数据。 Memory 520 includes one or more (only one is shown in the figure), which can be, but not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable only Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM) )wait. Processor 510 and possibly other components may access memory 520 to read and/or write data therein.
处理器510包括一个或多个(图中仅示出一个),其可以是一种集成电路芯片,具有信号的处理能力。上述的处理器510可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、微控制单元(Micro Controller Unit,MCU)、网络处理器(Network Processor,NP)或者其他常规处理器;还可以是专用处理器,包括神经网络处理器(Neural-network Processing Unit,NPU)、图形处理器(Graphics Processing Unit,GPU)、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuits,ASIC)、现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。并且,在处理器510为多个时,其中的一部分可以是通用处理器,另一部分可以是专用处理器。The processor 510 includes one or more (only one is shown in the figure), which may be an integrated circuit chip, and has a signal processing capability. The above-mentioned processor 510 can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a micro control unit (Micro Controller Unit, MCU), a network processor (Network Processor, NP) or other conventional processors; It can be a special-purpose processor, including a neural network processor (Neural-network Processing Unit, NPU), a graphics processor (Graphics Processing Unit, GPU), a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuits, ASIC), Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Also, when there are multiple processors 510, some of them may be general-purpose processors, and the other part may be special-purpose processors.
通信接口530包括一个或多个(图中仅示出一个),可以设置为和其他设备进行直接或间接地通信,以便进行数据的交互。通信接口530可以包括进行有线和/或无线通信的接口。The communication interface 530 includes one or more (only one is shown in the figure), which can be configured to directly or indirectly communicate with other devices for data exchange. The communication interface 530 may include an interface for wired and/or wireless communication.
图像采集器540包括一个或多个(图中仅示出一个),可以设置为采集图像并将采集到的图像发往存储器520进行存储,并可由处理器510对图像进行处理。图像采集器540可以是摄像头(包括镜头和图像传感器等组件)。The image collector 540 includes one or more (only one is shown in the figure), which can be configured to collect images and send the collected images to the memory 520 for storage, and the processor 510 can process the images. The image collector 540 may be a camera (including components such as a lens and an image sensor).
在存储器520中可以存储一个或多个计算机程序指令,处理器510可以读取并运行这些计算机程序指令,以实现本申请实施例提供的机器人碰撞预测方法。One or more computer program instructions may be stored in the memory 520, and the processor 510 may read and execute these computer program instructions to implement the robot collision prediction method provided in the embodiment of the present application.
图5所示的结构仅为示意,电子设备500还可以包括比图5中所示更多或者更少的组件,或者具有与图5所示不同的结构。图5中所示的多个组件可以采用硬件、软件或其组合实现。电子设备500可能是实体设备,例如个人电脑(Personal Computer,PC)机、笔记本电脑、平板电脑、手机、服务器、嵌入式设备等,也可能是虚拟设备,例如虚拟机、虚拟化容器等。并且,电子设备500也不限于单台设备,也可以是多台设备的组合或者大量设备构成的集群。The structure shown in FIG. 5 is only for illustration, and the electronic device 500 may also include more or fewer components than those shown in FIG. 5 , or have a different structure from that shown in FIG. 5 . Various components shown in FIG. 5 may be implemented in hardware, software, or a combination thereof. The electronic device 500 may be a physical device, such as a personal computer (Personal Computer, PC), a notebook computer, a tablet computer, a mobile phone, a server, an embedded device, etc., or a virtual device, such as a virtual machine, a virtualized container, and the like. Moreover, the electronic device 500 is not limited to a single device, and may also be a combination of multiple devices or a cluster formed by a large number of devices.
例如,本申请实施例中提到的以第一运动模式、第二运动模式和第三运动模式分别实现机器人碰撞预测的电子设备500均可采用图5中的结构实现,但以第一运动模式、第二运动模式和第三运动模式分别实现机器人碰撞预测的电子设备500在实现时可以不必包含图5中的图像采集器540。For example, the electronic device 500 mentioned in the embodiment of the present application to respectively realize robot collision prediction with the first motion mode, the second motion mode and the third motion mode can be realized by the structure in FIG. 5 , but the first motion mode The electronic device 500 for implementing robot collision prediction, the second motion mode and the third motion mode may not necessarily include the image collector 540 in FIG. 5 during implementation.
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序指令,所述计算机程序指令被计算机的处理器读取并运行时,执行本申请实施例提供的机器人碰撞预测方法。例如,计算机可读存储介质可以实现为图5中电子设备500中的存储器520。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer program instructions, and when the computer program instructions are read and run by the processor of the computer, the computer program instructions provided by the embodiments of the present application are executed. Robot collision prediction method. For example, the computer-readable storage medium can be implemented as the memory 520 in the electronic device 500 in FIG. 5 .
在本申请所提供的实施例中,所揭露装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, the disclosed devices and methods may be implemented in other ways. 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 communication interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
另外,作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。In addition, a unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it 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.
再者,在本申请实施例中的多个功能模块可以集成在一起形成一个独立的部分,也可以是每个个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。Furthermore, multiple functional modules in the embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间 存在任何这种实际的关系或者顺序。In this document, relational terms such as first and second etc. are used only to distinguish one entity or operation from another without necessarily requiring or implying any such relationship between these entities or operations. Actual relationship or sequence.

Claims (12)

  1. 一种机器人碰撞预测方法,包括:A robot collision prediction method, comprising:
    监测所述机器人的运动状态;monitoring the motion state of the robot;
    根据所述运动状态,实时预测所述机器人的未来运动轨迹;Predicting the future trajectory of the robot in real time according to the motion state;
    根据所述机器人的尺寸参数,判断所述机器人在所述未来运动轨迹中是否发生碰撞。According to the size parameters of the robot, it is judged whether the robot collides in the future motion trajectory.
  2. 如权利要求1所述的方法,其中,所述根据所述机器人的尺寸参数,判断所述机器人在所述未来运动轨迹中是否发生碰撞,包括:The method according to claim 1, wherein the judging whether the robot collides in the future trajectory according to the size parameters of the robot comprises:
    将所述机器人的机械模型简化为多个圆柱体包围盒,选取所述多个圆柱体包围盒中的两个圆柱体包围盒;Simplifying the mechanical model of the robot into a plurality of cylindrical bounding boxes, selecting two cylindrical bounding boxes in the plurality of cylindrical bounding boxes;
    根据所述两个圆柱体包围盒的尺寸参数,判断所述两个圆柱体包围盒在所述未来运动轨迹中是否发生碰撞。According to the size parameters of the two cylindrical bounding boxes, it is judged whether the two cylindrical bounding boxes collide in the future motion trajectory.
  3. 如权利要求2所述的方法,其中,所述判断所述两个圆柱体包围盒在所述未来运动轨迹中是否发生碰撞,包括:The method according to claim 2, wherein said judging whether said two cylindrical bounding boxes collide in said future trajectory comprises:
    响应于所述两个圆柱体包围盒的两个中心点之间的距离低于预设阈值,确定所述机器人发生碰撞。In response to a distance between two center points of the two cylindrical bounding boxes being lower than a preset threshold, it is determined that the robot collides.
  4. 如权利要求3所述的方法,其中,所述判断所述两个圆柱体包围盒在所述未来运动轨迹中是否发生碰撞,还包括:The method according to claim 3, wherein said judging whether said two cylindrical bounding boxes collide in said future trajectory further comprises:
    响应于所述两个中心点的距离大于或等于所述预设阈值,且所述两个圆柱体包围盒的两个端面圆相交,确定所述机器人发生碰撞。In response to the distance between the two center points being greater than or equal to the preset threshold and the two end circles of the two cylindrical bounding boxes intersecting, it is determined that the robot collides.
  5. 如权利要求3所述的方法,其中,所述判断所述两个圆柱体包围盒在所述未来运动轨迹中是否发生碰撞,还包括:The method according to claim 3, wherein said judging whether said two cylindrical bounding boxes collide in said future trajectory further comprises:
    响应于所述两个中心点的距离大于或等于所述预设阈值,所述两个圆柱体包围盒的两个端面圆不相交,所述两个圆柱体包围盒的两条中轴线共面且垂直,且所述两条中轴线相交,确定所述机器人发生碰撞。In response to the distance between the two center points being greater than or equal to the preset threshold, the two end circles of the two cylindrical bounding boxes do not intersect, and the two central axes of the two cylindrical bounding boxes are coplanar and vertical, and the two central axes intersect, it is determined that the robot has collided.
  6. 如权利要求3所述的方法,其中,所述判断所述两个圆柱体包围盒在所述未来运动轨迹中是否发生碰撞,还包括:The method according to claim 3, wherein said judging whether said two cylindrical bounding boxes collide in said future trajectory further comprises:
    响应于所述两个中心点的距离大于或等于所述预设阈值,所述两个圆柱体包围盒的两个端面圆不相交,所述两个圆柱体包围盒的两条中轴线平行,所述两条中轴线的轴距小于两圆柱体半径之和,且所述两条中轴线在同一直线上的投影存在重合部分,确定所述机器人发生碰撞。In response to the distance between the two center points being greater than or equal to the preset threshold, the two end circles of the two cylindrical bounding boxes do not intersect, and the two central axes of the two cylindrical bounding boxes are parallel, The wheelbase of the two central axes is less than the sum of the radii of the two cylinders, and the projections of the two central axes on the same straight line overlap, so it is determined that the robot has collided.
  7. 如权利要求3所述的方法,其中,所述判断所述两个圆柱体包围盒在所 述未来运动轨迹中是否发生碰撞,还包括:The method according to claim 3, wherein said judging whether said two cylindrical bounding boxes collide in said future trajectory further comprises:
    响应于所述两个中心点的距离大于或等于所述预设阈值,所述两个圆柱体包围盒的端面圆不相交,所述两个圆柱体包围盒的两条中轴线非平行且非共面,所述两个圆柱体包围盒分别对应的两条母线相交或一圆柱体包围盒的母线与另一圆柱体包围盒的中轴线的公垂线长度值小于或等于所述另一圆柱体包围盒的半径,确定所述机器人发生碰撞,其中,所述母线为一圆柱体包围盒上最靠近另一圆柱体包围盒的一条母线。In response to the distance between the two center points being greater than or equal to the preset threshold, the end circles of the two cylindrical bounding boxes do not intersect, and the two central axes of the two cylindrical bounding boxes are non-parallel and non-parallel Coplanar, the two generatrices corresponding to the two cylindrical bounding boxes intersect or the length of the common perpendicular between the generatrix of one cylindrical bounding box and the central axis of the other cylindrical bounding box is less than or equal to the other cylinder The radius of the volume bounding box determines that the robot collides, wherein the generatrix is a generatrix on a cylinder bounding box that is closest to another cylinder bounding box.
  8. 如权利要求1-7任一项所述的方法,还包括:在所述机器人处于第一运动模式的情况下,控制所述机器人的关节转动;The method according to any one of claims 1-7, further comprising: controlling the joint rotation of the robot when the robot is in the first motion mode;
    所述运动状态包括关节角度和关节的角速度;The motion state includes joint angles and joint angular velocities;
    所述根据所述运动状态,预测所述机器人的未来运动轨迹,包括:The predicting the future trajectory of the robot according to the motion state includes:
    根据所述关节角度和关节的角速度,预测所述未来运动轨迹。Predict the future motion trajectory according to the joint angle and the angular velocity of the joint.
  9. 如权利要求1-7任一项所述的方法,还包括,在所述机器人处于第二运动模式的情况下,直接控制所述机器人的末端点移动;The method according to any one of claims 1-7, further comprising, when the robot is in the second movement mode, directly controlling the movement of the end point of the robot;
    所述运动状态包括末端点的位姿和末端点的运动速度;The motion state includes the posture of the end point and the motion speed of the end point;
    所述根据所述运动状态,预测所述机器人的未来运动轨迹,包括:The predicting the future trajectory of the robot according to the motion state includes:
    根据所述末端点的位姿和末端点的运动速度,预测所述末端点的运动轨迹;Predicting the motion track of the end point according to the pose of the end point and the motion speed of the end point;
    根据所述末端点的运动轨迹,逆解出所述机器人的关节角度变化,根据所述机器人的关节角度变化获得所述机器人的未来运动轨迹。According to the motion trajectory of the end point, the joint angle change of the robot is inversely solved, and the future motion trajectory of the robot is obtained according to the joint angle change of the robot.
  10. 如权利要求1-7任一项所述的方法,还包括:在所述机器人处于第三运动模式的情况,控制所述机器人按照已完成的作业编程进行运动,在图像中同步显示所述机器人的运动状态;The method according to any one of claims 1-7, further comprising: when the robot is in the third motion mode, controlling the robot to move according to the completed job programming, and synchronously displaying the robot in the image state of motion;
    所述根据所述运动状态,预测所述机器人的未来运动轨迹,包括:The predicting the future trajectory of the robot according to the motion state includes:
    根据呈现在所述图像中的所述机器人的运动状态,通过插补算法,预测所述未来运动轨迹。According to the motion state of the robot presented in the image, the future motion trajectory is predicted through an interpolation algorithm.
  11. 一种计算机可读存储介质,存储有计算机程序指令,所述计算机程序指令被处理器读取并运行时,执行如权利要求1-10中任一项所述的机器人碰撞预测方法。A computer-readable storage medium storing computer program instructions. When the computer program instructions are read and executed by a processor, the robot collision prediction method according to any one of claims 1-10 is executed.
  12. 一种电子设备,包括存储器以及处理器,所述存储器中存储有计算机程序指令,所述计算机程序指令被所述处理器读取并运行时,执行权利要求1-10中任一项所述的机器人碰撞预测方法。An electronic device, comprising a memory and a processor, wherein computer program instructions are stored in the memory, and when the computer program instructions are read and executed by the processor, the method described in any one of claims 1-10 is executed. Robot collision prediction method.
PCT/CN2022/111071 2021-09-01 2022-08-09 Robot collision prediction method, computer storage medium, and electronic device WO2023029901A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111019083.5 2021-09-01
CN202111019083.5A CN113664832A (en) 2021-09-01 2021-09-01 Robot collision prediction method, computer storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2023029901A1 true WO2023029901A1 (en) 2023-03-09

Family

ID=78547888

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/111071 WO2023029901A1 (en) 2021-09-01 2022-08-09 Robot collision prediction method, computer storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN113664832A (en)
WO (1) WO2023029901A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116263605A (en) * 2023-04-21 2023-06-16 杭州国辰机器人科技有限公司 Mobile robot smooth and real-time collision avoidance method based on nonlinear optimization
CN116394266A (en) * 2023-06-08 2023-07-07 国网瑞嘉(天津)智能机器人有限公司 Robot self-collision processing method and device, robot and medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113664832A (en) * 2021-09-01 2021-11-19 上海节卡机器人科技有限公司 Robot collision prediction method, computer storage medium and electronic device
CN114872043B (en) * 2022-05-09 2023-11-17 苏州艾利特机器人有限公司 Robot collision detection method, storage medium and electronic equipment
CN116541939B (en) * 2023-05-25 2024-01-30 驻马店市博瑞建筑工程有限公司 Collision detection method and system in bridge design

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104786221A (en) * 2015-04-13 2015-07-22 浙江工业大学 Opening type mechanical arm control method based on Ethernet
CN109773785A (en) * 2018-12-29 2019-05-21 南京埃斯顿机器人工程有限公司 A kind of industrial robot collision-proof method
CN111360824A (en) * 2020-02-27 2020-07-03 中科新松有限公司 Double-arm self-collision detection method and computer-readable storage medium
US20210252707A1 (en) * 2020-02-19 2021-08-19 Fanuc Corporation Collision avoidance motion planning method for industrial robot
CN113664832A (en) * 2021-09-01 2021-11-19 上海节卡机器人科技有限公司 Robot collision prediction method, computer storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104786221A (en) * 2015-04-13 2015-07-22 浙江工业大学 Opening type mechanical arm control method based on Ethernet
CN109773785A (en) * 2018-12-29 2019-05-21 南京埃斯顿机器人工程有限公司 A kind of industrial robot collision-proof method
US20210252707A1 (en) * 2020-02-19 2021-08-19 Fanuc Corporation Collision avoidance motion planning method for industrial robot
CN111360824A (en) * 2020-02-27 2020-07-03 中科新松有限公司 Double-arm self-collision detection method and computer-readable storage medium
CN113664832A (en) * 2021-09-01 2021-11-19 上海节卡机器人科技有限公司 Robot collision prediction method, computer storage medium and electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHENG, SHIJUN; FENG, YUEPING: "Fast Collision Detection Algorithm of Cylinders Based on Generatrices", JILIN DAXUE XUEBAO (LIXUE BAN) - UNIVERSITY. JOURNAL (SCIENCE EDITION), JILIN DAXUE CHUBANSHE, CHANGCHUN, CN, vol. 53, no. 2, 26 March 2015 (2015-03-26), CN , pages 291 - 296, XP009544207, ISSN: 1671-5489, DOI: 10.13413/j.cnki.jdxblxb.2015.02.26 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116263605A (en) * 2023-04-21 2023-06-16 杭州国辰机器人科技有限公司 Mobile robot smooth and real-time collision avoidance method based on nonlinear optimization
CN116394266A (en) * 2023-06-08 2023-07-07 国网瑞嘉(天津)智能机器人有限公司 Robot self-collision processing method and device, robot and medium
CN116394266B (en) * 2023-06-08 2023-10-20 国网瑞嘉(天津)智能机器人有限公司 Robot self-collision processing method and device, robot and medium

Also Published As

Publication number Publication date
CN113664832A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
WO2023029901A1 (en) Robot collision prediction method, computer storage medium, and electronic device
US9987744B2 (en) Generating a grasp pose for grasping of an object by a grasping end effector of a robot
EP2973414B1 (en) Apparatus for generation of a room model
CN106104203B (en) A kind of distance detection method of mobile object, device and aircraft
US10195741B2 (en) Controlling a robot in the presence of a moving object
US9805265B2 (en) Surveillance camera control device and video surveillance system
CN102448681B (en) Operating space presentation device, operating space presentation method, and program
US20180231375A1 (en) Imaging device, rotating device, distance measuring device, distance measuring system and distance measuring method
CN103797446A (en) Method for detecting motion of input body and input device using same
EP3776128B1 (en) Apparatus, system, and method of using depth assessment for autonomous robot navigation
JP2011083882A (en) Robot system
EP3644826A1 (en) A wearable eye tracking system with slippage detection and correction
US20200186778A1 (en) Control device for a camera apparatus, camera arrangement and method for the stereoscopic recording of a monitoring area
JP5930808B2 (en) Image processing apparatus, image processing apparatus control method, and program
WO2022134863A1 (en) Anticollision method, mobile machine and storage medium
CN107942748B (en) Mechanical arm space dynamic obstacle avoidance induction bracelet and control system
CN113199484B (en) Robot safe operation method, equipment and storage medium
WO2022116628A1 (en) Obstacle avoidance control system, method, storage medium, computer program product, and mobile device
JP2002259966A (en) Periphery recognition device
CN114341761B (en) Anti-collision method, mobile machine and storage medium
JPS62286189A (en) High speed visual recognizing device
US11931885B2 (en) Touch sensing method and serial manipulator using the same
JP2020059112A (en) Robot control device
WO2022227939A1 (en) Ground obstacle detection method and mobile machine using same
JP2017163279A (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22863042

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE