[go: up one dir, main page]

CN111283664B - Registration system and method for robot augmented reality teaching - Google Patents

Registration system and method for robot augmented reality teaching Download PDF

Info

Publication number
CN111283664B
CN111283664B CN202010211070.7A CN202010211070A CN111283664B CN 111283664 B CN111283664 B CN 111283664B CN 202010211070 A CN202010211070 A CN 202010211070A CN 111283664 B CN111283664 B CN 111283664B
Authority
CN
China
Prior art keywords
robot
physical
registration
coordinate system
physical robot
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.)
Active
Application number
CN202010211070.7A
Other languages
Chinese (zh)
Other versions
CN111283664A (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.)
Qingdao University of Technology
Original Assignee
Qingdao University of Technology
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 Qingdao University of Technology filed Critical Qingdao University of Technology
Priority to CN202010211070.7A priority Critical patent/CN111283664B/en
Publication of CN111283664A publication Critical patent/CN111283664A/en
Application granted granted Critical
Publication of CN111283664B publication Critical patent/CN111283664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/0081Programme-controlled manipulators with leader teach-in means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J19/00Accessories fitted to manipulators, e.g. for monitoring, for viewing; Safety devices combined with or specially adapted for use in connection with manipulators
    • B25J19/02Sensing devices
    • B25J19/021Optical sensing devices
    • B25J19/023Optical sensing devices including video camera means
    • 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
    • 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
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1679Programme controls characterised by the tasks executed
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1694Programme controls characterised by use of sensors other than normal servo-feedback from position, speed or acceleration sensors, perception control, multi-sensor controlled systems, sensor fusion
    • B25J9/1697Vision controlled systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Numerical Control (AREA)
  • Manipulator (AREA)

Abstract

The invention relates to a registration system for robot augmented reality teaching, which comprises the following steps: the system comprises a physical robot unit, a registration unit, a virtual robot generation unit and a computer; the physical robot unit comprises a physical robot, a physical robot controller and a robot point intermittent motion control program; the physical robot is provided with a physical robot base coordinate system; the physical robot controller is respectively connected with the physical robot and the computer; the robot point location intermittent motion control program is installed in the computer; the registration unit comprises a registration marker, a camera and a conversion calculation unit; the registration marker is arranged on the physical robot body; the camera is fixedly installed in a physical environment except the physical robot; the camera is connected with the computer, and the conversion calculation unit is arranged in the computer; the virtual robot generation unit is arranged in the computer and used for generating a virtual robot model.

Description

一种面向机器人增强现实示教的注册系统和方法A registration system and method for robot augmented reality teaching

技术领域technical field

本发明涉及一种面向机器人增强现实示教的注册系统和方法,属于智能制造和机器人示教领域。The invention relates to a registration system and method for robot augmented reality teaching, belonging to the fields of intelligent manufacturing and robot teaching.

背景技术Background technique

当前,增强现实技术在制造业中的应用日益广泛。增强现实注册技术将虚拟物体和虚拟信息准确叠加在真实世界上,使观察者能够看到一个虚实结合的场景,从感官上认为虚拟物体是周围现实世界的组成部分。增强现实注册技术是增强现实系统中至关重要的技术之一,对增强现实系统的实现具有重要意义。机器人增强现实示教将虚拟的机器人模型准确叠加在物理的生产环境中,操作者使用人机交互设备驱动虚拟机器人模型运动,在一个虚实叠加的场景中规划机器人的路径。At present, augmented reality technology is widely used in manufacturing industry. Augmented reality registration technology accurately superimposes virtual objects and virtual information on the real world, so that observers can see a scene that combines virtual and real, and feel that virtual objects are part of the surrounding real world from the senses. Augmented reality registration technology is one of the most important technologies in augmented reality systems, and it is of great significance to the realization of augmented reality systems. Robot augmented reality teaching accurately superimposes the virtual robot model in the physical production environment. The operator uses human-computer interaction equipment to drive the movement of the virtual robot model, and plans the path of the robot in a virtual and real superimposed scene.

专利《基于RGB-D图像及示教器的机器人示教系统及方法》(公开号为CN201910665326.9)使用的增强现实注册技术方案为:人工放置一张AR注册卡,计算机使用摄像头采集AR注册卡的图像,通过机器视觉和增强现实注册算法检测AR注册卡上的标识,计算摄像机与AR注册卡之间的转换矩阵,计算机以该转换矩阵设置虚拟世界中虚拟相机的方位,将虚拟机器人模型准确地放置在图像中AR注册卡的位置上。但是此技术方案需要提前放置AR注册卡,如果虚拟机器人基坐标与AR注册卡的坐标不重合,则需要提前测得两个坐标系之间坐标的转换关系。另外该方法在有物理机器人的情况下,为了使虚拟机器人的基坐标系与物理机器人的基坐标系一致,需要提前测量AR注册卡和机器人基坐标系间的转换矩阵,这种方式人机交互性差,不适合机器人远程示教和移动工业机器人(放置在移动平台如AGV上的工业机器人)示教。The augmented reality registration technology scheme used in the patent "Robot Teaching System and Method Based on RGB-D Image and Teaching Device" (public number CN201910665326.9) is: manually place an AR registration card, and the computer uses a camera to collect AR registration The image of the card, through the machine vision and augmented reality registration algorithm to detect the logo on the AR registration card, calculate the conversion matrix between the camera and the AR registration card, the computer uses the conversion matrix to set the orientation of the virtual camera in the virtual world, and the virtual robot model Placed exactly where the AR registration card is in the image. However, this technical solution needs to place the AR registration card in advance. If the base coordinates of the virtual robot and the coordinates of the AR registration card do not coincide, the coordinate conversion relationship between the two coordinate systems needs to be measured in advance. In addition, in the case of a physical robot, in order to make the base coordinate system of the virtual robot consistent with the base coordinate system of the physical robot, it is necessary to measure the transformation matrix between the AR registration card and the robot base coordinate system in advance. Poor performance, not suitable for robot remote teaching and mobile industrial robot (industrial robot placed on a mobile platform such as AGV) teaching.

