[go: up one dir, main page]

CN114690783A - Path planning method of mower and related device - Google Patents

Path planning method of mower and related device Download PDF

Info

Publication number
CN114690783A
CN114690783A CN202210405406.2A CN202210405406A CN114690783A CN 114690783 A CN114690783 A CN 114690783A CN 202210405406 A CN202210405406 A CN 202210405406A CN 114690783 A CN114690783 A CN 114690783A
Authority
CN
China
Prior art keywords
detection information
obstacle
working environment
sensor
determining
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
CN202210405406.2A
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.)
Agilex Robotics Shenzhen Lt
Original Assignee
Agilex Robotics Shenzhen Lt
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 Agilex Robotics Shenzhen Lt filed Critical Agilex Robotics Shenzhen Lt
Priority to CN202210405406.2A priority Critical patent/CN114690783A/en
Publication of CN114690783A publication Critical patent/CN114690783A/en
Priority to PCT/CN2023/087548 priority patent/WO2023202423A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0276Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Harvester Elements (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

本申请实施例公开了一种割草机的路径规划方法及相关装置,方法包括:获取所述传感器对所述作业环境的检测信息和所述作业环境的原始地图,所述传感器设置于所述割草机的所述作业环境中,所述作业环境为所述割草机进行割草作业的环境,所述检测信息用于表征所述作业环境中存在的障碍物,所述原始地图用于表征所述作业环境的地形;根据所述检测信息确定所述障碍物的第一定位信息;根据所述第一定位信息和所述原始地图,确定所述割草机的工作地图;根据所述工作地图确定所述割草机的行驶路线。采用本申请实施例有助于提高检测结果的准确性,同时也有助于降低传感器的故障率。

Figure 202210405406

The embodiment of the present application discloses a path planning method for a lawn mower and a related device. The method includes: acquiring detection information of the working environment by the sensor and an original map of the working environment, and the sensor is arranged in the In the working environment of the lawn mower, the working environment is the environment in which the lawn mower performs a lawn mowing operation, the detection information is used to represent obstacles existing in the working environment, and the original map is used for Characterize the terrain of the working environment; determine the first positioning information of the obstacle according to the detection information; determine the working map of the lawn mower according to the first positioning information and the original map; according to the The work map determines the driving route of the lawnmower. Using the embodiments of the present application helps to improve the accuracy of the detection result, and also helps to reduce the failure rate of the sensor.

Figure 202210405406

Description

割草机的路径规划方法及相关装置Path planning method and related device for lawn mower

技术领域technical field

本申请涉及车联网技术领域,具体涉及一种割草机的路径规划方法及相关装置。The present application relates to the technical field of Internet of Vehicles, and in particular, to a path planning method for a lawn mower and a related device.

背景技术Background technique

随着生活水平的提高,对于修理草坪等繁重琐碎的杂事,人们通常使用割草机来代替人工完成。目前,割草机为了实现避障效果,通常将传感器设置于割草机机身,然而,由于割草机在工作时机身处于颠簸状态,传感器设置在机身中容易导致传感器获取的检测信息不够准确,从而影响检测障碍物的准确度,影响避障效果。因此,如何提升避障的准确性和灵活性,成为亟待解决的问题。With the improvement of living standards, people usually use lawn mowers instead of manual work for tedious and trivial chores such as lawn maintenance. At present, in order to achieve the effect of avoiding obstacles, the lawnmower usually installs the sensor on the body of the lawnmower. However, since the body of the lawnmower is in a bumpy state, the sensor is arranged in the body, which easily leads to the detection information obtained by the sensor. It is not accurate enough, thus affecting the accuracy of detecting obstacles and affecting the effect of obstacle avoidance. Therefore, how to improve the accuracy and flexibility of obstacle avoidance has become an urgent problem to be solved.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种割草机的路径规划方法及相关装置,有助于提高检测结果的准确性,同时也有助于降低传感器的故障率。The embodiments of the present application provide a path planning method and a related device for a lawn mower, which help to improve the accuracy of detection results and also help to reduce the failure rate of sensors.

第一方面,本申请实施例提供一种割草机的路径规划方法,所述方法包括:In a first aspect, an embodiment of the present application provides a path planning method for a lawn mower, the method comprising:

获取所述传感器对所述作业环境的检测信息和所述作业环境的原始地图,所述传感器设置于所述割草机的所述作业环境中,所述作业环境为所述割草机进行割草作业的环境,所述检测信息用于表征所述作业环境中存在的障碍物,所述原始地图用于表征所述作业环境的地形;Obtain the detection information of the working environment by the sensor and the original map of the working environment, the sensor is arranged in the working environment of the lawn mower, and the working environment is for the lawn mower to cut The grass working environment, the detection information is used to characterize the obstacles existing in the working environment, and the original map is used to characterize the terrain of the working environment;

根据所述检测信息确定所述障碍物的第一定位信息;Determine the first positioning information of the obstacle according to the detection information;

根据所述第一定位信息和所述原始地图,确定所述割草机的工作地图;According to the first positioning information and the original map, determine the working map of the lawn mower;

根据所述工作地图确定所述割草机的行驶路线。The driving route of the lawn mower is determined according to the working map.

第二方面,本申请实施例提供一种割草机的路径规划系统,所述系统包括:In a second aspect, embodiments of the present application provide a path planning system for a lawn mower, the system comprising:

传感器,所述传感器设置于割草机的作业环境中,所述作业环境为所述割草机进行割草作业的环境,所述传感器用于对所述作业环境进行检测,得到检测信息,所述检测信息用于表征所述作业环境中存在的障碍物;A sensor, the sensor is arranged in the working environment of the lawn mower, and the working environment is the environment where the lawn mower performs the mowing operation, and the sensor is used to detect the working environment and obtain the detection information, so The detection information is used to characterize the obstacles existing in the working environment;

服务器,所述服务器与所述传感器通信连接,所述服务器用于获取所述检测信息和所述作业环境的原始地图,所述原始地图用于表征所述作业环境的地形;及用于根据所述检测信息确定所述障碍物的第一定位信息;及用于根据所述第一定位信息和所述原始地图,确定所述割草机的工作地图;以及用于根据所述工作地图确定所述割草机的行驶路线;A server, the server is connected in communication with the sensor, and the server is used for acquiring the detection information and an original map of the working environment, where the original map is used to represent the terrain of the working environment; The detection information determines the first positioning information of the obstacle; and is used to determine the working map of the lawn mower according to the first positioning information and the original map; and is used to determine the working map according to the working map. Describe the driving route of the lawn mower;

割草机,所述割草机与所述服务器通信连接,所述割草机用于接收所述服务器发送的所述行驶路线。A lawn mower, the lawn mower is connected in communication with the server, and the lawn mower is configured to receive the driving route sent by the server.

第三方面,本申请实施例提供一种割草机路径规划装置,所述装置包括:获取单元和确定单元,其中,In a third aspect, an embodiment of the present application provides an apparatus for planning a path of a lawn mower, the apparatus comprising: an acquisition unit and a determination unit, wherein,

所述获取单元,用于获取所述传感器对所述作业环境的检测信息和所述作业环境的原始地图,所述传感器设置于所述割草机的所述作业环境中,所述作业环境为所述割草机进行割草作业的环境,所述检测信息用于表征所述作业环境中存在的障碍物,所述原始地图用于表征所述作业环境的地形;The acquiring unit is configured to acquire the detection information of the working environment by the sensor and the original map of the working environment, the sensor is arranged in the working environment of the lawn mower, and the working environment is the environment in which the lawnmower performs the mowing operation, the detection information is used to characterize the obstacles existing in the operation environment, and the original map is used to characterize the terrain of the operation environment;

所述确定单元,用于根据所述检测信息确定所述障碍物的第一定位信息;the determining unit, configured to determine the first positioning information of the obstacle according to the detection information;

所述确定单元,还用于根据所述第一定位信息和所述原始地图,确定所述割草机的工作地图;The determining unit is further configured to determine the working map of the lawn mower according to the first positioning information and the original map;

所述确定单元,还用于根据所述工作地图确定所述割草机的行驶路线。The determining unit is further configured to determine the driving route of the lawn mower according to the working map.

第四方面,本申请实施例提供了一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面中的步骤的指令。In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and are configured by the above Executed by the processor, the above program includes instructions for executing the steps in the first aspect of the embodiments of the present application.

第五方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤的指令。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the computer program as described in the first embodiment of the present application. Instructions for some or all of the steps described in an aspect.

第六方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括计算机程序,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。In a sixth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and the computer program is operable to cause a computer to execute part or all of the first aspect of the embodiment of the present application. step.

实施本申请实施例,具备如下有益效果:Implementing the embodiments of the present application has the following beneficial effects:

可以看出,本申请实施例中所描述的割草机的路径规划方法及相关装置,传感器设置于割草机的作业环境中,获取传感器对作业环境的检测信息,检测信息用于表征作业环境中存在的障碍物,根据检测信息确定障碍物的第一定位信息,获取作业环境的原始地图,原始地图用于表征作业环境的地形,根据第一定位信息和原始地图,确定割草机的工作地图,根据工作地图确定割草机的行驶路线;如此,将传感器设置于作业环境中,确保传感器处于相对平稳的环境状态中,有助于确保传感器检测结果的准确性,进而有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障,同时,平稳的环境状态也有助于降低传感器的故障率,帮助降低割草机的使用成本,优化用户体验。It can be seen that in the path planning method and related device of the lawn mower described in the embodiments of the present application, the sensor is arranged in the working environment of the lawn mower, and the detection information of the working environment by the sensor is obtained, and the detection information is used to characterize the working environment. The first positioning information of the obstacle is determined according to the detection information, and the original map of the working environment is obtained. The original map is used to represent the terrain of the working environment, and the work of the lawn mower is determined according to the first positioning information and the original map. Map, according to the working map to determine the driving route of the lawn mower; in this way, the sensor is set in the working environment to ensure that the sensor is in a relatively stable environment, which helps to ensure the accuracy of the detection result of the sensor, and then helps to ensure the correctness of the sensor. The accurate positioning of obstacles helps the lawn mower to achieve precise and flexible obstacle avoidance. At the same time, the stable environmental state also helps to reduce the failure rate of the sensor, helps reduce the use cost of the lawn mower, and optimizes the user experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1A是本申请实施例提供的一种电子设备的结构示意图;FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图1B是本申请实施例提供的一种割草机的路径规划方法的流程示意图;1B is a schematic flowchart of a path planning method for a lawn mower provided by an embodiment of the present application;

图2是本申请实施例提供的一种割草机的路径规划方法的流程示意图;2 is a schematic flowchart of a path planning method for a lawn mower provided by an embodiment of the present application;

图3是本申请实施例提供的一种电子设备的结构示意图;3 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

图4A是本申请实施例提供的一种割草机路径规划装置的功能单元组成框图;4A is a block diagram of functional units of a lawn mower path planning device provided in an embodiment of the present application;

图4B是本申请实施例提供的一种割草机路径规划装置的功能单元组成框图;4B is a block diagram of functional units of a lawnmower path planning device provided in an embodiment of the present application;

图5是本申请实施例提供的一种割草机的路径规划系统的示意图。FIG. 5 is a schematic diagram of a path planning system for a lawn mower provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。术语“多个”可指两个或两个以上,后续不再赘述。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices. The term "plurality" may refer to two or more than two, which will not be repeated hereafter.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

本申请涉及到的关键概念和术语包括但不限于以下:The key concepts and terms involved in this application include but are not limited to the following:

(1)电子设备可以是手机、平板电脑、具备无线通讯功能的可穿戴电子设备(如智能手表)等。便携式电子设备的示例性实施例包括但不限于搭载IOS系统、Android系统、Microsoft系统或者其它操作系统的便携式电子设备。上述便携式电子设备也可以是其它便携式电子设备,诸如膝上型计算机(Laptop)等。还应当理解的是,在其他一些实施例中,上述电子设备也可以不是便携式电子设备,而是台式计算机。电子设备还可以包括服务器、割草机等,在此不做限定。(1) The electronic device may be a mobile phone, a tablet computer, a wearable electronic device (such as a smart watch) with a wireless communication function, and the like. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices powered by IOS systems, Android systems, Microsoft systems, or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop) or the like. It should also be understood that, in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer. The electronic devices may also include servers, lawn mowers, etc., which are not limited herein.

