CN115167415A - Cleaning robot path planning method and device, server and cleaning robot - Google Patents

Cleaning robot path planning method and device, server and cleaning robot Download PDF

Info

Publication number
CN115167415A
CN115167415A CN202210772458.3A CN202210772458A CN115167415A CN 115167415 A CN115167415 A CN 115167415A CN 202210772458 A CN202210772458 A CN 202210772458A CN 115167415 A CN115167415 A CN 115167415A
Authority
CN
China
Prior art keywords
cleaning
sub
cleaning robot
area
robot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210772458.3A
Other languages
Chinese (zh)
Other versions
CN115167415B (en
Inventor
刘清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Meifang Zhigao Robot Co Ltd
Original Assignee
Guangdong Meifang Zhigao Robot Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Meifang Zhigao Robot Co Ltd filed Critical Guangdong Meifang Zhigao Robot Co Ltd
Priority to CN202210772458.3A priority Critical patent/CN115167415B/en
Publication of CN115167415A publication Critical patent/CN115167415A/en
Application granted granted Critical
Publication of CN115167415B publication Critical patent/CN115167415B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0212Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
    • G05D1/0221Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0276Control 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)
  • 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)

Abstract

The application discloses a path planning method and device of a cleaning robot, a server and the cleaning robot. The path planning method comprises the following steps: receiving an alarm message sent by the cleaning robot; acquiring the current position of the cleaning robot and a map of a cleaning area where the cleaning robot is located, and recording a plurality of sub cleaning areas and access nodes of the sub cleaning areas on the map; determining the shortest path among a plurality of paths from the current position of the cleaning robot to the entrance node and the exit node of the candidate sub-cleaning area through the entrance node and the exit node of the sub-cleaning area where the cleaning robot is located, wherein the candidate sub-cleaning area is a sub-cleaning area to be cleaned, which is adjacent to the sub-cleaning area where the cleaning robot is located; and sending the shortest path to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area to perform operation according to the shortest path. The method and the device can dynamically plan the path of the cleaning robot, and improve the flexibility of path planning of the cleaning robot, so that the working efficiency of the cleaning robot is improved.

Description

清洁机器人的路径规划方法及装置、服务器及清洁机器人Path planning method and device for cleaning robot, server and cleaning robot

技术领域technical field

本申请涉及机器人技术领域,具体地涉及一种清洁机器人的路径规划方法及装置、服务器及清洁机器人。The present application relates to the field of robotics, and in particular to a path planning method and device for a cleaning robot, a server, and a cleaning robot.

背景技术Background technique

目前,可移动的机器人在工业、农业、医疗、服务等行业中得到了广泛的应用。例如,家用或商用通常会使用到可移动的清洁机器人。清洁机器人在执行作业的过程中可能会因为遇到障碍物等原因中断清洁任务。例如,在当前清洁区域碰到障碍物,需要进入下一个清洁区域。此时清洁机器人若按照预先设置的路径进入预先设置好的下一个清洁区域,容易存在重复作业的情况。又例如,预先设置好的下一个清洁区域可能堆放太多杂物或者临时被封闭,清洁机器人无法进入下一个清洁区域,容易导致无法前进的情况。因此,现有技术对于清洁机器人的路径规划存在不灵活的问题,从而影响清洁机器人的作业效率。At present, mobile robots have been widely used in industry, agriculture, medical care, service and other industries. For example, mobile cleaning robots are often used for domestic or commercial use. The cleaning robot may interrupt the cleaning task due to obstacles or other reasons during the execution of the operation. For example, encountering an obstacle in the current cleaning area requires entering the next cleaning area. At this time, if the cleaning robot enters the next pre-set cleaning area according to the preset path, repeated operations are likely to occur. For another example, the pre-set next cleaning area may be stacked with too many sundries or temporarily closed, and the cleaning robot cannot enter the next cleaning area, which may easily lead to a situation where it cannot move forward. Therefore, the prior art has a problem of inflexibility in the path planning of the cleaning robot, thereby affecting the operation efficiency of the cleaning robot.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种清洁机器人的路径规划方法及装置、服务器及清洁机器人,用以解决现有技术对于清洁机器人的路径规划存在不灵活的问题。The purpose of the embodiments of the present application is to provide a path planning method and device for a cleaning robot, a server and a cleaning robot, so as to solve the problem of inflexibility in the path planning of the cleaning robot in the prior art.

为了实现上述目的,本申请第一方面提供一种清洁机器人的路径规划方法,应用于服务器,该路径规划方法包括:In order to achieve the above object, a first aspect of the present application provides a path planning method for a cleaning robot, which is applied to a server, and the path planning method includes:

接收清洁机器人发送的报警消息,报警消息指示清洁机器人遇到清洁障碍;Receive the alarm message sent by the cleaning robot, and the alarm message indicates that the cleaning robot encounters a cleaning obstacle;

获取清洁机器人的当前位置和当前所在清洁区域的地图,地图记载多个子清洁区域和子清洁区域的出入口节点;Obtain the current location of the cleaning robot and a map of the current cleaning area, and the map records multiple sub-cleaning areas and the entry and exit nodes of the sub-cleaning areas;

确定清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,候选子清洁区域是与所述清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域;Determine the shortest path among the multiple paths of the cleaning robot from the current position, through the entrance and exit nodes of the current sub-cleaning area, to the entrance and exit nodes of the candidate sub-cleaning area, and the candidate sub-cleaning area is the sub-cleaning area where the cleaning robot is currently located. the adjacent sub-cleaning area to be cleaned;

将最短路径发送给所述清洁机器人,使得清洁机器人能按照最短路径驶向目标子清洁区域进行作业。The shortest path is sent to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area according to the shortest path to perform operations.

在本申请实施例中,多个子清洁区域之间具有预设的清洁顺序。In this embodiment of the present application, there is a preset cleaning sequence among the plurality of sub-cleaning areas.

在本申请实施例中,该路径规划方法还包括:获取清洁机器人当前所在子清洁区域的相邻子清洁区域;根据所有清洁机器人在预设时间进入相邻子清洁区域出入口节点的次数,确定相邻子清洁区域是否为候选子清洁区域。In the embodiment of the present application, the path planning method further includes: acquiring adjacent sub-cleaning areas of the sub-cleaning area where the cleaning robot is currently located; Whether the neighboring sub-cleaning region is a candidate sub-cleaning region.

在本申请实施例中,该路径规划方法还包括:确定清洁机器人当前所在子清洁区域的相邻子清洁区域是否具有禁止进入标识;在相邻子清洁区域具有禁止进入标识的情况下,确定相邻子清洁区域不是候选子清洁区域。In the embodiment of the present application, the path planning method further includes: determining whether an adjacent sub-cleaning area of the sub-cleaning area where the cleaning robot is currently located has an entry prohibition sign; if the adjacent sub-cleaning area has an entry prohibition sign, determining the corresponding sub-cleaning area Neighboring sub-cleaning regions are not candidate sub-cleaning regions.

本申请第二方面提供一种清洁机器人的路径规划方法,应用于清洁机器人,该清洁机器人与服务器通信,该路径规划方法包括:A second aspect of the present application provides a path planning method for a cleaning robot, which is applied to a cleaning robot, where the cleaning robot communicates with a server, and the path planning method includes:

发送报警消息至服务器,所述报警消息指示清洁机器人遇到清洁障碍;sending an alarm message to the server, the alarm message indicating that the cleaning robot encounters a cleaning obstacle;

接收服务器发送的的最短路径,所述最短路径为清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,候选子清洁区域是与清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域,服务器上具有清洁机器人当前所在清洁区域的地图,地图记载多个子清洁区域和子清洁区域的出入口节点;Receive the shortest path sent by the server, the shortest path is the shortest path among the multiple paths of the cleaning robot from the current position, through the entrance and exit nodes of the current sub-cleaning area, to the entrance and exit nodes of the candidate sub-cleaning area, and the candidate sub-cleaning area It is the sub-cleaning area to be cleaned adjacent to the sub-cleaning area where the cleaning robot is currently located. The server has a map of the cleaning area where the cleaning robot is currently located, and the map records multiple sub-cleaning areas and the entry and exit nodes of the sub-cleaning area;

根据最短路径驶向目标子清洁区域进行作业。Drive to the target sub-cleaning area according to the shortest path to work.

在本申请实施例中,该路径规划方法还包括:In the embodiment of the present application, the path planning method further includes:

获取服务器发送的多个子清洁区域的出入口节点的位置信息;Obtain the location information of the entrance and exit nodes of multiple sub-cleaning areas sent by the server;

在当前位置与任意子清洁区域的出入口节点的位置信息匹配的情况下,发送打卡信号至服务器。In the case that the current position matches the position information of the entrance and exit nodes of any sub-cleaning area, a punch-in signal is sent to the server.

本申请第三方面提供一种清洁机器人的路径规划装置,包括:A third aspect of the present application provides a path planning device for a cleaning robot, including:

消息接收模块,被配置成接收清洁机器人发送的报警消息,报警消息指示清洁机器人遇到清洁障碍;The message receiving module is configured to receive an alarm message sent by the cleaning robot, and the alarm message indicates that the cleaning robot encounters a cleaning obstacle;

地图获取模块,被配置成获取清洁机器人的当前位置和当前所在清洁区域的地图,地图记载多个子清洁区域和子清洁区域的出入口节点;The map acquisition module is configured to acquire the current position of the cleaning robot and a map of the current cleaning area, and the map records multiple sub-cleaning areas and entry and exit nodes of the sub-cleaning areas;

路径确定模块,被配置成确定清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,所述候选子清洁区域是与所述清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域;The path determination module is configured to determine the shortest path among the multiple paths of the cleaning robot from the current position, through the entrance and exit nodes of the current sub-cleaning area, to the entrance and exit nodes of the candidate sub-cleaning area, and the candidate sub-cleaning area is the same as the selected sub-cleaning area. The sub-cleaning area to be cleaned adjacent to the sub-cleaning area where the cleaning robot is currently located;