发明内容Contents of the invention

为了解决上述技术问题,本发明提供一种面向机器人增强现实示教的注册系统和方法,不需要在机器人以外的物理实体上提前安装AR注册卡,即可实现增强现实注册,实现虚拟机器人模型的基坐标系与物理机器人的基坐标系的一致,适合工业机器人远程增强现实示教和移动工业机器人增强现实示教。In order to solve the above-mentioned technical problems, the present invention provides a registration system and method for robot augmented reality teaching. It is not necessary to install an AR registration card on a physical entity other than the robot in advance, so that augmented reality registration can be realized, and virtual robot model registration can be realized. The base coordinate system is consistent with the base coordinate system of the physical robot, which is suitable for remote augmented reality teaching of industrial robots and augmented reality teaching of mobile industrial robots.

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

技术方案一:Technical solution one:

一种面向机器人增强现实示教的注册系统:包括物理机器人单元、注册单元、虚拟机器人生成单元以及计算机;A registration system for robot augmented reality teaching: including a physical robot unit, a registration unit, a virtual robot generation unit and a computer;

所述物理机器人单元包括物理机器人、物理机器人控制器和机器人点位间歇运动控制程序;所述物理机器人自设置有物理机器人基坐标系;所述物理机器人控制器分别与所述物理机器人和计算机连接,所述物理机器人控制器用于控制物理机器人运动,并获取物理机器人的运动轨迹;所述计算机向物理机器人控制器发送点位间歇运动控制程序,所述物理机器人控制器执行所述机器人间歇运动控制程序,控制所述物理机器人的执行机构进行至少三条及以上的折线运动;The physical robot unit includes a physical robot, a physical robot controller and a robot point intermittent motion control program; the physical robot is provided with a physical robot base coordinate system; the physical robot controller is connected with the physical robot and the computer respectively , the physical robot controller is used to control the movement of the physical robot and obtain the trajectory of the physical robot; the computer sends a point-to-point intermittent motion control program to the physical robot controller, and the physical robot controller executes the intermittent motion control of the robot A program for controlling the actuator of the physical robot to perform at least three or more zigzag movements;

所述注册单元包括注册标识物、相机和转换计算单元;所述注册标识物设置在物理机器人本体上;所述相机固定安装在物理机器人以外的物理环境中,对准所述物理机器人的工作区域拍摄;所述相机连接所述计算机,所述转换计算单元设置于所述计算机中用于计算注册标识物在相机坐标系下的三维坐标与注册标识物在物理机器人基坐标系下的三维坐标之间的转换关系;The registration unit includes a registration marker, a camera and a conversion calculation unit; the registration marker is set on the physical robot body; the camera is fixedly installed in a physical environment other than the physical robot, and is aligned with the working area of the physical robot Shooting; the camera is connected to the computer, and the conversion calculation unit is set in the computer to calculate the difference between the three-dimensional coordinates of the registered marker in the camera coordinate system and the three-dimensional coordinates of the registered marker in the physical robot base coordinate system conversion relationship between

所述虚拟机器人生成单元设置于所述计算机中,用于生成虚拟机器人模型。The virtual robot generation unit is set in the computer and is used to generate a virtual robot model.

进一步的,所述注册标识物设置于所述物理机器人末端的执行机构上,所述注册标识物为具有特点形状或颜色的物体。Further, the registration marker is set on the actuator at the end of the physical robot, and the registration marker is an object with a characteristic shape or color.

可替代的,所述注册标识物设置于所述物理机器人的关节上,所述注册标识物为具有特点形状或颜色的物体。Alternatively, the registration marker is set on the joints of the physical robot, and the registration marker is an object with a characteristic shape or color.

进一步的,所述计算机具体用于:在间歇运动的每个间歇点,所述计算机通过机器人控制器读取注册标识物在物理机器人基坐标系下的三维坐标;同时,通过相机获取物理工作环境的图像,通过计算机视觉算法识别注册标识物并计算注册标识物在像素坐标系下的像素坐标。Further, the computer is specifically used for: at each intermittent point of the intermittent movement, the computer reads the three-dimensional coordinates of the registered marker in the physical robot base coordinate system through the robot controller; at the same time, obtains the physical working environment through the camera The image of the registered marker is identified by computer vision algorithm and the pixel coordinates of the registered marker in the pixel coordinate system are calculated.

进一步的,所述转换计算单元具体用于:利用相机的成像模型及相机的内参矩阵,根据所述注册标识物在像素坐标系下的像素坐标以及注册标识物在物理机器人基坐标系下的三维坐标通过构建最小二乘问题相机坐标系与物理机器人基坐标系间的转换关系。Further, the conversion calculation unit is specifically configured to: use the imaging model of the camera and the internal reference matrix of the camera, according to the pixel coordinates of the registration marker in the pixel coordinate system and the three-dimensional coordinates of the registration marker in the physical robot base coordinate system The coordinates construct the conversion relationship between the camera coordinate system and the physical robot base coordinate system by constructing the least squares problem.

技术方案二Technical solution two

一种面向机器人增强现实示教的注册方法,该方法是基于技术方案一所述的一种面向机器人增强现实示教的注册系统实现的,具体步骤如下:A registration method for robot augmented reality teaching, which is implemented based on the registration system for robot augmented reality teaching described in Technical Solution 1. The specific steps are as follows:

将注册标识物安装在所述物理机器人上,并固定好相机;Install the registration marker on the physical robot, and fix the camera;

在计算机上编写机器人点位间歇运动控制程序并发送给物理机器人控制器,所述机器人点位间歇运动控制程序至少控制所述物理机器人的执行机构进行至少三次以上的折线运动;Write a robot point-position intermittent motion control program on the computer and send it to the physical robot controller, the robot point-position intermittent motion control program at least controls the actuator of the physical robot to perform at least three or more zigzag motions;

将编写完成的机器人点位间歇运动控制程序下载至所述物理机器人控制器,所述物理机器人控制器执行所述机器人点位间歇运动控制程序控制所述物理机器人动作;Downloading the completed point-to-point intermittent motion control program of the robot to the physical robot controller, and the physical robot controller executes the point-to-point intermittent motion control program of the robot to control the movement of the physical robot;

相机拍摄图像,并发送至计算机中,所述计算机计算注册标识物在图像中的像素坐标,同时,计算机通过物理机器人控制器获取注册标识物在物理机器人基坐标系下的三维坐标;The camera takes an image and sends it to the computer, and the computer calculates the pixel coordinates of the registered marker in the image, and at the same time, the computer obtains the three-dimensional coordinates of the registered marker in the physical robot base coordinate system through the physical robot controller;

转换计算单元读取注册标识物在图像中的像素坐标和注册标识物在物理机器人基坐标系下的三维坐标,并计算相机坐标系与物理机器人基坐标系间的转换关系;The conversion calculation unit reads the pixel coordinates of the registration marker in the image and the three-dimensional coordinates of the registration marker in the physical robot base coordinate system, and calculates the conversion relationship between the camera coordinate system and the physical robot base coordinate system;

所述虚拟机器人生成单元根据所述计算相机坐标系与物理机器人基坐标系间的转换关系,生成与物理机器人基坐标系一致的虚拟机器人模型,并通过增强现实设备将虚拟机器人模型叠加在现实场景中,完成注册。The virtual robot generation unit generates a virtual robot model consistent with the physical robot base coordinate system according to the conversion relationship between the calculated camera coordinate system and the physical robot base coordinate system, and superimposes the virtual robot model on the real scene through an augmented reality device , to complete the registration.

进一步的,所述注册标识物设置于所述物理机器人末端的执行机构上,所述注册标识物为具有特点形状或颜色的物体。Further, the registration marker is set on the actuator at the end of the physical robot, and the registration marker is an object with a characteristic shape or color.

可替代的,所述注册标识物设置于所述物理机器人的关节上,所述注册标识物为具有特点形状或颜色的物体。Alternatively, the registration marker is set on the joints of the physical robot, and the registration marker is an object with a characteristic shape or color.

进一步的,所述相机拍摄图像,并发送至计算机中,所述计算机计算注册标识物在图像中的像素坐标,同时,计算机通过物理机器人控制器获取注册标识物在物理机器人基坐标系下的三维坐标的步骤中:在间歇运动的每个间歇点,计算机控制相机进行拍摄,同时读取当前注册标识物在物理机器人基坐标系下的三维坐标。Further, the camera takes an image and sends it to the computer, and the computer calculates the pixel coordinates of the registered marker in the image, and at the same time, the computer obtains the three-dimensional coordinates of the registered marker in the physical robot base coordinate system through the physical robot controller. In the step of coordinates: at each intermittent point of intermittent motion, the computer controls the camera to take pictures, and at the same time reads the three-dimensional coordinates of the current registered marker in the physical robot base coordinate system.

进一步的,所述转换计算单元读取注册标识物在图像中的像素坐标和注册标识物在物理机器人基坐标系下的三维坐标,并计算相机坐标系与物理机器人基坐标系间的转换关系的步骤具体为:Further, the conversion calculation unit reads the pixel coordinates of the registered marker in the image and the three-dimensional coordinates of the registered marker in the physical robot base coordinate system, and calculates the conversion relationship between the camera coordinate system and the physical robot base coordinate system The specific steps are:

所述转换计算单元利用相机的成像模型及相机的内参矩阵,根据所述注册标识物在像素坐标系下的像素坐标以及注册标识物在物理机器人基坐标系下的三维坐标通过构建最小二乘问题,计算相机坐标系与物理机器人基坐标系间的转换关系。The conversion calculation unit utilizes the imaging model of the camera and the internal reference matrix of the camera, and constructs a least squares problem according to the pixel coordinates of the registered marker in the pixel coordinate system and the three-dimensional coordinates of the registered marker in the physical robot base coordinate system. , to calculate the conversion relationship between the camera coordinate system and the physical robot base coordinate system.

本发明具有如下有益效果:The present invention has following beneficial effect:

1、本发明面向于机器人增强现实示教的注册系统和方法,不需要在机器人以外的物理实体上提前安装AR注册卡,即可实现增强现实注册,实现虚拟机器人模型的基坐标系与物理机器人的基坐标系的一致,适合工业机器人远程增强现实示教和移动工业机器人增强现实示教;1. The present invention is oriented to the registration system and method for robot augmented reality teaching. It is not necessary to install an AR registration card on a physical entity other than the robot in advance to realize augmented reality registration, and to realize the basic coordinate system of the virtual robot model and the physical robot. The base coordinate system is consistent, suitable for remote augmented reality teaching of industrial robots and augmented reality teaching of mobile industrial robots;