随着生活水平的提高,对于修理草坪等繁重琐碎的杂事,人们通常使用割草机来代替人工完成。目前,割草机为了实现避障效果,通常将传感器设置于割草机机身,然而,由于割草机在工作时机身处于颠簸状态,传感器设置在机身中容易导致传感器获取的检测信息不够准确,从而影响检测障碍物的准确度,影响避障效果。因此,如何提升避障的准确性和灵活性,成为亟待解决的问题。With the improvement of living standards, people usually use lawn mowers instead of manual work for tedious and trivial chores such as lawn maintenance. At present, in order to achieve the effect of avoiding obstacles, the lawnmower usually installs the sensor on the body of the lawnmower. However, since the body of the lawnmower is in a bumpy state, the sensor is arranged in the body, which easily leads to the detection information obtained by the sensor. It is not accurate enough, thus affecting the accuracy of detecting obstacles and affecting the effect of obstacle avoidance. Therefore, how to improve the accuracy and flexibility of obstacle avoidance has become an urgent problem to be solved.

基于上述问题,本申请提供一种割草机的路径规划方法及相关装置,下面结合附图进行详细说明。Based on the above problems, the present application provides a path planning method and related device for a lawn mower, which will be described in detail below with reference to the accompanying drawings.

请参阅图1A,图1A是本申请实施例提供的一种电子设备的结构示意图。该电子设备包括处理器和存储器等等。其中,存储器与处理器连接。处理器是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器内的软件程序和/或模块,以及调用存储在存储器内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控,处理器可以为中央处理器(Central Processing Unit/Processor,CPU)、图形处理器(Graphics Processing Unit,GPU)或者网络处理器(Neural-network Processing Unit,NPU)。Please refer to FIG. 1A . FIG. 1A is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device includes a processor and memory, among others. Wherein, the memory is connected with the processor. The processor is the control center of the electronic equipment, using various interfaces and lines to connect various parts of the entire electronic equipment, by running or executing the software programs and/or modules stored in the memory, and calling the data stored in the memory. Various functions and processing data of the device, so as to monitor the electronic device as a whole, the processor can be a central processing unit (Central Processing Unit/Processor, CPU), a graphics processing unit (Graphics Processing Unit, GPU) or a network processor (Neural -Network Processing Unit, NPU).

进一步地,处理器可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器中。Further, the processor may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor.

其中,存储器用于存储软件程序和/或模块,处理器通过运行存储在存储器的软件程序和/或模块,从而执行电子设备的各种功能应用。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的软件程序等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory is used to store software programs and/or modules, and the processor executes various functional applications of the electronic device by running the software programs and/or modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a software program required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, and the like. Additionally, the memory 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 volatile solid state storage device.

请参阅图1B,图1B是本申请实施例提供的一种割草机的路径规划方法的流程示意图,如图所示,应用于如图1A所示的电子设备,电子设备可以是服务器,也可以是割草机,在此不做限定。本割草机的路径规划方法包括如下步骤:Please refer to FIG. 1B . FIG. 1B is a schematic flowchart of a path planning method for a lawn mower provided by an embodiment of the present application. As shown in the figure, it is applied to the electronic device shown in FIG. 1A . The electronic device may be a server, or It can be a lawn mower, which is not limited here. The path planning method of the lawn mower includes the following steps:

步骤101、获取所述传感器对所述作业环境的检测信息和所述作业环境的原始地图。Step 101: Acquire detection information of the working environment by the sensor and an original map of the working environment.

步骤102、根据所述检测信息确定所述障碍物的第一定位信息。Step 102: Determine first positioning information of the obstacle according to the detection information.

步骤103、根据所述第一定位信息和所述原始地图,确定所述割草机的工作地图。Step 103: Determine a working map of the lawn mower according to the first positioning information and the original map.

步骤104、根据所述工作地图确定所述割草机的行驶路线。Step 104: Determine the driving route of the lawn mower according to the working map.

其中,上述传感器可以是多种类型或单一类型的传感器,例如声波类传感器、图像类传感器、热学传感器、力学传感器等,在此不做限定。声波类传感器可用于障碍物或割草机的远距离测量和定位。图像类传感器可用于障碍物的具体识别,例如识别草坪上的飞禽、走兽、人、车、石、木等。热学传感器可用于识别人或动物等活体动物,避免割草机作业过程中发生误伤,确保作业安全。力学传感器例如压觉传感器、接触觉传感器可作为最后的安全防线,触觉传感器可以设置在草坪边界处,在触觉传感器与割草机发生碰撞时,控制割草机停止运行或改道运行。Wherein, the above-mentioned sensors may be of multiple types or a single type of sensors, such as acoustic wave sensors, image sensors, thermal sensors, mechanical sensors, etc., which are not limited herein. Acoustic sensors can be used to measure and locate obstacles or lawn mowers from a distance. Image sensors can be used for specific identification of obstacles, such as identifying birds, beasts, people, vehicles, stones, and trees on the lawn. Thermal sensors can be used to identify live animals such as people or animals to avoid accidental injuries during the operation of the lawnmower and ensure safe operation. Mechanical sensors such as pressure sensors and touch sensors can be used as the last line of defense, and tactile sensors can be set at the border of the lawn. When the tactile sensor collides with the lawnmower, it can control the lawnmower to stop running or reroute.

在一实施方式中,由于感知不同类型或不同环境下的障碍物位置时所适用的传感器不尽相同,因此可将多种类型的传感器可同时设置在作业环境中,不同类型传感器之间互补优缺,有助于实现对作业环境的精确检测和全面检测。In one embodiment, since the sensors applicable to sensing the position of obstacles of different types or different environments are not the same, multiple types of sensors can be set in the working environment at the same time, and the complementary advantages of different types of sensors can be achieved. It is helpful to achieve accurate detection and comprehensive detection of the operating environment.

传感器的数量可以是一个,也可以是多个,在此不做限定。例如传感器可以包括超声波雷达、激光雷达、毫米波雷达、单目摄像头、双目摄像头、深度摄像头、红外传感器、热释传感器、惯性测量单元、具有定位功能的传感器、触觉传感器等,在此不做限定。具有定位功能的传感器可以装载全球可用的导航卫星系统,例如北斗三代卫星导航系统(BDS),全球卫星定位系统(GPS),格洛纳斯卫星导航系统(GLONASS)、伽利略卫星导航系统(GALILEO),也可以装载区域导航系统,例如准天顶系统(QZSS),区域导航卫星系统(IRNSS)等,在此不做限定。The number of sensors may be one or multiple, which is not limited here. For example, sensors can include ultrasonic radar, lidar, millimeter-wave radar, monocular camera, binocular camera, depth camera, infrared sensor, pyroelectric sensor, inertial measurement unit, sensor with positioning function, tactile sensor, etc. limited. Sensors with positioning function can be loaded with globally available navigation satellite systems, such as Beidou 3rd Generation Satellite Navigation System (BDS), Global Positioning System (GPS), GLONASS Satellite Navigation System (GLONASS), Galileo Satellite Navigation System (GALILEO) , and an area navigation system, such as a quasi-zenith system (QZSS), an area navigation satellite system (IRNSS), etc., can also be loaded, which is not limited here.

其中,上述传感器设置于割草机的作业环境中,作业环境为割草机进行割草作业的环境。上述检测信息可以用于表征作业环境中存在的障碍物。例如,使用摄像头对作业环境进行检测,得到的检测信息为图像,对图像进行识别可确定图像中存在的障碍物以及障碍物对应的位置。又如,使用雷达对作业环境进行检测,得到的检测信息为回波,通过回波成像技术对回波进行处理,可确定作业环境中存在的障碍物以及障碍物对应的第一定位信息。再如,使用热释传感器、力学传感器对作业环境进行检测,得到的检测信息可以是相应的电压信号、电流信号等,可用于确定作业环境中是否存在活体动物以及割草机的位置。Wherein, the above-mentioned sensor is installed in the working environment of the lawn mower, and the working environment is an environment in which the lawn mower performs a lawn mowing operation. The above detection information can be used to characterize obstacles existing in the work environment. For example, a camera is used to detect the working environment, and the obtained detection information is an image. By identifying the image, the obstacles existing in the image and the corresponding positions of the obstacles can be determined. For another example, the radar is used to detect the working environment, and the obtained detection information is echoes. The echoes are processed by the echo imaging technology to determine the obstacles existing in the working environment and the first positioning information corresponding to the obstacles. For another example, using pyroelectric sensors and mechanical sensors to detect the working environment, the obtained detection information can be corresponding voltage signals, current signals, etc., which can be used to determine whether there are live animals in the working environment and the location of the lawnmower.

其中,上述第一定位信息可以是障碍物相对于割草机的方位,也可以是障碍物具体的经纬度,还可以是在服务器构建的坐标系统中的定位,在此不做限定。The first positioning information may be the orientation of the obstacle relative to the lawnmower, the specific latitude and longitude of the obstacle, or the positioning in the coordinate system constructed by the server, which is not limited herein.

其中,上述原始地图可以用于表征作业环境的地形,例如平原、高原、丘陵、盆地、山地、河流等,在此不做限定。Wherein, the above-mentioned original map can be used to represent the terrain of the operating environment, such as plains, plateaus, hills, basins, mountains, rivers, etc., which are not limited herein.

具体实现中,电子设备可获取传感器对作业环境的检测信息,根据检测信息确定障碍物的第一定位信息,并根据障碍物的第一定位信息和工作环境的原始地图确定割草机的工作地图。例如,在原始地图中标记出障碍物的第一定位信息,工作地图即为原始地图中没有障碍物且需要进行除草的区域。In the specific implementation, the electronic device can obtain the detection information of the working environment by the sensor, determine the first positioning information of the obstacle according to the detection information, and determine the working map of the lawn mower according to the first positioning information of the obstacle and the original map of the working environment . For example, the first positioning information of the obstacle is marked in the original map, and the working map is the area in the original map that has no obstacles and needs to be weeded.

此外,在割草机进行割草作业时,若作业环境中存在多个障碍物,例如在一个较大的障碍物后方还有一个小型的动态障碍物(如跑动的宠物狗),在传感器安装在割草机机身的情况下,由于光线遮挡、距离遥远等原因,机身上的传感器难以检测到障碍物后方的障碍物,传感器存在检测盲区,对于障碍物后方的障碍物难以进行有效避让。In addition, when the lawnmower is mowing, if there are multiple obstacles in the working environment, such as a small dynamic obstacle (such as a running pet dog) behind a larger obstacle, the sensor will When installed on the body of the lawnmower, due to light occlusion, long distance, etc., it is difficult for the sensors on the body to detect the obstacles behind the obstacles. avoid.

在传感器设置于割草机的作业环境中的情况下,由于传感器脱离割草机设置于草坪护栏、电线杆等物体上,传感器的检测范围较大,如此有助于缩小传感器的检测盲区,有助于解决上述多个障碍物相互遮挡造成的避障问题,帮助割草机实现精准灵活避障。In the case where the sensor is installed in the working environment of the lawn mower, since the sensor is separated from the lawn mower and installed on objects such as lawn guardrails, utility poles, etc., the detection range of the sensor is large, which helps to reduce the detection blind area of the sensor. Helps solve the obstacle avoidance problem caused by the mutual occlusion of the above-mentioned multiple obstacles, and helps the lawn mower achieve accurate and flexible obstacle avoidance.

在工作地图中确定割草机的行驶路线时,可以是根据用户输入在工作地图中确定割草机的行驶路线,也可以是由研发人员预设某一行驶路线,还可以是由电子设备根据工作地图的地形、所割的草的种类、割草机的电量等因素灵活设定,在此不做限定。When determining the driving route of the lawn mower in the work map, the driving route of the lawn mower can be determined in the work map according to the user input, or a certain driving route can be preset by the research and development personnel, or the electronic device can determine the driving route of the lawn mower according to the user input. Factors such as the terrain of the work map, the type of grass to be cut, and the power of the lawn mower can be set flexibly, which are not limited here.

