[go: up one dir, main page]

CN117742337A - Inspection route control method and device - Google Patents

Inspection route control method and device Download PDF

Info

Publication number
CN117742337A
CN117742337A CN202311795004.9A CN202311795004A CN117742337A CN 117742337 A CN117742337 A CN 117742337A CN 202311795004 A CN202311795004 A CN 202311795004A CN 117742337 A CN117742337 A CN 117742337A
Authority
CN
China
Prior art keywords
inspection
route
inspection device
path
charging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311795004.9A
Other languages
Chinese (zh)
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.)
Wuhan Institute of Technology
Wuhan Fiberhome Technical Services Co Ltd
Original Assignee
Wuhan Institute of Technology
Wuhan Fiberhome Technical Services 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 Wuhan Institute of Technology, Wuhan Fiberhome Technical Services Co Ltd filed Critical Wuhan Institute of Technology
Priority to CN202311795004.9A priority Critical patent/CN117742337A/en
Publication of CN117742337A publication Critical patent/CN117742337A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The invention relates to the technical field of computers, and provides a method and a device for controlling a routing inspection route. The method comprises the following steps: acquiring distance information of an environment by using a laser radar sensor, and constructing an environment map according to the distance information; acquiring image data of an environment by using a camera, and identifying obstacles in the environment from the image data; and designating a corresponding starting point and a corresponding terminal point in the environment map, and planning to obtain a routing inspection route by using a path planning algorithm based on the environment map, the obstacle, the starting point and the terminal point so that the routing inspection device can inspect according to the routing inspection route. The invention uses the path planning algorithm to plan the inspection route, is more flexible than the prior art that uses the fixed inspection route, and can quickly adapt to the real-time environment change, thereby having higher efficiency.

Description

一种巡检路线控制方法和装置Inspection route control method and device

技术领域Technical field

本发明涉及计算机技术领域,特别是涉及一种巡检路线控制方法和装置。The invention relates to the field of computer technology, and in particular to an inspection route control method and device.

背景技术Background technique

巡检系统在许多领域中被广泛使用,如工业生产、建筑安全、环境监测等。然而,现有的巡检系统存在一些问题,具体如下:Inspection systems are widely used in many fields, such as industrial production, building safety, environmental monitoring, etc. However, there are some problems with the existing inspection system, as follows:

现有的巡检系统中,机器人通常沿着固定的巡检路线进行操作。这种固定路线无法适应实时环境变化,导致巡检效率低下和资源浪费。In existing inspection systems, robots usually operate along fixed inspection routes. This fixed route cannot adapt to real-time environmental changes, resulting in low inspection efficiency and waste of resources.

现有的充电策略通常基于固定时间间隔或简单的能量水平规则来进行充电。这种简单的策略无法根据机器人的巡检任务和能量需求进行灵活调整,导致能量管理不精确和巡检中断的风险。Existing charging strategies are usually based on fixed time intervals or simple energy level rules. This simple strategy cannot be flexibly adjusted according to the robot's inspection tasks and energy requirements, resulting in inaccurate energy management and the risk of inspection interruption.

多机器人协同工作在提高巡检效率方面也存在挑战。目前的巡检系统缺乏有效的任务分配和协同机制,无法充分利用多个机器人的优势,导致巡检过程中的冗余操作和时间浪费。总体而言,现有技术中的巡检路线控制方法存在效率低下、能量管理不精准的问题。There are also challenges in improving inspection efficiency when multiple robots work together. The current inspection system lacks effective task allocation and collaboration mechanisms and cannot fully utilize the advantages of multiple robots, resulting in redundant operations and waste of time during the inspection process. Generally speaking, the inspection route control methods in the existing technology have problems of low efficiency and inaccurate energy management.

鉴于此,克服该现有技术所存在的缺陷是本技术领域亟待解决的问题。In view of this, overcoming the shortcomings of the prior art is an urgent problem to be solved in this technical field.

发明内容Contents of the invention

本发明要解决的技术问题是现有技术中通常沿着固定的巡检路线进行操作,这种固定路线无法适应实时环境变化,导致巡检路线控制方法效率低下。The technical problem to be solved by this invention is that in the prior art, operations are usually performed along a fixed inspection route. This fixed route cannot adapt to real-time environmental changes, resulting in low efficiency of the inspection route control method.

本发明采用如下技术方案:The present invention adopts the following technical solutions:

第一方面,本发明提供了一种巡检路线控制方法,包括:In a first aspect, the present invention provides an inspection route control method, including:

使用激光雷达传感器获取环境的距离信息,根据所述距离信息构建环境地图;使用摄像头采集环境的图像数据,从所述图像数据中识别到环境中的障碍物;Use a lidar sensor to obtain distance information of the environment, and construct an environmental map based on the distance information; use a camera to collect image data of the environment, and identify obstacles in the environment from the image data;

在所述环境地图中指定相应的起点和终点,基于所述环境地图、障碍物、起点和终点,使用路径规划算法规划得到巡检路线,以便于巡检装置按照所述巡检路线进行巡检。Specify the corresponding starting point and end point in the environment map, and use the path planning algorithm to plan the inspection route based on the environment map, obstacles, starting point and end point, so that the inspection device can perform inspection according to the inspection route. .

优选的,当为单个巡检装置进行巡检路线规划时,所述基于所述环境地图、障碍物、起点和终点,使用路径规划算法规划得到巡检路线,具体包括:Preferably, when planning the inspection route for a single inspection device, the inspection route is planned using a path planning algorithm based on the environmental map, obstacles, starting point and end point, specifically including:

以从起点到达终点所需的时间不超出预设最大时间为第一约束函数,以从起点到达终点所消耗的能量不超出预设最大能量为第二约束函数,以从起点到达终点的路径不经由障碍物为第三约束函数;The first constraint function is that the time required to reach the end point from the starting point does not exceed the preset maximum time, the second constraint function is that the energy consumed from the start point to the end point does not exceed the preset maximum energy, and the path from the starting point to the end point is not Passing through obstacles is the third constraint function;

以从起点到达终点的路径最短、从起点到达终点的时间最短、从起点到达终点所需调整方向的次数最少中的一种或多种作为规划目标,生成相应的目标函数;Taking one or more of the shortest path from the starting point to the end point, the shortest time from the starting point to the end point, and the minimum number of direction adjustments required from the starting point to the end point as the planning goal, generate the corresponding objective function;

结合目标函数、第一约束函数、第二约束函数和第三约束函数,建立路径规划模型;Combine the objective function, the first constraint function, the second constraint function and the third constraint function to establish a path planning model;

求解所述路径规划模型,得到所述巡检路线。Solve the path planning model to obtain the inspection route.

优选的,当为多个巡检装置进行巡检路线规划时,指定一个或多个终点;所述基于所述环境地图、障碍物、起点和终点,使用路径规划算法规划得到巡检路线,具体包括:Preferably, when planning inspection routes for multiple inspection devices, one or more end points are specified; based on the environmental map, obstacles, starting points and end points, the inspection route is planned using a path planning algorithm, specifically include:

以各巡检装置从相应起点到达相应终点所需的时间不超出预设最大时间为第一约束函数,以各巡检装置从相应起点到达相应终点所消耗的能量不超出预设最大能量为第二约束函数,以各巡检装置从相应起点到达相应终点的路径不经由障碍物为第三约束函数,以每个终点均有相应巡检装置能够到达为第四约束函数;The time required for each inspection device to reach the corresponding end point from the corresponding starting point does not exceed the preset maximum time as the first constraint function, and the energy consumed by each inspection device from the corresponding starting point to the corresponding end point does not exceed the preset maximum energy as the third constraint function. The second constraint function is that the path of each inspection device from the corresponding starting point to the corresponding end point does not pass through obstacles as the third constraint function, and the fourth constraint function is that each end point can be reached by the corresponding inspection device;

以所有巡检装置从相应起点到达相应终点的总路径最短、所有巡检装置从相应起点到达相应终点的总时间最短、所有巡检装置从相应起点到达相应终点所需调整方向的总次数最少中的一种或多种作为规划目标,生成相应的目标函数;The total path of all inspection devices from the corresponding starting point to the corresponding end point is the shortest, the total time of all inspection devices from the corresponding starting point to the corresponding end point is the shortest, and the total number of direction adjustments required by all inspection devices from the corresponding starting point to the corresponding end point is the least. One or more of them are used as planning objectives to generate corresponding objective functions;

结合目标函数、第一约束函数、第二约束函数、第三约束函数和第四约束函数,建立路径规划模型;Combine the objective function, the first constraint function, the second constraint function, the third constraint function and the fourth constraint function to establish a path planning model;

求解所述路径规划模型,得到各巡检装置的巡检路线。Solve the path planning model to obtain the inspection routes of each inspection device.

优选的,每间隔预设时间进行一次巡检路线规划;其中,以上一次巡检路线规划的终点作为下一次巡检路线规划的起点,以下一预设巡检位置为下一次巡检路线规划的终点。Preferably, an inspection route planning is performed every preset time interval; wherein, the end point of the previous inspection route planning is used as the starting point of the next inspection route planning, and the next preset inspection location is the starting point of the next inspection route planning. end.

优选的,所述方法还包括:Preferably, the method further includes:

根据为已为各巡检装置规划过的巡检路线,计算巡检装置的在第一巡检路线规划前的剩余能量情况,根据所述剩余能量情况,确定巡检装置的充电紧急程度;Calculate the remaining energy of the inspection device before the first inspection route is planned based on the inspection route that has been planned for each inspection device, and determine the charging urgency of the inspection device based on the remaining energy condition;

基于第一巡检路线规划为巡检装置规划的第一巡检路线,获取第一巡检路线所对应的巡检任务的任务紧急程度;将任务紧急程度与充电紧急程度相比较,根据比较结果,选择性地将所述巡检装置按照所述第一巡检路线进行巡检,或为所述巡检装置实施充电。Based on the first inspection route planned for the inspection device, the task urgency of the inspection task corresponding to the first inspection route is obtained; the task urgency is compared with the charging urgency, and according to the comparison result , selectively inspect the inspection device according to the first inspection route, or charge the inspection device.

优选的,所述将任务紧急程度与充电紧急程度相比较,根据比较结果,选择性地将所述巡检装置按照所述第一巡检路线进行巡检,或为所述巡检装置实施充电,具体包括:Preferably, the task urgency is compared with the charging urgency, and based on the comparison result, the inspection device is selectively inspected according to the first inspection route, or the inspection device is charged. , specifically including:

若所述巡检装置的充电紧急程度高于对应巡检任务的任务紧急程度,则为所述巡检装置实施充电;其中,巡检任务的任务紧急程度的范围在第一区间内,巡检装置的充电紧急程度的范围在第二区间内,所述第二区间的最小值小于第一区间的最小值,且第二区间的最大值大于第一区间的最大值;If the charging urgency of the patrol inspection device is higher than the task urgency of the corresponding patrol inspection task, the patrol inspection device is charged; wherein the range of the task urgency of the patrol inspection task is within the first interval, and the patrol inspection The range of the charging urgency of the device is within a second interval, the minimum value of the second interval is less than the minimum value of the first interval, and the maximum value of the second interval is greater than the maximum value of the first interval;