2、由于无需在物理场景中安装AR注册卡,避免了AR注册卡安装精度对增强现实注册精度的影响,可以高精度地实现虚拟机器人的基坐标系与物理机器人的基坐标系的一致,提高示教路径的精度。2. Since there is no need to install the AR registration card in the physical scene, the influence of the AR registration card installation accuracy on the augmented reality registration accuracy is avoided, and the base coordinate system of the virtual robot can be consistent with the base coordinate system of the physical robot with high precision, improving Accuracy of the taught path.

附图说明Description of drawings

图1为本发明一种面向机器人增强现实示教的注册系统的示意图;Fig. 1 is a schematic diagram of a registration system for robot augmented reality teaching of the present invention;

图2为本发明一种面向机器人增强现实示教的注册系统的使用示意图;Fig. 2 is a schematic diagram of the use of a registration system for robot augmented reality teaching according to the present invention;

图3为本发明一种面向机器人增强现实示教的注册方法的流程示意图。FIG. 3 is a schematic flowchart of a registration method for robot augmented reality teaching according to the present invention.

具体实施方式Detailed ways

下面结合附图和具体实施例来对本发明进行详细的说明。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

实施例一Embodiment one

请参阅图1和图2,一种面向机器人增强现实示教的注册系统:包括物理机器人单元、注册单元、虚拟机器人生成单元以及计算机;Please refer to Figure 1 and Figure 2, a registration system for robot augmented reality teaching: including a physical robot unit, a registration unit, a virtual robot generation unit and a computer;

所述物理机器人单元包括物理机器人、物理机器人控制器和机器人点位间歇运动控制程序;所述物理机器人自设置有物理机器人基坐标系;所述物理机器人控制器分别与所述物理机器人和计算机连接,所述物理机器人控制器用于控制物理机器人运动,并获取物理机器人的运动轨迹;所述机器人点位间歇运动控制程序安装于所述计算机中,所述计算机将点位间歇运动控制程序发送至物理机器人控制器由所述物理机器人控制器执行所述机器人间歇运动控制程序,控制所述物理机器人的执行机构进行至少三条及以上的折线运动,可以控制机器人在折线段的转折点处暂停运动;The physical robot unit includes a physical robot, a physical robot controller and a robot point intermittent motion control program; the physical robot is provided with a physical robot base coordinate system; the physical robot controller is connected with the physical robot and the computer respectively , the physical robot controller is used to control the movement of the physical robot and obtain the trajectory of the physical robot; the robot point intermittent motion control program is installed in the computer, and the computer sends the point intermittent motion control program to the physical robot. The robot controller executes the robot intermittent motion control program by the physical robot controller, controls the actuator of the physical robot to perform at least three or more broken-line movements, and can control the robot to pause at the turning point of the broken-line segment;

所述注册单元包括注册标识物、相机和转换计算单元;所述注册标识物设置在物理机器人本体上;所述相机固定安装在物理机器人以外的物理环境中,对准所述物理机器人的工作区域拍摄;所述相机连接所述计算机,所述转换计算单元设置于所述计算机中用于计算注册标识物在相机坐标系下的三维坐标与注册标识物在物理机器人基坐标系下的三维坐标之间的转换关系;The registration unit includes a registration marker, a camera and a conversion calculation unit; the registration marker is set on the physical robot body; the camera is fixedly installed in a physical environment other than the physical robot, and is aligned with the working area of the physical robot Shooting; the camera is connected to the computer, and the conversion calculation unit is set in the computer to calculate the difference between the three-dimensional coordinates of the registered marker in the camera coordinate system and the three-dimensional coordinates of the registered marker in the physical robot base coordinate system conversion relationship between

所述虚拟机器人生成单元设置于所述计算机中,用于生成虚拟机器人模型。The virtual robot generation unit is set in the computer and is used to generate a virtual robot model.

本实施例不需要在物理机器人以外的物理实体上提前安装AR注册卡,即可实现增强现实注册,避免了AR注册卡安装精度对增强现实注册精度的影响,可以高精度地实现虚拟机器人的基坐标系与物理机器人的基坐标系的一致,提高示教路径的精度,适合工业机器人远程增强现实示教和移动工业机器人增强现实示教。This embodiment does not need to install the AR registration card on physical entities other than the physical robot in advance to realize the augmented reality registration, avoiding the influence of the installation accuracy of the AR registration card on the accuracy of the augmented reality registration, and realizing the basic registration of the virtual robot with high precision. The coordinate system is consistent with the base coordinate system of the physical robot, which improves the accuracy of the teaching path, and is suitable for remote augmented reality teaching of industrial robots and augmented reality teaching of mobile industrial robots.

实施例二Embodiment two

进一步的,所述注册标识物设置于所述物理机器人末端的执行机构上,可实时读取注册标识物在机器人坐标系下的坐标,为了方便检测计算方便,所述注册标识物为具有特点形状(如球体、立方体等)或颜色(如红色、黄色)的物体。Further, the registration marker is set on the actuator at the end of the physical robot, and the coordinates of the registration marker in the robot coordinate system can be read in real time. In order to facilitate detection and calculation, the registration marker has a characteristic shape (such as spheres, cubes, etc.) or objects of color (such as red, yellow).

