WO2019104741A1 - Method and system for measuring compensating coefficient for odometer of visual robot cleaner - Google Patents

Method and system for measuring compensating coefficient for odometer of visual robot cleaner Download PDF

Info

Publication number
WO2019104741A1
WO2019104741A1 PCT/CN2017/114340 CN2017114340W WO2019104741A1 WO 2019104741 A1 WO2019104741 A1 WO 2019104741A1 CN 2017114340 W CN2017114340 W CN 2017114340W WO 2019104741 A1 WO2019104741 A1 WO 2019104741A1
Authority
WO
WIPO (PCT)
Prior art keywords
visual
sweeping robot
scale
camera
ceiling
Prior art date
Application number
PCT/CN2017/114340
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 深圳市沃特沃德股份有限公司
Priority to PCT/CN2017/114340 priority Critical patent/WO2019104741A1/en
Publication of WO2019104741A1 publication Critical patent/WO2019104741A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
    • G05D1/02Control of position or course in two dimensions

Definitions

  • the present invention relates to the field of factory inspection of visual sweeping robots, and more particularly to a method and system for measuring the compensation coefficient of a visual sweeping robot odometer.
  • the odometer is a key component of a visual sweeping robot used to measure the displacement and moving speed of a visual sweeping robot.
  • the odometer is typically provided with an encoder that calculates the distance traveled based on the angle at which the encoder rotates and the circumference of the wheel. Due to environmental factors or structural factors, the calculated distance between the odometer and the actual distance is different.
  • the odometer is calibrated before leaving the factory, and the compensation coefficient is calculated to compensate the distance calculated by the odometer. The detected distance is accurate.
  • the visual sweeping robot is manually manually calibrated to calculate the compensation coefficient before leaving the factory, so that the measured speed is relatively slow and the accuracy is not very high.
  • a primary object of the present invention is to provide a method for quickly and automatically calibrating a visual sweeping robot odometer.
  • the present invention provides a method for measuring a compensation coefficient of a visual sweeping robot odometer.
  • the ground and ceiling of the measurement environment are both horizontally set.
  • the method includes:
  • the visual sweeping robot moves a distance within the test environment while the camera captures the ceiling image
  • the compensation coefficient is calculated by dividing the displacement of the actual movement of the cleaning robot by 1 ⁇ 2 by the displacement of the cleaning robot recorded by the odometer 1 ⁇ 1.
  • the step of calculating the displacement 1 ⁇ 2 of the actual movement of the visual sweeping robot according to the acquired image comprises: ⁇ 0 2019/104741 ⁇ (:17 ⁇ 2017/114340
  • the feature points in the picture are spatially reconstructed three-dimensionally, and the three-dimensional space coordinates of the feature points are obtained, thereby obtaining three-dimensional information of the image;
  • the step of calculating the displacement 1 ⁇ 2 of the actual movement of the visual cleaning robot according to the three-dimensional information of the image comprises:
  • the step of calculating the scale information 8 corresponding to each scale according to a preset rule includes:
  • the scale information 8 is calculated by dividing the actual height of the camera from the ceiling by the number of scales 12 from the camera to the ceiling plane.
  • the obtaining the number of scales 12 of the camera to the ceiling plane comprises the steps of:
  • represents the coordinates of the camera in the three-dimensional space.
  • the method includes the following steps:
  • the step of repeatedly calculating a plurality of compensation coefficients multiple times includes:
  • the visual sweeping robot calculates a plurality of compensation coefficients after moving on the ground of different materials.
  • the present invention also provides a system for measuring a compensation coefficient of a visual sweeping robot odometer.
  • the ground and ceiling of the measurement environment are both horizontally set.
  • the system includes:
  • a mobile device configured for the visual sweeping robot to move a distance within the test environment, and the camera captures a ceiling image; ⁇ 0 2019/104741 ⁇ (:17 ⁇ 2017/114340
  • an actual displacement device configured to calculate a displacement of the actual movement of the visual sweeping robot according to the collected picture
  • odometer displacement device used to obtain the displacement recorded by the odometer 1 ⁇ 1;
  • the compensation coefficient device is configured to calculate the compensation coefficient by dividing the displacement of the actual movement of the cleaning robot by 1 ⁇ 2 by the displacement of the cleaning robot recorded by the odometer by 1 ⁇ 1.
  • the actual displacement device includes:
  • a building module configured to perform spatial three-dimensional reconstruction of the feature points in the image according to the image captured by the visual sweeping robot, to obtain a three-dimensional space coordinate of the feature point, and thereby obtain three-dimensional information of the image;
  • a calculation module configured to calculate, according to the three-dimensional information of the image, a displacement of the actual movement of the visual cleaning robot by 1 ⁇ 2.
  • the calculating module includes:
  • a moving scale sub-module configured to acquire a scale number of the moving distance of the visual sweeping robot in the three-dimensional space 11
  • a length information sub-module configured to calculate scale information corresponding to each scale according to a preset rule
  • the calculation formula sub-module is configured to multiply the scale number 8 of the three-dimensional space by the moving distance of the visual sweeping robot by the scale information 8 to calculate the displacement 1 ⁇ 2 of the actual movement of the visual sweeping robot.
  • the length information submodule includes:
  • the obtaining the scale unit comprises:
  • the system for measuring a compensation coefficient of a visual sweeping robot odometer further includes: ⁇ 0 2019/104741 ⁇ (:17 ⁇ 2017/114340
  • a plurality of calculation means for calculating the distance between the normal line !1 and the camera of the sweeping visual robot, and 2 is obtained.
  • the multiple calculation device includes:
  • the ground module is configured to calculate a plurality of compensation coefficients after the visual sweeping robot moves on the ground of different materials.
  • the beneficial effects of the present invention are: using the sensor of the visual sweeping robot to automatically calculate the compensation coefficient, improve the calibration efficiency of the visual sweeping robot, reduce the time for manual calibration, and provide trademarks. Precision.
  • FIG. 1 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention
  • FIG. 6 is a schematic structural view of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of an actual displacement device of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of a calculation module of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention
  • 9 is a length letter of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the invention. ⁇ 0 2019/104741 ⁇ (: 17 ⁇ 2017/114340 structure diagram of the sub-module;
  • FIG. 10 is a schematic structural diagram of a calculation height unit of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention
  • FIG. 11 is a schematic structural view of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention.
  • the measuring method includes the following steps:
  • the visual sweeping robot moves a distance within the test environment, and the camera captures the ceiling image
  • the displacement coefficient is calculated by dividing the displacement of the actual movement of the cleaning robot by 1 ⁇ 2 by the displacement of the sweeping robot recorded by the odometer by 1 ⁇ 1 .
  • the visual sweeping robot moves within the environment, and the floor and the ceiling are horizontally disposed, that is, the floor and the ceiling are flat planes, without slope, curvature, and inclination, the visual sweeping robot can move normally, and the visual sweeping is performed.
  • the machine has a vision system, and the vision system uses the machine instead of the human eye to make measurements and judgments.
  • the visual system refers to the conversion of the ingested target into an image signal by a machine vision product (ie, an image capturing device, divided into CMOS and CCD), and transmitted to a dedicated image processing system, and converted into information according to pixel distribution, brightness, color, and the like.
  • the vision system performs various operations on these signals to extract features of the target, and then controls the behavior of the device in the field based on the result of the discrimination. It can be used to measure distances.
  • the visual sweeping robot is equipped with a vision system that can measure the distance of obstacles in front and obtain map information of the cleaning environment.
  • the acquisition map is based on the measurement environment and the vision system. ⁇ 0 2019/104741 ⁇ (:17 ⁇ 2017/114340 piece, measure the actual movement displacement L2 of a distance moved by the visual sweeping robot, and then read the displacement L1 calculated by the odometer of the visual sweeping robot at this distance, By dividing L2 by L1, the compensation factor can be calculated.
  • step S2 includes:
  • the visual system takes a picture, extracts feature points according to the photographed photos, performs spatial three-dimensional reconstruction according to the feature points, and converts the captured two-dimensional image into a three-dimensional image
  • the camera calibration is used to establish an effective imaging model, and the internal and external parameters of the camera are solved, so that the three-dimensional point coordinates in the space can be obtained by combining the matching results of the image, thereby achieving the purpose of three-dimensional reconstruction, constructing a three-dimensional space, and then moving the visual sweeping robot.
  • the front position and the moved position are marked in the three-dimensional space, and the actual moving distance L2 of the visual cleaning robot is calculated in the coordinate system.
  • the three-dimensional space is established, and the position of the visual sweeping robot is more accurately obtained, and the calculated actual moving distance L2 is more accurate.
  • step S22 includes:
  • each dimension has a scale at intervals, and the distance corresponding to the scale refers to the scale information s.
  • the scale number T1 of the movement of the visual sweeping robot is acquired, and then L2 is calculated based on the length information s of each scale number based on the two quantities. Specifically, L2 is equal to the product of T1 and s.
  • the size of s can be calculated according to preset rules and some parameters preset by the user.
  • the step of calculating the length information s S222 corresponding to each scale according to a preset rule includes:
  • the camera in the three-dimensional space, the camera is a point, and the ceiling is in a plane, and the number of scales of the camera and the ceiling plane is calculated.
  • the actual distance value between the camera and the ceiling can be calculated according to the known environment. That is, the actual distance value corresponding to the scale number can be calculated, and then the actual length value corresponding to each scale can be obtained obviously.
  • the s can be calculated by dividing the actual height H of the camera from the ceiling by the number of scales T2 from the camera to the ceiling plane. In the known environment, the height m of the ceiling from the ground is known.
  • step S2221 includes:
  • RANSAC is an abbreviation of Random Sample Consensus, which is an algorithm for calculating valid mathematical sample parameters based on a set of sample data sets containing abnormal data, and obtaining valid sample data.
  • the RANSAC algorithm is often used in computer vision to solve the matching point problem of a pair of cameras and the calculation of the basic matrix in the field of stereo vision.
  • the camera has a certain angle.
  • the established three-dimensional space contains many points on the ceiling plane. By fitting with RANSAC, the plane of the ceiling plane in the straight three-dimensional space can be calculated. The plane is the normal of the ceiling plane in three-dimensional space. Use n to indicate.
  • the distance from the ceiling to the camera of the visual sweeping robot is calculated according to the normal in the three-dimensional space, that is, the distance T2 between the camera and the ceiling in the three-dimensional space, and the T2 is the scale number in the three-dimensional coordinate system, instead of the actual distance value.
  • the vector in this three-dimensional space ⁇ 0 2019/104741 ⁇ (:17 ⁇ 2017/114340
  • the method includes the following steps:
  • the compensation coefficient after the compensation coefficient is calculated, the compensation coefficient inevitably has an error. Moreover, the error is a random error. To further reduce the error, the best method is to perform multiple experimental calculations. Repeat the above steps of 31 ⁇ 4 to obtain a plurality of compensation coefficients, and calculate an average value of the plurality of compensation coefficients. The average value is used as the final compensation coefficient to improve the accuracy of the detection distance of the visual sweeping robot.
  • the step of repeatedly calculating the plurality of compensation coefficients multiple times includes:
  • the visual sweeping robot calculates a plurality of compensation coefficients after moving on the ground of different materials.
  • the general household floor includes various materials such as concrete floor, tile, wooden floor, and carpet. After the compensation coefficient is measured on the floor with different friction coefficients of different materials, the average is calculated, and a standard compensation coefficient is finally obtained.
  • the present invention further provides a system for measuring a compensation coefficient of a visual sweeping robot odometer, wherein the ground and ceiling of the measurement environment are both horizontally arranged, and the system includes:
  • the mobile device 1 is configured to move the visual sweeping robot within the test environment for a distance while the camera captures the ceiling image;
  • the actual displacement device 2 is configured to calculate a displacement of the actual movement of the visual sweeping robot by 1 ⁇ 2 according to the acquired picture;
  • odometer displacement device 3 used to obtain the displacement calculated by the odometer 1 ⁇ 1;
  • the compensation coefficient device 4 is configured to calculate the compensation coefficient by dividing the displacement 1 ⁇ 2 of the actual movement of the cleaning robot by the displacement 1 ⁇ 1 of the cleaning robot recorded by the odometer.
  • the visual sweeping robot moves within the environment, and the floor and the ceiling are horizontally disposed, that is, the floor and the ceiling are flat planes, and the sweeping robot can move normally without slope, curvature, and tilt, and the visual sweeping machine
  • the vision system uses machines instead of the human eye to make measurements and judgments.
  • the visual system refers to the conversion of the ingested target into an image signal by a machine vision product (ie, an image capturing device, divided into CMOS and CCD), and transmitted to a dedicated image processing system, and converted into information according to pixel distribution, brightness, color, and the like.
  • the visual system carries out various operations on these signals ⁇ 0 2019/104741 ⁇ (:17 ⁇ 2017/114340 Calculate the characteristics of the target, and then control the action of the device according to the result of the discrimination.
  • the mobile device 1 of the visual sweeping robot controls the visual sweeping When the robot moves, the camera is simultaneously controlled to take a picture, and a picture of the ceiling is collected.
  • the actual displacement device 2 collects a picture according to the measurement environment and the vision system, and measures the actual movement displacement L2 of a distance moved by the visual sweeping robot, and then The odometer displacement device 3 reads the displacement L1 calculated by the odometer of the visual sweeping robot at this distance, and the compensation coefficient device 4 divides L2 by L1 to calculate the compensation coefficient.
  • the actual displacement device 2 includes:
  • the building module 21 is configured to perform spatial three-dimensional reconstruction according to the image captured by the visual sweeping robot, and obtain three-dimensional spatial coordinates of the feature point, thereby obtaining three-dimensional information of the image;
  • the calculating module 22 is configured to calculate a displacement L2 of the actual movement of the visual cleaning robot according to the three-dimensional information of the image.
  • the visual system takes a picture
  • the building module 21 extracts the feature points according to the photographed photos, performs spatial three-dimensional reconstruction according to the feature points, and converts the captured two-dimensional images into three-dimensional images.
  • the internal and external parameters of the camera are solved, so that the three-dimensional point coordinates in the space can be obtained by combining the matching results of the image, thereby achieving the purpose of three-dimensional reconstruction, constructing a three-dimensional space, and then sweeping the vision.
  • the position before the movement of the robot and the position after the movement are marked in the three-dimensional space, and the calculation module 22 calculates the actual moving distance L2 of the visual cleaning robot in the coordinate system.
  • the three-dimensional space is established, and the position of the visual sweeping robot is more accurately obtained, and the calculated actual moving distance L2 is more accurate.
  • the calculating module 22 includes:
  • the moving scale sub-module 221 is configured to acquire the scale number of the movement of the visual sweeping robot in three-dimensional space T1
  • the length information sub-module 222 is configured to calculate scale information S corresponding to each scale according to a preset rule ;
  • the calculation formula sub-module 223 is configured to calculate the scale information L2 by multiplying the scale number T 1 of the three-dimensional space by the moving distance of the visual sweeping robot by the scale information s.
  • each dimension has a scale at intervals, and the distance corresponding to the scale refers to the scale information s.
  • the moving scale sub-module 221 acquires the scale number T1 of the movement of the visual sweeping robot, and then the length information sub-module 222 calculates the length s corresponding to each scale, ⁇ 0 2019/104741 ⁇ (: 17 ⁇ 2017/114340 calculation formula sub-module 223 according to the length information 8 of each scale number, according to these two quantities can be calculated 1 ⁇ 2.
  • 1 ⁇ 2 is equal 11 and 8 and the product.
  • the size of 8 can be calculated according to preset rules and some parameters preset by the user.
  • the length information sub-module 222 includes:
  • a calculation height unit 2222 configured to calculate the actual height of the camera from the ceiling according to the known environmental information and the parameters of the visual cleaning robot itself
  • the calculation formula unit 2223 is configured to calculate the scale information 8 by dividing the actual height 11 of the camera from the ceiling by the scale number 12 of the camera to the ceiling plane.
  • the camera in the three-dimensional coordinate space, the camera is a point, the ceiling is located in a plane, and the calculation scale unit 2221 calculates the number of scales of the camera and the ceiling plane. Additionally, the calculated height unit 2222 can calculate the actual distance value between the camera and the ceiling, according to known circumstances. That is, the actual distance value corresponding to the scale number can be calculated, and then the actual length value corresponding to each scale can be obtained obviously.
  • the calculation formula unit 2223 divides the actual height 11 of the camera from the ceiling by the number of scales of the camera to the ceiling plane by 2, that is, 8 can be calculated. In known environments, the height of the ceiling from the ground is known.
  • the height 112 of the camera on the visual sweeping robot is known, then the visual sweeping robot is placed on the ground.
  • the actual distance between the camera and the ceiling is Then divide by 2 and calculate the scale information 8.
  • the calculating the scale unit 2222 includes:
  • Abbreviation which is an algorithm for obtaining valid sample data based on a set of sample data sets containing abnormal data, mathematical model parameters of the data.
  • the RANSAC algorithm is often used in computer vision to solve the matching point problem of a pair of cameras and the calculation of the basic matrix in the field of stereo vision.
  • the camera has a certain angle.
  • the established three-dimensional space contains many points on the ceiling plane.
  • the normal subunit 22221 is fitted with RANSAC. ⁇ 0 2019/104741 ⁇ (:17 ⁇ 2017/114340 to calculate the plane of the ceiling plane in the straight three-dimensional space, the plane is represented in the three-dimensional space n.
  • the normal calculates the distance from the ceiling to the camera of the visual sweeping robot, which is the distance T2 from the camera to the ceiling in three dimensions, which is the number of scales in the three-dimensional coordinate system, rather than the actual distance value.
  • T2 the distance from the ceiling to the camera of the visual sweeping robot
  • T2 the distance from the camera to the ceiling in three dimensions, which is the number of scales in the three-dimensional coordinate system, rather than the actual distance value.
  • the system for measuring a visual sweeping robot odometer compensation coefficient further includes
  • the multi-calculation device 5 is configured to calculate the distance between the normal n and the camera of the sweeping visual robot to obtain T2.
  • the compensation coefficient after the compensation coefficient is calculated, the compensation coefficient inevitably has an error. Moreover, the error is a random error. To further reduce the error, the best method is to perform multiple experimental calculations. The multiple calculation device repeatedly repeats the above device operation calculation to obtain multiple compensation coefficients, and calculates the average of multiple compensation coefficients. The average value is used as the final compensation coefficient to improve the accuracy of the detection distance of the visual sweeping robot.
  • the multiple calculation device 5 includes:
  • the ground module 51 is configured to calculate a plurality of compensation coefficients after the visual sweeping robot moves on the ground of different materials.
  • the general household floor includes various materials such as concrete floor, tile, wooden floor, and carpet.
  • the ground module 51 measures the compensation coefficients on the floor with different friction coefficients of different materials, and then averages them to obtain a standard compensation coefficient.

Abstract

A method and system for measuring a compensating coefficient for an odometer of a visual robot cleaner. The method comprises: calculating an actual displacement of the visual robot cleaner in a designated environment according to pictures photographed during the movement, and calculating the displacement by the odometer, and then calculating the compensating coefficient according to a formula, so as to improve the speed and accuracy of calculation.

Description

\¥0 2019/104741 卩(:17 \2017/114340  \¥0 2019/104741 卩(:17 \2017/114340
测量视觉扫地机器人里程计补偿系数的方法及系统 技术领域 Method and system for measuring compensation coefficient of visual sweeping robot odometer
[0001] 本发明涉及到视觉扫地机器人出厂检测领域, 特别是涉及到一种测量视觉扫地 机器人里程计补偿系数的方法及系统。  [0001] The present invention relates to the field of factory inspection of visual sweeping robots, and more particularly to a method and system for measuring the compensation coefficient of a visual sweeping robot odometer.
背景技术  Background technique
[0002] 里程计是视觉扫地机器人上一种关键部件, 用来测量视觉扫地机器人的位移和 移动速度。 里程计一般设置有编码器, 根据编码器转动的角度以及轮子的周长 计算移动的距离。 因环境因素或结构等因素, 里程计计算出的移动距离与实际 距离有一定的差距, 一般在出厂前都要对里程计进行标定, 计算出补偿系数对 里程计计算出的距离进行补偿, 使之检测的距离准确。  [0002] The odometer is a key component of a visual sweeping robot used to measure the displacement and moving speed of a visual sweeping robot. The odometer is typically provided with an encoder that calculates the distance traveled based on the angle at which the encoder rotates and the circumference of the wheel. Due to environmental factors or structural factors, the calculated distance between the odometer and the actual distance is different. Generally, the odometer is calibrated before leaving the factory, and the compensation coefficient is calculated to compensate the distance calculated by the odometer. The detected distance is accurate.
[0003] 现在视觉扫地机器人在出厂前都是人工手动标定计算出补偿系数, 这样测量出 的速度比较慢, 而且精度也不是很高。  [0003] Nowadays, the visual sweeping robot is manually manually calibrated to calculate the compensation coefficient before leaving the factory, so that the measured speed is relatively slow and the accuracy is not very high.
技术问题  technical problem
[0004] 本发明的主要目的为提供一种可以快速自动标定视觉扫地机器人里程计方法。  [0004] A primary object of the present invention is to provide a method for quickly and automatically calibrating a visual sweeping robot odometer.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0005] 本发明提出一种测量视觉扫地机器人里程计补偿系数的方法, 测量环境的地面 与天花板均为水平设置, 所述方法包括:  [0005] The present invention provides a method for measuring a compensation coefficient of a visual sweeping robot odometer. The ground and ceiling of the measurement environment are both horizontally set. The method includes:
[0006] 视觉扫地机器人在所述测试环境内移动一段距离, 同时摄像头采集天花板图像  [0006] The visual sweeping robot moves a distance within the test environment while the camera captures the ceiling image
[0007] 根据采集的图像, 计算视觉扫地机器人实际移动的位移!^2; [0007] calculating the displacement of the actual movement of the visual sweeping robot according to the acquired image! ^ 2;
[0008] 获取里程计记录的扫地机器人的位移0 ;  [0008] obtaining the displacement 0 of the sweeping robot recorded by the odometer;
[0009] 用扫地机器人实际移动的位移1^2除以里程计记录的扫地机器人的位移1^1, 计算 得出补偿系数。 [0009] The compensation coefficient is calculated by dividing the displacement of the actual movement of the cleaning robot by 1 ^ 2 by the displacement of the cleaning robot recorded by the odometer 1 ^ 1.
[0010] 进一步地, 所述根据采集的图像, 计算视觉扫地机器人实际移动的位移 1^2的步 骤包括: \¥0 2019/104741 卩(:17 \2017/114340 [0010] Further, the step of calculating the displacement 1 ^ 2 of the actual movement of the visual sweeping robot according to the acquired image comprises: \¥0 2019/104741 卩(:17 \2017/114340
[0011] 根据视觉扫地机器人采集的图片, 将图片中的特征点进行空间三维重构, 得到 所述特征点的三维空间坐标, 进而得到该图像的三维信息; [0011] according to the picture collected by the visual sweeping robot, the feature points in the picture are spatially reconstructed three-dimensionally, and the three-dimensional space coordinates of the feature points are obtained, thereby obtaining three-dimensional information of the image;
[0012] 根据所述图像的三维信息, 计算出所述视觉扫地机器人实际移动的位移 2。  [0012] calculating a displacement 2 of the actual movement of the visual cleaning robot according to the three-dimensional information of the image.
[0013] 进一步地, 所述根据所述图像的三维信息, 计算出所述视觉扫地机器人实际移 动的位移1^2的步骤包括: [0013] Further, the step of calculating the displacement 1 ^ 2 of the actual movement of the visual cleaning robot according to the three-dimensional information of the image comprises:
[0014] 获取视觉扫地机器人的移动距离在三维空间的标度数11 ;  [0014] obtaining a moving distance of the visual sweeping robot in a three-dimensional space of the number 11;
[0015] 根据预设的规则计算出每个标度对应的尺度信息  [0015] calculating scale information corresponding to each scale according to a preset rule
[0016] 用视觉扫地机器人的移动距离在三维空间的标度数11乘以尺度信息 8 , 计算得 出视觉扫地机器人实际移动的位移 1^2。 [0016] Multiplying the moving distance of the visual sweeping robot by the scale number 11 in the three-dimensional space by the scale information 8 to calculate the displacement 1 ^ 2 of the actual movement of the visual sweeping robot.
[0017] 进一步地, 所述根据预设的规则计算出每个标度对应的尺度信息 8的步骤包括 [0017] Further, the step of calculating the scale information 8 corresponding to each scale according to a preset rule includes:
[0018] 获得摄像头到天花板平面的标度数了2; [0018] obtaining a camera to ceiling plane number of 2;
[0019] 根据已知环境信息以及视觉扫地机器人自身的参数, 计算出摄像头距离天花板 的实际高度  [0019] calculating the actual height of the camera from the ceiling based on the known environmental information and the parameters of the visual sweeping robot itself
[0020] 用摄像头距离天花板的实际高度 除以摄像头到天花板平面的标度数 12, 计算 得出尺度信息 8。  [0020] The scale information 8 is calculated by dividing the actual height of the camera from the ceiling by the number of scales 12 from the camera to the ceiling plane.
[0021] 进一步地, 所述获得摄像头到天花板平面的标度数 12包括步骤:  [0021] Further, the obtaining the number of scales 12 of the camera to the ceiling plane comprises the steps of:
[0022] 使用 RANSAC平面拟合估计天花板平面, 得到法线 11;  [0022] Estimating the ceiling plane using RANSAC plane fitting to obtain normal 11;
[0023] 根据公式12=11 «^计算得到摄像头到天花板平面的标度数 12, 其中  [0023] Calculate the number of scales from the camera to the ceiling plane according to the formula 12=11 «^, where
表示法线 11在该重建空间的向量, \表示摄像头在所述三维空间中的坐标。  The vector representing the normal 11 in the reconstruction space, \ represents the coordinates of the camera in the three-dimensional space.
[0024] 进一步地, 所述计算得出补偿系数后包括步骤:  [0024] Further, after the calculating the compensation coefficient, the method includes the following steps:
[0025] 重复多次计算出多个补偿系数, 计算多个补偿系数的平均值。  [0025] Calculating a plurality of compensation coefficients a plurality of times and calculating an average value of the plurality of compensation coefficients.
[0026] 进一步地, 所述重复多次计算出多个补偿系数的步骤包括:  [0026] Further, the step of repeatedly calculating a plurality of compensation coefficients multiple times includes:
[0027] 视觉扫地机器人分别在不同材质的地面上移动后计算出多个补偿系数。  [0027] The visual sweeping robot calculates a plurality of compensation coefficients after moving on the ground of different materials.
[0028] 本发明还提出一种测量视觉扫地机器人里程计补偿系数的系统, 测量环境的地 面与天花板均为水平设置, 所述系统包括:  [0028] The present invention also provides a system for measuring a compensation coefficient of a visual sweeping robot odometer. The ground and ceiling of the measurement environment are both horizontally set. The system includes:
[0029] 移动装置, 用于视觉扫地机器人在所述测试环境内移动一段距离, 同时摄像头 采集天花板图片; \¥0 2019/104741 卩(:17 \2017/114340 [0029] a mobile device, configured for the visual sweeping robot to move a distance within the test environment, and the camera captures a ceiling image; \¥0 2019/104741 卩(:17 \2017/114340
[0030] 实际位移装置, 用于根据采集的图片, 计算出视觉扫地机器人实际移动的位移[0030] an actual displacement device, configured to calculate a displacement of the actual movement of the visual sweeping robot according to the collected picture
1^2; 1 ^ 2;
[0031] 里程计位移装置, 用于获取里程计记录的位移 1^1 ; [0031] odometer displacement device, used to obtain the displacement recorded by the odometer 1 ^ 1;
[0032] 补偿系数装置, 用于用扫地机器人实际移动的位移 1^2除以里程计记录的扫地机 器人的位移 1^1, 计算得出补偿系数。 [0032] The compensation coefficient device is configured to calculate the compensation coefficient by dividing the displacement of the actual movement of the cleaning robot by 1 ^ 2 by the displacement of the cleaning robot recorded by the odometer by 1 ^ 1.
[0033] 进一步地, 所述实际位移装置包括:  [0033] Further, the actual displacement device includes:
[0034] 构建模块, 用于根据视觉扫地机器人采集的图片, 将图片中的特征点进行空间 三维重构, 得到所述特征点的三维空间坐标, 进而得到该图像的三维信息; [0034] a building module, configured to perform spatial three-dimensional reconstruction of the feature points in the image according to the image captured by the visual sweeping robot, to obtain a three-dimensional space coordinate of the feature point, and thereby obtain three-dimensional information of the image;
[0035] 计算模块, 用于根据所述图像的三维信息, 计算出所述视觉扫地机器人实际移 动的位移1^2。 [0035] a calculation module, configured to calculate, according to the three-dimensional information of the image, a displacement of the actual movement of the visual cleaning robot by 1 ^ 2.
[0036] 进一步地, 所述计算模块包括:  [0036] Further, the calculating module includes:
[0037] 移动标度子模块, 用于获取视觉扫地机器人的移动距离在三维空间的标度数11  [0037] a moving scale sub-module, configured to acquire a scale number of the moving distance of the visual sweeping robot in the three-dimensional space 11
[0038] 长度信息子模块, 用于根据预设的规则计算出每个标度对应的尺度信息 [0038] a length information sub-module, configured to calculate scale information corresponding to each scale according to a preset rule
[0039] 计算公式子模块, 用于用视觉扫地机器人的移动距离在三维空间的标度数 11乘 以尺度信息 8 , 计算得出视觉扫地机器人实际移动的位移 1^2。 [0039] The calculation formula sub-module is configured to multiply the scale number 8 of the three-dimensional space by the moving distance of the visual sweeping robot by the scale information 8 to calculate the displacement 1 ^ 2 of the actual movement of the visual sweeping robot.
[0040] 进一步地, 所述长度信息子模块包括:  [0040] Further, the length information submodule includes:
[0041] 获得标度单元, 用于获得摄像头到天花板平面的标度数了2;  [0041] obtaining a scale unit, the number of scales used to obtain the camera to the ceiling plane is 2;
[0042] 计算高度单元, 用于根据已知环境信息以及视觉扫地机器人自身的参数, 计算 出摄像头距离天花板的实际高度  [0042] calculating a height unit for calculating the actual height of the camera from the ceiling based on the known environmental information and the parameters of the visual sweeping robot itself
[0043] 计算公式单元, 用于根据用摄像头距离天花板的实际高度 除以摄像头到天花 板平面的标度数12, 计算得出尺度信息 8。  [0043] A calculation formula unit for calculating the scale information 8 based on the actual height of the camera from the ceiling divided by the scale number 12 of the camera to the ceiling plane.
[0044] 进一步地, 所述获得标度单元包括:  [0044] Further, the obtaining the scale unit comprises:
[0045] 法线子单元, 用于使用 RANSAC平面拟合估计天花板平面, 得到法线!1; [0045] a normal subunit for estimating the ceiling plane using RANSAC plane fitting to obtain a normal! 1 ;
[0046] 计算距离子单元, 用于根据公式 12=!! «X, 计算得到摄像头到天花板平面的标 度数了2, 其中 表示法线!1在该重建空间的向量, X表示摄像头在所述三维空间 中的坐标。  [0046] calculating a distance subunit for calculating a camera-to-ceiling plane scale number 2 according to the formula 12=!! «X, wherein the normal line is represented by a vector in the reconstruction space, where X indicates that the camera is in the The coordinates in 3D space.
[0047] 进一步地, 所述测量视觉扫地机器人里程计补偿系数的系统还包括: \¥0 2019/104741 卩(:17 \2017/114340 [0047] Further, the system for measuring a compensation coefficient of a visual sweeping robot odometer further includes: \¥0 2019/104741 卩(:17 \2017/114340
[0048] 多次计算装置, 用于计算法线 !1与扫地视觉机器人摄像头的距离, 得到了2。 [0048] A plurality of calculation means for calculating the distance between the normal line !1 and the camera of the sweeping visual robot, and 2 is obtained.
[0049] 进一步地, 所述多次计算装置包括: [0049] Further, the multiple calculation device includes:
[0050] 地面模块, 用于视觉扫地机器人分别在不同材质的地面上移动后计算出多个补 偿系数。  [0050] The ground module is configured to calculate a plurality of compensation coefficients after the visual sweeping robot moves on the ground of different materials.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0051] 与现有技术相比, 本发明的有益效果是: 利用视觉扫地机器人自身的传感器就 可以自动完成补偿系数的计算, 提高视觉扫地机器人的标定效率, 减少人工标 定的时间, 提商标定精度。  Compared with the prior art, the beneficial effects of the present invention are: using the sensor of the visual sweeping robot to automatically calculate the compensation coefficient, improve the calibration efficiency of the visual sweeping robot, reduce the time for manual calibration, and provide trademarks. Precision.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0052] 图 1是本发明一实施例的测量视觉扫地机器人里程计补偿系数的方法的步骤示 意图;  1 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention;
[0053] 图 2是本发明一实施例的测量视觉扫地机器人里程计补偿系数的方法的步骤示 意图;  2 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention;
[0054] 图 3是本发明一实施例的测量视觉扫地机器人里程计补偿系数的方法的步骤示 意图;  3 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention;
[0055] 图 4是本发明一实施例的测量视觉扫地机器人里程计补偿系数的方法的步骤示 意图;  4 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention;
[0056] 图 5是本发明一实施例的测量视觉扫地机器人里程计补偿系数的方法的步骤示 意图;  5 is a schematic diagram showing the steps of a method for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention;
[0057] 图 6是本发明一实施例的测量视觉扫地机器人里程计补偿系数的系统的结构示 意图;  6 is a schematic structural view of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention;
[0058] 图 7是本发明一实施例的测量视觉扫地机器人里程计补偿系数的系统的实际位 移装置的结构示意图;  7 is a schematic structural diagram of an actual displacement device of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention;
[0059] 图 8是本发明一实施例的测量视觉扫地机器人里程计补偿系数的系统的计算模 块的结构示意图;  8 is a schematic structural diagram of a calculation module of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention;
[0060] 图 9是本发明一实施例的测量视觉扫地机器人里程计补偿系数的系统的长度信 \¥0 2019/104741 卩(:17 \2017/114340 息子模块的结构示意图; 9 is a length letter of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the invention. \¥0 2019/104741 卩 (: 17 \2017/114340 structure diagram of the sub-module;
[0061] 图 10是本发明一实施例的测量视觉扫地机器人里程计补偿系数的系统的计算高 度单元的结构示意图;  10 is a schematic structural diagram of a calculation height unit of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention;
[0062] 图 11是本发明一实施例的测量视觉扫地机器人里程计补偿系数的系统的结构示 意图。  11 is a schematic structural view of a system for measuring a compensation coefficient of a visual sweeping robot odometer according to an embodiment of the present invention.
[0063] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。  [0063] The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
实施该发明的最佳实施例  BEST MODE FOR CARRYING OUT THE INVENTION
本发明的最佳实施方式  BEST MODE FOR CARRYING OUT THE INVENTION
[0064] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。  The specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0065] 参照图 1, 提出本发明一测量视觉扫地机器人里程计补偿系数的方法, 测量环 境的地面和天花板均是水平设置, 而且这两个平面的距离是已知的, 测量方法 包括步骤:  [0065] Referring to FIG. 1, a method for measuring a compensation coefficient of a visual sweeping robot odometer is proposed. The ground and ceiling of the measurement environment are horizontally set, and the distance between the two planes is known. The measuring method includes the following steps:
[0066] 1、 视觉扫地机器人在所述测试环境内移动一段距离, 同时摄像头采集天花板 图片;  [0066] 1. The visual sweeping robot moves a distance within the test environment, and the camera captures the ceiling image;
[0067] 2、 根据采集的图片, 计算视觉扫地机器人实际移动的位移!^2; [0067] 2. Calculate the displacement of the actual movement of the visual sweeping robot according to the collected picture! ^ 2;
[0068] 33、 获取里程计记录的位移0 ;  [0068] 33, obtain the displacement 0 recorded by the odometer;
[0069] 4、 用扫地机器人实际移动的位移1^2除以里程计记录的扫地机器人的位移1^1 , 计算得出补偿系数。 [0069] 4. The displacement coefficient is calculated by dividing the displacement of the actual movement of the cleaning robot by 1 ^ 2 by the displacement of the sweeping robot recorded by the odometer by 1 ^ 1 .
[0070] 本实施例中, 视觉扫地机器人在该环境内移动, 地板和天花板均是水平设置, 即地板和天花板是平整的平面, 没有坡度、 弧度、 倾斜, 视觉扫地机器人可以 正常移动, 视觉扫地机器带有视觉系统, 视觉系统就是用机器代替人眼来做测 量和判断。 视觉系统是指通过机器视觉产品 (即图像摄取装置, 分CMOS和CCD 两种) 将被摄取目标转换成图像信号, 传送给专用的图像处理系统, 根据像素 分布和亮度、 颜色等信息, 转变成数字化信号; 视觉系统对这些信号进行各种 运算来抽取目标的特征, 进而根据判别的结果来控制现场的设备动作。 可以用 于测量距离, 视觉扫地机器人安装有视觉系统可以测量前方障碍物的距离、 获 取清扫环境的地图信息等。 在该实施例中, 根据测量环境以及视觉系统采集图 \¥0 2019/104741 卩(:17 \2017/114340 片, 测量出视觉扫地机器人移动的一段距离的实际移动位移 L2, 然后读取在这 段距离视觉扫地机器人的里程计计算出的位移 L1, 用 L2除以 L1, 就可以计算出 补偿系数。 [0070] In this embodiment, the visual sweeping robot moves within the environment, and the floor and the ceiling are horizontally disposed, that is, the floor and the ceiling are flat planes, without slope, curvature, and inclination, the visual sweeping robot can move normally, and the visual sweeping is performed. The machine has a vision system, and the vision system uses the machine instead of the human eye to make measurements and judgments. The visual system refers to the conversion of the ingested target into an image signal by a machine vision product (ie, an image capturing device, divided into CMOS and CCD), and transmitted to a dedicated image processing system, and converted into information according to pixel distribution, brightness, color, and the like. Digitized signals; The vision system performs various operations on these signals to extract features of the target, and then controls the behavior of the device in the field based on the result of the discrimination. It can be used to measure distances. The visual sweeping robot is equipped with a vision system that can measure the distance of obstacles in front and obtain map information of the cleaning environment. In this embodiment, the acquisition map is based on the measurement environment and the vision system. \¥0 2019/104741 卩(:17 \2017/114340 piece, measure the actual movement displacement L2 of a distance moved by the visual sweeping robot, and then read the displacement L1 calculated by the odometer of the visual sweeping robot at this distance, By dividing L2 by L1, the compensation factor can be calculated.
[0071] 参照图 2, 进一步地, 所述步骤 S2包括:  [0071] Referring to FIG. 2, further, the step S2 includes:
[0072] S21、 根据视觉扫地机器人采集的图片, 将图片中的特征点进行空间三维重构 [0072] S21. Perform spatial three-dimensional reconstruction of the feature points in the image according to the image captured by the visual sweeping robot.
, 得到所述特征点的三维空间坐标, 进而得到该图像的三维信息; Obtaining a three-dimensional space coordinate of the feature point, thereby obtaining three-dimensional information of the image;
[0073] S22、 根据所述三维信息, 计算出所述视觉扫地机器人实际移动的位移 L2。  [0073] S22. Calculate a displacement L2 of the actual movement of the visual cleaning robot according to the three-dimensional information.
[0074] 本实施例中, 视觉扫地机器人在清扫时, 视觉系统拍照, 并根据拍摄的照片提 取特征点, 依据特征点进行空间三维重构, 即将拍摄的二维图片转换成三维的 图片, 通过摄像机标定来建立有效的成像模型, 求解出摄像机的内外参数, 这 样就可以结合图像的匹配结果得到空间中的三维点坐标, 从而达到进行三维重 建的目的, 建成三维空间, 然后将视觉扫地机器人移动前的位置和移动后的位 置标注在该三维空间中, 在该坐标体系中计算出视觉扫地机器人的实际移动距 离 L2。 建立三维空间, 更加精准的获取视觉扫地机器人的位置, 计算出来的实 际移动距离 L2更加准确。  [0074] In the embodiment, when the visual sweeping robot cleans, the visual system takes a picture, extracts feature points according to the photographed photos, performs spatial three-dimensional reconstruction according to the feature points, and converts the captured two-dimensional image into a three-dimensional image, The camera calibration is used to establish an effective imaging model, and the internal and external parameters of the camera are solved, so that the three-dimensional point coordinates in the space can be obtained by combining the matching results of the image, thereby achieving the purpose of three-dimensional reconstruction, constructing a three-dimensional space, and then moving the visual sweeping robot. The front position and the moved position are marked in the three-dimensional space, and the actual moving distance L2 of the visual cleaning robot is calculated in the coordinate system. The three-dimensional space is established, and the position of the visual sweeping robot is more accurately obtained, and the calculated actual moving distance L2 is more accurate.
[0075] 参照图 3, 进一步地, 步骤 S22包括:  [0075] Referring to FIG. 3, further, step S22 includes:
[0076] S221、 获取视觉扫地机器人的移动距离在三维空间的标度数 T1 ;  [0076] S221. Obtain a scale number T1 of a moving distance of the visual sweeping robot in a three-dimensional space;
[0077] S222、 根据预设的规则计算出每个标度对应的尺度信息 s;  [0077] S222, calculating scale information s corresponding to each scale according to a preset rule;
[0078] S223、 用视觉扫地机器人的移动距离在三维空间的标度数 T1乘以尺度信息 s, 计算得出视觉扫地机器人实际移动的位移 L2。  [0078] S223. Multiply the scale number T1 of the three-dimensional space by the moving distance of the visual sweeping robot by the scale information s, and calculate the displacement L2 of the actual movement of the visual sweeping robot.
[0079] 本实施例中, 在三维空间中, 每个维度每隔一段距离有一个标度, 该标度对应 的距离就是指尺度信息 s。 在该三维坐标体系中, 获取视觉扫地机器人移动的标 度数 T1, 然后再根据每个标度数的长度信息 s, 根据这两个量就可以计算出 L2。 具体的, L2等于 T1和 s和乘积。 其中 s的大小可以根据预设的规则以及用户预设 的一些参数计算出来。  [0079] In this embodiment, in the three-dimensional space, each dimension has a scale at intervals, and the distance corresponding to the scale refers to the scale information s. In the three-dimensional coordinate system, the scale number T1 of the movement of the visual sweeping robot is acquired, and then L2 is calculated based on the length information s of each scale number based on the two quantities. Specifically, L2 is equal to the product of T1 and s. The size of s can be calculated according to preset rules and some parameters preset by the user.
[0080] 参照图 4, 进一步地, 所述根据预设的规则计算出每个标度对应的长度信息 s S222的步骤包括:  [0080] Referring to FIG. 4, the step of calculating the length information s S222 corresponding to each scale according to a preset rule includes:
[0081] S2221、 获得摄像头到天花板平面的标度数 T2; \¥0 2019/104741 卩(:17 \2017/114340 [0081] S2221. Obtain a scale number T2 of the camera to the ceiling plane; \¥0 2019/104741 卩(:17 \2017/114340
[0082] S2222、 根据已知环境信息以及视觉扫地机器人自身的参数, 计算出摄像头距 离天花板的实际高度 H; [0220] S2222, calculating the actual height H of the camera from the ceiling according to the known environmental information and the parameters of the visual sweeping robot itself;
[0083] S2223、 用摄像头距离天花板的实际高度 H除以摄像头到天花板平面的标度数 T [0083] S2223, dividing the actual height H of the camera from the ceiling by the number of scales from the camera to the ceiling plane T
2, 计算得出尺度信息 s。 2. Calculate the scale information s.
[0084] 本实施例中, 在三维空间中, 摄像头是一个点, 天花板所处的是一个平面, 计 算出摄像头和天花板平面的标度数。 另外, 根据已知的环境, 可以计算出摄像 头和天花板之间的实际距离值。 即该标度数对应的实际距离值均可以算出来, 那么, 每个标度对应的实际长度值可以明显的得到。 用摄像头距天花板的实际 高度 H除以摄像头到天花板平面的标度数量 T2, 即可以计算出 s。 在已知的环境 中, 天花板距离地面的高度 m是已知的, 视觉扫地机器人的内置参数中, 摄像 头在视觉扫地机器人上所处的高度 H2是已知的, 那么, 视觉扫地机器人放置在 地面上时, 摄像头与天花板的实际距离值是 H=H1-H2。 然后用 H除以 T2, 计算得 出尺度信息 s。  In this embodiment, in the three-dimensional space, the camera is a point, and the ceiling is in a plane, and the number of scales of the camera and the ceiling plane is calculated. In addition, the actual distance value between the camera and the ceiling can be calculated according to the known environment. That is, the actual distance value corresponding to the scale number can be calculated, and then the actual length value corresponding to each scale can be obtained obviously. The s can be calculated by dividing the actual height H of the camera from the ceiling by the number of scales T2 from the camera to the ceiling plane. In the known environment, the height m of the ceiling from the ground is known. Among the built-in parameters of the visual sweeping robot, the height H2 of the camera on the visual sweeping robot is known, then the visual sweeping robot is placed on the ground. When it is up, the actual distance between the camera and the ceiling is H=H1-H2. Then divide H by T2 and calculate the scale information s.
[0085] 参照图 5, 进一步地, 步骤 S2221包括:  [0085] Referring to FIG. 5, further, step S2221 includes:
[0086] S22211、 使用 RANSAC平面拟合估计天花板平面, 得到法线 n;  [0086] S22211, using the RANSAC plane fitting to estimate the ceiling plane to obtain a normal n;
[0087] S22212、 根据公式 T2=n T*x得到 T2, 得到摄像头到天花板平面的标度数 T2, 其 中 n T表示法线 n在该重建空间的向量, x表示摄像头在所述三维空间中的坐标。 [0087] S22212, obtaining T2 according to the formula T2=n T *x, obtaining a scale number T2 of the camera to the ceiling plane, where n T represents a vector of the normal line n in the reconstruction space, and x represents a camera in the three-dimensional space. coordinate.
[0088] 本实施例中, RANSAC为 Random Sample Consensus的缩写, 它是根据一组包含 异常数据的样本数据集, 计算出数据的数学模型参数, 得到有效样本数据的算 法。 RANSAC算法经常用于计算机视觉中, 在立体视觉领域中同时解决一对相 机的匹配点问题及基本矩阵的计算。 摄像头具有一定的角度, 建立的三维空间 中含有很多天花板平面上的点, 使用 RANSAC进行拟合, 就可以计算出天花板 平面在直三维空间中的平面, 该平面在三维空间中天花板平面的法线用 n来进行 表示。 然后在该三维空间中根据法线计算出天花板到视觉扫地机器人摄像头的 距离, 该距离即摄像头到天花板在三维空间的距离 T2, 该 T2是三维坐标体系中 的标度数, 而不是实际的距离值。 具体的, 法线 n与摄像头到天花板在三维空间 的距离 T2之间的对应关系是: T2=n T*x, 该公式中, x是摄像头在该三维空间中 的坐标, n T表示法线在该三维空间中的向量。 \¥0 2019/104741 卩(:17 \2017/114340 [0088] In this embodiment, RANSAC is an abbreviation of Random Sample Consensus, which is an algorithm for calculating valid mathematical sample parameters based on a set of sample data sets containing abnormal data, and obtaining valid sample data. The RANSAC algorithm is often used in computer vision to solve the matching point problem of a pair of cameras and the calculation of the basic matrix in the field of stereo vision. The camera has a certain angle. The established three-dimensional space contains many points on the ceiling plane. By fitting with RANSAC, the plane of the ceiling plane in the straight three-dimensional space can be calculated. The plane is the normal of the ceiling plane in three-dimensional space. Use n to indicate. Then, the distance from the ceiling to the camera of the visual sweeping robot is calculated according to the normal in the three-dimensional space, that is, the distance T2 between the camera and the ceiling in the three-dimensional space, and the T2 is the scale number in the three-dimensional coordinate system, instead of the actual distance value. . Specifically, the correspondence between the normal line n and the camera-to-ceiling distance T2 in the three-dimensional space is: T2=n T * x , where x is the coordinate of the camera in the three-dimensional space, and n T represents the normal. The vector in this three-dimensional space. \¥0 2019/104741 卩(:17 \2017/114340
[0089] 进一步地, 所述计算得出补偿系数后包括步骤: [0089] Further, after the calculating the compensation coefficient, the method includes the following steps:
[0090] 85、 重复多次计算出多个补偿系数, 计算多个补偿系数的平均值。  [0090] 85. Calculate a plurality of compensation coefficients repeatedly, and calculate an average value of the plurality of compensation coefficients.
[0091] 本实施例中, 计算得出补偿系数后, 该补偿系数不可避免会存在误差。 而且该 误差是随机误差, 为进一步减小误差, 最好的方法就是多次实验计算, 多次重 复上述 31^4的步骤得出多个补偿系数, 计算多个补偿系数的平均值, 以该平均 值作为最终的补偿系数, 提高视觉扫地机器人的检测距离的精度。  [0091] In this embodiment, after the compensation coefficient is calculated, the compensation coefficient inevitably has an error. Moreover, the error is a random error. To further reduce the error, the best method is to perform multiple experimental calculations. Repeat the above steps of 31^4 to obtain a plurality of compensation coefficients, and calculate an average value of the plurality of compensation coefficients. The average value is used as the final compensation coefficient to improve the accuracy of the detection distance of the visual sweeping robot.
[0092] 进一步地, 重复多次计算出多个补偿系数的步骤包括:  [0092] Further, the step of repeatedly calculating the plurality of compensation coefficients multiple times includes:
[0093] 视觉扫地机器人分别在不同材质的地面上移动后计算出多个补偿系数。  [0093] The visual sweeping robot calculates a plurality of compensation coefficients after moving on the ground of different materials.
[0094] 本实施例中, 因为视觉扫地机器人要面对不同的家庭, 因此在测量补偿系数时 , 要综合考虑各种因素, 因此需要考虑不同的摩擦系数。 一般家庭用的地板包 括水泥地、 磁砖、 木地板、 地毯等各种材质不同的地板。 在不同材质不同摩擦 系数的地板上测量得出补偿系数后, 将其平均计算, 最终得出一个标准的补偿 系数。  [0094] In the present embodiment, since the visual sweeping robot has to face different families, various factors must be comprehensively considered when measuring the compensation coefficient, so it is necessary to consider different friction coefficients. The general household floor includes various materials such as concrete floor, tile, wooden floor, and carpet. After the compensation coefficient is measured on the floor with different friction coefficients of different materials, the average is calculated, and a standard compensation coefficient is finally obtained.
[0095] 参照图 6 , 本发明还提出一种测量视觉扫地机器人里程计补偿系数的系统, 其 中, 测量环境的地面与天花板均为水平设置, 该系统包括:  6, the present invention further provides a system for measuring a compensation coefficient of a visual sweeping robot odometer, wherein the ground and ceiling of the measurement environment are both horizontally arranged, and the system includes:
[0096] 移动装置 1, 用于视觉扫地机器人在所述测试环境内移动一段距离, 同时摄像 头采集天花板图片;  [0096] the mobile device 1 is configured to move the visual sweeping robot within the test environment for a distance while the camera captures the ceiling image;
[0097] 实际位移装置 2, 用于根据采集的图片, 计算出视觉扫地机器人实际移动的位 移1^2; [0097] The actual displacement device 2 is configured to calculate a displacement of the actual movement of the visual sweeping robot by 1 ^ 2 according to the acquired picture;
[0098] 里程计位移装置 3, 用于获取里程计计算出的位移 1^1 ; [0098] odometer displacement device 3, used to obtain the displacement calculated by the odometer 1 ^ 1;
[0099] 补偿系数装置 4, 用于用扫地机器人实际移动的位移 1^2除以里程计记录的扫地 机器人的位移 1^1, 计算得出补偿系数。 [0099] The compensation coefficient device 4 is configured to calculate the compensation coefficient by dividing the displacement 1 ^ 2 of the actual movement of the cleaning robot by the displacement 1 ^ 1 of the cleaning robot recorded by the odometer.
[0100] 本实施例中, 视觉扫地机器人在该环境内移动, 地板和天花板均是水平设置, 即地板和天花板是平整的平面, 没有坡度、 弧度、 倾斜视觉扫地机器人可以正 常移动, 视觉扫地机器带有视觉系统, 视觉系统就是用机器代替人眼来做测量 和判断。 视觉系统是指通过机器视觉产品 (即图像摄取装置, 分CMOS和CCD两 种) 将被摄取目标转换成图像信号, 传送给专用的图像处理系统, 根据像素分 布和亮度、 颜色等信息, 转变成数字化信号; 视觉系统对这些信号进行各种运 \¥0 2019/104741 卩(:17 \2017/114340 算来抽取目标的特征, 进而根据判别的结果来控制现场的设备动作。 可以用于 测量距离, 视觉扫地机器人的移动装置 1在控制视觉扫地机器人移动时, 同时控 制视觉进行拍照, 采集天花板的图片。 在该实施例中, 实际位移装置 2根据测量 环境以及视觉系统采集图片, 测量出视觉扫地机器人移动的一段距离的实际移 动位移 L2, 然后里程计位移装置 3读取在这段距离视觉扫地机器人的里程计计算 出的位移 L1, 补偿系数装置 4用 L2除以 L1, 就可以计算出补偿系数。 [0100] In this embodiment, the visual sweeping robot moves within the environment, and the floor and the ceiling are horizontally disposed, that is, the floor and the ceiling are flat planes, and the sweeping robot can move normally without slope, curvature, and tilt, and the visual sweeping machine With a vision system, the vision system uses machines instead of the human eye to make measurements and judgments. The visual system refers to the conversion of the ingested target into an image signal by a machine vision product (ie, an image capturing device, divided into CMOS and CCD), and transmitted to a dedicated image processing system, and converted into information according to pixel distribution, brightness, color, and the like. Digital signal; the visual system carries out various operations on these signals \¥0 2019/104741 卩(:17 \2017/114340 Calculate the characteristics of the target, and then control the action of the device according to the result of the discrimination. Can be used to measure the distance, the mobile device 1 of the visual sweeping robot controls the visual sweeping When the robot moves, the camera is simultaneously controlled to take a picture, and a picture of the ceiling is collected. In this embodiment, the actual displacement device 2 collects a picture according to the measurement environment and the vision system, and measures the actual movement displacement L2 of a distance moved by the visual sweeping robot, and then The odometer displacement device 3 reads the displacement L1 calculated by the odometer of the visual sweeping robot at this distance, and the compensation coefficient device 4 divides L2 by L1 to calculate the compensation coefficient.
[0101] 参照图 7, 进一步地, 所述实际位移装置 2包括:  [0101] Referring to FIG. 7, further, the actual displacement device 2 includes:
[0102] 构建模块 21, 用于根据视觉扫地机器人采集的图片, 图片中的特征点进行空间 三维重构, 得到所述特征点的三维空间坐标, 进而得到该图像的三维信息; [0102] The building module 21 is configured to perform spatial three-dimensional reconstruction according to the image captured by the visual sweeping robot, and obtain three-dimensional spatial coordinates of the feature point, thereby obtaining three-dimensional information of the image;
[0103] 计算模块 22, 用于根据所述图像的三维信息计算出所述视觉扫地机器人实际移 动的位移 L2。 [0103] The calculating module 22 is configured to calculate a displacement L2 of the actual movement of the visual cleaning robot according to the three-dimensional information of the image.
[0104] 本实施例中, 视觉扫地机器人在清扫时, 视觉系统拍照, 构建模块 21根据拍摄 的照片提取特征点, 依据特征点进行空间三维重构, 即将拍摄的二维图片转换 成三维的图片, 通过摄像机标定来建立有效的成像模型, 求解出摄像机的内外 参数, 这样就可以结合图像的匹配结果得到空间中的三维点坐标, 从而达到进 行三维重建的目的, 建成三维空间, 然后将视觉扫地机器人移动前的位置和移 动后的位置标注在该三维空间中, 计算模块 22在该坐标体系中计算出视觉扫地 机器人的实际移动距离 L2。 建立三维空间, 更加精准的获取视觉扫地机器人的 位置, 计算出来的实际移动距离 L2更加准确。  [0104] In this embodiment, when the visual cleaning robot is in the cleaning, the visual system takes a picture, and the building module 21 extracts the feature points according to the photographed photos, performs spatial three-dimensional reconstruction according to the feature points, and converts the captured two-dimensional images into three-dimensional images. Through the camera calibration to establish an effective imaging model, the internal and external parameters of the camera are solved, so that the three-dimensional point coordinates in the space can be obtained by combining the matching results of the image, thereby achieving the purpose of three-dimensional reconstruction, constructing a three-dimensional space, and then sweeping the vision. The position before the movement of the robot and the position after the movement are marked in the three-dimensional space, and the calculation module 22 calculates the actual moving distance L2 of the visual cleaning robot in the coordinate system. The three-dimensional space is established, and the position of the visual sweeping robot is more accurately obtained, and the calculated actual moving distance L2 is more accurate.
[0105] 参照图 8, 进一步地, 所述计算模块 22包括:  [0105] Referring to FIG. 8, further, the calculating module 22 includes:
[0106] 移动标度子模块 221, 用于获取视觉扫地机器人的移动在三维空间的标度数 T1  [0106] The moving scale sub-module 221 is configured to acquire the scale number of the movement of the visual sweeping robot in three-dimensional space T1
[0107] 长度信息子模块 222, 用于根据预设的规则计算出每个标度对应的尺度信息 S ; [0107] The length information sub-module 222 is configured to calculate scale information S corresponding to each scale according to a preset rule ;
[0108] 计算公式子模块 223, 用于用视觉扫地机器人的移动距离在三维空间的标度数 T 1乘以尺度信息 s, 计算得出尺度信息 L2。  [0108] The calculation formula sub-module 223 is configured to calculate the scale information L2 by multiplying the scale number T 1 of the three-dimensional space by the moving distance of the visual sweeping robot by the scale information s.
[0109] 本实施例中, 在三维空间中, 每个维度每隔一段距离有一个标度, 该标度对应 的距离就是指尺度信息 s。 在该三维空间中, 移动标度子模块 221获取视觉扫地机 器人移动的标度数 T1, 然后长度信息子模块 222计算出每个标度对应的长度 s, \¥0 2019/104741 卩(:17 \2017/114340 计算公式子模块 223再根据每个标度数的长度信息8 , 根据这两个量就可以计算出 1^2。 具体的, 1^2等于 11和8和乘积。 其中 8的大小可以根据预设的规则以及用户 预设的一些参数计算出来。 [0109] In this embodiment, in a three-dimensional space, each dimension has a scale at intervals, and the distance corresponding to the scale refers to the scale information s. In the three-dimensional space, the moving scale sub-module 221 acquires the scale number T1 of the movement of the visual sweeping robot, and then the length information sub-module 222 calculates the length s corresponding to each scale, \¥0 2019/104741 卩 (: 17 \2017/114340 calculation formula sub-module 223 according to the length information 8 of each scale number, according to these two quantities can be calculated 1 ^ 2. Specifically, 1 ^ 2 is equal 11 and 8 and the product. The size of 8 can be calculated according to preset rules and some parameters preset by the user.
[0110] 参照图 9, 进一步地, 所述长度信息子模块 222包括:  [0110] Referring to FIG. 9, further, the length information sub-module 222 includes:
[0111] 获得标度单元 2221, 用于获得摄像头到天花板平面的标度数了2;  [0111] obtaining a scale unit 2221, the scale for obtaining the camera to the ceiling plane is 2;
[0112] 计算高度单元 2222, 用于根据已知环境信息以及视觉扫地机器人自身的参数, 计算出摄像头距离天花板的实际高度  [0112] a calculation height unit 2222, configured to calculate the actual height of the camera from the ceiling according to the known environmental information and the parameters of the visual cleaning robot itself
[0113] 计算公式单元 2223 , 用于用摄像头距离天花板的实际高度11除以摄像头到天花 板平面的标度数12, 计算得出尺度信息 8。  [0113] The calculation formula unit 2223 is configured to calculate the scale information 8 by dividing the actual height 11 of the camera from the ceiling by the scale number 12 of the camera to the ceiling plane.
[0114] 本实施例中, 在三维坐标空间中, 摄像头是一个点, 天花板所处的是一个平面 , 计算标度单元 2221计算出摄像头和天花板平面的标度数。 另外, 根据已知的 环境, 计算高度单元 2222可以计算出摄像头和天花板之间的实际距离值。 即该 标度数对应的实际距离值均可以算出来, 那么, 每个标度对应的实际长度值可 以明显的得到。 计算公式单元 2223用摄像头距天花板的实际高度11除以摄像头到 天花板平面的标度数量了2, 即可以计算出 8。 在已知的环境中, 天花板距离地面 的高度 是已知的, 视觉扫地机器人的内置参数中, 摄像头在视觉扫地机器人 上所处的高度 112是已知的, 那么, 视觉扫地机器人放置在地面上时, 摄像头与 天花板的实际距离值是
Figure imgf000012_0001
然后用 除以了2, 计算得出尺度信息 8。
[0114] In this embodiment, in the three-dimensional coordinate space, the camera is a point, the ceiling is located in a plane, and the calculation scale unit 2221 calculates the number of scales of the camera and the ceiling plane. Additionally, the calculated height unit 2222 can calculate the actual distance value between the camera and the ceiling, according to known circumstances. That is, the actual distance value corresponding to the scale number can be calculated, and then the actual length value corresponding to each scale can be obtained obviously. The calculation formula unit 2223 divides the actual height 11 of the camera from the ceiling by the number of scales of the camera to the ceiling plane by 2, that is, 8 can be calculated. In known environments, the height of the ceiling from the ground is known. Among the built-in parameters of the visual sweeping robot, the height 112 of the camera on the visual sweeping robot is known, then the visual sweeping robot is placed on the ground. When the actual distance between the camera and the ceiling is
Figure imgf000012_0001
Then divide by 2 and calculate the scale information 8.
[0115] 参照图 10, 进一步地, 所述计算标度单元 2222包括:  [0115] Referring to FIG. 10, further, the calculating the scale unit 2222 includes:
[0116] 法线子单元 22221, 用于使用 RANSAC平面拟合估计天花板平面, 得到法线!1; [0116] 22221 normal subunit, using RANSAC estimation ceiling plane fitting plane, the normal line to give 1!;
[0117] 计算距离子单元 22222, 用于根据公式 12=!! «X得到 12, 得到摄像头到天花板 平面的标度数了2, 其中 表示法线!1在该重建空间的向量, X表示摄像头在所述 三维空间中的坐标。  [0117] Calculate the distance sub-unit 22222 for obtaining 12 according to the formula 12=!! «X, obtaining a scale of 2 from the camera to the ceiling plane, where the normal line is represented by 1 in the vector of the reconstruction space, and X indicates that the camera is at The coordinates in the three-dimensional space.
[0118] 本实施例中
Figure imgf000012_0002
的缩写, 它是根据一组包含 异常数据的样本数据集, 计算出数据的数学模型参数, 得到有效样本数据的算 法。 RANSAC算法经常用于计算机视觉中, 在立体视觉领域中同时解决一对相 机的匹配点问题及基本矩阵的计算。 摄像头具有一定的角度, 建立的三维空间 中含有很多天花板平面上的点, 法线子单元 22221使用 RANSAC进行拟合, 就可 \¥0 2019/104741 卩(:17 \2017/114340 以计算出天花板平面在直三维空间中的平面, 该平面在三维空间中 n来进行表示 。 然后计算距离子单元 22222在该三维空间中根据法线计算出天花板到视觉扫地 机器人摄像头的距离, 该距离即摄像头到天花板在三维空间的距离 T2, 该 T2是 三维坐标体系中的标度数, 而不是实际的距离值。 具体的, 法线 n与摄像头到天 花板在三维空间的距离 T2之间的对应关系是: T2=n T*x, 该公式中, x是摄像头 在该三维空间中的坐标, n T表示法线在该三维空间中的向量。
[0118] In this embodiment
Figure imgf000012_0002
Abbreviation, which is an algorithm for obtaining valid sample data based on a set of sample data sets containing abnormal data, mathematical model parameters of the data. The RANSAC algorithm is often used in computer vision to solve the matching point problem of a pair of cameras and the calculation of the basic matrix in the field of stereo vision. The camera has a certain angle. The established three-dimensional space contains many points on the ceiling plane. The normal subunit 22221 is fitted with RANSAC. \¥0 2019/104741 卩(:17 \2017/114340 to calculate the plane of the ceiling plane in the straight three-dimensional space, the plane is represented in the three-dimensional space n. Then calculate the distance sub-unit 22222 in the three-dimensional space according to The normal calculates the distance from the ceiling to the camera of the visual sweeping robot, which is the distance T2 from the camera to the ceiling in three dimensions, which is the number of scales in the three-dimensional coordinate system, rather than the actual distance value. Specifically, normal n The correspondence relationship between the camera-to-ceiling distance T2 in the three-dimensional space is: T2=n T * x , where x is the coordinate of the camera in the three-dimensional space, and n T represents the normal in the three-dimensional space. vector.
[0119] 参照图 11, 进一步地, 所述测量视觉扫地机器人里程计补偿系数的系统还包括  [0119] Referring to FIG. 11, further, the system for measuring a visual sweeping robot odometer compensation coefficient further includes
[0120] 多次计算装置 5, 用于计算法线 n与扫地视觉机器人摄像头的距离, 得到 T2。 [0120] The multi-calculation device 5 is configured to calculate the distance between the normal n and the camera of the sweeping visual robot to obtain T2.
[0121] 本实施例中, 计算得出补偿系数后, 该补偿系数不可避免会存在误差。 而且该 误差是随机误差, 为进一步减小误差, 最好的方法就是多次实验计算, 多次计 算装置多次重复上述的装置运行计算得出多个补偿系数, 计算多个补偿系数的 平均值, 以该平均值作为最终的补偿系数, 提高视觉扫地机器人的检测距离的 精度。  [0121] In this embodiment, after the compensation coefficient is calculated, the compensation coefficient inevitably has an error. Moreover, the error is a random error. To further reduce the error, the best method is to perform multiple experimental calculations. The multiple calculation device repeatedly repeats the above device operation calculation to obtain multiple compensation coefficients, and calculates the average of multiple compensation coefficients. The average value is used as the final compensation coefficient to improve the accuracy of the detection distance of the visual sweeping robot.
[0122] 进一步地, 多次计算装置 5包括:  [0122] Further, the multiple calculation device 5 includes:
[0123] 地面模块 51, 用于视觉扫地机器人分别在不同材质的地面上移动后计算出多个 补偿系数。  [0123] The ground module 51 is configured to calculate a plurality of compensation coefficients after the visual sweeping robot moves on the ground of different materials.
[0124] 本实施例中, 因为视觉扫地机器人要面对不同的家庭, 因此在测量补偿系数时 , 要综合考虑各种因素, 因此需要考虑不同的摩擦系数。 一般家庭用的地板包 括水泥地、 磁砖、 木地板、 地毯等各种材质不同的地板。 地面模块 51在不同材 质不同摩擦系数的地板上测量得出补偿系数后, 将其平均计算, 最终得出一个 标准的补偿系数。  [0124] In the present embodiment, since the visual sweeping robot has to face different families, when measuring the compensation coefficient, various factors must be comprehensively considered, and thus different friction coefficients need to be considered. The general household floor includes various materials such as concrete floor, tile, wooden floor, and carpet. The ground module 51 measures the compensation coefficients on the floor with different friction coefficients of different materials, and then averages them to obtain a standard compensation coefficient.
[0125] 以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利 用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。  The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are used directly or indirectly. Other related technical fields are equally included in the scope of patent protection of the present invention.

Claims

\¥0 2019/104741 卩(:17 \2017/114340 权利要求书 \¥0 2019/104741 卩(:17 \2017/114340 Claims
[权利要求 1] 一种测量视觉扫地机器人里程计补偿系数的方法, 其特征在于, 测量 环境的地面与天花板均为水平设置, 所述方法包括:  [Claim 1] A method of measuring a compensation coefficient of a visual sweeping robot odometer, characterized in that the ground and ceiling of the measurement environment are both horizontally arranged, the method comprising:
视觉扫地机器人在所述测试环境内移动一段距离, 同时摄像头采集天 花板图像;  The visual sweeping robot moves a distance within the test environment while the camera captures the image of the ceiling;
根据采集的图像, 计算视觉扫地机器人实际移动的位移!^2; Calculate the displacement of the actual movement of the visual sweeping robot based on the acquired image! ^ 2;
获取里程计记录的扫地机器人的位移1^1 ; Obtain the displacement of the sweeping robot recorded by the odometer 1 ^ 1 ;
用扫地机器人实际移动的位移1^2除以里程计记录的扫地机器人的位 移1^1, 计算得出补偿系数。 The compensation coefficient is calculated by dividing the displacement of the actual movement of the sweeping robot by 1 ^ 2 by the displacement of the sweeping robot recorded by the odometer 1 ^ 1.
[权利要求 2] 如权利要求 1所述的视觉扫地机器人里程计补偿系数的方法, 其特征 在于, 所述根据采集的图像, 计算视觉扫地机器人实际移动的位移!^ 2的步骤包括: [Claim 2] The method of visual odometry compensation coefficient cleaning robot according to claim 1, wherein, according to said image acquisition, the cleaning robot calculates the actual movement of the visual displacement step 2 comprises ^!:
根据视觉扫地机器人采集的图片, 将图片中的特征点进行空间三维重 构, 得到所述特征点的三维空间坐标, 进而得到该图像的三维信息; 根据所述图像的三维信息, 计算出所述视觉扫地机器人实际移动的位 移 2。  According to the image captured by the visual sweeping robot, the feature points in the image are spatially reconstructed three-dimensionally, and the three-dimensional space coordinates of the feature points are obtained, thereby obtaining three-dimensional information of the image; and the three-dimensional information of the image is used to calculate the The displacement of the visual sweeping robot actually moves 2.
[权利要求 3] 如权利要求 2所述的测量视觉扫地机器人里程计补偿系数的方法, 其 特征在于, 所述根据所述图像的三维信息, 计算出所述视觉扫地机器 人实际移动的位移 1^2的步骤包括: [Claim 3] The method for measuring a compensation coefficient of a visual cleaning robot odometer according to claim 2, wherein the calculating a displacement of the actual movement of the visual cleaning robot according to the three-dimensional information of the image is 1 ^ The steps of 2 include:
获取视觉扫地机器人的移动距离在三维空间的标度数II;  Obtaining the scale number of the moving distance of the visual sweeping robot in three-dimensional space II;
根据预设的规则计算出每个标度对应的尺度信息 用视觉扫地机器人的移动距离在三维空间的标度数11乘以尺度信息 8 Calculating the scale information corresponding to each scale according to a preset rule, multiplying the scale number of the visual sweeping robot by the scale number 11 in the three-dimensional space by the scale information 8
, 计算得出视觉扫地机器人实际移动的位移 1^2。 Calculate the displacement of the actual movement of the visual sweeping robot by 1 ^ 2 .
[权利要求 4] 如权利要求 3所述的测量视觉扫地机器人里程计补偿系数的方法, 其 特征在于, 所述根据预设的规则计算出每个标度对应的尺度信息 8的 步骤包括: [Claim 4] The method for measuring the compensation coefficient of the visual sweeping robot odometer according to claim 3, wherein the step of calculating the scale information 8 corresponding to each scale according to a preset rule comprises:
获得摄像头到天花板平面的标度数了2;  Obtained a scale of 2 from the camera to the ceiling plane;
根据已知环境信息以及视觉扫地机器人自身的参数, 计算出摄像头距 \¥0 2019/104741 卩(:17 \2017/114340 离天花板的实际高度 Calculate the camera distance based on the known environmental information and the parameters of the visual sweeping robot itself. \¥0 2019/104741 卩(:17 \2017/114340 The actual height from the ceiling
用摄像头距离天花板的实际高度 除以摄像头到天花板平面的标度数 丁2, 计算得出尺度信息 8。  The scale information is calculated by dividing the actual height of the camera from the ceiling by the number of scales from the camera to the ceiling plane.
[权利要求 5] 如权利要求 4所述的测量视觉扫地机器人里程计补偿系数的方法, 其 特征在于, 所述获得摄像头到天花板平面的标度数 12包括步骤:
Figure imgf000015_0001
平面拟合估计天花板平面, 得到法线 11;
[Claim 5] The method for measuring a visual sweeping robot odometer compensation coefficient according to claim 4, wherein the obtaining the camera-to-ceiling plane scale number 12 comprises the steps of:
Figure imgf000015_0001
Plane fitting estimates the ceiling plane to get the normal 11;
根据公式12=11 «X计算得到摄像头到天花板平面的标度数 12, 其中 11了 表示法线 11在该重建空间的向量, X表示摄像头在所述三维空间中的坐 标。  The scale number 12 of the camera-to-ceiling plane is calculated according to the formula 12=11 «X, where 11 represents the vector of the normal 11 in the reconstruction space, and X represents the coordinates of the camera in the three-dimensional space.
[权利要求 6] 如权利要求 1所述的测量视觉扫地机器人里程计补偿系数的方法, 其 特征在于, 所述计算得出补偿系数后包括步骤:  [Claim 6] The method for measuring a compensation coefficient of a visual cleaning robot odometer according to claim 1, wherein the calculating the compensation coefficient comprises the following steps:
重复多次计算出多个补偿系数, 计算多个补偿系数的平均值。  A plurality of compensation coefficients are calculated repeatedly and the average of the plurality of compensation coefficients is calculated.
[权利要求 7] 如权利要求 6所述的测量视觉扫地机器人里程计补偿系数的方法, 其 特征在于, 所述重复多次计算出多个补偿系数的步骤包括: 视觉扫地机器人分别在不同材质的地面上移动后计算出多个补偿系数  [Claim 7] The method for measuring a compensation coefficient of a visual cleaning robot odometer according to claim 6, wherein the step of repeatedly calculating a plurality of compensation coefficients comprises: the visual cleaning robots are respectively in different materials Calculate multiple compensation coefficients after moving on the ground
[权利要求 8] 一种测量视觉扫地机器人里程计补偿系数的系统, 其特征在于, 测量 环境的地面与天花板均为水平设置, 所述系统包括: 移动装置, 用于视觉扫地机器人在所述测试环境内移动一段距离, 同 时摄像头采集天花板图片; [Claim 8] A system for measuring a compensation coefficient of a visual sweeping robot odometer, wherein a ground and a ceiling of a measurement environment are horizontally disposed, the system comprising: a mobile device for a visual sweeping robot in the test Move a distance within the environment, while the camera captures the ceiling image;
实际位移装置, 用于根据采集的图片, 计算出视觉扫地机器人实际移 动的位移!^2; The actual displacement device is configured to calculate the displacement of the actual movement of the visual sweeping robot according to the acquired picture! ^ 2;
里程计位移装置, 用于获取里程计记录的位移 1^1 ; An odometer displacement device for obtaining a displacement of the odometer recorded by 1 ^ 1 ;
补偿系数装置, 用于用扫地机器人实际移动的位移 1^2除以里程计记 录的扫地机器人的位移1^1, 计算得出补偿系数。 The compensation coefficient device is used to calculate the compensation coefficient by dividing the displacement of the actual movement of the cleaning robot by 1 ^ 2 by the displacement of the cleaning robot recorded by the odometer 1 ^ 1.
[权利要求 9] 如权利要求 8所述的测量视扫地机器人里程计补偿系数的系统, 其特 征在于, 所述实际位移装置包括:  [Claim 9] The system for measuring a calibrating coefficient of a glider according to claim 8, wherein the actual displacement device comprises:
构建模块, 用于根据视觉扫地机器人采集的图片, 将图片中的特征点 \¥0 2019/104741 卩(:17 \2017/114340 进行空间三维重构, 得到所述特征点的三维空间坐标, 进而得到该图 像的三维信息; a building module for taking pictures according to a visual sweeping robot, and characterizing the points in the picture \¥0 2019/104741 卩(:17 \2017/114340 performs spatial three-dimensional reconstruction, obtains the three-dimensional space coordinates of the feature points, and then obtains three-dimensional information of the image;
计算模块, 用于根据所述图像的三维信息, 计算出所述视觉扫地机器 人实际移动的位移 1^2。 And a calculating module, configured to calculate, according to the three-dimensional information of the image, a displacement of the actual movement of the visual cleaning robot by 1 ^ 2.
[权利要求 10] 如权利要求 9所述的测量视扫地机器人里程计补偿系数的系统, 其特 征在于, 所述计算模块包括:  [Claim 10] The system for measuring a calibrating coefficient of a scoping robot according to claim 9, wherein the calculating module comprises:
移动标度子模块, 用于获取视觉扫地机器人的移动距离在三维空间的 标度数 11 ;  a moving scale sub-module for obtaining a scale number of the moving distance of the visual sweeping robot in three-dimensional space 11;
长度信息子模块, 用于根据预设的规则计算出每个标度对应的尺度信 息 ;  a length information sub-module, configured to calculate scale information corresponding to each scale according to a preset rule;
计算公式子模块, 用于用视觉扫地机器人的移动距离在三维空间的标 度数 II乘以尺度信息 8, 计算得出视觉扫地机器人实际移动的位移 1^2 The calculation formula sub-module is used to multiply the scale number of the moving distance of the visual sweeping robot in the three-dimensional space by the scale information 8 to calculate the displacement of the actual movement of the visual sweeping robot 1 ^ 2
[权利要求 11] 如权利要求 10所述的测量视扫地机器人里程计补偿系数的系统, 其特 征在于, 所述长度信息子模块包括: [Claim 11] The system for measuring a compensation coefficient of a visual sweeping robot odometer according to claim 10, wherein the length information sub-module comprises:
获得标度单元, 用于获得摄像头到天花板平面的标度数了2;  Obtaining a scale unit for obtaining a scale of 2 from the camera to the ceiling plane;
计算高度单元, 用于根据已知环境信息以及视觉扫地机器人自身的参 数, 计算出摄像头距离天花板的实际高度  Calculate the height unit, which is used to calculate the actual height of the camera from the ceiling based on the known environmental information and the parameters of the visual sweeping robot itself.
计算公式单元, 用于根据用摄像头距离天花板的实际高度 11除以摄像 头到天花板平面的标度数 12, 计算得出尺度信息 8。  The calculation formula unit is used to calculate the scale information 8 based on the actual height 11 of the ceiling from the ceiling divided by the number of scales 12 of the camera to the ceiling plane.
[权利要求 12] 如权利要求 11所述的测量视扫地机器人里程计补偿系数的系统, 其特 征在于, 所述获得标度单元包括:  [Claim 12] The system for measuring a compensation coefficient of a visual sweeping robot odometer according to claim 11, wherein the obtaining the scale unit comprises:
法线子单元, 用于使用 RANSAC平面拟合估计天花板平面, 得到法线 Normal subunit, used to estimate the ceiling plane using RANSAC plane fitting, to get the normal
II; II;
计算距离子单元, 用于根据公式
Figure imgf000016_0001
计算得到摄像头到天花板 平面的标度数了2, 其中 11 7表示法线 11在该重建空间的向量, X表示摄 像头在所述三维空间中的坐标。
Calculate the distance subunit, used to formulate
Figure imgf000016_0001
The number of scales from the camera to the ceiling plane is calculated to be 2, where 11 7 represents the vector of the normal 11 in the reconstruction space, and X represents the coordinates of the camera in the three-dimensional space.
[权利要求 13] 如权利要求 8所述的测量视扫地机器人里程计补偿系数的系统, 其特 \¥0 2019/104741 卩(:17 \2017/114340 征在于, 还包括: [Claim 13] A system for measuring a compensation coefficient of a finder oscilloscope according to claim 8, \¥0 2019/104741 卩(:17 \2017/114340 The levy is, it also includes:
多次计算装置, 用于计算法线 !1与扫地视觉机器人摄像头的距离, 得 到丁2。  A multi-calculation device is used to calculate the distance between the normal line and the camera of the sweeping visual robot.
[权利要求 14] 如权利要求 13所述的测量视扫地机器人里程计补偿系数的系统, 其特 征在于, 所述多次计算装置包括:  [Claim 14] The system for measuring an odometer compensation coefficient of a visually-swept robot according to claim 13, wherein the plurality of calculation means comprises:
地面模块, 用于视觉扫地机器人分别在不同材质的地面上移动后计算 出多个补偿系数。  The ground module is used to calculate a plurality of compensation coefficients after the visual sweeping robot moves on the ground of different materials.
PCT/CN2017/114340 2017-12-01 2017-12-01 Method and system for measuring compensating coefficient for odometer of visual robot cleaner WO2019104741A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/114340 WO2019104741A1 (en) 2017-12-01 2017-12-01 Method and system for measuring compensating coefficient for odometer of visual robot cleaner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/114340 WO2019104741A1 (en) 2017-12-01 2017-12-01 Method and system for measuring compensating coefficient for odometer of visual robot cleaner

Publications (1)

Publication Number Publication Date
WO2019104741A1 true WO2019104741A1 (en) 2019-06-06

Family

ID=66664655

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/114340 WO2019104741A1 (en) 2017-12-01 2017-12-01 Method and system for measuring compensating coefficient for odometer of visual robot cleaner

Country Status (1)

Country Link
WO (1) WO2019104741A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110411476A (en) * 2019-07-29 2019-11-05 视辰信息科技(上海)有限公司 Vision inertia odometer calibration adaptation and evaluation method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000282448A (en) * 1999-03-29 2000-10-10 Penta Ocean Constr Co Ltd Compaction condition measurement method and device with gps and camera
US7982951B1 (en) * 2010-11-08 2011-07-19 Robert Innes Digital tracking platform for telescopes
CN103886107A (en) * 2014-04-14 2014-06-25 苏州市华天雄信息科技有限公司 Robot locating and map building system based on ceiling image information
CN107357286A (en) * 2016-05-09 2017-11-17 两只蚂蚁公司 Vision positioning guider and its method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000282448A (en) * 1999-03-29 2000-10-10 Penta Ocean Constr Co Ltd Compaction condition measurement method and device with gps and camera
US7982951B1 (en) * 2010-11-08 2011-07-19 Robert Innes Digital tracking platform for telescopes
CN103886107A (en) * 2014-04-14 2014-06-25 苏州市华天雄信息科技有限公司 Robot locating and map building system based on ceiling image information
CN107357286A (en) * 2016-05-09 2017-11-17 两只蚂蚁公司 Vision positioning guider and its method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110411476A (en) * 2019-07-29 2019-11-05 视辰信息科技(上海)有限公司 Vision inertia odometer calibration adaptation and evaluation method and system

Similar Documents

Publication Publication Date Title
US10825198B2 (en) 3 dimensional coordinates calculating apparatus, 3 dimensional coordinates calculating method, 3 dimensional distance measuring apparatus and 3 dimensional distance measuring method using images
JP6415066B2 (en) Information processing apparatus, information processing method, position and orientation estimation apparatus, robot system
JP5624394B2 (en) Position / orientation measurement apparatus, measurement processing method thereof, and program
JP6324025B2 (en) Information processing apparatus and information processing method
JP6636042B2 (en) Floor treatment method
JP6589636B2 (en) 3D shape measuring apparatus, 3D shape measuring method, and 3D shape measuring program
JP2008506953A5 (en)
WO2011105522A1 (en) Three-dimensional measurement apparatus, processing method, and non-transitory computer-readable storage medium
US20180330517A1 (en) Displacement detecting apparatus and displacement detecting method
WO2020031950A1 (en) Measurement calibration device, measurement calibration method, and program
CN108007472A (en) Measure the method and system of vision sweeping robot odometer penalty coefficient
US20100053416A1 (en) Auto depth field capturing system and method thereof
CN102387374A (en) Device and method for acquiring high-precision depth map
JP6969121B2 (en) Imaging system, image processing device and image processing program
Franco et al. Static and dynamic displacement measurements of structural elements using low cost RGB-D cameras
Munkelt et al. Handheld 3D scanning with automatic multi-view registration based on optical and inertial pose estimation
Muffert et al. The estimation of spatial positions by using an omnidirectional camera system
JP4227037B2 (en) Imaging system and calibration method
CN107945166B (en) Binocular vision-based method for measuring three-dimensional vibration track of object to be measured
WO2019104741A1 (en) Method and system for measuring compensating coefficient for odometer of visual robot cleaner
Furukawa et al. Interactive shape acquisition using marker attached laser projector
JP2020125960A (en) Moving object position estimating device and moving object position estimating program
JPWO2021070415A5 (en)
KR100792852B1 (en) Method for extracting distance of landmark of mobile robot with a single camera
WO2019186677A1 (en) Robot position/posture estimation and 3d measurement device

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: 17933447

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17933447

Country of ref document: EP

Kind code of ref document: A1