可以看出,本申请实施方式中,传感器设置于割草机的作业环境中,电子设备可获取传感器对作业环境的检测信息,检测信息用于表征作业环境中存在的障碍物,根据检测信息确定障碍物的第一定位信息,获取作业环境的原始地图,原始地图用于表征作业环境的地形,根据第一定位信息和原始地图,确定割草机的工作地图,根据工作地图确定割草机的行驶路线,向割草机发送行驶路线;如此,将传感器设置于作业环境中,确保传感器处于相对平稳的环境状态中,有助于确保传感器检测结果的准确性,进而有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障,同时,平稳的环境状态也有助于降低传感器的故障率,帮助降低割草机的使用成本,优化用户体验。It can be seen that in the embodiment of the present application, the sensor is arranged in the working environment of the lawn mower, and the electronic device can obtain the detection information of the sensor on the working environment, and the detection information is used to characterize the obstacles existing in the working environment, and is determined according to the detection information. The first positioning information of the obstacle, the original map of the working environment is obtained, the original map is used to represent the terrain of the working environment, the working map of the lawn mower is determined according to the first positioning information and the original map, and the working map of the lawn mower is determined according to the working map. Driving route, sending the driving route to the lawn mower; in this way, the sensor is set in the working environment to ensure that the sensor is in a relatively stable environment, which helps to ensure the accuracy of the detection result of the sensor, which in turn helps to ensure that obstacles are detected. The accurate positioning helps the lawn mower to achieve precise and flexible obstacle avoidance. At the same time, the stable environmental state also helps to reduce the failure rate of the sensor, helps reduce the use cost of the lawn mower, and optimizes the user experience.

在一个可能的示例中,服务器获取传感器对作业环境的检测信息和作业环境的原始地图,服务器根据检测信息确定障碍物的第一定位信息,服务器根据第一定位信息和原始地图确定割草机的工作地图,服务器根据工作地图确定割草机的行驶路线。服务器将行驶路线向割草机发送,割草机接收行驶路线,并根据行驶路线进行割草。如此,有助于实现服务器对割草机的统一管控。In a possible example, the server obtains the detection information of the working environment by the sensor and the original map of the working environment, the server determines the first positioning information of the obstacle according to the detection information, and the server determines the first positioning information of the lawn mower according to the first positioning information and the original map. Working map, the server determines the driving route of the lawn mower according to the working map. The server sends the driving route to the lawn mower, and the lawn mower receives the driving route and cuts grass according to the driving route. In this way, it is helpful to realize the unified management and control of the lawn mower by the server.

在一个可能的示例中,服务器获取传感器对作业环境的检测信息和作业环境的原始地图,服务器根据检测信息确定障碍物的第一定位信息,并向割草机发送第一定位信息和原始地图。割草机接收第一定位信息和原始地图,割草机根据第一定位信息和原始地图确定工作地图。如此,有助于减轻服务器端的数据处理压力。In a possible example, the server obtains the detection information of the working environment by the sensor and the original map of the working environment, the server determines the first positioning information of the obstacle according to the detection information, and sends the first positioning information and the original map to the lawn mower. The lawnmower receives the first positioning information and the original map, and the lawnmower determines the working map according to the first positioning information and the original map. In this way, it helps to reduce the data processing pressure on the server side.

在一个可能的示例中,服务器获取传感器对作业环境的检测信息和作业环境的原始地图,并向割草机发送检测信息和原始地图。割草机根据检测信息确定障碍物的第一定位信息,割草机根据第一定位信息和原始地图确定工作地图,割草机根据工作地图确定行驶路线。如此,有助于进一步减轻服务器端的数据处理压力。In a possible example, the server acquires the detection information of the working environment by the sensor and the original map of the working environment, and sends the detection information and the original map to the lawn mower. The lawnmower determines the first positioning information of the obstacle according to the detection information, the lawnmower determines the working map according to the first positioning information and the original map, and the lawnmower determines the driving route according to the working map. In this way, it helps to further reduce the data processing pressure on the server side.

在一个可能的示例中,割草机获取传感器对作业环境的检测信息和作业环境的原始地图,割草机根据检测信息确定障碍物的第一定位信息,割草机根据第一定位信息和原始地图确定工作地图,割草机根据工作地图确定行驶路线。如此,有助于减少割草机与服务器之间的交互次数,有助于降低网络通信因素对割草机的影响。In a possible example, the lawnmower obtains the detection information of the working environment by the sensor and the original map of the working environment, the lawnmower determines the first positioning information of the obstacle according to the detection information, and the lawnmower determines the first positioning information of the obstacle according to the first positioning information and the original map of the working environment. The map determines the working map, and the lawnmower determines the driving route according to the working map. In this way, the number of interactions between the lawnmower and the server can be reduced, and the influence of the network communication factor on the lawnmower can be reduced.

在一个可能的示例中,所述检测信息包括第一时间对应的第一子检测信息和第二时间对应的第二子检测信息,上述步骤102,根据所述检测信息确定所述障碍物的第一定位信息,可以包括如下步骤:In a possible example, the detection information includes first sub-detection information corresponding to a first time and second sub-detection information corresponding to a second time, and in step 102 above, determine the first sub-detection information of the obstacle according to the detection information. A positioning information may include the following steps:

步骤1021、根据所述第一子检测信息和所述第二子检测信息,确定所述障碍物是否发生位移;Step 1021: Determine whether the obstacle is displaced according to the first sub-detection information and the second sub-detection information;

步骤1022、在所述障碍物发生位移的情况下,将所述障碍物对应的类型确定为动态障碍物;Step 1022, in the case that the obstacle is displaced, determine the type corresponding to the obstacle as a dynamic obstacle;

步骤1023、根据所述第一子检测信息和所述第二子检测信息,对所述障碍物的位置进行预测,得到预测位置;Step 1023: Predict the position of the obstacle according to the first sub-detection information and the second sub-detection information to obtain the predicted position;

步骤1024、将所述预测位置和当前位置确定为所述动态障碍物的所述第一定位信息。Step 1024: Determine the predicted position and the current position as the first positioning information of the dynamic obstacle.

具体实现中,若第一时间在第二时间之前,可根据第一子检测信息确定所述障碍物的历史位置,根据第二子检测信息确定障碍物的当前位置。反之,若第二时间在第一时间之前,则根据第二子检测信息确定所述障碍物的历史位置,根据第一子检测信息确定障碍物的当前位置。In a specific implementation, if the first time is before the second time, the historical position of the obstacle may be determined according to the first sub-detection information, and the current position of the obstacle may be determined according to the second sub-detection information. Conversely, if the second time is before the first time, the historical position of the obstacle is determined according to the second sub-detection information, and the current position of the obstacle is determined according to the first sub-detection information.

若历史位置和当前位置不一致,则可确定障碍物发生位移。在障碍物发生位移的情况下,将障碍物对应的类型确定为动态障碍物。由于动态障碍物在下一时刻仍有可能继续发生位移,因此,可以对动态障碍物在下一时刻的位置进行预测,并将预测位置和当前位置共同作为动态障碍物的第一定位信息。如此,不仅考虑到动态障碍物的当前位置,还将预测位置也纳入考虑范围,在割草机进行割草作业时,若动态障碍物在下一时刻发生位移,能够帮助割草机对动态障碍物进行精确避让。If the historical position and the current position are inconsistent, it can be determined that the obstacle is displaced. When the obstacle is displaced, the corresponding type of the obstacle is determined as a dynamic obstacle. Since the dynamic obstacle may continue to move at the next moment, the position of the dynamic obstacle at the next moment can be predicted, and the predicted position and the current position can be used together as the first positioning information of the dynamic obstacle. In this way, not only the current position of the dynamic obstacle, but also the predicted position is taken into consideration. When the lawnmower is mowing, if the dynamic obstacle is displaced at the next moment, it can help the lawnmower to deal with the dynamic obstacle. Make precise avoidance.

进一步地,可以间隔预定时间执行步骤1021,预定时间可以是5秒、10秒、30秒、1分钟、3分钟、5分钟、7分钟、10分钟等,如此,有助于实现动态障碍物的精准定位,进而有助于割草机对动态障碍物的精准避让。Further, step 1021 may be performed at predetermined time intervals, and the predetermined time may be 5 seconds, 10 seconds, 30 seconds, 1 minute, 3 minutes, 5 minutes, 7 minutes, 10 minutes, etc., thus, it is helpful to realize the dynamic obstacle detection. Precise positioning, which in turn helps the mower to precisely avoid dynamic obstacles.

可选地,在上述步骤1024,将所述预测位置和当前位置确定为所述动态障碍物的所述第一定位信息之后,所述方法还可以包括如下步骤:Optionally, after determining the predicted position and the current position as the first positioning information of the dynamic obstacle in the above step 1024, the method may further include the following steps:

步骤01、获取所述割草机的第二定位信息和运动信息,所述运动信息包括以下至少一项:所述割草机的当前运动速度、运动加速度和车轮偏转角度。Step 01. Acquire second positioning information and motion information of the lawn mower, where the motion information includes at least one of the following: the current motion speed, motion acceleration and wheel deflection angle of the lawn mower.

步骤02、根据所述第二定位信息和所述运动信息,确定所述割草机的行驶路线。Step 02: Determine the driving route of the lawn mower according to the second positioning information and the motion information.

步骤03、根据所述第一定位信息和所述行驶路线,确定所述割草机与所述动态障碍物是否相遇。Step 03: Determine whether the lawn mower meets the dynamic obstacle according to the first positioning information and the driving route.

步骤04、若所述割草机与所述动态障碍物相遇,则确定所述割草机与所述动态障碍物的相遇时间。Step 04: If the lawn mower meets the dynamic obstacle, determine the meeting time between the lawn mower and the dynamic obstacle.

步骤05、若所述相遇时间小于或等于预设的时长阈值,则向所述割草机发送避让信息。Step 05: If the encounter time is less than or equal to a preset duration threshold, send avoidance information to the lawn mower.

其中,上述预设的时长阈值可以是根据割草机的当前运动速度、运动加速度、割草机与障碍物的距离等因素综合设定,在此不做限定。The above-mentioned preset duration threshold may be comprehensively set according to factors such as the current motion speed of the lawn mower, the motion acceleration, and the distance between the lawn mower and the obstacle, which is not limited herein.

具体实现中,可以通过割草机的运动速度、运动加速度和车轮偏转角度确定割草机对应的行驶路线。若割草机的行驶路线与动态障碍物的定位信息重叠,也即是说,割草机可能与动态障碍物相遇,且相遇时间小于或等于预设的时长阈值,此时服务器可向割草机发送避让信息,以控制割草机对障碍物进行避让。In a specific implementation, the driving route corresponding to the lawn mower may be determined by the movement speed, movement acceleration and wheel deflection angle of the lawn mower. If the driving route of the lawnmower overlaps with the positioning information of the dynamic obstacle, that is to say, the lawnmower may encounter the dynamic obstacle, and the meeting time is less than or equal to the preset time duration threshold, then the server can send the lawnmower to the lawnmower. The machine sends avoidance information to control the lawnmower to avoid obstacles.

若割草机的行驶路线与动态障碍物的定位信息不重叠,则无需向割草机发送避让信息,割草机可按照行驶路线继续行驶。If the driving route of the lawn mower does not overlap with the positioning information of the dynamic obstacle, there is no need to send avoidance information to the lawn mower, and the lawn mower can continue to drive according to the driving route.

若割草机与动态障碍物的相遇时间大于预设的时长阈值,考虑到动态障碍物的定位信息仍有可能发生变化,此时可以向与服务器通信的客户端发送告警信息,对用户进行提示,用户可根据实际情况对割草机进行控制。若用户未对割草机的行驶路线进行调整,则可待割草机与动态障碍物的相遇时间小于或等于预设的时长阈值时,再由服务器向割草机发送避让信息,控制割草机进行避障。If the encounter time between the lawnmower and the dynamic obstacle is greater than the preset duration threshold, considering that the positioning information of the dynamic obstacle may still change, an alarm message can be sent to the client communicating with the server at this time to remind the user , the user can control the lawn mower according to the actual situation. If the user does not adjust the driving route of the lawn mower, the server can send avoidance information to the lawn mower to control the mowing when the encounter time between the lawn mower and the dynamic obstacle is less than or equal to the preset duration threshold. machine to avoid obstacles.

进一步地,在同一作业环境中存在多个割草机同时进行作业的情况下,也可同理适用本实施例中的避障方案,此时可在服务器端执行本申请实施例提供的路径规划方法。对于某一割草机而言,在同一作业环境中的其余割草机相当于动态障碍物,在多个割草机的行驶路线重叠时,服务器可控制其中一个或多个割草机进行避让。如此,在确保割草机割草效果的同时,相较于在割草机端执行本申请实施例提供的路径规划方法,在服务器端执行本申请实施例提供的路径规划方法还有助于减少服务器的数据计算量。Further, in the case where multiple lawn mowers operate simultaneously in the same working environment, the obstacle avoidance scheme in this embodiment can also be applied in the same way, and the path planning provided by the embodiment of this application can be executed on the server side at this time. method. For a certain lawn mower, other lawn mowers in the same working environment are equivalent to dynamic obstacles. When the driving routes of multiple lawn mowers overlap, the server can control one or more of them to avoid them. . In this way, while ensuring the mowing effect of the lawn mower, compared to executing the path planning method provided by the embodiment of the present application on the lawn mower end, executing the path planning method provided by the embodiment of the present application on the server side can also help reduce The amount of data computation on the server.

可以看出,本申请实施例中,电子设备可获取割草机的第二定位信息和运动信息,运动信息包括以下至少一项:割草机的当前运动速度、运动加速度和车轮偏转角度,根据第二定位信息和运动信息,确定割草机的行驶路线,根据第一定位信息和行驶路线,确定割草机与动态障碍物是否相遇,若割草机与动态障碍物相遇,则确定割草机与动态障碍物的相遇时间,若相遇时间小于或等于预设的时长阈值,则向割草机发送避让信息;如此,在确保避障准确性的同时,还有助于确保割草效果,优化用户体验。It can be seen that, in this embodiment of the present application, the electronic device can obtain the second positioning information and motion information of the lawn mower, and the motion information includes at least one of the following: the current motion speed, motion acceleration, and wheel deflection angle of the lawn mower, according to The second positioning information and motion information are used to determine the driving route of the lawn mower. According to the first positioning information and the driving route, it is determined whether the lawn mower meets the dynamic obstacle. If the lawn mower meets the dynamic obstacle, the lawn mower is determined to be cut. The encounter time between the machine and the dynamic obstacle, if the encounter time is less than or equal to the preset duration threshold, the avoidance information will be sent to the lawn mower; in this way, while ensuring the accuracy of obstacle avoidance, it also helps to ensure the effect of mowing, Optimize user experience.

在一个可能的示例中,上述步骤102,根据所述检测信息确定所述障碍物的第一定位信息可以包括如下步骤:In a possible example, in the above step 102, determining the first positioning information of the obstacle according to the detection information may include the following steps:

步骤1025、在所述障碍物未发生位移的情况下,将所述障碍物对应的所述类型确定为静态障碍物。Step 1025: In the case that the obstacle has not been displaced, determine the type corresponding to the obstacle as a static obstacle.

步骤1026、将所述当前位置确定为所述静态障碍物的所述第一定位信息。Step 1026: Determine the current position as the first positioning information of the static obstacle.

具体实现中,由前文可知,若障碍物的历史位置和当前位置一致,则可确定障碍物未发生位移。在障碍物发生位移的情况下,将障碍物对应的类型确定为静态障碍物。由于静态障碍物在下一时刻发生位移的可能性较小,因此,可直接将静态障碍物的当前位置作为第一定位信息。如此,有助于确保割草机的工作地图覆盖较大范围,尽可能对较大范围的区域进行割草,有助于确保割草效果。In the specific implementation, as can be seen from the foregoing, if the historical position of the obstacle is consistent with the current position, it can be determined that the obstacle has not displaced. When the obstacle is displaced, the corresponding type of the obstacle is determined as a static obstacle. Since the static obstacle is less likely to be displaced at the next moment, the current position of the static obstacle can be directly used as the first positioning information. In this way, it helps to ensure that the working map of the lawn mower covers a larger area, and mows a larger area as much as possible, which helps to ensure the effect of mowing.

在一个可能的示例中,所述第一子检测信息和所述第二子检测信息均为图像信息,上述步骤1021,根据所述第一子检测信息和所述第二子检测信息,确定所述障碍物是否发生位移,可以包括如下步骤:In a possible example, the first sub-detection information and the second sub-detection information are both image information. In the above step 1021, according to the first sub-detection information and the second sub-detection information, determine the To determine whether the obstacle is displaced, the following steps can be included:

步骤10211、根据所述图像信息生成检测图像。Step 10211: Generate a detection image according to the image information.

步骤10212、将所述检测图像划分为至少一个区域。Step 10212: Divide the detection image into at least one area.

步骤10213、对于当前区域,确定所述第一子检测信息对应的检测图像的第一色相值和第一明度值。Step 10213: For the current area, determine the first hue value and the first brightness value of the detection image corresponding to the first sub-detection information.

步骤10214、确定所述第二子检测信息对应的检测图像的第二色相值和第二明度值。Step 10214: Determine the second hue value and the second luminance value of the detected image corresponding to the second sub-detection information.

步骤10215、根据所述第一色相值、所述第二色相值、所述第一明度值和所述第二明度值确定所述障碍物是否发生位移。Step 10215: Determine whether the obstacle is displaced according to the first hue value, the second hue value, the first brightness value and the second brightness value.

需要说明地,本申请实施例通过检测图像的色相值和明度值进行处理,判断障碍物是否发生位移,因此上述检测图像应为彩色图像。It should be noted that, the embodiment of the present application performs processing by detecting the hue value and lightness value of the image to determine whether the obstacle is displaced. Therefore, the above-mentioned detected image should be a color image.

具体实现中,根据图像信息生成检测图像后,将检测图像划分为一个或多个区域。若将检测图像划分为多个区域,可以是对检测图像进行平均划分,也可以是根据原始地图中指示的作业环境的地形对检测图像进行划分,使得一个区域内的检测图像均为同一地形,此处不对划分方式进行唯一限定。进一步地,若根据地形对检测图像进行划分,划分的区域大小应合理设定,如此有助于确保障碍物类型的准确判定。In a specific implementation, after the detection image is generated according to the image information, the detection image is divided into one or more regions. If the detection image is divided into multiple areas, the detection image may be divided equally, or the detection image may be divided according to the terrain of the operating environment indicated in the original map, so that the detection images in one area are all the same terrain, The division method is not uniquely limited here. Further, if the detection image is divided according to the terrain, the size of the divided area should be reasonably set, which helps to ensure the accurate determination of the obstacle type.

可以理解地,对于任一区域来说,若区域内的物体均未发生位移,则前后时刻的检测信息,即第一子检测信息和第二子检测信息,对应的色相值和明度值不会发生太大改变,且对于使用割草机的场合,草坪的绿色背景使得在草坪中的障碍物更容易被识别,因此,根据第一色相值、第二色相值、第一明度值和第二明度值确定障碍物是否发生位移,有助于确保判定结果的准确性,从而有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障。It is understandable that for any area, if the objects in the area are not displaced, the detection information at the time before and after, that is, the first sub-detection information and the second sub-detection information, the corresponding hue value and brightness value will not be. Too much change, and for lawn mowers, the green background of the lawn makes it easier to identify obstacles in the lawn, therefore, according to the first hue value, the second hue value, the first lightness value and the second The brightness value determines whether the obstacle is displaced, which helps to ensure the accuracy of the judgment result, thus helps to ensure the accurate positioning of the obstacle, and helps the lawn mower to achieve accurate and flexible obstacle avoidance.

在一个可能的示例中,上述步骤10215,根据所述第一色相值、所述第二色相值、所述第一明度值和所述第二明度值,确定所述障碍物是否发生位移,可以包括如下步骤:In a possible example, in the above step 10215, according to the first hue value, the second hue value, the first brightness value and the second brightness value, it is determined whether the obstacle is displaced, which may be It includes the following steps:

步骤102151、根据所述第一色相值和所述第二色相值,确定色相值对应的第一变化比例;Step 102151: Determine a first change ratio corresponding to the hue value according to the first hue value and the second hue value;

步骤102152、根据所述第一明度值和所述第二明度值,确定明度值对应的第二变化比例;Step 102152: Determine the second change ratio corresponding to the brightness value according to the first brightness value and the second brightness value;

步骤102153、根据所述第一变化比例、所述第二变化比例和预设权重,确定所述当前区域对应的相对变化值;Step 102153: Determine the relative change value corresponding to the current area according to the first change ratio, the second change ratio and the preset weight;

步骤102154、在所述相对变化值大于预设阈值的情况下,确定所述障碍物发生位移;Step 102154: When the relative change value is greater than a preset threshold, determine that the obstacle is displaced;

步骤102155、在所述相对变化值小于或等于所述预设阈值的情况下,确定所述障碍物未发生位移。Step 102155: In the case that the relative change value is less than or equal to the preset threshold, determine that the obstacle is not displaced.

其中,上述相对变化值的预设阈值可以是用户设定的,也可以是电子设备根据作业环境的主要颜色、作业环境所在地的天气、作业环境的地形等因素综合设定的,在此不做限定。Wherein, the preset threshold value of the above-mentioned relative change value may be set by the user, or may be comprehensively set by the electronic device according to the main color of the working environment, the weather where the working environment is located, the terrain of the working environment, and other factors. limited.

其中,上述预设权重可以是用户或研发人员设定的,也可以是电子设备根据作业环境的主要颜色、作业环境所在地的天气、作业环境的地形等因素综合设定的,在此不做限定。The above-mentioned preset weights may be set by users or R&D personnel, or may be comprehensively set by electronic equipment according to factors such as the main color of the working environment, the weather where the working environment is located, and the terrain of the working environment, which are not limited here. .

具体实现中,考虑到割草机的作业环境中出现最多的颜色为绿色,而绿色是障碍物(例如活体动物、石块等)少有的颜色,若当前区域在上一时刻的检测图像中未出现物体A,而当前时刻的检测图像中出现物体A,则当前区域色相值的第一变化比例较大。因此,可以通过当前区域色相值的第一变化比例对障碍物类型进行初步判断,且由此还可以得出,第一变化比例对应的权重应大于第二变化比例对应的权重。进一步地,考虑到在当前区域的检测图像中出现障碍物时,当前区域对应的明度值也会发生改变,因此还可以通过明度值对应的第二变化比例对障碍物类型进行辅助判定。In the specific implementation, considering that the most common color in the working environment of the lawn mower is green, and green is a rare color for obstacles (such as live animals, stones, etc.), if the current area is in the detection image at the previous moment If the object A does not appear, but the object A appears in the detected image at the current moment, the first change ratio of the hue value in the current area is relatively large. Therefore, the obstacle type can be preliminarily determined by the first change ratio of the hue value of the current region, and it can also be concluded that the weight corresponding to the first change ratio should be greater than the weight corresponding to the second change ratio. Further, considering that when an obstacle appears in the detected image of the current area, the brightness value corresponding to the current area will also change, so the obstacle type can also be assisted by the second change ratio corresponding to the brightness value.

以第一时间在第二时间之前为例,第一时间(n-1)对应第一子检测信息,第一子检测信息对应检测图像中当前区域x的第一色相值P(n-1)(x)和第一明度值Q(n-1)(x),第二时间(n)对应第二子检测信息,第二子检测信息对应检测图像中当前区域x的第二色相值P(n)(x)和第二明度值Q(n)(x)。色相值对应的第一变化比例为