发送模块,被配置成将最短路径发送给清洁机器人,使得清洁机器人能按照最短路径驶向目标子清洁区域进行作业。The sending module is configured to send the shortest path to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area to perform operations according to the shortest path.

本申请第四方面提供一种服务器,该服务器与至少一清洁机器人通信,服务器包括处理器,被配置成执行上述的清洁机器人的路径规划方法。A fourth aspect of the present application provides a server, which communicates with at least one cleaning robot, and the server includes a processor configured to execute the above-mentioned path planning method for the cleaning robot.

本申请第五方面提供一种清洁机器人,该清洁机器人与服务器通信,清洁机器人包括处理器,被配置成执行上述的清洁机器人的路径规划方法。A fifth aspect of the present application provides a cleaning robot, the cleaning robot communicates with a server, and the cleaning robot includes a processor configured to execute the above-mentioned path planning method for the cleaning robot.

本申请第六方面提供一种机器可读存储介质,该机器可读存储介质上存储有指令,该指令用于使得机器执行上述的清洁机器人的路径规划方法。A sixth aspect of the present application provides a machine-readable storage medium, where instructions are stored on the machine-readable storage medium, and the instructions are used to cause a machine to execute the above-mentioned path planning method for a cleaning robot.

通过上述技术方案,引入服务器,将服务器与至少一清洁机器人通信,服务器接收清洁机器人发送的报警消息,该报警消息指示清洁机器人遇到清洁障碍,并且获取清洁机器人的当前位置和当前所在清洁区域的地图,该地图记载多个子清洁区域和子清洁区域的出入口节点,从而确定清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,候选子清洁区域与清洁机器人当前所在子清洁区域相邻;再将最短路径发送给清洁机器人,使得清洁机器人能按照最短路径驶向目标子清洁区域进行作业。这样,本申请可以动态规划清洁机器人的路径,提高了清洁机器人的路径规划的灵活性,从而提高了清洁机器人的作业效率。Through the above technical solution, a server is introduced, the server is communicated with at least one cleaning robot, the server receives an alarm message sent by the cleaning robot, the alarm message indicates that the cleaning robot encounters a cleaning obstacle, and obtains the current position of the cleaning robot and the current location of the cleaning area. A map, which records multiple sub-cleaning areas and entry-exit nodes of the sub-cleaning area, thereby determining the shortest path among the multiple paths of the cleaning robot from the current position, via the entry-exit node of the current sub-cleaning area, to the entry-exit node of the candidate sub-cleaning area , the candidate sub-cleaning area is adjacent to the sub-cleaning area where the cleaning robot is currently located; and then the shortest path is sent to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area to operate according to the shortest path. In this way, the present application can dynamically plan the path of the cleaning robot, which improves the flexibility of the path planning of the cleaning robot, thereby improving the operation efficiency of the cleaning robot.

本申请实施例的其它特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the embodiments of the present application will be described in detail in the detailed description section that follows.

附图说明Description of drawings

附图是用来提供对本申请实施例的进一步理解,并且构成说明书的一部分,与下面的具体实施方式一起用于解释本申请实施例,但并不构成对本申请实施例的限制。在附图中:The accompanying drawings are used to provide further understanding of the embodiments of the present application, and constitute a part of the specification, and are used to explain the embodiments of the present application together with the following specific embodiments, but do not constitute limitations to the embodiments of the present application. In the attached image:

图1示意性示出了根据本申请实施例的一种清洁机器人的路径规划方法的应用环境图;FIG. 1 schematically shows an application environment diagram of a path planning method for a cleaning robot according to an embodiment of the present application;

图2示意性示出了根据本申请一实施例的一种清洁机器人的路径规划方法的流程图;FIG. 2 schematically shows a flowchart of a path planning method for a cleaning robot according to an embodiment of the present application;

图3示意性示出了根据本申请一实施例的一种清洁机器人的行走路径的结构图;3 schematically shows a structural diagram of a walking path of a cleaning robot according to an embodiment of the present application;

图4示意性示出了根据本申请另一实施例的一种清洁机器人的行走路径的结构图;4 schematically shows a structural diagram of a walking path of a cleaning robot according to another embodiment of the present application;

图5示意性示出了根据本申请又一实施例的一种清洁机器人的行走路径的结构图;FIG. 5 schematically shows a structural diagram of a walking path of a cleaning robot according to yet another embodiment of the present application;

图6示意性示出了根据本申请实施例的一种作业区域有向图的结构图;FIG. 6 schematically shows a structural diagram of a directed graph of a work area according to an embodiment of the present application;

图7示意性示出了根据本申请另一实施例的一种清洁机器人的路径规划方法的流程图;FIG. 7 schematically shows a flowchart of a path planning method for a cleaning robot according to another embodiment of the present application;

图8示意性示出了根据本申请实施例的一种清洁机器人的路径规划装置的结构图。FIG. 8 schematically shows a structural diagram of a path planning device for a cleaning robot according to an embodiment of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,应当理解的是,此处所描述的具体实施方式仅用于说明和解释本申请实施例,并不用于限制本申请实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the The specific embodiments described are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present application.

需要说明,若本申请实施例中有涉及方向性指示(诸如上、下、左、右、前、后……),则该方向性指示仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that if there are directional indications (such as up, down, left, right, front, back, etc.) involved in the embodiments of the present application, the directional indications are only used to explain a certain posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly.

另外,若本申请实施例中有涉及“第一”、“第二”等的描述,则该“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。In addition, if there are descriptions related to "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only for the purpose of description, and should not be construed as indicating or implying Its relative importance or implicitly indicates the number of technical features indicated. Thus, a feature delimited with "first", "second" may expressly or implicitly include at least one of that feature. In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of such technical solutions does not exist. , is not within the scope of protection claimed in this application.

图1示意性示出了根据本申请实施例的一种清洁机器人的路径规划方法的应用环境图。本申请实施例提供的清洁机器人的路径规划方法,可以应用于如图1所示的应用环境中。其中,服务器101分别与至少一清洁机器人102通信。服务器101可以用独立的服务器或者多个服务器组成的服务器集群来实现。清洁机器人102可以是可移动清洁机器人,包括但不限于扫地机器人等。图1以3个清洁机器人102为例,清洁机器人102可以包括清洁机器人1、清洁机器人2和清洁机器人3。单台清洁机器人在工作的时候需要每台清洁机器人都建立地图,地图信息包含了工作区域。本申请实施例引入了服务器,用作调度装置,将地图信息放在服务器上,并根据定义的区域信息格式,可以让多台清洁机器人协同工作而互不影响。FIG. 1 schematically shows an application environment diagram of a path planning method for a cleaning robot according to an embodiment of the present application. The path planning method for the cleaning robot provided by the embodiment of the present application can be applied to the application environment shown in FIG. 1 . The server 101 communicates with at least one cleaning robot 102 respectively. The server 101 can be implemented by an independent server or a server cluster composed of multiple servers. The cleaning robot 102 may be a movable cleaning robot, including but not limited to a cleaning robot and the like. FIG. 1 takes three cleaning robots 102 as an example. The cleaning robots 102 may include cleaning robot 1 , cleaning robot 2 and cleaning robot 3 . When a single cleaning robot is working, each cleaning robot needs to create a map, and the map information includes the working area. The embodiment of the present application introduces a server, which is used as a scheduling device. Map information is placed on the server, and according to the defined area information format, multiple cleaning robots can work together without affecting each other.

清洁机器人在执行清洁过程中可能会因为遇到障碍物等原因中断对当前清洁区域的清洁任务。如果按照之前预设的路径去清洁下一个区域的话,清洁路径不一定是最短的。因此,本申请实施例通过服务器和清洁机器人通信,提供一种在清洁机器人的清洁过程中遇到无法继续清洁任务的情况下,规划最短路径的方式。During the cleaning process, the cleaning robot may interrupt the cleaning task of the current cleaning area due to encountering obstacles and other reasons. If the next area is cleaned according to the previously preset path, the cleaning path is not necessarily the shortest. Therefore, the embodiment of the present application provides a way of planning the shortest path when the cleaning task of the cleaning robot cannot continue through the communication between the server and the cleaning robot.

图2示意性示出了根据本申请一实施例的一种清洁机器人的路径规划方法的流程图。如图2所示,在本申请一实施例中,提供一种清洁机器人的路径规划方法,应用于服务器,该路径规划方法可以包括下列步骤。FIG. 2 schematically shows a flowchart of a path planning method for a cleaning robot according to an embodiment of the present application. As shown in FIG. 2 , in an embodiment of the present application, a path planning method for a cleaning robot is provided, which is applied to a server, and the path planning method may include the following steps.

步骤201、接收清洁机器人发送的报警消息,报警消息指示清洁机器人遇到清洁障碍。Step 201: Receive an alarm message sent by the cleaning robot, where the alarm message indicates that the cleaning robot encounters a cleaning obstacle.

在本申请实施例中,清洁机器人在工作时,可能会出现意外情况,使得清洁机器人无法继续前行。例如,清洁机器人的前方堆放了太多杂物无法继续前行,又或者清洁机器人的前方被封闭导致无法继续前行。此时,则需要服务器对清洁机器人进行动态调节,以使清洁机器人改变清洁或行走路径。本申请实施例中,报警消息是指清洁机器人在确定无法继续前行的情况下,向服务器发送的指示该清洁机器人遇到清洁障碍的消息,以便服务器知晓该清洁机器人无法继续前行。在一个示例中,报警消息可以包括位置信息,服务器可以根据位置信息确定当前清洁机器人所在的位置。在另一个示例中,报警消息不包括位置信息,服务器在接收到清洁机器人发送的报警消息后,发送获取位置信息的指示至清洁机器人,清洁机器人再根据获取位置信息的指示将当前的位置信息反馈至服务器。这样,服务器可以在获取报警消息的同时确定清洁机器人的当前位置。In the embodiment of the present application, when the cleaning robot is working, an unexpected situation may occur, so that the cleaning robot cannot continue to move forward. For example, too much debris is piled up in front of the cleaning robot and cannot continue to move forward, or the front of the cleaning robot is blocked and cannot continue to move forward. At this time, the server needs to dynamically adjust the cleaning robot, so that the cleaning robot changes the cleaning or walking path. In the embodiment of the present application, the alarm message refers to a message sent to the server by the cleaning robot when it is determined that it cannot continue to move forward, indicating that the cleaning robot encounters a cleaning obstacle, so that the server knows that the cleaning robot cannot continue to move forward. In one example, the alarm message may include location information, and the server may determine the current location of the cleaning robot according to the location information. In another example, the alarm message does not include location information. After receiving the alarm message sent by the cleaning robot, the server sends an instruction to obtain location information to the cleaning robot, and the cleaning robot then feeds back the current location information according to the instruction to obtain location information. to the server. In this way, the server can determine the current position of the cleaning robot while acquiring the alarm message.