否则,将所述巡检装置按照所述第一巡检路线进行巡检。Otherwise, the inspection device is used to perform inspection according to the first inspection route.

优选的,若为所述巡检装置实施充电,则将所述巡检装置排除在巡检路线规划外,重新为其他巡检装置进行巡检路线规划。Preferably, if the patrol inspection device is charged, the patrol inspection device is excluded from the patrol inspection route planning, and the patrol inspection route planning is performed again for other patrol inspection devices.

优选的,所述为所述巡检装置实施充电,具体包括:Preferably, charging the inspection device specifically includes:

以目标充电设备与所述巡检装置之间的距离最小、目标充电设备为所述巡检装置充电最快、使用各目标充电设备进行充电的巡检装置的数量之间的均衡度最高为规划目标,生成相应的目标函数;The planning is based on the minimum distance between the target charging equipment and the inspection device, the fastest charging of the inspection device by the target charging equipment, and the highest balance between the number of inspection devices using each target charging equipment for charging. Goal, generate the corresponding objective function;

使用所述目标函数建立充电决策模型,求解所述充电决策模型,得到为所述巡检装置进行充电的目标充电设备,以所述目标充电设备为终点,为所述巡检装置进行路线规划,使所述巡检装置到达所述目标充电设备位置进行充电。Use the objective function to establish a charging decision model, solve the charging decision model, and obtain the target charging equipment for charging the inspection device. With the target charging equipment as the end point, perform route planning for the inspection device, Make the inspection device arrive at the target charging equipment location for charging.

优选的,各巡检装置通过无线与中央控制平台进行通信,中央控制平台还通过无线与控制终端进行通信,所述控制终端具有定位功能,在所述控制终端中显示环境地图,并在环境地图中显示巡检装置的实际行进路径,所述方法还包括:Preferably, each inspection device communicates with the central control platform via wireless, and the central control platform also communicates with the control terminal via wireless. The control terminal has a positioning function, and the environment map is displayed in the control terminal, and the environment map is displayed on the control terminal. The actual traveling path of the inspection device is displayed in , and the method further includes:

在巡检装置行进过程中,采集巡检装置所途径位置的周边环境点云数据,根据周边环境点云数据判断各途径位置属于室内区域或室外区域,并对周边环境点云数据进行分析得到室内室外的分界线,根据室内室外的分界线建立建筑物地图;During the movement of the inspection device, the surrounding environment point cloud data of the location passed by the inspection device is collected. Based on the surrounding environment point cloud data, it is judged that each path location belongs to the indoor area or outdoor area, and the surrounding environment point cloud data is analyzed to obtain the indoor The outdoor dividing line is used to establish a building map based on the indoor and outdoor dividing line;

将规划所得的巡检装置的巡检路线与建筑物地图相匹配,得到巡检装置所需巡检的各建筑物;Match the planned inspection route of the inspection device with the building map to obtain each building that the inspection device needs to inspect;

若巡检装置在行进过程中检测到前方存在障碍物,则调整巡检装置的运动轨迹,以绕过障碍物;若经识别得到所述障碍物为固定物,则记录巡检装置从开始绕过障碍物直至回到规划的巡检路线所经由的绕障路径,基于所述绕障路径的起始位置和终点位置,与规划所得的巡检路线匹配得到原始规划路径,判断所述原始规划路径是否属于相应建筑物的室内区域;If the patrol inspection device detects an obstacle ahead during travel, the motion trajectory of the patrol inspection device is adjusted to bypass the obstacle; if the obstacle is identified as a fixed object, the patrol inspection device records the time from the start of the bypass. The obstacle bypassing path that is passed through the obstacle until returning to the planned inspection route is based on the starting position and end position of the obstacle bypassing path, and is matched with the planned inspection route to obtain the original planned path, and the original planning is judged Whether the path belongs to the indoor area of the corresponding building;

若所述原始规划路径属于相应第一建筑物的室内区域,则在所述控制终端的环境地图对应第一建筑物所在位置显示盲区标识,以便于控制人员通过所述环境地图识别所述盲区,并携带所述控制终端对所述第一建筑物进行人工巡检;If the original planned path belongs to the indoor area of the corresponding first building, a blind spot mark is displayed on the environmental map of the control terminal corresponding to the location of the first building, so that the controller can identify the blind spot through the environmental map, and carry the control terminal to perform manual inspection of the first building;

当控制人员点击所述盲区标识,并选择进行盲区巡检时,按照控制终端的实时定位信息,对所述控制人员进行导航;其中,显示在所述环境地图中的导航路线的终点为所述绕障路径的起始位置;When the controller clicks on the blind spot mark and chooses to perform blind spot inspection, the controller is navigated according to the real-time positioning information of the control terminal; wherein, the end point of the navigation route displayed in the environmental map is the The starting position of the obstacle avoidance path;

在根据所述控制终端的实时定位信息识别到所述控制人员到达所述绕障路径的起始位置后,记录控制人员的行动轨迹,并在识别得到控制人员到达所述绕障路径的终点位置时,将控制人员的行动轨迹与所述第一建筑物进行匹配,判断所述行动轨迹是否进入到所述第一建筑物的室内区域;After identifying that the controller reaches the starting position of the obstacle bypassing path based on the real-time positioning information of the control terminal, the controller's action trajectory is recorded, and after identifying that the controller reaches the end position of the obstacle bypassing path, When the action trajectory of the controller is matched with the first building, it is determined whether the action trajectory has entered the indoor area of the first building;

若判断得到所述行动轨迹进入到所述第一建筑物的室内区域,则在环境地图中显示所述行动轨迹,并在所述行动轨迹周边显示提示窗,在所述提示窗中询问控制人员所述行动轨迹是否能够被巡检装置所使用,并提供确认按钮和取消按钮供控制人员选择;If it is determined that the action trajectory has entered the indoor area of the first building, the action trajectory will be displayed in the environment map, and a prompt window will be displayed around the action trajectory, and the controller will be asked in the prompt window Whether the action trajectory can be used by the inspection device, and provide a confirmation button and a cancel button for the controller to choose;

若控制人员选中确认按钮,则在下一次对巡检装置进行路径规划,并得到所需巡检的建筑物包括所述第一建筑物时,使用所述行动轨迹替换掉所述进行路线中经过所述第一建筑物的部分路径,以便于实现巡检装置对所述第一建筑物的后续巡检。If the controller selects the confirmation button, the next time the inspection device is routed and the buildings required to be inspected are obtained, including the first building, the action trajectory will be used to replace all the objects passing through in the route. A partial path of the first building is provided to facilitate subsequent inspection of the first building by the inspection device.

第二方面,本发明提供了一种巡检路线控制装置,包括环境建模模块和路径规划模块;In a second aspect, the present invention provides an inspection route control device, including an environment modeling module and a path planning module;

所述环境建模模块用于使用激光雷达传感器获取环境的距离信息,根据所述距离信息构建环境地图;使用摄像头采集环境的图像数据,从所述图像数据中识别到环境中的障碍物;The environment modeling module is used to use a lidar sensor to obtain distance information of the environment, and construct an environment map based on the distance information; use a camera to collect image data of the environment, and identify obstacles in the environment from the image data;

所述路径规划模块用于在所述环境地图中指定相应的起点和终点,基于所述环境地图、障碍物、起点和终点,使用路径规划算法规划得到巡检路线,以便于巡检装置按照所述巡检路线进行巡检。The path planning module is used to specify the corresponding starting point and end point in the environment map. Based on the environment map, obstacles, starting point and end point, use the path planning algorithm to plan the inspection route, so that the inspection device can follow the specified path. Conduct inspections along the inspection routes described above.

第三方面,本发明还提供了一种巡检路线控制装置,用于实现第一方面所述的巡检路线控制方法,所述装置包括:In a third aspect, the present invention also provides an inspection route control device for implementing the inspection route control method described in the first aspect. The device includes:

至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述处理器执行,用于执行第一方面所述的巡检路线控制方法。At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the processor to execute the inspection route control method described in the first aspect.

第四方面,本发明还提供了一种非易失性计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,用于完成第一方面所述的巡检路线控制方法。In a fourth aspect, the present invention also provides a non-volatile computer storage medium that stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors to complete the first step. The inspection route control method described in the aspect.

本发明通过使用路径规划算法规划巡检路线,相对现有技术中使用固定的巡检路线而言更加灵活,能够快速适应实时环境变化,从而具有更高的效率。By using a path planning algorithm to plan the inspection route, the present invention is more flexible than the fixed inspection route used in the prior art, and can quickly adapt to real-time environmental changes, thereby having higher efficiency.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍。显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present invention more clearly, the drawings required to be used in the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.

图1是本发明实施例提供的第一种巡检路线控制方法的流程示意图;Figure 1 is a schematic flow chart of the first inspection route control method provided by an embodiment of the present invention;

图2是本发明实施例提供的第二种巡检路线控制方法的流程示意图;Figure 2 is a schematic flow chart of the second inspection route control method provided by an embodiment of the present invention;

图3是本发明实施例提供的第三种巡检路线控制方法的流程示意图;Figure 3 is a schematic flow chart of a third inspection route control method provided by an embodiment of the present invention;

图4是本发明实施例提供的第四种巡检路线控制方法的流程示意图;Figure 4 is a schematic flowchart of the fourth inspection route control method provided by an embodiment of the present invention;

图5是本发明实施例提供的第五种巡检路线控制方法的流程示意图;Figure 5 is a schematic flowchart of the fifth inspection route control method provided by an embodiment of the present invention;

图6是本发明实施例提供的一种巡检路线控制方法中控制终端、巡检装置和中央控制平台之间的架构示意图;Figure 6 is a schematic diagram of the architecture between the control terminal, the inspection device and the central control platform in an inspection route control method provided by an embodiment of the present invention;

图7是本发明实施例提供的第六种巡检路线控制方法的流程示意图;Figure 7 is a schematic flowchart of the sixth inspection route control method provided by an embodiment of the present invention;

图8是本发明实施例提供的第一种巡检路线控制方法的示意图;Figure 8 is a schematic diagram of the first inspection route control method provided by an embodiment of the present invention;

图9是本发明实施例提供的第二种巡检路线控制方法的示意图;Figure 9 is a schematic diagram of the second inspection route control method provided by the embodiment of the present invention;

图10是本发明实施例提供的第三种巡检路线控制方法的示意图;Figure 10 is a schematic diagram of the third inspection route control method provided by the embodiment of the present invention;

图11是本发明实施例提供的第四种巡检路线控制方法的示意图;Figure 11 is a schematic diagram of the fourth inspection route control method provided by an embodiment of the present invention;

图12是本发明实施例提供的第五种巡检路线控制方法的示意图;Figure 12 is a schematic diagram of the fifth inspection route control method provided by the embodiment of the present invention;

图13是本发明实施例提供的一种巡检路线控制装置的模块示意图;Figure 13 is a module schematic diagram of an inspection route control device provided by an embodiment of the present invention;

图14是本发明实施例提供的另一种巡检路线控制装置的模块示意图;Figure 14 is a module schematic diagram of another inspection route control device provided by an embodiment of the present invention;

图15是本发明实施例提供的第七种巡检路线控制方法的流程示意图;Figure 15 is a schematic flowchart of the seventh inspection route control method provided by the embodiment of the present invention;

