CN111436861A - Block edge closing processing method, electronic equipment and readable storage medium - Google Patents
Block edge closing processing method, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN111436861A CN111436861A CN201811613939.XA CN201811613939A CN111436861A CN 111436861 A CN111436861 A CN 111436861A CN 201811613939 A CN201811613939 A CN 201811613939A CN 111436861 A CN111436861 A CN 111436861A
- Authority
- CN
- China
- Prior art keywords
- block
- along
- sweeping robot
- closed path
- cleaning
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 13
- 238000010408 sweeping Methods 0.000 claims abstract description 136
- 238000004140 cleaning Methods 0.000 claims abstract description 115
- 238000000034 method Methods 0.000 claims abstract description 37
- 238000001514 detection method Methods 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 7
- 230000004888 barrier function Effects 0.000 claims description 3
- 230000008859 change Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/24—Floor-sweeping machines, motor-driven
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/40—Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/40—Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
- A47L11/4002—Installations of electric equipment
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L11/00—Machines for cleaning floors, carpets, furniture, walls, or wall coverings
- A47L11/40—Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
- A47L11/4011—Regulation of the cleaning machine by electric means; Control systems and remote control systems therefor
-
- 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
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L2201/00—Robotic cleaning machines, i.e. with automatic control of the travelling movement or the cleaning operation
- A47L2201/04—Automatic control of the travelling movement; Automatic obstacle detection
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47L—DOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
- A47L2201/00—Robotic cleaning machines, i.e. with automatic control of the travelling movement or the cleaning operation
- A47L2201/06—Control of the cleaning action for autonomous devices; Automatic detection of the surface condition before, during or after cleaning
Landscapes
- Engineering & Computer Science (AREA)
- Aviation & Aerospace Engineering (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
- Manipulator (AREA)
- Electric Vacuum Cleaner (AREA)
Abstract
本申请实施例提供了一种区块沿边的闭合处理方法、电子设备及可读存储介质,涉及机器人技术领域。该方法包括当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径,若为闭合路径,则基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件,若满足第一预设条件,则在该区块的对应区域内生成清扫线,并控制扫地机器人基于生成的清扫线执行对区块的清扫工作。本申请实施例实现了控制扫地机器人执行对区块的清扫工作。
Embodiments of the present application provide a block edge closing processing method, an electronic device, and a readable storage medium, which relate to the field of robotics. The method includes, when the sweeping robot is driving along any block, determining whether the driving path along the block is a closed path, and if it is a closed path, detecting whether the driving state of the sweeping robot along the block satisfies a first preset based on the closed path If the first preset condition is met, a cleaning line is generated in the corresponding area of the block, and the cleaning robot is controlled to perform cleaning work on the block based on the generated cleaning line. The embodiment of the present application realizes controlling the cleaning robot to perform the cleaning work on the block.
Description
技术领域technical field
本申请涉及机器人技术领域,具体而言,本申请涉及一种区块沿边的闭合处理方法、电子设备及可读存储介质。The present application relates to the field of robotics, and in particular, the present application relates to a block edge closing processing method, an electronic device, and a readable storage medium.
背景技术Background technique
随着信息技术的发展以及人们对生活质量要求的不断提高,智能家居产品逐渐出现在人们的日常生活中,其中,具有代表性的扫地机器人越来越受到人们的喜爱,扫地机器人可以代替人执行对区域的清扫工作。With the development of information technology and the continuous improvement of people's requirements for the quality of life, smart home products gradually appear in people's daily life. Among them, the representative sweeping robot is more and more popular among people, and the sweeping robot can replace the human execution Cleaning up the area.
扫地机器人在代替人执行对指定区域的清扫工作时,可以对指定区域进行区块划分,即将指定区域分成多个区块,然后对各个区块执行清扫工作,以执行对指定区域的清扫工作。其中,扫地机器人在执行对任一区块的清扫工作时,先执行沿边逻辑(沿区块逻辑),当沿边逻辑结束之后执行对区块内部的清扫工作,因此如何控制扫地机器人执行区块清扫工作成为一个关键问题。When the sweeping robot performs the cleaning work of the designated area on behalf of the human, it can divide the designated area into blocks, that is, divide the designated area into multiple blocks, and then perform the cleaning work on each block to perform the cleaning work on the designated area. Among them, when the sweeping robot performs the cleaning work of any block, it first executes the edge logic (along the block logic), and after the edge logic ends, it executes the cleaning work inside the block, so how to control the sweeping robot to perform the block cleaning Work becomes a key issue.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种区块沿边的闭合处理方法、电子设备及可读存储介质,用于解决扫地机器人执行区块清扫工作的技术问题。The present application provides a block edge closing processing method, an electronic device and a readable storage medium, which are used to solve the technical problem of a cleaning robot performing block cleaning work.
第一方面,提供了一种区块沿边的闭合处理的方法,该方法包括:In a first aspect, a method for closing a block edge is provided, the method comprising:
当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径;When the sweeping robot is driving along any block, determine whether the driving path along the block is a closed path;
若为闭合路径,则基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件;If it is a closed path, detecting whether the driving state of the sweeping robot along the block meets the first preset condition based on the closed path;
若满足第一预设条件,则在该区块的对应区域内生成清扫线,并控制扫地机器人基于生成的清扫线执行对区块的清扫工作。If the first preset condition is met, a cleaning line is generated in the corresponding area of the block, and the cleaning robot is controlled to perform cleaning work on the block based on the generated cleaning line.
本申请实施例的一种可能的实现方式,基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件的方式,包括以下任一项:A possible implementation of the embodiment of the present application, a method of detecting whether the driving state of the sweeping robot along the block satisfies the first preset condition based on a closed path includes any of the following:
基于闭合路径检测扫地机器人沿区块行驶是否回到起点,起点为沿区块行驶的起始点;Detect whether the sweeping robot travels along the block to return to the starting point based on the closed path, and the starting point is the starting point of traveling along the block;
基于闭合路径检测扫地机器人是否重复脱困失败;Detect whether the sweeping robot fails to escape repeatedly based on the closed path;
基于闭合路径检测扫地机器人是否脱困成功后通过绕障又陷入困境。Based on the closed path detection, the sweeping robot gets out of trouble successfully and then gets into trouble again after bypassing the obstacle.
本申请实施例的另一种可能的实现方式,在该区块的对应区域内生成清扫线,包括以下任一项:In another possible implementation manner of the embodiment of the present application, a cleaning line is generated in the corresponding area of the block, including any of the following:
当检测到扫地机器人沿区块行驶回到起点,则基于沿区块信息,在该区块生成清扫线;When it is detected that the sweeping robot travels along the block and returns to the starting point, the cleaning line is generated in the block based on the information along the block;
若检测到扫地机器人重复脱困失败或者脱困成功后通过绕障又陷入困境,则在该区块的非障碍物区域生成清扫线。If it is detected that the sweeping robot fails to get out of trouble repeatedly or gets into trouble after bypassing the obstacle and getting into trouble again, a cleaning line will be generated in the non-obstacle area of the block.
本申请实施例的另一种可能的实现方式,基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件,之后还包括:Another possible implementation of the embodiment of the present application is to detect whether the driving state of the sweeping robot along the block satisfies the first preset condition based on the closed path, and then further includes:
若不满足第一预设条件,且满足第二预设条件,则控制扫地机器人执行脱困逻辑或者绕障逻辑;If the first preset condition is not met and the second preset condition is met, control the sweeping robot to execute escape logic or obstacle avoidance logic;
第二预设条件包括以下至少一项:The second preset condition includes at least one of the following:
扫地机器人在沿区块行驶过程中行驶到预设位置点,并且闭合路径为顺时针,预设位置点为扫地机器人在沿区块行驶时在行驶位置点的右侧生成的位置点;The sweeping robot travels to the preset position point during driving along the block, and the closed path is clockwise, and the preset position point is the position point generated by the sweeping robot on the right side of the driving position point when traveling along the block;
扫地机器人在沿区块行驶过程中在预设时间内行驶位置不变;During the process of driving along the block, the driving position of the sweeping robot does not change within the preset time;
扫地机器人在沿区块行驶过程中行驶到预设位置点,并且闭合路径为逆时针。The sweeping robot travels to a preset position while driving along the block, and the closed path is counterclockwise.
本申请实施例的另一种可能的实现方式,绕障逻辑的方式,包括:Another possible implementation manner of the embodiment of the present application, the manner of bypassing the logic, includes:
控制扫地机器人执行墙点回溯,直至检测到与障碍物发生碰撞,以继续沿区块行驶。Control the sweeping robot to perform wall point backtracking until it detects a collision with an obstacle to continue driving along the block.
本申请实施例的另一种可能的实现方式,该方法还包括:Another possible implementation manner of the embodiment of the present application, the method further includes:
当检测到扫地机器人脱困成功时,控制扫地机器人执行墙点回溯逻辑,直至与障碍物发生碰撞;When it is detected that the sweeping robot succeeds in getting out of trouble, the sweeping robot is controlled to execute the backtracking logic of the wall point until it collides with the obstacle;
控制扫地机器人继续沿区块行驶。Control the sweeping robot to continue driving along the block.
本申请实施例的另一种可能的实现方式,该方法还包括:Another possible implementation manner of the embodiment of the present application, the method further includes:
当检测到扫地机器人在沿区块行驶,且沿预设边行驶时,执行结束沿区块行驶逻辑,并在该区块内未被清扫的非障碍物区域生成清扫线,预设边为在之前沿该区块行驶过程中已行驶过的边。When it is detected that the sweeping robot is driving along the block and along the preset edge, the logic of ending traveling along the block is executed, and a cleaning line is generated in the non-obstacle area that has not been cleaned in the block. The preset edge is on Edges that have been traveled during previous travel along the block.
第二方面,提供了一种区块沿边的闭合处理装置,该装置包括:In a second aspect, a block edge closure processing device is provided, the device comprising:
确定模块,用于当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径;A determination module for determining whether the driving path along the block is a closed path when the sweeping robot is driving along any block;
检测模块,用于当确定模块确定沿区块行驶路径为闭合路径时,基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件;a detection module, configured to detect whether the driving state of the sweeping robot along the block satisfies the first preset condition based on the closed path when the determination module determines that the driving path along the block is a closed path;
第一生成模块,用于当检测模块检测到扫地机器人延区块行驶状态满足第一预设条件时,在该区块的对应区域内生成清扫线;a first generating module, configured to generate a cleaning line in the corresponding area of the block when the detection module detects that the driving state of the sweeping robot extending along the block meets the first preset condition;
控制清扫模块,用于控制扫地机器人基于第一生成模块生成的清扫线执行对区块的清扫工作。The control cleaning module is used to control the cleaning robot to perform the cleaning work on the block based on the cleaning line generated by the first generation module.
本申请实施例的另一种可能的实现方式,检测模块,具体用于基于闭合路径检测扫地机器人沿区块行驶是否回到起点,起点为沿区块行驶的起始点,或者基于闭合路径检测扫地机器人是否重复脱困失败,或者基于闭合路径检测扫地机器人是否脱困成功后通过绕障又陷入困境。Another possible implementation of the embodiment of the present application, the detection module, is specifically used to detect whether the sweeping robot travels along the block and returns to the starting point based on the closed path, and the starting point is the starting point of traveling along the block, or detects the sweeping based on the closed path. Whether the robot repeatedly fails to get out of trouble, or based on a closed path to detect whether the sweeping robot succeeds in getting out of trouble, it gets into trouble again after bypassing obstacles.
本申请实施例的另一种可能的实现方式,第一生成模块,具体用于当检测模块检测到扫地机器人沿区块行驶回到起点时,基于沿区块信息,在该区块生成清扫线;In another possible implementation manner of the embodiment of the present application, the first generation module is specifically configured to generate a cleaning line in the block based on the information along the block when the detection module detects that the sweeping robot travels back to the starting point along the block ;
第一生成模块,具体用于当检测模块检测到扫地机器人重复脱困失败或者脱困成功后通过绕障又陷入困境时,在该区块的非障碍物区域生成清扫线。The first generation module is specifically used to generate a cleaning line in the non-obstacle area of the block when the detection module detects that the sweeping robot repeatedly fails to escape from trouble or gets into trouble again after bypassing an obstacle after successful escape.
本申请实施例的另一种可能的实现方式,该装置还包括:脱困逻辑模块或者绕障逻辑模块;In another possible implementation manner of the embodiment of the present application, the device further includes: an escape logic module or a barrier bypass logic module;
脱困逻辑模块,用于当不满足第一预设条件,且满足第二预设条件时,控制扫地机器人执行脱困逻辑;The escape logic module is used to control the sweeping robot to execute escape logic when the first preset condition is not met and the second preset condition is met;
绕障逻辑模块,用于当不满足第一预设条件,且满足第二预设条件时,控制扫地机器人执行绕障逻辑;The obstacle bypass logic module is used to control the sweeping robot to execute the obstacle bypass logic when the first preset condition is not met and the second preset condition is met;
第二预设条件包括以下至少一项:The second preset condition includes at least one of the following:
扫地机器人在沿区块行驶过程中行驶到预设位置点,并且闭合路径为顺时针,预设位置点为扫地机器人在沿区块行驶时在行驶位置点的右侧生成的位置点;The sweeping robot travels to the preset position point during driving along the block, and the closed path is clockwise, and the preset position point is the position point generated by the sweeping robot on the right side of the driving position point when traveling along the block;
扫地机器人在沿区块行驶过程中在预设时间内行驶位置不变;During the process of driving along the block, the driving position of the sweeping robot does not change within the preset time;
扫地机器人在沿区块行驶过程中行驶到预设位置点,并且闭合路径为逆时针。The sweeping robot travels to a preset position while driving along the block, and the closed path is counterclockwise.
本申请实施例的另一种可能的实现方式,绕障逻辑模块,具体用于控制扫地机器人执行墙点回溯,直至检测到与障碍物发生碰撞,以继续沿区块行驶。Another possible implementation of the embodiment of the present application, the obstacle circumvention logic module is specifically used to control the sweeping robot to perform wall point backtracking until a collision with an obstacle is detected, so as to continue driving along the block.
本申请实施例的另一种可能的实现方式,该装置还包括:墙点回溯逻辑模块、沿区块行驶模块;In another possible implementation manner of the embodiment of the present application, the device further includes: a wall point backtracking logic module, and a driving module along a block;
墙点回溯逻辑模块,用于当检测到扫地机器人脱困成功时,控制扫地机器人执行墙点回溯逻辑,直至与障碍物发生碰撞;The wall point backtracking logic module is used to control the cleaning robot to execute the wall point backtracking logic until it collides with an obstacle when it is detected that the cleaning robot has successfully escaped from trouble;
第一沿区块行驶模块,用于控制扫地机器人继续沿区块行驶。The first module for driving along the block is used to control the sweeping robot to continue driving along the block.
本申请实施例的另一种可能的实现方式,该装置还包括:第二沿区块行驶模块、第二生成模块;In another possible implementation manner of the embodiment of the present application, the device further includes: a second driving module along the block, and a second generating module;
第二沿区块行驶模块,用于当检测到扫地机器人在沿区块行驶,且沿预设边行驶时,执行结束沿区块行驶逻辑;The second driving along the block module is used to execute the logic of ending driving along the block when it is detected that the sweeping robot is driving along the block and along the preset edge;
第二生成模块,用于在该区块内未被清扫的非障碍物区域生成清扫线,预设边为在之前沿该区块行驶过程中已行驶过的边。The second generation module is used to generate a cleaning line in the non-obstacle area that has not been cleaned in the block, and the preset edge is the edge that has been driven along the block before.
第三方面,提供了一种电子设备,该电子设备包括:In a third aspect, an electronic device is provided, the electronic device comprising:
其包括:It includes:
一个或多个处理器;one or more processors;
存储器;memory;
一个或多个应用程序,其中一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个程序配置用于:执行根据第一方面或者第一方面任一可能的实现方式所示的区块沿边的闭合处理方法。one or more application programs, wherein the one or more application programs are stored in memory and configured to be executed by one or more processors, the one or more programs are configured to: perform according to the first aspect or the first aspect The closing processing method of the block edge shown in any possible implementation.
第四方面,提供了一种计算机可读存储介质,存储介质存储有至少一条指令、至少一段程序、代码集或指令集,至少一条指令、至少一段程序、代码集或指令集由处理器加载并执行以实现如第一方面或者第一方面任一可能的实现方式所示的区块沿边的闭合处理方法。In a fourth aspect, a computer-readable storage medium is provided, the storage medium stores at least one instruction, at least one piece of program, code set or instruction set, and at least one instruction, at least one piece of program, code set or instruction set is loaded by a processor and Execute to implement the block edge closing processing method shown in the first aspect or any possible implementation manner of the first aspect.
本申请提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the application are:
本申请提供了一种区块沿边的闭合处理方法、电子设备及可读存储介质,本申请当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径,若为闭合路径,则基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件,若满足第一预设条件,则在该区块的对应区域内生成清扫线,并控制扫地机器人基于生成的清扫线执行对区块的清扫工作。即本申请在执行对任一区块的清扫工作时,先执行沿区块工作,当检测到沿区块行驶路径为闭合路径且扫地机器人沿区块的行驶状态满足第一预设条件时,在区块内部对应区域生成清扫线,并进行清扫,从而可以实现控制扫地机器人执行对区块的清扫工作。The present application provides a block edge closing processing method, electronic device and readable storage medium. When the sweeping robot is driving along any block, the present application determines whether the travel path along the block is a closed path, and if it is a closed path path, based on the closed path to detect whether the driving state of the sweeping robot along the block satisfies the first preset condition, if the first preset condition is met, a cleaning line is generated in the corresponding area of the block, and the sweeping robot is controlled based on the generated The cleaning line performs the cleaning work on the block. That is, when the present application performs the cleaning work on any block, the work along the block is performed first, and when it is detected that the driving path along the block is a closed path and the driving state of the sweeping robot along the block meets the first preset condition, A cleaning line is generated in the corresponding area inside the block and cleaned, so that the cleaning robot can be controlled to perform the cleaning of the block.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments of the present application.
图1为本申请实施例提供的一种区块沿边的闭合处理方法流程示意图;1 is a schematic flowchart of a method for closing a block edge provided by an embodiment of the present application;
图2为本申请实施例提供的一种区块沿边的闭合处理装置的结构示意图;2 is a schematic structural diagram of a block edge closing processing device provided by an embodiment of the present application;
图3为本申请实施例提供的一种区块沿边的闭合处理的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device for closing edge processing of a block according to an embodiment of the present application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本发明的限制。The following describes in detail the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, but not to be construed as limiting the present invention.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。It will be understood by those skilled in the art that the singular forms "a", "an", "the" and "the" as used herein can include the plural forms as well, unless expressly stated otherwise. It should be further understood that the word "comprising" used in the specification of this application refers to the presence of stated features, integers, steps, operations, elements and/or components, but does not preclude the presence or addition of one or more other features, Integers, steps, operations, elements, components and/or groups thereof. It will be understood that when we refer to an element as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Furthermore, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combination of one or more of the associated listed items.
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本申请的实施例进行描述。The technical solutions of the present application and how the technical solutions of the present application solve the above-mentioned technical problems will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
本申请实施例提供了一种区块沿边的闭合处理方法,如图1所示,该方法包括:The embodiment of the present application provides a method for closing the edge of a block. As shown in FIG. 1 , the method includes:
步骤S101、当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径。Step S101 , when the sweeping robot is traveling along any block, determine whether the traveling path along the block is a closed path.
步骤S102、若为闭合路径,则基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件。Step S102 , if the path is a closed path, based on the closed path, detect whether the driving state of the sweeping robot along the block satisfies the first preset condition.
对于本申请实施例,在对任一区块进行清扫工作时,先进行沿区块工作(沿边工作),并且当检测到沿区块工作路径为闭合路径,且基于闭合路径检测扫地机器人的沿区块行驶状态满足第一预设条件时,则结束沿边工作,执行区块内部的清扫逻辑。在本申请实施例,针对第一预设条件的介绍详见下述实施方式,在此不再赘述。For the embodiment of the present application, when cleaning any block, first perform the work along the block (edge work), and when it is detected that the working path along the block is a closed path, and the edge of the sweeping robot is detected based on the closed path. When the block driving state satisfies the first preset condition, the edge work is ended, and the cleaning logic inside the block is executed. In this embodiment of the present application, for an introduction to the first preset condition, refer to the following embodiments, and details are not repeated here.
步骤S103、若满足第一预设条件,则在该区块的对应区域内生成清扫线。Step S103: If the first preset condition is satisfied, generate a cleaning line in the corresponding area of the block.
步骤S104、控制扫地机器人基于生成的清扫线执行对区块的清扫工作。Step S104 , controlling the cleaning robot to perform cleaning work on the block based on the generated cleaning line.
本申请实施例提供了一种区块沿边的闭合处理方法,本申请当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径,若为闭合路径,则基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件,若满足第一预设条件,则在该区块的对应区域内生成清扫线,并控制扫地机器人基于生成的清扫线执行对区块的清扫工作。即本申请实施例在执行对任一区块的清扫工作时,先执行沿区块工作,当检测到沿区块行驶路径为闭合路径且扫地机器人沿区块的行驶状态满足第一预设条件时,在区块内部对应区域生成清扫线,并进行清扫,从而可以实现控制扫地机器人执行对区块的清扫工作。The embodiment of the present application provides a method for closing the edge of a block. In the present application, when the sweeping robot is driving along any block, it is determined whether the driving path along the block is a closed path, and if it is a closed path, based on the closed path Detect whether the driving state of the sweeping robot along the block satisfies the first preset condition. If the first preset condition is met, a cleaning line is generated in the corresponding area of the block, and the sweeping robot is controlled to execute the area based on the generated cleaning line. Block cleaning work. That is, when performing the cleaning work on any block in the embodiment of the present application, the work along the block is performed first, and when it is detected that the driving path along the block is a closed path and the driving state of the sweeping robot along the block satisfies the first preset condition At the time, a cleaning line is generated in the corresponding area inside the block and cleaned, so that the cleaning robot can be controlled to perform the cleaning work on the block.
本申请实施例的一种可能的实现方式,步骤S102中基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件的方式,包括:步骤S1021(图中未示出)、步骤S1022(图中未示出)以及步骤S1023(图中未示出)中的任一项,其中,A possible implementation of the embodiment of the present application, in step S102, the method of detecting whether the driving state of the sweeping robot along the block meets the first preset condition based on the closed path includes: step S1021 (not shown in the figure), step S1021 (not shown in the figure), step Any one of S1022 (not shown in the figure) and step S1023 (not shown in the figure), wherein,
步骤S1021、基于闭合路径检测扫地机器人沿区块行驶是否回到起点。Step S1021 , based on the closed path, detect whether the sweeping robot travels along the block and returns to the starting point.
其中,起点为沿区块行驶的起始点。Among them, the starting point is the starting point of driving along the block.
对于本申请实施例,基于检测到的闭合路径获知该扫地机器人在沿区块行驶过程中,可以回到起始点,即表征沿该区块工作结束,这种沿边闭合路径为理想的沿边闭合路径。当然在扫地机器人实际沿边工作时,可以能出现步骤Sa中所示的几种错误闭合路径。在本申请实施例中,当扫地机器人在实际沿边工作时,出现步骤Sa中所示的几种闭合路径时,控制扫地机器人执行绕障逻辑或者脱困逻辑,以使得扫地机器人继续沿边工作。For the embodiment of the present application, based on the detected closed path, it is known that the cleaning robot can return to the starting point during driving along the block, that is, it indicates that the work along the block has ended, and this edgewise closed path is an ideal edgewise closed path . Of course, when the sweeping robot actually works along the edge, several wrong closed paths shown in step Sa may occur. In the embodiment of the present application, when the sweeping robot is actually working along the edge, when several closed paths shown in step Sa appear, the sweeping robot is controlled to execute the obstacle-circumvention logic or the escape logic, so that the sweeping robot continues to work along the edge.
步骤S1022、基于闭合路径检测扫地机器人是否重复脱困失败。Step S1022 , based on the closed path, detect whether the sweeping robot fails to repeatedly escape from trouble.
步骤S1023、基于闭合路径检测扫地机器人是否脱困成功后通过绕障又陷入困境。Step S1023 , based on the closed path, it is detected whether the sweeping robot successfully escapes from trouble and then gets into trouble again after bypassing the obstacle.
对于本申请实施例,扫地机器人在实际沿区块工作过程中,出现多次错误闭合,例如,检测到扫地机器人一直在某个地方重复脱困失败,或者检测到扫地机器人在脱困成功后又由于绕障等操作陷入困境,则认为已经闭合,则结束沿边工作,控制扫地机器人执行后边的逻辑,例如区块清扫逻辑等。For the embodiment of the present application, during the actual working process of the sweeping robot along the block, many times of wrong closing occurred. If the operation such as the obstacle is in trouble, it is considered to be closed, then the edge work is ended, and the sweeping robot is controlled to execute the following logic, such as block cleaning logic.
本申请实施例的另一种可能的实现方式,步骤S103中在该区块的对应区域内生成清扫线,包括:步骤S1031(图中未示出)或者步骤S1032(图中未示出),其中,In another possible implementation manner of the embodiment of the present application, in step S103, a cleaning line is generated in the corresponding area of the block, including: step S1031 (not shown in the figure) or step S1032 (not shown in the figure), in,
步骤S1031、当检测到扫地机器人沿区块行驶回到起点,则基于沿区块信息,在该区块生成清扫线。Step S1031 , when it is detected that the sweeping robot travels along the block and returns to the starting point, a cleaning line is generated in the block based on the information along the block.
对于本申请实施例,检测到扫地机器人沿区块行驶回到起点,这属于一种比较理想的闭合情况,这种闭合,可以由沿边工作信息(沿区块信息),在该区块内部非障碍物区域生成清扫线。在本申请实施例,这种闭合情况可以比较清楚的获知区块外侧的障碍物信息。For the embodiment of the present application, it is detected that the sweeping robot travels along the block and returns to the starting point, which belongs to an ideal closure situation. This closure can be determined by the working information along the edge (the information along the block), and the non-inverted inside the block. A sweep line is generated in the obstacle area. In this embodiment of the present application, the information of obstacles outside the block can be clearly obtained in this closed situation.
步骤S1032、若检测到扫地机器人重复脱困失败或者脱困成功后通过绕障又陷入困境,则在该区块的非障碍物区域生成清扫线。Step S1032 , if it is detected that the sweeping robot repeatedly fails to get out of trouble or gets into trouble again after bypassing an obstacle after successfully getting out of trouble, a cleaning line is generated in the non-obstacle area of the block.
对于本申请实施例,当基于闭合路径检测到扫地机器人重复脱困失败或者脱困成功后通过绕障又陷入困境时,结束沿区块工作(沿边工作),并在区块内非障碍物区域生成清扫线。For the embodiment of the present application, when it is detected based on the closed path that the sweeping robot repeatedly fails to escape from trouble or gets into trouble again after bypassing the obstacle after successfully getting out of trouble, the work along the block (edge work) is ended, and the cleaning is generated in the non-obstacle area in the block. Wire.
对于本申请实施例,当基于闭合路径检测到扫地机器人重复脱困失败或者脱困成功后通过绕障又陷入困境时,在区域内部非障碍物区域生成的清扫线可能存在一些比较短的线,而步骤S1031中生成的清扫线较步骤S1032中生成的清扫线这种比较短的线的概率减少。For the embodiment of the present application, when it is detected based on the closed path that the sweeping robot repeatedly fails to escape from trouble or gets into trouble again after bypassing the obstacle after successfully getting out of trouble, there may be some relatively short lines in the cleaning line generated in the non-obstacle area inside the area, and the steps The cleaning line generated in S1031 is less likely to be a relatively short line than the cleaning line generated in step S1032.
本申请实施例的另一种可能的实现方式,步骤S102之后还可以包括:步骤Sa(图中未示出),其中,Another possible implementation manner of the embodiment of the present application, after step S102, may further include: step Sa (not shown in the figure), wherein,
步骤Sa、若不满足第一预设条件,且满足第二预设条件,则控制扫地机器人执行脱困逻辑或者绕障逻辑。In step Sa, if the first preset condition is not met and the second preset condition is met, control the sweeping robot to execute escape logic or obstacle avoidance logic.
其中,第二预设条件包括以下至少一项:Wherein, the second preset condition includes at least one of the following:
扫地机器人在沿区块行驶过程中行驶到预设位置点,并且闭合路径为顺时针,预设位置点为扫地机器人在沿区块行驶时在行驶位置点的右侧生成的位置点;The sweeping robot travels to the preset position point during driving along the block, and the closed path is clockwise, and the preset position point is the position point generated by the sweeping robot on the right side of the driving position point when traveling along the block;
扫地机器人在沿区块行驶过程中在预设时间内行驶位置不变;During the process of driving along the block, the driving position of the sweeping robot does not change within the preset time;
扫地机器人在沿区块行驶过程中行驶到预设位置点,并且闭合路径为逆时针。The sweeping robot travels to a preset position while driving along the block, and the closed path is counterclockwise.
本申请实施例的另一种可能的实现方式,绕障逻辑的方式,包括:控制扫地机器人执行墙点回溯,直至检测到与障碍物发生碰撞,以继续沿区块行驶。Another possible implementation manner of the embodiment of the present application, the obstacle circumvention logic manner, includes: controlling the sweeping robot to perform wall point backtracking until a collision with an obstacle is detected, so as to continue driving along the block.
对于本申请实施例,扫地机器人在正常沿边工作时,在每个时刻会在当前位置的右侧生成一个位置点(疑似墙点),这些位置点会按照时间的顺序记录下来,如果扫地机器人行驶到这些疑似墙点的位置点时,则认为此种情况为错误闭合。在本申请实施例中,当检测到此种错误闭合时,进行墙点回溯,并沿着这些疑似墙点行驶,直至触发碰撞,表征触碰到真正的障碍物,回溯过程停止,接回之前的沿边行驶状态。在本申请实施例中,若错误的闭合路径为顺时针,则真正的障碍物点可能在扫地机器人的右侧;若错误的闭合路径为逆时针,则真正的障碍物点可能在扫地机器人的左侧。For the embodiment of the present application, when the sweeping robot is working along the edge normally, a position point (suspected wall point) will be generated on the right side of the current position at each moment, and these position points will be recorded in the order of time. If the sweeping robot drives When the position of these suspected wall points is reached, it is considered that this situation is wrongly closed. In the embodiment of the present application, when such a wrong closure is detected, the backtracking of the wall points is performed, and the driving along these suspected wall points is performed until a collision is triggered, indicating that a real obstacle is touched, the backtracking process is stopped, and the backtracking process is stopped. the edge driving state. In the embodiment of the present application, if the wrong closed path is clockwise, the real obstacle point may be on the right side of the sweeping robot; if the wrong closed path is counterclockwise, the real obstacle point may be on the right side of the sweeping robot. left.
对于本申请实施例,当检测到扫地机器人在预设时间内行驶位置不变,例如,在沿边工作的过程中,被物体(例如椅子)扣住,或者进入一狭小通道,即检测到扫地机器人原地位置不变,这种情况也认为是一种错误闭合,则控制扫地机器人执行脱困操作,具体脱困操作的方式,在此不再赘述。For this embodiment of the present application, when it is detected that the driving position of the cleaning robot does not change within the preset time, for example, it is caught by an object (such as a chair) or enters a narrow passage in the process of working along the edge, that is, the cleaning robot is detected. The original position remains unchanged. This situation is also considered to be a wrong closure, and the sweeping robot is controlled to perform the escape operation. The specific way of escape operation will not be repeated here.
对于本申请实施例,在上述错误闭合,通过脱困操作或者绕障碍物操作,接回沿边工作之后,最后可能产生符合第一预设条件的闭合。For the embodiment of the present application, after the above-mentioned erroneous closure, through the escape operation or the operation around an obstacle, and after the edge work is connected, a closure that meets the first preset condition may finally be generated.
对于本申请实施例,针对扫地机器人在实际沿边工作时,出现的几种错误闭合情况给出了相应的解决方案,以使得扫地机器人在实际沿边工作时,得到符合第一预设条件的闭合,可以提高清扫效率,提高用户体验。For the embodiments of the present application, corresponding solutions are provided for several incorrect closing situations that occur when the sweeping robot actually works along the edge, so that the sweeping robot can obtain the closing that meets the first preset condition when it actually works along the edge, It can improve cleaning efficiency and improve user experience.
本申请实施例的另一种可能的实现方式,该方法还包括:步骤Sb(图中未示出)以及步骤Sc(图中未示出),其中,In another possible implementation manner of the embodiment of the present application, the method further includes: step Sb (not shown in the figure) and step Sc (not shown in the figure), wherein,
步骤Sb、当检测到扫地机器人脱困成功时,控制扫地机器人执行墙点回溯逻辑,直至与障碍物发生碰撞。Step Sb, when it is detected that the sweeping robot has successfully escaped from trouble, the sweeping robot is controlled to execute the wall point backtracking logic until it collides with an obstacle.
步骤Sc、控制扫地机器人继续沿区块行驶。Step Sc, control the sweeping robot to continue driving along the block.
对于本申请实施例,步骤Sb以及步骤Sc可以位于步骤Sa之后执行。For this embodiment of the present application, step Sb and step Sc may be performed after step Sa.
对于本申请实施例,在脱困操作成功之后,也需要执行墙点回溯逻辑,直至检测到碰撞,接回之前的沿边工作状态。For the embodiment of the present application, after the escape operation is successful, the backtracking logic of the wall point also needs to be executed until a collision is detected, and the previous working state along the edge is returned.
本申请实施例的另一种可能的实现方式,还包括:步骤Sd(图中未示出),其中,Another possible implementation manner of the embodiment of the present application further includes: step Sd (not shown in the figure), wherein,
步骤Sd、当检测到扫地机器人在沿区块行驶,且沿预设边行驶时,执行结束沿区块行驶逻辑,并在该区块内未被清扫的非障碍物区域生成清扫线。Step Sd, when it is detected that the sweeping robot is driving along the block and along the preset edge, execute the logic of ending driving along the block, and generate a cleaning line in the non-obstacle area that has not been cleaned in the block.
其中,预设边为在之前沿该区块行驶过程中已行驶过的边。Wherein, the preset edge is the edge that has been driven in the previous driving process along the block.
对于本申请实施例,当检测到扫地机器人当前沿边行驶所沿的边为之前沿边行驶已经行驶过的边时,控制扫地机器人结束沿区块工作(沿边工作)。For this embodiment of the present application, when it is detected that the edge along which the sweeping robot is currently traveling along the edge is an edge that has been driven along the edge before, the sweeping robot is controlled to end the work along the block (edge work).
例如,某一区块包含四个边,分别为边1、边2、边3以及边4,扫地机器人在之前沿边工作时,已经执行沿边1以及边2工作,但是可能由于环境变化等原因,当前扫地机器人正在沿边1或者边2工作,则控制扫地机器人结束沿边工作。For example, a block contains four sides, namely side 1, side 2, side 3 and side 4. The sweeping robot has already performed the work along side 1 and side 2 when working along the side before, but it may be due to environmental changes and other reasons. If the sweeping robot is currently working along edge 1 or edge 2, control the sweeping robot to end the edge working.
对于本申请实施例,扫地机器人在结束沿边工作,在该区块内部未清扫的非障碍物区域生成清扫线,控制扫地机器人基于生成的清扫线对该区块执行清扫工作。For the embodiment of the present application, the sweeping robot finishes the edge work, generates a cleaning line in the unsweeped non-obstacle area inside the block, and controls the sweeping robot to perform cleaning work on the block based on the generated cleaning line.
本申请实施例提供了一种区块沿边的闭合处理装置,如图2所示,该装置20可以包括:确定模块21、检测模块22、第一生成模块23以及控制清扫模块24,其中,The embodiment of the present application provides a block edge closure processing device. As shown in FIG. 2 , the
确定模块21,用于当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径。The
检测模块22,用于当确定模块21确定沿区块行驶路径为闭合路径时,基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件。The
第一生成模块23,用于当检测模块22检测到扫地机器人延区块行驶状态满足第一预设条件时,在该区块的对应区域内生成清扫线。The
控制清扫模块24,用于控制扫地机器人基于第一生成模块23生成的清扫线执行对区块的清扫工作。The
本申请实施例的一种可能的实现方式,检测模块22,具体用于基于闭合路径检测扫地机器人沿区块行驶是否回到起点,或者基于闭合路径检测扫地机器人是否重复脱困失败,或者基于闭合路径检测扫地机器人是否脱困成功后通过绕障又陷入困境。A possible implementation of the embodiment of the present application, the
其中,起点为沿区块行驶的起始点。Among them, the starting point is the starting point of driving along the block.
本申请实施例的另一种可能的实现方式,第一生成模块23,具体用于当检测模块检测到扫地机器人沿区块行驶回到起点时,基于沿区块信息,在该区块生成清扫线,或者,当检测模块检测到扫地机器人重复脱困失败或者脱困成功后通过绕障又陷入困境时,在该区块的非障碍物区域生成清扫线。In another possible implementation manner of the embodiment of the present application, the
本申请实施例的另一种可能的实现方式,该装置20还包括:脱困逻辑模块或者绕障逻辑模块,其中,In another possible implementation manner of the embodiment of the present application, the
脱困逻辑模块,用于当不满足第一预设条件,且满足第二预设条件时,控制扫地机器人执行脱困逻辑。The escape logic module is used to control the sweeping robot to execute escape logic when the first preset condition is not met and the second preset condition is met.
绕障逻辑模块,用于当不满足第一预设条件,且满足第二预设条件时,控制扫地机器人执行绕障逻辑。The obstacle bypass logic module is used to control the sweeping robot to execute the obstacle bypass logic when the first preset condition is not met and the second preset condition is met.
其中,第二预设条件包括以下至少一项:Wherein, the second preset condition includes at least one of the following:
扫地机器人在沿区块行驶过程中行驶到预设位置点,并且闭合路径为顺时针,预设位置点为扫地机器人在沿区块行驶时在行驶位置点的右侧生成的位置点;The sweeping robot travels to the preset position point during driving along the block, and the closed path is clockwise, and the preset position point is the position point generated by the sweeping robot on the right side of the driving position point when traveling along the block;
扫地机器人在沿区块行驶过程中在预设时间内行驶位置不变;During the process of driving along the block, the driving position of the sweeping robot does not change within the preset time;
扫地机器人在沿区块行驶过程中行驶到预设位置点,并且闭合路径为逆时针。The sweeping robot travels to a preset position while driving along the block, and the closed path is counterclockwise.
本申请实施例的另一种可能的实现方式,绕障逻辑模块,具体用于控制扫地机器人执行墙点回溯,直至检测到与障碍物发生碰撞,以继续沿区块行驶。Another possible implementation of the embodiment of the present application, the obstacle circumvention logic module is specifically used to control the sweeping robot to perform wall point backtracking until a collision with an obstacle is detected, so as to continue driving along the block.
本申请实施例的另一种可能的实现方式,该装置20还包括:墙点回溯逻辑模块、沿区块行驶模块,其中,In another possible implementation manner of the embodiment of the present application, the
墙点回溯逻辑模块,用于当检测到扫地机器人脱困成功时,控制扫地机器人执行墙点回溯逻辑,直至与障碍物发生碰撞。The wall point backtracking logic module is used to control the cleaning robot to execute the wall point backtracking logic until it collides with an obstacle when it is detected that the cleaning robot has successfully escaped from trouble.
第一沿区块行驶模块,用于控制扫地机器人继续沿区块行驶。The first module for driving along the block is used to control the sweeping robot to continue driving along the block.
本申请实施例的另一种可能的实现方式,该装置20还包括:第二沿区块行驶模块、第二生成模块,其中,In another possible implementation manner of the embodiment of the present application, the
第二沿区块行驶模块,用于当检测到扫地机器人在沿区块行驶,且沿预设边行驶时,执行结束沿区块行驶逻辑。The second driving along the block module is used to execute the logic of ending driving along the block when it is detected that the sweeping robot is driving along the block and along the preset edge.
对于本申请实施例,第一沿区块行驶模块与第二沿区块行驶模块可以为同一模块,也可以为不同模块。在本申请实施例中不做限定。For the embodiment of the present application, the first module for driving along blocks and the second module for driving along blocks may be the same module or different modules. It is not limited in the embodiments of the present application.
第二生成模块,用于在该区块内未被清扫的非障碍物区域生成清扫线,预设边为在之前沿该区块行驶过程中已行驶过的边。The second generation module is used to generate a cleaning line in the non-obstacle area that has not been cleaned in the block, and the preset edge is the edge that has been driven along the block before.
对于本申请实施例,第一生成模块23与第二生成模块可以为同一模块,也可以为不同模块。在本申请实施例中不做限定。For this embodiment of the present application, the
本申请实施例提供了一种区块沿边的闭合处理装置,本申请实施例当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径,若为闭合路径,则基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件,若满足第一预设条件,则在该区块的对应区域内生成清扫线,并控制扫地机器人基于生成的清扫线执行对区块的清扫工作。即本申请在执行对任一区块的清扫工作时,先执行沿区块工作,当检测到沿区块行驶路径为闭合路径且扫地机器人沿区块的行驶状态满足第一预设条件时,在区块内部对应区域生成清扫线,并进行清扫,从而可以实现控制扫地机器人执行对区块的清扫工作。The embodiment of the present application provides a closing processing device along the edge of the block. In the embodiment of the present application, when the sweeping robot is driving along any block, it is determined whether the travel path along the block is a closed path, and if it is a closed path, based on The closed path detects whether the driving state of the sweeping robot along the block meets the first preset condition. If the first preset condition is met, a cleaning line is generated in the corresponding area of the block, and the sweeping robot is controlled to execute based on the generated cleaning line. Cleaning up the block. That is, when the present application performs the cleaning work on any block, it first performs the work along the block, and when it is detected that the driving path along the block is a closed path and the driving state of the sweeping robot along the block meets the first preset condition, A cleaning line is generated in the corresponding area inside the block and cleaned, so that the cleaning robot can be controlled to perform the cleaning of the block.
本实施例的区块沿边的闭合处理装置可执行上述方法实施例所示的区块沿边的闭合处理方法,其实现原理相类似,此处不再赘述。The block edge closing processing apparatus of this embodiment can execute the block edge closing processing method shown in the above method embodiments, and the implementation principle thereof is similar, and details are not described herein again.
本申请实施例提供了一种电子设备,如图3所示,图3所示的电子设备3000包括:处理器3001和存储器3003。其中,处理器3001和存储器3003相连,如通过总线3002相连。可选地,电子设备3000还可以包括收发器3004。需要说明的是,实际应用中收发器3004不限于一个,该电子设备3000的结构并不构成对本申请实施例的限定。An embodiment of the present application provides an electronic device. As shown in FIG. 3 , the
处理器3001可以是CPU,通用处理器,DSP,ASIC,FPGA或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器3001也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。The
总线3002可包括一通路,在上述组件之间传送信息。总线3002可以是PCI总线或EISA总线等。总线3002可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
存储器3003可以是ROM或可存储静态信息和指令的其他类型的静态存储设备,RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM、CD-ROM或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The
存储器3003用于存储执行本申请方案的应用程序代码,并由处理器3001来控制执行。处理器3001用于执行存储器3003中存储的应用程序代码,以实现前述任一方法实施例所示的内容。The
对于本申请实施例,该电子设备可以为扫地机器人。For the embodiment of the present application, the electronic device may be a cleaning robot.
本申请实施例提供了一种电子设备,本申请实施例中的电子设备包括:存储器和处理器;至少一个程序,存储于存储器中,用于被处理器执行时,与现有技术相比可实现:本申请实施例当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径,若为闭合路径,则基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件,若满足第一预设条件,则在该区块的对应区域内生成清扫线,并控制扫地机器人基于生成的清扫线执行对区块的清扫工作。即本申请在执行对任一区块的清扫工作时,先执行沿区块工作,当检测到沿区块行驶路径为闭合路径且扫地机器人沿区块的行驶状态满足第一预设条件时,在区块内部对应区域生成清扫线,并进行清扫,从而可以实现控制扫地机器人执行对区块的清扫工作。An embodiment of the present application provides an electronic device, and the electronic device in the embodiment of the present application includes: a memory and a processor; at least one program, stored in the memory, is used for being executed by the processor, and compared with the prior art Realization: In the embodiment of the present application, when the sweeping robot is driving along any block, it is determined whether the driving path along the block is a closed path. A preset condition. If the first preset condition is satisfied, a cleaning line is generated in the corresponding area of the block, and the cleaning robot is controlled to perform cleaning work on the block based on the generated cleaning line. That is, when the present application performs the cleaning work on any block, the work along the block is performed first, and when it is detected that the driving path along the block is a closed path and the driving state of the sweeping robot along the block meets the first preset condition, A cleaning line is generated in the corresponding area inside the block and cleaned, so that the cleaning robot can be controlled to perform the cleaning of the block.
本实施例的电子设备可执行上述方法实施例所示的区块沿边的闭合处理方法,其实现原理相类似,此处不再赘述。The electronic device in this embodiment can execute the block edge closing processing method shown in the above method embodiments, and the implementation principle thereof is similar, which is not repeated here.
本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,当其在计算机上运行时,使得计算机可以执行前述方法实施例中相应内容。与现有技术相比,本申请实施例当扫地机器人在沿任一区块行驶时,确定沿区块行驶路径是否为闭合路径,若为闭合路径,则基于闭合路径检测扫地机器人的沿区块行驶状态是否满足第一预设条件,若满足第一预设条件,则在该区块的对应区域内生成清扫线,并控制扫地机器人基于生成的清扫线执行对区块的清扫工作。即本申请在执行对任一区块的清扫工作时,先执行沿区块工作,当检测到沿区块行驶路径为闭合路径且扫地机器人沿区块的行驶状态满足第一预设条件时,在区块内部对应区域生成清扫线,并进行清扫,从而可以实现控制扫地机器人执行对区块的清扫工作。Embodiments of the present application provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program runs on the computer, the computer can execute the corresponding content in the foregoing method embodiments. Compared with the prior art, in the embodiment of the present application, when the sweeping robot is traveling along any block, it is determined whether the traveling path along the block is a closed path, and if it is a closed path, the sweeping robot is detected along the block based on the closed path. Whether the driving state satisfies the first preset condition, if the first preset condition is met, a cleaning line is generated in the corresponding area of the block, and the cleaning robot is controlled to perform the cleaning work on the block based on the generated cleaning line. That is, when the present application performs the cleaning work on any block, the work along the block is performed first, and when it is detected that the driving path along the block is a closed path and the driving state of the sweeping robot along the block meets the first preset condition, A cleaning line is generated in the corresponding area inside the block and cleaned, so that the cleaning robot can be controlled to perform the cleaning of the block.
本实施例的计算机可读存储介质可执行上述方法实施例所示的区块沿边的闭合处理方法,其实现原理相类似,此处不再赘述。The computer-readable storage medium of this embodiment can execute the block edge closing processing method shown in the foregoing method embodiments, and the implementation principle thereof is similar, and details are not described herein again.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the accompanying drawings are sequentially shown in the order indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution sequence is also It does not have to be performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of sub-steps or stages of other steps.
以上所述仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only some embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811613939.XA CN111436861B (en) | 2018-12-27 | 2018-12-27 | Block edge closing processing method, electronic device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811613939.XA CN111436861B (en) | 2018-12-27 | 2018-12-27 | Block edge closing processing method, electronic device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111436861A true CN111436861A (en) | 2020-07-24 |
CN111436861B CN111436861B (en) | 2023-02-17 |
Family
ID=71626522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811613939.XA Active CN111436861B (en) | 2018-12-27 | 2018-12-27 | Block edge closing processing method, electronic device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111436861B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112022011A (en) * | 2020-09-25 | 2020-12-04 | 小狗电器互联网科技(北京)股份有限公司 | Control method, equipment, system and storage medium of sweeping robot |
CN112137528A (en) * | 2020-09-25 | 2020-12-29 | 小狗电器互联网科技(北京)股份有限公司 | Method, device, equipment and storage medium for detecting cleaning area of sweeping robot |
CN112137512A (en) * | 2020-09-25 | 2020-12-29 | 小狗电器互联网科技(北京)股份有限公司 | Method, device, equipment and storage medium for detecting cleaning area of sweeping robot |
CN112799398A (en) * | 2020-12-25 | 2021-05-14 | 珠海市一微半导体有限公司 | Cleaning path planning method based on path finding cost, chip and cleaning robot |
CN113485361A (en) * | 2021-07-30 | 2021-10-08 | 北京小狗吸尘器集团股份有限公司 | Obstacle-detouring control method and device, electronic equipment and sweeping robot |
WO2025102494A1 (en) * | 2023-11-16 | 2025-05-22 | 深圳市优纪元科技有限公司 | Robot, path planning method and apparatus therefor and storage medium |
Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1463658A (en) * | 2002-06-21 | 2003-12-31 | 泰怡凯电器(苏州)有限公司 | Method for identifying automatic dust collector cleanable area and obstacle area |
US20070271004A1 (en) * | 2006-05-19 | 2007-11-22 | Samsung Electronics Co., Ltd. | Cleaning robot having carpet detector and method of detecting carpet boundary using the same |
JP2012113566A (en) * | 2010-11-25 | 2012-06-14 | Fujitsu Ltd | Evaluation value management device and evaluation value management program, and inter-terminal connection control system |
CN102599862A (en) * | 2012-03-26 | 2012-07-25 | 刘瑜 | Dilemma identifying and solving method for automatic dust collector |
CN103251358A (en) * | 2012-02-16 | 2013-08-21 | 恩斯迈电子(深圳)有限公司 | Control method of sweeping robot |
CN104757910A (en) * | 2014-11-26 | 2015-07-08 | 深圳市银星智能科技股份有限公司 | Smart floor sweeping robot and control method thereof |
US20150323934A1 (en) * | 2014-05-09 | 2015-11-12 | Kinpo Electronics, Inc. | Indoor robot and method for indoor robot positioning |
CN106292657A (en) * | 2016-07-22 | 2017-01-04 | 北京地平线机器人技术研发有限公司 | Mobile robot and patrol path setting method thereof |
CN106840165A (en) * | 2017-01-17 | 2017-06-13 | 中国地质大学(武汉) | Method and device for constructing semantic location history |
CN107328419A (en) * | 2017-06-21 | 2017-11-07 | 上海斐讯数据通信技术有限公司 | The planing method and sweeping robot in a kind of cleaning path of sweeping robot |
CN107752910A (en) * | 2017-09-08 | 2018-03-06 | 珠海格力电器股份有限公司 | Area sweeping method and device, storage medium, processor and sweeping robot |
CN107773164A (en) * | 2017-11-17 | 2018-03-09 | 北京奇虎科技有限公司 | Clean method, device and robot for clean robot |
CN107943058A (en) * | 2017-12-26 | 2018-04-20 | 北京面面俱到软件有限公司 | Sweeping robot and its cleaning paths planning method |
CN107928565A (en) * | 2017-11-17 | 2018-04-20 | 北京奇虎科技有限公司 | Clean method, device and the robot of clean robot |
CN108255178A (en) * | 2018-01-18 | 2018-07-06 | 山东理工大学 | A kind of design method of patrol robot all standing traverse path planning algorithm |
CN108283465A (en) * | 2018-03-07 | 2018-07-17 | 杭州晶智能科技有限公司 | The anti-jamming sensor of dust-collecting robot and stuck disengaging method |
CN108303989A (en) * | 2018-01-17 | 2018-07-20 | 上海思岚科技有限公司 | A kind of method and apparatus moved along wall for mobile robot |
CN108427411A (en) * | 2018-02-28 | 2018-08-21 | 北京奇虎科技有限公司 | A kind for the treatment of method and apparatus of getting rid of poverty of robot |
CN109077672A (en) * | 2018-09-28 | 2018-12-25 | 北京奇虎科技有限公司 | A kind of method and device of sweeping robot selection block |
CN109085841A (en) * | 2018-09-28 | 2018-12-25 | 北京奇虎科技有限公司 | A kind of method and device that control robot is cleaned |
-
2018
- 2018-12-27 CN CN201811613939.XA patent/CN111436861B/en active Active
Patent Citations (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1463658A (en) * | 2002-06-21 | 2003-12-31 | 泰怡凯电器(苏州)有限公司 | Method for identifying automatic dust collector cleanable area and obstacle area |
US20070271004A1 (en) * | 2006-05-19 | 2007-11-22 | Samsung Electronics Co., Ltd. | Cleaning robot having carpet detector and method of detecting carpet boundary using the same |
JP2012113566A (en) * | 2010-11-25 | 2012-06-14 | Fujitsu Ltd | Evaluation value management device and evaluation value management program, and inter-terminal connection control system |
CN103251358A (en) * | 2012-02-16 | 2013-08-21 | 恩斯迈电子(深圳)有限公司 | Control method of sweeping robot |
CN102599862A (en) * | 2012-03-26 | 2012-07-25 | 刘瑜 | Dilemma identifying and solving method for automatic dust collector |
US20150323934A1 (en) * | 2014-05-09 | 2015-11-12 | Kinpo Electronics, Inc. | Indoor robot and method for indoor robot positioning |
CN104757910A (en) * | 2014-11-26 | 2015-07-08 | 深圳市银星智能科技股份有限公司 | Smart floor sweeping robot and control method thereof |
CN106292657A (en) * | 2016-07-22 | 2017-01-04 | 北京地平线机器人技术研发有限公司 | Mobile robot and patrol path setting method thereof |
CN106840165A (en) * | 2017-01-17 | 2017-06-13 | 中国地质大学(武汉) | Method and device for constructing semantic location history |
CN107328419A (en) * | 2017-06-21 | 2017-11-07 | 上海斐讯数据通信技术有限公司 | The planing method and sweeping robot in a kind of cleaning path of sweeping robot |
CN107752910A (en) * | 2017-09-08 | 2018-03-06 | 珠海格力电器股份有限公司 | Area sweeping method and device, storage medium, processor and sweeping robot |
CN107773164A (en) * | 2017-11-17 | 2018-03-09 | 北京奇虎科技有限公司 | Clean method, device and robot for clean robot |
CN107928565A (en) * | 2017-11-17 | 2018-04-20 | 北京奇虎科技有限公司 | Clean method, device and the robot of clean robot |
CN107943058A (en) * | 2017-12-26 | 2018-04-20 | 北京面面俱到软件有限公司 | Sweeping robot and its cleaning paths planning method |
CN108303989A (en) * | 2018-01-17 | 2018-07-20 | 上海思岚科技有限公司 | A kind of method and apparatus moved along wall for mobile robot |
CN108255178A (en) * | 2018-01-18 | 2018-07-06 | 山东理工大学 | A kind of design method of patrol robot all standing traverse path planning algorithm |
CN108427411A (en) * | 2018-02-28 | 2018-08-21 | 北京奇虎科技有限公司 | A kind for the treatment of method and apparatus of getting rid of poverty of robot |
CN108283465A (en) * | 2018-03-07 | 2018-07-17 | 杭州晶智能科技有限公司 | The anti-jamming sensor of dust-collecting robot and stuck disengaging method |
CN109077672A (en) * | 2018-09-28 | 2018-12-25 | 北京奇虎科技有限公司 | A kind of method and device of sweeping robot selection block |
CN109085841A (en) * | 2018-09-28 | 2018-12-25 | 北京奇虎科技有限公司 | A kind of method and device that control robot is cleaned |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112022011A (en) * | 2020-09-25 | 2020-12-04 | 小狗电器互联网科技(北京)股份有限公司 | Control method, equipment, system and storage medium of sweeping robot |
CN112137528A (en) * | 2020-09-25 | 2020-12-29 | 小狗电器互联网科技(北京)股份有限公司 | Method, device, equipment and storage medium for detecting cleaning area of sweeping robot |
CN112137512A (en) * | 2020-09-25 | 2020-12-29 | 小狗电器互联网科技(北京)股份有限公司 | Method, device, equipment and storage medium for detecting cleaning area of sweeping robot |
CN112799398A (en) * | 2020-12-25 | 2021-05-14 | 珠海市一微半导体有限公司 | Cleaning path planning method based on path finding cost, chip and cleaning robot |
CN113485361A (en) * | 2021-07-30 | 2021-10-08 | 北京小狗吸尘器集团股份有限公司 | Obstacle-detouring control method and device, electronic equipment and sweeping robot |
WO2025102494A1 (en) * | 2023-11-16 | 2025-05-22 | 深圳市优纪元科技有限公司 | Robot, path planning method and apparatus therefor and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111436861B (en) | 2023-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111436861A (en) | Block edge closing processing method, electronic equipment and readable storage medium | |
Syed et al. | Apprenticeship learning using linear programming | |
CN108253984A (en) | A kind of method for planning path for mobile robot based on improvement A star algorithms | |
JP2017527893A5 (en) | ||
US20100283739A1 (en) | Contact grouping and gesture recognition for surface computing | |
CN107997691A (en) | Stall processing method, device and clean robot | |
CN111481113A (en) | A method and device for judging the slippage of a sweeping robot | |
CN111493750A (en) | Control method and device of sweeping robot and electronic equipment | |
JP2015502618A5 (en) | ||
CN103092341A (en) | Method and device of terminal control and terminal | |
JP2010506309A (en) | Inter-procedural data flow analysis of parameterized concurrent software | |
CN111240311B (en) | Obstacle meeting processing method, device and equipment of sweeping robot and readable storage medium | |
CN109552303A (en) | A kind of electronic parking system, method, apparatus, medium and equipment | |
KR102265622B1 (en) | Method, computer readable storage medium and system for calculating shortest path | |
CN106681322A (en) | Ground autonomous mobile robot safety navigation method based on formal description | |
CN111714030B (en) | Relief method, device, electronic equipment and readable storage medium for cleaning equipment | |
CN109048910B (en) | Robot avoidance prediction method and device | |
Mao et al. | How safe am i given what i see? calibrated prediction of safety chances for image-controlled autonomy | |
CN115005711B (en) | Operation control method and device of cleaning robot, storage medium and electronic device | |
CN111443692A (en) | Robot obstacle avoidance processing method, electronic device and computer-readable storage medium | |
CN111566632A (en) | Operation control method and electronic equipment | |
CN106919503A (en) | The method of testing and device of application program | |
CN111443693A (en) | Block over-boundary processing method, electronic device and computer-readable storage medium | |
Cohen et al. | Convergence properties of the gravitational algorithm in asynchronous robot systems | |
Lomuscio et al. | Verification of Multi-Agent Systems via SDD-based Model Checking. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |