WO2023070840A1 - Robot edgewise path planning method and apparatus, and robot and storage medium - Google Patents

Robot edgewise path planning method and apparatus, and robot and storage medium Download PDF

Info

Publication number
WO2023070840A1
WO2023070840A1 PCT/CN2021/136015 CN2021136015W WO2023070840A1 WO 2023070840 A1 WO2023070840 A1 WO 2023070840A1 CN 2021136015 W CN2021136015 W CN 2021136015W WO 2023070840 A1 WO2023070840 A1 WO 2023070840A1
Authority
WO
WIPO (PCT)
Prior art keywords
edge
point
points
candidate
robot
Prior art date
Application number
PCT/CN2021/136015
Other languages
French (fr)
Chinese (zh)
Inventor
任纪颖
王聪
周孙春
邵林
Original Assignee
美智纵横科技有限责任公司
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 美智纵横科技有限责任公司 filed Critical 美智纵横科技有限责任公司
Publication of WO2023070840A1 publication Critical patent/WO2023070840A1/en

Links

Images

Classifications

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

Definitions

  • the invention relates to the technical field of robot path planning, in particular to a method, device, robot and storage medium for robot path planning along the edge.
  • the robot cleans the boundary of the set cleaning area along the edge, it is easily disturbed by dynamic obstacles in the environment (for example, people or animals active in the family, etc.), thus forming a closed loop along the edge to isolated obstacles , resulting in chaotic trajectory of the robot and low cleaning efficiency.
  • dynamic obstacles in the environment for example, people or animals active in the family, etc.
  • the purpose of the present invention is to propose a robot edge path planning method, device, robot and storage medium aiming at the shortcomings of the above-mentioned prior art, and the purpose is achieved through the following technical solutions.
  • a first aspect of the present invention proposes a method for robot path planning along the edge, the method comprising:
  • the acquisition of the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as a set of candidate points includes:
  • the selection of the preceding edge points satisfying the condition of continuing along the edge from the set of candidate points includes:
  • the selection of a candidate point from the selected candidate points according to the score as a previous point along the edge that satisfies the condition of continuing along the edge includes:
  • the candidate point with the lowest score is selected from the scores as the previous point along the edge that satisfies the condition of continuing along the edge.
  • the scoring of the candidate points according to the minimum distance and the trajectory point corresponding to the minimum distance includes:
  • the determining the idle index of the candidate point according to the obstacles in the area includes:
  • the determining the exploration index of the candidate point according to the trajectory points contained in the area includes:
  • the determining the score of the candidate point according to the distance score, the idle index, and the exploration index includes:
  • the distance score, the idle index, and the exploration index are weighted and summed to obtain the score of the candidate point.
  • the second aspect of the present invention proposes a robot path planning device along the edge, said device comprising:
  • the candidate point acquisition module is used to obtain the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as a candidate point set according to the detection of a closed loop in the driving track;
  • a screening module configured to select from the set of candidate points the preceding point along the edge that satisfies the condition of continuing along the edge;
  • the path planning module is used to re-plan the edge-along path according to the edge-along front point, and control the robot to travel along the re-planned edge-along path.
  • the third aspect of the present invention proposes a robot, including a memory, a processor, and a computer program stored on the memory and operable on the processor.
  • the processor executes the program, the above-mentioned first aspect is implemented. method steps.
  • a fourth aspect of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the above-mentioned first aspect are implemented.
  • the present invention has at least the following beneficial effects or advantages:
  • the robot forms a closed loop along the edge to the isolated obstacle, by obtaining the boundary points of the cleaning area and the contour points of the obstacles in the cleaning area as the candidate point set, and selecting the front edge point that satisfies the condition of continuing along the edge from the candidate point set, so that Re-plan the path along the edge according to the front point along the edge, and control the robot to drive along the new path along the edge, so that the robot can continue to move along the edge, avoid the chaotic trajectory of the robot, and achieve the goal of improving the cleaning efficiency of the robot.
  • Fig. 1 is a flow chart of an embodiment of a robot edge path planning method according to an exemplary embodiment of the present invention
  • Fig. 2 is a schematic diagram of a selection process of an edge front point that satisfies the continuation edge condition according to the embodiment shown in Fig. 1 of the present invention
  • Fig. 3 is a schematic diagram of a scoring process of a candidate point according to an exemplary embodiment of the present invention
  • Fig. 4 is a schematic structural diagram of a robot edge path planning device according to an exemplary embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a hardware structure of a robot according to an exemplary embodiment of the present invention.
  • Fig. 6 is a schematic structural diagram of a storage medium according to an exemplary embodiment of the present invention.
  • first, second, third, etc. may be used in the present invention to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present invention, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word “if” as used herein may be interpreted as “at” or “when” or “in response to a determination.”
  • this application proposes a path planning method for the robot along the edge, that is, when it is detected that the robot forms a closed loop along the edge to the isolated obstacle , by obtaining the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as candidate point sets, and selecting the edge-front points that meet the condition of continuing along the edge from the candidate point set, so as to re-plan the edge-along path according to the edge-front points, and Control the robot to drive along the new path along the edge, so that the robot can continue along the edge, avoid the chaotic trajectory of the robot, so as to achieve the goal of improving the cleaning efficiency of the robot.
  • Fig. 1 is a flow chart of an embodiment of a method for planning a robot's path along an edge according to an exemplary embodiment of the present invention.
  • the robot generates a laser map and an environmental map in the cleaning mode, and the laser map Consistent with the range of the area indicated on the environmental map, the laser map is marked with the area that the laser sensor can scan and the area that is not scanned, and the scanned area is also marked with the size of the obstacle detected by the laser; in the environment The trajectory of the robot and the location of obstacles are marked on the map.
  • the robot path planning method along the edge comprises the following steps:
  • Step 101 Obtain the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as a set of candidate points according to the detected closed loop of the driving trajectory.
  • the robot can detect in real time whether there is a closed-loop trajectory on the driving trajectory.
  • the closed-loop trajectory it means that the robot may have deviated from the original path along the edge and has reached an isolated obstacle along the edge. , the robot needs to be re-navigated to drive along the edge.
  • the cleaning area refers to the entire cleaning area set by the user, and its boundary points belong to the points that need to be along the edge, and the contour points of obstacles in the cleaning area also belong to the points that need to be along the edge, such as a wall located in the cleaning area body obstacles. Therefore, an optimal front edge point can be selected from these points to continue traveling along the edge, avoiding directly entering the covering mode and reducing cleaning efficiency.
  • the acquisition process for the candidate point set includes the following steps:
  • the contour point cluster around the obstacle can be obtained. And by filtering the number of contour points contained in the contour point cluster, relatively small obstacles or dynamic obstacles that lead to the formation of closed loops can be filtered out to ensure that the remaining contour points belong to relatively large obstacles that need to be along the edge , such as walls, cabinets, etc.
  • contour point cluster of an obstacle refers to the point cloud composed of continuous boundary points around the obstacle.
  • Step 102 Select the previous point along the edge from the candidate point set that satisfies the condition of continuing along the edge.
  • the front edge points selected from the candidate point set can allow the robot to continue along the edge instead of driving around isolated obstacles.
  • Step 103 Re-plan the edge-along path according to the previous points along the edge, and control the robot to drive according to the re-planned edge-along path.
  • the re-planning of the edge-along path according to the edge-front point can be realized by using related technologies, and this application does not specifically limit this.
  • the robot drives according to the re-planned edge-along path, it can continue to edge-along, so that Ensure that there is complete track information for reference during the edge-along process, and avoid track confusion.
  • the edge-to-edge path planning process shown in Figure 1 above is completed.
  • the robot forms a closed loop along the edge to an isolated obstacle
  • the boundary points of the cleaning area and the contour points of obstacles in the cleaning area are obtained as candidate point sets, and from the candidate Select the front edge points that satisfy the condition of continuing along the edge, so as to replan the path along the edge according to the front point along the edge, and control the robot to drive along the new path along the edge, so that the robot can continue along the edge and avoid the chaotic trajectory of the robot, so as to achieve the improvement The goal of robot cleaning efficiency.
  • Fig. 2 is a schematic diagram of the selection process of an edge front point that satisfies the condition of continuing along the edge according to the embodiment shown in Fig. 1 according to the present invention. Based on the above-mentioned embodiment shown in Fig. 1, the edge front point is selected from the candidate point set The process includes the following steps:
  • Step 201 Obtain part of the trajectory points currently generated by the robot.
  • the driving trajectory generated by the robot is composed of a series of trajectory points.
  • the optimal front edge point from the candidate point set it is necessary to refer to the share trajectory points generated by the robot recently, that is, the trajectory points forming a closed loop.
  • 10% of all trajectory points of the robot may be obtained, and the 10% of the trajectory points are newly generated points.
  • Step 202 For each candidate point in the candidate point set, determine the distance between the candidate point and each track point.
  • the distance between the two points can be expressed by calculating the Euclidean distance between the candidate point and the track point, since the position representation of the point in the laser map and the environment map is expressed in grid coordinates , so the calculated distance between the candidate point and the trajectory point is also represented by the grid distance.
  • Step 203 From the set of candidate points, select candidate points whose distance is within a preset range.
  • Step 204 For each selected candidate point, select the minimum distance from the distances between the candidate point and each trajectory point, and score the candidate points according to the minimum distance and the trajectory point corresponding to the minimum distance.
  • the distance between the two is the minimum distance.
  • the candidate points can be scored from three aspects.
  • the first aspect is to consider the score of the distance between the candidate point and the nearest track point
  • the second aspect is to consider the distance between the candidate point and the nearest track point
  • the third aspect is to consider the score of the area between the candidate point and the nearest track point that has been explored by the robot.
  • the process of scoring the candidate points for the track points corresponding to the minimum distance and the minimum distance may include the following steps:
  • Step 2041 Use the minimum distance to determine the distance score of the candidate point.
  • D represents the minimum distance
  • best_D represents the best distance, which is a fixed value, such as 20
  • A1 represents the distance score. Based on the above distance score formula, it can be known that the lower the distance score, the better the candidate point is as the front edge point.
  • Step 2042 Determine the area containing the candidate point and the track point corresponding to the minimum distance in the environment map.
  • the area containing the candidate points and the closest track point determined in the environment map may be a preset shape area bounded by the candidate point and the closest track point, and this area is used for subsequent evaluation of the idle index and the exploration index.
  • a rectangular frame area bounded by the candidate point and the nearest track point may be determined.
  • Step 2043 Determine the idle index of the candidate point according to the obstacles in the area.
  • obstacles may be included in the area determined in the environment map, and when the robot selects a front point along the edge, it tends to select a relatively open area to avoid the robot entering a complex area and Unable to get out.
  • the area ratio of the obstacles in the area to the area can be determined, and the idle index can be determined according to the area ratio.
  • the ratio of the area enclosed by these point clouds to the entire determined area can be used.
  • S represents the proportion of the area occupied by obstacles
  • A2 represents the idle index
  • Step 2044 Determine the exploration index of the candidate points according to the track points contained in the area.
  • part of the trajectory of the robot may be included in the area determined in the environment map, indicating that the robot has explored in the area.
  • the area ratio of the track points included in the area to the area may be determined, and the exploration index may be determined according to the area ratio.
  • the exploration index will be relatively high, so the proportion of the area occupied by the trajectory point can be directly used as the exploration index, and the lower the exploration index, the better the candidate point is as the front edge point.
  • Step 2045 Determine the score of the candidate point according to the distance score, idle index, and exploration index.
  • the distance score, the idle index, and the exploration index can be weighted and summed to obtain the score of the candidate point.
  • the weight of each parameter can be set according to actual requirements.
  • Step 205 Select a candidate point from the selected candidate points according to the score as a previous point along the edge that satisfies the condition of continuing along the edge.
  • the candidate point with the lowest score may be selected from the scores of each candidate point as the previous point along the edge that satisfies the condition of continuing along the edge.
  • the candidate point closest to the latest trajectory point of the robot can be selected as the final edge-front point.
  • the selection process of front edge points shown in Figure 2 above is completed, and the candidate point set is screened twice, that is, a part of candidate points are selected as feasible edge points based on the distance between candidate points and track points for the first time , for the second time, the optional edge points are further screened according to the distance between the feasible edge point and the nearest track point and the score determined by the nearest track point, so as to obtain the front edge point that meets the condition of continuing along the edge, so as to avoid the confusion of the robot trajectory, So as to achieve the goal of improving the cleaning efficiency of the robot.
  • the present invention also provides an embodiment of a device for planning a path along the edge of a robot.
  • Fig. 4 is a schematic structural diagram of a robot edge path planning device according to an exemplary embodiment of the present invention, the device is used to execute the robot edge path planning method provided by any of the above embodiments, as shown in Fig. 4, the robot Alongside path planning devices include:
  • the candidate point acquisition module 410 is used to obtain the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as the candidate point set according to the detection of a closed loop in the driving track;
  • a screening module 420 configured to select from the set of candidate points the preceding points along the edge that meet the condition of continuing along the edge;
  • the path planning module 430 is configured to re-plan the edge-along path according to the edge-front points, and control the robot to travel along the re-planned edge-along path.
  • the candidate point acquisition module 410 is specifically configured to acquire the boundary points of the cleaning area and the contour point clusters of each obstacle in the cleaning area according to the laser map and the environmental map; The contour point clusters whose number is less than the preset number are filtered out; the contour points included in the remaining contour point clusters and the acquired boundary points of the cleaning area are used as candidate point sets.
  • the screening module 420 is specifically configured to acquire part of the trajectory points currently generated by the robot; for each candidate point in the candidate point set, determine the distance between the candidate point and each trajectory point From the set of candidate points, select a candidate point whose distance is within a preset range; for each selected candidate point, select the minimum distance from the distance between the candidate point and each trajectory point, and Scoring the candidate points according to the minimum distance and the track point corresponding to the minimum distance; selecting a candidate point from the selected candidate points according to the score as a previous point along the edge satisfying the condition of continuing along the edge.
  • the screening module 420 is specifically configured to select a candidate point from the selected candidate points according to the score as an edge front point that satisfies the condition of continuing along the edge.
  • the candidate point with the lowest score is selected as the previous point along the edge that satisfies the condition of continuing along the edge.
  • the screening module 420 is specifically configured to use the minimum distance to determine the The distance score of the candidate point; determine the area containing the candidate point and the track point corresponding to the minimum distance in the environment map; determine the idle index of the candidate point according to the obstacles in the area; according to the area Determine the exploration index of the candidate point by the track points contained in it; determine the score of the candidate point according to the distance score, the idle index, and the exploration index.
  • the screening module 420 is specifically configured to determine that the obstacles in the area occupy the The area ratio of ; determining the idle index according to the area ratio.
  • the screening module 420 is specifically configured to determine that the track points contained in the area account for the The area ratio of the region; the exploration index is determined according to the area ratio.
  • the screening module 420 is specifically configured to take the distance The score, the idle index, and the exploration index are weighted and summed to obtain the score of the candidate point.
  • the device embodiment since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present invention. It can be understood and implemented by those skilled in the art without creative effort.
  • Embodiments of the present invention also provide a robot corresponding to the method for planning a robot's edge-along path provided in the foregoing embodiments, so as to implement the above-mentioned method for planning a robot's edge-along path.
  • Fig. 5 is a hardware structure diagram of a robot shown according to an exemplary embodiment of the present invention
  • the robot includes: a communication interface 601, a processor 602, a memory 603 and a bus 604; wherein, the communication interface 601, the processor 602 and the memory 603 communicate with each other through the bus 604 .
  • the processor 602 can execute the robot edge path planning method described above by reading and executing the machine-executable instructions corresponding to the control logic of the robot edge path planning method in the memory 603. For the specific content of the method, refer to the above-mentioned embodiment, here I won't repeat it here.
  • the memory 603 mentioned in the present invention can be any electronic, magnetic, optical or other physical storage device, which can contain stored information, such as executable instructions, data and so on.
  • memory 603 can be RAM (Random Access Memory, random access memory), flash memory, storage drive (such as hard drive), any type of storage disk (such as optical disc, DVD, etc.), or similar storage media, or their The combination.
  • the communication connection between the system network element and at least one other network element is realized through at least one communication interface 601 (which may be wired or wireless), and the Internet, wide area network, local network, metropolitan area network, etc. can be used.
  • the bus 604 may be an ISA bus, a PCI bus, or an EISA bus, etc.
  • the bus can be divided into address bus, data bus, control bus and so on.
  • the memory 603 is used to store a program, and the processor 602 executes the program after receiving an execution instruction.
  • the processor 602 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 602 or an instruction in the form of software.
  • Above-mentioned processor 602 can be general-purpose processor, comprises central processing unit (Central Processing Unit, be called for short CPU), network processor (Network Processor, be called for short NP) etc.; Can also be digital signal processor (DSP), application-specific integrated circuit (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the robot provided in the embodiment of the present application is based on the same inventive concept as the method for planning the robot's path along the edge provided in the embodiment of the present application, and has the same beneficial effect as the method adopted, operated or realized.
  • the embodiment of the present application also provides a computer-readable storage medium corresponding to the robot edge path planning method provided in the previous embodiment, please refer to FIG. 6, the computer-readable storage medium shown is an optical disc 30, on A computer program (that is, a program product) is stored, and when the computer program is run by the processor, it will execute the robot edge path planning method provided in any of the foregoing implementation manners.
  • a computer program that is, a program product
  • examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random Access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other optical and magnetic storage media will not be repeated here.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random Access memory
  • ROM read only memory
  • EEPROM electrically erasable programmable read only memory
  • flash memory or other optical and magnetic storage media will not be repeated here.
  • the computer-readable storage medium provided by the above-mentioned embodiments of the present application is based on the same inventive concept as the robot’s path planning method along the edge provided by the embodiments of the present application, and has the same beneficial effects as the method adopted, run or implemented by the stored application program .

Abstract

A robot edgewise path planning method and apparatus, and a robot and a storage medium. The method comprises: according to the fact that it is detected that there is a closed loop in a traveling trajectory, acquiring boundary points of a cleaning area and contour points of an obstacle in the cleaning area as a candidate point set (101); selecting, from the candidate point set, edgewise front points which satisfy a continuous edgewise condition (102); and re-planning an edgewise path according to the edgewise front points, and then controlling a robot to travel according to the re-planned edgewise path (103). When a robot performs an edgewise travel onto an isolated obstacle and forms a closed loop, boundary points of a cleaning area and contour points of the obstacle in the cleaning area are acquired as a candidate point set, and edgewise front points, which satisfy a continuous edgewise condition, are selected from the candidate point set, such that an edgewise path is re-planned according to the edgewise front points, and the robot is controlled to travel according to a new edgewise path, so that the robot can continue to perform the edgewise travel, thereby preventing a trajectory of the robot from becoming disordered, and achieving the aim of improving the cleaning efficiency of the robot.

Description

一种机器人沿边路径规划方法、装置、机器人及存储介质A robot edge path planning method, device, robot and storage medium
优先权信息priority information
本申请请求2021年10月29日向中国国家知识产权局提交的、专利申请号为202111277346.2的专利申请的优先权和权益,并且通过参照将其全文并入此处。This application claims the priority and benefit of the patent application No. 202111277346.2 filed with the State Intellectual Property Office of China on October 29, 2021, which is hereby incorporated by reference in its entirety.
技术领域technical field
本发明涉及机器人路径规划技术领域,具体涉及一种机器人沿边路径规划方法、装置、机器人及存储介质。The invention relates to the technical field of robot path planning, in particular to a method, device, robot and storage medium for robot path planning along the edge.
背景技术Background technique
机器人在对设定的清扫区域边界进行沿边清扫过程中,很容易受到环境中的动态障碍物的扰动(例如,在家庭中活动的人或者动物等),从而沿边至孤立障碍物上,形成闭环,导致机器人轨迹混乱,清扫效率低。When the robot cleans the boundary of the set cleaning area along the edge, it is easily disturbed by dynamic obstacles in the environment (for example, people or animals active in the family, etc.), thus forming a closed loop along the edge to isolated obstacles , resulting in chaotic trajectory of the robot and low cleaning efficiency.
发明内容Contents of the invention
本发明的目的是针对上述现有技术的不足提出的一种机器人沿边路径规划方法、装置、机器人及存储介质,该目的是通过以下技术方案实现的。The purpose of the present invention is to propose a robot edge path planning method, device, robot and storage medium aiming at the shortcomings of the above-mentioned prior art, and the purpose is achieved through the following technical solutions.
本发明的第一方面提出了一种机器人沿边路径规划方法,所述方法包括:A first aspect of the present invention proposes a method for robot path planning along the edge, the method comprising:
根据检测到行驶轨迹存在闭环,获取清扫区域的边界点和所述清扫区域内障碍物的轮廓点作为候选点集;According to detecting that there is a closed loop in the driving track, obtain the boundary points of the cleaning area and the contour points of the obstacles in the cleaning area as a set of candidate points;
从所述候选点集中选择满足继续沿边条件的沿边前置点;Selecting the front edge point satisfying the condition of continuing along the edge from the set of candidate points;
根据所述沿边前置点重新规划沿边路径,并控制所述机器人按重新规划的沿边路径行驶。Re-planning the edge-along path according to the edge-along front point, and controlling the robot to travel along the re-planned edge-along path.
在本申请的一些实施例中,所述获取清扫区域的边界点和所述清扫区域内障碍物的轮廓点作为候选点集,包括:In some embodiments of the present application, the acquisition of the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as a set of candidate points includes:
根据激光地图和环境地图获取清扫区域的边界点和所述清扫区域内每个障碍物的轮廓点簇;将轮廓点数量小于预设数量的轮廓点簇过滤掉;将剩余的轮廓点簇包括的轮廓点和获取的清扫区域的边界点作为候选点集。Obtain the boundary points of the cleaning area and the contour point clusters of each obstacle in the cleaning area according to the laser map and the environmental map; filter out the contour point clusters whose contour point quantity is less than the preset number; The contour points and the obtained boundary points of the cleaned area are used as candidate point sets.
在本申请的一些实施例中,所述从所述候选点集中选择满足继续沿边条件的沿边前置点,包括:In some embodiments of the present application, the selection of the preceding edge points satisfying the condition of continuing along the edge from the set of candidate points includes:
获取所述机器人当前产生的部分轨迹点;针对候选点集中的每一候选点,确定该候选点与每个轨迹点之间的距离;从所述候选点集中,选择距离位于预设范围内的候选点;针对选择的每一候选点,从所述候选点与每个轨迹点之间的距离中选出最小距离,并根据所 述最小距离和所述最小距离对应的轨迹点对所述候选点进行评分;根据所述评分从选择的候选点中选取一个候选点作为满足继续沿边条件的沿边前置点。Obtain part of the track points currently generated by the robot; for each candidate point in the candidate point set, determine the distance between the candidate point and each track point; from the candidate point set, select a distance within a preset range Candidate points; for each selected candidate point, select the minimum distance from the distance between the candidate point and each track point, and compare the candidate points according to the minimum distance and the track point corresponding to the minimum distance Points are scored; according to the score, a candidate point is selected from the selected candidate points as a previous point along the edge that satisfies the condition of continuing along the edge.
在本申请的一些实施例中,所述根据所述评分从选择的候选点中选取一个候选点作为满足继续沿边条件的沿边前置点,包括:In some embodiments of the present application, the selection of a candidate point from the selected candidate points according to the score as a previous point along the edge that satisfies the condition of continuing along the edge includes:
从所述评分中选取评分最低的候选点作为满足继续沿边条件的沿边前置点。The candidate point with the lowest score is selected from the scores as the previous point along the edge that satisfies the condition of continuing along the edge.
在本申请的一些实施例中,所述根据所述最小距离和所述最小距离对应的轨迹点对所述候选点进行评分,包括:In some embodiments of the present application, the scoring of the candidate points according to the minimum distance and the trajectory point corresponding to the minimum distance includes:
利用所述最小距离确定所述候选点的距离得分;在环境地图中确定包含所述候选点和所述最小距离对应的轨迹点的区域;根据所述区域内的障碍物确定所述候选点的空闲指数;根据所述区域内包含的轨迹点确定所述候选点的探索指数;根据所述距离得分、所述空闲指数、以及所述探索指数,确定所述候选点的评分。Utilize the minimum distance to determine the distance score of the candidate point; determine the area containing the candidate point and the track point corresponding to the minimum distance in the environment map; determine the distance of the candidate point according to the obstacles in the area an idle index; determine the exploration index of the candidate point according to the track points contained in the area; determine the score of the candidate point according to the distance score, the idle index, and the exploration index.
在本申请的一些实施例中,所述根据所述区域内的障碍物确定所述候选点的空闲指数,包括:In some embodiments of the present application, the determining the idle index of the candidate point according to the obstacles in the area includes:
确定所述区域内的障碍物占所述区域的面积比例;根据所述面积比例确定所述空闲指数。Determine the area ratio of the obstacles in the area to the area; determine the idle index according to the area ratio.
在本申请的一些实施例中,所述根据所述区域内包含的轨迹点确定所述候选点的探索指数,包括:In some embodiments of the present application, the determining the exploration index of the candidate point according to the trajectory points contained in the area includes:
确定所述区域包含的轨迹点占所述区域的面积比例;根据所述面积比例确定所述探索指数。Determine the area ratio of the track points included in the area to the area; determine the exploration index according to the area ratio.
在本申请的一些实施例中,所述根据所述距离得分、所述空闲指数、以及所述探索指数,确定所述候选点的评分,包括:In some embodiments of the present application, the determining the score of the candidate point according to the distance score, the idle index, and the exploration index includes:
将所述距离得分、所述空闲指数、以及所述探索指数进行加权求和,得到所述候选点的评分。The distance score, the idle index, and the exploration index are weighted and summed to obtain the score of the candidate point.
本发明的第二方面提出了一种机器人沿边路径规划装置,所述装置包括:The second aspect of the present invention proposes a robot path planning device along the edge, said device comprising:
候选点获取模块,用于根据检测到行驶轨迹存在闭环,获取清扫区域的边界点和所述清扫区域内障碍物的轮廓点作为候选点集;The candidate point acquisition module is used to obtain the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as a candidate point set according to the detection of a closed loop in the driving track;
筛选模块,用于从所述候选点集中选择满足继续沿边条件的沿边前置点;A screening module, configured to select from the set of candidate points the preceding point along the edge that satisfies the condition of continuing along the edge;
路径规划模块,用于根据所述沿边前置点重新规划沿边路径,并控制所述机器人按重新规划的沿边路径行驶。The path planning module is used to re-plan the edge-along path according to the edge-along front point, and control the robot to travel along the re-planned edge-along path.
本发明的第三方面提出了一种机器人,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上述第一方面所述方法的步骤。The third aspect of the present invention proposes a robot, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the above-mentioned first aspect is implemented. method steps.
本发明的第四方面提出了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如上述第一方面所述方法的步骤。A fourth aspect of the present invention provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method described in the above-mentioned first aspect are implemented.
基于上述第一方面和第二方面所述的机器人沿边路径规划方法及装置,本发明至少具有如下有益效果或优点:Based on the robot edge path planning method and device described in the first aspect and the second aspect above, the present invention has at least the following beneficial effects or advantages:
当机器人沿边至孤立障碍物上形成闭环时,通过获取清扫区域的边界点和清扫区域内障碍物的轮廓点作为候选点集,并从候选点集中选择满足继续沿边条件的沿边前置点,从而根据沿边前置点重新规划沿边路径,并控制机器人按新的沿边路径行驶,以使机器人能 够继续进行沿边,避免机器人轨迹混乱,从而达到提升机器人清扫效率的目标。When the robot forms a closed loop along the edge to the isolated obstacle, by obtaining the boundary points of the cleaning area and the contour points of the obstacles in the cleaning area as the candidate point set, and selecting the front edge point that satisfies the condition of continuing along the edge from the candidate point set, so that Re-plan the path along the edge according to the front point along the edge, and control the robot to drive along the new path along the edge, so that the robot can continue to move along the edge, avoid the chaotic trajectory of the robot, and achieve the goal of improving the cleaning efficiency of the robot.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention, and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute improper limitations to the present invention. In the attached picture:
图1为本发明根据一示例性实施例示出的一种机器人沿边路径规划方法的实施例流程图;Fig. 1 is a flow chart of an embodiment of a robot edge path planning method according to an exemplary embodiment of the present invention;
图2为本发明根据图1所示实施例示出的一种满足继续沿边条件的沿边前置点选择流程示意图;Fig. 2 is a schematic diagram of a selection process of an edge front point that satisfies the continuation edge condition according to the embodiment shown in Fig. 1 of the present invention;
图3为本发明根据一示例性实施例示出的一种候选点的评分流程示意图;Fig. 3 is a schematic diagram of a scoring process of a candidate point according to an exemplary embodiment of the present invention;
图4为本发明根据一示例性实施例示出的一种机器人沿边路径规划装置的结构示意图;Fig. 4 is a schematic structural diagram of a robot edge path planning device according to an exemplary embodiment of the present invention;
图5为本发明根据一示例性实施例示出的一种机器人的硬件结构示意图图;FIG. 5 is a schematic diagram of a hardware structure of a robot according to an exemplary embodiment of the present invention;
图6为本发明根据一示例性实施例示出的一种存储介质的结构示意图。Fig. 6 is a schematic structural diagram of a storage medium according to an exemplary embodiment of the present invention.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.
在本发明使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used herein and in the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本发明可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本发明范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present invention, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
为了解决目前机器人沿边至孤立障碍物上形成封闭环,导致机器人轨迹混乱,清扫效率低的问题,本申请提出一种机器人沿边路径规划方法,即当检测到机器人沿边至孤立障碍物上形成闭环时,通过获取清扫区域的边界点和清扫区域内障碍物的轮廓点作为候选点集,并从候选点集中选择满足继续沿边条件的沿边前置点,从而根据沿边前置点重新规划沿边路径,并控制机器人按新的沿边路径行驶,以使机器人能够继续进行沿边,避免机器人轨迹混乱,从而达到提升机器人清扫效率的目标。In order to solve the current problem that the robot forms a closed loop along the edge to the isolated obstacle, resulting in chaotic robot trajectory and low cleaning efficiency, this application proposes a path planning method for the robot along the edge, that is, when it is detected that the robot forms a closed loop along the edge to the isolated obstacle , by obtaining the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as candidate point sets, and selecting the edge-front points that meet the condition of continuing along the edge from the candidate point set, so as to re-plan the edge-along path according to the edge-front points, and Control the robot to drive along the new path along the edge, so that the robot can continue along the edge, avoid the chaotic trajectory of the robot, so as to achieve the goal of improving the cleaning efficiency of the robot.
为了使本领域技术人员更好的理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to 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 in conjunction with the drawings in the embodiments of the present application.
实施例一:Embodiment one:
图1为本发明根据一示例性实施例示出的一种机器人沿边路径规划方法的实施例流程图,在本申请实施例中,机器人在清扫模式下,会生成激光地图和环境地图,并且激光地图和环境地图上表示的区域范围一致,在激光地图上标记有激光传感器能够扫描到的区域和未扫描到的区域,并且在扫描到的区域中还标记有激光探测到的障碍物大小;在环境地图上标记有机器人的行驶轨迹和障碍物位置。Fig. 1 is a flow chart of an embodiment of a method for planning a robot's path along an edge according to an exemplary embodiment of the present invention. In the embodiment of the present application, the robot generates a laser map and an environmental map in the cleaning mode, and the laser map Consistent with the range of the area indicated on the environmental map, the laser map is marked with the area that the laser sensor can scan and the area that is not scanned, and the scanned area is also marked with the size of the obstacle detected by the laser; in the environment The trajectory of the robot and the location of obstacles are marked on the map.
如图1所示,所述机器人沿边路径规划方法包括如下步骤:As shown in Figure 1, the robot path planning method along the edge comprises the following steps:
步骤101:根据检测到行驶轨迹存在闭环,获取清扫区域的边界点和清扫区域内障碍物的轮廓点作为候选点集。Step 101: Obtain the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as a set of candidate points according to the detected closed loop of the driving trajectory.
在一可选实施例中,机器人在沿边行驶过程中,可以实时检测行驶轨迹上是否存在闭环轨迹,在检测到闭环轨迹时,表示机器人可能已经偏离原来的沿边路径,已经沿边至孤立障碍物上,需要将机器人重新导航至沿边行驶。In an optional embodiment, during the process of driving along the edge, the robot can detect in real time whether there is a closed-loop trajectory on the driving trajectory. When the closed-loop trajectory is detected, it means that the robot may have deviated from the original path along the edge and has reached an isolated obstacle along the edge. , the robot needs to be re-navigated to drive along the edge.
在步骤101中,清扫区域指的是用户设定好的整个清扫区域,其边界点属于需要沿边的点,清扫区域内障碍物的轮廓点也属于需要沿边的点,例如位于清扫区域内的墙体障碍物。因此,可以从这些点中选出最优的一个沿边前置点,以继续沿边行进,避免直接进入覆盖模式,降低清扫效率。In step 101, the cleaning area refers to the entire cleaning area set by the user, and its boundary points belong to the points that need to be along the edge, and the contour points of obstacles in the cleaning area also belong to the points that need to be along the edge, such as a wall located in the cleaning area body obstacles. Therefore, an optimal front edge point can be selected from these points to continue traveling along the edge, avoiding directly entering the covering mode and reducing cleaning efficiency.
在一可选的具体实施例中,针对候选点集的获取过程包括如下步骤:In an optional specific embodiment, the acquisition process for the candidate point set includes the following steps:
1、根据激光地图和环境地图获取清扫区域的边界点和清扫区域内每个障碍物的轮廓点簇;1. Obtain the boundary points of the cleaning area and the contour point clusters of each obstacle in the cleaning area according to the laser map and the environmental map;
2、将轮廓点数量小于预设数量的轮廓点簇过滤掉;2. Filter out the contour point clusters whose number of contour points is less than the preset number;
3、将剩余的轮廓点簇包括的轮廓点和获取的清扫区域的边界点作为候选点集。3. Taking the contour points included in the remaining contour point clusters and the obtained boundary points of the cleaning area as candidate point sets.
其中,由于激光地图中标记有障碍物大小的信息,因此可以获取到围绕障碍物周围的轮廓点簇。并且通过对轮廓点簇包含的轮廓点数量进行过滤,可以将比较小的障碍物或者导致闭环形成的动态障碍物过滤掉,以确保剩下的轮廓点均属于比较大的且需要沿边的障碍物,比如墙体、柜子等。Among them, since the size information of the obstacle is marked in the laser map, the contour point cluster around the obstacle can be obtained. And by filtering the number of contour points contained in the contour point cluster, relatively small obstacles or dynamic obstacles that lead to the formation of closed loops can be filtered out to ensure that the remaining contour points belong to relatively large obstacles that need to be along the edge , such as walls, cabinets, etc.
值得注意的是,障碍物的轮廓点簇指的是围绕障碍物的连续边界点组成的点云。It is worth noting that the contour point cluster of an obstacle refers to the point cloud composed of continuous boundary points around the obstacle.
步骤102:从候选点集中选择满足继续沿边条件的沿边前置点。Step 102: Select the previous point along the edge from the candidate point set that satisfies the condition of continuing along the edge.
其中,从候选点集中选出的沿边前置点,能够让机器人继续进行沿边,而不是围绕孤立障碍物行驶。Among them, the front edge points selected from the candidate point set can allow the robot to continue along the edge instead of driving around isolated obstacles.
针对从候选点集中选择满足继续沿边条件的沿边前置点的具体实现,可以参见下述实施例的相关描述,本申请在此暂不详述。For the specific realization of selecting the front edge point from the candidate point set that satisfies the condition of continuing along the edge, refer to the relevant description of the following embodiments, and the present application will not describe it here in detail.
步骤103:根据沿边前置点重新规划沿边路径,并控制机器人按重新规划的沿边路径行驶。Step 103: Re-plan the edge-along path according to the previous points along the edge, and control the robot to drive according to the re-planned edge-along path.
本领域技术人员可以理解的是,根据沿边前置点重新规划沿边路径可以采用相关技术实现,本申请对此不进行具体限定,机器人按照重新规划的沿边路径行驶后,便可继续进行沿边,从而保证沿边过程中具有完整的轨迹信息可参考,避免造成轨迹混乱。Those skilled in the art can understand that the re-planning of the edge-along path according to the edge-front point can be realized by using related technologies, and this application does not specifically limit this. After the robot drives according to the re-planned edge-along path, it can continue to edge-along, so that Ensure that there is complete track information for reference during the edge-along process, and avoid track confusion.
至此,完成上述图1所示的沿边路径规划流程,当机器人沿边至孤立障碍物上形成闭环时,通过获取清扫区域的边界点和清扫区域内障碍物的轮廓点作为候选点集,并从候选点集中选择满足继续沿边条件的沿边前置点,从而根据沿边前置点重新规划沿边路径,并控制机器人按新的沿边路径行驶,以使机器人能够继续进行沿边,避免机器人轨迹混乱, 从而达到提升机器人清扫效率的目标。So far, the edge-to-edge path planning process shown in Figure 1 above is completed. When the robot forms a closed loop along the edge to an isolated obstacle, the boundary points of the cleaning area and the contour points of obstacles in the cleaning area are obtained as candidate point sets, and from the candidate Select the front edge points that satisfy the condition of continuing along the edge, so as to replan the path along the edge according to the front point along the edge, and control the robot to drive along the new path along the edge, so that the robot can continue along the edge and avoid the chaotic trajectory of the robot, so as to achieve the improvement The goal of robot cleaning efficiency.
实施例二:Embodiment two:
图2为本发明根据图1所示实施例示出的一种满足继续沿边条件的沿边前置点选择流程示意图,基于上述图1所示实施例的基础上,从候选点集中选择沿边前置点的流程包括如下步骤:Fig. 2 is a schematic diagram of the selection process of an edge front point that satisfies the condition of continuing along the edge according to the embodiment shown in Fig. 1 according to the present invention. Based on the above-mentioned embodiment shown in Fig. 1, the edge front point is selected from the candidate point set The process includes the following steps:
步骤201:获取机器人当前产生的部分轨迹点。Step 201: Obtain part of the trajectory points currently generated by the robot.
其中,机器人产生的行驶轨迹是由一系列的轨迹点组成,为了从候选点集中筛选出最优的沿边前置点,需要参考机器人最近产生的股份轨迹点,也即形成闭环的轨迹点。Among them, the driving trajectory generated by the robot is composed of a series of trajectory points. In order to select the optimal front edge point from the candidate point set, it is necessary to refer to the share trajectory points generated by the robot recently, that is, the trajectory points forming a closed loop.
可选的,可以获取机器人所有轨迹点中的10%轨迹点,并且该10%轨迹点为最新产生的点。Optionally, 10% of all trajectory points of the robot may be obtained, and the 10% of the trajectory points are newly generated points.
步骤202:针对候选点集中的每一候选点,确定该候选点与每个轨迹点之间的距离。Step 202: For each candidate point in the candidate point set, determine the distance between the candidate point and each track point.
在一可选的实施例中,可以通过计算候选点与轨迹点之间的欧式距离来表示两点之间的距离,由于在激光地图和环境地图中关于点的位置表示均是以栅格坐标,因此计算得到的候选点与轨迹点之间的距离也是以栅格距离来表示。In an optional embodiment, the distance between the two points can be expressed by calculating the Euclidean distance between the candidate point and the track point, since the position representation of the point in the laser map and the environment map is expressed in grid coordinates , so the calculated distance between the candidate point and the trajectory point is also represented by the grid distance.
举例来说,假设候选点集中有10个候选点,轨迹点有30个,那么针对每个候选点,会确定出30个欧式距离,最终会得到10*30=300个欧式距离,每个欧式距离对应一组候选点、轨迹点的组合。For example, suppose there are 10 candidate points in the candidate point set and 30 track points, then for each candidate point, 30 Euclidean distances will be determined, and finally 10*30=300 Euclidean distances will be obtained, and each Euclidean distance The distance corresponds to a combination of a group of candidate points and trajectory points.
步骤203:从候选点集中,选择距离位于预设范围内的候选点。Step 203: From the set of candidate points, select candidate points whose distance is within a preset range.
其中,对于候选点与轨迹点之间的距离,该距离太长或者太短对机器人继续沿边的作用均不佳,因此需要选择距离位于一定范围内的候选点作为可行沿边点。Among them, as for the distance between the candidate point and the track point, if the distance is too long or too short, it will not be good for the robot to continue along the edge. Therefore, it is necessary to select a candidate point within a certain distance as a feasible edge point.
步骤204:针对选择的每一候选点,从所述候选点与每个轨迹点之间的距离中选出最小距离,并根据最小距离和最小距离对应的轨迹点对所述候选点进行评分。Step 204: For each selected candidate point, select the minimum distance from the distances between the candidate point and each trajectory point, and score the candidate points according to the minimum distance and the trajectory point corresponding to the minimum distance.
其中,候选点距离哪个轨迹点最近,那么二者之间的距离即为最小距离,在对候选点进行评分时,结合最小距离和距离最近的轨迹点的位置进行评分,可以确保评分准确性。Among them, which track point is the closest to the candidate point, then the distance between the two is the minimum distance. When scoring the candidate points, the minimum distance and the position of the closest track point are used for scoring to ensure the accuracy of scoring.
在一可选的具体实施例中,可以从三个方面对候选点进行评分,第一方面是考虑候选点与最近轨迹点之间距离的得分,第二方面是考虑候选点与最近轨迹点之间区域的空旷程度得分,第三方面是考虑候选点与最近轨迹点之间区域被机器人探索过的得分。In an optional specific embodiment, the candidate points can be scored from three aspects. The first aspect is to consider the score of the distance between the candidate point and the nearest track point, and the second aspect is to consider the distance between the candidate point and the nearest track point. The third aspect is to consider the score of the area between the candidate point and the nearest track point that has been explored by the robot.
基于此,如图3所示,针对根据最小距离和最小距离对应的轨迹点对候选点进行评分的过程可以包括如下步骤:Based on this, as shown in Figure 3, the process of scoring the candidate points for the track points corresponding to the minimum distance and the minimum distance may include the following steps:
步骤2041:利用最小距离确定候选点的距离得分。Step 2041: Use the minimum distance to determine the distance score of the candidate point.
其中,距离得分的计算公式如下:Among them, the calculation formula of the distance score is as follows:
A1=1-abs(sin(π×D/best_D))A1=1-abs(sin(π×D/best_D))
其中,D表示最小距离,best_D表示最佳距离,为固定值,例如可以取20,A1表示距离得分,基于上述距离得分公式可知,距离得分越低,将候选点作为沿边前置点越好。Among them, D represents the minimum distance, best_D represents the best distance, which is a fixed value, such as 20, and A1 represents the distance score. Based on the above distance score formula, it can be known that the lower the distance score, the better the candidate point is as the front edge point.
步骤2042:在环境地图中确定包含所述候选点和最小距离对应的轨迹点的区域。Step 2042: Determine the area containing the candidate point and the track point corresponding to the minimum distance in the environment map.
其中,在环境地图中确定的包含候选点与最近轨迹点的区域可以是以候选点和最近轨迹点为边界的预设形状区域,该区域用于后续评价空闲指数和探索指数。Wherein, the area containing the candidate points and the closest track point determined in the environment map may be a preset shape area bounded by the candidate point and the closest track point, and this area is used for subsequent evaluation of the idle index and the exploration index.
可选的,为了便于计算,可以确定以候选点和最近轨迹点为边界的矩形框区域。Optionally, for ease of calculation, a rectangular frame area bounded by the candidate point and the nearest track point may be determined.
步骤2043:根据所述区域内的障碍物确定候选点的空闲指数。Step 2043: Determine the idle index of the candidate point according to the obstacles in the area.
在一可选的实施例中,在环境地图中确定的区域中有可能会将障碍物包含进去,而机器人在选择沿边前置点时,倾向选择较空旷的区域,以避免机器人进入复杂区域而无法脱困出来。In an optional embodiment, obstacles may be included in the area determined in the environment map, and when the robot selects a front point along the edge, it tends to select a relatively open area to avoid the robot entering a complex area and Unable to get out.
基于此,可以通过确定区域内的障碍物占该区域的面积比例,并根据所述面积比例确定空闲指数。Based on this, the area ratio of the obstacles in the area to the area can be determined, and the idle index can be determined according to the area ratio.
可选的,由于障碍物在激光地图中会由一系列的点云表示,因此可以利用这些点云围成的区域占整个确定出的区域的面积比例。Optionally, since obstacles are represented by a series of point clouds in the laser map, the ratio of the area enclosed by these point clouds to the entire determined area can be used.
障碍物占的面积比例越大,空闲程度越低,因此空闲指数的计算公式具体如下:The larger the proportion of the area occupied by obstacles, the lower the degree of vacancy, so the calculation formula of the vacancy index is as follows:
A2=1-SA2=1-S
其中,S表示障碍物占的面积比例,A2表示空闲指数,基于上述公式可知,空闲指数越低,将候选点作为沿边前置点越好。Among them, S represents the proportion of the area occupied by obstacles, and A2 represents the idle index. Based on the above formula, it can be known that the lower the idle index, the better the candidate point is as the front edge point.
步骤2044:根据所述区域内包含的轨迹点确定候选点的探索指数。Step 2044: Determine the exploration index of the candidate points according to the track points contained in the area.
在一可选的实施例中,在环境地图中确定的区域中有可能会将机器人的一部分轨迹也包含进去,表示机器人在该区域内已探索过。In an optional embodiment, part of the trajectory of the robot may be included in the area determined in the environment map, indicating that the robot has explored in the area.
基于此,可以通过确定区域包含的轨迹点占该区域的面积比例,并根据所述面积比例确定所述探索指数。Based on this, the area ratio of the track points included in the area to the area may be determined, and the exploration index may be determined according to the area ratio.
其中,机器人若在区域内已经探索过,那么探索指数会比较高,因此可以将轨迹点占的面积比例直接作为探索指数,并且探索指数越低,将候选点作为沿边前置点越好。Among them, if the robot has already explored in the area, the exploration index will be relatively high, so the proportion of the area occupied by the trajectory point can be directly used as the exploration index, and the lower the exploration index, the better the candidate point is as the front edge point.
步骤2045:根据距离得分、空闲指数、以及探索指数确定候选点的评分。Step 2045: Determine the score of the candidate point according to the distance score, idle index, and exploration index.
可选的,基于上述步骤2041至步骤2044的描述,可以将距离得分、空闲指数、以及探索指数进行加权求和,得到候选点的评分。Optionally, based on the description of the above step 2041 to step 2044, the distance score, the idle index, and the exploration index can be weighted and summed to obtain the score of the candidate point.
其中,每项参数的权重可以根据实际需求设置。Wherein, the weight of each parameter can be set according to actual requirements.
步骤205:根据所述评分从选择的候选点中选取一个候选点作为满足继续沿边条件的沿边前置点。Step 205: Select a candidate point from the selected candidate points according to the score as a previous point along the edge that satisfies the condition of continuing along the edge.
可选的,基于上述步骤204的描述,可以从各个候选点的评分中选取评分最低的候选点作为满足继续沿边条件的沿边前置点。Optionally, based on the description of step 204 above, the candidate point with the lowest score may be selected from the scores of each candidate point as the previous point along the edge that satisfies the condition of continuing along the edge.
进一步地,如果评分最低的候选点存在一个以上,则可以选取距机器人最新轨迹点最近的候选点作为最终的沿边前置点。Further, if there is more than one candidate point with the lowest score, the candidate point closest to the latest trajectory point of the robot can be selected as the final edge-front point.
至此,完成上述图2所示的沿边前置点选择流程,通过对候选点集进行两次筛选,即第一次根据候选点与轨迹点之间的距离删选出一部分候选点作为可行沿边点,第二次根据由可行沿边点与最近轨迹点之间的距离和最近轨迹点确定的评分进一步对可选沿边点进行筛选,以得到满足继续沿边条件的沿边前置点,避免机器人轨迹混乱,从而达到提升机器人清扫效率的目标。So far, the selection process of front edge points shown in Figure 2 above is completed, and the candidate point set is screened twice, that is, a part of candidate points are selected as feasible edge points based on the distance between candidate points and track points for the first time , for the second time, the optional edge points are further screened according to the distance between the feasible edge point and the nearest track point and the score determined by the nearest track point, so as to obtain the front edge point that meets the condition of continuing along the edge, so as to avoid the confusion of the robot trajectory, So as to achieve the goal of improving the cleaning efficiency of the robot.
与前述机器人沿边路径规划方法的实施例相对应,本发明还提供了机器人沿边路径规划装置的实施例。Corresponding to the foregoing embodiments of the method for planning a robot's path along the edge, the present invention also provides an embodiment of a device for planning a path along the edge of a robot.
图4为本发明根据一示例性实施例示出的一种机器人沿边路径规划装置的结构示意图,该装置用于执行上述任一实施例提供的机器人沿边路径规划方法,如图4所示,该机器人沿边路径规划装置包括:Fig. 4 is a schematic structural diagram of a robot edge path planning device according to an exemplary embodiment of the present invention, the device is used to execute the robot edge path planning method provided by any of the above embodiments, as shown in Fig. 4, the robot Alongside path planning devices include:
候选点获取模块410,用于根据检测到行驶轨迹存在闭环,获取清扫区域的边界点和所述清扫区域内障碍物的轮廓点作为候选点集;The candidate point acquisition module 410 is used to obtain the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as the candidate point set according to the detection of a closed loop in the driving track;
筛选模块420,用于从所述候选点集中选择满足继续沿边条件的沿边前置点;A screening module 420, configured to select from the set of candidate points the preceding points along the edge that meet the condition of continuing along the edge;
路径规划模块430,用于根据所述沿边前置点重新规划沿边路径,并控制所述机器人按重新规划的沿边路径行驶。The path planning module 430 is configured to re-plan the edge-along path according to the edge-front points, and control the robot to travel along the re-planned edge-along path.
在一可选的实现方式中,所述候选点获取模块410,具体用于根据激光地图和环境地图获取清扫区域的边界点和所述清扫区域内每个障碍物的轮廓点簇;将轮廓点数量小于预设数量的轮廓点簇过滤掉;将剩余的轮廓点簇包括的轮廓点和获取的清扫区域的边界点作为候选点集。In an optional implementation, the candidate point acquisition module 410 is specifically configured to acquire the boundary points of the cleaning area and the contour point clusters of each obstacle in the cleaning area according to the laser map and the environmental map; The contour point clusters whose number is less than the preset number are filtered out; the contour points included in the remaining contour point clusters and the acquired boundary points of the cleaning area are used as candidate point sets.
在一可选的实现方式中,所述筛选模块420,具体用于获取所述机器人当前产生的部分轨迹点;针对候选点集中的每一候选点,确定该候选点与每个轨迹点之间的距离;从所述候选点集中,选择距离位于预设范围内的候选点;针对选择的每一候选点,从所述候选点与每个轨迹点之间的距离中选出最小距离,并根据所述最小距离和所述最小距离对应的轨迹点对所述候选点进行评分;根据所述评分从选择的候选点中选取一个候选点作为满足继续沿边条件的沿边前置点。In an optional implementation manner, the screening module 420 is specifically configured to acquire part of the trajectory points currently generated by the robot; for each candidate point in the candidate point set, determine the distance between the candidate point and each trajectory point From the set of candidate points, select a candidate point whose distance is within a preset range; for each selected candidate point, select the minimum distance from the distance between the candidate point and each trajectory point, and Scoring the candidate points according to the minimum distance and the track point corresponding to the minimum distance; selecting a candidate point from the selected candidate points according to the score as a previous point along the edge satisfying the condition of continuing along the edge.
在一可选的实现方式中,所述筛选模块420,具体用于在根据所述评分从选择的候选点中选取一个候选点作为满足继续沿边条件的沿边前置点过程中,从所述评分中选取评分最低的候选点作为满足继续沿边条件的沿边前置点。In an optional implementation manner, the screening module 420 is specifically configured to select a candidate point from the selected candidate points according to the score as an edge front point that satisfies the condition of continuing along the edge. The candidate point with the lowest score is selected as the previous point along the edge that satisfies the condition of continuing along the edge.
在一可选的实现方式中,所述筛选模块420,具体用于在根据所述最小距离和所述最小距离对应的轨迹点对所述候选点进行评分过程中,利用所述最小距离确定所述候选点的距离得分;在环境地图中确定包含所述候选点和所述最小距离对应的轨迹点的区域;根据所述区域内的障碍物确定所述候选点的空闲指数;根据所述区域内包含的轨迹点确定所述候选点的探索指数;根据所述距离得分、所述空闲指数、以及所述探索指数,确定所述候选点的评分。In an optional implementation manner, the screening module 420 is specifically configured to use the minimum distance to determine the The distance score of the candidate point; determine the area containing the candidate point and the track point corresponding to the minimum distance in the environment map; determine the idle index of the candidate point according to the obstacles in the area; according to the area Determine the exploration index of the candidate point by the track points contained in it; determine the score of the candidate point according to the distance score, the idle index, and the exploration index.
在一可选的实现方式中,所述筛选模块420,具体用于在根据所述区域内的障碍物确定所述候选点的空闲指数过程中,确定所述区域内的障碍物占所述区域的面积比例;根据所述面积比例确定所述空闲指数。In an optional implementation manner, the screening module 420 is specifically configured to determine that the obstacles in the area occupy the The area ratio of ; determining the idle index according to the area ratio.
在一可选的实现方式中,所述筛选模块420,具体用于在根据所述区域内包含的轨迹点确定所述候选点的探索指数过程中,确定所述区域包含的轨迹点占所述区域的面积比例;根据所述面积比例确定所述探索指数。In an optional implementation manner, the screening module 420 is specifically configured to determine that the track points contained in the area account for the The area ratio of the region; the exploration index is determined according to the area ratio.
在一可选的实现方式中,所述筛选模块420,具体用于在根据所述距离得分、所述空闲指数、以及所述探索指数,确定所述候选点的评分过程中,将所述距离得分、所述空闲指数、以及所述探索指数进行加权求和,得到所述候选点的评分。In an optional implementation manner, the screening module 420 is specifically configured to take the distance The score, the idle index, and the exploration index are weighted and summed to obtain the score of the candidate point.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the above device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是 物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本发明方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present invention. It can be understood and implemented by those skilled in the art without creative effort.
本发明实施方式还提供一种与前述实施方式所提供的机器人沿边路径规划方法对应的机器人,以执行上述机器人沿边路径规划方法。Embodiments of the present invention also provide a robot corresponding to the method for planning a robot's edge-along path provided in the foregoing embodiments, so as to implement the above-mentioned method for planning a robot's edge-along path.
图5为本发明根据一示例性实施例示出的一种机器人的硬件结构图,该机器人包括:通信接口601、处理器602、存储器603和总线604;其中,通信接口601、处理器602和存储器603通过总线604完成相互间的通信。处理器602通过读取并执行存储器603中与机器人沿边路径规划方法的控制逻辑对应的机器可执行指令,可执行上文描述的机器人沿边路径规划方法,该方法的具体内容参见上述实施例,此处不再累述。Fig. 5 is a hardware structure diagram of a robot shown according to an exemplary embodiment of the present invention, the robot includes: a communication interface 601, a processor 602, a memory 603 and a bus 604; wherein, the communication interface 601, the processor 602 and the memory 603 communicate with each other through the bus 604 . The processor 602 can execute the robot edge path planning method described above by reading and executing the machine-executable instructions corresponding to the control logic of the robot edge path planning method in the memory 603. For the specific content of the method, refer to the above-mentioned embodiment, here I won't repeat it here.
本发明中提到的存储器603可以是任何电子、磁性、光学或其它物理存储装置,可以包含存储信息,如可执行指令、数据等等。具体地,存储器603可以是RAM(Random Access Memory,随机存取存储器)、闪存、存储驱动器(如硬盘驱动器)、任何类型的存储盘(如光盘、DVD等),或者类似的存储介质,或者它们的组合。通过至少一个通信接口601(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网、广域网、本地网、城域网等。The memory 603 mentioned in the present invention can be any electronic, magnetic, optical or other physical storage device, which can contain stored information, such as executable instructions, data and so on. Specifically, memory 603 can be RAM (Random Access Memory, random access memory), flash memory, storage drive (such as hard drive), any type of storage disk (such as optical disc, DVD, etc.), or similar storage media, or their The combination. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 601 (which may be wired or wireless), and the Internet, wide area network, local network, metropolitan area network, etc. can be used.
总线604可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。其中,存储器603用于存储程序,所述处理器602在接收到执行指令后,执行所述程序。The bus 604 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into address bus, data bus, control bus and so on. Wherein, the memory 603 is used to store a program, and the processor 602 executes the program after receiving an execution instruction.
处理器602可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器602中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器602可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。The processor 602 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 602 or an instruction in the form of software. Above-mentioned processor 602 can be general-purpose processor, comprises central processing unit (Central Processing Unit, be called for short CPU), network processor (Network Processor, be called for short NP) etc.; Can also be digital signal processor (DSP), application-specific integrated circuit (ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
本申请实施例提供的机器人与本申请实施例提供的机器人沿边路径规划方法出于相同的发明构思,具有与其采用、运行或实现的方法相同的有益效果。The robot provided in the embodiment of the present application is based on the same inventive concept as the method for planning the robot's path along the edge provided in the embodiment of the present application, and has the same beneficial effect as the method adopted, operated or realized.
本申请实施方式还提供一种与前述实施方式所提供的机器人沿边路径规划方法对应的计算机可读存储介质,请参考图6所示,其示出的计算机可读存储介质为光盘30,其上存储有计算机程序(即程序产品),所述计算机程序在被处理器运行时,会执行前述任意实施方式所提供的机器人沿边路径规划方法。The embodiment of the present application also provides a computer-readable storage medium corresponding to the robot edge path planning method provided in the previous embodiment, please refer to FIG. 6, the computer-readable storage medium shown is an optical disc 30, on A computer program (that is, a program product) is stored, and when the computer program is run by the processor, it will execute the robot edge path planning method provided in any of the foregoing implementation manners.
需要说明的是,所述计算机可读存储介质的例子还可以包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他光学、磁性存储介质,在此不再一一赘述。It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random Access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other optical and magnetic storage media will not be repeated here.
本申请的上述实施例提供的计算机可读存储介质与本申请实施例提供的机器人沿边 路径规划方法出于相同的发明构思,具有与其存储的应用程序所采用、运行或实现的方法相同的有益效果。The computer-readable storage medium provided by the above-mentioned embodiments of the present application is based on the same inventive concept as the robot’s path planning method along the edge provided by the embodiments of the present application, and has the same beneficial effects as the method adopted, run or implemented by the stored application program .
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本发明旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present invention is intended to cover any modification, use or adaptation of the present invention, and these modifications, uses or adaptations follow the general principles of the present invention and include common knowledge or conventional technical means in the technical field not disclosed in the present invention . The specification and examples are to be considered exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.

Claims (11)

  1. 一种机器人沿边路径规划方法,其特征在于,所述方法包括:A method for robot path planning along the edge, characterized in that the method comprises:
    根据检测到行驶轨迹存在闭环,获取清扫区域的边界点和所述清扫区域内障碍物的轮廓点作为候选点集;According to detecting that there is a closed loop in the driving track, obtain the boundary points of the cleaning area and the contour points of the obstacles in the cleaning area as a set of candidate points;
    从所述候选点集中选择满足继续沿边条件的沿边前置点;Selecting the front edge point satisfying the condition of continuing along the edge from the set of candidate points;
    根据所述沿边前置点重新规划沿边路径,并控制所述机器人按重新规划的沿边路径行驶。Re-planning the edge-along path according to the edge-along front point, and controlling the robot to travel along the re-planned edge-along path.
  2. 根据权利要求1所述的方法,其特征在于,所述获取清扫区域的边界点和所述清扫区域内障碍物的轮廓点作为候选点集,包括:The method according to claim 1, wherein said obtaining the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as a set of candidate points comprises:
    根据激光地图和环境地图获取清扫区域的边界点和所述清扫区域内每个障碍物的轮廓点簇;Obtaining the boundary points of the cleaning area and the contour point clusters of each obstacle in the cleaning area according to the laser map and the environment map;
    将轮廓点数量小于预设数量的轮廓点簇过滤掉;Filter out the contour point clusters whose number of contour points is less than the preset number;
    将剩余的轮廓点簇包括的轮廓点和获取的清扫区域的边界点作为候选点集。The contour points included in the remaining contour point clusters and the acquired boundary points of the cleaned area are used as candidate point sets.
  3. 根据权利要求1所述的方法,其特征在于,所述从所述候选点集中选择满足继续沿边条件的沿边前置点,包括:The method according to claim 1, wherein the selection of the preceding point along the edge satisfying the condition of continuing along the edge from the set of candidate points comprises:
    获取所述机器人当前产生的部分轨迹点;Obtain part of the trajectory points currently generated by the robot;
    针对候选点集中的每一候选点,确定该候选点与每个轨迹点之间的距离;For each candidate point in the candidate point set, determine the distance between the candidate point and each track point;
    从所述候选点集中,选择距离位于预设范围内的候选点;From the set of candidate points, selecting candidate points whose distance is within a preset range;
    针对选择的每一候选点,从所述候选点与每个轨迹点之间的距离中选出最小距离,并根据所述最小距离和所述最小距离对应的轨迹点对所述候选点进行评分;For each selected candidate point, select the minimum distance from the distance between the candidate point and each track point, and score the candidate point according to the minimum distance and the track point corresponding to the minimum distance ;
    根据所述评分从选择的候选点中选取一个候选点作为满足继续沿边条件的沿边前置点。A candidate point is selected from the selected candidate points according to the score as a previous point along the edge satisfying the condition of continuing along the edge.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述评分从选择的候选点中选取一个候选点作为满足继续沿边条件的沿边前置点,包括:The method according to claim 3, characterized in that, selecting a candidate point from the selected candidate points according to the score as a front point along the edge satisfying the condition of continuing along the edge, comprising:
    从所述评分中选取评分最低的候选点作为满足继续沿边条件的沿边前置点。The candidate point with the lowest score is selected from the scores as the previous point along the edge that satisfies the condition of continuing along the edge.
  5. 根据权利要求3所述的方法,其特征在于,所述根据所述最小距离和所述最小距离对应的轨迹点对所述候选点进行评分,包括:The method according to claim 3, wherein the scoring of the candidate points according to the minimum distance and the track point corresponding to the minimum distance comprises:
    利用所述最小距离确定所述候选点的距离得分;Using the minimum distance to determine a distance score for the candidate point;
    在环境地图中确定包含所述候选点和所述最小距离对应的轨迹点的区域;Determining an area containing the track point corresponding to the candidate point and the minimum distance in the environment map;
    根据所述区域内的障碍物确定所述候选点的空闲指数;determining the idle index of the candidate point according to the obstacles in the area;
    根据所述区域内包含的轨迹点确定所述候选点的探索指数;determining the exploration index of the candidate point according to the trajectory points contained in the region;
    根据所述距离得分、所述空闲指数、以及所述探索指数,确定所述候选点的评分。Determine the score of the candidate point according to the distance score, the idle index, and the exploration index.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述区域内的障碍物确定所述候选点的空闲指数,包括:The method according to claim 5, wherein said determining the idle index of said candidate point according to obstacles in said area comprises:
    确定所述区域内的障碍物占所述区域的面积比例;Determining the area ratio of obstacles in the area to the area;
    根据所述面积比例确定所述空闲指数。The idle index is determined according to the area ratio.
  7. 根据权利要求5所述的方法,其特征在于,所述根据所述区域内包含的轨迹点确定所述候选点的探索指数,包括:The method according to claim 5, wherein the determining the exploration index of the candidate point according to the track points contained in the region comprises:
    确定所述区域包含的轨迹点占所述区域的面积比例;Determine the area ratio of the track points included in the region to the region;
    根据所述面积比例确定所述探索指数。The exploration index is determined according to the area ratio.
  8. 根据权利要求5所述的方法,其特征在于,所述根据所述距离得分、所述空闲指数、以及所述探索指数,确定所述候选点的评分,包括:The method according to claim 5, wherein the determining the score of the candidate point according to the distance score, the idle index, and the exploration index comprises:
    将所述距离得分、所述空闲指数、以及所述探索指数进行加权求和,得到所述候选点的评分。The distance score, the idle index, and the exploration index are weighted and summed to obtain the score of the candidate point.
  9. 一种机器人沿边路径规划装置,其特征在于,所述装置包括:A robot edge path planning device, characterized in that the device comprises:
    候选点获取模块,用于根据检测到行驶轨迹存在闭环,获取清扫区域的边界点和所述清扫区域内障碍物的轮廓点作为候选点集;The candidate point acquisition module is used to obtain the boundary points of the cleaning area and the contour points of obstacles in the cleaning area as a candidate point set according to the detection of a closed loop in the driving track;
    筛选模块,用于从所述候选点集中选择满足继续沿边条件的沿边前置点;A screening module, configured to select from the set of candidate points the preceding point along the edge that satisfies the condition of continuing along the edge;
    路径规划模块,用于根据所述沿边前置点重新规划沿边路径,并控制所述机器人按重新规划的沿边路径行驶。The path planning module is used to re-plan the edge-along path according to the edge-along front point, and control the robot to travel along the re-planned edge-along path.
  10. 一种机器人,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1-8任一项所述方法的步骤。A robot comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor implements the program described in any one of claims 1-8 when executing the program. method steps.
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1-8任一项所述方法的步骤。A computer-readable storage medium, on which a computer program is stored, wherein, when the program is executed by a processor, the steps of the method according to any one of claims 1-8 are realized.
PCT/CN2021/136015 2021-10-29 2021-12-07 Robot edgewise path planning method and apparatus, and robot and storage medium WO2023070840A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111277346.2A CN116069005A (en) 2021-10-29 2021-10-29 Robot edge path planning method and device, robot and storage medium
CN202111277346.2 2021-10-29

Publications (1)

Publication Number Publication Date
WO2023070840A1 true WO2023070840A1 (en) 2023-05-04

Family

ID=86160060

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/136015 WO2023070840A1 (en) 2021-10-29 2021-12-07 Robot edgewise path planning method and apparatus, and robot and storage medium

Country Status (2)

Country Link
CN (1) CN116069005A (en)
WO (1) WO2023070840A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116907512A (en) * 2023-09-14 2023-10-20 山东博昂信息科技有限公司 Combined dotting cleaning method for outdoor unmanned cleaning machine

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117553804B (en) * 2024-01-11 2024-04-09 深圳市普渡科技有限公司 Path planning method, path planning device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102294A (en) * 2017-06-19 2017-08-29 安徽味唯网络科技有限公司 A kind of method in sweeping robot intelligent planning path
US20200174485A1 (en) * 2018-11-29 2020-06-04 Shenzhen Silver Star Intelligent Technology Co., Ltd. Area Partitioning Method, Partition Cleaning Method and Robot Thereof
CN111857127A (en) * 2020-06-12 2020-10-30 珠海市一微半导体有限公司 Clean partition planning method for robot walking along edge, chip and robot
CN112631281A (en) * 2020-12-10 2021-04-09 尚科宁家(中国)科技有限公司 Cleaning robot and path planning method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102294A (en) * 2017-06-19 2017-08-29 安徽味唯网络科技有限公司 A kind of method in sweeping robot intelligent planning path
US20200174485A1 (en) * 2018-11-29 2020-06-04 Shenzhen Silver Star Intelligent Technology Co., Ltd. Area Partitioning Method, Partition Cleaning Method and Robot Thereof
CN111857127A (en) * 2020-06-12 2020-10-30 珠海市一微半导体有限公司 Clean partition planning method for robot walking along edge, chip and robot
CN112631281A (en) * 2020-12-10 2021-04-09 尚科宁家(中国)科技有限公司 Cleaning robot and path planning method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116907512A (en) * 2023-09-14 2023-10-20 山东博昂信息科技有限公司 Combined dotting cleaning method for outdoor unmanned cleaning machine
CN116907512B (en) * 2023-09-14 2023-12-22 山东博昂信息科技有限公司 Combined dotting cleaning method for outdoor unmanned cleaning machine

Also Published As

Publication number Publication date
CN116069005A (en) 2023-05-05

Similar Documents

Publication Publication Date Title
WO2023070840A1 (en) Robot edgewise path planning method and apparatus, and robot and storage medium
JP6317230B2 (en) Vehicle detection method based on image and map at intersection
EP3764186A1 (en) Method for controlling autonomous mobile robot to travel along edge
WO2021248846A1 (en) Robot edge treading areal sweep planning method, chip, and robot
US10614324B2 (en) Method and apparatus for identifying static obstacle
CN113110457B (en) Autonomous coverage inspection method for intelligent robot in indoor complex dynamic environment
CN106772434B (en) A kind of unmanned vehicle obstacle detection method based on TegraX1 radar data
US20200359867A1 (en) Determining Region Attribute
JP6906262B1 (en) Robot repositioning method, equipment and devices
WO2020248458A1 (en) Information processing method and apparatus, and storage medium
KR20200036677A (en) Cleaning robot and Method of performing task thereof
CN111105495A (en) Laser radar mapping method and system fusing visual semantic information
JP2019500691A (en) Action plan of fast search randomized feedback subject
CN113805590A (en) Indoor robot autonomous exploration method and system based on boundary driving
CN108176050A (en) Method for searching and device
US11795719B1 (en) Control method of an underwater robot based on ultrasonic radar, underwater robot and non-volatile storage medium
CN112237403B (en) Covering path generation method for cleaning device and cleaning device
WO2022152263A1 (en) Slope sensing method and device, robot, and storage medium
CN115298516A (en) Mapping with static scores for a subject
JP2015132539A (en) Sunshine quantity calculating apparatus, route proposing apparatus, and sunshine quantity calculating method
CN111309011A (en) Decision-making method, system, equipment and storage medium for autonomously exploring target
CN112180914A (en) Map processing method, map processing device, storage medium and robot
US20210101279A1 (en) Electronic apparatus and controlling method thereof
WO2023000679A1 (en) Robot recharging control method and apparatus, and storage medium
CN111522335A (en) Robot path optimization method and system based on improved particle swarm optimization

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21962183

Country of ref document: EP

Kind code of ref document: A1