可替代的,所述注册标识物设置于所述物理机器人的关节上,可以实时读取机器人关节数据,通过机器人正运动学模型,求得该标识在机器人坐标系下的坐标,为了方便检测计算方便,所述注册标识物为具有特点形状或颜色的物体。Alternatively, the registration marker is set on the joint of the physical robot, and the joint data of the robot can be read in real time, and the coordinates of the marker in the robot coordinate system can be obtained through the forward kinematics model of the robot. In order to facilitate detection and calculation Conveniently, the registration marker is an object with a characteristic shape or color.

进一步的,所述计算机具体用于:在间歇运动的每个间歇点,即间歇运动中每条线段的端点,所述计算机通过机器人控制器读取注册标识物在物理机器人基坐标系Ow-XwYwZw下的三维坐标Pi(xwi,ywi,zwi);同时,通过相机获取物理工作环境的图像,在计算机上通过计算机视觉算法识别注册标识物,并计算注册标识物在像素坐标系下的像素坐标Zi(ui,vi)。具体参见图2中的间歇运动路径,机器人间歇运动轨迹至少包含3条及以上的折线段,因此可以获得至少4个非共线特征点(如正方形4个端点)的数据,即4个Pi的数据。Further, the computer is specifically used for: at each intermittent point of the intermittent motion, that is, the endpoint of each line segment in the intermittent motion, the computer reads the registered identifier in the physical robot base coordinate system O w − through the robot controller. The three-dimensional coordinates P i (x wi , y wi , z wi ) under X w Y w Z w ; at the same time, the image of the physical working environment is obtained through the camera, and the registration mark is recognized by the computer vision algorithm on the computer, and the registration mark is calculated The pixel coordinates Z i (u i , v i ) of the object in the pixel coordinate system. Specifically refer to the intermittent motion path in Figure 2. The robot’s intermittent motion trajectory contains at least 3 or more broken line segments, so the data of at least 4 non-collinear feature points (such as 4 endpoints of a square) can be obtained, that is, the data of 4 Pi data.

进一步的,所述转换计算单元具体用于计算转换矩阵R:假设由世界坐标系到相机坐标系的转换矩阵为R,利用相机的成像模型可以得到如下关系式:Further, the conversion calculation unit is specifically used to calculate the conversion matrix R: assuming that the conversion matrix from the world coordinate system to the camera coordinate system is R, the following relationship can be obtained by using the imaging model of the camera:

Figure BDA0002422841300000071
Figure BDA0002422841300000071

其中A3*4为相机的内参矩阵,Qi(xci,yci,zci)为注册标识物在相机坐标系Oc-XcYcZc中的三维坐标。Among them, A 3*4 is the internal reference matrix of the camera, and Q i (x ci , y ci , z ci ) is the three-dimensional coordinates of the registration marker in the camera coordinate system O c -X c Y c Z c .

根据所有特征点(4个及以上)的像素坐标Zi(ui,vi),和对应的三维坐标Pi(xwi,ywi,zwi),以下式为目标According to the pixel coordinates Z i (u i , v i ) of all feature points (4 and above), and the corresponding three-dimensional coordinates P i (x wi , y wi , z wi ), the following formula is the target

Figure BDA0002422841300000072
Figure BDA0002422841300000072

利用奇异值分解求最小二乘刚性转置方法求解转换矩阵R4*4,利用矩阵R4*4,实现由物理机器人基坐标系Ow-XwYwZw到相机坐标系Oc-XcYcZc的变换,R4*4即由世界坐标系到相机坐标系的转换矩阵为R。Use the singular value decomposition to find the least square rigid transposition method to solve the transformation matrix R 4*4 , and use the matrix R 4*4 to realize the transformation from the physical robot base coordinate system O w -X w Y w Z w to the camera coordinate system O c - The transformation of X c Y c Z c , R 4*4 , that is, the conversion matrix from the world coordinate system to the camera coordinate system is R.

最后,以该转换矩阵R设置虚拟世界中虚拟相机位置,并将虚拟机器人模型叠加在相机拍摄的图像上物理机器人的位置,完成增强现实注册,实现虚拟机器人模型的基坐标系与物理机器人的基坐标系的一致。Finally, use the transformation matrix R to set the position of the virtual camera in the virtual world, and superimpose the virtual robot model on the image captured by the camera on the position of the physical robot to complete the augmented reality registration and realize the base coordinate system of the virtual robot model and the base coordinate system of the physical robot. Consistency of the coordinate system.

实施例三Embodiment Three

参加图3,一种面向机器人增强现实示教的注册方法,该方法是基于实施例1所述的一种面向机器人增强现实示教的注册系统实现的,具体步骤如下:Referring to Fig. 3, a registration method for robot augmented reality teaching, which is implemented based on the registration system for robot augmented reality teaching described in Embodiment 1, the specific steps are as follows:

将注册标识物安装在所述物理机器人上,并固定好相机;Install the registration marker on the physical robot, and fix the camera;

在计算机上编写机器人点位间歇运动控制程序并发送给物理机器人控制器,所述机器人点位间歇运动控制程序至少控制所述物理机器人的执行机构进行至少3次以上的折线运动;Writing a point-to-point intermittent motion control program of the robot on the computer and sending it to the physical robot controller, the robot point-to-point intermittent motion control program at least controls the actuator of the physical robot to perform at least 3 times of zigzag motion;

将编写完成的机器人点位间歇运动控制程序下载至所述物理机器人控制器,所述物理机器人控制器执行所述机器人点位间歇运动控制程序控制所述物理机器人动作;Downloading the completed point-to-point intermittent motion control program of the robot to the physical robot controller, and the physical robot controller executes the point-to-point intermittent motion control program of the robot to control the movement of the physical robot;