步骤202、获取清洁机器人的当前位置和当前所在清洁区域的地图,地图记载多个子清洁区域和多个子清洁区域的出入口节点。Step 202: Obtain the current location of the cleaning robot and a map of the current cleaning area, where the map records multiple sub-cleaning areas and entry and exit nodes of the multiple sub-cleaning areas.

在本申请实施例中,地图即作业区域有向图,地图可以包括互不重合的多个子清洁区域,多个子清洁区域中的每个子清洁区域包含入口节点和出口节点,即出入口节点。作业区域有向图是根据任意子清洁区域的入口节点和出口节点,以及任意子清洁区域的相邻子清洁区域的出入口节点确定的。In this embodiment of the present application, the map is a directed graph of the work area. The map may include multiple sub-cleaning areas that do not overlap with each other, and each sub-cleaning area in the multiple sub-cleaning areas includes an entry node and an exit node, that is, an entry and exit node. The directed graph of the working area is determined according to the entry and exit nodes of any sub-cleaning area, and the entry and exit nodes of the adjacent sub-cleaning areas of any sub-cleaning area.

在本申请实施例中,作业区域有向图预先构建而成:将待清洁区域的作业地图划分为互不重合的多个子清洁区域;分别在每个子清洁区域设置入口节点和出口节点;再根据多个子清洁区域中的任意子清洁区域的入口节点和出口节点,以及任意子清洁区域的出入口节点确定作业区域有向图。In the embodiment of the present application, the directed graph of the operation area is pre-built: the operation map of the area to be cleaned is divided into a plurality of sub-cleaning areas that do not overlap with each other; an entrance node and an exit node are respectively set in each sub-cleaning area; The entry node and exit node of any sub-cleaning area in the plurality of sub-cleaning areas, and the entrance and exit nodes of any sub-cleaning area determine the directed graph of the working area.

具体地,待清洁区域的作业地图即清洁机器人需要进行作业的所有清洁区域。在一个示例中,可以通过图像采集装置采集待清洁区域的图像,并以此建立待清洁区域的作业地图。也可以通过建筑规划图建立待清洁区域的作业地图。Specifically, the operation map of the area to be cleaned is all cleaning areas where the cleaning robot needs to perform operations. In one example, an image of the area to be cleaned may be collected by an image collection device, and an operation map of the area to be cleaned may be established based on this. It is also possible to create a working map of the area to be cleaned from the building plan.

为了提高清洁效率,减少重复清洁的情况,可以将作业地图划分为互不重合的多个子清洁区域。在一个示例中,可以将待清洁区域划分为6个子清洁区域,每个方框分别围成一个子清洁区域。该6个子清洁区域彼此之间互不重合,这样可以减少重复作业,提高清洁机器人的作业效率。In order to improve cleaning efficiency and reduce repeated cleaning, the operation map can be divided into multiple sub-cleaning areas that do not overlap with each other. In an example, the area to be cleaned may be divided into 6 sub-cleaning areas, and each box respectively encloses a sub-cleaning area. The six sub-cleaning areas do not overlap with each other, so that repeated operations can be reduced and the operation efficiency of the cleaning robot can be improved.

对于每个子清洁区域,服务器可以分别设置一个入口节点和一个出口节点。图3示意性示出了根据本申请一实施例的一种清洁机器人的行走路径的结构图。图4示意性示出了根据本申请另一实施例的一种清洁机器人的行走路径的结构图。图5示意性示出了根据本申请又一实施例的一种清洁机器人的行走路径的结构图。For each sub-cleaning area, the server can set an entry node and an exit node respectively. FIG. 3 schematically shows a structural diagram of a walking path of a cleaning robot according to an embodiment of the present application. FIG. 4 schematically shows a structural diagram of a walking path of a cleaning robot according to another embodiment of the present application. FIG. 5 schematically shows a structural diagram of a walking path of a cleaning robot according to another embodiment of the present application.

在本申请实施例中,如图3至图5所示,空心圆可以表示入口节点,实心圆可以表示出口节点。每个子清洁区域都包含入口和出口节点。图3所示的入口节点和出口节点只是一个参考点,机器人在实际作业的时候会根据当前的位置确定清洁机器人从入口节点还是从出口节点进出,动态地进行路径规划。In this embodiment of the present application, as shown in FIG. 3 to FIG. 5 , the hollow circle may represent the entry node, and the solid circle may represent the exit node. Each sub-clean area contains entry and exit nodes. The entry node and exit node shown in Figure 3 are just a reference point. During the actual operation, the robot will determine whether the cleaning robot enters or exits from the entry node or the exit node according to the current position, and dynamically performs path planning.

如图3所示,清洁机器人为三角形图标,a为入口节点,b为出口节点。当清洁机器人离a点距离较近,会通过a点进入该区域,从b点离开该区域。如图4所示,当清洁机器人离b点距离较近,会通过b点进入该区域,从a点离开该区域。如图5所示,清洁机器人也可以通过a点进入该区域,并且也从a点离开该区域。也就是说,根据清洁机器人的作业位置,可以动态地确定清洁机器人在当前作业区域的进出,从而使得清洁机器人的路径最短。As shown in Figure 3, the cleaning robot is a triangle icon, a is the entry node, and b is the exit node. When the cleaning robot is closer to point a, it will enter the area through point a and leave the area from point b. As shown in Figure 4, when the cleaning robot is close to point b, it will enter the area through point b and leave the area from point a. As shown in Figure 5, the cleaning robot can also enter the area through point a, and also leave the area from point a. That is, according to the working position of the cleaning robot, the entry and exit of the cleaning robot in the current working area can be dynamically determined, so that the path of the cleaning robot is the shortest.

对于任意子清洁区域,将任意子清洁区域的入口节点和出口节点分别与其相邻子清洁区域的入口节点或出口节点进行连接,可以得到作业区域有向图。其中,判断与相邻子清洁区域的入口节点还是出口节点连接是基于相邻子清洁区域中入口节点和出口节点离任意子清洁区域的距离确定,选择与任意子清洁区域的距离更近的节点进行连接。For any sub-cleaning area, by connecting the entry node and exit node of any sub-cleaning area with the entry node or exit node of its adjacent sub-cleaning area, the directed graph of the work area can be obtained. Among them, judging whether to connect to the entrance node or the exit node of the adjacent sub-cleaning area is determined based on the distance between the entrance node and the exit node in the adjacent sub-cleaning area from any sub-cleaning area, and selects the node with a closer distance to any sub-cleaning area. to connect.

图6示意性示出了根据本申请实施例的一种作业区域有向图的结构图。如图6所示,可以将待清洁区域划分为6个子清洁区域,每个方框分别围成一个子清洁区域。该6个子清洁区域彼此之间互不重合。图6以区域1、区域2、区域4和区域5为例,作业区域有向图的节点之间的距离可以分别为L1、L2、L3,…,L9。以清洁机器人处于区域1为例,当清洁机器人处于区域1时,相邻子清洁区域可以为区域2或区域4。区域2的入口节点与区域1较近,则对于区域1,需要连接区域2的入口节点;区域4的入口节点也与区域1较近,则对于区域1,也需要连接区域4的入口节点。而对于区域2来说,区域1的出口节点与区域2更近,则对于区域2,需要连接区域1的出口节点。需要说明的是,区域1和区域2、区域4之间有连通的箭头,说明清洁机器人可以直接从区域1到达区域2或区域4。而区域1和区域5中间可能存在电梯或者天井区域,因此区域1和区域5之间没有连通的箭头,说明区域1无法直接到达区域5。根据上述定义方式,可以构建出整个待清洁区域的作业区域有向图,以便服务器根据作业区域有向图,对清洁机器人的路径进行动态规划,以确定清洁机器人的最短路径。FIG. 6 schematically shows a structural diagram of a directed graph of a work area according to an embodiment of the present application. As shown in FIG. 6 , the area to be cleaned can be divided into 6 sub-cleaning areas, and each box is encircled by a sub-cleaning area respectively. The six sub-cleaning areas do not overlap with each other. Fig. 6 takes area 1, area 2, area 4 and area 5 as examples, the distances between the nodes of the directed graph of the work area may be L1, L2, L3, ..., L9 respectively. Taking the cleaning robot in area 1 as an example, when the cleaning robot is in area 1, the adjacent sub-cleaning area may be area 2 or area 4. If the entry node of area 2 is close to area 1, then for area 1, you need to connect the entry node of area 2; the entry node of area 4 is also close to area 1, then for area 1, you also need to connect the entry node of area 4. For area 2, the exit node of area 1 is closer to area 2, then for area 2, the exit node of area 1 needs to be connected. It should be noted that there are connected arrows between Area 1, Area 2, and Area 4, indicating that the cleaning robot can directly reach Area 2 or Area 4 from Area 1. However, there may be an elevator or patio area between area 1 and area 5, so there is no connecting arrow between area 1 and area 5, indicating that area 1 cannot directly reach area 5. According to the above definition method, a directed graph of the working area of the entire area to be cleaned can be constructed, so that the server can dynamically plan the path of the cleaning robot according to the directed graph of the working area to determine the shortest path of the cleaning robot.