图16是本发明实施例提供的一种巡检路线控制装置的架构示意图。Figure 16 is a schematic structural diagram of an inspection route control device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention and are not intended to limit the present invention.

本发明中术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”等的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。The terms "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, features defined by "first," "second," etc. may explicitly or implicitly include one or more of such features. In the description of this application, unless otherwise stated, "plurality" means two or more.

此外,下面所描述的本发明各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

实施例1:Example 1:

现有技术中通常沿着固定的巡检路线进行操作,导致巡检路线控制方法效率低下,为了解决此问题,本发明实施例1提供了一种巡检路线控制方法,如图1所示,包括:In the prior art, operations are usually performed along fixed inspection routes, resulting in low efficiency of the inspection route control method. In order to solve this problem, Embodiment 1 of the present invention provides an inspection route control method, as shown in Figure 1. include:

在步骤201中,使用激光雷达传感器获取环境的距离信息,根据所述距离信息构建环境地图;使用摄像头采集环境的图像数据,从所述图像数据中识别到环境中的障碍物;在实际使用中,所述障碍物识别可以是通过使用深度学习和卷积神经网络识别得到。In step 201, a lidar sensor is used to obtain distance information of the environment, and an environmental map is constructed based on the distance information; a camera is used to collect image data of the environment, and obstacles in the environment are identified from the image data; in actual use , the obstacle recognition can be obtained by using deep learning and convolutional neural network recognition.

在步骤202中,在所述环境地图中指定相应的起点和终点,基于所述环境地图、障碍物、起点和终点,使用路径规划算法规划得到巡检路线,以便于巡检装置按照所述巡检路线进行巡检。In step 202, the corresponding starting point and end point are specified in the environment map. Based on the environment map, obstacles, starting point and end point, a path planning algorithm is used to plan the inspection route, so that the inspection device can follow the inspection route. Conduct inspections along inspection lines.

在实际使用中,所述起点通常是机器人的充电站或停靠点(即当前位置),所述终点是巡检区域的某个位置,由巡检任务得到,所述路径规划算法可以是迪杰斯特拉算法(简称为:Dijkstra算法)。In actual use, the starting point is usually the charging station or docking point of the robot (i.e., the current location), and the end point is a certain location in the inspection area, which is obtained from the inspection task. The path planning algorithm can be Dije Stella's algorithm (referred to as: Dijkstra's algorithm).

本实施例通过使用路径规划算法规划巡检路线,相对现有技术中使用固定的巡检路线而言更加灵活,能够快速适应实时环境变化,从而具有更高的效率。This embodiment uses a path planning algorithm to plan the inspection route, which is more flexible than the fixed inspection route used in the existing technology, and can quickly adapt to real-time environmental changes, thereby achieving higher efficiency.

本实施例所述的巡检路线控制方法主要用于巡检机器人,在实际使用中,还存在单个机器人进行巡检和多个机器人进行巡检这两种不同的应用场景,本实施例还针对两种不同的应用场景,提供了以下两种可选的实施方式,具体包括:The inspection route control method described in this embodiment is mainly used for inspection robots. In actual use, there are two different application scenarios: a single robot performing inspections and multiple robots performing inspections. This embodiment also targets Two different application scenarios provide the following two optional implementation methods, including:

在单个机器人进行巡检的场景下,即当为单个巡检装置进行巡检路线规划时,所述基于所述环境地图、障碍物、起点和终点,使用路径规划算法规划得到巡检路线,如图2所示,具体包括:In the scenario where a single robot performs inspection, that is, when planning an inspection route for a single inspection device, the inspection route is planned using a path planning algorithm based on the environment map, obstacles, starting point and end point, as shown in FIG2 , specifically including:

在步骤301中,以从起点到达终点所需的时间不超出预设最大时间为第一约束函数,以从起点到达终点所消耗的能量不超出预设最大能量为第二约束函数,以从起点到达终点的路径不经由障碍物为第三约束函数;其中,所述预设最大时间和所述预设最大能量由本领域技术人员根据经验分析得到。在实际使用中,所述预设最大能量可以是巡检机器人的当前电量。In step 301, the first constraint function is that the time required to reach the end point from the starting point does not exceed the preset maximum time, and the second constraint function is that the energy consumed from the starting point to the end point does not exceed the preset maximum energy. The path to the end point that does not pass through obstacles is the third constraint function; wherein the preset maximum time and the preset maximum energy are obtained by those skilled in the art based on empirical analysis. In actual use, the preset maximum energy may be the current power of the inspection robot.

在步骤302中,以从起点到达终点的路径最短、从起点到达终点的时间最短、从起点到达终点所需调整方向的次数最少中的一种或多种作为规划目标,生成相应的目标函数;其中,由于机器人运行中通常需调整行进方向以避让障碍物等,而在实际使用中,机器人调整进行方向通常需要先停止,再进行方向偏转,相对于机器人向前行进而言所需的时间更长,当所需调整方向的次数较多时,也会影响机器人的行进效率,故本实施例将从起点到达终点所需调整方向的次数也纳入考量,从而优化目标函数,使最终规划得到的巡检路线最优。当存在多个规划目标时,所述目标函数实际是多个代表相应规划目标的表达式之间的加权求和,其中,各权重的正负性和值的大小由本领域技术人员根据经验分析得到。In step 302, one or more of the shortest path from the starting point to the end point, the shortest time from the starting point to the end point, and the minimum number of direction adjustments required from the starting point to the end point is used as the planning goal, and a corresponding objective function is generated; Among them, since the robot usually needs to adjust its direction of travel to avoid obstacles, etc., in actual use, the robot usually needs to stop first and then deflect, which takes longer than the time required for the robot to move forward. When the number of required direction adjustments is large, it will also affect the robot's traveling efficiency. Therefore, this embodiment also takes the number of required direction adjustments from the starting point to the end point into consideration, thereby optimizing the objective function so that the final planned patrol is The inspection route is optimal. When there are multiple planning objectives, the objective function is actually a weighted summation between multiple expressions representing the corresponding planning objectives. The positivity and negativity of each weight and the size of the value are obtained by those skilled in the art based on empirical analysis. .

在步骤303中,结合目标函数、第一约束函数、第二约束函数和第三约束函数,建立路径规划模型。In step 303, a path planning model is established by combining the objective function, the first constraint function, the second constraint function and the third constraint function.

在步骤304中,求解所述路径规划模型,得到所述巡检路线。In step 304, the path planning model is solved to obtain the inspection route.

在多个机器人进行巡检的场景下,即当为多个巡检装置进行巡检路线规划时,指定一个或多个终点;所述基于所述环境地图、障碍物、起点和终点,使用路径规划算法规划得到巡检路线,如图3所示,具体包括:In a scenario where multiple robots perform inspections, that is, when planning inspection routes for multiple inspection devices, one or more end points are designated; the path is used based on the environment map, obstacles, starting points and end points. The planning algorithm plans the inspection route, as shown in Figure 3, which includes:

在步骤401中,以各巡检装置从相应起点到达相应终点所需的时间不超出预设最大时间为第一约束函数,以各巡检装置从相应起点到达相应终点所消耗的能量不超出预设最大能量为第二约束函数,以各巡检装置从相应起点到达相应终点的路径不经由障碍物为第三约束函数,以每个终点均有相应巡检装置能够到达为第四约束函数;其中,当指定多个终点时,并非代表每个机器人对应一个固定的终点,而是每个机器人可任意对应多个终点中的一个终点,最终仅需使每个终点均有相应机器人到达即可。对应每个巡检装置的预设最大能量可能不同,如以各巡检装置的当前电量作为所述预设最大能量。In step 401, the time required for each inspection device to reach the corresponding end point from the corresponding starting point does not exceed the preset maximum time as the first constraint function, and the energy consumed by each inspection device from the corresponding starting point to the corresponding end point does not exceed the preset maximum time. Let the maximum energy be the second constraint function, the path from the corresponding starting point to the corresponding end point of each inspection device without passing through obstacles is the third constraint function, and the fourth constraint function is that each end point can be reached by the corresponding inspection device; Among them, when multiple end points are specified, it does not mean that each robot corresponds to a fixed end point, but that each robot can arbitrarily correspond to one of the multiple end points. In the end, it only needs to be reached by a corresponding robot at each end point. . The preset maximum energy corresponding to each inspection device may be different. For example, the current power of each inspection device is used as the preset maximum energy.

在步骤402中,以所有巡检装置从相应起点到达相应终点的总路径最短、所有巡检装置从相应起点到达相应终点的总时间最短、所有巡检装置从相应起点到达相应终点所需调整方向的总次数最少中的一种或多种作为规划目标,生成相应的目标函数;其中,总路径长度是指多个机器人分别从各自的起点到达各自的终点的路径长度的总和,所述总时间是指多个机器人分别从各自的起点到达各自的终点所耗费时间的总和,所述所需调整方向的总次数是指多个机器人分别从各自的起点到达各自的终点所需调整方向的次数的总和。In step 402, the total path of all patrol inspection devices from the corresponding starting point to the corresponding end point is the shortest, the total time of all patrol inspection devices from the corresponding starting point to the corresponding end point is the shortest, and the required adjustment direction of all patrol inspection devices from the corresponding starting point to the corresponding end point is One or more of the minimum total times are used as planning goals to generate corresponding objective functions; where the total path length refers to the sum of the path lengths of multiple robots from their respective starting points to their respective end points, and the total time It refers to the sum of the time it takes for multiple robots to reach their respective end points from their respective starting points. The total number of required direction adjustments refers to the number of times that multiple robots need to adjust their directions from their respective starting points to reach their respective end points. sum.

在步骤403中,结合目标函数、第一约束函数、第二约束函数、第三约束函数和第四约束函数,建立路径规划模型。In step 403, a path planning model is established by combining the objective function, the first constraint function, the second constraint function, the third constraint function and the fourth constraint function.

在步骤404中,求解所述路径规划模型,得到各巡检装置的巡检路线。In step 404, the path planning model is solved to obtain the inspection routes of each inspection device.

本实施例通过在多机器人巡检场景下,为多个机器人公用多个终点,并综合各机器人各自的规划目标作为总的规划目标,从而解决现有技术中,多机器人协同工作缺乏有效的任务分配和协同机制,无法充分利用多个机器人的优势,导致巡检过程中的冗余操作和时间浪费的问题。This embodiment solves the lack of effective tasks for multi-robot collaborative work in the existing technology by sharing multiple endpoints for multiple robots in a multi-robot inspection scenario, and integrating the respective planning goals of each robot as the overall planning goal. The allocation and collaboration mechanism cannot fully utilize the advantages of multiple robots, resulting in redundant operations and time waste during the inspection process.

在实际使用中,巡检往往需要持续进行,故还存在以下优选的实施方式,具体包括:每间隔预设时间进行一次巡检路线规划;其中,以上一次巡检路线规划的终点作为下一次巡检路线规划的起点,以下一预设巡检位置为下一次巡检路线规划的终点。其中,所述预设时间由本领域技术人员根据经验分析得到。In actual use, inspections often need to be carried out continuously, so there are also the following preferred implementation methods, which specifically include: planning an inspection route at a preset time interval; wherein, the end point of the previous inspection route plan is used as the next inspection route. The starting point of the inspection route planning is the next preset inspection location as the end point of the next inspection route planning. Wherein, the preset time is obtained by those skilled in the art based on empirical analysis.