相机拍摄图像,并发送至计算机中,所述计算机计算注册标识物在像素坐标系下的像素坐标,同时,计算机通过物理机器人控制器获取注册标识物在物理机器人基坐标系下的三维坐标;The camera takes an image and sends it to the computer, and the computer calculates the pixel coordinates of the registered marker in the pixel coordinate system, and at the same time, the computer obtains the three-dimensional coordinates of the registered marker in the physical robot base coordinate system through the physical robot controller;

转换计算单元读取注册标识物在图像中的像素坐标和注册标识物在物理机器人基坐标系下的三维坐标,并计算相机坐标系与物理机器人基坐标系间的转换关系;The conversion calculation unit reads the pixel coordinates of the registration marker in the image and the three-dimensional coordinates of the registration marker in the physical robot base coordinate system, and calculates the conversion relationship between the camera coordinate system and the physical robot base coordinate system;

所述虚拟机器人生成单元根据所述计算相机坐标系与物理机器人基坐标系间的转换关系,生成与物理机器人基坐标系一致的虚拟机器人模型,并通过增强现实设备将虚拟机器人模型叠加在现实场景中,完成注册。The virtual robot generation unit generates a virtual robot model consistent with the physical robot base coordinate system according to the conversion relationship between the calculated camera coordinate system and the physical robot base coordinate system, and superimposes the virtual robot model on the real scene through an augmented reality device , to complete the registration.

本实施例不需要在物理机器人以外的物理实体上提前安装AR注册卡,即可实现增强现实注册,避免了AR注册卡安装精度对增强现实注册精度的影响,可以高精度地实现虚拟机器人的基坐标系与物理机器人的基坐标系的一致,提高示教路径的精度,适合工业机器人远程增强现实示教和移动工业机器人增强现实示教。This embodiment does not need to install the AR registration card on physical entities other than the physical robot in advance to realize the augmented reality registration, avoiding the influence of the installation accuracy of the AR registration card on the accuracy of the augmented reality registration, and realizing the basic registration of the virtual robot with high precision. The coordinate system is consistent with the base coordinate system of the physical robot, which improves the accuracy of the teaching path, and is suitable for remote augmented reality teaching of industrial robots and augmented reality teaching of mobile industrial robots.

实施例四Embodiment Four

进一步的,所述注册标识物设置于所述物理机器人末端的执行机构上,可实时读取注册标识物在机器人坐标系下的坐标,为了方便检测计算方便,所述注册标识物为具有特点形状(如球体、立方体等)或颜色(如红色、黄色)的物体。Further, the registration marker is set on the actuator at the end of the physical robot, and the coordinates of the registration marker in the robot coordinate system can be read in real time. In order to facilitate detection and calculation, the registration marker has a characteristic shape (such as spheres, cubes, etc.) or objects of color (such as red, yellow).

可替代的,所述注册标识物设置于所述物理机器人的关节上,可以实时读取机器人关节数据,通过机器人正运动学模型,求得该标识在机器人坐标系下的坐标,为了方便检测计算方便,所述注册标识物为具有特点形状或颜色的物体。Alternatively, the registration marker is set on the joint of the physical robot, and the joint data of the robot can be read in real time, and the coordinates of the marker in the robot coordinate system can be obtained through the forward kinematics model of the robot. In order to facilitate detection and calculation Conveniently, the registration marker is an object with a characteristic shape or color.

进一步的,所述相机拍摄图像,并发送至计算机中,所述计算机计算注册标识物在图像中的像素坐标,同时,计算机通过物理机器人控制器获取注册标识物在物理机器人基坐标系下的三维坐标的步骤中:在间歇运动的每个间歇点,计算机控制相机进行拍摄,识别注册标识物并计算注册标识物在像素坐标系下的像素坐标Zi(ui,vi),同时读取当前注册标识物在物理机器人基坐标系Ow-XwYwZw下的三维坐标Pi(xwi,ywi,zwi)。Further, the camera takes an image and sends it to the computer, and the computer calculates the pixel coordinates of the registered marker in the image, and at the same time, the computer obtains the three-dimensional coordinates of the registered marker in the physical robot base coordinate system through the physical robot controller. In the step of coordinates: at each intermittent point of intermittent movement, the computer controls the camera to shoot, recognize the registered marker and calculate the pixel coordinate Z i (u i , v i ) of the registered marker in the pixel coordinate system, and read The three-dimensional coordinates P i ( x wi , y wi , z wi ) of the current registered identifier in the physical robot base coordinate system O w -X w Y w Z w .

进一步的,所述转换计算单元读取注册标识物在图像中的像素坐标和注册标识物在物理机器人基坐标系下的三维坐标,并计算相机坐标系与物理机器人基坐标系间的转换关系的步骤具体为:Further, the conversion calculation unit reads the pixel coordinates of the registered marker in the image and the three-dimensional coordinates of the registered marker in the physical robot base coordinate system, and calculates the conversion relationship between the camera coordinate system and the physical robot base coordinate system The specific steps are:

假设由世界坐标系到相机坐标系的转换矩阵为R,利用相机的成像模型可以得到如下关系式:Assuming that the transformation matrix from the world coordinate system to the camera coordinate system is R, the following relationship can be obtained by using the camera imaging model:

Figure BDA0002422841300000101
Figure BDA0002422841300000101

其中A3*4为相机的内参矩阵,Qi(xci,yci,zci)为注册标识物在相机坐标系Oc-XcYcZc中的三维坐标。Among them, A 3*4 is the internal reference matrix of the camera, and Q i (x ci , y ci , z ci ) is the three-dimensional coordinates of the registration marker in the camera coordinate system O c -X c Y c Z c .