步骤203、确定清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,候选子清洁区域是与所述清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域。Step 203: Determine the shortest path among the multiple paths of the entry and exit nodes of the candidate sub-cleaning area to the entry and exit nodes of the candidate sub-cleaning area through the current position of the cleaning robot, via the entrance and exit nodes of the current sub-cleaning area, and the candidate sub-cleaning area is the same as the current location of the cleaning robot. The sub-cleaning area to be cleaned adjacent to the cleaning area.

在本申请实施例中,最确定最短路径可以提高清洁机器人的工作效率。服务器可以通过图搜索或者Dijkstra算法,将清洁机器人达到这些区域的最短路径计算出来。In the embodiment of the present application, the most determined shortest path can improve the working efficiency of the cleaning robot. The server can calculate the shortest path for the cleaning robot to reach these areas through graph search or Dijkstra algorithm.

在一个示例中,服务器可以先根据清洁机器人的当前位置和作业区域有向图,可以确定至少一个候选子清洁区域,候选子清洁区域是与清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域;再根据作业区域有向图确定该清洁机器人进入至少一个候选子清洁区域的多个路径;最后将多个路径中的最短路径确定为清洁机器人进入下一个作业区域的最短路径。In one example, the server may first determine at least one candidate sub-cleaning area according to the current position of the cleaning robot and the directed graph of the working area, and the candidate sub-cleaning area is the sub-cleaning sub-cleaning area adjacent to the sub-cleaning area where the cleaning robot is currently located. Then, according to the directed graph of the working area, determine multiple paths for the cleaning robot to enter at least one candidate sub-cleaning area; and finally determine the shortest path among the multiple paths as the shortest path for the cleaning robot to enter the next working area.

具体地,候选子清洁区域即没有其他清洁机器人正在作业且没有被清洁过的子清洁区域。目标子清洁区域即候选子清洁区域中与当前子清洁区域之间路径最短的相邻子清洁区域。通过先判定候选子清洁区域,可以避免重复清洁或当前清洁机器人与其他清洁机器人发生碰撞的情况。对于清洁机器人在当前子清洁区域无法继续前行的情况,候选子清洁区域为当前子清洁区域的相邻子清洁区域中的候选子清洁区域。服务器可以将相邻子清洁区域中未被清洁且未有其他清洁机器人作业的相邻子清洁区域作为候选子清洁区域。Specifically, the candidate sub-cleaning area is a sub-cleaning area that no other cleaning robot is working and has not been cleaned. The target sub-cleaning area is the adjacent sub-cleaning area with the shortest path between the candidate sub-cleaning area and the current sub-cleaning area. By first determining the candidate sub-cleaning areas, repeated cleaning or the collision between the current cleaning robot and other cleaning robots can be avoided. In the case where the cleaning robot cannot continue to move forward in the current sub-cleaning area, the candidate sub-cleaning area is a candidate sub-cleaning area in the adjacent sub-cleaning areas of the current sub-cleaning area. The server may use the adjacent sub-cleaning areas that have not been cleaned and have not been operated by other cleaning robots as candidate sub-cleaning areas.

其中,确定子清洁区域未被清洁以及确定子清洁区域未有其他清洁机器人作业可以通过获取每个节点的打卡信号确定。由于在本申请实施例中,清洁机器人每经过一次出入口节点时会向服务器发送打卡信号。当清洁机器人只经过一次子清洁区域的出入口节点时,说明该子清洁区域有清洁机器人在作业。当清洁机器人经过两次子清洁区域的出入口节点时,说明该子清洁区域已清洁完毕。当子清洁区域的出口节点都没有清洁机器人的打卡信号时,即所有清洁机器人在预设时间进入相邻子清洁区域出入口节点的次数为零,证明该子清洁区域未被清洁,且没有其他清洁机器人正在作业,该相邻子清洁区域候选子清洁区域。The determination that the sub-cleaning area has not been cleaned and that there is no other cleaning robot operation in the sub-cleaning area can be determined by acquiring the punch-in signal of each node. Because in the embodiment of the present application, the cleaning robot sends a punch-in signal to the server every time it passes through the entrance and exit nodes. When the cleaning robot passes through the entrance and exit nodes of the sub-cleaning area only once, it means that there are cleaning robots working in the sub-cleaning area. When the cleaning robot passes through the entrance and exit nodes of the sub-cleaning area twice, it means that the sub-cleaning area has been cleaned. When the exit nodes of the sub-cleaning area do not have the punch-in signal of the cleaning robot, that is, the number of times that all cleaning robots enter the entrance and exit nodes of the adjacent sub-cleaning area at the preset time is zero, which proves that the sub-cleaning area has not been cleaned and there is no other cleaning. The robot is working, and this adjacent sub-cleaning area is a candidate for the sub-cleaning area.

确定了候选子清洁区域之后,可以根据作业区域有向图确定清洁机器人进入候选子清洁区域的多个路径。多个路径可以为由清洁机器人当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径。仍以图6为例,假设三角形为清洁机器人所在的位置。与区域1相邻的相邻子清洁区域可以是区域2或区域4。假设区域2和区域4均未被清洁且没有其他清洁机器人在作业。则区域2和区域4均为候选子清洁区域。此时,清洁机器人进入区域2的路径包括:从区域1的入口节点A到区域2的入口节点D的第一路径(即S0-L1),以及从区域1的出口节点B到区域2的入口节点D的第二路径(即S1-L2)。同时,清洁机器人进入区域4的路径包括:从区域1的入口节点A到区域4的入口节点C的第三路径(即S0-L3),以及从区域4的出口节点B到区域4的入口节点C的第四路径(即S1-L4)。最后将第一路径、第二路径、第三路径和第四路径中的最短路径确定为清洁机器人进入下一个作业区域的最短路径。在一个示例中,可以通过获取清洁机器人的当前位置以及出入口节点的坐标,根据坐标计算每条路径的距离值,从而选择距离值最小的路径为最短路径。本申请实施例根据作业区域有向图确定最短路径,计算方式更加简便且效率更高。After the candidate sub-cleaning area is determined, multiple paths for the cleaning robot to enter the candidate sub-cleaning area can be determined according to the directed graph of the work area. The multiple paths may be multiple paths from the current position of the cleaning robot to the entry and exit nodes of the candidate sub-cleaning area via the entry and exit nodes of the current sub-cleaning area. Still taking Fig. 6 as an example, it is assumed that the triangle is the position where the cleaning robot is located. The adjacent sub-cleaning area adjacent to area 1 may be area 2 or area 4. It is assumed that neither zone 2 nor zone 4 has been cleaned and no other cleaning robots are working. Then area 2 and area 4 are both candidate sub-cleaning areas. At this time, the path of the cleaning robot entering the area 2 includes: the first path (ie S0-L1) from the entrance node A of the area 1 to the entrance node D of the area 2, and the exit node B of the area 1 to the entrance of the area 2. Node D's second path (ie S1-L2). Meanwhile, the path of the cleaning robot entering the area 4 includes: the third path (ie S0-L3) from the entry node A of the area 1 to the entry node C of the area 4, and the exit node B of the area 4 to the entry node of the area 4. The fourth path of C (ie S1-L4). Finally, the shortest path among the first path, the second path, the third path and the fourth path is determined as the shortest path for the cleaning robot to enter the next work area. In one example, the current position of the cleaning robot and the coordinates of the entrance and exit nodes can be obtained, and the distance value of each path can be calculated according to the coordinates, so that the path with the smallest distance value can be selected as the shortest path. In the embodiment of the present application, the shortest path is determined according to the directed graph of the work area, and the calculation method is simpler and more efficient.

步骤204、将最短路径发送给清洁机器人,使得清洁机器人能按照最短路径驶向目标子清洁区域进行作业。目标子清洁区域为候选子清洁区域中的一个。Step 204 , sending the shortest path to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area to perform operations according to the shortest path. The target sub-cleaning area is one of the candidate sub-cleaning areas.

在本申请实施例中,服务器在确定最短路径后,可以将最短路径发送给清洁机器人。其中,最短路径包括了出入口节点的位置信息。清洁机器人上也有清洁区域的地图信息,主要用于局部导航,不用于子清洁区域之间的调度。清洁机器人接收到服务器发送的最短路径,可以根据最短路径驶向目标子清洁区域。In this embodiment of the present application, after determining the shortest path, the server may send the shortest path to the cleaning robot. The shortest path includes the location information of the entry and exit nodes. The cleaning robot also has map information of the cleaning area, which is mainly used for local navigation and not used for scheduling between sub-cleaning areas. The cleaning robot receives the shortest path sent by the server, and can drive to the target sub-cleaning area according to the shortest path.

通过上述技术方案,引入服务器,将服务器与至少一清洁机器人通信,服务器接收清洁机器人发送的报警消息,该报警消息指示清洁机器人遇到清洁障碍,并且获取清洁机器人的当前位置和当前所在清洁区域的地图,该地图记载多个子清洁区域和子清洁区域的出入口节点,从而确定清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,候选子清洁区域与清洁机器人当前所在子清洁区域相邻;再将最短路径发送给清洁机器人,使得清洁机器人能按照最短路径驶向目标子清洁区域进行作业。这样,本申请可以动态规划清洁机器人的路径,提高了清洁机器人的路径规划的灵活性,从而提高了清洁机器人的作业效率。Through the above technical solution, a server is introduced, the server is communicated with at least one cleaning robot, the server receives an alarm message sent by the cleaning robot, the alarm message indicates that the cleaning robot encounters a cleaning obstacle, and obtains the current position of the cleaning robot and the current location of the cleaning area. A map, which records multiple sub-cleaning areas and entry-exit nodes of the sub-cleaning area, thereby determining the shortest path among the multiple paths of the cleaning robot from the current position, via the entry-exit node of the current sub-cleaning area, to the entry-exit node of the candidate sub-cleaning area , the candidate sub-cleaning area is adjacent to the sub-cleaning area where the cleaning robot is currently located; and then the shortest path is sent to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area to operate according to the shortest path. In this way, the present application can dynamically plan the path of the cleaning robot, which improves the flexibility of the path planning of the cleaning robot, thereby improving the operation efficiency of the cleaning robot.