Figure BDA0003602008100000081
明度值对应的第二变化比例为
Figure BDA0003602008100000082
第一变化比例α对应的权重为
Figure BDA0003602008100000083
第二变化比例β对应的权重为
Figure BDA0003602008100000084
当前区域x的相对变化值γ可以通过如下方式确定:
Figure BDA0003602008100000085
Figure BDA0003602008100000086
Taking the first time before the second time as an example, the first time (n-1) corresponds to the first sub-detection information, and the first sub-detection information corresponds to the first hue value P (n-1) of the current region x in the detection image (x) and the first lightness value Q (n-1) (x), the second time (n) corresponds to the second sub-detection information, and the second sub-detection information corresponds to the second hue value P ( n) (x) and the second lightness value Q (n) (x). The first change ratio corresponding to the hue value is
Figure BDA0003602008100000081
The second change ratio corresponding to the lightness value is
Figure BDA0003602008100000082
The weight corresponding to the first change ratio α is
Figure BDA0003602008100000083
The weight corresponding to the second change ratio β is
Figure BDA0003602008100000084
The relative change value γ of the current region x can be determined as follows:
Figure BDA0003602008100000085
middle
Figure BDA0003602008100000086

可以理解地,在当前区域存在动态障碍物时,当前区域对应的第一变化比例和/或第二变化比例较大,相对变化值大于预设阈值。因此,在相对变化值大于预设阈值的情况下,可以认为当前区域存在障碍物且障碍物发生位移。反之,在当前区域不存在障碍物或障碍物为静态障碍物时,当前区域对应的第一变化比例和/或第二变化比例较小,相对变化值小于或等于预设阈值。因此,在相对变化值小于或等于预设阈值的情况下,可以认为当前区域不存在障碍物或障碍物未发生位移。It can be understood that when there is a dynamic obstacle in the current area, the first change ratio and/or the second change ratio corresponding to the current area is relatively large, and the relative change value is greater than the preset threshold. Therefore, when the relative change value is greater than the preset threshold, it can be considered that there is an obstacle in the current area and the obstacle is displaced. Conversely, when there is no obstacle in the current area or the obstacle is a static obstacle, the first change ratio and/or the second change ratio corresponding to the current area is small, and the relative change value is less than or equal to the preset threshold. Therefore, when the relative change value is less than or equal to the preset threshold, it can be considered that there is no obstacle in the current area or the obstacle has not been displaced.

此外,还可以将当前区域的饱和度纳入相对变化值的考虑范畴。例如,对于当前区域,确定第一子检测信息对应的检测图像的第一饱和度值和第二子检测信息对应的检测图像的第二饱和度值,确定饱和度值对应的第三变化比例δ,根据第一变化比例α、第二变化比例β、第三变化比例δ和预设权重,确定当前区域对应的相对变化值:In addition, the saturation of the current region can also be taken into account in the relative change value. For example, for the current area, the first saturation value of the detection image corresponding to the first sub-detection information and the second saturation value of the detection image corresponding to the second sub-detection information are determined, and the third change ratio δ corresponding to the saturation value is determined , according to the first change ratio α, the second change ratio β, the third change ratio δ and the preset weight, determine the relative change value corresponding to the current area:

Figure BDA0003602008100000091
Figure BDA0003602008100000091

可以看出,本申请实施例中,电子设备可根据第一色相值和第二色相值,确定色相值对应的第一变化比例,根据第一明度值和第二明度值,确定明度值对应的第二变化比例,根据第一变化比例、第二变化比例和预设权重,确定当前区域对应的相对变化值,在相对变化值大于预设阈值的情况下,确定障碍物发生位移,在相对变化值小于或等于预设阈值的情况下,确定障碍物未发生位移,如此,通过当前区域的相对变化值判定障碍物是否发生位移,有助于确保判定结果的准确性,从而有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障。It can be seen that in the embodiment of the present application, the electronic device can determine the first change ratio corresponding to the hue value according to the first hue value and the second hue value, and determine the corresponding value of the brightness value according to the first brightness value and the second brightness value. The second change ratio is to determine the relative change value corresponding to the current area according to the first change ratio, the second change ratio and the preset weight. When the relative change value is greater than the preset threshold, it is determined that the obstacle is displaced. When the value is less than or equal to the preset threshold, it is determined that the obstacle has not displaced. In this way, the relative change value of the current area is used to determine whether the obstacle has displaced, which helps to ensure the accuracy of the determination result, and thus helps to ensure the correctness of the obstacle. The accurate positioning of obstacles helps the lawn mower to achieve precise and flexible obstacle avoidance.

可选地,在上述步骤101,获取所述传感器对所述作业环境的检测信息和所述作业环境的原始地图之前,所述方法还包括如下步骤:Optionally, in the above step 101, before acquiring the detection information of the working environment by the sensor and the original map of the working environment, the method further includes the following steps:

步骤A01、获取所述传感器的角度检测信息。Step A01: Acquire angle detection information of the sensor.

步骤A02、根据所述角度检测信息,确定所述传感器的检测角度是否异常。Step A02: Determine whether the detection angle of the sensor is abnormal according to the angle detection information.

步骤A03、在所述检测角度发生异常的情况下,生成对应的提示信息并将所述提示信息向客户端设备发送。Step A03: When the detection angle is abnormal, generate corresponding prompt information and send the prompt information to the client device.

步骤A04、在所述检测角度未发生异常的情况下,获取所述传感器对所述作业环境的所述检测信息。Step A04: In the case that the detection angle is not abnormal, acquire the detection information of the working environment by the sensor.

其中,上述角度检测信息可以用于表征传感器的检测角度。可以通过多个传感器相互监控的方式确定每一传感器的检测角度,也可以是传感器通过检测作业环境中的标志物体来确定其检测角度。The above angle detection information may be used to characterize the detection angle of the sensor. The detection angle of each sensor may be determined by mutual monitoring of multiple sensors, or the sensor may determine its detection angle by detecting marked objects in the working environment.

可以理解地,安装在草坪护栏上的摄像头的拍摄角度可能发生偏移,安装在电线杆上的雷达信号发射角度可能发生偏移,因此在获取传感器的检测信息之前,可以先确保传感器的检测角度未发生异常。进一步地,传感器的检测角度仅是稍微发生偏移的情况下,仍可认为其检测角度未发生异常。在传感器的角度偏移幅度大于幅度阈值的情况下,才认为传感器的检测角度发生异常。Understandably, the shooting angle of the camera installed on the lawn fence may be offset, and the emission angle of the radar signal installed on the utility pole may be offset. Therefore, before acquiring the detection information of the sensor, you can first ensure the detection angle of the sensor. No exception occurred. Further, even when the detection angle of the sensor is only slightly shifted, it can be considered that the detection angle of the sensor is not abnormal. Only when the angular deviation amplitude of the sensor is greater than the amplitude threshold, it is considered that the detection angle of the sensor is abnormal.

具体实现中,上述幅度阈值可以通过检测作业环境中的标志物体来确定,例如,传感器的检测角度偏移过大时,其最初的检测范围内物体B则无法被检测到,可以将物体B作为传感器检测角度的标志物体,当传感器无法检测到标志物体时,则可认为传感器的角度偏移幅度大于幅度阈值。In the specific implementation, the above-mentioned amplitude threshold can be determined by detecting the marked objects in the working environment. For example, when the detection angle of the sensor is too large, the object B in its initial detection range cannot be detected, and the object B can be used as The sensor detects an angular marker object, and when the sensor cannot detect the marker object, it can be considered that the angular offset of the sensor is greater than the amplitude threshold.

上述客户端设备可与所述电子设备通信连接,在传感器的检测角度发生异常的情况下,电子设备生成对应的提示信息向客户端设备发送,以提示用户对该传感器进行检查,确保传感器的检测角度无误。The above-mentioned client device can be connected to the electronic device in communication, and when the detection angle of the sensor is abnormal, the electronic device generates corresponding prompt information and sends it to the client device to prompt the user to check the sensor to ensure the detection of the sensor. The angle is correct.

可以看出,本申请实施方式中,电子设备可获取传感器的角度检测信息,角度检测信息用于表征传感器的检测角度,根据角度检测信息,确定传感器的检测角度是否异常,在检测角度发生异常的情况下,生成对应的提示信息并将提示信息向客户端设备发送,客户端设备与电子设备通信连接,在检测角度未发生异常的情况下,获取传感器对作业环境的检测信息和作业环境的原始地图;如此,在检测角度未发生异常时才获取传感器的检测信息,有助于确保传感器检测结果的准确性,进而有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障。It can be seen that, in the embodiment of the present application, the electronic device can obtain the angle detection information of the sensor, and the angle detection information is used to represent the detection angle of the sensor. According to the angle detection information, it is determined whether the detection angle of the sensor is abnormal. In this case, the corresponding prompt information is generated and sent to the client device. The client device is connected to the electronic device in communication, and when the detection angle is not abnormal, the detection information of the working environment by the sensor and the original working environment are obtained. Map; in this way, the detection information of the sensor is obtained only when the detection angle is not abnormal, which helps to ensure the accuracy of the detection result of the sensor, which in turn helps to ensure the accurate positioning of obstacles, and helps the lawn mower achieve precise and flexible obstacle avoidance. .

与上述图1B所示的实施例一致地,请参阅图2,图2是本申请实施例提供的一种割草机的路径规划方法的流程示意图,应用于如图1A所示的电子设备,电子设备可以是服务器,也可以是割草机;本割草机的路径规划方法包括:Consistent with the embodiment shown in FIG. 1B above, please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a path planning method for a lawn mower provided by an embodiment of the present application, which is applied to the electronic device shown in FIG. 1A , The electronic device can be a server or a lawn mower; the path planning method of the lawn mower includes:

步骤201、获取所述传感器的角度检测信息,所述角度检测信息用于表征所述传感器的检测角度。Step 201: Acquire angle detection information of the sensor, where the angle detection information is used to represent the detection angle of the sensor.

步骤202、根据所述角度检测信息,确定所述传感器的检测角度是否异常。Step 202: Determine whether the detection angle of the sensor is abnormal according to the angle detection information.

步骤203、在所述检测角度发生异常的情况下,生成对应的提示信息并将所述提示信息向客户端设备发送,所述客户端设备与所述电子设备通信连接;Step 203: In the case that the detection angle is abnormal, generate corresponding prompt information and send the prompt information to a client device, and the client device is in communication connection with the electronic device;

步骤204、在所述检测角度未发生异常的情况下,获取所述传感器对作业环境的所述检测信息和所述作业环境的原始地图,所述传感器设置于所述割草机的所述作业环境中,所述作业环境为所述割草机进行割草作业的环境,所述检测信息用于表征所述作业环境中存在的障碍物,所述原始地图用于表征所述作业环境的地形。Step 204 , in the case that the detection angle is not abnormal, obtain the detection information of the working environment by the sensor and the original map of the working environment, and the sensor is arranged in the work of the lawn mower In the environment, the working environment is the environment in which the lawnmower performs the mowing operation, the detection information is used to characterize the obstacles existing in the working environment, and the original map is used to characterize the terrain of the working environment .

步骤205、根据所述检测信息确定所述障碍物的第一定位信息。Step 205: Determine first positioning information of the obstacle according to the detection information.

步骤206、根据所述第一定位信息和所述原始地图,确定所述割草机的工作地图。Step 206: Determine a working map of the lawn mower according to the first positioning information and the original map.

步骤207、根据所述工作地图确定所述割草机的行驶路线。Step 207: Determine the driving route of the lawn mower according to the working map.

其中,上述步骤201-步骤207的具体描述可以参照上述图1B所描述的割草机的路径规划方法的相应步骤,在此不再赘述。The specific description of the above steps 201 to 207 may refer to the corresponding steps of the path planning method for the lawn mower described in FIG. 1B , which will not be repeated here.