在优选的实施方式中,如图4所示,所述方法还包括:In a preferred embodiment, as shown in Figure 4, the method further includes:

在步骤501中,根据为已为各巡检装置规划过的巡检路线,计算巡检装置的在第一巡检路线规划前的剩余能量情况,根据所述剩余能量情况,确定巡检装置的充电紧急程度;所述巡检装置即巡检机器人,所述剩余能量情况即剩余电量,剩余电量越小,则充电紧急程度越高。所述根据所述剩余能量情况,确定巡检装置的充电紧急程度可以是:划分多个剩余能量区间,每个剩余能量区间对应一个充电紧急程度,所述剩余能量情况所在的剩余能量区间对应的充电紧急程度即为巡检装置的充电紧急程度。In step 501, based on the inspection routes that have been planned for each inspection device, the remaining energy situation of the inspection device before the first inspection route planning is calculated, and based on the remaining energy situation, the inspection device is determined. Charging urgency; the inspection device is an inspection robot, and the remaining energy is the remaining power. The smaller the remaining power, the higher the charging urgency. Determining the charging emergency degree of the inspection device according to the remaining energy situation may be: dividing a plurality of remaining energy intervals, each remaining energy interval corresponds to a charging emergency degree, and the remaining energy interval corresponding to the remaining energy situation corresponds to The charging urgency is the charging urgency of the inspection device.

在步骤502中,基于第一巡检路线规划为巡检装置规划的第一巡检路线,获取第一巡检路线所对应的巡检任务的任务紧急程度;将任务紧急程度与充电紧急程度相比较,根据比较结果,选择性地将所述巡检装置按照所述第一巡检路线进行巡检,或为所述巡检装置实施充电。巡检任务的任务紧急程度是由本领域技术人员预先根据巡检需求分析得到的。In step 502, based on the first inspection route planned for the inspection device, the task urgency of the inspection task corresponding to the first inspection route is obtained; the task urgency is compared with the charging urgency. Compare, and according to the comparison result, selectively inspect the inspection device according to the first inspection route, or charge the inspection device. The urgency of the inspection task is analyzed in advance by those skilled in the art based on the inspection requirements.

可以理解的是,每一个终点对应相应的巡检任务,当使用巡检路径规划确定得到相应机器人的终点时,则机器人所对应的巡检任务也确定下来,故而在进行巡检路线规划后,进行任务紧急程度和充电紧急程度的比较。若为所述巡检装置实施充电,则将所述巡检装置排除在巡检路线规划外,重新为其他巡检装置进行巡检路线规划。It can be understood that each end point corresponds to a corresponding inspection task. When the end point of the corresponding robot is determined using inspection path planning, the inspection task corresponding to the robot is also determined. Therefore, after inspection route planning, Compare task urgency and charging urgency. If the patrol inspection device is charged, the patrol inspection device will be excluded from the patrol inspection route planning, and the patrol inspection route planning will be carried out again for other patrol inspection devices.

本实施例通过将任务紧急程度和巡检装置的充电紧急程度相比较,根据比较结果确定是为机器人进行充电还是继续让机器人执行巡检任务,从而在保障巡检任务正常进行的同时,还确保机器人能够及时得到充电。This embodiment compares the task urgency with the charging urgency of the inspection device, and determines whether to charge the robot or continue to let the robot perform the inspection task based on the comparison result, thereby ensuring the normal progress of the inspection task while also ensuring The robot can be recharged in time.

在可选的实施方式中,所述将任务紧急程度与充电紧急程度相比较,根据比较结果,选择性地将所述巡检装置按照所述第一巡检路线进行巡检,或为所述巡检装置实施充电,具体包括:若所述巡检装置的充电紧急程度高于对应巡检任务的任务紧急程度,则为所述巡检装置实施充电;其中,巡检任务的任务紧急程度的范围在第一区间内,巡检装置的充电紧急程度的范围在第二区间内,所述第二区间的最小值小于第一区间的最小值,且第二区间的最大值大于第一区间的最大值;否则,将所述巡检装置按照所述第一巡检路线进行巡检。In an optional embodiment, the task emergency level is compared with the charging emergency level, and based on the comparison result, the inspection device is selectively inspected according to the first inspection route, or the inspection device is inspected according to the first inspection route. Charging the patrol inspection device specifically includes: if the charging urgency of the patrol inspection device is higher than the task urgency of the corresponding patrol inspection task, charging the patrol inspection device; wherein, the task urgency of the patrol inspection task is The range is within the first interval, and the range of the charging urgency of the inspection device is within the second interval. The minimum value of the second interval is less than the minimum value of the first interval, and the maximum value of the second interval is greater than the first interval. The maximum value; otherwise, the inspection device is inspected according to the first inspection route.

所述第一区间和第二区间均是由本领域技术人员根据巡检需求分析得到的。所述第二区间的最小值小于第一区间的最小值,且第二区间的最大值大于第一区间的最大值是为了确保当巡检装置的电量较充足时,无论巡检任务的任务紧急程度如何,均无需进行充电,且当巡检装置即将断电时,无论巡检任务的紧急程度如何,均对巡检装置实施充电。The first interval and the second interval are both obtained by analysis by those skilled in the art based on inspection requirements. The minimum value of the second interval is less than the minimum value of the first interval, and the maximum value of the second interval is greater than the maximum value of the first interval to ensure that when the power of the inspection device is sufficient, no matter how urgent the inspection task is, Regardless of the degree, there is no need to charge, and when the inspection device is about to be powered off, the inspection device will be charged regardless of the urgency of the inspection task.

在实际使用中,还可在周边设置充电设备,如充电桩,由巡检装置行进至充电设备实施充电,当存在多个充电设备时,所述为所述巡检装置实施充电,如图5所示,具体包括:In actual use, charging equipment, such as charging piles, can also be set up around the perimeter. The inspection device travels to the charging equipment for charging. When there are multiple charging devices, the inspection device performs charging, as shown in Figure 5 shown, specifically including:

在步骤601中,以目标充电设备与所述巡检装置之间的距离最小、目标充电设备为所述巡检装置充电最快、使用各目标充电设备进行充电的巡检装置的数量之间的均衡度最高为规划目标,生成相应的目标函数;其中,所述使用各目标充电设备进行充电的巡检装置的数量之间的均衡度可以是:各目标充电设备下正在进行充电的巡检装置的数量的方差或标准差,方差或标准差越小,则均衡度越高。In step 601, the distance between the target charging equipment and the inspection device is the smallest, the target charging equipment charges the inspection device the fastest, and the number of inspection devices using each target charging equipment for charging is determined. The highest degree of balance is the planning target, and the corresponding objective function is generated; wherein, the degree of balance between the number of inspection devices using each target charging equipment for charging can be: the inspection devices that are charging under each target charging equipment The smaller the variance or standard deviation of the quantity, the higher the degree of balance.

在步骤602中,使用所述目标函数建立充电决策模型,求解所述充电决策模型,得到为所述巡检装置进行充电的目标充电设备。In step 602, use the objective function to establish a charging decision model, solve the charging decision model, and obtain the target charging equipment for charging the inspection device.

在步骤603中,以所述目标充电设备为终点,为所述巡检装置进行路线规划,使所述巡检装置到达所述目标充电设备位置进行充电。In step 603, with the target charging equipment as the end point, route planning is performed for the inspection device so that the inspection device reaches the target charging equipment location for charging.

在实际使用中,巡检装置还可能需要对于建筑物内部进行巡检,如厂房内部等,但在一些场景中,还可能出现厂房整体进行维修维护等情况,或对于厂房的部分入口封闭维修的情况,在这种情况下,巡检装置可能无法正常对厂房内部进行巡检,为了解决此问题,本实施例还提供了以下优选的实施方式,具体包括:In actual use, the inspection device may also need to inspect the inside of a building, such as the inside of a factory. However, in some scenarios, the entire factory may be repaired or maintained, or some entrances to the factory may be closed for maintenance. In this case, the inspection device may not be able to perform inspections inside the factory normally. In order to solve this problem, this embodiment also provides the following preferred implementation methods, which specifically include:

各巡检装置通过无线与中央控制平台进行通信,中央控制平台还通过无线与控制终端进行通信,如图6所示,其中,控制终端的数量和巡检装置的数量均由本领域技术人员根据需求分析得到,而并非绝对是一对一的关系,所述控制终端具有定位功能,在所述控制终端中显示环境地图,并在环境地图中显示巡检装置的实际行进路径,如图7所示,所述方法还包括:Each inspection device communicates with the central control platform through wireless, and the central control platform also communicates with the control terminal through wireless, as shown in Figure 6. The number of control terminals and the number of inspection devices are determined by those skilled in the art according to needs. According to the analysis, it is not absolutely a one-to-one relationship. The control terminal has a positioning function, an environment map is displayed in the control terminal, and the actual traveling path of the inspection device is displayed in the environment map, as shown in Figure 7 , the method also includes:

在步骤701中,在巡检装置行进过程中,采集巡检装置所途径位置的周边环境点云数据,根据周边环境点云数据判断各途径位置属于室内区域或室外区域,并对周边环境点云数据进行分析得到室内室外的分界线,根据室内室外的分界线建立建筑物地图;如图8所示。其中,所述根据周边环境点云数据判断各途径位置属于室内区域或室外区域是通过对周边环境点云数据中的物体进行识别得到的,如当识别到周边均为货架、桌椅或具有连续性的墙面等,则判断为室内区域,若识别到周边存在树木、路灯等,或扫描得到存在开阔性空间(即某一方向的点云数据与巡检装置之间的距离较远)时,则判断为室外区域,并且对于一个方向为室内区域,另一个方向为室外区域,并在两个相对方向之间检测到相对的近距离墙体时,认为当前所在位置为相应建筑物的出入口。其中,所述建筑物地图在所述环境地图上叠加显示在控制终端中。In step 701, during the traveling process of the inspection device, the surrounding environment point cloud data of the location passed by the inspection device is collected, and each path location is judged to belong to an indoor area or an outdoor area based on the surrounding environment point cloud data, and the surrounding environment point cloud is The data is analyzed to obtain the indoor and outdoor dividing lines, and a building map is established based on the indoor and outdoor dividing lines; as shown in Figure 8. Among them, the judgment that each path location belongs to an indoor area or an outdoor area based on the surrounding environment point cloud data is obtained by identifying objects in the surrounding environment point cloud data. For example, when it is recognized that the surrounding areas are shelves, tables and chairs, or have continuous If there is a certain wall, etc., it is judged to be an indoor area. If it is recognized that there are trees, street lights, etc. in the surrounding area, or if the scan shows that there is an open space (that is, the distance between the point cloud data in a certain direction and the inspection device is far) , then it is judged to be an outdoor area, and one direction is an indoor area and the other direction is an outdoor area, and when a relatively close wall is detected between the two opposite directions, the current location is considered to be the entrance and exit of the corresponding building. . Wherein, the building map is superimposed on the environment map and displayed in the control terminal.

在步骤702中,将规划所得的巡检装置的巡检路线与建筑物地图相匹配,得到巡检装置所需巡检的各建筑物;如图9所示,巡检装置的巡检路线进入到建筑物1、2、3、4、5、7、8内,则所需巡检的建筑物为建筑物1、2、3、4、5、7、8。In step 702, the planned inspection route of the inspection device is matched with the building map to obtain each building that the inspection device needs to inspect; as shown in Figure 9, the inspection route of the inspection device enters If you go to buildings 1, 2, 3, 4, 5, 7, and 8, the buildings that need to be inspected are buildings 1, 2, 3, 4, 5, 7, and 8.

在步骤703中,若巡检装置在行进过程中检测到前方存在障碍物,则调整巡检装置的运动轨迹,以绕过障碍物;若经识别得到所述障碍物为固定物(即固定不动的物体,通过物体识别得到,除人类、动物、行驶车辆和其他巡检装置以外的均可视做固定物),则记录巡检装置从开始绕过障碍物直至回到规划的巡检路线所经由的绕障路径,基于所述绕障路径的起始位置和终点位置,与规划所得的巡检路线匹配得到原始规划路径,判断所述原始规划路径是否属于相应建筑物的室内区域;如图10所示,当建筑物5出于维修或其他原因外圈被包围,导致巡检装置无法进入建筑物5内部时,巡检装置进行绕障,绕障路径如图10标注所示,其中标注为起点的位置为绕障路径的起始位置,标注为终点的位置为绕障路径的终点位置,虚线部分为原始规划路径,由于原始规划路径经过建筑物5,故原始规划区域属于建筑物5的室内区域。In step 703, if the patrol inspection device detects an obstacle ahead during travel, the motion trajectory of the patrol inspection device is adjusted to bypass the obstacle; if it is identified that the obstacle is a fixed object (i.e., it is not fixed). moving objects (obtained through object recognition, except for humans, animals, traveling vehicles and other inspection devices), then the inspection device is recorded from the time it starts to bypass the obstacle until it returns to the planned inspection route. Based on the starting position and end position of the obstacle bypassing path, the obstacle bypassing path is matched with the planned inspection route to obtain the original planned path, and it is judged whether the original planned path belongs to the indoor area of the corresponding building; such as As shown in Figure 10, when the outer circle of building 5 is surrounded for maintenance or other reasons, and the inspection device cannot enter the interior of building 5, the inspection device will bypass the obstacle. The bypass path is as marked in Figure 10, where The position marked as the starting point is the starting position of the obstacle bypass path, the position marked as the end point is the end position of the obstacle bypass path, and the dotted line part is the original planned path. Since the original planned path passes through building 5, the original planned area belongs to the building. 5 indoor areas.

在步骤704中,若所述原始规划路径属于相应第一建筑物的室内区域,则在所述控制终端的环境地图对应第一建筑物所在位置显示盲区标识,以便于控制人员通过所述环境地图识别所述盲区,并携带所述控制终端对所述第一建筑物进行人工巡检。In step 704, if the original planned path belongs to the indoor area of the corresponding first building, a blind spot mark is displayed on the environment map of the control terminal corresponding to the location of the first building to facilitate the control personnel to pass through the environment map. Identify the blind area and carry out manual inspection of the first building with the control terminal.

在步骤705中,当控制人员点击所述盲区标识,并选择进行盲区巡检时,按照控制终端的实时定位信息,对所述控制人员进行导航;其中,显示在所述环境地图中的导航路线的终点为所述绕障路径的起始位置,即图10中所标注的起点;如图11所示,以问号图标作为盲区标识,并在控制人员点击盲区标识时,在盲区标识旁边弹出选项窗口,在选项窗口中提醒控制人员“该区域被遮挡形成盲区,是否对该区域进行人工巡检”,并提供“进行巡检”选项按钮和“取消”选项按钮,当控制人员选中“进行巡检”时,认为选择进行盲区巡检,生成控制人员当前位置到达所述绕障路径的起始位置的导航路线,显示在环境地图上。In step 705, when the controller clicks on the blind spot mark and chooses to perform blind spot inspection, the controller is navigated according to the real-time positioning information of the control terminal; wherein, the navigation route displayed in the environmental map The end point of is the starting position of the obstacle bypass path, that is, the starting point marked in Figure 10; as shown in Figure 11, the question mark icon is used as the blind spot mark, and when the controller clicks on the blind spot mark, an option pops up next to the blind spot mark window. In the options window, the controller is reminded that "this area is blocked to form a blind spot. Should manual inspection be performed on this area?" and provides the "Perform Inspection" option button and the "Cancel" option button. When the controller selects "Perform Inspection" When "check", it is considered that the blind spot inspection is selected, a navigation route is generated from the current position of the controller to the starting position of the obstacle bypass path, and is displayed on the environment map.

在步骤706中,在根据所述控制终端的实时定位信息识别到所述控制人员到达所述绕障路径的起始位置后,记录控制人员的行动轨迹,并在识别得到控制人员到达所述绕障路径的终点位置时,将控制人员的行动轨迹与所述第一建筑物进行匹配,判断所述行动轨迹是否进入到所述第一建筑物的室内区域。In step 706, after it is recognized that the controller has arrived at the starting position of the obstacle bypass path based on the real-time positioning information of the control terminal, the action trajectory of the controller is recorded, and after it is recognized that the controller has arrived at the bypass path, When reaching the end position of the obstacle path, the action trajectory of the controller is matched with the first building, and it is determined whether the action trajectory has entered the indoor area of the first building.

在步骤707中,若判断得到所述行动轨迹进入到所述第一建筑物的室内区域,则在环境地图中显示所述行动轨迹,并在所述行动轨迹周边显示提示窗,在所述提示窗中询问控制人员所述行动轨迹是否能够被巡检装置所使用,并提供确认按钮和取消按钮供控制人员选择;如图12所示,虚线位置为控制人员的行动轨迹,在提示窗中显示“已人工生成新的行动轨迹,该行动轨迹是否可被巡检装置复用”。其中,由于大多数巡检装置不具有自主上下台阶的功能,故由控制人员综合考虑该行动轨迹中是否有台阶、路径宽度是否容许巡检装置通行等因素,从而判断该行动轨迹是否能够复用给巡检装置。In step 707, if it is determined that the action trajectory has entered the indoor area of the first building, the action trajectory is displayed in the environment map, and a prompt window is displayed around the action trajectory. The window asks the controller whether the action trajectory described can be used by the inspection device, and provides a confirmation button and a cancel button for the controller to choose; as shown in Figure 12, the dotted line position is the action trajectory of the controller, which is displayed in the prompt window "A new action trajectory has been artificially generated. Can this action trajectory be reused by the inspection device?" Among them, since most inspection devices do not have the function of autonomously going up and down steps, the controller comprehensively considers factors such as whether there are steps in the action trajectory and whether the path width allows the inspection device to pass, so as to determine whether the action trajectory can be reused. To inspect the device.

在步骤708中,若控制人员选中确认按钮,则在下一次对巡检装置进行路径规划,并得到所需巡检的建筑物包括所述第一建筑物时,使用所述行动轨迹替换掉所述进行路线中经过所述第一建筑物的部分路径,以便于实现巡检装置对所述第一建筑物的后续巡检。如在后续使用中,巡检装置在到达绕障路径的起始位置时,沿着所述行动轨迹进行行进,直至到达绕障路径的终点位置,再按照规划的路径进行行进。In step 708, if the controller selects the confirmation button, the next time the inspection device is routed and the buildings to be inspected include the first building, the action trajectory is used to replace the first building. A part of the route passing through the first building is carried out to facilitate subsequent inspection of the first building by the inspection device. For example, in subsequent use, when the inspection device reaches the starting position of the obstacle bypassing path, it will travel along the action trajectory until it reaches the end position of the obstacle bypassing path, and then proceed according to the planned path.

若控制人员选中取消按钮,则不将该行动路径复用给巡检装置,在下一次为巡检装置进行路径规划时,避开第一建筑物,不对第一建筑物进行巡检。If the controller selects the cancel button, the action path will not be reused for the inspection device. When planning the path for the inspection device next time, the first building will be avoided and the first building will not be inspected.

实施例2:Example 2:

在实施例1的基础上,本实施例还提供了一种巡检路线控制装置,如图13所示,包括环境建模模块和路径规划模块;On the basis of Embodiment 1, this embodiment also provides an inspection route control device, as shown in Figure 13, including an environment modeling module and a path planning module;

所述环境建模模块用于使用激光雷达传感器获取环境的距离信息,根据所述距离信息构建环境地图;使用摄像头采集环境的图像数据,从所述图像数据中识别到环境中的障碍物。The environment modeling module is used to obtain distance information of the environment using a lidar sensor, construct an environment map based on the distance information, collect image data of the environment using a camera, and identify obstacles in the environment from the image data.

所述路径规划模块用于在所述环境地图中指定相应的起点和终点,基于所述环境地图、障碍物、起点和终点,使用路径规划算法规划得到巡检路线,以便于巡检装置按照所述巡检路线进行巡检。The path planning module is used to specify the corresponding starting point and end point in the environment map. Based on the environment map, obstacles, starting point and end point, use the path planning algorithm to plan the inspection route, so that the inspection device can follow the specified path. Carry out inspections along the inspection routes described above.

在可选的实施方式中,如图14所示,所述巡检路线控制装置还包括控制执行模块、实时监控模块、多机器人协同模块、异常检测和预警模块、智能充电和能量管理模块和通信模块,具体的:In an optional implementation, as shown in Figure 14, the inspection route control device also includes a control execution module, a real-time monitoring module, a multi-robot collaboration module, anomaly detection and early warning module, an intelligent charging and energy management module and a communication module. Module, specifically:

环境建模模块,用于对巡检区域进行地图构建和障碍物检测。The environment modeling module is used for map construction and obstacle detection in the inspection area.

路径规划模块,用于生成最优的巡检路线,使机器人能够高效地覆盖巡检区域;其中,所述路径规划模块包括地图数据管理模块、起点和终点选择模块、约束条件设置模块、路径生成模块、路径评估和优化模块、可视化展示模块。The path planning module is used to generate the optimal inspection route so that the robot can efficiently cover the inspection area; wherein, the path planning module includes a map data management module, a starting point and end point selection module, a constraint setting module, and a path generation module. module, path evaluation and optimization module, and visual display module.

控制执行模块,用于实现机器人的自主导航和巡检任务执行;其中,控制执行模块包括通信模块和运动控制模块。The control execution module is used to realize the autonomous navigation and inspection task execution of the robot; among them, the control execution module includes a communication module and a motion control module.

实时监控模块,用于实时监测机器人的行动和状态,并提供反馈信息,通过传感器获取机器人的位置、速度和传感器数据等,可以及时发现机器人的异常行为或故障,并提供相应的警报和反馈。The real-time monitoring module is used to monitor the robot's actions and status in real time and provide feedback information. It obtains the robot's position, speed and sensor data through sensors, and can detect abnormal behavior or faults of the robot in a timely manner and provide corresponding alarms and feedback.