在本申请实施例中,多个子清洁区域之间可以具有预设的清洁顺序。In this embodiment of the present application, there may be a preset cleaning sequence among the plurality of sub-cleaning areas.

具体地,服务器还可以指定清洁机器人的清洁顺序,使得多个子清洁区域之间具有预设的清洁顺序。作业区域可以划分为区域1~区域6。在初始顺序中,可以将清洁顺序设置为按照区域1、区域2、区域3、区域6、区域5和区域4的顺序进行作业。但是由于清洁机器人在工作的时候,有可能会出现意外,如区域6可能堆放了太多杂物,或者区域6被封闭了,需要动态调整清洁区域。此时,清洁机器人工作到区域3的时候,服务器发现区域6不可进行作业,需要进行动态计算。此时若区域1和区域2已经清洁完毕,服务器需要确定下一个作业区域修改为区域4还是区域5。在清洁机器人的清洁过程中动态改变清洁机器人的清洁顺序,提高了清洁机器人的作业效率。Specifically, the server may also specify the cleaning sequence of the cleaning robot, so that there is a preset cleaning sequence among the plurality of sub-cleaning areas. The work area can be divided into area 1 to area 6. In the initial sequence, the cleaning sequence can be set to work in the order of Zone 1, Zone 2, Zone 3, Zone 6, Zone 5, and Zone 4. However, when the cleaning robot is working, there may be accidents. For example, too many debris may be stacked in the area 6, or the area 6 is closed, and the cleaning area needs to be dynamically adjusted. At this time, when the cleaning robot reaches area 3, the server finds that area 6 cannot be operated, and needs to perform dynamic calculation. At this time, if area 1 and area 2 have been cleaned, the server needs to determine whether the next operation area is changed to area 4 or area 5. During the cleaning process of the cleaning robot, the cleaning sequence of the cleaning robot is dynamically changed, thereby improving the working efficiency of the cleaning robot.

在本申请实施例中,该路径规划方法还可以包括:In this embodiment of the present application, the path planning method may further include:

获取清洁机器人当前所在子清洁区域的相邻子清洁区域;Get the adjacent sub-cleaning area of the sub-cleaning area where the cleaning robot is currently located;

根据所有清洁机器人在预设时间进入相邻子清洁区域出入口节点的次数,确定相邻子清洁区域是否为候选子清洁区域。According to the number of times that all cleaning robots enter the entrance and exit nodes of adjacent sub-cleaning areas at a preset time, it is determined whether adjacent sub-cleaning areas are candidate sub-cleaning areas.

具体地,清洁机器人在清洁过程中可能发生当前子清洁区域无法继续前行的情况。对于清洁机器人在当前子清洁区域无法继续前行的情况,服务器需要规划清洁机器人进入候选子清洁区域。候选子清洁区域是指未被清洁且没有其他清洁机器人正在作业的相邻子清洁区域。这样可以避免重复清洁或当前清洁机器人与其他清洁机器人发生碰撞的情况。Specifically, during the cleaning process of the cleaning robot, it may happen that the current sub-cleaning area cannot continue to move forward. For the situation that the cleaning robot cannot move forward in the current sub-cleaning area, the server needs to plan the cleaning robot to enter the candidate sub-cleaning area. Candidate sub-cleaning areas refer to adjacent sub-cleaning areas that have not been cleaned and no other cleaning robots are working. This avoids repeated cleaning or situations where the current cleaning robot collides with other cleaning robots.

在本申请实施例中,清洁机器人每经过一次出入口节点时会向服务器发送打卡信号。在预设时间内,即在设定的工作时间段内,当清洁机器人只经过一次子清洁区域的出入口节点时,说明该子清洁区域有清洁机器人在作业。当清洁机器人经过两次子清洁区域的出入口节点时,说明该子清洁区域已清洁完毕。当子清洁区域的出口节点都没有清洁机器人的打卡信号时,证明该子清洁区域未被清洁,且没有其他清洁机器人正在作业,可以确定为候选子清洁区域。In the embodiment of the present application, the cleaning robot sends a punch-in signal to the server every time it passes through the entrance and exit nodes. Within the preset time, that is, within the set working time period, when the cleaning robot passes through the entrance and exit nodes of the sub-cleaning area only once, it means that there is a cleaning robot working in the sub-cleaning area. When the cleaning robot passes through the entrance and exit nodes of the sub-cleaning area twice, it means that the sub-cleaning area has been cleaned. When none of the exit nodes of the sub-cleaning area has a punch-in signal from the cleaning robot, it proves that the sub-cleaning area has not been cleaned and no other cleaning robots are working, and can be determined as a candidate sub-cleaning area.

在本申请实施例中,该路径规划方法还可以包括:确定清洁机器人当前所在子清洁区域的相邻子清洁区域是否具有禁止进入标识;在相邻子清洁区域具有禁止进入标识的情况下,确定相邻子清洁区域不是候选子清洁区域。In this embodiment of the present application, the path planning method may further include: determining whether an adjacent sub-cleaning area of the sub-cleaning area where the cleaning robot is currently located has an entry prohibition sign; if the adjacent sub-cleaning area has an entry prohibition sign, determining Adjacent sub-cleaning regions are not candidate sub-cleaning regions.

具体地,清洁机器人所在的子清洁区域的相邻子清洁区域可能由于堆放了太多杂物导致清洁机器人无法进入设定的相邻子清洁区域,又或者清洁机器人的相邻子清洁区域被封闭导致清洁机器人无法进入设定的相邻子清洁区域,服务器则需要对清洁机器人的路径进行动态规划。Specifically, the adjacent sub-cleaning area of the sub-cleaning area where the cleaning robot is located may be unable to enter the set adjacent sub-cleaning area due to the accumulation of too many sundries, or the adjacent sub-cleaning area of the cleaning robot may be closed As a result, the cleaning robot cannot enter the set adjacent sub-cleaning area, and the server needs to dynamically plan the path of the cleaning robot.

在一个示例中,服务器可以通过确定清洁机器人当前所在子清洁区域的相邻子清洁区域是否具有禁止进入标识,从而确定相邻子清洁区域是否为候选子清洁区域。在相邻子清洁区域具有禁止进入标识的情况下,确定相邻子清洁区域不是候选子清洁区域。其中,禁止进入标识可以是清洁机器人检测到杂物堆放所反馈的信号或者某些预先设定的标识信息。这样,在清洁机器人无法进入设定的相邻子清洁区域的情况下,服务器也需要对清洁机器人重新进行路径规划。In one example, the server may determine whether an adjacent sub-cleaning area is a candidate sub-cleaning area by determining whether an adjacent sub-cleaning area of the sub-cleaning area where the cleaning robot is currently located has an entry prohibition sign. In the case that the adjacent sub-cleaning area has an entry prohibition sign, it is determined that the adjacent sub-cleaning area is not a candidate sub-cleaning area. Wherein, the entry prohibition sign may be a signal fed back by the cleaning robot for detecting the accumulation of sundries or some preset identification information. In this way, in the case that the cleaning robot cannot enter the set adjacent sub-cleaning area, the server also needs to re-plan the path of the cleaning robot.

图7示意性示出了根据本申请另一实施例的一种清洁机器人的路径规划方法的流程图。如图7所示,在本申请另一实施例中,提供一种清洁机器人的路径规划方法,应用于清洁机器人,该清洁机器人与服务器通信,该路径规划方法可以包括下列步骤:Fig. 7 schematically shows a flow chart of a method for planning a path of a cleaning robot according to another embodiment of the present application. As shown in FIG. 7 , in another embodiment of the present application, a path planning method for a cleaning robot is provided, which is applied to a cleaning robot, and the cleaning robot communicates with a server. The path planning method may include the following steps:

步骤701、发送报警消息至服务器,所述报警消息指示清洁机器人遇到清洁障碍;Step 701, sending an alarm message to the server, the alarm message indicating that the cleaning robot encounters a cleaning obstacle;

步骤702、接收服务器发送的的最短路径,所述最短路径为清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,候选子清洁区域是与清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域,服务器上具有清洁机器人当前所在清洁区域的地图,地图记载多个子清洁区域和多个子清洁区域的出入口节点;Step 702, receive the shortest path sent by the server, the shortest path is the shortest path among the multiple paths of the cleaning robot from the current position, through the entrance and exit nodes of the current sub-cleaning area, to the entrance and exit nodes of the candidate sub-cleaning area, the candidate The sub-cleaning area is the sub-cleaning area to be cleaned adjacent to the sub-cleaning area where the cleaning robot is currently located. The server has a map of the cleaning area where the cleaning robot is currently located, and the map records multiple sub-cleaning areas and the entrance and exit nodes of the multiple sub-cleaning areas;

步骤703、根据最短路径驶向目标子清洁区域进行作业。Step 703 , drive to the target sub-cleaning area according to the shortest path to perform the operation.

