CN114690755A - Cleaning robot and obstacle detouring method thereof - Google Patents
Cleaning robot and obstacle detouring method thereof Download PDFInfo
- Publication number
- CN114690755A CN114690755A CN202011567845.0A CN202011567845A CN114690755A CN 114690755 A CN114690755 A CN 114690755A CN 202011567845 A CN202011567845 A CN 202011567845A CN 114690755 A CN114690755 A CN 114690755A
- Authority
- CN
- China
- Prior art keywords
- obstacle
- cleaning robot
- line
- virtual
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000004140 cleaning Methods 0.000 title claims abstract description 200
- 238000000034 method Methods 0.000 title claims abstract description 65
- 230000004888 barrier function Effects 0.000 claims abstract description 24
- 230000004044 response Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 13
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 230000009466 transformation Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000011065 in-situ storage Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000010408 sweeping Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0231—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
- G05D1/0246—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means
- G05D1/0253—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means extracting relative motion information from a plurality of images taken successively, e.g. visual odometry, optical flow
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0214—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0223—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving speed control of the vehicle
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0276—Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Aviation & Aerospace Engineering (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Electromagnetism (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
Abstract
Description
技术领域technical field
本公开涉及清洁设备技术领域,尤其涉及一种清洁机器人及其绕障方法。The present disclosure relates to the technical field of cleaning equipment, and in particular, to a cleaning robot and a method for bypassing obstacles.
背景技术Background technique
清洁机器人是一种能够自主对家居环境进行清洁的智能设备。清洁机器人在对复杂多样的家庭环境进行清洁或地图构建的过程中,通常需要依赖激光测距传感器来判断清洁机器人的前方是否有障碍物,以避免清洁机器人与前方的障碍物发生碰撞。然后借助沿墙传感器、碰撞传感器等传感器来引导清洁机器人绕开障碍物。A cleaning robot is a smart device that can autonomously clean the home environment. In the process of cleaning complex and diverse home environments or building maps, cleaning robots usually need to rely on laser ranging sensors to determine whether there are obstacles in front of the cleaning robots, so as to avoid collisions between the cleaning robots and obstacles ahead. The cleaning robot is then guided around obstacles with the help of sensors along the wall, collision sensors, etc.
目前尚没有一款清洁机器人可以通过摄像头对识别到的障碍物进行绕障行走。At present, there is no cleaning robot that can walk around the identified obstacles through the camera.
发明内容SUMMARY OF THE INVENTION
本公开提供一种清洁机器人及其绕障方法,可以通过摄像头对识别出的障碍进行绕障行走。The present disclosure provides a cleaning robot and a method for bypassing obstacles, which can walk around the identified obstacles through a camera.
第一方面,本公开提供了一种清洁机器人的绕障方法,该清洁机器人上设置有摄像头,该绕障方法包括:In a first aspect, the present disclosure provides a method for circumventing an obstacle for a cleaning robot, the cleaning robot is provided with a camera, and the method for circumventing an obstacle includes:
通过前述摄像头获取前述清洁机器人前方的图像;Obtain the image in front of the cleaning robot through the aforementioned camera;
在前述图像上生成虚拟行进线和虚拟视距线,前述图像上的虚拟行进线与实际环境中前述清洁机器人的左右边缘向前延伸而成的虚拟线条相对应,前述图像中的虚拟视距线与实际环境中前述清洁机器人前方预设安全距离处的虚拟线条相对应;A virtual travel line and a virtual line of sight are generated on the aforementioned image. The virtual travel line on the aforementioned image corresponds to the virtual line formed by the left and right edges of the cleaning robot extending forward in the actual environment. The virtual line of sight in the aforementioned image corresponds to Corresponds to the virtual line at the preset safety distance in front of the aforementioned cleaning robot in the actual environment;
以前述图像中障碍物位于前述虚拟行进线和前述虚拟视距线的远离前述清洁机器人的一侧为约束条件,控制前述清洁机器人对前述障碍物进行绕障行走。Taking the obstacle in the above image on the side of the virtual travel line and the virtual line of sight away from the cleaning robot as a constraint condition, the cleaning robot is controlled to walk around the obstacle.
可选地,前述以前述图像中障碍物位于前述虚拟行进线和前述虚拟视距线的远离前述清洁机器人的一侧为约束条件,控制前述清洁机器人对前述障碍物进行绕障行走,包括:Optionally, the aforementioned obstacle is located on the side of the aforementioned virtual travel line and the aforementioned virtual line of sight away from the aforementioned cleaning robot as a constraint condition, and the aforementioned cleaning robot is controlled to walk around the aforementioned obstacle, including:
在前述图像中障碍物与前述虚拟视距线接触时,以前述图像中前述障碍物与前述虚拟行进线相切为约束条件,控制前述清洁机器人对前述障碍物进行绕障行走。When the obstacle in the image is in contact with the virtual line of sight, the cleaning robot is controlled to walk around the obstacle with the tangent of the obstacle and the virtual travel line in the image as a constraint.
可选地,前述以前述图像中障碍物位于前述虚拟行进线和前述虚拟视距线的远离前述清洁机器人的一侧为约束条件,控制前述清洁机器人对前述障碍物进行绕障行走,包括:Optionally, the aforementioned obstacle is located on the side of the aforementioned virtual travel line and the aforementioned virtual line of sight away from the aforementioned cleaning robot as a constraint condition, and the aforementioned cleaning robot is controlled to walk around the aforementioned obstacle, including:
在前述图像中障碍物与前述虚拟视距线接触时,根据前述图像确定前述障碍物的宽度以及长度估计值;When the obstacle in the aforementioned image is in contact with the aforementioned virtual line of sight, determining the estimated value of the width and length of the aforementioned obstacle according to the aforementioned image;
根据前述障碍物的长度估计值确定前述清洁机器人的绕障终点,前述绕障终点与前述清洁机器人的当前位置分别位于前述障碍物相反的两侧;According to the estimated value of the length of the obstacle, determine the obstacle circumvention end point of the cleaning robot, and the obstacle circumvention end point and the current position of the cleaning robot are respectively located on opposite sides of the obstacle;
根据前述当前位置以及前述绕障终点规划绕障路径;According to the current position and the end point of the obstacle, the obstacle route is planned;
使前述清洁机器人沿着前述绕障路径行走,并在前述虚拟视距线和/或前述虚拟行进线接触到前述障碍物时,根据行进过程中获取的图像更新前述绕障终点,并根据更新后的绕障终点调整后续的绕障路径。Make the aforementioned cleaning robot walk along the aforementioned obstacle course, and when the aforementioned virtual line of sight and/or the aforementioned virtual travel line touches the aforementioned obstacle, update the aforementioned obstacle bypass end point according to the image obtained during the traveling process, and according to the updated The end point of the obstacle bypass adjusts the subsequent obstacle bypass path.
可选地,前述根据前述当前位置以及前述绕障终点规划绕障路径,包括:Optionally, the aforementioned planning of the obstacle bypass path according to the aforementioned current position and the aforementioned obstacle bypass end point includes:
确定前述当前位置与前述绕障终点之间的距离,将直径为前述距离并且将前述当前位置和前述绕障终点连接到一起的圆弧作为前述绕障路径。The distance between the current position and the end point of the obstacle is determined, and the diameter is the distance and the arc connecting the current position and the end point of the obstacle is taken as the obstacle path.
可选地,前述根据前述当前位置以及前述绕障终点规划绕障路径,包括:Optionally, the aforementioned planning of the obstacle bypass path according to the aforementioned current position and the aforementioned obstacle bypass end point includes:
将前述当前位置与前述绕障终点之间的连线作为第一轴;Take the connection between the current position and the end point of the obstacle as the first axis;
根据前述障碍物的宽度和前述清洁机器人的尺寸,确定与前述第一轴垂直的第二轴;Determine a second axis perpendicular to the first axis according to the width of the obstacle and the size of the cleaning robot;
将长轴和短轴分别为前述第一轴和前述第二轴,且将前述当前位置和前述绕障终点连接到一起的椭圆弧,作为前述绕障路径。The long axis and the short axis are respectively the first axis and the second axis, and the elliptical arc connecting the current position and the end point of the obstacle is taken as the obstacle bypass path.
可选地,前述根据前述当前位置以及前述绕障终点规划绕障路径,包括:Optionally, the aforementioned planning of the obstacle bypass path according to the aforementioned current position and the aforementioned obstacle bypass end point includes:
确定前述当前位置与前述绕障终点之间的多个中间点,前述中间点位于前述障碍物的外侧;Determine a plurality of intermediate points between the current position and the end point of the obstacle, and the intermediate points are located outside the obstacle;
将依次连接前述当前位置、前述中间点、前述绕障终点的线作为前述绕障路径。The line connecting the current position, the middle point, and the end point of the obstacle bypass in sequence is used as the obstacle bypass path.
可选地,前述在前述图像上生成虚拟行进线和虚拟视距线,包括:Optionally, the aforementioned generation of a virtual travel line and a virtual line of sight on the aforementioned image includes:
根据预先确定的虚拟行进线和虚拟视距线映射至前述摄像头所拍摄的标定图像中的位置,将前述虚拟行进线和前述虚拟视距线添加到前述图像上。The virtual travel line and the virtual line of sight are added to the image according to the predetermined virtual travel line and the virtual line of sight mapped to the position in the calibration image captured by the camera.
可选地,前述绕障方法还包括:Optionally, the aforementioned method for bypassing the barrier further includes:
通过前述摄像头获取标定对象的标定图像;前述标定对象上具有用于代表前述虚拟行进线的第一线条和用于代表前述虚拟视距线的第二线条;The calibration image of the calibration object is obtained by the camera; the calibration object has a first line representing the virtual travel line and a second line representing the virtual line of sight;
确定前述第一线条和前述第二线条在前述标定图像中的位置。The positions of the first line and the second line in the calibration image are determined.
可选地,前述绕障方法还包括:Optionally, the aforementioned method for bypassing the barrier further includes:
响应于前述清洁机器人转弯,确定前述清洁机器人的转向轨迹;In response to the aforementioned cleaning robot turning, determining the steering trajectory of the aforementioned cleaning robot;
使前述虚拟行进线调整为沿着前述转向轨迹延伸。The aforementioned virtual travel line is adjusted to extend along the aforementioned turning trajectory.
第二方面,本公开提供了一种清洁机器人,该清洁机器人包括处理器、存储器和存储在前述存储器上的执行指令,前述执行指令设置成在被前述处理器执行时能够使前述清洁机器人执行第一方面中任一项技术方案所述的绕障方法。In a second aspect, the present disclosure provides a cleaning robot, which includes a processor, a memory, and execution instructions stored on the memory, the execution instructions being configured to enable the cleaning robot to execute the first step when executed by the processor. In one aspect, the method for bypassing the barrier described in any one of the technical solutions.
基于前文的描述,本领域技术人员能够理解的是,本公开通过摄像头获取清洁机器人前方的图像,并在该图像中生成虚拟行进线和虚拟视距线,以便通过虚拟行进线来确定清洁机器人将要行走的路径,通过虚拟视距线来确定清洁机器人在行进方向上的安全距离。进而以图像中障碍物位于虚拟行进线和虚拟视距线的远离清洁机器人的一侧为约束条件,控制清洁机器人对障碍物进行绕障行走。因此,本公开不仅可以通过摄像头识别障碍物,还通过在摄像头采集到图像上生成虚拟行进线和虚拟视距线,并使障碍物始终位于虚拟行进线和虚拟视距线的远离清洁机器人的一侧,避免了清洁机器人在行走的过程中与障碍物发生碰撞。Based on the foregoing description, those skilled in the art can understand that the present disclosure acquires an image in front of the cleaning robot through a camera, and generates a virtual travel line and a virtual line of sight in the image, so that the virtual travel line can be used to determine that the cleaning robot will The walking path determines the safe distance of the cleaning robot in the traveling direction through the virtual line of sight. Then, the obstacle in the image is located on the side of the virtual travel line and the virtual line of sight away from the cleaning robot as a constraint condition, and the cleaning robot is controlled to walk around the obstacle. Therefore, the present disclosure can not only identify obstacles through the camera, but also generate a virtual travel line and a virtual line of sight on the images collected by the camera, so that the obstacle is always located in a part of the virtual travel line and the virtual line of sight far away from the cleaning robot. side, to avoid the collision between the cleaning robot and the obstacle in the process of walking.
进一步可选地,在图像中障碍物与虚拟视距线接触时,通过以图像中障碍物与虚拟行进线相切为约束条件,控制清洁机器人对障碍物进行绕障行走,使得清洁机器人在绕行障碍物的过程中,与障碍物之间始终保持一直保持较为接近的距离,以便对障碍物周围的环境进行精细清扫。Further optionally, when the obstacle in the image is in contact with the virtual line of sight, the cleaning robot is controlled to walk around the obstacle by taking the tangent of the obstacle in the image and the virtual travel line as the constraint condition, so that the cleaning robot is walking around the obstacle. In the process of moving obstacles, always keep a relatively close distance with the obstacles, so as to clean the environment around the obstacles finely.
进一步可选地,在图像中障碍物与虚拟视距线接触时,通过确定图像中障碍物的宽度和长度估计值,能够初步确定清洁机器人的绕障终点,以便使清洁机器人根据当前位置和绕障终点规划绕障路径,从而使得清洁机器人能够快速绕开障碍物。同时,在虚拟视距线和/或虚拟行进线接触到障碍物时,通过根据行进过程中获取的图像更新绕障终点,并根据更新后的绕障终点调整后续的绕障路径,有效地避免了清洁机器人在绕障过程中与障碍物发生碰撞的情形。Further optionally, when the obstacle in the image is in contact with the virtual line of sight, by determining the estimated value of the width and length of the obstacle in the image, the end point of the cleaning robot around the obstacle can be preliminarily determined, so that the cleaning robot can be based on the current position and around the obstacle. The obstacle end point is planned to bypass the obstacle, so that the cleaning robot can quickly bypass the obstacle. At the same time, when the virtual line of sight and/or the virtual travel line touches an obstacle, the obstacle bypass end point is updated according to the image obtained during the travel process, and the subsequent obstacle bypass path is adjusted according to the updated obstacle bypass end point, so as to effectively avoid the obstacle. The situation in which the cleaning robot collides with the obstacle during the obstacle course is analyzed.
附图说明Description of drawings
为了更清楚地说明本公开的技术方案,下面将结合附图来对本公开的部分实施例进行详细说明,附图中:In order to illustrate the technical solutions of the present disclosure more clearly, some embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. In the accompanying drawings:
图1是本公开第一实施例中绕障方法的主要步骤流程示意图;1 is a schematic flowchart of the main steps of a method for bypassing a barrier in the first embodiment of the present disclosure;
图2是本公开第一实施例中具有虚拟行进线和虚拟视距线的图像的效果示意图;2 is a schematic diagram of the effect of an image with a virtual travel line and a virtual line of sight in the first embodiment of the present disclosure;
图3是本公开第一实施例中清洁机器人的精细绕障路径示意图;3 is a schematic diagram of a fine obstacle-circumferential path of the cleaning robot in the first embodiment of the present disclosure;
图4是本公开第一实施例中清洁机器人在精细绕障过程中的图像的效果示意图;FIG. 4 is a schematic diagram of the effect of the image of the cleaning robot in the process of finely circumventing obstacles in the first embodiment of the present disclosure;
图5是本公开第一实施例中清洁机器人快速绕障的步骤流程图;5 is a flow chart of steps for a cleaning robot to quickly bypass obstacles in the first embodiment of the present disclosure;
图6是本公开第一实施例中清洁机器人的快速绕障路径示意图(一次规划完成);FIG. 6 is a schematic diagram of a fast obstacle course of the cleaning robot in the first embodiment of the present disclosure (completed in one planning);
图7是本公开第一实施例中清洁机器人的快速绕障过程的路径示意图(路径为圆弧);7 is a schematic diagram of a path of a rapid obstacle-circumvention process of the cleaning robot in the first embodiment of the present disclosure (the path is an arc);
图8是本公开第一实施例中清洁机器人的快速绕障过程的路径示意图(路径为椭圆弧);8 is a schematic diagram of a path of a rapid obstacle-circumvention process of the cleaning robot in the first embodiment of the present disclosure (the path is an elliptical arc);
图9是本公开第一实施例中清洁机器人的快速绕障过程的路径示意图(路径为多边形);FIG. 9 is a schematic diagram of a path of a quick obstacle course of the cleaning robot in the first embodiment of the present disclosure (the path is a polygon);
图10是本公开第一实施例中清洁机器人的快速绕障过程的路径示意图(路径为多工字形);10 is a schematic diagram of a path of a quick obstacle-circumvention process of the cleaning robot in the first embodiment of the present disclosure (the path is a multi-I-shaped);
图11是本公开第一实施例中清洁机器人的快速绕障路径示意图(多次规划完成);FIG. 11 is a schematic diagram of a fast obstacle course of the cleaning robot in the first embodiment of the present disclosure (multiple planning is completed);
图12是本公开第二实施例中绕障方法的部分步骤流程示意图;FIG. 12 is a schematic flowchart of part of the steps of the barrier bypass method in the second embodiment of the present disclosure;
图13是本公开第二实施例中对摄像头进行标定的示意图;13 is a schematic diagram of calibrating a camera in the second embodiment of the present disclosure;
图14是本公开第三实施例中绕障方法的部分步骤流程示意图;FIG. 14 is a schematic flowchart of part of the steps of the barrier bypass method in the third embodiment of the present disclosure;
图15是本公开第三实施例中虚拟行进线和虚拟视距线在清洁机器人拐弯时的示意图;15 is a schematic diagram of a virtual travel line and a virtual line of sight when the cleaning robot turns a corner in the third embodiment of the present disclosure;
图16是本公开第三实施例中虚拟行进线转向角的几何示意图;16 is a geometric schematic diagram of a virtual line of travel steering angle in the third embodiment of the present disclosure;
图17是本公开第四实施例中绕障方法的部分步骤流程示意图;FIG. 17 is a schematic flowchart of part of the steps of the barrier bypass method in the fourth embodiment of the present disclosure;
图18是本公开第五实施例中清洁机器人的结构示意图。FIG. 18 is a schematic structural diagram of a cleaning robot in a fifth embodiment of the present disclosure.
附图标记列表:List of reference numbers:
1、虚拟行进线;11、左侧虚拟行进线;12、右侧虚拟行进线;13、中间虚拟行进线;1. Virtual traveling line; 11. Left virtual traveling line; 12. Right virtual traveling line; 13. Middle virtual traveling line;
2、虚拟视距线;21、第一虚拟视距线;22、第二虚拟视距线;23、第三虚拟视距线;2. Virtual line of sight; 21. The first virtual line of sight; 22, The second virtual line of sight; 23, The third virtual line of sight;
3、障碍物;3. Obstacles;
4、清洁机器人;41、摄像头4. Cleaning robot; 41. Camera
5、绕障路径;5. Path around obstacles;
6、标定板。6. Calibration board.
具体实施方式Detailed ways
为使本公开的目的、技术方案和优点更加清楚,下面将结合具体实施例及相应的附图对本公开的技术方案进行清楚、完整地描述。本领域技术人员应当理解的是,本节具体实施方式中所描述的实施例仅是本公开的一部分实施例,而不是本公开的全部实施例。基于本节具体实施方式中所描述的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其它实施例,都不会偏离本公开的技术原理,因此都应当落入到本公开的保护范围内。In order to make the objectives, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure will be clearly and completely described below with reference to specific embodiments and corresponding drawings. It should be understood by those skilled in the art that the embodiments described in the detailed description in this section are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure. Based on the embodiments described in the detailed description of this section, all other embodiments obtained by those of ordinary skill in the art without creative work will not deviate from the technical principles of the present disclosure, and therefore should fall within the scope of within the protection scope of the present disclosure.
需要说明的是,在本公开的描述中,各个功能模块既可以是由多个结构、构件或电子元器件构成的物理模块,也可以是由多条程序构成的虚拟模块;各个功能模块既可以是彼此独立存在的模块,也可以是由一个整体模块按照功能划分而成的模块。本领域技术人员应当理解的是,在能够实现本公开所描述的技术方案的前提下,各个功能模块的构成方式、实现方式、位置关系无论怎样变化都不会偏离本公开的技术原理,因此都应当落入本公开的保护范围之内。It should be noted that, in the description of the present disclosure, each functional module may be a physical module composed of multiple structures, components or electronic components, or a virtual module composed of multiple programs; each functional module may be It is a module that exists independently of each other, or it can be a module divided by a whole module according to its functions. It should be understood by those skilled in the art that, on the premise that the technical solutions described in the present disclosure can be realized, no matter how the composition mode, implementation mode, and positional relationship of each functional module change, they will not deviate from the technical principles of the present disclosure. should fall within the scope of protection of the present disclosure.
本公开的清洁机器人包括扫地机器人、拖地机器人、扫吸拖一体机器人等具有清洁功能的机器人。本公开的清洁机器人上设置有摄像头,该摄像头能够采集清洁机器人前方的图像。本公开的清洁机器人还包括两个驱动轮,该两个驱动轮分别位于该清洁机器人的左右两侧,该两个驱动轮用于驱动清洁机器人行走和转向。The cleaning robots of the present disclosure include robots with cleaning functions, such as sweeping robots, mopping robots, and sweeping-suction-mopping integrated robots. The cleaning robot of the present disclosure is provided with a camera, and the camera can capture an image in front of the cleaning robot. The cleaning robot of the present disclosure further includes two driving wheels, the two driving wheels are respectively located on the left and right sides of the cleaning robot, and the two driving wheels are used to drive the cleaning robot to walk and turn.
下面参照附图来对本公开的一些实施例进行详细说明。Some embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
在本公开的第一实施例中:In the first embodiment of the present disclosure:
如图1所示,本实施例清洁机器人的绕障方法包括:As shown in FIG. 1 , the obstacle circumvention method for the cleaning robot in this embodiment includes:
步骤S110,通过摄像头获取清洁机器人前方的图像。In step S110, an image in front of the cleaning robot is acquired through a camera.
在本实施例中,清洁机器人在行走的过程中,可以通过摄像头每间隔一段时间(例如0.5秒、1秒、1.8秒、5秒等)就获取一次清洁机器人前方的图像,也可以通过摄像头实时地拍摄清洁机器人前方的视频,然后提取视频的帧。In this embodiment, during the walking process of the cleaning robot, the camera can obtain an image in front of the cleaning robot at intervals (for example, 0.5 seconds, 1 second, 1.8 seconds, 5 seconds, etc.) to capture a video of the front of the cleaning robot, and then extract the frames of the video.
步骤S120,在图像上生成虚拟行进线1和虚拟视距线2。In step S120, a
如图2所示,将预先存储的虚拟行进线数据和虚拟视距线数据添加到步骤S110中获取的图像中,或者根据步骤S110中获取的图像和预先存储的虚拟行进线数据和虚拟视距线数据生成新的图像,以便将步骤S110中获取的图像与预先存储的虚拟行进线数据和虚拟视距线数据结合到一起。As shown in FIG. 2, pre-stored virtual travel line data and virtual line of sight data are added to the image acquired in step S110, or according to the image acquired in step S110 and the pre-stored virtual travel line data and virtual line of sight The line data generates a new image so as to combine the image acquired in step S110 with the pre-stored virtual travel line data and virtual line of sight line data.
继续参阅图2,图像上的虚拟行进线1与实际环境中清洁机器人的左右边缘向前延伸而成的虚拟线条相对应。优选地,图像上的左侧虚拟行进线11和右侧虚拟行进线12与清洁机器人等宽,以便图像中出现与左侧虚拟行进线11和右侧虚拟行进线12接触或者位于两者之间的障碍物时,便可认定清洁机器人前方存在阻碍清洁机器人行进的障碍物。此外,在能够从图像中识别出阻碍清洁机器人行进的障碍物的前提下,本领域技术人员也可以根据需要,使图像上的左侧虚拟行进线11和右侧虚拟行进线12之间的距离大于或小于清洁机器人的宽度。Continuing to refer to FIG. 2 , the
继续参阅图2,图像中的虚拟视距线2与实际环境中清洁机器人前方预设安全距离处的虚拟线条相对应。其中,该预设安全距离指的是,从清洁机器人通过摄像头获取前方的图像开始,至清洁机器人通过获取到的图像识别到前方具有障碍物,再到停止前进或转向的过程中所走过的最大距离。在清洁机器人不会与前方障碍物发生碰撞的前提下,该预设安全距离可以是任意可行的数值,例如5cm、15cm、20cm、40cm、50cm、100cm等。Continuing to refer to FIG. 2 , the virtual line of
进一步,图像中的虚拟视距线2的数量可以是一条,也可以是多条,如图2中所示的第一虚拟视距线21、第二虚拟视距线22和第三虚拟视距线23。其中,第一虚拟视距线21与清洁机器人之间的距离的取值范围为[5cm,15cm];第二虚拟视距线22与清洁机器人之间的距离的取值范围为[20cm,40cm];第三虚拟视距线23与清洁机器人之间的距离的取值范围为[50cm,100cm]。Further, the number of virtual line of
步骤S130,以图像中障碍物位于虚拟行进线和虚拟视距线的远离清洁机器人的一侧为约束条件,控制清洁机器人对障碍物进行绕障行走。Step S130: Control the cleaning robot to walk around the obstacle with the obstacle located on the side of the virtual travel line and the virtual line of sight away from the cleaning robot as a constraint condition.
作为示例一,在图像中障碍物与虚拟视距线2接触时,以图像中障碍物与虚拟行进线1相切为约束条件,控制清洁机器人对障碍物进行绕障行走。下面参照图3和图4,来对本示例进行详细说明。As an example, when the obstacle in the image is in contact with the virtual line of
如图3所示,当清洁机器人4行进至位置1时,障碍物3与第一虚拟视距线21相接触,使清洁机器人4原地转向,直到障碍物3离开左侧虚拟行进线11并与之相切时(参见图4),再使清洁机器人4沿直线从位置1行进到位置2。As shown in FIG. 3 , when the cleaning
进一步,清洁机器人4移动至位置2时,左侧虚拟行进线11不与障碍物3相切,使清洁机器人4转向,直至左侧虚拟行进线11与障碍物3相切时,再使清洁机器人4沿直线从位置2行进到位置3。Further, when the cleaning
重复上述过程,使清洁机器人4行驶至位置3、位置4、位置5,直至行驶至位置6,使清洁机器人回到了原定的、无障碍物时的直线行进路线上,再使清洁机器人原地转向,恢复到位置1时正向行进的姿态,并继续执行原定的行走作业。或者,使清洁机器人4重复上述过程,对障碍物3绕障一周,实现沿边清洁。Repeat the above process, make the
本领域技术人员能够理解的是,本实施例示例一中的路径规划策略能够使清洁机器人对障碍物边缘区域进行全方位、无死角地清洁,尤其适合边角旮旯和柜下床下等狭小空间的清洁作业。但是,该种路径规划策略会需要大量重复的障碍物检测和条件判断,导致计算资源消耗和算力占用较大。为此,本实施例还提供了快速清扫的路径规划策略,具体请参见下位所描述的示例二。It can be understood by those skilled in the art that the path planning strategy in Example 1 of this embodiment can enable the cleaning robot to clean the edge area of obstacles in an all-round way without dead ends, and is especially suitable for narrow spaces such as corners and corners and under the bed under the cabinet. cleaning job. However, this kind of path planning strategy requires a lot of repeated obstacle detection and condition judgment, resulting in a large consumption of computing resources and occupation of computing power. To this end, this embodiment also provides a route planning strategy for quick cleaning. For details, please refer to Example 2 described below.
如图5所示,示例二的路径规划包括:As shown in Figure 5, the path planning of Example 2 includes:
步骤S131,在图像中障碍物与虚拟视距线接触时,根据图像确定障碍物的宽度以及长度估计值。Step S131, when the obstacle in the image is in contact with the virtual line of sight, determine the estimated value of the width and length of the obstacle according to the image.
步骤S132,根据障碍物的长度估计值确定清洁机器人的绕障终点。Step S132: Determine the obstacle-circumferential end point of the cleaning robot according to the estimated length of the obstacle.
步骤S133,根据当前位置以及绕障终点规划绕障路径。Step S133 , planning the obstacle bypass path according to the current position and the obstacle bypass end point.
步骤S134,使清洁机器人沿着绕障路径行走。Step S134, making the cleaning robot walk along the path around the obstacle.
步骤S135,虚拟视距线和/或虚拟行进线是否接触到障碍物?如果接触到了,执行步骤S136;如果没有接触到,执行步骤S134。Step S135, does the virtual line of sight and/or the virtual travel line touch an obstacle? If it is touched, go to step S136; if not, go to step S134.
步骤S136,根据行进过程中获取的图像更新绕障终点,并根据更新后的绕障终点调整后续的绕障路径,然后继续执行步骤S134。Step S136 , update the obstacle bypass end point according to the image acquired during the traveling process, and adjust the subsequent obstacle bypass path according to the updated obstacle bypass end point, and then continue to perform step S134 .
下面结合图6至图11,来对示例二的路径规划进行举例说明。The path planning of Example 2 is illustrated below with reference to FIG. 6 to FIG. 11 .
在图6至图11中,圆圈1、2、3、4、5、6表示清洁机器人绕障过程中的不同节点。虚线圆表示第一虚拟视距线21和第二虚拟视距线22的中心点在清洁机器人360°原地旋转时形成的水平面内轨迹。设定,清洁机器人当前位置的初始坐标为(0,0),绕过障碍物后绕障终点的坐标为(D0,0)。其中,D0为清洁机器人在障碍物前后两侧位置时的直线距离,其中,D0大于D,例如设定D0=D+2*d2,D为障碍物3长度估计值,d2为预设值以使清洁机器人和障碍物留有一定的安全间隙。In FIGS. 6 to 11 ,
在本示例中,图像中与障碍物接触的虚拟视距线为第二虚拟视距线22,或者本领域技术人员也可以根据需要,选定其他任意可行的虚拟视距线作为与障碍物接触的虚拟视距线,例如,第一虚拟视距线21、第三虚拟视距线23、位于第一、第二或第三虚拟视距线内侧的任意虚拟视距线。In this example, the virtual line of sight that is in contact with the obstacle in the image is the second virtual line of
本领域技术人员能够理解的是,由于大部分的障碍物的横截面并不是方形或圆形,因此,清洁机器人无法准确地获取图像中障碍物厚度(长度)的真实数据。只能通过障碍物3的实际宽度确定出障碍物3的长度估计值,该长度估计值可以为障碍物3的实际宽度的预设倍数,比如为1倍、2倍。It can be understood by those skilled in the art that, since the cross-sections of most obstacles are not square or circular, the cleaning robot cannot accurately obtain the real data of the thickness (length) of the obstacles in the image. The estimated length of the
如图6所示,在估计的长度值大于等于障碍物3的实际长度值时,清洁机器人仅需要规划一次绕障路径5即可。一次规划而成的绕障路径5可以是图7中所示的圆弧、图8中所示的椭圆弧、图9中所示的多边形、图10中所示的弓字形等。As shown in FIG. 6 , when the estimated length value is greater than or equal to the actual length value of the
在图7中,先根据图像内障碍物3的像素信息计算障碍物3真实宽度距离W,然后以W估计障碍物3长度估计值D,设定D0=D+2*d2。其中,d2为第二虚拟视距线22到清洁机器人中心的距离。最后生成直径为D0,并且将起点(0,0)和终点(D0,0)连接到一起的圆弧作为绕障路径5。In FIG. 7 , the real width distance W of the
在图8中,与图7中不同的是,将起点(0,0)和终点(D0,0)连接到一起的椭圆弧作为绕障路径5。其中,该椭圆弧的长轴(第一轴)为将起点(0,0)和终点(D0,0)之间的连线,该椭圆弧的短轴(第二轴)为(W+2*R0)。其中,R0表示清洁机器人中心点到能够清洁到的最远距离。In FIG. 8 , unlike in FIG. 7 , an elliptical arc connecting the start point (0, 0) and the end point (D0, 0) together is used as the
在图9中,绕障路径5具有6个依次相连的节点:(0,0)(0,D0/6)(D0/3,D0/2)、(2*D0/3,D0/2)、(D0,D0/6)、(D0,0)。In Fig. 9, the
在图10中,绕障路径5具有4个依次相连的节点:(0,0)、(0,D0/2)、(D0,D0/2)、(D0,0)。In FIG. 10 , the
如图11所示,在估计的长度值小于障碍物3的实际长度值时,清洁机器人需要多次规划绕障路径5。具体地,在图像中障碍物与虚拟视距线接触时,先根据图像确定障碍物的宽度以及长度估计值,然后如图7至图10中任一方式确定初步地绕障路径5,并使清洁机器人开始沿着该绕障路径5开始行进。As shown in FIG. 11 , when the estimated length value is smaller than the actual length value of the
在虚拟视距线和/或虚拟行进线再次接触到障碍物3时,先使绕障终点朝着远离绕障起点的方向增加,例如增加一个距离dL,变成(D0+dL),并根据更新后的绕障终点调整后续的绕障路径5,并使清洁机器人沿着调整后的绕障路径5继续行进。如果虚拟视距线和/或虚拟行进线再次接触到障碍物3时,再使绕障终点朝着远离绕障起点的方向移动一个距离dL。其中,dL可以是任意可行的数值,例如2cm、5cm、9cm、11.5cm等。When the virtual line of sight and/or the virtual travel line touches the
或者,在虚拟视距线和/或虚拟行进线再次接触到障碍物3时,利用清洁机器人行进过程中拍摄的图像,重新计算障碍物3的长度估计值,然后更新绕障终点,并根据更新后的绕障终点调整后续的绕障路径5,并使清洁机器人沿着调整后的绕障路径5继续行进。Alternatively, when the virtual line of sight and/or the virtual travel line touches the
基于前文的描述,本领域技术人员能够理解的是,本公开的清洁机器人不仅可以通过摄像头来识别前方的障碍物,还能够通过图像中虚拟行进线1和虚拟视距线2与障碍物的关系来引导清洁机器人对该障碍物进行精细绕障或快速绕障作业。Based on the foregoing description, those skilled in the art can understand that the cleaning robot of the present disclosure can not only identify the obstacle ahead through the camera, but also can identify the relationship between the
需要说明的是,本公开的第一实施例仅为本公开的绕障方法的一个基础实施例,在其基础上还可以得到其它可选的实施例,例如下面的第二实施例。It should be noted that the first embodiment of the present disclosure is only a basic embodiment of the barrier bypassing method of the present disclosure, and other optional embodiments can also be obtained on the basis of the method, such as the following second embodiment.
在本公开的第二实施例中:In the second embodiment of the present disclosure:
如图12所示,与第一实施例不同的是,本实施例的绕障方法在步骤S110之前,还包括:As shown in FIG. 12 , different from the first embodiment, before step S110 , the barrier bypass method of this embodiment further includes:
步骤S210,通过摄像头获取标定对象的标定图像。In step S210, a calibration image of the calibration object is acquired through a camera.
如图13所示,在本实施例中,先选取棋盘格式的标定板6作为标定对象。该标定板6与清洁机器人4等宽,均为W0,标定板6的长度L0超出摄像头41图像的成像范围。As shown in FIG. 13 , in this embodiment, the
然后,将清洁机器人4固定在水平地面上,具体位置如图13所示:使清洁机器人4的直线行进方向与标定板6的宽度方向在水平地面上垂直,使清洁机器人4的直线行进中心线与标定板6的宽度的中心线重合,使清洁机器人4的本体前端固定在标定板6的起始位置。Then, fix the
再,调整摄像头41的位置、焦距、视场角、成像等参数变量,以使摄像头41所拍摄到的图像满足如下条件:宽边w与图13中的Y向一致,高边h与图13中X向一致,并且图13中X轴线垂直平分图像的宽边w,以使图像中的标定板6关于X轴线左右对称,图像中的XY坐标轴的原点出现在图像的最下沿的宽边w的1/2处。Then, the parameter variables such as the position, focal length, field of view, and imaging of the
再,使摄像头41获取标定板6的标定图像。Then, the
最后,将标定图像中的标定板6的位置和度量信息映射到二维图像空间,为标定图像新建掩膜图层,用于存放生成的虚拟行进线1和虚拟视距线2。Finally, map the position and measurement information of the
步骤S220,确定第一线条和第二线条在标定图像中的位置。Step S220, determining the positions of the first line and the second line in the calibration image.
其中,第一线条和第二线条分别存在于标定板6上,并且第一线条代表虚拟行进线1,第二线条代表虚拟视距2。具体地,第一线条是图13中标定板6的上边缘线(在标定图像中为左侧边缘线)和下边缘线(在标定图像中为右侧边缘线)。第二线条是图13中标定板6平行于Y轴的线条。通常情况下,标定板6中有多条第二线条。Wherein, the first line and the second line respectively exist on the
步骤S230,根据第一线条确定虚拟行进线,根据第二线条确定虚拟视距线。Step S230: Determine the virtual travel line according to the first line, and determine the virtual line of sight according to the second line.
如图2和图13所示,从标定图像中提取标定板6的左侧边缘线,计算左侧边缘线的起点位置PL0(xl0,yl0)、终点位置PL1(xl1,yl1)和斜率利用PL0、PL1、KL数据在掩膜图层生成第一虚拟行进线11(左侧限位标志线Leftline),第一虚拟行进线11与标定图像中标定板6的左侧边缘线重合。同样地,从标定图像中提取标定板6的右侧边缘线,计算直线的起点位置PR0(xr0,yr0)、终点位置PR1(xr1,yr1)和斜率利用PR0、PR1、KR数据在掩膜图层生成第二虚拟行进线12(右侧限位标志线Rightline),第二虚拟行进线12与标定图像中标定板6的右侧边缘线重合。进一步,在掩膜图层生成第三虚拟行进线13(中心标志线Centerline),第三虚拟行进线13为标定图像左右方向上的垂直平分线。As shown in Figure 2 and Figure 13, the left edge line of the
从图2和图13中不难看出:第一虚拟行进线11和第二虚拟行进线12之间的区域即为清洁机器人4直线行进的安全车道。It is not difficult to see from FIG. 2 and FIG. 13 that the area between the first
进一步,根据清洁机器人行进速度和实际需要,在掩膜图层生成几条虚拟视距线2,如图2中所示的第一条虚拟视距线21、第二条虚拟视距线22和第三条虚拟视距线23。其中,每一条虚拟视距线都与第三虚拟行进线13垂直,并且位于第一虚拟行进线11与第二虚拟行进线12之间。优选地,掩膜图层的底边到第一条虚拟视距线21的距离d1经仿射变换后对应的实际距离为5cm~15cm,掩膜图层的底边到第二条虚拟视距线22的距离d2经仿射变换后对应的实际距离为20cm~40cm,掩膜图层的底边到第三条虚拟视距线23的距离d3经仿射变换后对应的实际距离为50cm~100cm。Further, according to the traveling speed of the cleaning robot and the actual needs, several
其中,虚拟视距线为判断清洁机器人与前方距离的依据。Among them, the virtual line of sight is the basis for judging the distance between the cleaning robot and the front.
再进一步,为了防止清洁机器人碰撞到障碍物,还可以根据清洁机器人的行走速度来设置虚拟视距线的缩放系数α。α可以根据清洁机器人的实时直线行进速度来动态调整。清洁机器人在正常速度时α=1,速度越大时α越大,速度越小时α越小。以掩膜图层的底边到第一虚拟行进线11的距离d1'为例,d1'=α*d1。Further, in order to prevent the cleaning robot from colliding with an obstacle, the scaling factor α of the virtual line of sight may also be set according to the walking speed of the cleaning robot. α can be dynamically adjusted according to the real-time linear travel speed of the cleaning robot. When the cleaning robot is at a normal speed, α=1, the larger the speed, the larger the α, and the smaller the speed, the smaller the α. Taking the distance d1' from the bottom edge of the mask layer to the first
之后,在执行步骤S120时,可以将具有虚拟行进线1和虚拟视距线2的掩膜图层叠加到步骤S110中获取的图像中,从而在该图像上生成虚拟行进线1和虚拟视距线2。After that, when step S120 is performed, the mask layer having the
基于前文的描述,本领域技术人员能够理解的是,本实施例通过标定板6能够使清洁机器人生成精确探测障碍物的虚拟行进线1和虚拟视距线2,提升了清洁机器人探测障碍物的准确性和绕障的可靠性。Based on the foregoing description, those skilled in the art can understand that the
在本公开的第三实施例中:In the third embodiment of the present disclosure:
如图14所示,与第一实施例和/或第二实施例不同的是,本实施例的绕障方法在清洁机器人拐弯的过程中,还包括:As shown in FIG. 14 , different from the first embodiment and/or the second embodiment, the obstacle circumvention method of this embodiment further includes:
步骤S310,响应于清洁机器人转弯,确定清洁机器人的转向轨迹。Step S310, in response to the turning of the cleaning robot, determine the turning trajectory of the cleaning robot.
如图15和图16所示,O点为清洁机器人转弯轨迹的中心点;r为清洁机器人中心点的转弯半径;d0为清洁机器人左右两个驱动轮之间的距离;VL为左侧驱动轮的行驶速度;VR为右侧驱动轮的行驶速度;两驱动轮之间中心点处线速度为VM=(VL+VR)/2;d为Δt时间内右侧驱动轮比左侧驱动轮多行进的距离;θ3为清洁机器人航向角的变化量。根据几何关系可知,图16中的θ1=θ2=θ3。As shown in Figure 15 and Figure 16, point O is the center point of the cleaning robot's turning trajectory; r is the turning radius of the cleaning robot's center point; d0 is the distance between the left and right driving wheels of the cleaning robot; VL is the left driving wheel VR is the driving speed of the right driving wheel; the linear velocity at the center point between the two driving wheels is VM=(VL+VR)/2; d is the right driving wheel more than the left driving wheel in Δt Distance traveled; θ3 is the change in heading angle of the cleaning robot. According to the geometric relationship, θ1=θ2=θ3 in FIG. 16 .
清洁机器人的航向角:The heading angle of the cleaning robot:
由于θ1=θ2=θ3,清洁机器人绕圆心运动的角速度w:Since θ1=θ2=θ3, the angular velocity w of the cleaning robot moving around the center of the circle:
清洁机器人转向运动的圆弧半径:The arc radius of the cleaning robot's steering motion:
因此,根据VR、VL、d0和r,能够确定清洁机器人当前的转向轨迹。Therefore, according to VR, VL, d0 and r, the current steering trajectory of the cleaning robot can be determined.
步骤S320,将虚拟行进线调整为沿着转向轨迹延伸。Step S320, adjusting the virtual travel line to extend along the steering trajectory.
如图15所示地,使虚拟行进线1沿着转向轨迹延伸的延伸方向延伸,并且使每一条虚拟视距线与驱动轮的转向轨迹的切线垂直。As shown in FIG. 15 , the
基于前文的描述,本领域技术人员能够理解的是,本实施例的虚拟行进线1和虚拟视距线2能够随着清洁机器人的转向角度而调整,使清洁机器人在转向的过程中也能够通过虚拟行进线1和虚拟视距线2进行绕障作业。Based on the foregoing description, those skilled in the art can understand that the
在本公开的第四实施例中:In the fourth embodiment of the present disclosure:
如图16所示,与第一实施例、第二实施例和/或第三实施例不同的是,本实施例的绕障方法还包括:As shown in FIG. 16 , different from the first embodiment, the second embodiment and/or the third embodiment, the barrier bypassing method of this embodiment further includes:
步骤S401,障碍物检测。Step S401, obstacle detection.
具体地,在清洁机器人行进的过程中,通过摄像头持续地获取清洁机器人前方的图像,进而持续地识别图像中是否存在障碍物。Specifically, during the traveling process of the cleaning robot, the image in front of the cleaning robot is continuously acquired by the camera, and then whether there is an obstacle in the image is continuously identified.
步骤S402,前方是否存在移动的障碍物。Step S402, whether there is a moving obstacle ahead.
具体地,如果检测到图像中存在障碍物,则利用帧差法来确定该障碍物是否为移动的障碍物。如果不是,则执行步骤S403;如果是,则执行步骤S404。Specifically, if an obstacle is detected in the image, the frame difference method is used to determine whether the obstacle is a moving obstacle. If not, go to step S403; if yes, go to step S404.
步骤S403,更新路径表。Step S403, update the path table.
具体地,每间隔预设时长(例如5秒、7秒、15秒等)或预设距离(例如3cm、5cm、9cm等),和/或在清洁机器人的姿态每次发生变化时都更新清洁机器人的路径表。该路径表用于引导清洁机器人行进。Specifically, every preset duration (eg, 5 seconds, 7 seconds, 15 seconds, etc.) or preset distance (eg, 3cm, 5cm, 9cm, etc.) at intervals, and/or the cleaning robot is updated every time the posture of the cleaning robot changes The robot's path table. The path table is used to guide the cleaning robot.
步骤S404,判断移动的障碍物是否在第一虚拟视距线内。Step S404, it is determined whether the moving obstacle is within the first virtual line of sight.
具体地,可以从当前时刻获取的图像中,确定障碍物是否位于图像的底侧边缘与第一虚拟视距线之间。如果位于,则执行步骤S405,如果没有位于,则执行步骤S406。Specifically, it can be determined from the image acquired at the current moment whether the obstacle is located between the bottom edge of the image and the first virtual line of sight. If it is, go to step S405, if not, go to step S406.
步骤S405,障碍物规避,原地转向、停止或后退。Step S405, avoid obstacles, turn, stop or retreat in place.
具体地,可以使清洁机器人停止在当前位置,以等待移动的障碍物离开;也可以使清洁机器人后退,以避免清洁机器人与移动的障碍物发生碰撞;还可以使清洁机器人转向之后继续行进,以使清洁机器人绕过移动的障碍物,继续清洁作业。Specifically, the cleaning robot can be stopped at the current position to wait for the moving obstacle to leave; the cleaning robot can also be made to retreat to avoid collision between the cleaning robot and the moving obstacle; the cleaning robot can also be turned and then continued to travel to Move the cleaning robot around moving obstacles and continue cleaning.
步骤S406,判断移动的障碍物是否在第二虚拟视距线内。Step S406, it is determined whether the moving obstacle is within the second virtual line of sight.
具体地,可以从当前时刻获取的图像中,确定障碍物是否位于第一虚拟视距线和第二虚拟视线之间。如果位于,则执行步骤S407,如果没有位于,则执行步骤S408。Specifically, it can be determined from the image acquired at the current moment whether the obstacle is located between the first virtual line of sight and the second virtual line of sight. If it is, go to step S407, if not, go to step S408.
步骤S407,障碍物规避,行进转向、停止或行进。In step S407, the obstacle is avoided, and the travel is turned, stopped or traveled.
具体地,可以使清洁机器人停止在当前位置,以等待移动的障碍物离开;也可以使清洁机器人后退,以避免清洁机器人与移动的障碍物发生碰撞;还可以使清洁机器人转向之后继续行进,以使清洁机器人绕过移动的障碍物,继续清洁作业。Specifically, the cleaning robot can be stopped at the current position to wait for the moving obstacle to leave; the cleaning robot can also be made to retreat to avoid collision between the cleaning robot and the moving obstacle; the cleaning robot can also be turned and then continued to travel to Move the cleaning robot around moving obstacles and continue cleaning.
步骤S408,判断移动的障碍物是否在第三虚拟视距线内。Step S408, it is determined whether the moving obstacle is within the third virtual line of sight.
具体地,可以从当前时刻获取的图像中,确定障碍物是否位于第二虚拟视距线和第三虚拟视线之间。如果位于,则执行步骤S409,如果没有位于,则执行步骤S403。Specifically, it can be determined from the image acquired at the current moment whether the obstacle is located between the second virtual line of sight and the third virtual line of sight. If it is, go to step S409, if not, go to step S403.
步骤S409,运动评估,停止或行进。Step S409, motion evaluation, stop or go.
具体地,先对障碍物的移动状态和移动速度进行评估,以确定清洁机器人按照当前的行走方向和行驶速度是否会与移动的障碍物发生碰撞,如果不会发生碰撞,则使清洁机器人继续行进,如果会发生碰撞,则使清洁机器人停止行进。Specifically, the moving state and moving speed of the obstacle are first evaluated to determine whether the cleaning robot will collide with the moving obstacle according to the current walking direction and speed. If no collision occurs, the cleaning robot will continue to travel. , which stops the cleaning robot from traveling if a collision will occur.
基于前文的描述,本领域技术人员能够理解的是,本实施例的绕障方法还可以对移动的障碍物进行识别,并对移动的障碍物进行评估,以便在移动的障碍物影响清洁机器人行进时,调整清洁机器人的行进策略,以防止清洁机器人与移动的障碍物发生碰撞,同时还能够在移动的障碍物离开之后,继续对相应区域进行清洁。因此,本实施例的绕障方法也能够使清洁机器人对移动障碍物停留的区域进行清洁。Based on the foregoing description, those skilled in the art can understand that the obstacle circumvention method in this embodiment can also identify moving obstacles, and evaluate the moving obstacles, so that the moving obstacles can affect the cleaning robot's traveling. When , adjust the traveling strategy of the cleaning robot to prevent the cleaning robot from colliding with the moving obstacle, and at the same time, it can continue to clean the corresponding area after the moving obstacle leaves. Therefore, the obstacle circumvention method of this embodiment can also enable the cleaning robot to clean the area where the moving obstacle stays.
在本公开的第五实施例中:In the fifth embodiment of the present disclosure:
如图18所示,本公开还提供了一种清洁机器人。该清洁机器人在硬件层面上包括处理器,可选地还包括存储器和总线,此外该清洁机器人还允许包括其它业务所需要的硬件。As shown in FIG. 18 , the present disclosure also provides a cleaning robot. The cleaning robot includes a processor at the hardware level, optionally a memory and a bus, and the cleaning robot is also allowed to include hardware required by other services.
其中,存储器用于存放执行指令,该执行指令具体是能够被执行的计算机程序。进一步,存储器可以包括内存和非易失性存储器(non-volatile memory),并向处理器提供执行指令和数据。示例性地,内存可以是高速随机存取存储器(Random-Access Memory,RAM),非易失性存储器可以是至少1个磁盘存储器。The memory is used for storing execution instructions, and the execution instructions are specifically computer programs that can be executed. Further, the memory may include memory and non-volatile memory and provide execution instructions and data to the processor. Exemplarily, the memory may be a high-speed random-access memory (Random-Access Memory, RAM), and the non-volatile memory may be at least one disk storage.
其中,总线用于将处理器、存储器和网络接口相互连接到一起。该总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(PeripheralComponent Interconnect,外设部件互连标准)总线、EISA(ExtendedIndustryStandardArchitecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为了便于表示,图18中仅用一个双向箭头表示,但这并不表示仅有一根总线或一种类型的总线。Among them, the bus is used to interconnect the processor, memory and network interface. The bus may be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, an EISA (Extended Industry Standard Architecture, extended industry standard architecture) bus, and the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one bidirectional arrow is shown in FIG. 18, but this does not mean that there is only one bus or one type of bus.
在上述清洁机器人的一种可行的实施方式中,处理器可以先从非易失性存储器中读取对应的执行指令到内存中再运行,也可以先从其它设备上获取相应的执行指令再运行。处理器在执行存储器所存放的执行指令时,能够实现本公开上述任意一个绕障方法实施例中的绕障方法。In a feasible implementation manner of the above cleaning robot, the processor may first read the corresponding execution instructions from the non-volatile memory into the memory before running, or may first obtain the corresponding execution instructions from other devices before running . When the processor executes the execution instructions stored in the memory, the processor can implement the barrier bypassing method in any one of the foregoing barrier bypassing method embodiments of the present disclosure.
本领域技术人员能够理解的是,上述的绕障方法可以应用于处理器中,也可以借助处理器来实现。示例性地,处理器是一种集成电路芯片,具有处理信号的能力。在处理器执行上述绕障方法的过程中,上述绕障方法的各步骤可以通过处理器中硬件形式的集成逻辑电路或软件形式的指令完成。进一步,上述处理器可以是通用处理器,例如中央处理器(Central Processing Unit,CPU)、网络处理器(NetworkProcessor,NP)、数字信号处理器(Digital SignalProcessor,DSP)、专用集成电路(Application Specific IntegratedCircuit,ASIC)、现场可编程门阵列(Field-Programmable GateArray,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件、微处理器以及其它任何常规的处理器。Those skilled in the art can understand that the above-mentioned method for bypassing the barrier can be applied to a processor, and can also be implemented by a processor. Illustratively, a processor is an integrated circuit chip capable of processing signals. During the process of the processor executing the above-mentioned method for bypassing the barrier, each step of the above-mentioned method for bypassing the barrier may be completed by an integrated logic circuit in the form of hardware or an instruction in the form of software in the processor. Further, the above-mentioned processor may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU), a network processor (NetworkProcessor, NP), a digital signal processor (Digital SignalProcessor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit) , ASIC), field programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, microprocessors and any other conventional processors.
本领域技术人员还能够理解的是,本公开上述绕障方法实施例的步骤可以被硬件译码处理器执行完成,也可以被译码处理器中的硬件和软件模块组合执行完成。其中,软件模块可以位于随机存储器、闪存、只读存储器、可编程只读存储器、电可擦写可编程存储器、寄存器等其它本领域成熟的存储介质中。该存储介质位于存储器中,处理器读取存储器中的信息之后结合其硬件完成上述绕障方法实施例中步骤的执行。Those skilled in the art can also understand that, the steps of the above embodiments of the obstacle bypassing method of the present disclosure may be executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, and other storage media mature in the art. The storage medium is located in the memory, and after the processor reads the information in the memory, the processor completes the execution of the steps in the above embodiments of the barrier bypassing method in combination with its hardware.
至此,已经参照附图并结合上述实施例完成了对本公开技术方案的描述。So far, the description of the technical solutions of the present disclosure has been completed with reference to the accompanying drawings and in conjunction with the above embodiments.
需要说明的是,为了突出本公开上述多个实施例彼此之间的不同之处,本公开上述的多个实施例之间是以并列的方式和/或递进的方式来进行布局和描述的,并且后面的实施例仅重点说明了其与其它实施例之间的不同之处,各个实施例之间相同或相似的部分可以互相参照。举例说明,对于装置/产品实施例而言,由于装置/产品实施例与方法实施例基本相似,所以描述的相对比较简单,相关之处参见方法实施例对应部分的说明即可。It should be noted that, in order to highlight the differences between the above-mentioned embodiments of the present disclosure, the above-mentioned embodiments of the present disclosure are arranged and described in a juxtaposed manner and/or in a progressive manner , and the following embodiments only focus on the differences between them and other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For example, for the device/product embodiment, since the device/product embodiment is basically similar to the method embodiment, the description is relatively simple, and for related details, please refer to the description of the corresponding part of the method embodiment.
以上所述仅为本公开的实施例而已,并不用于限制本公开。对于本领域技术人员来说,本公开可以有各种更改和变化。凡在本公开技术原理之内所作的任何修改、等同替换、改进等,均应落入本公开的保护范围之内。The above descriptions are merely embodiments of the present disclosure, and are not intended to limit the present disclosure. Various modifications and variations of the present disclosure will occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the technical principles of the present disclosure shall fall within the protection scope of the present disclosure.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011567845.0A CN114690755A (en) | 2020-12-25 | 2020-12-25 | Cleaning robot and obstacle detouring method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011567845.0A CN114690755A (en) | 2020-12-25 | 2020-12-25 | Cleaning robot and obstacle detouring method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114690755A true CN114690755A (en) | 2022-07-01 |
Family
ID=82129729
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011567845.0A Pending CN114690755A (en) | 2020-12-25 | 2020-12-25 | Cleaning robot and obstacle detouring method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114690755A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115185286A (en) * | 2022-09-13 | 2022-10-14 | 上海仙工智能科技有限公司 | Autonomous obstacle-detouring planning method for mobile robot and task scheduling system thereof |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120058022A (en) * | 2010-11-29 | 2012-06-07 | 현대자동차주식회사 | Method for generating virtual line |
CN104102219A (en) * | 2014-07-09 | 2014-10-15 | 大连理工大学 | Planning method and device for driving route of intelligent shopping guide vehicle and intelligent shopping guide vehicle |
WO2018101709A1 (en) * | 2016-11-30 | 2018-06-07 | 현대엠엔소프트 주식회사 | Autonomous driving control apparatus and method |
JP2018158415A (en) * | 2017-03-23 | 2018-10-11 | ボッシュ株式会社 | Crawler type robot |
CN111026114A (en) * | 2019-12-12 | 2020-04-17 | 南京苏美达智能技术有限公司 | Obstacle detouring method and self-walking equipment |
CN111123952A (en) * | 2019-12-31 | 2020-05-08 | 华为技术有限公司 | A kind of trajectory planning method and device |
CN111820820A (en) * | 2019-04-19 | 2020-10-27 | 东芝生活电器株式会社 | Autonomous vacuum cleaner |
CN111990929A (en) * | 2020-08-26 | 2020-11-27 | 北京石头世纪科技股份有限公司 | Obstacle detection method and device, self-walking robot and storage medium |
-
2020
- 2020-12-25 CN CN202011567845.0A patent/CN114690755A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120058022A (en) * | 2010-11-29 | 2012-06-07 | 현대자동차주식회사 | Method for generating virtual line |
CN104102219A (en) * | 2014-07-09 | 2014-10-15 | 大连理工大学 | Planning method and device for driving route of intelligent shopping guide vehicle and intelligent shopping guide vehicle |
WO2018101709A1 (en) * | 2016-11-30 | 2018-06-07 | 현대엠엔소프트 주식회사 | Autonomous driving control apparatus and method |
JP2018158415A (en) * | 2017-03-23 | 2018-10-11 | ボッシュ株式会社 | Crawler type robot |
CN111820820A (en) * | 2019-04-19 | 2020-10-27 | 东芝生活电器株式会社 | Autonomous vacuum cleaner |
CN111026114A (en) * | 2019-12-12 | 2020-04-17 | 南京苏美达智能技术有限公司 | Obstacle detouring method and self-walking equipment |
CN111123952A (en) * | 2019-12-31 | 2020-05-08 | 华为技术有限公司 | A kind of trajectory planning method and device |
CN111990929A (en) * | 2020-08-26 | 2020-11-27 | 北京石头世纪科技股份有限公司 | Obstacle detection method and device, self-walking robot and storage medium |
Non-Patent Citations (1)
Title |
---|
吕伟新 等: "基于边界约束RRT的未知环境探索方法", 《华中科技大学学报(自然科学版)》, vol. 39, 30 November 2011 (2011-11-30) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115185286A (en) * | 2022-09-13 | 2022-10-14 | 上海仙工智能科技有限公司 | Autonomous obstacle-detouring planning method for mobile robot and task scheduling system thereof |
CN115185286B (en) * | 2022-09-13 | 2022-12-27 | 上海仙工智能科技有限公司 | Autonomous obstacle-detouring planning method for mobile robot and task scheduling system thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114084126B (en) | Method for determining collision-free space | |
WO2024031780A1 (en) | Path planning method, and vehicle and storage medium | |
JP2004048295A (en) | Image processing device, parking assist device, and image processing method | |
US11712802B2 (en) | Construction constrained motion primitives from robot maps | |
CN113442908B (en) | Automatic parking path planning method and system and parking control equipment | |
CN115200604A (en) | Turning path planning method, device, vehicle and storage medium | |
CN116476840B (en) | Lane changing driving method, device, equipment and storage medium | |
CN115042788A (en) | Traffic intersection passing method, device, electronic device, and storage medium | |
CN114740842A (en) | A method, device and medium for robot obstacle avoidance based on multi-sensor fusion | |
CN115123216A (en) | Vehicle obstacle avoidance method, device, vehicle, equipment and storage medium | |
CN114690755A (en) | Cleaning robot and obstacle detouring method thereof | |
WO2024113261A1 (en) | Robot and obstacle avoidance method therefor, and robot system and storage medium | |
CN114859370A (en) | Positioning method and apparatus, computer apparatus and computer readable storage medium | |
CN116035490A (en) | Robot corner cleaning method and device, robot and storage medium | |
CN112489131B (en) | Method, device, medium and robot for constructing cost map based on pavement detection | |
JP2020140477A (en) | Autonomous travel body | |
WO2024244790A1 (en) | Vehicle scratch identification method and apparatus, based on binocular stereo vision | |
CN113428179A (en) | Method and device for detecting lane distance, computer equipment and storage medium | |
WO2022134863A1 (en) | Anticollision method, mobile machine and storage medium | |
KR20200046159A (en) | Apparatus and method for assisting parking of vehicle | |
CN116552507A (en) | Parking method and device for inclined parking spaces, vehicle and storage medium | |
JP7661499B2 (en) | Collision avoidance method, mobile device, and storage medium | |
CN114341761B (en) | Anti-collision method, mobile machine and storage medium | |
JP2021076968A (en) | Autonomous vehicle | |
WO2022213636A1 (en) | Traveling control method and apparatus for autonomous mobile robot, device, and storage medium |
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 |