可以看出,本申请实施例中所描述的割草机的路径规划方法,传感器设置于割草机的作业环境中,电子设备可获取所述传感器的角度检测信息,所述角度检测信息用于表征所述传感器的检测角度,根据所述角度检测信息,确定所述传感器的检测角度是否异常,在所述检测角度发生异常的情况下,生成对应的提示信息并将所述提示信息向客户端设备发送,所述客户端设备与所述电子设备通信连接,在所述检测角度未发生异常的情况下,获取所述传感器对所述作业环境的所述检测信息和所述作业环境的原始地图,所述检测信息用于表征所述作业环境中存在的障碍物,所述原始地图用于表征所述作业环境的地形,根据所述检测信息确定所述障碍物的第一定位信息,根据所述第一定位信息和所述原始地图,确定所述割草机的工作地图,根据所述工作地图确定所述割草机的行驶路线;如此,将传感器设置于作业环境中,确保传感器处于相对平稳的环境状态中,有助于确保传感器检测结果的准确性,且在传感器的检测角度未发生异常时获取传感器的检测信息,有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障,同时,平稳的环境状态也有助于降低传感器的故障率,帮助降低割草机的使用成本,优化用户体验。It can be seen that, in the path planning method of the lawn mower described in the embodiments of the present application, the sensor is set in the working environment of the lawn mower, and the electronic device can obtain the angle detection information of the sensor, and the angle detection information is used for Characterize the detection angle of the sensor, determine whether the detection angle of the sensor is abnormal according to the angle detection information, and generate corresponding prompt information and send the prompt information to the client when the detection angle is abnormal. The device sends, the client device is connected to the electronic device in communication, and in the case that the detection angle is not abnormal, the detection information of the working environment by the sensor and the original map of the working environment are obtained. , the detection information is used to characterize the obstacles existing in the working environment, the original map is used to characterize the terrain of the working environment, the first positioning information of the obstacle is determined according to the detection information, and the first positioning information of the obstacle is determined according to the detection information. The first positioning information and the original map are used to determine the working map of the lawn mower, and the driving route of the lawn mower is determined according to the working map; in this way, the sensor is set in the working environment to ensure that the sensor is relatively In a stable environment, it helps to ensure the accuracy of the detection results of the sensor, and the detection information of the sensor is obtained when the detection angle of the sensor is not abnormal, which helps to ensure the accurate positioning of obstacles and helps the lawn mower to achieve accurate Flexible obstacle avoidance, and at the same time, the stable environmental state also helps to reduce the failure rate of the sensor, help reduce the use cost of the lawn mower, and optimize the user experience.

与上述实施例一致地,请参阅图3,图3是本申请实施例提供的一种电子设备的结构示意图,如图所示,该电子设备包括处理器、存储器及存储在所述存储器上的计算机程序或指令,其中,上述计算机程序或指令被存储在上述存储器中,并且被配置为由上述处理器执行。电子设备还可以包括通信接口。本申请实施例中,上述程序包括用于执行以下步骤的指令:Consistent with the above-mentioned embodiment, please refer to FIG. 3 , which is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, and a memory device stored in the memory. A computer program or instructions, wherein the computer program or instructions are stored in the memory and configured to be executed by the processor. The electronic device may also include a communication interface. In this embodiment of the present application, the above program includes an instruction for executing the following steps:

获取所述传感器对所述作业环境的检测信息和所述作业环境的原始地图,所述传感器设置于所述割草机的所述作业环境中,所述作业环境为所述割草机进行割草作业的环境,所述检测信息用于表征所述作业环境中存在的障碍物,所述原始地图用于表征所述作业环境的地形;Obtain the detection information of the working environment by the sensor and the original map of the working environment, the sensor is arranged in the working environment of the lawn mower, and the working environment is for the lawn mower to cut The grass working environment, the detection information is used to characterize the obstacles existing in the working environment, and the original map is used to characterize the terrain of the working environment;

根据所述检测信息确定所述障碍物的第一定位信息;Determine the first positioning information of the obstacle according to the detection information;

根据所述第一定位信息和所述原始地图,确定所述割草机的工作地图;According to the first positioning information and the original map, determine the working map of the lawn mower;

根据所述工作地图确定所述割草机的行驶路线。The driving route of the lawn mower is determined according to the working map.

可以看出,本申请实施例中所描述的电子设备,传感器设置于割草机的作业环境中,电子设备可获取传感器对作业环境的检测信息,检测信息用于表征作业环境中存在的障碍物,根据检测信息确定障碍物的第一定位信息,获取作业环境的原始地图,原始地图用于表征作业环境的地形,根据第一定位信息和原始地图,确定割草机的工作地图,根据工作地图确定割草机的行驶路线;如此,将传感器设置于作业环境中,确保传感器处于相对平稳的环境状态中,有助于确保传感器检测结果的准确性,进而有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障,同时,平稳的环境状态也有助于降低传感器的故障率,帮助降低割草机的使用成本,优化用户体验。It can be seen that, in the electronic device described in the embodiments of the present application, the sensor is set in the working environment of the lawn mower, and the electronic device can obtain the detection information of the sensor on the working environment, and the detection information is used to characterize the obstacles existing in the working environment. , determine the first positioning information of the obstacle according to the detection information, obtain the original map of the working environment, the original map is used to represent the terrain of the working environment, according to the first positioning information and the original map, determine the working map of the lawn mower, according to the working map Determine the driving route of the lawn mower; in this way, setting the sensor in the working environment to ensure that the sensor is in a relatively stable environment will help to ensure the accuracy of the detection result of the sensor, which in turn helps to ensure the accurate positioning of obstacles , to help the lawn mower achieve accurate and flexible obstacle avoidance, and at the same time, the stable environmental state also helps to reduce the failure rate of the sensor, help reduce the use cost of the lawn mower, and optimize the user experience.

在一个可能的示例中,所述检测信息包括第一时间对应的第一子检测信息和第二时间对应的第二子检测信息,在所述根据所述检测信息确定所述障碍物的第一定位信息方面,上述程序包括用于执行以下步骤的指令:In a possible example, the detection information includes first sub-detection information corresponding to a first time and second sub-detection information corresponding to a second time, and in the first step of determining the obstacle according to the detection information In terms of positioning information, the above program includes instructions for performing the following steps:

根据所述第一子检测信息和所述第二子检测信息,确定所述障碍物是否发生位移;determining whether the obstacle is displaced according to the first sub-detection information and the second sub-detection information;

在所述障碍物发生位移的情况下,将所述障碍物对应的类型确定为动态障碍物;In the case of displacement of the obstacle, determining the type corresponding to the obstacle as a dynamic obstacle;

根据所述第一子检测信息和所述第二子检测信息,对所述障碍物的位置进行预测,得到预测位置;According to the first sub-detection information and the second sub-detection information, predict the position of the obstacle to obtain the predicted position;

将所述预测位置和当前位置确定为所述动态障碍物的所述第一定位信息。The predicted position and the current position are determined as the first positioning information of the dynamic obstacle.

在一个可能的示例中,在所述根据所述检测信息确定所述障碍物的第一定位信息方面,上述程序包括用于执行以下步骤的指令:In a possible example, in the aspect of determining the first positioning information of the obstacle according to the detection information, the above program includes instructions for performing the following steps:

在所述障碍物未发生位移的情况下,将所述障碍物对应的所述类型确定为静态障碍物;In the case that the obstacle does not move, determining the type corresponding to the obstacle as a static obstacle;

将所述当前位置确定为所述静态障碍物的所述第一定位信息。The current position is determined as the first positioning information of the static obstacle.

在一个可能的示例中,所述第一子检测信息和所述第二子检测信息均为图像信息,在所述根据所述第一子检测信息和所述第二子检测信息,确定所述障碍物是否发生位移方面,上述程序包括用于执行以下步骤的指令:In a possible example, the first sub-detection information and the second sub-detection information are both image information, and when determining the In terms of whether the obstacle is displaced, the above program includes instructions for performing the following steps:

根据所述图像信息生成检测图像;generating a detection image according to the image information;

将所述检测图像划分为至少一个区域;dividing the detection image into at least one area;

对于当前区域,确定所述第一子检测信息对应的检测图像的第一色相值和第一明度值;For the current area, determine the first hue value and the first brightness value of the detected image corresponding to the first sub-detection information;

确定所述第二子检测信息对应的检测图像的第二色相值和第二明度值;determining the second hue value and the second lightness value of the detected image corresponding to the second sub-detection information;

根据所述第一色相值、所述第二色相值、所述第一明度值和所述第二明度值,确定所述障碍物是否发生位移。Whether the obstacle is displaced is determined according to the first hue value, the second hue value, the first lightness value and the second lightness value.

在一个可能的示例中,在所述根据所述第一色相值、所述第二色相值、所述第一明度值和所述第二明度值,确定所述障碍物是否发生位移方面,上述程序包括用于执行以下步骤的指令:In a possible example, in the aspect of determining whether the obstacle is displaced according to the first hue value, the second hue value, the first lightness value and the second lightness value, the above The program includes instructions for performing the following steps:

根据所述第一色相值和所述第二色相值,确定色相值对应的第一变化比例;determining a first change ratio corresponding to the hue value according to the first hue value and the second hue value;

根据所述第一明度值和所述第二明度值,确定明度值对应的第二变化比例;According to the first brightness value and the second brightness value, determine the second change ratio corresponding to the brightness value;

根据所述第一变化比例、所述第二变化比例和预设权重,确定所述当前区域对应的相对变化值;Determine the relative change value corresponding to the current area according to the first change ratio, the second change ratio and the preset weight;

在所述相对变化值大于预设阈值的情况下,确定所述障碍物发生位移;In the case that the relative change value is greater than a preset threshold value, determine that the obstacle is displaced;

在所述相对变化值小于或等于所述预设阈值的情况下,确定所述障碍物未发生位移。When the relative change value is less than or equal to the preset threshold, it is determined that the obstacle is not displaced.

在一个可能的示例中,在所述获取所述传感器对所述作业环境的检测信息和所述作业环境的原始地图之前,上述程序还包括用于执行以下步骤的指令:In a possible example, before acquiring the detection information of the working environment by the sensor and the original map of the working environment, the above program further includes an instruction for executing the following steps:

获取所述传感器的角度检测信息,所述角度检测信息用于表征所述传感器的检测角度;acquiring angle detection information of the sensor, where the angle detection information is used to characterize the detection angle of the sensor;

根据所述角度检测信息,确定所述传感器的检测角度是否异常;According to the angle detection information, determine whether the detection angle of the sensor is abnormal;

在所述检测角度发生异常的情况下,生成对应的提示信息并将所述提示信息向客户端设备发送,所述客户端设备与所述电子设备通信连接;In the case that the detection angle is abnormal, generate corresponding prompt information and send the prompt information to a client device, and the client device is in communication connection with the electronic device;

在所述检测角度未发生异常的情况下,获取所述传感器对所述作业环境的所述检测信息。When the detection angle is not abnormal, the detection information of the work environment by the sensor is acquired.

上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions of the embodiments of the present application from the perspective of the method-side execution process. It can be understood that, in order to realize the above-mentioned functions, it includes corresponding hardware structures and/or software modules for performing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or in the form of a combination of hardware and computer software, in combination with the units and algorithm steps of each example described in the embodiments provided herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

本申请实施例可以根据上述方法示例进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, functional units may be divided according to the foregoing method examples. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical function division, and other division methods may be used in actual implementation.

与上述实施例一致地,请参阅图4A,图4A是本申请实施例提供的一种割草机路径规划装置的功能单元组成框图,所述装置400应用于电子设备,电子设备可以是服务器,也可以是割草机;所述装置400包括:获取单元401和确定单元402,其中,Consistent with the above-mentioned embodiment, please refer to FIG. 4A , FIG. 4A is a block diagram of the functional units of a lawnmower path planning device provided in an embodiment of the present application, the device 400 is applied to an electronic device, and the electronic device may be a server, It can also be a lawn mower; the device 400 includes: an acquisition unit 401 and a determination unit 402, wherein,

所述获取单元401,用于取所述传感器对所述作业环境的检测信息和所述作业环境的原始地图,所述检测信息用于表征所述作业环境中存在的障碍物,所述原始地图用于表征所述作业环境的地形;The acquisition unit 401 is configured to acquire detection information of the working environment by the sensor and an original map of the working environment, where the detection information is used to represent obstacles existing in the working environment, and the original map the terrain used to characterize the operating environment;

所述确定单元402,用于根据所述检测信息确定所述障碍物的第一定位信息;The determining unit 402 is configured to determine the first positioning information of the obstacle according to the detection information;