在本申请实施例中,清洁机器人在工作时,可能会出现意外情况,使得清洁机器人无法继续前行。例如,清洁机器人的前方堆放了太多杂物无法继续前行,又或者清洁机器人的前方被封闭导致无法继续前行。此时,清洁机器人可以发送报警消息至服务器,以使服务器对清洁机器人进行动态调节,改变清洁或行走路径。本申请实施例中,报警消息是指清洁机器人在确定无法继续前行的情况下,向服务器发送的指示该清洁机器人遇到清洁障碍的消息,以便服务器知晓该清洁机器人无法继续前行。在一个示例中,报警消息可以包括位置信息,服务器可以根据位置信息确定当前清洁机器人所在的位置。在另一个示例中,报警消息不包括位置信息,服务器在接收到清洁机器人发送的报警消息后,发送获取位置信息的指示至清洁机器人,清洁机器人再根据获取位置信息的指示将当前的位置信息反馈至服务器。这样,服务器可以在获取报警消息的同时确定清洁机器人的当前位置。In the embodiment of the present application, when the cleaning robot is working, an unexpected situation may occur, so that the cleaning robot cannot continue to move forward. For example, too much debris is piled up in front of the cleaning robot and cannot continue to move forward, or the front of the cleaning robot is blocked and cannot continue to move forward. At this time, the cleaning robot can send an alarm message to the server, so that the server can dynamically adjust the cleaning robot and change the cleaning or walking path. In the embodiment of the present application, the alarm message refers to a message sent to the server by the cleaning robot when it is determined that it cannot continue to move forward, indicating that the cleaning robot encounters a cleaning obstacle, so that the server knows that the cleaning robot cannot continue to move forward. In one example, the alarm message may include location information, and the server may determine the current location of the cleaning robot according to the location information. In another example, the alarm message does not include location information. After receiving the alarm message sent by the cleaning robot, the server sends an instruction to obtain location information to the cleaning robot, and the cleaning robot then feeds back the current location information according to the instruction to obtain location information. to the server. In this way, the server can determine the current position of the cleaning robot while acquiring the alarm message.

服务器根据报警消息获取清洁机器人的当前位置和当前所在清洁区域的地图,地图记载多个子清洁区域和子清洁区域的出入口节点。再确定清洁机器人由当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径。服务器在确定最短路径后,可以将最短路径发送给清洁机器人。其中,最短路径包括了出入口节点的位置信息。清洁机器人上也有清洁区域的地图信息,主要用于局部导航,不用于子清洁区域之间的调度。清洁机器人接收到服务器发送的最短路径后,可以根据最短路径驶向目标子清洁区域。The server obtains the current location of the cleaning robot and a map of the current cleaning area according to the alarm message, and the map records multiple sub-cleaning areas and entry and exit nodes of the sub-cleaning areas. Then determine the shortest path among the multiple paths of the cleaning robot from the current position, via the entrance and exit nodes of the current sub-cleaning area, to the entrance and exit nodes of the candidate sub-cleaning area. After determining the shortest path, the server can send the shortest path to the cleaning robot. The shortest path includes the location information of the entry and exit nodes. The cleaning robot also has map information of the cleaning area, which is mainly used for local navigation and not used for scheduling between sub-cleaning areas. After receiving the shortest path sent by the server, the cleaning robot can drive to the target sub-cleaning area according to the shortest path.

通过上述技术方案,引入服务器,将清洁机器人与服务器通信,在无法继续前行的情况下,清洁机器人向服务器发送报警消息,该报警消息指示清洁机器人遇到清洁障碍,服务器根据报警消息,获取清洁机器人的当前位置和当前所在清洁区域的地图,该地图记载多个子清洁区域和子清洁区域的出入口节点,从而确定清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,候选子清洁区域与清洁机器人当前所在子清洁区域相邻;再将最短路径发送给清洁机器人,使得清洁机器人能按照最短路径驶向目标子清洁区域进行作业。这样,本申请实施例可以动态规划清洁机器人的路径,提高了清洁机器人的路径规划的灵活性,从而提高了清洁机器人的作业效率。Through the above technical solution, a server is introduced, and the cleaning robot communicates with the server. When the cleaning robot cannot continue to move forward, the cleaning robot sends an alarm message to the server. The alarm message indicates that the cleaning robot encounters a cleaning obstacle, and the server obtains cleaning according to the alarm message. The current position of the robot and a map of the current cleaning area, which records multiple sub-cleaning areas and the entrance and exit nodes of the sub-cleaning area, so as to determine the location of the cleaning robot from the current position, through the entrance and exit nodes of the current sub-cleaning area, to the candidate sub-cleaning area. The shortest path among the multiple paths of the entry and exit nodes. The candidate sub-cleaning area is adjacent to the sub-cleaning area where the cleaning robot is currently located; then the shortest path is sent to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area according to the shortest path. . In this way, the embodiments of the present application can dynamically plan the path of the cleaning robot, improve the flexibility of the path planning of the cleaning robot, and thus improve the operation efficiency of the cleaning robot.

在本申请实施例中,该路径规划方法还可以包括:In this embodiment of the present application, the path planning method may further include:

获取服务器发送的多个子清洁区域的出入口节点的位置信息;Obtain the location information of the entrance and exit nodes of multiple sub-cleaning areas sent by the server;

在当前位置与任意子清洁区域的出入口节点的位置信息匹配的情况下,发送打卡信号至服务器。In the case that the current position matches the position information of the entrance and exit nodes of any sub-cleaning area, a punch-in signal is sent to the server.

具体地,清洁机器人每经过一次出入口节点时会向服务器发送打卡信号。因此,清洁机器人可以通过服务器获取多个子清洁区域的出入口节点的位置信息,如坐标信息。在清洁机器人当前位置与出入口节点的位置匹配的情况下,清洁机器人发送打卡信号至服务器。以便服务器通过打卡信号判断子清洁区域是否为候选子清洁区域。例如,当清洁机器人只经过一次子清洁区域的出入口节点时,说明该子清洁区域有清洁机器人在作业;当清洁机器人经过两次子清洁区域的出入口节点时,说明该子清洁区域已清洁完毕;当子清洁区域的出口节点都没有清洁机器人的打卡信号时,证明该子清洁区域未被清洁,且没有其他清洁机器人正在作业。通过向服务器发送打卡信号,以便服务器记录清洁机器人进出子清洁区域的信息。Specifically, the cleaning robot will send a punch-in signal to the server every time it passes through the entrance and exit nodes. Therefore, the cleaning robot can obtain location information, such as coordinate information, of the entrance and exit nodes of multiple sub-cleaning areas through the server. In the case that the current position of the cleaning robot matches the position of the entrance and exit nodes, the cleaning robot sends a punch-in signal to the server. So that the server can determine whether the sub-cleaning area is a candidate sub-cleaning area through the punch-in signal. For example, when the cleaning robot passes through the entrance and exit nodes of the sub-cleaning area only once, it means that there is a cleaning robot working in the sub-cleaning area; when the cleaning robot passes through the entrance and exit nodes of the sub-cleaning area twice, it means that the sub-cleaning area has been cleaned; When none of the exit nodes of the sub-cleaning area have a punch-in signal from the cleaning robot, it proves that the sub-cleaning area has not been cleaned and no other cleaning robots are working. By sending a punch-in signal to the server, the server records the information that the cleaning robot enters and leaves the sub-cleaning area.

图8示意性示出了根据本申请实施例的一种清洁机器人的路径规划装置的结构图。如图8所示,本申请实施例提供一种清洁机器人的路径规划装置,可以包括:FIG. 8 schematically shows a structural diagram of a path planning device for a cleaning robot according to an embodiment of the present application. As shown in FIG. 8 , an embodiment of the present application provides a path planning device for a cleaning robot, which may include:

消息接收模块801,被配置成接收清洁机器人发送的报警消息,报警消息指示清洁机器人遇到清洁障碍;The message receiving module 801 is configured to receive an alarm message sent by the cleaning robot, and the alarm message indicates that the cleaning robot encounters a cleaning obstacle;

地图获取模块802,被配置成获取清洁机器人的当前位置和当前所在清洁区域的地图,地图记载多个子清洁区域和子清洁区域的出入口节点;The map acquisition module 802 is configured to acquire the current position of the cleaning robot and a map of the current cleaning area, and the map records multiple sub-cleaning areas and entry and exit nodes of the sub-cleaning areas;

路径确定模块803,被配置成确定清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,候选子清洁区域是与清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域;The path determination module 803 is configured to determine the shortest path among the multiple paths of the cleaning robot from the current position, through the entrance and exit nodes of the current sub-cleaning area, to the entrance and exit nodes of the candidate sub-cleaning area, and the candidate sub-cleaning area is the same as the cleaning robot. The sub-cleaning area to be cleaned adjacent to the current sub-cleaning area;

发送模块804,被配置成将最短路径发送给清洁机器人,使得清洁机器人能按照最短路径驶向目标子清洁区域进行作业。The sending module 804 is configured to send the shortest path to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area to perform operations according to the shortest path.

在本申请实施例中,清洁机器人在工作时,可能会出现意外情况,使得清洁机器人无法继续前行。例如,清洁机器人的前方堆放了太多杂物无法继续前行,又或者清洁机器人的前方被封闭导致无法继续前行。消息接收模块801接收到清洁机器人发送的报警消息,需要服务器根据报警消息对清洁机器人进行动态调节,以使清洁机器人改变清洁或行走路径。本申请实施例中,报警消息是指清洁机器人在确定无法继续前行的情况下,向服务器发送的指示该清洁机器人遇到清洁障碍的消息,以便服务器知晓该清洁机器人无法继续前行。在一个示例中,报警消息可以包括位置信息,服务器可以根据位置信息确定当前清洁机器人所在的位置。在另一个示例中,报警消息不包括位置信息,服务器在接收到清洁机器人发送的报警消息后,发送获取位置信息的指示至清洁机器人,清洁机器人再根据获取位置信息的指示将当前的位置信息反馈至服务器。这样,服务器可以在获取报警消息的同时确定清洁机器人的当前位置。In the embodiment of the present application, when the cleaning robot is working, an unexpected situation may occur, so that the cleaning robot cannot continue to move forward. For example, too much debris is piled up in front of the cleaning robot and cannot continue to move forward, or the front of the cleaning robot is blocked and cannot continue to move forward. The message receiving module 801 receives the alarm message sent by the cleaning robot, and requires the server to dynamically adjust the cleaning robot according to the alarm message, so that the cleaning robot changes the cleaning or walking path. In the embodiment of the present application, the alarm message refers to a message sent to the server by the cleaning robot when it is determined that it cannot continue to move forward, indicating that the cleaning robot encounters a cleaning obstacle, so that the server knows that the cleaning robot cannot continue to move forward. In one example, the alarm message may include location information, and the server may determine the current location of the cleaning robot according to the location information. In another example, the alarm message does not include location information. After receiving the alarm message sent by the cleaning robot, the server sends an instruction to obtain location information to the cleaning robot, and the cleaning robot then feeds back the current location information according to the instruction to obtain location information. to the server. In this way, the server can determine the current position of the cleaning robot while acquiring the alarm message.