多机器人协同模块,用于实现多个巡检机器人之间的协同工作,它可以协调多个机器人的巡检任务,避免冲突和重复,提高巡检效率。其中协同算法可以基于分布式系统原理,通过通信和协调机制实现。The multi-robot collaboration module is used to achieve collaborative work among multiple inspection robots. It can coordinate the inspection tasks of multiple robots, avoid conflicts and duplication, and improve inspection efficiency. The collaborative algorithm can be based on the principle of distributed systems and implemented through communication and coordination mechanisms.

异常检测和预警模块,用于及时发现并处理巡检过程中出现的异常情况,通过传感器数据的分析和模式识别技术,可以检测到异常事件(如障碍物移动、机器人故障等),并触发相应的预警机制,以便采取适当的措施。The anomaly detection and early warning module is used to promptly detect and handle abnormal situations that occur during the inspection process. Through the analysis of sensor data and pattern recognition technology, abnormal events (such as obstacle movement, robot failure, etc.) can be detected and trigger corresponding early warning mechanism so that appropriate measures can be taken.

智能充电和能量管理模块,用于优化巡检机器人的能量消耗和充电策略。根据机器人的能量消耗模型和充电设施的位置信息,选取最优的充电策略,以延长机器人的工作时间和提高巡检效率。Intelligent charging and energy management module is used to optimize the energy consumption and charging strategy of the inspection robot. Based on the robot's energy consumption model and the location information of the charging facility, the optimal charging strategy is selected to extend the robot's working time and improve inspection efficiency.

通信模块用于与运动控制模块双向通信,实现状态监测和指令传输,通信模块可以使用无线通信技术(如Wi-Fi、蓝牙等),实现与机器人的实时交互,运动控制模块用于实现机器人的自主导航和精确控制,它包括轨迹跟踪算法(用于使机器人按照预定的轨迹进行运动)和传感器数据的处理,确保机器人能够准确地遵循生成的巡检路线。The communication module is used for two-way communication with the motion control module to realize status monitoring and instruction transmission. The communication module can use wireless communication technology (such as Wi-Fi, Bluetooth, etc.) to realize real-time interaction with the robot. The motion control module is used to realize the robot's Autonomous navigation and precise control, which includes trajectory tracking algorithms (used to make the robot move according to a predetermined trajectory) and sensor data processing to ensure that the robot can accurately follow the generated inspection route.

环境建模模块包括激光雷达传感器、摄像头传感器和深度学习和卷积神经网络模块,激光雷达传感器用于获取环境中的距离信息,它通过发射激光束并测量激光束与物体之间的时间差来计算物体与机器人之间的距离,激光雷达可以提供高精度的距离数据,用于构建环境的三维地图或点云数据,摄像头传感器用于获取环境中的图像信息,它可以捕获场景的可见光图像,并将其转换为数字数据。这些图像数据可以用于识别和分析环境中的障碍物、目标物体等。摄像头可以使用不同的计算机视觉算法对图像进行处理,如特征提取、目标检测、图像分割等,深度学习和卷积神经网络模块用于实现高效的障碍物检测和分类,通过训练深度学习模型和卷积神经网络,可以实现高效的障碍物检测和分类。这些模型可以学习图像中的特征和模式,并将其用于识别和分类不同类型的障碍物,如墙壁、家具、人等。深度学习和卷积神经网络模块通常需要大量的训练数据和计算资源来进行训练和推理。The environment modeling module includes lidar sensors, camera sensors, and deep learning and convolutional neural network modules. The lidar sensor is used to obtain distance information in the environment. It is calculated by emitting a laser beam and measuring the time difference between the laser beam and the object. The distance between the object and the robot. LiDAR can provide high-precision distance data and is used to build a three-dimensional map or point cloud data of the environment. The camera sensor is used to obtain image information in the environment. It can capture visible light images of the scene and Convert it into numerical data. These image data can be used to identify and analyze obstacles, target objects, etc. in the environment. The camera can use different computer vision algorithms to process images, such as feature extraction, target detection, image segmentation, etc. Deep learning and convolutional neural network modules are used to achieve efficient obstacle detection and classification. By training deep learning models and volumes Accumulative neural network can achieve efficient obstacle detection and classification. These models can learn features and patterns in images and use them to identify and classify different types of obstacles, such as walls, furniture, people, etc. Deep learning and convolutional neural network modules often require large amounts of training data and computing resources for training and inference.

综合利用激光雷达传感器、摄像头传感器和深度学习与卷积神经网络模块,可以实现对环境的全面感知和建模,包括距离信息、图像信息以及障碍物的检测和分类。这些信息可以为机器人的路径规划、避障等决策提供重要的依据。Comprehensive use of lidar sensors, camera sensors, and deep learning and convolutional neural network modules can achieve comprehensive perception and modeling of the environment, including distance information, image information, and obstacle detection and classification. This information can provide important basis for the robot's path planning, obstacle avoidance and other decisions.

地图数据管理模块用于负责管理和维护巡检区域的地图数据,包括地图的拓扑结构、位置信息和障碍物位置等,起点和终点选择模块用于选择巡检任务的起点和终点,起点通常是机器人的充电站或停靠点,终点是巡检区域的某个位置;约束条件设置模块用于设置路径规划的约束条件,如时间限制、能量消耗限制等,这些约束条件可以影响路径规划算法的结果;路径生成模块用于根据地图数据、起点终点以及约束条件,利用路径规划算法生成最优的巡检路线,利用路径规划算法为Dijkstra算法,该算法根据地图数据和约束条件生成最优的巡检路线,该算法会考虑路径的长度、时间和障碍物避让等因素;路径评估和优化模块用于评估生成的巡检路线的质量,评估指标可以包括路线长度、覆盖率、能量消耗等,优化算法可以采用遗传算法等;可视化展示模块用于将生成的最优巡检路线以可视化的方式展示出来,方便用户查看和调整。The map data management module is responsible for managing and maintaining the map data of the inspection area, including the map topology, location information, obstacle locations, etc. The starting point and end point selection module is used to select the starting point and end point of the inspection task. The starting point is usually The robot's charging station or docking point ends at a certain location in the inspection area; the constraint setting module is used to set constraints for path planning, such as time limits, energy consumption limits, etc. These constraints can affect the results of the path planning algorithm. ;The path generation module is used to use the path planning algorithm to generate the optimal inspection route based on the map data, starting point and end point, and constraints. The path planning algorithm used is the Dijkstra algorithm, which generates the optimal inspection route based on the map data and constraints. route, the algorithm will consider factors such as path length, time, and obstacle avoidance; the path evaluation and optimization module is used to evaluate the quality of the generated inspection route. The evaluation indicators can include route length, coverage, energy consumption, etc., optimization algorithm Genetic algorithms, etc. can be used; the visual display module is used to display the generated optimal inspection route in a visual way to facilitate users to view and adjust.

实时监控模块包括数据交互模块、实时数据处理和分析模块、反馈信息生成模块,数据交互模块用于与巡检机器人的摄像头传感器和运动控制模块进行数据交互,它可以负责接收来自摄像头传感器的图像数据,以及发送控制指令给运动控制模块,实现与机器人之间的数据交流和指令传递;实时数据处理和分析模块用于处理和分析机器人的位置、速度、传感器数据信息,这些信息可以通过数据交互模块获取,并经过实时处理和分析,得到关于机器人当前状态和环境状况的实时反馈。例如,可以利用机器人的位置和速度信息进行路径规划和运动控制,利用传感器数据进行障碍物检测和环境感知等,反馈信息生成模块根据实时数据处理和分析模块的结果,生成反馈信息并发送给机器人或操作人员,这些反馈信息可以包括机器人的工作状态、环境变化情况、异常检测等,反馈信息的生成可以基于预设的规则和算法,根据实际情况进行判断和推断。The real-time monitoring module includes a data interaction module, a real-time data processing and analysis module, and a feedback information generation module. The data interaction module is used to interact with the camera sensor and motion control module of the inspection robot. It can be responsible for receiving image data from the camera sensor. , and send control instructions to the motion control module to realize data exchange and instruction transmission with the robot; the real-time data processing and analysis module is used to process and analyze the robot's position, speed, and sensor data information, which can be processed through the data interaction module Obtain, and after real-time processing and analysis, obtain real-time feedback on the current status of the robot and environmental conditions. For example, the robot's position and speed information can be used for path planning and motion control, and sensor data can be used for obstacle detection and environment perception. The feedback information generation module generates feedback information based on the results of the real-time data processing and analysis module and sends it to the robot. Or the operator, this feedback information can include the working status of the robot, environmental changes, anomaly detection, etc. The generation of feedback information can be based on preset rules and algorithms, and judgment and inference can be made based on the actual situation.

综合利用数据交互模块、实时数据处理和分析模块以及反馈信息生成模块,可以实现对巡检机器人的实时监控和反馈。这样可以及时了解机器人的状态和环境状况,并根据需要采取相应的措施,如调整路径、改变工作模式等。By comprehensively utilizing the data interaction module, real-time data processing and analysis module, and feedback information generation module, real-time monitoring and feedback of the inspection robot can be achieved. In this way, the robot's status and environmental conditions can be understood in time, and corresponding measures can be taken as needed, such as adjusting the path, changing the working mode, etc.

多机器人协同模块包括任务分配模块和通信协调模块,任务分配模块用于将巡检任务分配给合适的机器人,它可以根据任务的性质、机器人的能力和位置等因素进行任务分配的决策,任务分配模块可以根据任务的紧急程度、优先级以及机器人的可用性和效率等考虑因素,选择最合适的机器人来执行任务,任务分配模块可能需要考虑到机器人之间的工作负载均衡,以确保任务能够有效地完成,通信协调模块用于实现机器人之间的通信和协调,它可以负责建立机器人之间的通信通道,使它们能够相互交换信息、共享任务状态和传递指令,通信协调模块可以利用无线通信技术或其他通信手段,实现机器人之间的实时数据传输和通信,通过通信协调模块,机器人可以共享任务进度、避免冲突、协同工作,提高整体的效率和协同能力。The multi-robot collaboration module includes a task allocation module and a communication coordination module. The task allocation module is used to allocate inspection tasks to appropriate robots. It can make task allocation decisions based on factors such as the nature of the task, the capabilities and location of the robot, and task allocation. The module can select the most appropriate robot to perform the task based on considerations such as the urgency of the task, priority, and the availability and efficiency of the robot. The task allocation module may need to take into account workload balancing among robots to ensure that the task can be efficiently performed. Completed, the communication coordination module is used to realize communication and coordination between robots. It can be responsible for establishing communication channels between robots so that they can exchange information, share task status and transfer instructions with each other. The communication coordination module can use wireless communication technology or Other communication means realize real-time data transmission and communication between robots. Through the communication coordination module, robots can share task progress, avoid conflicts, work collaboratively, and improve overall efficiency and collaboration capabilities.

综合利用任务分配模块和通信协调模块,可以实现多机器人之间的任务分配、通信和协调。这样可以充分利用多个机器人的能力,提高巡检任务的效率和覆盖范围,并且可以根据需要灵活地调整任务分配和协同策略。By comprehensively utilizing the task allocation module and the communication coordination module, task allocation, communication and coordination between multiple robots can be achieved. This can make full use of the capabilities of multiple robots, improve the efficiency and coverage of inspection tasks, and flexibly adjust task allocation and collaboration strategies as needed.