根据所有特征点(4个及以上)的像素坐标Zi(ui,vi),和对应的三维坐标Pi(xwi,ywi,zwi),以下式为目标According to the pixel coordinates Z i (u i , v i ) of all feature points (4 and above), and the corresponding three-dimensional coordinates P i (x wi , y wi , z wi ), the following formula is the target

Figure BDA0002422841300000102
Figure BDA0002422841300000102

利用奇异值分解求最小二乘刚性转置方法求解转换矩阵R4*4,利用矩阵R4*4,实现由物理机器人基坐标系Ow-XwYwZw到相机坐标系Oc-XcYcZc的变换,R4*4即由世界坐标系到相机坐标系的转换矩阵为R。Use the singular value decomposition to find the least square rigid transposition method to solve the transformation matrix R 4*4 , and use the matrix R 4*4 to realize the transformation from the physical robot base coordinate system O w -X w Y w Z w to the camera coordinate system O c - The transformation of X c Y c Z c , R 4*4 , that is, the conversion matrix from the world coordinate system to the camera coordinate system is R.

最后,以该转换矩阵R设置虚拟世界中虚拟相机位置,并将虚拟机器人模型叠加在相机拍摄的图像上物理机器人的位置,完成增强现实注册,实现虚拟机器人模型的基坐标系与物理机器人的基坐标系的一致。Finally, use the transformation matrix R to set the position of the virtual camera in the virtual world, and superimpose the virtual robot model on the image captured by the camera on the position of the physical robot to complete the augmented reality registration and realize the base coordinate system of the virtual robot model and the base coordinate system of the physical robot. Consistency of the coordinate system.

以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only an embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technologies fields, all of which are equally included in the scope of patent protection of the present invention.

Claims (10)

1. The utility model provides a registration system towards robot augmented reality teaching which characterized in that:
the system comprises a physical robot unit, a registration unit, a virtual robot generation unit and a computer;
the physical robot unit comprises a physical robot, a physical robot controller and a robot point position intermittent motion control program; the physical robot is provided with a physical robot base coordinate system; the physical robot controller is respectively connected with the physical robot and the computer, and is used for controlling the physical robot to move and acquiring the motion track of the physical robot; the robot point position intermittent motion control program is installed in the computer, the physical robot controller executes the robot intermittent motion control program, and an execution mechanism of the physical robot is controlled to perform at least three or more broken line motions;
the registration unit comprises a registration identifier, a camera and a conversion calculation unit; the registration marker is arranged on the physical robot body; the camera is fixedly installed in a physical environment except the physical robot and is used for shooting aiming at a working area of the physical robot; the camera is connected with the computer, and the conversion calculation unit is arranged in the computer and used for calculating the conversion relation between the three-dimensional coordinates of the registration marker in the camera coordinate system and the three-dimensional coordinates of the registration marker in the physical robot base coordinate system;
the virtual robot generation unit is arranged in the computer and used for generating a virtual robot model.
2. The registration system for robot augmented reality teaching of claim 1, wherein: the registration marker is arranged on an actuating mechanism at the tail end of the physical robot, and the registration marker is an object with a specific shape or color.
3. The registration system for robot augmented reality teaching of claim 1, wherein: the registration marker is arranged on a joint of the physical robot, and the registration marker is an object with a specific shape or color.
4. A registration system for robot-oriented augmented reality teaching according to claim 2 or 3, wherein the computer is specifically configured to: at each intermittent point of the intermittent motion, the computer reads the three-dimensional coordinates of the registration marker in the physical robot base coordinate system through the robot controller; meanwhile, an image of a physical working environment is acquired through a camera, the registration marker is identified through a computer vision algorithm, and pixel coordinates of the registration marker in a pixel coordinate system are calculated.
5. The registration system for augmented reality teaching of robot according to claim 4, wherein the conversion calculation unit is specifically configured to: and calculating the conversion relation between the camera coordinate system and the physical robot base coordinate system by constructing a least square problem according to the pixel coordinates of the registration marker in the pixel coordinate system and the three-dimensional coordinates of the registration marker in the physical robot base coordinate system by using the imaging model of the camera and the internal reference matrix of the camera.
6. A registration method for robot augmented reality teaching is realized based on the registration system for robot augmented reality teaching of claim 1, and comprises the following specific steps:
installing a registration marker on the physical robot, and fixing a camera;
writing a robot point position intermittent motion control program on a computer and sending the robot point position intermittent motion control program to a physical robot controller, wherein the robot point position intermittent motion control program at least controls an execution mechanism of the physical robot to perform polygonal line motion more than at least three times;
downloading a written robot point location intermittent motion control program to the physical robot controller, wherein the physical robot controller executes the robot point location intermittent motion control program to control the physical robot to act;
the method comprises the steps that a camera shoots an image and sends the image to a computer, the computer calculates pixel coordinates of a registration marker in the image, and meanwhile, the computer obtains three-dimensional coordinates of the registration marker in a physical robot base coordinate system through a physical robot controller;
the conversion calculation unit reads the pixel coordinates of the registration marker in the image and the three-dimensional coordinates of the registration marker in the physical robot base coordinate system, and calculates the conversion relation between the camera coordinate system and the physical robot base coordinate system;
and the virtual robot generation unit generates a virtual robot model consistent with the physical robot base coordinate system according to the conversion relation between the calculation camera coordinate system and the physical robot base coordinate system, and superimposes the virtual robot model in a real scene through augmented reality equipment to finish registration.
7. The robot augmented reality teaching-oriented registration method according to claim 6, wherein: the registration marker is arranged on an actuating mechanism at the tail end of the physical robot, and the registration marker is an object with a specific shape or color.
8. The robot augmented reality teaching-oriented registration method according to claim 6, wherein: the registration marker is arranged on a joint of the physical robot, and the registration marker is an object with a specific shape or color.
9. The robot augmented reality teaching-oriented registration method according to claim 7 or 8, wherein the camera takes an image and sends the image to the computer, the computer calculates pixel coordinates of the registration marker in the image, and meanwhile, the computer obtains three-dimensional coordinates of the registration marker in a physical robot base coordinate system through the physical robot controller: and at each intermittent point of the intermittent motion, the computer controls the camera to shoot and simultaneously reads the three-dimensional coordinates of the current registration marker in the physical robot base coordinate system.
10. The robot augmented reality teaching-oriented registration method according to claim 9, wherein the step of reading the pixel coordinates of the registration marker in the image and the three-dimensional coordinates of the registration marker in the physical robot base coordinate system by the conversion calculation unit and calculating the conversion relationship between the camera coordinate system and the physical robot base coordinate system specifically comprises:
and the conversion calculation unit calculates the conversion relation between the camera coordinate system and the physical robot base coordinate system by constructing a least square problem according to the pixel coordinates of the registration marker in the pixel coordinate system and the three-dimensional coordinates of the registration marker in the physical robot base coordinate system by using the imaging model of the camera and the internal reference matrix of the camera.
CN202010211070.7A 2020-03-24 2020-03-24 Registration system and method for robot augmented reality teaching Active CN111283664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010211070.7A CN111283664B (en) 2020-03-24 2020-03-24 Registration system and method for robot augmented reality teaching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010211070.7A CN111283664B (en) 2020-03-24 2020-03-24 Registration system and method for robot augmented reality teaching