在本申请实施例中,地图即作业区域有向图,地图可以包括互不重合的多个子清洁区域,多个子清洁区域中的每个子清洁区域可以包含入口节点和出口节点,即出入口节点。作业区域有向图是根据任意子清洁区域的入口节点和出口节点,以及任意子清洁区域的相邻子清洁区域的出入口节点确定的。地图获取模块802获取清洁机器人的当前位置和当前所在清洁区域的地图,以便对清洁机器人的路径进行动态规划,以确定清洁机器人的最短路径。In this embodiment of the present application, the map is a directed graph of the work area. The map may include multiple sub-cleaning areas that do not overlap with each other, and each sub-cleaning area in the multiple sub-cleaning areas may include an entry node and an exit node, ie, an entry and exit node. The directed graph of the working area is determined according to the entry and exit nodes of any sub-cleaning area, and the entry and exit nodes of the adjacent sub-cleaning areas of any sub-cleaning area. The map obtaining module 802 obtains the current location of the cleaning robot and a map of the current cleaning area, so as to dynamically plan the path of the cleaning robot to determine the shortest path of the cleaning robot.

在本申请实施例中,最短路径可以为最短路径,以提高清洁机器人的工作效率。路径确定模块803可以通过图搜索或者Dijkstra算法,将清洁机器人达到这些区域的最短路径计算出来。在一个示例中,服务器可以先根据清洁机器人的当前位置和作业区域有向图,可以确定至少一个候选子清洁区域;再根据作业区域有向图确定该清洁机器人进入至少一个候选子清洁区域的多个路径;最后将多个路径中的最短路径确定为清洁机器人进入下一个作业区域的最短路径。本申请实施例根据作业区域有向图确定最短路径,计算方式更加简便且效率更高。In this embodiment of the present application, the shortest path may be the shortest path, so as to improve the working efficiency of the cleaning robot. The path determination module 803 can calculate the shortest path for the cleaning robot to reach these areas through graph search or Dijkstra algorithm. In an example, the server may first determine at least one candidate sub-cleaning area according to the current position of the cleaning robot and the directed graph of the working area; paths; finally, the shortest path among the multiple paths is determined as the shortest path for the cleaning robot to enter the next work area. In the embodiment of the present application, the shortest path is determined according to the directed graph of the work area, and the calculation method is simpler and more efficient.

服务器在确定最短路径后,发送模块804可以将最短路径发送给清洁机器人。其中,最短路径包括了出入口节点的位置信息。清洁机器人上也有清洁区域的地图信息,主要用于局部导航,不用于子清洁区域之间的调度。清洁机器人接收到服务器发送的最短路径,可以根据最短路径驶向目标子清洁区域。After the server determines the shortest path, the sending module 804 may send the shortest path to the cleaning robot. The shortest path includes the location information of the entry and exit nodes. The cleaning robot also has map information of the cleaning area, which is mainly used for local navigation and not used for scheduling between sub-cleaning areas. The cleaning robot receives the shortest path sent by the server, and can drive to the target sub-cleaning area according to the shortest path.

通过上述技术方案,引入服务器,将服务器与至少一清洁机器人通信,消息接收模块801接收清洁机器人发送的报警消息,该报警消息指示清洁机器人遇到清洁障碍,地图获取模块802获取清洁机器人的当前位置和当前所在清洁区域的地图,该地图记载多个子清洁区域和子清洁区域的出入口节点;路径确定模块803确定清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,候选子清洁区域与清洁机器人当前所在子清洁区域相邻;再通过发送模块804将最短路径发送给清洁机器人,使得清洁机器人能按照最短路径驶向目标子清洁区域进行作业。这样,本申请可以动态规划清洁机器人的路径,提高了清洁机器人的路径规划的灵活性,从而提高了清洁机器人的作业效率。Through the above technical solution, a server is introduced to communicate with at least one cleaning robot, the message receiving module 801 receives an alarm message sent by the cleaning robot, the alarm message indicates that the cleaning robot encounters a cleaning obstacle, and the map obtaining module 802 obtains the current position of the cleaning robot and the map of the current cleaning area, which records multiple sub-cleaning areas and the entrance and exit nodes of the sub-cleaning area; the path determination module 803 determines that the cleaning robot reaches the entrance and exit of the candidate sub-cleaning area from the current position via the entrance and exit nodes of the current sub-cleaning area The shortest path among the multiple paths of the node, the candidate sub-cleaning area is adjacent to the sub-cleaning area where the cleaning robot is currently located; then the shortest path is sent to the cleaning robot through the sending module 804, so that the cleaning robot can drive to the target sub-cleaning according to the shortest path area for work. In this way, the present application can dynamically plan the path of the cleaning robot, which improves the flexibility of the path planning of the cleaning robot, thereby improving the operation efficiency of the cleaning robot.

本申请实施例还提供一种服务器,该服务器与至少一清洁机器人通信,服务器包括处理器,被配置成执行上述的清洁机器人的路径规划方法。Embodiments of the present application further provide a server, which communicates with at least one cleaning robot, and the server includes a processor configured to execute the above-mentioned path planning method for the cleaning robot.

本申请实施例还提供一种清洁机器人,该清洁机器人与服务器通信,清洁机器人包括处理器,被配置成执行上述的清洁机器人的路径规划方法。The embodiment of the present application further provides a cleaning robot, the cleaning robot communicates with the server, the cleaning robot includes a processor, and is configured to execute the above-mentioned path planning method for the cleaning robot.

本申请实施例还提供一种机器可读存储介质,该机器可读存储介质上存储有指令,该指令用于使得机器执行上述的清洁机器人的路径规划方法。Embodiments of the present application further provide a machine-readable storage medium, where instructions are stored on the machine-readable storage medium, and the instructions are used to cause a machine to execute the above-mentioned path planning method for a cleaning robot.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed, or which are inherent to such a process, method, article of manufacture, or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture or apparatus that includes the element.

以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.

Claims (10)