异常检测和预警模块包括异常检测模块和预警和报警系统,异常检测模块用于分析传感器数据和机器人行为,检测可能的故障或异常情况,它可以通过对传感器数据进行实时监测和分析,识别出与正常运行状态不符的模式或异常行为。异常检测模块可以使用各种技术,如统计分析、机器学习或人工智能算法,来判断是否存在异常情况。例如,如果机器人的传感器数据显示温度过高、速度异常或位置偏差等,就可能表明存在故障或异常情况,预警和报警系统,用于生成警报并通知相关人员,以采取适当的措施,一旦异常检测模块检测到异常情况,预警和报警系统将触发相应的警报机制。这可以包括发送警报信息给操作人员、管理人员或其他相关人员,通过声音、光信号或电子邮件等方式提醒他们注意异常情况,并及时采取适当的措施。预警和报警系统也可以自动触发机器人的紧急停止或安全措施,以避免进一步的损害或危险。The anomaly detection and early warning module includes an anomaly detection module and an early warning and alarm system. The anomaly detection module is used to analyze sensor data and robot behavior to detect possible faults or abnormal situations. It can monitor and analyze sensor data in real time to identify problems related to the robot. Patterns or abnormal behaviors that are inconsistent with normal operating conditions. The anomaly detection module can use various techniques, such as statistical analysis, machine learning, or artificial intelligence algorithms, to determine whether anomalies exist. For example, if the robot's sensor data shows excessive temperature, abnormal speed or position deviation, etc., it may indicate the existence of a fault or abnormal situation. The early warning and alarm system is used to generate alarms and notify relevant personnel to take appropriate measures in the event of an abnormality. When the detection module detects abnormal conditions, the early warning and alarm system will trigger the corresponding alarm mechanism. This can include sending alarm messages to operators, managers or other relevant personnel to alert them to abnormal conditions through sound, light signals or emails and to take appropriate measures in a timely manner. Warning and alarm systems can also automatically trigger emergency stops or safety measures on the robot to avoid further damage or danger.

通过异常检测和预警模块,可以实时监测机器人系统的异常情况,并及时采取措施,以确保机器人的安全运行和任务的顺利完成。Through the anomaly detection and early warning module, the abnormal situation of the robot system can be monitored in real time, and measures can be taken in a timely manner to ensure the safe operation of the robot and the smooth completion of the task.

智能充电和能量管理模块包括充电规划模块和充电桩分配模块,充电规划模块用于根据机器人的巡检任务和剩余能量情况,规划最优的充电策略,它会考虑机器人的巡检路线、任务优先级和能量消耗等因素,以确定何时、在哪个位置以及以何种方式充电。充电规划模块可以使用算法和优化技术,如动态规划、遗传算法或深度学习,来决策最佳充电策略。例如,它可以根据机器人的预计运行时间和能量消耗,决定是否在任务中途进行快速充电,还是在任务结束后进行完全充电,充电桩分配模块用于确定最佳的充电桩位置和分配策略,以减少充电时间和能量消耗,它可以根据机器人的位置、充电需求和充电桩的可用性等因素,选择最合适的充电桩供机器人充电。充电桩分配模块可以考虑到充电桩之间的距离、充电速度和充电桩的负载情况,以最大程度地减少充电时间和能量消耗。The intelligent charging and energy management module includes a charging planning module and a charging pile allocation module. The charging planning module is used to plan the optimal charging strategy based on the robot's inspection tasks and remaining energy. It will consider the robot's inspection route and task priority. Factors such as level and energy consumption determine when, where and how to charge. The charging planning module can use algorithms and optimization techniques, such as dynamic programming, genetic algorithms or deep learning, to decide on the best charging strategy. For example, it can decide whether to perform a quick charge in the middle of the mission or a full charge after the mission is over based on the robot's estimated running time and energy consumption. The charging pile allocation module is used to determine the optimal charging pile location and allocation strategy to Reduce charging time and energy consumption, it can select the most suitable charging pile for the robot to charge based on factors such as the robot's location, charging needs and the availability of charging piles. The charging pile distribution module can take into account the distance between charging piles, charging speed and load condition of the charging piles to minimize charging time and energy consumption.

通过智能充电和能量管理模块,可以有效规划机器人的充电策略,减少充电时间和能量消耗,提高机器人的工作效率和续航能力。这样可以确保机器人在巡检任务中持续运行,并减少对人工干预的依赖。Through the intelligent charging and energy management module, the robot's charging strategy can be effectively planned, reducing charging time and energy consumption, and improving the robot's work efficiency and endurance. This ensures that the robot continues to operate during inspection tasks and reduces reliance on human intervention.

在此需要说明的是,实施例1中的巡检路线控制方法在本实施例中均适用。It should be noted here that the inspection route control method in Embodiment 1 is applicable to this embodiment.

使用本实施例所述的巡检路线控制装置执行巡检路线控制方法,如图15所示,具体包括:The patrol route control device described in this embodiment is used to perform the patrol route control method, as shown in Figure 15, which specifically includes:

在步骤801中,初始化系统,具体的:启动巡检路线控制装置,并对系统进行初始化设置,包括加载地图数据、配置起点和终点和设置约束条件。In step 801, the system is initialized. Specifically, the inspection route control device is started and the system is initialized and set, including loading map data, configuring the starting point and end point, and setting constraints.

在步骤802中,环境建模,具体的:通过环境建模模块进行地图构建和障碍物检测,利用激光雷达传感器获取环境中的距离信息。摄像头传感器获取环境中的图像信息,以及深度学习和卷积神经网络模块实现高效的障碍物检测和分类。In step 802, environment modeling is performed, specifically: map construction and obstacle detection are performed through the environment modeling module, and distance information in the environment is obtained using lidar sensors. Camera sensors acquire image information in the environment, and deep learning and convolutional neural network modules enable efficient obstacle detection and classification.

在步骤803中,路径规划,具体的:利用路径规划模块生成最优的巡检路线。地图数据管理模块负责管理和维护巡检区域的地图数据,起点和终点选择模块用于选择巡检任务的起点和终点,约束条件设置模块用于设置路径规划的约束条件,路径生成模块利用路径规划算法生成最优的巡检路线,路径评估和优化模块用于评估和优化路线的质量,可视化展示模块将生成的最优巡检路线以可视化的方式展示出来。In step 803, path planning, specifically: using the path planning module to generate the optimal inspection route. The map data management module is responsible for managing and maintaining the map data of the inspection area. The starting point and end point selection module is used to select the starting point and end point of the inspection task. The constraint setting module is used to set the constraints of path planning. The path generation module uses path planning. The algorithm generates the optimal inspection route. The path evaluation and optimization module is used to evaluate and optimize the quality of the route. The visual display module displays the generated optimal inspection route in a visual way.

在步骤804中,控制执行,具体的:利用控制执行模块实现机器人的自主导航和巡检任务执行。通信模块与运动控制模块进行双向通信,实现状态监测和指令传输,运动控制模块负责实现机器人的自主导航和精确控制。In step 804, control is executed, specifically: the control execution module is used to realize autonomous navigation and inspection task execution of the robot. The communication module and the motion control module conduct two-way communication to realize status monitoring and instruction transmission. The motion control module is responsible for realizing the autonomous navigation and precise control of the robot.

在步骤805中,实时监控,具体的:利用实时监控模块实时监测机器人的行动和状态,并提供反馈信息。数据交互模块与巡检机器人的摄像头传感器和运动控制模块进行数据交互,实时数据处理和分析模块处理和分析机器人的位置、速度、传感器数据信息。In step 805, real-time monitoring is performed. Specifically, the real-time monitoring module is used to monitor the robot's actions and status in real time and provide feedback information. The data interaction module interacts with the camera sensor and motion control module of the inspection robot. The real-time data processing and analysis module processes and analyzes the robot's position, speed, and sensor data information.

在步骤906中,多机器人协同,具体的:利用多机器人协同模块实现多个巡检机器人之间的协同工作。任务分配模块将巡检任务分配给合适的机器人,通信协调模块实现机器人之间的通信和协调。In step 906, multi-robot collaboration is performed. Specifically, the multi-robot collaboration module is used to realize collaborative work among multiple inspection robots. The task allocation module allocates inspection tasks to appropriate robots, and the communication coordination module realizes communication and coordination between robots.

在步骤807中,异常检测和预警,具体的:利用异常检测和预警模块及时发现并处理巡检过程中出现的异常情况。异常检测模块分析传感器数据和机器人行为,检测可能的故障或异常情况,预警和报警系统生成警报并通知相关人员,以采取适当的措施。In step 807, abnormality detection and early warning, specifically: using the abnormality detection and early warning module to promptly discover and handle abnormal situations that occur during the inspection process. The anomaly detection module analyzes sensor data and robot behavior to detect possible failures or anomalies, and the early warning and alarm system generates alerts and notifies relevant personnel to take appropriate measures.

在步骤808中,智能充电和能量管理,具体的:利用智能充电和能量管理模块优化巡检机器人的能量消耗和充电策略。充电规划模块根据机器人的巡检任务和剩余能量情况,规划最优的充电策略,充电桩分配模块确定最佳的充电桩位置和分配策略,以减少充电时间和能量消耗。In step 808, intelligent charging and energy management, specifically: use the intelligent charging and energy management module to optimize the energy consumption and charging strategy of the inspection robot. The charging planning module plans the optimal charging strategy based on the robot's inspection tasks and remaining energy. The charging pile distribution module determines the optimal charging pile location and distribution strategy to reduce charging time and energy consumption.

实施例3:Example 3:

如图16所示,是本发明实施例的巡检路线控制装置的架构示意图。本实施例的巡检路线控制装置包括一个或多个处理器21以及存储器22。其中,图16中以一个处理器21为例。As shown in Figure 16, it is a schematic structural diagram of the inspection route control device according to the embodiment of the present invention. The inspection route control device of this embodiment includes one or more processors 21 and a memory 22 . Among them, a processor 21 is taken as an example in FIG. 16 .

处理器21和存储器22可以通过总线或者其他方式连接,图16中以通过总线连接为例。The processor 21 and the memory 22 may be connected through a bus or other means. In FIG. 16 , the connection through a bus is taken as an example.

存储器22作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序和非易失性计算机可执行程序,如实施例1中的巡检路线控制方法。处理器21通过运行存储在存储器22中的非易失性软件程序和指令,从而执行巡检路线控制方法。As a non-volatile computer-readable storage medium, the memory 22 can be used to store non-volatile software programs and non-volatile computer executable programs, such as the inspection route control method in Embodiment 1. The processor 21 executes the inspection route control method by running non-volatile software programs and instructions stored in the memory 22 .

存储器22可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器22可选包括相对于处理器21远程设置的存储器,这些远程存储器可以通过网络连接至处理器21。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。Memory 22 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 22 optionally includes memory located remotely relative to the processor 21, and these remote memories may be connected to the processor 21 through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.

所述程序指令/模块存储在所述存储器22中,当被所述一个或者多个处理器21执行时,执行上述实施例1中的巡检路线控制方法。The program instructions/modules are stored in the memory 22, and when executed by the one or more processors 21, the inspection route control method in the above-mentioned Embodiment 1 is executed.