所述确定单元402,还用于根据所述第一定位信息和所述原始地图,确定所述割草机的工作地图;The determining unit 402 is further configured to determine the working map of the lawn mower according to the first positioning information and the original map;

所述确定单元402,还用于根据所述工作地图确定所述割草机的行驶路线。The determining unit 402 is further configured to determine the driving route of the lawn mower according to the working map.

可以看出,本申请实施例中所描述的割草机路径规划装置,传感器设置于割草机的作业环境中,获取传感器对作业环境的检测信息,检测信息用于表征作业环境中存在的障碍物,根据检测信息确定障碍物的第一定位信息,获取作业环境的原始地图,原始地图用于表征作业环境的地形,根据第一定位信息和原始地图,确定割草机的工作地图,根据工作地图确定割草机的行驶路线;如此,将传感器设置于作业环境中,确保传感器处于相对平稳的环境状态中,有助于确保传感器检测结果的准确性,进而有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障,同时,平稳的环境状态也有助于降低传感器的故障率,帮助降低割草机的使用成本,优化用户体验。It can be seen that, in the lawn mower path planning device described in the embodiments of the present application, the sensor is arranged in the working environment of the lawn mower, and the detection information of the working environment by the sensor is obtained, and the detection information is used to represent the obstacles existing in the working environment. The first positioning information of the obstacle is determined according to the detection information, and the original map of the working environment is obtained. The original map is used to represent the terrain of the working environment. According to the first positioning information and the original map, the working map of the lawn mower is determined. The map determines the driving route of the lawn mower; in this way, the sensor is set in the working environment to ensure that the sensor is in a relatively stable environment, which helps to ensure the accuracy of the detection results of the sensor, which in turn helps to ensure the accuracy of obstacles. Positioning helps the lawn mower to avoid obstacles accurately and flexibly. At the same time, the stable environmental state also helps to reduce the failure rate of the sensor, helps reduce the use cost of the lawn mower, and optimizes the user experience.

在一个可能的示例中,所述检测信息包括第一时间对应的第一子检测信息和第二时间对应的第二子检测信息,在所述根据所述检测信息确定所述障碍物的第一定位信息方面,所述确定单元402具体用于:In a possible example, the detection information includes first sub-detection information corresponding to a first time and second sub-detection information corresponding to a second time, and in the first step of determining the obstacle according to the detection information In terms of positioning information, the determining unit 402 is specifically configured to:

根据所述第一子检测信息和所述第二子检测信息,确定所述障碍物是否发生位移;determining whether the obstacle is displaced according to the first sub-detection information and the second sub-detection information;

在所述障碍物发生位移的情况下,将所述障碍物对应的类型确定为动态障碍物;In the case of displacement of the obstacle, determining the type corresponding to the obstacle as a dynamic obstacle;

根据所述第一子检测信息和所述第二子检测信息,对所述障碍物的位置进行预测,得到预测位置;According to the first sub-detection information and the second sub-detection information, predict the position of the obstacle to obtain the predicted position;

将所述预测位置和当前位置确定为所述动态障碍物的所述第一定位信息。The predicted position and the current position are determined as the first positioning information of the dynamic obstacle.

在一个可能的示例中,在所述根据所述检测信息确定所述障碍物的第一定位信息方面,所述确定单元402具体用于:In a possible example, in the aspect of determining the first positioning information of the obstacle according to the detection information, the determining unit 402 is specifically configured to:

在所述障碍物未发生位移的情况下,将所述障碍物对应的所述类型确定为静态障碍物;In the case that the obstacle does not move, determining the type corresponding to the obstacle as a static obstacle;

将所述当前位置确定为所述静态障碍物的所述第一定位信息。The current position is determined as the first positioning information of the static obstacle.

在一个可能的示例中,所述第一子检测信息和所述第二子检测信息均为图像信息,在所述根据所述第一子检测信息和所述第二子检测信息,确定所述障碍物是否发生位移方面,所述确定单元402具体用于:In a possible example, the first sub-detection information and the second sub-detection information are both image information, and when determining the In terms of whether the obstacle is displaced, the determining unit 402 is specifically used for:

根据所述图像信息生成检测图像;generating a detection image according to the image information;

将所述检测图像划分为至少一个区域;dividing the detection image into at least one area;

对于当前区域,确定所述第一子检测信息对应的检测图像的第一色相值和第一明度值;For the current area, determine the first hue value and the first brightness value of the detected image corresponding to the first sub-detection information;

确定所述第二子检测信息对应的检测图像的第二色相值和第二明度值;determining the second hue value and the second lightness value of the detected image corresponding to the second sub-detection information;

根据所述第一色相值、所述第二色相值、所述第一明度值和所述第二明度值,确定所述障碍物是否发生位移。Whether the obstacle is displaced is determined according to the first hue value, the second hue value, the first lightness value and the second lightness value.

在一个可能的示例中,在所述根据所述第一色相值、所述第二色相值、所述第一明度值和所述第二明度值,确定所述障碍物是否发生位移方面,所述确定单元402具体用于:In a possible example, in the aspect of determining whether the obstacle is displaced according to the first hue value, the second hue value, the first brightness value and the second brightness value, the The determining unit 402 is specifically used for:

根据所述第一色相值和所述第二色相值,确定色相值对应的第一变化比例;determining a first change ratio corresponding to the hue value according to the first hue value and the second hue value;

根据所述第一明度值和所述第二明度值,确定明度值对应的第二变化比例;According to the first brightness value and the second brightness value, determine the second change ratio corresponding to the brightness value;

根据所述第一变化比例、所述第二变化比例和预设权重,确定所述当前区域对应的相对变化值;Determine the relative change value corresponding to the current area according to the first change ratio, the second change ratio and the preset weight;

在所述相对变化值大于预设阈值的情况下,确定所述障碍物发生位移;In the case that the relative change value is greater than a preset threshold value, determine that the obstacle is displaced;

在所述相对变化值小于或等于所述预设阈值的情况下,确定所述障碍物未发生位移。When the relative change value is less than or equal to the preset threshold, it is determined that the obstacle is not displaced.

在一个可能的示例中,如图4B所示,与上述图4A相比较,装置400还可包括:生成单元404,其中,In a possible example, as shown in FIG. 4B, compared with the above-mentioned FIG. 4A, the apparatus 400 may further include: a generating unit 404, wherein:

所述获取单元401,还用于获取所述传感器的角度检测信息,所述角度检测信息用于表征所述传感器的检测角度;The acquiring unit 401 is further configured to acquire angle detection information of the sensor, where the angle detection information is used to characterize the detection angle of the sensor;

所述确定单元402,还用于根据所述角度检测信息,确定所述传感器的检测角度是否异常;The determining unit 402 is further configured to determine whether the detection angle of the sensor is abnormal according to the angle detection information;

所述生成单元404,还用于在所述检测角度发生异常的情况下,生成对应的提示信息并将所述提示信息向客户端设备发送,所述客户端设备与所述电子设备通信连接;The generating unit 404 is further configured to generate corresponding prompt information and send the prompt information to a client device in a case that the detection angle is abnormal, and the client device is communicatively connected to the electronic device;

所述获取单元401,还用于在所述检测角度未发生异常的情况下,获取所述传感器对所述作业环境的所述检测信息。The acquiring unit 401 is further configured to acquire the detection information of the working environment by the sensor when the detection angle is not abnormal.

可以看出,本申请实施例提供的割草机路径规划装置,传感器设置于割草机的作业环境中,割草机路径规划装置可获取传感器对作业环境的检测信息,检测信息用于表征作业环境中存在的障碍物,根据检测信息确定障碍物的第一定位信息,获取作业环境的原始地图,原始地图用于表征作业环境的地形,根据第一定位信息和原始地图,确定割草机的工作地图,根据工作地图确定割草机的行驶路线,向割草机发送行驶路线;如此,将传感器设置于作业环境中,确保传感器处于相对平稳的环境状态中,有助于确保传感器检测结果的准确性,进而有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障,同时,平稳的环境状态也有助于降低传感器的故障率,帮助降低割草机的使用成本,优化用户体验。It can be seen that, in the lawn mower path planning device provided by the embodiment of the present application, the sensor is arranged in the working environment of the lawn mower, and the lawn mower path planning device can obtain the detection information of the sensor on the working environment, and the detection information is used to characterize the operation. For obstacles existing in the environment, determine the first positioning information of the obstacle according to the detection information, and obtain the original map of the working environment. The original map is used to represent the terrain of the working environment, and according to the first positioning information and the original map, determine the Working map, determine the driving route of the lawn mower according to the working map, and send the driving route to the lawn mower; in this way, the sensor is set in the working environment to ensure that the sensor is in a relatively stable environment, which helps to ensure that the detection results of the sensor are accurate. Accuracy, which helps to ensure the accurate positioning of obstacles, helps the lawn mower to achieve precise and flexible obstacle avoidance, and at the same time, the stable environmental state also helps to reduce the failure rate of the sensor, help reduce the use cost of the lawn mower, optimize the user experience.

可以理解的是,本实施例的割草机路径规划装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that, the functions of each program module of the lawn mower path planning device in this embodiment can be specifically implemented according to the methods in the above method embodiments, and the specific implementation process can refer to the relevant descriptions of the above method embodiments, which are not described here. Repeat.

与上述实施例一致地,请参阅图5,图5是本申请实施例提供的一种割草机的路径规划系统500的示意图,系统500包括传感器501、服务器502和割草机503,其中,传感器501设置于割草机503的作业环境中,作业环境为割草机503进行割草作业的环境,传感器501用于对作业环境进行检测,得到检测信息,检测信息用于表征作业环境中存在的障碍物;服务器502与传感器501通信连接,服务器502用于获取检测信息和作业环境的原始地图,原始地图用于表征作业环境的地形;及用于根据检测信息确定障碍物的第一定位信息;及用于根据第一定位信息和原始地图,确定割草机503的工作地图;以及用于根据工作地图确定割草机503的行驶路线;割草机503与服务器502通信连接,割草机503用于接收服务器502发送的行驶路线。Consistent with the above-mentioned embodiment, please refer to FIG. 5 . FIG. 5 is a schematic diagram of a path planning system 500 for a lawn mower provided by an embodiment of the present application. The system 500 includes a sensor 501 , a server 502 and a lawn mower 503 , wherein, The sensor 501 is arranged in the working environment of the lawn mower 503, and the working environment is the environment in which the lawn mower 503 performs the lawn mowing operation. The sensor 501 is used to detect the working environment to obtain detection information, and the detection information is used to represent the existence of the working environment. The server 502 is connected to the sensor 501 in communication, the server 502 is used to obtain the detection information and the original map of the working environment, the original map is used to represent the terrain of the working environment; and the first positioning information used to determine the obstacle according to the detection information and for determining the working map of the lawn mower 503 according to the first positioning information and the original map; and for determining the driving route of the lawn mower 503 according to the working map; the lawn mower 503 is connected in communication with the server 502, and the lawn mower 503 is used to receive the driving route sent by the server 502 .

可以看出,本申请实施例的路径规划系统中,将传感器设置于割草机的作业环境中,通过服务器获取传感器对作业环境的检测信息,检测信息用于表征作业环境中存在的障碍物,根据检测信息确定障碍物的第一定位信息,并获取作业环境的原始地图,原始地图用于表征作业环境的地形,服务器根据第一定位信息和原始地图确定割草机的工作地图,并根据工作地图确定割草机的行驶路线,割草机接收服务器发送的行驶路线;如此,将传感器设置于作业环境中,确保传感器处于相对平稳的环境状态中,有助于确保传感器检测结果的准确性,进而有助于确保对障碍物的准确定位,帮助割草机实现精准灵活避障,同时,平稳的环境状态也有助于降低传感器的故障率,帮助降低割草机的使用成本,优化用户体验。It can be seen that, in the path planning system of the embodiment of the present application, the sensor is set in the working environment of the lawn mower, and the detection information of the sensor on the working environment is obtained through the server, and the detection information is used to characterize the obstacles existing in the working environment. Determine the first positioning information of the obstacle according to the detection information, and obtain the original map of the working environment. The original map is used to represent the terrain of the working environment. The server determines the working map of the lawn mower according to the first positioning information and the original map, and according to the working environment The map determines the driving route of the lawn mower, and the lawn mower receives the driving route sent by the server; in this way, the sensor is set in the working environment to ensure that the sensor is in a relatively stable environment, which helps to ensure the accuracy of the detection result of the sensor. This helps to ensure the accurate positioning of obstacles, and helps the lawn mower to achieve precise and flexible obstacle avoidance. At the same time, the stable environmental state also helps to reduce the failure rate of the sensor, helps reduce the use cost of the lawn mower, and optimizes the user experience.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。Embodiments of the present application further provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute part or all of the steps of any method described in the above method embodiments .