1.一种清洁机器人的路径规划方法,应用于服务器,其特征在于,所述服务器与至少一清洁机器人通信,所述路径规划方法包括:1. A path planning method for a cleaning robot, applied to a server, wherein the server communicates with at least one cleaning robot, and the path planning method comprises: 接收所述清洁机器人发送的报警消息,所述报警消息指示所述清洁机器人遇到清洁障碍;receiving an alarm message sent by the cleaning robot, the alarm message indicating that the cleaning robot encounters a cleaning obstacle; 获取所述清洁机器人的当前位置和当前所在清洁区域的地图,所述地图记载多个子清洁区域和所述多个子清洁区域的出入口节点;obtaining the current location of the cleaning robot and a map of the current cleaning area, where the map records multiple sub-cleaning areas and entry and exit nodes of the multiple sub-cleaning areas; 确定所述清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域出入口节点的多个路径中的最短路径,所述候选子清洁区域是与所述清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域;Determine the shortest path among multiple paths of the cleaning robot from the current position, through the entrance and exit nodes of the current sub-cleaning area, to the entry and exit nodes of the candidate sub-cleaning area, and the candidate sub-cleaning area is the same as the sub-cleaning area where the cleaning robot is currently located. The sub-cleaning area to be cleaned adjacent to the cleaning area; 将所述最短路径发送给所述清洁机器人,使得所述清洁机器人能按照所述最短路径驶向目标子清洁区域进行作业。The shortest path is sent to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area to perform operations according to the shortest path. 2.根据权利要求1所述的方法,其特征在于,所述多个子清洁区域之间具有预设的清洁顺序。2 . The method according to claim 1 , wherein a preset cleaning sequence exists between the plurality of sub-cleaning areas. 3 . 3.根据权利要求1所述的方法,其特征在于,所述路径规划方法还包括:3. The method according to claim 1, wherein the path planning method further comprises: 获取所述清洁机器人当前所在子清洁区域的相邻子清洁区域;Obtain the adjacent sub-cleaning area of the sub-cleaning area where the cleaning robot is currently located; 根据所有清洁机器人在预设时间进入所述相邻子清洁区域出入口节点的次数,确定所述相邻子清洁区域是否为候选子清洁区域。Whether the adjacent sub-cleaning area is a candidate sub-cleaning area is determined according to the number of times that all cleaning robots enter the entrance and exit nodes of the adjacent sub-cleaning area at a preset time. 4.根据权利要求1所述的方法,其特征在于,所述路径规划方法还包括:4. The method according to claim 1, wherein the path planning method further comprises: 确定所述清洁机器人当前所在子清洁区域的相邻子清洁区域是否具有禁止进入标识;Determine whether the adjacent sub-cleaning area of the sub-cleaning area where the cleaning robot is currently located has an entry prohibition sign; 在所述相邻子清洁区域具有禁止进入标识的情况下,确定所述相邻子清洁区域不是候选子清洁区域。In the case that the adjacent sub-cleaning area has an entry prohibition sign, it is determined that the adjacent sub-cleaning area is not a candidate sub-cleaning area. 5.一种清洁机器人的路径规划方法,应用于清洁机器人,其特征在于,所述清洁机器人与服务器通信,所述路径规划方法包括:5. A path planning method for a cleaning robot, applied to the cleaning robot, wherein the cleaning robot communicates with a server, and the path planning method comprises: 发送报警消息至所述服务器,所述报警消息指示所述清洁机器人遇到清洁障碍;sending an alarm message to the server, the alarm message indicating that the cleaning robot encounters a cleaning obstacle; 接收所述服务器发送的最短路径,所述最短路径为所述清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域出入口节点的多个路径中的最短路径,所述候选子清洁区域是与所述清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域,所述服务器上具有所述清洁机器人当前所在清洁区域的地图,所述地图记载多个子清洁区域和所述多个子清洁区域的出入口节点;Receive the shortest path sent by the server, the shortest path is the shortest path among multiple paths of the cleaning robot from the current position, through the entrance and exit nodes of the current sub-cleaning area, to the entrance and exit nodes of the candidate sub-cleaning area, the The candidate sub-cleaning area is the sub-cleaning area to be cleaned adjacent to the sub-cleaning area where the cleaning robot is currently located, and the server has a map of the cleaning area where the cleaning robot is currently located, and the map records multiple sub-cleaning areas and all the entrance and exit nodes of the plurality of sub-cleaning areas; 根据所述最短路径驶向目标子清洁区域进行作业。Drive to the target sub-cleaning area according to the shortest path to perform work. 6.根据权利要求5所述的路径规划方法,其特征在于,所述路径规划方法还包括:6. The path planning method according to claim 5, wherein the path planning method further comprises: 获取所述服务器发送的多个子清洁区域的出入口节点的位置信息;Obtain the location information of the entrance and exit nodes of the multiple sub-cleaning areas sent by the server; 在当前位置与任意子清洁区域的出入口节点的位置信息匹配的情况下,发送打卡信号至所述服务器。In the case that the current position matches the position information of the entrance and exit nodes of any sub-cleaning area, a punch-in signal is sent to the server. 7.一种清洁机器人的路径规划装置,其特征在于,包括:7. A path planning device for a cleaning robot, comprising: 消息接收模块,被配置成接收清洁机器人发送的报警消息,所述报警消息指示所述清洁机器人遇到清洁障碍;a message receiving module configured to receive an alarm message sent by the cleaning robot, the alarm message indicating that the cleaning robot encounters a cleaning obstacle; 地图获取模块,被配置成获取所述清洁机器人的当前位置和当前所在清洁区域的地图,所述地图记载多个子清洁区域和所述子清洁区域的出入口节点;a map acquisition module, configured to acquire the current position of the cleaning robot and a map of the current cleaning area, where the map records multiple sub-cleaning areas and entrance and exit nodes of the sub-cleaning areas; 路径确定模块,被配置成确定所述清洁机器人自当前位置,经由当前所在子清洁区域的出入口节点,到达候选子清洁区域的出入口节点的多个路径中的最短路径,所述候选子清洁区域是与所述清洁机器人当前所在子清洁区域相邻的待清洁子清洁区域;The path determination module is configured to determine the shortest path among the multiple paths of the cleaning robot from the current position, via the entrance and exit nodes of the current sub-cleaning area, to the entrance and exit nodes of the candidate sub-cleaning area, and the candidate sub-cleaning area is The sub-cleaning area to be cleaned adjacent to the sub-cleaning area where the cleaning robot is currently located; 发送模块,被配置成将所述最短路径发送给所述清洁机器人,使得所述清洁机器人能按照所述最短路径驶向目标子清洁区域进行作业。The sending module is configured to send the shortest path to the cleaning robot, so that the cleaning robot can drive to the target sub-cleaning area to perform operations according to the shortest path. 8.一种服务器,其特征在于,所述服务器与至少一清洁机器人通信,所述服务器包括处理器,被配置成执行根据权利要求1至4中任一项所述的清洁机器人的路径规划方法。8. A server, characterized in that the server communicates with at least one cleaning robot, the server comprising a processor configured to execute the path planning method for a cleaning robot according to any one of claims 1 to 4 . 9.一种清洁机器人,其特征在于,所述清洁机器人与服务器通信,所述清洁机器人包括处理器,被配置成执行根据权利要求5或6所述的清洁机器人的路径规划方法。9 . A cleaning robot, characterized in that the cleaning robot communicates with a server, the cleaning robot comprises a processor configured to execute the path planning method for the cleaning robot according to claim 5 or 6 . 10.一种机器可读存储介质,其特征在于,该机器可读存储介质上存储有指令,该指令用于使得机器执行根据权利要求1至6中任一项所述的清洁机器人的路径规划方法。10. A machine-readable storage medium, wherein an instruction is stored on the machine-readable storage medium, and the instruction is used to cause a machine to execute the path planning of the cleaning robot according to any one of claims 1 to 6 method.
CN202210772458.3A 2022-06-30 2022-06-30 Path planning method and device for cleaning robot, server and cleaning robot Active CN115167415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210772458.3A CN115167415B (en) 2022-06-30 2022-06-30 Path planning method and device for cleaning robot, server and cleaning robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210772458.3A CN115167415B (en) 2022-06-30 2022-06-30 Path planning method and device for cleaning robot, server and cleaning robot

Publications (2)

Publication Number Publication Date
CN115167415A true CN115167415A (en) 2022-10-11
CN115167415B CN115167415B (en) 2025-04-25

Family

ID=83490066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210772458.3A Active CN115167415B (en) 2022-06-30 2022-06-30 Path planning method and device for cleaning robot, server and cleaning robot

Country Status (1)

Country Link
CN (1) CN115167415B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115963796A (en) * 2023-01-13 2023-04-14 青岛星华智能装备有限公司 Multi-AGV distributed architecture scheduling method
CN116274170A (en) * 2023-03-27 2023-06-23 中建三局第一建设工程有限责任公司 Control method, system and related device of laser cleaning equipment
CN117553804A (en) * 2024-01-11 2024-02-13 深圳市普渡科技有限公司 Path planning method, device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110018076A (en) * 2009-08-17 2011-02-23 고려대학교 산학협력단 Cleaning robot device and its control method
CN103099586A (en) * 2013-03-06 2013-05-15 简毅 Cleaning method using cleaning robot by means of edgewise navigating and intro-expanding
CN108507578A (en) * 2018-04-03 2018-09-07 珠海市微半导体有限公司 A kind of construction method and its air navigation aid of overall situation border map
CN109965781A (en) * 2017-12-28 2019-07-05 周秦娜 A kind of control method that sweeping robot cooperates, apparatus and system
KR20190119234A (en) * 2018-04-05 2019-10-22 엘지전자 주식회사 Moving Robot and controlling method
CN110456789A (en) * 2019-07-23 2019-11-15 中国矿业大学 A full-coverage path planning method for cleaning robots
CN114343490A (en) * 2021-12-28 2022-04-15 深圳市银星智能科技股份有限公司 Robot cleaning method, robot, and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110018076A (en) * 2009-08-17 2011-02-23 고려대학교 산학협력단 Cleaning robot device and its control method
CN103099586A (en) * 2013-03-06 2013-05-15 简毅 Cleaning method using cleaning robot by means of edgewise navigating and intro-expanding
CN109965781A (en) * 2017-12-28 2019-07-05 周秦娜 A kind of control method that sweeping robot cooperates, apparatus and system
CN108507578A (en) * 2018-04-03 2018-09-07 珠海市微半导体有限公司 A kind of construction method and its air navigation aid of overall situation border map
KR20190119234A (en) * 2018-04-05 2019-10-22 엘지전자 주식회사 Moving Robot and controlling method
CN110456789A (en) * 2019-07-23 2019-11-15 中国矿业大学 A full-coverage path planning method for cleaning robots
CN114343490A (en) * 2021-12-28 2022-04-15 深圳市银星智能科技股份有限公司 Robot cleaning method, robot, and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115963796A (en) * 2023-01-13 2023-04-14 青岛星华智能装备有限公司 Multi-AGV distributed architecture scheduling method
CN116274170A (en) * 2023-03-27 2023-06-23 中建三局第一建设工程有限责任公司 Control method, system and related device of laser cleaning equipment
CN116274170B (en) * 2023-03-27 2023-10-13 中建三局第一建设工程有限责任公司 Control method, system and related device of laser cleaning equipment
CN117553804A (en) * 2024-01-11 2024-02-13 深圳市普渡科技有限公司 Path planning method, device, computer equipment and storage medium
CN117553804B (en) * 2024-01-11 2024-04-09 深圳市普渡科技有限公司 Path planning method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN115167415B (en) 2025-04-25

Similar Documents

Publication Publication Date Title
CN115167415A (en) Cleaning robot path planning method and device, server and cleaning robot
CN111397598B (en) Mobile robot path planning and sampling method and system in man-machine co-fusion environment
CN109991977B (en) Robot path planning method and device
KR102917026B1 (en) Method and device for controlling an unmanned guided vehicle
US20200125116A1 (en) Movement control method and system thereof for multiple robots
Trigui et al. A distributed market-based algorithm for the multi-robot assignment problem
CN113960995B (en) Obstacle avoidance planning method, system and device
CN108287547B (en) Conflict management method and system for multiple mobile robots
CN107992060A (en) The paths planning method and system of multiple mobile robot
JP2019125341A (en) Systems and methods for scalable multi-vehicle task
CN108268039A (en) The paths planning method and system of mobile robot
US20230116484A1 (en) Path Planning Apparatus of Robot and Method Thereof
Nanjanath et al. Dynamic task allocation for robots via auctions
CN109048909B (en) Branch route scheduling method, device, background server and first robot
CN114527751B (en) Robot path planning method and device and electronic equipment
CN115437382A (en) A multi-AGV path planning method, system and equipment medium for unmanned warehouse
Wang et al. Coordination-free multi-robot path planning for congestion reduction using topological reasoning
CN110238841B (en) Obstacle avoiding method and device
CN109002044B (en) Robot queuing method, device, background server and storage medium
CN118500375A (en) A mobile robot autonomous exploration and mapping method for indoor unknown environments
Ramasubramanian et al. On the enhancement of firefighting robots using path-planning algorithms
CN116594407A (en) A Path Planning Method for Obstacle Avoidance Based on Particle Swarm and Improved Dynamic Window Method
CN116300843A (en) Determination method, device, intelligent device and storage medium of obstacle avoidance target point
CN118565503A (en) Path optimization method, device and readable storage medium
CN114924575B (en) Mobile robot path planning method and device, electronic equipment 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
GR01 Patent grant
GR01 Patent grant