Publications (2)

Publication Number Publication Date
CN111283664A CN111283664A (en) 2020-06-16
CN111283664B true CN111283664B (en) 2023-03-28

Family

ID=71031081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010211070.7A Active CN111283664B (en) 2020-03-24 2020-03-24 Registration system and method for robot augmented reality teaching

Country Status (1)

Country Link
CN (1) CN111283664B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112917457A (en) * 2021-01-27 2021-06-08 南京航空航天大学 Industrial robot rapid and accurate teaching system and method based on augmented reality technology
CN114029950B (en) * 2021-11-08 2023-05-05 北京华航唯实机器人科技股份有限公司 Robot coordinate system analysis method and device, robot equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210030199A1 (en) * 2017-03-06 2021-02-04 Miso Robotics, Inc. Augmented reality-enhanced food preparation system and related methods
JP6798425B2 (en) * 2017-05-30 2020-12-09 セイコーエプソン株式会社 Robot control method and robot system
CN107263449B (en) * 2017-07-05 2020-01-10 中国科学院自动化研究所 Robot remote teaching system based on virtual reality
CN107309882B (en) * 2017-08-14 2019-08-06 青岛理工大学 A robot teaching programming system and method
FI129042B (en) * 2017-12-15 2021-05-31 Oy Mapvision Ltd Machine vision system with a computer generated virtual reference object
CN108161904B (en) * 2018-01-09 2019-12-03 青岛理工大学 Robot online teaching device, system, method and equipment based on augmented reality
CN110238831B (en) * 2019-07-23 2020-09-18 青岛理工大学 Robot teaching system and method based on RGB-D image and teaching device

Also Published As

Publication number Publication date
CN111283664A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN110587600B (en) Point cloud-based autonomous path planning method for live working robot
CN110238831B (en) Robot teaching system and method based on RGB-D image and teaching device
CN111801198B (en) A hand-eye calibration method, system and computer storage medium
CN110695993B (en) Synchronous measurement method, system and device for flexible mechanical arm
CN111300384B (en) A registration system and method for robot augmented reality teaching based on identification card movement
CN102848389B (en) Realization method for mechanical arm calibrating and tracking system based on visual motion capture
CN113706621B (en) Mark point positioning and posture obtaining method and system based on marked image
Gong et al. An uncalibrated visual servo method based on projective homography
CN111267073B (en) Industrial robot teaching system and method based on augmented reality technology
CN112067337B (en) Fast hand-eye calibration device and calibration method based on standard spherical binocular robot
CN115546289A (en) Robot-based three-dimensional shape measurement method for complex structural part
CN113103230A (en) Human-computer interaction system and method based on remote operation of treatment robot
CN114001653B (en) Center point calibration method for robot tool
CN105096341B (en) Mobile robot position and orientation estimation method based on trifocal tensor and key frame strategy
CN111283664B (en) Registration system and method for robot augmented reality teaching
CN111331604A (en) A machine vision-based valve screwing and compliant operation method
JPWO2018043524A1 (en) Robot system, robot system control apparatus, and robot system control method
WO2021189224A1 (en) Registration system and method for robot augmented reality teaching
CN106996769A (en) A kind of active pose fast relocation method without camera calibration
Hong et al. EasyHeC++: Fully Automatic Hand-Eye Calibration with Pretrained Image Models
CN112743546B (en) Method, device, robot system and medium for selecting orientation and attitude of robot hand-eye marker
CN118682773A (en) Servo control method of robotic arm based on image feature matching
CN110722547B (en) Vision stabilization of mobile robot under model unknown dynamic scene
CN114734451B (en) Visual positioning method combining joint type mechanical arm and camera posture change
WO2021189223A1 (en) Registration system and method for robot augmented reality teaching based on identification card movement

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