本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括计算机程序,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。Embodiments of the present application further provide a computer program product, where the computer program product includes a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any method described in the above method embodiments.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The above-mentioned units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above-mentioned methods in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

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

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and the principles and implementations of the present application are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; at the same time, for Persons of ordinary skill in the art, based on the idea of the present application, will have changes in the specific implementation manner and application scope. In summary, the contents of this specification should not be construed as limitations on the present application.

Claims (10)

1. A method of path planning for a lawnmower, the method comprising:
acquiring detection information of a sensor on a working environment and an original map of the working environment, wherein the sensor is arranged in the working environment of the mower, the working environment is the environment of the mower for mowing, the detection information is used for representing obstacles existing in the working environment, and the original map is used for representing the terrain of the working environment;
determining first positioning information of the obstacle according to the detection information;
determining a working map of the mower according to the first positioning information and the original map;
and determining the driving route of the mower according to the work map.
2. The method according to claim 1, wherein the detection information includes first sub-detection information corresponding to a first time and second sub-detection information corresponding to a second time, and the determining the first positioning information of the obstacle according to the detection information includes:
determining whether the obstacle displaces or not according to the first sub-detection information and the second sub-detection information;
determining the type corresponding to the obstacle as a dynamic obstacle under the condition that the obstacle displaces;
predicting the position of the obstacle according to the first sub-detection information and the second sub-detection information to obtain a predicted position;
determining the predicted and current positions as the first positioning information for the dynamic obstacle.
3. The method of claim 2, wherein the determining first positioning information of the obstacle from the detection information comprises:
determining the type corresponding to the obstacle as a static obstacle when the obstacle is not displaced;
determining the current location as the first positioning information for the static obstacle.
4. The method according to claim 2, wherein the first sub-detection information and the second sub-detection information are both image information, and the determining whether the obstacle is displaced according to the first sub-detection information and the second sub-detection information comprises:
generating a detection image according to the image information;
dividing the detection image into at least one region;
for the current area, determining a first color phase value and a first brightness value of a detection image corresponding to the first sub-detection information;
determining a second hue value and a second brightness value of the detection image corresponding to the second sub-detection information;
and determining whether the obstacle is displaced or not according to the first color phase value, the second color phase value, the first brightness value and the second brightness value.
5. The method of claim 4, wherein said determining whether the obstacle is displaced based on the first hue value, the second hue value, the first lightness value, and the second lightness value comprises:
determining a first change proportion corresponding to the hue value according to the first hue value and the second hue value;
determining a second change proportion corresponding to the brightness value according to the first brightness value and the second brightness value;
determining a relative change value corresponding to the current region according to the first change proportion, the second change proportion and a preset weight;
determining that the obstacle displaces when the relative change value is larger than a preset threshold value;
determining that the obstacle is not displaced if the relative change value is less than or equal to the preset threshold value.
6. The method according to claim 1, applied to an electronic device, further comprising, before the acquiring detection information of the sensor on the working environment and an original map of the working environment:
acquiring angle detection information of the sensor, wherein the angle detection information is used for representing a detection angle of the sensor;
determining whether the detection angle of the sensor is abnormal or not according to the angle detection information;
under the condition that the detection angle is abnormal, generating corresponding prompt information and sending the prompt information to client equipment, wherein the client equipment is in communication connection with the electronic equipment;
and acquiring the detection information of the working environment by the sensor when the detection angle is not abnormal.
7. A path planning system for a lawn mower, the system comprising:
the sensor is arranged in a working environment of the mower, the working environment is the environment for carrying out mowing operation on the mower, the sensor is used for detecting the working environment to obtain detection information, and the detection information is used for representing obstacles in the working environment;
the server is in communication connection with the sensor and is used for acquiring the detection information and an original map of the working environment, and the original map is used for representing the terrain of the working environment; and first positioning information for determining the obstacle according to the detection information; the map processing unit is used for determining a working map of the mower according to the first positioning information and the original map; and for determining a travel route for the lawnmower from the work map;
the mower is in communication connection with the server and is used for receiving the driving route sent by the server.
8. A lawn mower path planning apparatus, said apparatus comprising: an acquisition unit and a determination unit, wherein,
the acquisition unit is used for acquiring detection information of the sensor on the working environment and an original map of the working environment, the sensor is arranged in the working environment of the mower, the working environment is the environment of the mower for mowing, the detection information is used for representing obstacles existing in the working environment, and the original map is used for representing the terrain of the working environment;
the determining unit is used for determining first positioning information of the obstacle according to the detection information;
the determining unit is further used for determining a working map of the mower according to the first positioning information and the original map;
the determining unit is further used for determining the traveling route of the mower according to the working map.
9. An electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
10. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute instructions of the steps in the method according to any one of claims 1-6.
CN202210405406.2A 2022-04-18 2022-04-18 Path planning method of mower and related device Pending CN114690783A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210405406.2A CN114690783A (en) 2022-04-18 2022-04-18 Path planning method of mower and related device
PCT/CN2023/087548 WO2023202423A1 (en) 2022-04-18 2023-04-11 Path planning method of mower and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210405406.2A CN114690783A (en) 2022-04-18 2022-04-18 Path planning method of mower and related device

Publications (1)

Publication Number Publication Date
CN114690783A true CN114690783A (en) 2022-07-01

Family

ID=82143100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210405406.2A Pending CN114690783A (en) 2022-04-18 2022-04-18 Path planning method of mower and related device

Country Status (2)

Country Link
CN (1) CN114690783A (en)
WO (1) WO2023202423A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023202423A1 (en) * 2022-04-18 2023-10-26 松灵机器人(深圳)有限公司 Path planning method of mower and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6125145A (en) * 1995-12-28 2000-09-26 Sony Corporation Motion detection apparatus and motion detection method
CN105100586A (en) * 2014-05-21 2015-11-25 卡西欧计算机株式会社 Detection device and detection method
JP2015222600A (en) * 2015-08-20 2015-12-10 カシオ計算機株式会社 Detection apparatus, detection method, and program
CN107390686A (en) * 2017-07-17 2017-11-24 深圳拓邦股份有限公司 A kind of grass-removing robot control method and automatically control mowing system
CN208128441U (en) * 2018-03-26 2018-11-20 广东安达交通工程有限公司 Road video monitoring system
CN109063575A (en) * 2018-07-05 2018-12-21 中国计量大学 A kind of intelligent grass-removing based on monocular vision is independently orderly mowed method
CN111426326A (en) * 2020-01-17 2020-07-17 深圳市镭神智能系统有限公司 Navigation method, device, equipment, system and storage medium
CN112612272A (en) * 2020-12-17 2021-04-06 湖北亿咖通科技有限公司 Obstacle avoidance control method, electronic device and storage medium
JP2021145178A (en) * 2020-03-10 2021-09-24 キヤノン株式会社 Image processing device, determination method, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111199565B (en) * 2018-11-16 2022-05-27 阿里巴巴集团控股有限公司 Data processing method, device, system, electronic equipment and storage medium
US20210382476A1 (en) * 2020-06-05 2021-12-09 Scythe Robotics, Inc. Autonomous lawn mowing system
CN112703881B (en) * 2020-12-30 2022-06-17 格力博(江苏)股份有限公司 Intelligent mower, control method and system thereof and storage medium
CN114690783A (en) * 2022-04-18 2022-07-01 松灵机器人(深圳)有限公司 Path planning method of mower and related device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6125145A (en) * 1995-12-28 2000-09-26 Sony Corporation Motion detection apparatus and motion detection method
CN105100586A (en) * 2014-05-21 2015-11-25 卡西欧计算机株式会社 Detection device and detection method
JP2015222600A (en) * 2015-08-20 2015-12-10 カシオ計算機株式会社 Detection apparatus, detection method, and program
CN107390686A (en) * 2017-07-17 2017-11-24 深圳拓邦股份有限公司 A kind of grass-removing robot control method and automatically control mowing system
CN208128441U (en) * 2018-03-26 2018-11-20 广东安达交通工程有限公司 Road video monitoring system
CN109063575A (en) * 2018-07-05 2018-12-21 中国计量大学 A kind of intelligent grass-removing based on monocular vision is independently orderly mowed method
CN111426326A (en) * 2020-01-17 2020-07-17 深圳市镭神智能系统有限公司 Navigation method, device, equipment, system and storage medium
JP2021145178A (en) * 2020-03-10 2021-09-24 キヤノン株式会社 Image processing device, determination method, and program
CN112612272A (en) * 2020-12-17 2021-04-06 湖北亿咖通科技有限公司 Obstacle avoidance control method, electronic device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023202423A1 (en) * 2022-04-18 2023-10-26 松灵机器人(深圳)有限公司 Path planning method of mower and related device

Also Published As

Publication number Publication date
WO2023202423A1 (en) 2023-10-26

Similar Documents

Publication Publication Date Title
US10077054B2 (en) Tracking objects within a dynamic environment for improved localization
US20140324630A1 (en) System and method for delivering relevant, location-specific gis information to a mobile device
CN109814137B (en) Positioning method, positioning device and computing equipment
CN110470333A (en) Scaling method and device, the storage medium and electronic device of sensor parameters
US20210192781A1 (en) Position estimation apparatus, tracker, position estimation method, and program
CN110033497B (en) Region calibration method, device, electronic equipment and computer readable storage medium
KR20220004604A (en) Method for detecting obstacle, electronic device, roadside device and cloud control platform
FR3079924A1 (en) FOLLOW-UP BY GEOLOCATION
WO2021078203A1 (en) Obstacle avoidance method for aircraft, and aircraft, flight system, and storage medium
CN114690783A (en) Path planning method of mower and related device
WO2021136547A1 (en) Base station sharing method and system of autonomous robot, and storage medium
CN115082690B (en) Target recognition method, target recognition model training method and device
CN112686951A (en) Method, device, terminal and storage medium for determining robot position
CN114394111B (en) Lane changing method for automatic driving vehicle
US9835456B1 (en) Wheelchair assistance system
CN114047760B (en) Path planning method and device, electronic equipment and automatic driving vehicle
KR102114685B1 (en) Apparatus and method for monitoring crops
CN110858424B (en) Anti-theft method and device for lottery robot and lottery robot
CN113074955B (en) Method, apparatus, electronic device, and medium for controlling data acquisition
EP4086722A1 (en) Map creating method and apparatus for autonomous robot, device, and storage medium
WO2022097053A1 (en) Methods and systems for agricultural substance application
US20140289019A1 (en) Information system to obtain an exposition rating of a geographical area
KR20230008381A (en) Mobile terminal and method of generating information of loadside tree and server for managing information of loadside tree
Zubov et al. Mesh Network of eHealth Intelligent Agents in Smart City: A Case Study on Assistive Devices for Visually Impaired People.
CN114333405B (en) Method for assisting in parking a vehicle

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
CB02 Change of applicant information

Country or region after: China

Address after: 518000 9/F, Building A3, Nanshan Zhiyuan, No. 1001, Xueyuan Avenue, Changyuan Community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Kuma Technology Co.,Ltd.

Address before: 518000 a1-305, floor 3, building 1, Pingshan private enterprise science and Technology Park, No. 65, Lishan Road, Pingshan community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong

Applicant before: Songling robot (Shenzhen) Co.,Ltd.

Country or region before: China

CB02 Change of applicant information