值得说明的是,上述装置和系统内的模块、单元之间的信息交互、执行过程等内容,由于与本发明的处理方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。It is worth noting that the information interaction and execution process between the above-mentioned devices and modules and units in the system are based on the same concept as the processing method embodiments of the present invention. For specific content, please refer to the description in the method embodiments of the present invention. , which will not be described again here.

本领域普通技术人员可以理解实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random AccessMemory)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium can include: Read memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (10)

1. The method for controlling the routing inspection route is characterized by comprising the following steps of:
acquiring distance information of an environment by using a laser radar sensor, and constructing an environment map according to the distance information; acquiring image data of an environment by using a camera, and identifying obstacles in the environment from the image data;
and designating a corresponding starting point and a corresponding terminal point in the environment map, and planning to obtain a routing inspection route by using a path planning algorithm based on the environment map, the obstacle, the starting point and the terminal point so that the routing inspection device can inspect according to the routing inspection route.
2. The method according to claim 1, wherein when performing routing for a single routing device, the routing algorithm is used to route the routing based on the environment map, the obstacle, the starting point and the destination, and the routing method specifically includes:
taking the time required for reaching the end point from the start point not exceeding the preset maximum time as a first constraint function, taking the energy consumed for reaching the end point from the start point not exceeding the preset maximum energy as a second constraint function, and taking the path from the start point to the end point as a third constraint function without passing through an obstacle;
Generating a corresponding objective function by taking one or more of the shortest path from the starting point to the end point, the shortest time from the starting point to the end point and the minimum number of times of adjusting the direction required for reaching the end point from the starting point as a planning target;
establishing a path planning model by combining the objective function, the first constraint function, the second constraint function and the third constraint function;
and solving the path planning model to obtain the routing inspection route.
3. The inspection route control method according to claim 1, wherein one or more terminal points are designated when performing inspection route planning for a plurality of inspection devices; the method for planning and obtaining the routing inspection route by using a path planning algorithm based on the environment map, the obstacle, the starting point and the end point comprises the following steps:
taking the time required by each inspection device to reach the corresponding terminal point from the corresponding starting point as a first constraint function, taking the energy consumed by each inspection device to reach the corresponding terminal point from the corresponding starting point as a second constraint function, taking the path of each inspection device to reach the corresponding terminal point from the corresponding starting point as a third constraint function without passing through an obstacle, and taking the path of each inspection device to reach the corresponding terminal point as a fourth constraint function;
Generating a corresponding objective function by taking one or more of the shortest total path of all the inspection devices from the corresponding starting point to the corresponding end point, the shortest total time of all the inspection devices from the corresponding starting point to the corresponding end point and the smallest total number of times of adjustment of all the inspection devices from the corresponding starting point to the corresponding end point as a planning target;
establishing a path planning model by combining the objective function, the first constraint function, the second constraint function, the third constraint function and the fourth constraint function;
and solving the path planning model to obtain the inspection route of each inspection device.
4. The inspection route control method according to claim 3, wherein the inspection route planning is performed once every predetermined time; the final point of the last routing inspection route is used as the starting point of the next routing inspection route, and the next preset routing inspection position is used as the final point of the next routing inspection route.
5. The inspection route control method according to claim 4, characterized in that the method further comprises:
according to the routing inspection routes which are planned for the routing inspection devices, calculating the residual energy condition of the routing inspection devices before the first routing inspection route is planned, and determining the charging emergency degree of the routing inspection devices according to the residual energy condition;
Acquiring the task emergency degree of the patrol task corresponding to the first patrol route based on the first patrol route planning as the first patrol route planned by the patrol device; and comparing the task emergency degree with the charging emergency degree, and selectively carrying out inspection on the inspection device according to the first inspection route or charging the inspection device according to the comparison result.
6. The method according to claim 5, wherein comparing the task emergency level with the charging emergency level, selectively inspecting the inspection device according to the first inspection route or charging the inspection device according to the comparison result, comprises:
if the emergency degree of charging of the inspection device is higher than the emergency degree of a task corresponding to the inspection task, charging is carried out on the inspection device; the range of the task emergency degree of the inspection task is in a first section, the range of the charging emergency degree of the inspection device is in a second section, the minimum value of the second section is smaller than the minimum value of the first section, and the maximum value of the second section is larger than the maximum value of the first section;
otherwise, the inspection device performs inspection according to the first inspection route.
7. The method according to claim 5, wherein if the inspection device is charged, the inspection device is excluded from the inspection route planning, and the inspection route planning is performed again for other inspection devices.
8. The method according to claim 5, wherein the charging the inspection device comprises:
the method comprises the steps of taking the minimum distance between target charging equipment and the inspection device, the fastest charging of the inspection device by the target charging equipment and the highest balance among the quantity of the inspection devices charged by using each target charging equipment as a planning target, and generating a corresponding target function;
and establishing a charging decision model by using the objective function, solving the charging decision model to obtain target charging equipment for charging the inspection device, and carrying out route planning on the inspection device by taking the target charging equipment as an end point so as to enable the inspection device to reach the position of the target charging equipment for charging.
9. The inspection route control method according to claim 1, wherein each inspection device communicates with a central control platform by wireless, the central control platform also communicates with a control terminal by wireless, the control terminal has a positioning function, an environment map is displayed in the control terminal, and an actual travel path of the inspection device is displayed in the environment map, the method further comprising:
In the advancing process of the inspection device, collecting surrounding environment point cloud data of the path positions of the inspection device, judging that each path position belongs to an indoor area or an outdoor area according to the surrounding environment point cloud data, analyzing the surrounding environment point cloud data to obtain an indoor and outdoor boundary, and building a building map according to the indoor and outdoor boundary;
matching the routing inspection route of the routing inspection device with a building map to obtain each building required to be inspected by the routing inspection device;
if the patrol device detects that an obstacle exists in front in the travelling process, the motion track of the patrol device is adjusted to bypass the obstacle; if the obstacle is identified to be a fixed object, recording an obstacle detouring path which is passed by the inspection device from the start of detouring the obstacle to the return of the planned inspection route, and based on the starting position and the end position of the obstacle detouring path, matching the obstacle detouring path with the planned inspection route to obtain an original planned path, and judging whether the original planned path belongs to an indoor area of a corresponding building;
if the original planning path belongs to an indoor area of a corresponding first building, displaying a blind area mark at the position of the environment map of the control terminal corresponding to the first building, so that a control person can identify the blind area through the environment map and carry the control terminal to carry out manual inspection on the first building;
When a control person clicks the blind area mark and selects to carry out blind area inspection, navigating the control person according to the real-time positioning information of the control terminal; the end point of the navigation route displayed in the environment map is the starting position of the obstacle detouring path;
after the control personnel arrive at the starting position of the obstacle detouring path according to the real-time positioning information of the control terminal, recording the action track of the control personnel, and when the control personnel arrive at the end position of the obstacle detouring path after being identified, matching the action track of the control personnel with the first building, and judging whether the action track enters an indoor area of the first building;
if the action track is judged to enter the indoor area of the first building, displaying the action track in an environment map, displaying a prompt window around the action track, inquiring a control person in the prompt window whether the action track can be used by the patrol device, and providing a confirmation button and a cancel button for the control person to select;
if the control personnel select the confirmation button, the path planning is carried out on the inspection device next time, and when the building to be inspected comprises the first building, the action track is used for replacing part of the paths passing through the first building in the running route so as to conveniently realize the follow-up inspection of the first building by the inspection device.
10. A patrol route control device, characterized by comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor for performing the routing inspection route control method of any one of claims 1-9.
CN202311795004.9A 2023-12-25 2023-12-25 Inspection route control method and device Pending CN117742337A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311795004.9A CN117742337A (en) 2023-12-25 2023-12-25 Inspection route control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311795004.9A CN117742337A (en) 2023-12-25 2023-12-25 Inspection route control method and device

Publications (1)

Publication Number Publication Date
CN117742337A true CN117742337A (en) 2024-03-22

Family

ID=90282860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311795004.9A Pending CN117742337A (en) 2023-12-25 2023-12-25 Inspection route control method and device

Country Status (1)

Country Link
CN (1) CN117742337A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118070236A (en) * 2024-04-24 2024-05-24 扬州善鸿新能源发展有限公司 A device anomaly detection system and method based on precise positioning technology
CN119541071A (en) * 2025-01-21 2025-02-28 霖久智慧(广东)科技有限公司 Intelligent inspection method, device, equipment and medium for robot dog based on power management

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118070236A (en) * 2024-04-24 2024-05-24 扬州善鸿新能源发展有限公司 A device anomaly detection system and method based on precise positioning technology
CN118070236B (en) * 2024-04-24 2025-03-04 扬州善鸿新能源发展有限公司 A device anomaly detection system and method based on precise positioning technology
CN119541071A (en) * 2025-01-21 2025-02-28 霖久智慧(广东)科技有限公司 Intelligent inspection method, device, equipment and medium for robot dog based on power management
CN119541071B (en) * 2025-01-21 2025-04-04 霖久智慧(广东)科技有限公司 Intelligent inspection method, device, equipment and medium for machine dog based on electric quantity management

Similar Documents

Publication Publication Date Title
CN117742337A (en) Inspection route control method and device
CN113156980B (en) A method and system for path planning of tower cranes based on deep reinforcement learning
CN106249750A (en) Autonomous type unmanned vehicle decision-making
CN117739990A (en) Navigation method and device for inspection robot
CN114756034B (en) Robot real-time obstacle avoidance path planning method and device
CN103884330A (en) Information processing method, mobile electronic device, guidance device, and server
Zhang et al. Design of intelligent fire-fighting robot based on multi-sensor fusion and experimental study on fire scene patrol
CN113134187A (en) Multi-fire-fighting inspection cooperative robot system based on integral reinforcement learning
CN118760204A (en) Path planning method for intelligent inspection of drones at construction sites
US20240375289A1 (en) Methods and systems for safe maintenance of underground pipeline corridor based on smart gas regulatory internet of things
CN118625815A (en) Intelligent obstacle avoidance control system for transporters in the field
CN118512739A (en) Fire-fighting robot control method, device and equipment of electrochemical energy storage power station
CN118310508A (en) A cargo handling machine path planning system and path planning method
CN117733854A (en) Operation and maintenance management method and device for composite robot
Terzi et al. A unified framework for reliable multi-drone tasking in emergency response missions
CN116629106A (en) Quasi-digital twin method, system, equipment and medium for mobile robot operation scene
Bhargava et al. A review of recent advances, techniques, and control algorithms for automated guided vehicle systems
CN118376251B (en) A route collaborative control method and system for multiple inspection robots
CN116804552A (en) Multi-bionic robot dog cross-floor three-dimensional inspection method and system
CN117968694A (en) Path navigation system for photovoltaic cleaning robot
Dujari et al. Adaptive Mayfly Algorithm for UAV Path Planning and Obstacle Avoidance in Indoor Environment
CN114115363B (en) A Multi-UAV Unknown Indoor Space Exploration Method Based on Dynamic Target Tracking
JP2020132350A (en) Cargo handling system and control method
CN114999018A (en) Management system of petrochemical industry pier equipment and facilities
Karamanos et al. A ROS TOOL FOR OPTIMAL ROUTING IN INTRALOGISTICS.

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