WO2021031441A1 - Path planning method and system, robot and readable storage medium - Google Patents

Path planning method and system, robot and readable storage medium Download PDF

Info

Publication number
WO2021031441A1
WO2021031441A1 PCT/CN2019/121288 CN2019121288W WO2021031441A1 WO 2021031441 A1 WO2021031441 A1 WO 2021031441A1 CN 2019121288 W CN2019121288 W CN 2019121288W WO 2021031441 A1 WO2021031441 A1 WO 2021031441A1
Authority
WO
WIPO (PCT)
Prior art keywords
maximum extension
obstacle
extreme
sub
area
Prior art date
Application number
PCT/CN2019/121288
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
Priority claimed from CN201910759661.5A external-priority patent/CN112445212A/en
Priority claimed from CN201910760602.XA external-priority patent/CN112393737B/en
Application filed by 苏州科瓴精密机械科技有限公司 filed Critical 苏州科瓴精密机械科技有限公司
Publication of WO2021031441A1 publication Critical patent/WO2021031441A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/28Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network with correlation of data from several navigational instruments
    • G01C21/30Map- or contour-matching
    • G01C21/32Structuring or formatting of map data
    • 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

Definitions

  • the invention relates to the field of intelligent control, in particular to a path planning method, system, robot and readable storage medium.
  • Low repetition rate and high coverage are the goals pursued by mobile robots such as ergodic robots such as vacuuming, mowing and pool cleaning; dividing the entire working area into several sub-areas, and then working in the molecular area is an important way to achieve this goal method.
  • a lawn mower robot with a random pattern the shape of the lawn has a great influence on the coverage rate.
  • a lawn with a large area, narrow strips or multiple obstacles and other complex shapes will have a relatively low coverage rate; computer simulations and experiments have proved that The lawn is divided into small areas. First limit the work to a certain area, and then work in another area after completing one area.
  • the repetition rate of the working mode of the planned area is generally carried out in the manner of sub-area division, traversal within sub-area, and sub-area connection. It can be seen that partitioning is an important method of traversal, and various partitioning methods have developed.
  • the following methods are usually used to divide the work area, for example: use electronic boundary wires to divide the lawn into different areas; divide by markers, each marker is surrounded by a block; with positioning Such as GPS, manually control the robot to walk around the boundary, build a map, and then manually or automatically divide the area according to the map; with GPS positioning and electronic boundaries, automatic division.
  • the sub-region division with precise positioning is mainly aimed at the area with obstacles, and the trapezoidal, Boustrophedon and rectangular partition methods have been developed.
  • These sub-region division methods are developed for different traversal methods, but the above methods only Some factors of the actual situation in the working area are referenced, and factors such as narrow strips, obstacles and area are not taken into consideration; thus, the working area cannot be divided into more reasonable sub-areas, which affects the traversal efficiency of the robot.
  • the purpose of the present invention is to provide a path planning method, system, robot and readable storage medium.
  • an embodiment of the present invention provides a path planning method.
  • the method includes the following steps: acquiring an electronic map of the robot working area, and mapping an obstacle map with known obstacle coordinates on the electronic map Analyze the electronic map, if it is determined that there is an obstacle in the work area, obtain the contour line of the obstacle on the obstacle map; analyze the contour line of the obstacle, and obtain at least one set of extreme value feature groups on each obstacle, the The extreme feature group is defined as two extreme coordinate points with the smallest abscissa and the largest abscissa on the X axis of the contour line of the obstacle, and/or the extreme feature group is defined as the contour line of the obstacle in Y
  • the axis has two extreme coordinate points with the smallest ordinate and the largest ordinate; the work area is divided at the extreme feature point of each obstacle to form several sub-work areas.
  • the method further includes: traversing the electronic map to obtain inflection points on the electronic map, and at each inflection point, draw a circle with the current inflection point as the center and the preset length as the radius. There is an intersection between the drawn circle and the non-adjacent boundary line of the current inflection point, then the inflection point is on the narrow passage, and the current inflection point and its corresponding intersection point are connected to form the area dividing line of the working area.
  • “segmenting the work area at the extreme value feature point of each obstacle to form several sub-work areas” specifically includes: each group of extreme value feature points obtained separately Each extreme coordinate point in the ray is the end point of the ray as a ray, the rays emitted by the two extreme coordinate points in each group of extreme feature point groups do not intersect in their extension direction, and each of the rays is in the current There is only one intersection on the contour line where the extreme feature point is located; obtain the first intersection of each ray along its emission direction on the working area except for the extreme coordinate point; connect each extreme feature point with its emission The intersection formed by the rays on the working area forms the area dividing line of the working area.
  • the method further includes: configuring the two extreme value coordinate points in each group of extreme value feature point groups to emit rays in opposite directions, and each of the rays is in the current extreme value feature There is only one intersection on the contour line where the point lies.
  • the method further includes: obtaining the information of each sub-work area Maximum extension width, the absolute value of the difference between the minimum abscissa and the maximum abscissa of each sub-work area on the X axis is defined as the maximum extension width; if the maximum extension width of the current sub-work area is greater than the preset width threshold; Set the width threshold to divide the current sub-work area so that the maximum extension width of any sub-area after division is not greater than the preset width threshold;
  • “Splitting the current sub-work area according to the preset width threshold so that the maximum extension width of any sub-region after segmentation is not greater than the preset width threshold” specifically includes: in the direction of forming the maximum extension width of the current sub-region that needs to be divided, From the starting point of forming the maximum extension width, each time the preset width threshold is reached, a dividing line is formed in the forming direction perpendicular to the maximum extension width, and each dividing line has two intersection points with the working area; or obtaining the maximum extension width m 1 , and the preset width threshold n 1 , judge whether m 1 ⁇ k 1 ⁇ n 1 is established, k 1 ⁇ 1.5, if so, every time the equal division threshold is reached, a dividing line is formed in the direction perpendicular to the maximum extension width; Said etc. among them, Indicates rounding up.
  • the method further includes: obtaining the information of each sub-work area Maximum extension length, the absolute value of the difference between the minimum and maximum ordinates on the Y axis of each sub-work area is defined as the maximum extension length; if the maximum extension length of the current sub-work area is greater than the preset length threshold; Set the length threshold to divide the current sub-work area so that the maximum extension length of any sub-area after division is not greater than the preset length threshold;
  • “Splitting the current sub-work area according to the preset length threshold so that the maximum extension length of any sub-region after segmentation is not greater than the preset length threshold” specifically includes: in the direction of forming the maximum extension length of the current sub-region to be divided, From the starting point of forming the maximum extension length, each time the preset length threshold is reached, a dividing line is formed in the forming direction perpendicular to the maximum extension width, and each dividing line has two intersection points with the working area; or obtaining the maximum extension length m 2 , and the preset width threshold n 2 , judge whether m 2 ⁇ k 2 ⁇ n 2 is established, k 2 ⁇ 1.5, and if so, each time the equal division threshold is reached, a dividing line is formed in the direction perpendicular to the maximum extension width; Said etc.
  • an embodiment of the present invention provides a robot including a memory and a processor, the memory stores a computer program, and the processor implements the path planning method described above when the computer program is executed. step.
  • an embodiment of the present invention provides a readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the steps of the path planning method described above.
  • an embodiment of the present invention provides a path planning system, the system includes: an acquisition module for acquiring an electronic map of the robot working area, the electronic map is mapped to known obstacle coordinates Obstacle map; analysis module, used to analyze the electronic map, if it is determined that there is an obstacle in the work area, obtain the contour line of the obstacle on the obstacle map; analyze the contour line of the obstacle, and obtain at least one on each obstacle
  • the extreme value feature group is defined as two extreme value coordinate points with the smallest abscissa and the largest abscissa on the X-axis of the contour line of the obstacle, and/or the extreme value feature group is defined
  • the contour line of the obstacle has two extreme coordinate points with the smallest ordinate and the largest ordinate on the Y axis; the segmentation module is used to segment the work area at the extreme feature point of each obstacle to Form several sub-work areas.
  • the analysis module is also used to: traverse the electronic map to obtain inflection points on the electronic map, at each inflection point, draw a circle with the current inflection point as the center and the preset length as the radius, If there is an intersection between the drawn circle and the non-adjacent boundary line of the current inflection point, the inflection point is on the narrow passage, and the current inflection point and its corresponding intersection point are connected to form the area dividing line of the working area.
  • the segmentation module is specifically configured to: each extreme value coordinate point in each group of extreme value feature points obtained separately is the end point of the ray as a ray, and each group of extreme value The rays emitted by the two extreme coordinate points in the feature point group do not intersect in their extension direction, and each of the rays has only one intersection on the contour line where the current extreme feature point is located; obtain each ray along its extension The emission direction is the first intersection point on the working area except for the extreme coordinate point; connecting each extreme feature point and the intersection formed by the emission ray on the working area to form the area dividing line of the working area.
  • the segmentation module is specifically configured to configure the two extreme value coordinate points in each group of extreme value feature point groups to emit rays in opposite directions, and each of the rays is at the current extreme. There is only one intersection on the contour line where the value feature point is located.
  • the system further includes: a subdivision module, used to obtain the maximum extension width of each sub-work area, and set the minimum and maximum abscissas of each sub-work area on the X axis
  • the absolute value of the difference is defined as the maximum extension width; if the maximum extension width of the current sub-work area is greater than the preset width threshold; the current sub-work area is divided according to the preset width threshold, so that the maximum extension width of any sub-area after division Not greater than the preset width threshold.
  • the subdivision module is specifically configured to: in the direction of forming the maximum extension width of the current subregion to be divided, starting from the starting point of forming the maximum extension width, each time the preset width is reached When thresholding, a dividing line is formed in the direction perpendicular to the maximum extension width, and each dividing line has two intersections with the working area; or obtaining the maximum extension width m 1 and the preset width threshold n 1 , and judging m 1 ⁇ k 1 ⁇ whether n 1 is established, k 1 ⁇ 1.5, if so, every time the equal division threshold is reached, a division line is formed in the direction perpendicular to the maximum extension width; among them, Indicates rounding up.
  • the system further includes: a subdivision module, which is used to obtain the maximum extension length of each sub-work area, and to set each sub-work area on the Y axis with the smallest ordinate and the largest ordinate
  • the absolute value of the difference is defined as the maximum extension length; if the maximum extension length of the current sub-work area is greater than the preset length threshold; the current sub-work area is divided according to the preset length threshold, so that the maximum extension length of any sub-area after division Not greater than the preset length threshold.
  • the subdivision module is specifically configured to: in the direction of forming the maximum extension length of the current subregion to be divided, starting from the starting point of forming the maximum extension length, each time the preset length is reached When thresholding, a dividing line is formed in the direction perpendicular to the maximum extension width, and each dividing line has two intersections with the working area; or obtaining the maximum extension length m 2 and the preset width threshold n 2 , and judging m 2 ⁇ k 2 ⁇ Whether n 2 is established, k 2 ⁇ 1.5, if so, every time the equal division threshold is reached, a division line is formed in the direction perpendicular to the maximum extension width;
  • an embodiment of the present invention provides a robot including the above-mentioned path planning system.
  • the path planning method, system, robot and readable storage medium of the present invention use an electronic map with known obstacle coordinates, and divide the work area according to the position of the obstacle, so that the obstacle is located in a certain or The boundaries of multiple sub-areas, but not in the middle of the sub-areas; it is conducive to the operation of the robot's random traversal program, ensures the coverage of the robot during traversal, and helps to improve the work efficiency of the robot.
  • FIG. 1 is a schematic flowchart of a method for creating an obstacle map according to an embodiment of the present invention
  • Fig. 2 is a schematic flow chart of a method for creating an obstacle map in another preferred embodiment based on Fig. 1;
  • FIG. 3 is a schematic flowchart of a preferred embodiment for implementing step S4 in FIG. 3;
  • FIG. 4 is a schematic flowchart of a path planning method provided by an embodiment of the present invention.
  • FIG. 5, Fig. 6, Fig. 8, Fig. 9, Fig. 11 are respectively structural schematic diagrams of a specific example of the present invention.
  • FIG. 7 is a schematic flowchart of a preferred implementation of one of the steps in FIG. 4;
  • FIG. 10 is a schematic flowchart of another preferred embodiment path planning method provided on the basis of FIG. 4;
  • FIG. 12 is a schematic diagram of modules of an obstacle map creation system provided by an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of modules of a path planning system provided by an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of modules of a path planning system according to a preferred embodiment provided on the basis of FIG. 13;
  • 15 is a schematic diagram of the lawn mower robot provided by the first embodiment of the present invention.
  • Fig. 16 is a schematic diagram of a lawn mower robot provided by a second embodiment of the present invention.
  • FIG. 17 is a schematic flowchart of a method for controlling a lawn mower robot according to an embodiment of the present invention.
  • the robot system of the present invention may be a lawn mower robot system, or a sweeping robot system, etc., which automatically walks in the work area for mowing and vacuuming.
  • the robot system is a lawn mower robot system.
  • the working area may be a lawn.
  • the lawn mower robot system of the present invention includes: robot equipment, charging station, boundary line and boundary line signal station, and positioning base station; the boundary line is, for example, an energized wire, the boundary line signal station is usually integrated in the charging station, and the positioning
  • the base station is usually a signal transmitting station based on infrared, ultrasonic, Bluetooth, ZigBee, UWB and other technologies, or a reflector adapted to a laser transmitter on the RM;
  • the charging station is set on the boundary line;
  • the RM is equipped with boundary sensors and Positioning sensor;
  • the boundary sensor is usually inductance, used to sense the signal loaded on the boundary line;
  • the positioning sensor is usually a sensor that receives infrared, ultrasonic, Bluetooth, ZigBee, UWB signals, or a laser transmitter/receiver including a turntable, which can receive Position the signal sent or reflected by the base station.
  • an obstacle map creation method provided by an implementation of the present invention includes the following steps:
  • each grid unit has a unique feature mark
  • the feature mark includes an obstacle identifier used to characterize the position relationship between the grid unit and the obstacle and the grid unit Boundary identification of the positional relationship with the boundary line;
  • the method further includes: establishing a rectangular coordinate system, and creating a raster map in the rectangular coordinate system.
  • the specific method for creating the raster map is in the prior art. No further details.
  • the aforementioned boundary line can be a physical boundary line, such as a fence, or an electronic boundary line, such as a magnetic field formed around it by an energized wire, or other boundaries that can be recognized by the robot.
  • the parking position of the robot at the charging pile can be taken as the initial positioning point; when viewed from a top view, the opening direction of the charging pile charged by the robot is the X axis Direction (that is, the direction in which the robot leaves the charging pile), and the direction of the X-axis rotated by 90° is the Y-axis direction to establish a Cartesian rectangular coordinate system.
  • the robot's position coordinates are (0,0).
  • the coordinate points on the outer boundary can be obtained according to various algorithms recorded in the background art, and the coordinates of each grid unit can be determined according to the coordinate points on the outer boundary.
  • the feature mark corresponding to each grid unit is represented by a binary value, and is exemplarily stored in the order of obstacle identification and boundary identification; in the specific embodiment of the present invention, the boundary line is defined It is a kind of obstacle, the boundary line includes the outer boundary line, and may also include the inner boundary line; when driving the robot to walk along the outer boundary line for the first time, only the true feature marks of part of the grid cells can be obtained; correspondingly, driving the walking In the process of the robot walking along the outer boundary line from the initial positioning point, each time the walking robot passes through a grid unit, the feature mark corresponding to the grid unit is modified to ⁇ a,b>, where a represents the obstacle identification, and b represents the feature identification.
  • the obstacle identification and feature identification are both expressed in binary, that is, the specific value of a is 0 or 1, and the specific value of b is 0 or 1.
  • the values of a and b are both 1, it means There are obstacles in the grid unit, and there are boundary lines in the grid unit; it should be noted that during the first driving of the robot to walk, the grid units with the boundary ID of 1 are on the outer boundary line; accordingly, for To facilitate distinction, in other embodiments of the present invention, a boundary attribute identifier can also be added to each grid unit.
  • the boundary attribute identifier can also be expressed in binary. For example, when it is 1, it represents the outer boundary line. When it is 0, it is expressed as an inner boundary line.
  • the grid unit inside the outer boundary line may also be included, and it cannot determine whether there is an obstacle, and further determine whether the existing obstacle is an inner boundary line.
  • the method specifically includes: setting the features corresponding to each grid unit within the outer boundary line The mark is modified to ⁇ 0,0>, that is, when the robot walks along the boundary line for the first time, the default outer boundary line has no obstacles, and no inner boundary line exists.
  • the feature mark corresponding to each grid unit is modified according to the actual composition of the work area.
  • the method further includes: S4.
  • the walking robot is not driven for the first time in the working area, when it reaches each grid unit, according to the current grid Obstacles and boundary lines monitored in the grid cell acquire new feature marks corresponding to the current grid cell;
  • the step S4 specifically includes: driving the walking robot to walk in the work area, and when reaching each grid unit, determine whether the current grid unit encounters an obstacle;
  • the inner boundary line is defined as the inner boundary line
  • the feature mark of the current grid cell record is not ⁇ 1,1> and that there is no boundary line in the current grid, the feature mark of the current grid cell is changed to ⁇ 1,0>;
  • the method further includes: after acquiring the first coordinate point on the inner boundary line, driving the walking robot to continuously record the position of the robot according to a preset time interval or walking distance interval Coordinates until the traversal of the inner boundary line is completed; the position coordinates obtained by the robot on the inner boundary line are counted to update the inner boundary in the grid map.
  • the robot After the robot enters the work area for the first time, when the feature tag of the previous record of the grid unit is found to be ⁇ 1,0>, it will not perform special processing on the grid unit.
  • the robot will avoid the grid unit when it finds the grid unit to determine that there is an obstacle; there are many ways for the robot to determine the obstacle, for example: its own sensor detects the collision, at this time, it determines the grid There are obstacles in the unit, so I won’t go into details here.
  • the method further includes: S5, if it is confirmed that the running time of the walking robot in the current working area reaches the preset running time, and/or it is confirmed that the walking robot is currently working If the coverage rate in the area reaches the preset coverage rate, the grid units marked as ⁇ 1,0> will be counted, and the regions will be merged according to the principle of proximity to form obstacle areas.
  • the preset running time T max can be obtained according to the area Sa of the working area and the area experience value Cp of the robot walking area per unit time, namely
  • the coverage rate can be the ratio of the grid units that have been traversed to the total grid units since the start of each traversal; it can also be that the grid units that have been traversed account for the feature mark as ⁇ 0, The proportion of grid units of 0>; the preset coverage rate can be specified according to requirements, and is usually a value greater than 50%.
  • the grid units with statistical features marked as ⁇ 1,0> are merged according to the principle of proximity to form an obstacle area specifically including: grid units with statistical features marked as ⁇ 1,0> Grid cell, if the distance between two grid cells is less than the preset distance, then the two grid cells will be merged to form an obstacle area; or count multiple grid cells marked with ⁇ 1,0> Within the preset distance range, the multiple grid units are regionally merged to form an obstacle area.
  • specific graphics are used to represent the obstacle area, such as rectangles and circles.
  • the method specifically includes: obtaining the smallest abscissa x min on the X axis, the largest abscissa x max on the X axis, and the smallest on the Y axis in the same obstacle area.
  • the ordinate y min and the maximum ordinate y max on the Y axis define a rectangular area formed by the vertices (x min , y min ) and (x max , y max ) as the obstacle area.
  • the method specifically includes: acquiring three grid units in the same obstacle area that are not on the same straight line, and using the three grid units to determine the circular area to ensure other The grid units are all in the circular area or on the boundary of the circular area, and the circular area is defined as an obstacle area.
  • the obstacle map creation method of the present invention can synchronously create a grid map with complete information including boundaries, islands, boundary obstacles and non-boundary obstacles during the mowing process of the robot, and improve the working efficiency of the robot.
  • a robot including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the obstacle map creation method when the computer program is executed.
  • a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned obstacle map creation method are realized.
  • an embodiment of the present invention provides a path planning method based on the obstacle map obtained above, and the method includes:
  • M1 Obtain an electronic map of the working area of the robot, and map an obstacle map with known obstacle coordinates on the electronic map; the electronic map may also be a grid map;
  • the extreme value feature group is defined as the contour line of the obstacle having the smallest abscissa and the largest abscissa on the X axis
  • the two extreme coordinate points of, and/or the extreme feature group is defined as two extreme coordinate points with the smallest ordinate and the largest ordinate on the Y-axis of the contour line of the obstacle;
  • the method further includes: parsing the electronic map, acquiring each narrow passage in the electronic map, and separating the narrow passages to divide the working area into narrow passage areas and Normal working area.
  • step M2 specifically includes: traversing the electronic map, obtaining inflection points on the electronic map, at each inflection point, drawing a circle with the current inflection point as the center and the preset length as the radius, if the drawn circle If there is an intersection point between the boundary lines that are not adjacent to the current inflection point, the inflection point is on the narrow passage, and the current inflection point and its corresponding intersection point are connected to form the area dividing line of the working area.
  • the preset length is a length threshold, which is used to check narrow passages; for example, if an area with a width less than a certain length value in the working area is defined as a narrow area, then the length value is the length threshold.
  • the method shown in step M3 is a description method of geometric drawing. In practical applications, the purpose of the geometric algorithm is to distinguish narrow passages in the working area, and to separate the narrow passages from the working area. Based on the above description, those skilled in the art can distinguish narrow passages in an electronic map and confirm the location of the area dividing line.
  • the line pointed to by line1 in the figure is the outer boundary line, and the line pointed by line2 is the outline of the obstacle; P1 and P2 are the inflection points of the narrow passage respectively, and P3 and P4 are the circles of P1 and P2 respectively.
  • the following intersections, the connection line P1, P3 and the connection line P2, P4 are the area dividing lines.
  • step M3 the contour line is analyzed to obtain the two extreme coordinate points X1 and X2 obtained on the X axis, and the two extreme coordinate points Y1 and Y2 obtained on the Y axis, according to The above definition of the extreme value feature group can determine that the extreme value coordinate points X1 and X2 form the first group of extreme value feature point groups, and the extreme value coordinate points Y1 and Y2 form the second group of extreme value feature point groups.
  • each extreme value feature point obtained is a starting point, and the working area is segmented by the Boustrophedon algorithm; this embodiment
  • the Boustrophedon algorithm is used to segment the work area into a known prior art, which will not be further described here.
  • This embodiment is an electronic map after the work area is divided by the Boustrophedon algorithm; in this illustration, only the first set of extreme feature points is obtained, and the first set of extreme feature points is used as the starting point.
  • the Boustrophedon algorithm divides the work area, and after the division, 6 areas are formed, A, B, C, D, E, and F.
  • the step M4 specifically includes: each extreme value coordinate point in each group of extreme value feature points obtained separately is the end point of the ray and the ray , The rays emitted by the two extreme coordinate points in each group of extreme feature point groups do not intersect in their extension direction, and each of the rays has only one intersection on the contour line where the current extreme feature point is located;
  • the area dividing line of the working area is formed by connecting each extreme feature point and the intersection formed by the emitted ray on the working area.
  • first intersection point except for the extreme coordinate point is usually on the obstacle or boundary line.
  • the two extreme coordinate points in each group of extreme feature point groups emit rays in opposite directions, and each of the rays has only one ray on the contour line where the current extreme feature point is located. Intersection.
  • the extreme value coordinate points in the first group of extreme value feature point groups are obtained as an example for specific introduction.
  • the emitted rays are in opposite directions and extend along the X direction.
  • the intersection of the ray emitted by the extreme coordinate point X1 and the boundary line is X3, and the intersection of the ray emitted by the extreme coordinate point X2 and the boundary line is X4; accordingly, follow the above
  • four dividing lines are formed, corresponding to the dividing line line3 and dividing line line4 formed by the narrow passage, and the dividing line line5 formed from the extreme coordinate point X1 and the extreme coordinate point X2.
  • the dividing line line6 in this way, the work area is divided into 4 sub-areas, namely sub-areas A, B, C, and D.
  • the intersection point of the ray emitted by the extreme coordinate point Y1 and the boundary line is Y3, and the intersection point of the ray emitted by the extreme coordinate point Y2 and the boundary line is Y4; correspondingly, according to After the above process divides the working area, four dividing lines are formed, which are the dividing line line3 and dividing line line4 formed by the narrow passage, and the dividing line line5 formed from the extreme coordinate point Y1 and the self-extreme coordinate point Y2 The formed dividing line line6; in this way, the working area is divided into 4 sub-areas, namely sub-areas A, B, C, and D.
  • the mowing area of the present invention it is usually a relatively large area.
  • the robot's working area is divided by the above method, if the positioning accuracy is low and the random method is required to traverse the sub-area, the A lawn with a too large area needs to be further divided; in a preferred embodiment of the present invention, the following method may be used to further divide the working area of the robot to improve the working efficiency of the robot.
  • the method further includes: M5. Obtain the maximum extension width of each sub-work area, and place each sub-work area in X The absolute value of the difference between the minimum abscissa and the maximum abscissa on the axis is defined as the maximum extension width;
  • the current sub-work area is divided according to the preset width threshold so that the maximum extension width of any sub-area after division is not greater than the preset width threshold.
  • the preset width threshold value is a length value, and its size can be specifically set according to needs. Generally, the preset width threshold value is a length value smaller than the width of the working area.
  • the method specifically includes: in the direction of forming the maximum extension width of the current sub-region to be divided, Starting from the starting point of forming the maximum extension width, each time the preset width threshold is reached, a dividing line is formed in the forming direction perpendicular to the maximum extension width, and each dividing line has two intersection points with the working area;
  • the width and length of the work area can be divided separately, or one of the two can be selected for division.
  • the step M5 includes: obtaining the maximum extension length of each sub-working area, and defining the absolute value of the difference between the minimum ordinate and the maximum ordinate on the Y axis of each sub-working area as the maximum extension length;
  • the current sub-work area is divided according to the preset length threshold, so that the maximum extension length of any sub-area after the division is not greater than the preset length threshold.
  • the method specifically includes: in the direction of forming the maximum extension length of the current sub-region to be divided, Starting from the starting point of forming the maximum extension length, each time the preset length threshold is reached, a dividing line is formed in the forming direction perpendicular to the maximum extension width, and each dividing line has two intersection points with the working area;
  • the outer boundary line line1 besieged the work area.
  • Object 3 After preliminary division of the work area using the above method, the work area forms 4 sub-work areas, namely sub-work area A, sub-work area B, sub-work area C and sub-work area D; 4 sub-work areas are obtained through measurement
  • the maximum extension width of the work area is represented by lx A , lx B , lx C , and lx D in turn .
  • the work area only gives the preset width threshold a; after judgment, it can be seen that: the values of lx A , lx C , and lx D Both are less than a, and only the value of lx B is greater than a. In this way, only the sub-work area B is further divided in the X-axis direction.
  • sub-work area B For sub-work area B, start with the smallest coordinate forming its maximum extension width on the X axis, and divide the cutting line with a width of a interval in the order from left to right, until the width of the rightmost sub-area is not greater than a, to The sub-work area B is formed in the X-axis direction to form several sub-areas separated by cutting lines.
  • both the k 1 and the k 2 are less than or equal to 2, and will not be further described here.
  • each sub-work area can be traversed in a bow shape or spiral shape one by one, which will not be repeated here.
  • the path planning method of the present invention uses the known electronic map of obstacle coordinates, and divides the working area according to the position of the obstacle, so that the obstacle is located at the boundary of one or more sub-regions, but not in the middle of the sub-region; further , By dividing the work area after determination, there is no large area of sub-areas, which is conducive to the operation of the robot's random traversal program, ensures the coverage of the robot during traversal, and helps to improve the work efficiency of the robot.
  • a robot including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the path planning method described above when the computer program is executed by the processor.
  • a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the path planning method described above are realized.
  • the system includes a control module 100, a creation module 200, and a supplementary module 300.
  • the control module 100 is used to drive the robot to walk and work.
  • the creation module 200 is used to create the grid map in the same rectangular coordinate system, the control module for the first time drives the walking robot to walk along the outer boundary line from the initial positioning point, and follow the robot’s walking path to create on the working area enclosed by the outer boundary line
  • the feature mark includes an obstacle mark and a boundary mark; the obstacle mark is used to characterize the position relationship between the grid unit and the obstacle; the boundary mark is used to characterize the position relationship between the grid unit and the boundary line.
  • the supplementary module 300 is used for after confirming that the walking robot returns to the initial positioning point along the outer boundary line, according to the positional relationship between each grid cell and the outer boundary line, supplement the features corresponding to the remaining grid cells after excluding the grid cells on the outer boundary line mark.
  • the processing output module 400 is used to mark the feature marks of each grid unit on the grid map to form an obstacle map.
  • the creation module 100 is also used to establish a rectangular coordinate system, and create a grid map in the same rectangular coordinate system.
  • the creation module 200 is also used to represent the feature mark corresponding to each grid unit as a binary value, and store it in the order of obstacle identification and boundary identification; the control module 100 drives the walking robot for the first time from the initial positioning point along the outer edge During the boundary line walking process, the creation module 200 is also used to modify the feature mark corresponding to the grid unit to ⁇ 1,1> every time the walking robot passes through a grid unit; the control module 100 first confirms that the walking robot moves along After the outer boundary line returns to the initial positioning point, the supplement module 200 is also used to modify the feature mark corresponding to each grid unit within the outer boundary line to ⁇ 0,0>.
  • the supplementary module 300 is used to perform the above step S4, and the processing output module 400 is used to perform the above step S5.
  • a preferred embodiment of the present invention also provides a lawnmower robot including the obstacle map creation system described above.
  • an embodiment of the present invention provides a path planning system.
  • the system includes: an acquisition module 500, an analysis module 600, and a segmentation module 700.
  • the acquiring module 500 is used to acquire an electronic map of the working area of the robot, and an obstacle map with known obstacle coordinates is mapped on the electronic map.
  • the parsing module 600 is used to analyze the electronic map. If it is determined that there is an obstacle in the work area, obtain the contour line of the obstacle on the obstacle map; analyze the contour line of the obstacle, and obtain at least one set of extreme features on each obstacle
  • the extreme feature group is defined as two extreme coordinate points with the smallest abscissa and the largest abscissa on the X-axis of the contour line of the obstacle, and/or the extreme feature group is defined as the obstacle
  • the contour line has two extreme coordinate points with the smallest ordinate and the largest ordinate on the Y axis; the segmentation module 700 is used to segment the work area at the extreme feature point of each obstacle to form several sub-work Area.
  • the parsing module 600 is also used to: implement the above steps M2 and M3; the segmentation module 700 is used to implement step M4.
  • the path planning system adds a subdivision module 800 on the basis of the one shown in FIG. 13, and the subdivision module 800 is used to implement step M5.
  • a preferred embodiment of the present invention also provides a lawn mower robot including the path planning system described above.
  • the above-mentioned obstacle map creation method and system and path planning method all involve the determination of coordinates in the map.
  • the robot can be controlled to walk in the work area and the map can be established according to the coordinates obtained by the robot.
  • low-cost laser positioning based on angle measurement methods or ultra-wideband UWB technology with relatively high positioning accuracy are usually used to locate robots.
  • a lawn mower robot a system with the lawn mower robot and a control method of the lawn mower robot are provided.
  • An embodiment of the present invention provides a lawn mower robot system.
  • the system includes a lawn mower robot configured to operate in a work area, and a number of anti-cursors with known coordinates are set in the work area, and a number of UWB base stations with known coordinates; the number of the reverse cursor and UWB base stations is at least 3.
  • the lawn mower robot provided by the first embodiment of the present invention includes: a UWB positioning device 10, which is used to exchange information with a UWB base station with known coordinates to obtain the relative position of the lawn mower robot relative to the UWB base station.
  • the UWB positioning coordinates of the lawn mower robot are obtained according to the UWB data;
  • the laser positioning device 20 is used for information interaction with the anti-cursor of known coordinates to obtain the lawn mower robot corresponding to the Reflect the laser data of the cursor, and obtain the laser positioning coordinates of the lawn-mower robot according to the laser data;
  • the main controller 30 is used to communicatively connect the UWB positioning device 10 and the laser positioning device 20 to obtain the laser positioning device from the UWB
  • the positioning device 10 receives the UWB positioning coordinates of the lawnmower robot and/or receives the laser positioning coordinates of the lawnmower robot from the laser positioning device 20, and uses the UWB positioning coordinates, the laser positioning coordinates, and the One of the coordinates obtained by fusing the UWB positioning coordinates and the laser positioning coordinates is used as the current position coordinates of the lawn mower robot.
  • the UWB positioning device 10 includes: a UWB tag 11, which is used for the UWB base station to exchange information to obtain UWB data of the lawn mower robot relative to the UWB base station;
  • the first controller 13 is electrically connected to the UWB tag 11 and configured to obtain the UWB data from the UWB tag 11 and obtain the UWB positioning coordinates of the lawn mower robot according to the UWB data.
  • the laser positioning device 20 includes: a laser scanning head 21 for the anti-cursor to perform information interaction to obtain laser data of the lawn mower robot relative to the anti-cursor; a second controller 23, which interacts with the laser
  • the scanning head 21 is electrically connected to obtain the laser data from the laser scanning head 21 and obtain the laser positioning coordinates of the lawn mower robot according to the laser data.
  • the distance information between the current lawn mower robot and the UWB base station in the work area is obtained; further, the first controller 13 uses trilateration to locate The algorithm parses the UWB data to obtain UWB positioning coordinates, and further sends the obtained UWB positioning coordinates to the main controller 30 for fusion.
  • the angle information between the current mowing robot and the anti-cursor in the work area is obtained; further, the second controller 23 uses a triangulation positioning algorithm to analyze the laser data to obtain The laser positioning coordinates are further sent to the main controller 30 for fusion.
  • the main controller 30 and the first controller 13 and the second controller 23 have various communication connection modes, for example, via a serial port, I2C, Wifi, or Bluetooth.
  • the main controller 30 When the main controller 30 receives UWB positioning coordinates and laser positioning coordinates, one of the received UWB positioning coordinates or laser positioning coordinates may be invalid. In this way, the main controller 30 is specifically used to: resolve UWB positioning coordinates and laser positioning coordinates. Positioning coordinates, judge whether one of UWB positioning coordinates and laser positioning coordinates is invalid, if so, use the other as the current position coordinates of the robot. Invalid state, for example: one of the obtained coordinates is not within the current environment area. Of course, there are other invalid scenes, so I won’t go into further details here.
  • the main controller 30 when the main controller 30 confirms that only UWB positioning coordinates are received, the UWB positioning coordinates are taken as the current position coordinates of the robot.
  • the laser positioning coordinates are used as the current position coordinates of the robot.
  • the main controller 30 when the main controller 30 confirms that the UWB positioning coordinates and the laser positioning coordinates are received, it directly uses the laser positioning coordinates as the current position coordinates of the robot.
  • the main controller 30 when the main controller 30 does not receive either the UWB positioning coordinates or the laser positioning coordinates, it sends an instruction to the second controller, and the second controller instructs the laser scanning head to rescan, and rescan obtains The laser positioning coordinates of as the current position coordinates of the robot.
  • the main controller 30 when the main controller 30 confirms that the UWB positioning coordinates and the laser positioning coordinates are received, it adopts one of the weighted average method, the Kalman filter method, and the Bayesian estimation algorithm to merge the UWB positioning coordinates. And laser positioning coordinates.
  • the second embodiment of the present invention provides a lawn mower robot.
  • the second embodiment is similar to the above-mentioned first embodiment. The difference is that the first controller and the second controller are not provided, and directly adopted
  • the main controller 30 is communicatively connected to and controls the UWB tag 11 and the laser scanning head 21; accordingly, the main controller 30 implements the functions of the first controller and the second controller.
  • the main controller 30 is electrically connected to the UWB tag and the laser scanning head respectively, and is used to obtain the UWB data from the UWB tag 11 and obtain the UWB positioning coordinates of the lawn mower robot according to the UWB data, and/ Or obtain the laser data from the laser scanning head 21 and obtain the laser positioning coordinates of the lawn mower robot according to the laser data, and the main controller 30 is also used to use the UWB positioning coordinates and the laser positioning One of the coordinates, the UWB positioning coordinates, and the coordinates after the laser positioning coordinates are fused is used as the current position coordinates of the lawn mower robot.
  • the main controller 30 is also used to implement other functions of the above-mentioned first controller and the second controller.
  • a method for controlling a lawnmower robot includes: N1, real-time information interaction between UWB tags and UWB base stations UWB data of the UWB base station, and/or information interaction with the anti-cursor through a laser scanning head, to obtain laser data of the lawn mower robot relative to the anti-cursor; N2, parse the UWB data to obtain the UWB of the lawn mower robot Positioning coordinates, analyzing laser data to obtain the laser positioning coordinates of the lawn mower robot; N3, using the UWB positioning coordinates, the laser positioning coordinates, the UWB positioning coordinates, and the laser positioning coordinates for one of the fusion coordinates One is the current position coordinate of the lawn mower robot.
  • step N3 specifically includes: parsing UWB positioning coordinates and laser positioning coordinates, judging whether one of UWB positioning coordinates and laser positioning coordinates is invalid, and if so, using the other as the current position coordinates of the robot. .
  • step N3 specifically includes: when it is confirmed that only UWB positioning coordinates are received, the UWB positioning coordinates are used as the current position coordinates of the robot.
  • step N3 specifically includes: when it is confirmed that only the laser positioning coordinates are received, the laser positioning coordinates are used as the current position coordinates of the robot.
  • step N3 specifically includes: when neither UWB positioning coordinates nor laser positioning coordinates are received, instructing to rescan to retrieve the laser positioning coordinates, and using the obtained laser positioning coordinates as the current position coordinates of the robot .
  • step N3 specifically includes: when it is confirmed that the UWB positioning coordinates and the laser positioning coordinates are received, the weighted average method, the Kalman filter method, and the Bayesian estimation algorithm are used to merge UWB positioning Coordinates and laser positioning coordinates.
  • the lawn mower robot of the present invention has the lawn mower robot system and the lawn mower robot control method, combines the advantages of UWB positioning and laser positioning, and improves the positioning accuracy of the robot.
  • modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules, Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of this embodiment.
  • the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, or in the form of hardware plus software functional modules.

Abstract

Provided in the present invention are a path planning method and system, a robot, and a readable storage medium. The method comprises: acquiring an electronic map of a working region of a robot, an obstacle map having known obstacle coordinates being mapped on the electronic map; parsing the electronic map, and if it is determined that there are obstacles in the working region, then acquiring contour lines of the obstacles on the obstacle map; parsing the contour lines of the obstacles, and obtaining at least one extremum feature group on each obstacle, wherein the extremum feature groups are defined as two extremum coordinate points of the contour line of each obstacle with the minimum abscissa and the maximum abscissa on an X-axis, and/or the extremum feature groups are defined as two extremum coordinate points of the contour line of each obstacle with the minimum ordinate and the maximum ordinate on a Y-axis; and dividing the working region at extremum feature points of each obstacle so as to form several sub-working regions. The present invention is beneficial in improving the working efficiency of the robot.

Description

路径规划方法、系统,机器人及可读存储介质Path planning method, system, robot and readable storage medium 技术领域Technical field
本发明涉及智能控制领域,尤其涉及一种路径规划方法、系统,机器人及可读存储介质。The invention relates to the field of intelligent control, in particular to a path planning method, system, robot and readable storage medium.
背景技术Background technique
低重复率、高覆盖率是遍历式机器人如吸尘、割草及泳池清洗等移动机器人追求的目标;将整个工作区域划分为几个子区域,然后分子区域进行工作是一种达到这个目标的重要方法。例如:对于随机模式的割草机器人,草坪形状对覆盖率影响大,如大面积、带狭窄长条或多障碍物等形状复杂的草坪,覆盖率会相对较低;计算机模拟和实验证明,将草坪划分为小块区域,,首先将工作限定在某一区域,完成一个区域后再到另外一个区域工作,即按区域进行工作可以很好地提高覆盖率;对带有精确定位,可以进行低重复率的有规划区域的工作模式,一般也是按照子区域划分、子区域内遍历以及子区域连接的方式来进行。由此可见,分区是遍历的一个重要方法,也因此发展出现了各种分区方法。Low repetition rate and high coverage are the goals pursued by mobile robots such as ergodic robots such as vacuuming, mowing and pool cleaning; dividing the entire working area into several sub-areas, and then working in the molecular area is an important way to achieve this goal method. For example: for a lawn mower robot with a random pattern, the shape of the lawn has a great influence on the coverage rate. For example, a lawn with a large area, narrow strips or multiple obstacles and other complex shapes will have a relatively low coverage rate; computer simulations and experiments have proved that The lawn is divided into small areas. First limit the work to a certain area, and then work in another area after completing one area. That is, working according to the area can improve the coverage rate; for precise positioning, it can be low The repetition rate of the working mode of the planned area is generally carried out in the manner of sub-area division, traversal within sub-area, and sub-area connection. It can be seen that partitioning is an important method of traversal, and various partitioning methods have developed.
现有技术中,对于工作区域的划分,通常采用以下几种方式,例如:用电子边界导线来将草坪划分为不同的区域;用标识物划分,每个标识物周围为一个区块;带定位如GPS,人工控制机器人绕边界走,建立地图,然后人工或者自动根据地图划分区域;带GPS定位和电子边界,自动分区。In the prior art, the following methods are usually used to divide the work area, for example: use electronic boundary wires to divide the lawn into different areas; divide by markers, each marker is surrounded by a block; with positioning Such as GPS, manually control the robot to walk around the boundary, build a map, and then manually or automatically divide the area according to the map; with GPS positioning and electronic boundaries, automatic division.
相应的,带有精确定位子区域划分则主要针对有障碍物的区域,发展了有梯形、Boustrophedon以及矩形等分区方法,以上这些子区域划分方法针对不同的遍历方法而发展,但上述方法仅对工作区域内实际情况的部分因素进行参考,而没有将诸如狭窄长条、障碍物及面积等因素考虑进去;从而不能对工作区域进行更合理的子区域划分,影响机器人的遍历效率。Correspondingly, the sub-region division with precise positioning is mainly aimed at the area with obstacles, and the trapezoidal, Boustrophedon and rectangular partition methods have been developed. These sub-region division methods are developed for different traversal methods, but the above methods only Some factors of the actual situation in the working area are referenced, and factors such as narrow strips, obstacles and area are not taken into consideration; thus, the working area cannot be divided into more reasonable sub-areas, which affects the traversal efficiency of the robot.
发明内容Summary of the invention
为解决上述技术问题,本发明的目的在于提供一种路径规划方法、系统,机器人及可读存储介质。In order to solve the above technical problems, the purpose of the present invention is to provide a path planning method, system, robot and readable storage medium.
为了实现上述发明目的之一,本发明一实施方式提供一种路径规划方法,所述方法包括以下步骤:获取机器人工作区域的电子地图,所述电子地图上映射障碍物坐标已知的障碍物地图;解析电子地图,若确定工作区域内存在障碍物,则获取障碍物地图上障碍物的轮廓线;解析障碍物的轮廓线,在每一障碍物上获得至少一组极值特征组,所述极值特征组定义为障 碍物的轮廓线在X轴上具有最小横坐标和具有最大横坐标的两个极值坐标点,和/或所述极值特征组定义为障碍物的轮廓线在Y轴上具有最小纵坐标和具有最大纵坐标的两个极值坐标点;在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区。In order to achieve one of the above-mentioned objects of the invention, an embodiment of the present invention provides a path planning method. The method includes the following steps: acquiring an electronic map of the robot working area, and mapping an obstacle map with known obstacle coordinates on the electronic map Analyze the electronic map, if it is determined that there is an obstacle in the work area, obtain the contour line of the obstacle on the obstacle map; analyze the contour line of the obstacle, and obtain at least one set of extreme value feature groups on each obstacle, the The extreme feature group is defined as two extreme coordinate points with the smallest abscissa and the largest abscissa on the X axis of the contour line of the obstacle, and/or the extreme feature group is defined as the contour line of the obstacle in Y The axis has two extreme coordinate points with the smallest ordinate and the largest ordinate; the work area is divided at the extreme feature point of each obstacle to form several sub-work areas.
作为本发明一实施方式的进一步改进,所述方法还包括:遍历电子地图,获取电子地图上的拐点,在每一拐点处,以当前拐点为圆心,以预设长度为半径画圆,若所画的圆与当前拐点非相邻的边界线之间具有交点,则该拐点处于狭窄通道上,连接当前拐点以及其对应的交点,形成工作区域的区域分割线。As a further improvement of an embodiment of the present invention, the method further includes: traversing the electronic map to obtain inflection points on the electronic map, and at each inflection point, draw a circle with the current inflection point as the center and the preset length as the radius. There is an intersection between the drawn circle and the non-adjacent boundary line of the current inflection point, then the inflection point is on the narrow passage, and the current inflection point and its corresponding intersection point are connected to form the area dividing line of the working area.
作为本发明一实施方式的进一步改进,“在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区”具体包括:分别以获得的每一组极值特征点组中的每个极值坐标点为射线的端点做射线,每一组极值特征点组中的两个极值坐标点发射的射线在其延伸方向上不相交,且每一所述射线在当前极值特征点所在的轮廓线上仅具有一个交点;获取每条射线沿其发射方向在工作区域上除所述极值坐标点之外的第一个交点;连接每一极值特征点与其发射射线在工作区域上形成的交点形成工作区域的区域分割线。As a further improvement of an embodiment of the present invention, “segmenting the work area at the extreme value feature point of each obstacle to form several sub-work areas” specifically includes: each group of extreme value feature points obtained separately Each extreme coordinate point in the ray is the end point of the ray as a ray, the rays emitted by the two extreme coordinate points in each group of extreme feature point groups do not intersect in their extension direction, and each of the rays is in the current There is only one intersection on the contour line where the extreme feature point is located; obtain the first intersection of each ray along its emission direction on the working area except for the extreme coordinate point; connect each extreme feature point with its emission The intersection formed by the rays on the working area forms the area dividing line of the working area.
作为本发明一实施方式的进一步改进,所述方法还包括:配置每一组极值特征点组中的两个极值坐标点发射的射线方向相反,且每一所述射线在当前极值特征点所在的轮廓线上仅具有一个交点。As a further improvement of an embodiment of the present invention, the method further includes: configuring the two extreme value coordinate points in each group of extreme value feature point groups to emit rays in opposite directions, and each of the rays is in the current extreme value feature There is only one intersection on the contour line where the point lies.
作为本发明一实施方式的进一步改进,“在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区”后,所述方法还包括:获取每一子工作区的最大延伸宽度,将每一子工作区在X轴上最小横坐标和最大横坐标的差值绝对值定义为最大延伸宽度;若当前子工作区的最大延伸宽度大于预设宽度阈值;则按照预设宽度阈值分割当前子工作区,使分割后的任一子区域的最大延伸宽度不大于预设宽度阈值;As a further improvement of an embodiment of the present invention, after "dividing the work area at the extreme feature point of each obstacle to form several sub-work areas", the method further includes: obtaining the information of each sub-work area Maximum extension width, the absolute value of the difference between the minimum abscissa and the maximum abscissa of each sub-work area on the X axis is defined as the maximum extension width; if the maximum extension width of the current sub-work area is greater than the preset width threshold; Set the width threshold to divide the current sub-work area so that the maximum extension width of any sub-area after division is not greater than the preset width threshold;
“按照预设宽度阈值分割当前子工作区,使分割后的任一子区域的最大延伸宽度不大于预设宽度阈值”具体包括:在需要分割的当前子区域的最大延伸宽度的形成方向上、自形成最大延伸宽度的起始点开始,每到达预设宽度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;或获取最大延伸宽度m 1,以及预设宽度阈值n 1,判断m 1≥k 1·n 1是否成立,k 1≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述等
Figure PCTCN2019121288-appb-000001
其中,
Figure PCTCN2019121288-appb-000002
表示向上取整。
“Splitting the current sub-work area according to the preset width threshold so that the maximum extension width of any sub-region after segmentation is not greater than the preset width threshold” specifically includes: in the direction of forming the maximum extension width of the current sub-region that needs to be divided, From the starting point of forming the maximum extension width, each time the preset width threshold is reached, a dividing line is formed in the forming direction perpendicular to the maximum extension width, and each dividing line has two intersection points with the working area; or obtaining the maximum extension width m 1 , and the preset width threshold n 1 , judge whether m 1 ≥k 1 ·n 1 is established, k 1 ≥1.5, if so, every time the equal division threshold is reached, a dividing line is formed in the direction perpendicular to the maximum extension width; Said etc.
Figure PCTCN2019121288-appb-000001
among them,
Figure PCTCN2019121288-appb-000002
Indicates rounding up.
作为本发明一实施方式的进一步改进,“在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区”后,所述方法还包括:获取每一子工作区的最大延伸长度,将 每一子工作区在Y轴上最小纵坐标和最大纵坐标的差值绝对值定义为最大延伸长度;若当前子工作区的最大延伸长度大于预设长度阈值;则按照预设长度阈值分割当前子工作区,使分割后的任一子区域的最大延伸长度不大于预设长度阈值;As a further improvement of an embodiment of the present invention, after "dividing the work area at the extreme feature point of each obstacle to form several sub-work areas", the method further includes: obtaining the information of each sub-work area Maximum extension length, the absolute value of the difference between the minimum and maximum ordinates on the Y axis of each sub-work area is defined as the maximum extension length; if the maximum extension length of the current sub-work area is greater than the preset length threshold; Set the length threshold to divide the current sub-work area so that the maximum extension length of any sub-area after division is not greater than the preset length threshold;
“按照预设长度阈值分割当前子工作区,使分割后的任一子区域的最大延伸长度不大于预设长度阈值”具体包括:在需要分割的当前子区域的最大延伸长度的形成方向上、自形成最大延伸长度的起始点开始,每到达预设长度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;或获取最大延伸长度m 2,以及预设宽度阈值n 2,判断m 2≥k 2·n 2是否成立,k 2≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述等
Figure PCTCN2019121288-appb-000003
"Splitting the current sub-work area according to the preset length threshold so that the maximum extension length of any sub-region after segmentation is not greater than the preset length threshold" specifically includes: in the direction of forming the maximum extension length of the current sub-region to be divided, From the starting point of forming the maximum extension length, each time the preset length threshold is reached, a dividing line is formed in the forming direction perpendicular to the maximum extension width, and each dividing line has two intersection points with the working area; or obtaining the maximum extension length m 2 , and the preset width threshold n 2 , judge whether m 2 ≥k 2 ·n 2 is established, k 2 ≥1.5, and if so, each time the equal division threshold is reached, a dividing line is formed in the direction perpendicular to the maximum extension width; Said etc.
Figure PCTCN2019121288-appb-000003
为了实现上述发明目的之一,本发明一实施方式提供一种机器人,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现如上所述路径规划方法的步骤。In order to achieve one of the above-mentioned objects of the invention, an embodiment of the present invention provides a robot including a memory and a processor, the memory stores a computer program, and the processor implements the path planning method described above when the computer program is executed. step.
为了实现上述发明目的之一,本发明一实施方式提供一种可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述路径规划方法的步骤。In order to achieve one of the above-mentioned objects of the invention, an embodiment of the present invention provides a readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement the steps of the path planning method described above.
为了实现上述发明目的另一,本发明一实施方式提供一种路径规划系统,所述系统包括:获取模块,用于获取机器人工作区域的电子地图,所述电子地图上映射障碍物坐标已知的障碍物地图;解析模块,用于解析电子地图,若确定工作区域内存在障碍物,则获取障碍物地图上障碍物的轮廓线;解析障碍物的轮廓线,在每一障碍物上获得至少一组极值特征组,所述极值特征组定义为障碍物的轮廓线在X轴上具有最小横坐标和具有最大横坐标的两个极值坐标点,和/或所述极值特征组定义为障碍物的轮廓线在Y轴上具有最小纵坐标和具有最大纵坐标的两个极值坐标点;分割模块,用于在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区。In order to achieve another objective of the above-mentioned invention, an embodiment of the present invention provides a path planning system, the system includes: an acquisition module for acquiring an electronic map of the robot working area, the electronic map is mapped to known obstacle coordinates Obstacle map; analysis module, used to analyze the electronic map, if it is determined that there is an obstacle in the work area, obtain the contour line of the obstacle on the obstacle map; analyze the contour line of the obstacle, and obtain at least one on each obstacle The extreme value feature group is defined as two extreme value coordinate points with the smallest abscissa and the largest abscissa on the X-axis of the contour line of the obstacle, and/or the extreme value feature group is defined The contour line of the obstacle has two extreme coordinate points with the smallest ordinate and the largest ordinate on the Y axis; the segmentation module is used to segment the work area at the extreme feature point of each obstacle to Form several sub-work areas.
作为本发明一实施方式的进一步改进,所述解析模块还用于:遍历电子地图,获取电子地图上的拐点,在每一拐点处,以当前拐点为圆心,以预设长度为半径画圆,若所画的圆与当前拐点非相邻的边界线之间具有交点,则该拐点处于狭窄通道上,连接当前拐点以及其对应的交点,形成工作区域的区域分割线。As a further improvement of an embodiment of the present invention, the analysis module is also used to: traverse the electronic map to obtain inflection points on the electronic map, at each inflection point, draw a circle with the current inflection point as the center and the preset length as the radius, If there is an intersection between the drawn circle and the non-adjacent boundary line of the current inflection point, the inflection point is on the narrow passage, and the current inflection point and its corresponding intersection point are connected to form the area dividing line of the working area.
作为本发明一实施方式的进一步改进,所述分割模块具体用于:分别以获得的每一组极值特征点组中的每个极值坐标点为射线的端点做射线,每一组极值特征点组中的两个极值坐标点发射的射线在其延伸方向上不相交,且每一所述射线在当前极值特征点所在的轮廓线上 仅具有一个交点;获取每条射线沿其发射方向在工作区域上除所述极值坐标点之外的第一个交点;连接每一极值特征点与其发射射线在工作区域上形成的交点形成工作区域的区域分割线。As a further improvement of an embodiment of the present invention, the segmentation module is specifically configured to: each extreme value coordinate point in each group of extreme value feature points obtained separately is the end point of the ray as a ray, and each group of extreme value The rays emitted by the two extreme coordinate points in the feature point group do not intersect in their extension direction, and each of the rays has only one intersection on the contour line where the current extreme feature point is located; obtain each ray along its extension The emission direction is the first intersection point on the working area except for the extreme coordinate point; connecting each extreme feature point and the intersection formed by the emission ray on the working area to form the area dividing line of the working area.
作为本发明一实施方式的进一步改进,所述分割模块具体用于:配置每一组极值特征点组中的两个极值坐标点发射的射线方向相反,且每一所述射线在当前极值特征点所在的轮廓线上仅具有一个交点。As a further improvement of an embodiment of the present invention, the segmentation module is specifically configured to configure the two extreme value coordinate points in each group of extreme value feature point groups to emit rays in opposite directions, and each of the rays is at the current extreme. There is only one intersection on the contour line where the value feature point is located.
作为本发明一实施方式的进一步改进,所述系统还包括:细分模块,用于获取每一子工作区的最大延伸宽度,将每一子工作区在X轴上最小横坐标和最大横坐标的差值绝对值定义为最大延伸宽度;若当前子工作区的最大延伸宽度大于预设宽度阈值;则按照预设宽度阈值分割当前子工作区,使分割后的任一子区域的最大延伸宽度不大于预设宽度阈值。As a further improvement of an embodiment of the present invention, the system further includes: a subdivision module, used to obtain the maximum extension width of each sub-work area, and set the minimum and maximum abscissas of each sub-work area on the X axis The absolute value of the difference is defined as the maximum extension width; if the maximum extension width of the current sub-work area is greater than the preset width threshold; the current sub-work area is divided according to the preset width threshold, so that the maximum extension width of any sub-area after division Not greater than the preset width threshold.
作为本发明一实施方式的进一步改进,所述细分模块具体用于:在需要分割的当前子区域的最大延伸宽度的形成方向上、自形成最大延伸宽度的起始点开始,每到达预设宽度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;或获取最大延伸宽度m 1,以及预设宽度阈值n 1,判断m 1≥k 1·n 1是否成立,k 1≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述等
Figure PCTCN2019121288-appb-000004
Figure PCTCN2019121288-appb-000005
其中,
Figure PCTCN2019121288-appb-000006
表示向上取整。
As a further improvement of an embodiment of the present invention, the subdivision module is specifically configured to: in the direction of forming the maximum extension width of the current subregion to be divided, starting from the starting point of forming the maximum extension width, each time the preset width is reached When thresholding, a dividing line is formed in the direction perpendicular to the maximum extension width, and each dividing line has two intersections with the working area; or obtaining the maximum extension width m 1 and the preset width threshold n 1 , and judging m 1 ≥k 1 · whether n 1 is established, k 1 ≥1.5, if so, every time the equal division threshold is reached, a division line is formed in the direction perpendicular to the maximum extension width;
Figure PCTCN2019121288-appb-000004
Figure PCTCN2019121288-appb-000005
among them,
Figure PCTCN2019121288-appb-000006
Indicates rounding up.
作为本发明一实施方式的进一步改进,所述系统还包括:细分模块,用于获取每一子工作区的最大延伸长度,将每一子工作区在Y轴上最小纵坐标和最大纵坐标的差值绝对值定义为最大延伸长度;若当前子工作区的最大延伸长度大于预设长度阈值;则按照预设长度阈值分割当前子工作区,使分割后的任一子区域的最大延伸长度不大于预设长度阈值。As a further improvement of an embodiment of the present invention, the system further includes: a subdivision module, which is used to obtain the maximum extension length of each sub-work area, and to set each sub-work area on the Y axis with the smallest ordinate and the largest ordinate The absolute value of the difference is defined as the maximum extension length; if the maximum extension length of the current sub-work area is greater than the preset length threshold; the current sub-work area is divided according to the preset length threshold, so that the maximum extension length of any sub-area after division Not greater than the preset length threshold.
作为本发明一实施方式的进一步改进,所述细分模块具体用于:在需要分割的当前子区域的最大延伸长度的形成方向上、自形成最大延伸长度的起始点开始,每到达预设长度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;或获取最大延伸长度m 2,以及预设宽度阈值n 2,判断m 2≥k 2·n 2是否成立,k 2≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述等
Figure PCTCN2019121288-appb-000007
Figure PCTCN2019121288-appb-000008
As a further improvement of an embodiment of the present invention, the subdivision module is specifically configured to: in the direction of forming the maximum extension length of the current subregion to be divided, starting from the starting point of forming the maximum extension length, each time the preset length is reached When thresholding, a dividing line is formed in the direction perpendicular to the maximum extension width, and each dividing line has two intersections with the working area; or obtaining the maximum extension length m 2 and the preset width threshold n 2 , and judging m 2 ≥k 2 · Whether n 2 is established, k 2 ≥1.5, if so, every time the equal division threshold is reached, a division line is formed in the direction perpendicular to the maximum extension width;
Figure PCTCN2019121288-appb-000007
Figure PCTCN2019121288-appb-000008
为了实现上述发明目的之一,本发明一实施方式提供一种包括如上所述的路径规划系统的机器人。In order to achieve one of the above-mentioned objects of the invention, an embodiment of the present invention provides a robot including the above-mentioned path planning system.
与现有技术相比,本发明的路径规划方法、系统,机器人及可读存储介质,利用障碍物坐标已知电子地图,根据障碍物的位置对工作区域进行划分,使得障碍物位于某一或多个子区域的边界,而不会位于子区域中间;有利于机器人随机遍历程序的运行,保证机器人遍历时的覆盖率,并有助于提高机器人的工作效率。Compared with the prior art, the path planning method, system, robot and readable storage medium of the present invention use an electronic map with known obstacle coordinates, and divide the work area according to the position of the obstacle, so that the obstacle is located in a certain or The boundaries of multiple sub-areas, but not in the middle of the sub-areas; it is conducive to the operation of the robot's random traversal program, ensures the coverage of the robot during traversal, and helps to improve the work efficiency of the robot.
附图说明Description of the drawings
图1是本发明一实施方式提供的障碍地图的创建方法的流程示意图;FIG. 1 is a schematic flowchart of a method for creating an obstacle map according to an embodiment of the present invention;
图2是在图1基础上提供的另一较佳实施方式障碍地图的创建方法的流程示意图;Fig. 2 is a schematic flow chart of a method for creating an obstacle map in another preferred embodiment based on Fig. 1;
图3是实现图3中步骤S4的一较佳实施方式的流程示意图;FIG. 3 is a schematic flowchart of a preferred embodiment for implementing step S4 in FIG. 3;
图4是本发明一实施方式提供的路径规划方法的流程示意图;4 is a schematic flowchart of a path planning method provided by an embodiment of the present invention;
图5、图6、图8、图9、图11分别是本发明一具体示例的结构示意图;Fig. 5, Fig. 6, Fig. 8, Fig. 9, Fig. 11 are respectively structural schematic diagrams of a specific example of the present invention;
图7是图4中其中一个步骤的较佳实现方式的流程示意图;FIG. 7 is a schematic flowchart of a preferred implementation of one of the steps in FIG. 4;
图10是在图4基础上提供的另一较佳实施方式路径规划方法的流程示意图;FIG. 10 is a schematic flowchart of another preferred embodiment path planning method provided on the basis of FIG. 4;
图12是本发明一实施方式提供的障碍地图的创建系统的模块示意图;FIG. 12 is a schematic diagram of modules of an obstacle map creation system provided by an embodiment of the present invention;
图13是本发明一实施方式提供的路径规划系统的模块示意图;FIG. 13 is a schematic diagram of modules of a path planning system provided by an embodiment of the present invention;
图14是在图13基础上提供的一较佳实施方式的路径规划系统的模块示意图;FIG. 14 is a schematic diagram of modules of a path planning system according to a preferred embodiment provided on the basis of FIG. 13;
图15是本发明第一实施方式提供的割草机器人的示意图;15 is a schematic diagram of the lawn mower robot provided by the first embodiment of the present invention;
图16是本发明第二实施方式提供的割草机器人的示意图;Fig. 16 is a schematic diagram of a lawn mower robot provided by a second embodiment of the present invention;
图17是本发明一实施方式提供的割草机器人的控制方法的流程示意图。FIG. 17 is a schematic flowchart of a method for controlling a lawn mower robot according to an embodiment of the present invention.
具体实施方式detailed description
以下将结合附图所示的各实施方式对本发明进行详细描述。但这些实施方式并不限制本发明,本领域的普通技术人员根据这些实施方式所做出的结构、方法、或功能上的变换均包含在本发明的保护范围内。The present invention will be described in detail below in conjunction with the embodiments shown in the drawings. However, these embodiments do not limit the present invention, and the structural, method, or functional changes made by those skilled in the art based on these embodiments are all included in the protection scope of the present invention.
本发明的机器人系统可以是割草机器人系统,或者扫地机器人系统等,其自动行走于工作区域以进行割草、吸尘工作,本发明具体示例中,以机器人系统为割草机器人系统为例做具体说明,相应的,所述工作区域可为草坪。The robot system of the present invention may be a lawn mower robot system, or a sweeping robot system, etc., which automatically walks in the work area for mowing and vacuuming. In the specific example of the present invention, the robot system is a lawn mower robot system. Specifically, correspondingly, the working area may be a lawn.
本发明的割草机器人系统包括:机器人设备、充电站、边界线及边界线信号站、定位基站;所述边界线例如为通电导线,所述边界线信号站通常集成在充电站内,所述定位基站通常为基于红外线、超声波、蓝牙、ZigBee、UWB等技术的信号发射站,或适配于RM上的激光发射器的反光标;其中,充电站设置在边界线上;RM设有边界传感器和定位传感器;边界传感器通常为电感,用于感测边界线上加载的信号;定位传感器通常为接收红外线、超声波、蓝牙、ZigBee、UWB信号的传感器,或包括转台的激光发射/接收器,能够接收定位 基站发出或反射回来的信号。The lawn mower robot system of the present invention includes: robot equipment, charging station, boundary line and boundary line signal station, and positioning base station; the boundary line is, for example, an energized wire, the boundary line signal station is usually integrated in the charging station, and the positioning The base station is usually a signal transmitting station based on infrared, ultrasonic, Bluetooth, ZigBee, UWB and other technologies, or a reflector adapted to a laser transmitter on the RM; the charging station is set on the boundary line; the RM is equipped with boundary sensors and Positioning sensor; the boundary sensor is usually inductance, used to sense the signal loaded on the boundary line; the positioning sensor is usually a sensor that receives infrared, ultrasonic, Bluetooth, ZigBee, UWB signals, or a laser transmitter/receiver including a turntable, which can receive Position the signal sent or reflected by the base station.
结合图1所示,本发明一实施提供的障碍地图的创建方法,所述方法包括以下步骤:As shown in FIG. 1, an obstacle map creation method provided by an implementation of the present invention includes the following steps:
S1、在创建栅格地图的同一直角坐标系下,首次驱动行走机器人自初始定位点开始沿外边界线行走,跟随机器人的行走路径在外边界线围成的工作区域上创建覆盖行走机器人工作区域的栅格地图,所述栅格地图包括多个坐标已知的栅格单元;S1. In the same right-angle coordinate system for creating the grid map, drive the walking robot to walk along the outer boundary line from the initial positioning point for the first time, and follow the walking path of the robot to create a grid covering the working area of the walking robot on the working area enclosed by the outer boundary line A grid map, the grid map including a plurality of grid units with known coordinates;
并实时记录外边界线上栅格单元的特征标记,每一栅格单元具有唯一特征标记,所述特征标记包括用于表征栅格单元与障碍物的位置关系的障碍标识和用于表征栅格单元与边界线的位置关系的边界标识;And record the feature mark of the grid unit on the outer boundary line in real time, and each grid unit has a unique feature mark, and the feature mark includes an obstacle identifier used to characterize the position relationship between the grid unit and the obstacle and the grid unit Boundary identification of the positional relationship with the boundary line;
S2、在确认行走机器人沿外边界线回到初始定位点后,根据各个栅格单元与外边界线的位置关系,补充排除外边界线上的栅格单元后剩余的栅格单元所对应的特征标记;S2. After confirming that the walking robot returns to the initial positioning point along the outer boundary line, according to the positional relationship between each grid unit and the outer boundary line, supplement the feature marks corresponding to the remaining grid units after excluding the grid units on the outer boundary line;
S3、在栅格地图上对各个栅格单元的特征标记进行标识形成障碍物地图。S3. Mark the feature marks of each grid unit on the grid map to form an obstacle map.
本发明较佳实施方式中,对于步骤S1,所述方法还包括:建立直角坐标系,并在该直角坐标系下,创建栅格地图,栅格地图的具体创建方法为现有技术,在此不做进一步的赘述。In a preferred embodiment of the present invention, for step S1, the method further includes: establishing a rectangular coordinate system, and creating a raster map in the rectangular coordinate system. The specific method for creating the raster map is in the prior art. No further details.
上述边界线可以是实体的边界线,例如:栅栏,也可以是电子边界线,例如:通电导线在其周围形成的磁场,或者其他能被机器人识别的边界。The aforementioned boundary line can be a physical boundary line, such as a fence, or an electronic boundary line, such as a magnetic field formed around it by an energized wire, or other boundaries that can be recognized by the robot.
本发明可实现方式中,所述步骤S1中对于直接坐标系的建立,可以以机器人在充电桩的停靠位置为初始定位点;以俯视视角观察,以为机器人充电的充电桩的开口方向为X轴方向(即机器人离开充电桩的方向),并以X轴旋转90°的方向为Y轴方向,建立笛卡尔直角坐标系,此时,机器人的位置坐标为(0,0)。In the achievable manner of the present invention, for the establishment of the direct coordinate system in the step S1, the parking position of the robot at the charging pile can be taken as the initial positioning point; when viewed from a top view, the opening direction of the charging pile charged by the robot is the X axis Direction (that is, the direction in which the robot leaves the charging pile), and the direction of the X-axis rotated by 90° is the Y-axis direction to establish a Cartesian rectangular coordinate system. At this time, the robot's position coordinates are (0,0).
进一步的,机器人沿外边界行走过程中,可根据背景技术中记录的多种算法获取外边界上的坐标点,并根据外边界上的坐标点确定每个栅格单元的坐标。Further, when the robot walks along the outer boundary, the coordinate points on the outer boundary can be obtained according to various algorithms recorded in the background art, and the coordinates of each grid unit can be determined according to the coordinate points on the outer boundary.
进一步的,对于每一栅格单元,将每一栅格单元对应的特征标记以二进制数值进行表示,并示例性地按照障碍标识、边界标识顺序存储;本发明具体实施方式中,将边界线定义为障碍物的一种,所述边界线包括外边界线,也可能会包含内边界线;驱动机器人沿外边界线首次行走过程中,仅能够获取部分栅格单元的真实特征标记;相应的,驱动行走机器人从初始定位点开始沿外边界线行走过程中,行走机器人每经过一个栅格单元,将该栅格单元对应的特征标记修改为<a,b>,a,代表障碍标识,b代表特征标识,本示例中障碍标识和特征标识均以二进制进行表示,即a的具体数值为0或1,b的具体数值为0或1;该具体示例中,若a,b取值均为1,则表示该栅格单元内有障碍物,且该栅格单元内存在边界线;需要说明的是,在首次驱动机器人行走过程中,边界标识为1的栅格单元均处于外边界线上;相应的,为了便于进行区分,在本发明的其他实施方式中,还可以对每一栅格单元增加边界属性标识,该 边界属性标识同样可以以二进制进行表示,例如,当其为1时,表示外边界线,当其为0时,表示为内边界线。Further, for each grid unit, the feature mark corresponding to each grid unit is represented by a binary value, and is exemplarily stored in the order of obstacle identification and boundary identification; in the specific embodiment of the present invention, the boundary line is defined It is a kind of obstacle, the boundary line includes the outer boundary line, and may also include the inner boundary line; when driving the robot to walk along the outer boundary line for the first time, only the true feature marks of part of the grid cells can be obtained; correspondingly, driving the walking In the process of the robot walking along the outer boundary line from the initial positioning point, each time the walking robot passes through a grid unit, the feature mark corresponding to the grid unit is modified to <a,b>, where a represents the obstacle identification, and b represents the feature identification. In this example, the obstacle identification and feature identification are both expressed in binary, that is, the specific value of a is 0 or 1, and the specific value of b is 0 or 1. In this specific example, if the values of a and b are both 1, it means There are obstacles in the grid unit, and there are boundary lines in the grid unit; it should be noted that during the first driving of the robot to walk, the grid units with the boundary ID of 1 are on the outer boundary line; accordingly, for To facilitate distinction, in other embodiments of the present invention, a boundary attribute identifier can also be added to each grid unit. The boundary attribute identifier can also be expressed in binary. For example, when it is 1, it represents the outer boundary line. When it is 0, it is expressed as an inner boundary line.
机器人沿外边界线行走一周时,对于外边界线内,也可能包括外边界线外的栅格单元,并不能判断是否存在障碍物,以及进一步的判断存在的障碍物是否为内边界线。本发明较佳实施方式中,为了便于统计,对于步骤S2,在确认行走机器人沿外边界线回到初始定位点后,所述方法具体包括:将处于外边界线内的各个栅格单元所对应的特征标记修改为<0,0>,即机器人首次沿边界线行走一周时,默认外边界线没有障碍物,同时也没有内边界线存在。When the robot walks along the outer boundary line for a full circle, the grid unit inside the outer boundary line may also be included, and it cannot determine whether there is an obstacle, and further determine whether the existing obstacle is an inner boundary line. In a preferred embodiment of the present invention, in order to facilitate statistics, for step S2, after confirming that the walking robot returns to the initial positioning point along the outer boundary line, the method specifically includes: setting the features corresponding to each grid unit within the outer boundary line The mark is modified to <0,0>, that is, when the robot walks along the boundary line for the first time, the default outer boundary line has no obstacles, and no inner boundary line exists.
为了避免出现上述统计错误,本发明较佳实施方式中,在驱动机器人非首次进入工作区域时,根据工作区域的实际构成对每个栅格单元对应的特征标记进行修改。In order to avoid the above statistical errors, in a preferred embodiment of the present invention, when the robot is driven to enter the work area for the first time, the feature mark corresponding to each grid unit is modified according to the actual composition of the work area.
相应的,结合图2所示,在所述步骤S3后,所述方法还包括:S4、在非首次驱动行走机器人在工作区域内行走过程中,在到达每一栅格单元时,根据当前栅格单元内监测到的障碍物和边界线获取对应于当前栅格单元新的特征标记;Correspondingly, as shown in FIG. 2, after the step S3, the method further includes: S4. When the walking robot is not driven for the first time in the working area, when it reaches each grid unit, according to the current grid Obstacles and boundary lines monitored in the grid cell acquire new feature marks corresponding to the current grid cell;
并判断当前栅格单元在行走机器人记录的障碍物地图中的特征标记与新获取的特征标记是否相同,若相同,则保持障碍物地图中的特征标记不变,若不同,则以新获取的特征标记替换障碍地图中已存在的特征标记。And judge whether the feature mark of the current grid unit in the obstacle map recorded by the walking robot is the same as the newly acquired feature mark. If they are the same, keep the feature mark in the obstacle map unchanged. If they are different, use the newly acquired feature mark. The feature mark replaces the existing feature mark in the obstacle map.
本发明较佳实施方式中,结合图3所示,所述步骤S4具体包括:驱动行走机器人在工作区域内行走,并在到达每一栅格单元时判断当前栅格单元是否遇到障碍物;In a preferred embodiment of the present invention, as shown in FIG. 3, the step S4 specifically includes: driving the walking robot to walk in the work area, and when reaching each grid unit, determine whether the current grid unit encounters an obstacle;
若是,在确认当前栅格单元记录的特征标记为<1,1>时,保持当前栅格的特征标记不变;If yes, when confirming that the feature mark of the current grid unit record is <1,1>, keep the feature mark of the current grid unchanged;
在确认当前栅格单元记录的特征标记不为<1,1>,且确认当前栅格内存在边界线时,将当前栅格单元的特征标记修改为<1,1>,同时将当前栅格内的边界线定义为内边界线;When confirming that the feature mark of the current grid cell record is not <1,1>, and confirming that there is a boundary line in the current grid, modify the feature mark of the current grid cell to <1,1> and change the current grid cell The inner boundary line is defined as the inner boundary line;
在确认当前栅格单元记录的特征标记不为<1,1>,且确认当前栅格内不存在边界线时,将当前栅格单元的特征标记修改为<1,0>;When it is confirmed that the feature mark of the current grid cell record is not <1,1> and that there is no boundary line in the current grid, the feature mark of the current grid cell is changed to <1,0>;
若否,在确认当前栅格单元记录的特征标记为<0,0>时,保持当前栅格的特征标记不变;If not, when confirming that the feature mark of the current grid unit record is <0,0>, keep the feature mark of the current grid unchanged;
在确认当前栅格单元记录的特征标记不为<0,0>时,将当前栅格单元的特征标记修改为<0,0>。When confirming that the feature mark of the current grid cell record is not <0,0>, modify the feature mark of the current grid cell to <0,0>.
本发明较佳实施方式中,对于步骤S4,所述方法还包括:在获取到内边界线上的第一个坐标点后,驱动行走机器人按照预设时间间隔或行走路程间隔持续记录机器人的位置坐标,直至对内边界线遍历完成;统计机器人在内边界线上获得的位置坐标,以更新所述栅格地图中的内边界。In a preferred embodiment of the present invention, for step S4, the method further includes: after acquiring the first coordinate point on the inner boundary line, driving the walking robot to continuously record the position of the robot according to a preset time interval or walking distance interval Coordinates until the traversal of the inner boundary line is completed; the position coordinates obtained by the robot on the inner boundary line are counted to update the inner boundary in the grid map.
本发明一具体实施方式中,所述预设时间间隔Δt根据机器人的定位精度δ和机器人的运 行速度v获得,即
Figure PCTCN2019121288-appb-000009
例如,在本实施例中,δ=0.2m,v=0.4m/s,则
Figure PCTCN2019121288-appb-000010
即预设时间间隔Δt≤0.5s。
In a specific embodiment of the present invention, the preset time interval Δt is obtained according to the positioning accuracy δ of the robot and the running speed v of the robot, namely
Figure PCTCN2019121288-appb-000009
For example, in this embodiment, δ=0.2m, v=0.4m/s, then
Figure PCTCN2019121288-appb-000010
That is, the preset time interval Δt≤0.5s.
需要说明的是,机器人在非首次进入到工作区域后,在查询到栅格单元前次记录的特征标记为<1,0>时,并不会对该栅格单元做特别的处理,仅在机器人探寻到该栅格单元确定存在障碍物时,才会避开该栅格单元;机器人确定障碍物的方式具有多种,例如:其自身的传感器感测到碰撞,此时,确定该栅格单元存在障碍物,在此不做进一步的赘述。It should be noted that after the robot enters the work area for the first time, when the feature tag of the previous record of the grid unit is found to be <1,0>, it will not perform special processing on the grid unit. The robot will avoid the grid unit when it finds the grid unit to determine that there is an obstacle; there are many ways for the robot to determine the obstacle, for example: its own sensor detects the collision, at this time, it determines the grid There are obstacles in the unit, so I won’t go into details here.
本发明一较佳实施方式中,所述步骤S4后,所述方法还包括:S5、若确认行走机器人在当前工作区域内的运行时间达到预设运行时间,和/或确认行走机器人在当前工作区域内的覆盖率达到预设覆盖率,则统计特征标记为<1,0>的栅格单元,并按照就近原则进行区域合并,形成障碍区。In a preferred embodiment of the present invention, after the step S4, the method further includes: S5, if it is confirmed that the running time of the walking robot in the current working area reaches the preset running time, and/or it is confirmed that the walking robot is currently working If the coverage rate in the area reaches the preset coverage rate, the grid units marked as <1,0> will be counted, and the regions will be merged according to the principle of proximity to form obstacle areas.
本发明可实现方式中,预设运行时间T max可以根据工作区域的面积Sa,以及单位时间内机器人行走区域的面积经验值Cp获得,即
Figure PCTCN2019121288-appb-000011
所述覆盖率可以为自每次遍历开始后,已经遍历的栅格单元占总栅格单元的比例;也可以为自每次遍历开始后,已经遍历的栅格单元占特征标记为<0,0>的栅格单元的比例;所述预设覆盖率可以根据需求具体指定,通常为大于50%的数值。本发明一可实现方式中,可以为每一栅格单元设定一覆盖参数,该参数以Traverse表示,工作机器人未进入工作区域时,该所有栅格单元的Traverse=0,当机器人进入到工作区域并通过某一栅格单元时,将该栅格单元的Traverse值修改为1,则所述覆盖率为Traverse=1的栅格单元占总栅格单元的比例或所述覆盖率为Traverse=1的栅格单元占特征标记为<0,0>的栅格单元的比例。
In the achievable manner of the present invention, the preset running time T max can be obtained according to the area Sa of the working area and the area experience value Cp of the robot walking area per unit time, namely
Figure PCTCN2019121288-appb-000011
The coverage rate can be the ratio of the grid units that have been traversed to the total grid units since the start of each traversal; it can also be that the grid units that have been traversed account for the feature mark as <0, The proportion of grid units of 0>; the preset coverage rate can be specified according to requirements, and is usually a value greater than 50%. In an implementable manner of the present invention, a coverage parameter can be set for each grid unit. This parameter is represented by Traverse. When the working robot does not enter the working area, Traverse=0 for all grid units. When the robot enters the working area, When the area passes through a certain grid unit, the Traverse value of the grid unit is modified to 1, then the ratio of the grid unit with the coverage rate of Traverse=1 to the total grid unit or the coverage rate of Traverse= The ratio of grid cells with 1 to the grid cells with feature label <0,0>.
本发明步骤S5的较佳实施方式中,统计特征标记为<1,0>的栅格单元,并按照就近原则进行区域合并,形成障碍区具体包括:统计特征标记为<1,0>的栅格单元,若两个栅格单元之间的距离小于预设距离,则将该两个栅格单元进行区域合并,形成障碍区;或统计多个特征标记为<1,0>的栅格单元在预设距离范围内,则将该多个栅格单元进行区域合并,形成障碍区。In a preferred embodiment of step S5 of the present invention, the grid units with statistical features marked as <1,0> are merged according to the principle of proximity to form an obstacle area specifically including: grid units with statistical features marked as <1,0> Grid cell, if the distance between two grid cells is less than the preset distance, then the two grid cells will be merged to form an obstacle area; or count multiple grid cells marked with <1,0> Within the preset distance range, the multiple grid units are regionally merged to form an obstacle area.
本发明一较佳实施方式中,采用特定的图形表征障碍区,所述特定图形例如:矩形、圆形。In a preferred embodiment of the present invention, specific graphics are used to represent the obstacle area, such as rectangles and circles.
相应的,当采用矩形表征障碍区时,所述方法具体包括:在同一障碍区获取栅格单元中在X轴上最小横坐标x min、X轴上的最大横坐标x max、Y轴上最小纵坐标y min以及Y轴上的 最大纵坐标y max,将以顶点(x min,y min)和(x max,y max)形成矩形区域定义为障碍区。 Correspondingly, when a rectangle is used to characterize the obstacle area, the method specifically includes: obtaining the smallest abscissa x min on the X axis, the largest abscissa x max on the X axis, and the smallest on the Y axis in the same obstacle area. The ordinate y min and the maximum ordinate y max on the Y axis define a rectangular area formed by the vertices (x min , y min ) and (x max , y max ) as the obstacle area.
当采用圆形表征障碍区时,所述方法具体包括:在同一障碍区获取栅格单元中不在同一直线上的3个栅格单元,以该3个栅格单元确定圆形区域,以保证其他栅格单元均在该圆形区域内或该圆形区域的边界上,将所述圆形区域定义为障碍区。When a circle is used to characterize the obstacle area, the method specifically includes: acquiring three grid units in the same obstacle area that are not on the same straight line, and using the three grid units to determine the circular area to ensure other The grid units are all in the circular area or on the boundary of the circular area, and the circular area is defined as an obstacle area.
本发明的障碍地图的创建方法,可以在机器人割草过程中,同步创建包括边界、孤岛、边界障碍物以及非边界障碍物等的完全信息的栅格地图;提升机器人的工作效率。The obstacle map creation method of the present invention can synchronously create a grid map with complete information including boundaries, islands, boundary obstacles and non-boundary obstacles during the mowing process of the robot, and improve the working efficiency of the robot.
本发明一实施方式中,还提供一种机器人,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述所述障碍地图的创建方法的步骤。In an embodiment of the present invention, there is also provided a robot including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the obstacle map creation method when the computer program is executed.
本发明一实施方式中,还提供一种可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述所述障碍地图的创建方法的步骤。In an embodiment of the present invention, there is also provided a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned obstacle map creation method are realized.
结合图4所示,本发明一实施方式提供一种依据上述获得的障碍物地图的路径规划方法,所述方法包括:As shown in FIG. 4, an embodiment of the present invention provides a path planning method based on the obstacle map obtained above, and the method includes:
M1、获取机器人工作区域的电子地图,所述电子地图上映射障碍物坐标已知的障碍物地图;所述电子地图也可以为栅格地图;M1. Obtain an electronic map of the working area of the robot, and map an obstacle map with known obstacle coordinates on the electronic map; the electronic map may also be a grid map;
M2、解析电子地图,若确定工作区域内存在障碍物,则获取障碍物地图上障碍物的轮廓线;M2. Analyze the electronic map. If it is determined that there are obstacles in the work area, obtain the outline of the obstacle on the obstacle map;
M3、解析障碍物的轮廓线,在每一障碍物上获得至少一组极值特征组,所述极值特征组定义为障碍物的轮廓线在X轴上具有最小横坐标和具有最大横坐标的两个极值坐标点,和/或所述极值特征组定义为障碍物的轮廓线在Y轴上具有最小纵坐标和具有最大纵坐标的两个极值坐标点;M3. Analyze the contour line of the obstacle, and obtain at least one set of extreme value feature groups on each obstacle, the extreme value feature group is defined as the contour line of the obstacle having the smallest abscissa and the largest abscissa on the X axis The two extreme coordinate points of, and/or the extreme feature group is defined as two extreme coordinate points with the smallest ordinate and the largest ordinate on the Y-axis of the contour line of the obstacle;
M4、在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区。M4. Divide the work area at the extreme feature point of each obstacle to form several sub-work areas.
本发明较佳实施方式中,对于步骤M2,所述方法还包括:解析电子地图,获取电子地图中的每一狭窄通道,并在狭窄通道处进行分隔,以将工作区域分隔为狭窄通道区域和正常的工作区域。In a preferred embodiment of the present invention, for step M2, the method further includes: parsing the electronic map, acquiring each narrow passage in the electronic map, and separating the narrow passages to divide the working area into narrow passage areas and Normal working area.
本发明一具体实施方式中,步骤M2具体包括:遍历电子地图,获取电子地图上的拐点,在每一拐点处,以当前拐点为圆心,以预设长度为半径画圆,若所画的圆与当前拐点非相邻的边界线之间具有交点,则该拐点处于狭窄通道上,连接当前拐点以及其对应的交点,形成工作区域的区域分割线。In a specific embodiment of the present invention, step M2 specifically includes: traversing the electronic map, obtaining inflection points on the electronic map, at each inflection point, drawing a circle with the current inflection point as the center and the preset length as the radius, if the drawn circle If there is an intersection point between the boundary lines that are not adjacent to the current inflection point, the inflection point is on the narrow passage, and the current inflection point and its corresponding intersection point are connected to form the area dividing line of the working area.
所述预设长度为一长度阈值,其用于校验狭窄通道;例如:将工作区域中宽度小于某一长度数值的区域定义为狭窄区域,则该长度数值为长度阈值。需要说明的是,该步骤M3所 示的方法为一种几何画法的描述方式,实际应用中,该几何算法的目的在于区分工作区域中的狭窄通道,并对狭窄通道和工作区域进行分隔,本领域技术人员通过上述描述,可以在电子地图中区分狭窄通道,并确认区域分割线的位置。The preset length is a length threshold, which is used to check narrow passages; for example, if an area with a width less than a certain length value in the working area is defined as a narrow area, then the length value is the length threshold. It should be noted that the method shown in step M3 is a description method of geometric drawing. In practical applications, the purpose of the geometric algorithm is to distinguish narrow passages in the working area, and to separate the narrow passages from the working area. Based on the above description, those skilled in the art can distinguish narrow passages in an electronic map and confirm the location of the area dividing line.
结合图5所示,图示中line1所指向的线为外边界线,line2所指向的线为障碍物的轮廓线;P1、P2分别为狭窄通道的拐点,P3、P4分别为P1、P2画圆之后的交点,P1、P3连线以及P2、P4连线为区域分割线。As shown in Figure 5, the line pointed to by line1 in the figure is the outer boundary line, and the line pointed by line2 is the outline of the obstacle; P1 and P2 are the inflection points of the narrow passage respectively, and P3 and P4 are the circles of P1 and P2 respectively. The following intersections, the connection line P1, P3 and the connection line P2, P4 are the area dividing lines.
进一步的,在步骤M3中,对轮廓线进行解析,获得在X轴方向上获得的两个极值坐标点X1和X2,以及在Y轴上获得的两个极值坐标点Y1、Y2,根据上述极值特征组的定义,可确定极值坐标点X1和X2形成第一组极值特征点组,极值坐标点Y1、Y2形成第二组极值特征点组。Further, in step M3, the contour line is analyzed to obtain the two extreme coordinate points X1 and X2 obtained on the X axis, and the two extreme coordinate points Y1 and Y2 obtained on the Y axis, according to The above definition of the extreme value feature group can determine that the extreme value coordinate points X1 and X2 form the first group of extreme value feature point groups, and the extreme value coordinate points Y1 and Y2 form the second group of extreme value feature point groups.
对于步骤M4的实现方式具有多种,结合图6所示,本发明其中一种实现方式中,以获得的每一极值特征点为起始,采用Boustrophedon算法对工作区域进行分割;该实施方式中,在极值特征点已知的情况下,采用Boustrophedon算法对工作区域进行分割为已知的现有技术,在此不做进一步的赘述。There are many ways to implement step M4. As shown in FIG. 6, in one of the implementation ways of the present invention, each extreme value feature point obtained is a starting point, and the working area is segmented by the Boustrophedon algorithm; this embodiment In the case where the extreme feature points are known, the Boustrophedon algorithm is used to segment the work area into a known prior art, which will not be further described here.
该实施方式为采用Boustrophedon算法对工作区域进行分割后的电子地图;在该图示中,仅获得第一组极值特征点组,并以该第一组极值特征点组为起始,采用Boustrophedon算法对工作区域进行分割,经过分割后形成A、B、C、D、E、F共6个区域。This embodiment is an electronic map after the work area is divided by the Boustrophedon algorithm; in this illustration, only the first set of extreme feature points is obtained, and the first set of extreme feature points is used as the starting point. The Boustrophedon algorithm divides the work area, and after the division, 6 areas are formed, A, B, C, D, E, and F.
本发明另一种较佳实施方式中,结合图7所示,所述步骤M4具体包括:分别以获得的每一组极值特征点组中的每个极值坐标点为射线的端点做射线,每一组极值特征点组中的两个极值坐标点发射的射线在其延伸方向上不相交,且每一所述射线在当前极值特征点所在的轮廓线上仅具有一个交点;In another preferred embodiment of the present invention, as shown in FIG. 7, the step M4 specifically includes: each extreme value coordinate point in each group of extreme value feature points obtained separately is the end point of the ray and the ray , The rays emitted by the two extreme coordinate points in each group of extreme feature point groups do not intersect in their extension direction, and each of the rays has only one intersection on the contour line where the current extreme feature point is located;
获取每条射线沿其发射方向在工作区域上除所述极值坐标点之外的第一个交点;Acquiring the first intersection point of each ray along its emission direction on the working area except for the extreme coordinate point;
连接每一极值特征点与其发射射线在工作区域上形成的交点形成工作区域的区域分割线。The area dividing line of the working area is formed by connecting each extreme feature point and the intersection formed by the emitted ray on the working area.
需要说明的是,上述除所述极值坐标点之外的第一个交点通常处于障碍物上或边界线上。It should be noted that the above-mentioned first intersection point except for the extreme coordinate point is usually on the obstacle or boundary line.
本发明较佳实施方式中,每一组极值特征点组中的两个极值坐标点发射的射线方向相反,且每一所述射线在当前极值特征点所在的轮廓线上仅具有一个交点。In a preferred embodiment of the present invention, the two extreme coordinate points in each group of extreme feature point groups emit rays in opposite directions, and each of the rays has only one ray on the contour line where the current extreme feature point is located. Intersection.
结合图8所示,本发明一具体实施方式中,以仅获得第一组极值特征点组为例做具体介绍,该实施方式中,第一组极值特征点组中的极值坐标点发射的射线方向相反,且均沿X方向延伸,极值坐标点X1发射的射线与边界线的交点为X3,极值坐标点X2发射的射线与边 界线的交点为X4;相应的,按照上述流程对工作区域进行划分后,形成四条分割线,分别为对应于狭窄通道所形成的分割线line3和分割线line4,以及自极值坐标点X1形成的分割线line5和自极值坐标点X2形成的分割线line6;如此,将工作区域分割为4个子区域,分别为子区域A、B、C、D。With reference to Figure 8, in a specific embodiment of the present invention, only the first group of extreme value feature point groups are obtained as an example for specific introduction. In this embodiment, the extreme value coordinate points in the first group of extreme value feature point groups The emitted rays are in opposite directions and extend along the X direction. The intersection of the ray emitted by the extreme coordinate point X1 and the boundary line is X3, and the intersection of the ray emitted by the extreme coordinate point X2 and the boundary line is X4; accordingly, follow the above After the process divides the working area, four dividing lines are formed, corresponding to the dividing line line3 and dividing line line4 formed by the narrow passage, and the dividing line line5 formed from the extreme coordinate point X1 and the extreme coordinate point X2. The dividing line line6; in this way, the work area is divided into 4 sub-areas, namely sub-areas A, B, C, and D.
结合图9所示,本发明另一具体实施方式中,以仅获得第二组极值特征点组为例做具体介绍,该实施方式中,第二组极值特征点组中的极值坐标点发射的射线方向相反,且均沿Y方向延伸,极值坐标点Y1发射的射线与边界线的交点为Y3,极值坐标点Y2发射的射线与边界线的交点为Y4;相应的,按照上述流程对工作区域进行划分后,形成四条分割线,分别为对应于狭窄通道所形成的分割线line3和分割线line4,以及自极值坐标点Y1形成的分割线line5和自极值坐标点Y2形成的分割线line6;如此,将工作区域分割为4个子区域,分别为子区域A、B、C、D。With reference to Figure 9, in another specific embodiment of the present invention, only the second group of extreme value feature point groups are obtained as an example for specific introduction. In this embodiment, the extreme value coordinates in the second group of extreme value feature point groups The direction of the rays emitted by the points is opposite, and they all extend along the Y direction. The intersection point of the ray emitted by the extreme coordinate point Y1 and the boundary line is Y3, and the intersection point of the ray emitted by the extreme coordinate point Y2 and the boundary line is Y4; correspondingly, according to After the above process divides the working area, four dividing lines are formed, which are the dividing line line3 and dividing line line4 formed by the narrow passage, and the dividing line line5 formed from the extreme coordinate point Y1 and the self-extreme coordinate point Y2 The formed dividing line line6; in this way, the working area is divided into 4 sub-areas, namely sub-areas A, B, C, and D.
对于本发明的割草区域,通常为面积相对较大的区域,在通过上述方法对机器人的工作区域进行划分前后,若对于定位精度低而需要采用随机法遍历子区域时,可选择地对子区域面积太大的草坪需进行进一步划分;本发明较佳实施方式中,可以采用下述方法对机器人在工作区域做进一步的划分,以提升机器人的工作效率。For the mowing area of the present invention, it is usually a relatively large area. Before and after the robot's working area is divided by the above method, if the positioning accuracy is low and the random method is required to traverse the sub-area, the A lawn with a too large area needs to be further divided; in a preferred embodiment of the present invention, the following method may be used to further divide the working area of the robot to improve the working efficiency of the robot.
具体的,本发明较佳实施方式中,结合图10所示,所述步骤M4后,所述方法还包括:M5、获取每一子工作区的最大延伸宽度,将每一子工作区在X轴上最小横坐标和最大横坐标的差值绝对值定义为最大延伸宽度;Specifically, in a preferred embodiment of the present invention, as shown in FIG. 10, after the step M4, the method further includes: M5. Obtain the maximum extension width of each sub-work area, and place each sub-work area in X The absolute value of the difference between the minimum abscissa and the maximum abscissa on the axis is defined as the maximum extension width;
若当前子工作区的最大延伸宽度大于预设宽度阈值,则按照预设宽度阈值分割当前子工作区,使分割后的任一子区域的最大延伸宽度不大于预设宽度阈值。If the maximum extension width of the current sub-work area is greater than the preset width threshold, the current sub-work area is divided according to the preset width threshold so that the maximum extension width of any sub-area after division is not greater than the preset width threshold.
所述预设宽度阈值为一长度值,其大小可以根据需要具体设定,通常情况下,该预设宽度阈值为小于工作区域宽度的一个长度值。The preset width threshold value is a length value, and its size can be specifically set according to needs. Generally, the preset width threshold value is a length value smaller than the width of the working area.
本发明一具体实施中,所述步骤M5中若当前子工作区的最大延伸宽度大于预设宽度阈值,则所述方法具体包括:在需要分割的当前子区域的最大延伸宽度的形成方向上、自形成最大延伸宽度的起始点开始,每到达预设宽度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;In a specific implementation of the present invention, if the maximum extension width of the current sub-work area is greater than the preset width threshold in the step M5, the method specifically includes: in the direction of forming the maximum extension width of the current sub-region to be divided, Starting from the starting point of forming the maximum extension width, each time the preset width threshold is reached, a dividing line is formed in the forming direction perpendicular to the maximum extension width, and each dividing line has two intersection points with the working area;
或获取最大延伸宽度m 1,以及预设宽度阈值n 1,判断m 1≥k 1·n 1是否成立,k 1≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述等
Figure PCTCN2019121288-appb-000012
Figure PCTCN2019121288-appb-000013
其中,
Figure PCTCN2019121288-appb-000014
表示向上取整。
Or obtain the maximum extension width m 1 and the preset width threshold n 1 , determine whether m 1 ≥k 1 ·n 1 is established, k 1 ≥1.5, if so, every time the equal division threshold is reached, the formation perpendicular to the maximum extension width A dividing line in the direction; said etc.
Figure PCTCN2019121288-appb-000012
Figure PCTCN2019121288-appb-000013
among them,
Figure PCTCN2019121288-appb-000014
Indicates rounding up.
本发明较佳实施方式中,可以在工作区域的宽度和长度上分别进行划分,也可以二者选择其一进行划分。In the preferred embodiment of the present invention, the width and length of the work area can be divided separately, or one of the two can be selected for division.
对于工作区域长度的划分,所述步骤M5包括:获取每一子工作区的最大延伸长度,将每一子工作区在Y轴上最小纵坐标和最大纵坐标的差值绝对值定义为最大延伸长度;For the division of the length of the working area, the step M5 includes: obtaining the maximum extension length of each sub-working area, and defining the absolute value of the difference between the minimum ordinate and the maximum ordinate on the Y axis of each sub-working area as the maximum extension length;
若当前子工作区的最大延伸长度大于预设长度阈值;If the maximum extension length of the current sub-work area is greater than the preset length threshold;
则按照预设长度阈值分割当前子工作区,使分割后的任一子区域的最大延伸长度不大于预设长度阈值。Then the current sub-work area is divided according to the preset length threshold, so that the maximum extension length of any sub-area after the division is not greater than the preset length threshold.
本发明一具体实施中,所述步骤M5中若当前子工作区的最大延伸长度大于预设长度阈值,则所述方法具体包括:在需要分割的当前子区域的最大延伸长度的形成方向上、自形成最大延伸长度的起始点开始,每到达预设长度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;In a specific implementation of the present invention, if the maximum extension length of the current sub-work area is greater than the preset length threshold in the step M5, the method specifically includes: in the direction of forming the maximum extension length of the current sub-region to be divided, Starting from the starting point of forming the maximum extension length, each time the preset length threshold is reached, a dividing line is formed in the forming direction perpendicular to the maximum extension width, and each dividing line has two intersection points with the working area;
或获取最大延伸长度m 2,以及预设宽度阈值n 2,判断m 2≥k 2·n 2是否成立,k 2≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述等
Figure PCTCN2019121288-appb-000015
Figure PCTCN2019121288-appb-000016
Or obtain the maximum extension length m 2 and the preset width threshold n 2 , judge whether m 2 ≥k 2 ·n 2 is established, k 2 ≥1.5, if so, every time the equal division threshold is reached, the formation perpendicular to the maximum extension width A dividing line in the direction; said etc.
Figure PCTCN2019121288-appb-000015
Figure PCTCN2019121288-appb-000016
为了便于理解,结合图11所示,描述一具体示例供参考,在该示例中,外边界线line1围城工作区域,该工作区域中具有3个障碍物,分别为障碍物1,障碍物2和障碍物3;采用上述方法对工作区域进行初步划分后,该工作区域形成4个子工作区,分别为子工作区A、子工作区B、子工作区C以及子工作区D;经过测量获得4个子工作区的最大延伸宽度依次以lx A、lx B、lx C、lx D表示,另外,该工作区仅给出预设宽度阈值为a;经过判断可知:lx A、lx C、lx D的值均小于a,仅有lx B的值大于a,如此,仅对子工作区B在X轴方向上做进一步的划分。 For ease of understanding, a specific example is described in conjunction with Figure 11 for reference. In this example, the outer boundary line line1 besieged the work area. There are three obstacles in the work area, namely obstacle 1, obstacle 2, and obstacle. Object 3: After preliminary division of the work area using the above method, the work area forms 4 sub-work areas, namely sub-work area A, sub-work area B, sub-work area C and sub-work area D; 4 sub-work areas are obtained through measurement The maximum extension width of the work area is represented by lx A , lx B , lx C , and lx D in turn . In addition, the work area only gives the preset width threshold a; after judgment, it can be seen that: the values of lx A , lx C , and lx D Both are less than a, and only the value of lx B is greater than a. In this way, only the sub-work area B is further divided in the X-axis direction.
对于子工作区B,在X轴上形成其最大延伸宽度的最小坐标开始,按照从左向右的顺序每间隔宽度为a划分切割线,直到最右侧的子区域的宽度不大于a,以将子工作区B在X轴方向上形成由切割线分隔形成的若干子区域。For sub-work area B, start with the smallest coordinate forming its maximum extension width on the X axis, and divide the cutting line with a width of a interval in the order from left to right, until the width of the rightmost sub-area is not greater than a, to The sub-work area B is formed in the X-axis direction to form several sub-areas separated by cutting lines.
本发明较佳实施方式中,所述k 1和所述k 2均小于等于2,在此不再进一步的赘述。 In a preferred embodiment of the present invention, both the k 1 and the k 2 are less than or equal to 2, and will not be further described here.
进一步的,在将工作区域分割为各个子工作区后,可以逐个对每个子工区区进行弓字形或者螺旋形遍历,在此不做进一步的赘述。Further, after the work area is divided into sub-work areas, each sub-work area can be traversed in a bow shape or spiral shape one by one, which will not be repeated here.
本发明的路径规划方法,利用障碍物坐标已知电子地图,根据障碍物的位置对工作区域进行划分,使得障碍物位于某一或多个子区域的边界,而不会位于子区域中间;进一步的, 通过对工作区判定后进行划分,无大面积的子区域,有利于机器人随机遍历程序的运行,保证机器人遍历时的覆盖率,并有助于提高机器人的工作效率。The path planning method of the present invention uses the known electronic map of obstacle coordinates, and divides the working area according to the position of the obstacle, so that the obstacle is located at the boundary of one or more sub-regions, but not in the middle of the sub-region; further , By dividing the work area after determination, there is no large area of sub-areas, which is conducive to the operation of the robot's random traversal program, ensures the coverage of the robot during traversal, and helps to improve the work efficiency of the robot.
本发明一实施方式中,还提供一种机器人,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述所述路径规划方法的步骤。In an embodiment of the present invention, there is also provided a robot including a memory and a processor, the memory stores a computer program, and the processor implements the steps of the path planning method described above when the computer program is executed by the processor.
本发明一实施方式中,还提供一种可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述所述路径规划方法的步骤。In an embodiment of the present invention, there is also provided a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the path planning method described above are realized.
结合图12所示,提供一种障碍地图的创建系统,所述系统包括:控制模块100,创建模块200以及补充模块300。As shown in FIG. 12, a system for creating an obstacle map is provided. The system includes a control module 100, a creation module 200, and a supplementary module 300.
控制模块100用于驱动机器人行走及工作。The control module 100 is used to drive the robot to walk and work.
创建模块200用于在创建栅格地图的同一直角坐标系下,控制模块首次驱动行走机器人自初始定位点开始沿外边界线行走过程中,跟随机器人的行走路径在外边界线围成的工作区域上创建覆盖行走机器人工作区域的栅格地图,所述栅格地图包括多个已知坐标的栅格单元;并实时记录外边界线上栅格单元的特征标记,每一栅格单元具有唯一特征标记,所述特征标记包括障碍标识和边界标识;所述障碍标识用于表征栅格单元与障碍物的位置关系;所述边界标识用于表征栅格单元与边界线的位置关系。The creation module 200 is used to create the grid map in the same rectangular coordinate system, the control module for the first time drives the walking robot to walk along the outer boundary line from the initial positioning point, and follow the robot’s walking path to create on the working area enclosed by the outer boundary line A grid map covering the working area of the walking robot, the grid map including a plurality of grid units with known coordinates; and real-time recording of the feature marks of the grid units on the outer boundary line, each grid unit has a unique feature mark, so The feature mark includes an obstacle mark and a boundary mark; the obstacle mark is used to characterize the position relationship between the grid unit and the obstacle; the boundary mark is used to characterize the position relationship between the grid unit and the boundary line.
补充模块300用于在确认行走机器人沿外边界线回到初始定位点后,根据各个栅格单元与外边界线的位置关系,补充排除外边界线上的栅格单元后剩余的栅格单元所对应的特征标记。The supplementary module 300 is used for after confirming that the walking robot returns to the initial positioning point along the outer boundary line, according to the positional relationship between each grid cell and the outer boundary line, supplement the features corresponding to the remaining grid cells after excluding the grid cells on the outer boundary line mark.
处理输出模块400用于在栅格地图上对各个栅格单元的特征标记进行标识形成障碍物地图。The processing output module 400 is used to mark the feature marks of each grid unit on the grid map to form an obstacle map.
本发明较佳实施方式中,所述创建模块100还用于建立直角坐标系,并在同一直角坐标系下,创建栅格地图。In the preferred embodiment of the present invention, the creation module 100 is also used to establish a rectangular coordinate system, and create a grid map in the same rectangular coordinate system.
所述创建模块200还用于将每一栅格单元对应的特征标记以二进制数值进行表示,并按照障碍标识、边界标识顺序存储;所述控制模块100首次驱动行走机器人从初始定位点开始沿外边界线行走过程中,所述创建模块200还用于在行走机器人每经过一个栅格单元,将该栅格单元对应的特征标记修改为<1,1>;所述控制模块100首次确认行走机器人沿外边界线回到初始定位点后,所述补充模块200还用于将处于外边界线内的各个栅格单元所对应的特征标记修改为<0,0>。The creation module 200 is also used to represent the feature mark corresponding to each grid unit as a binary value, and store it in the order of obstacle identification and boundary identification; the control module 100 drives the walking robot for the first time from the initial positioning point along the outer edge During the boundary line walking process, the creation module 200 is also used to modify the feature mark corresponding to the grid unit to <1,1> every time the walking robot passes through a grid unit; the control module 100 first confirms that the walking robot moves along After the outer boundary line returns to the initial positioning point, the supplement module 200 is also used to modify the feature mark corresponding to each grid unit within the outer boundary line to <0,0>.
当行走机器人非首次进入到外边界线围成的工作区域时,所述补充模块300用于执行上述步骤S4,所述处理输出模块400用于执行上述步骤S5。When the walking robot enters the work area enclosed by the outer boundary line for the first time, the supplementary module 300 is used to perform the above step S4, and the processing output module 400 is used to perform the above step S5.
本发明一较佳实施方式,还提供一种包括如上所述的障碍地图的创建系统的割草机器 人。A preferred embodiment of the present invention also provides a lawnmower robot including the obstacle map creation system described above.
结合图13所示,本发明一实施方式提供一种路径规划系统,所述系统包括:获取模块500,解析模块600以及分割模块700。As shown in FIG. 13, an embodiment of the present invention provides a path planning system. The system includes: an acquisition module 500, an analysis module 600, and a segmentation module 700.
获取模块500用于获取机器人工作区域的电子地图,所述电子地图上映射障碍物坐标已知的障碍物地图。解析模块600用于解析电子地图,若确定工作区域内存在障碍物,则获取障碍物地图上障碍物的轮廓线;解析障碍物的轮廓线,在每一障碍物上获得至少一组极值特征组,所述极值特征组定义为障碍物的轮廓线在X轴上具有最小横坐标和具有最大横坐标的两个极值坐标点,和/或所述极值特征组定义为障碍物的轮廓线在Y轴上具有最小纵坐标和具有最大纵坐标的两个极值坐标点;分割模块700用于在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区。The acquiring module 500 is used to acquire an electronic map of the working area of the robot, and an obstacle map with known obstacle coordinates is mapped on the electronic map. The parsing module 600 is used to analyze the electronic map. If it is determined that there is an obstacle in the work area, obtain the contour line of the obstacle on the obstacle map; analyze the contour line of the obstacle, and obtain at least one set of extreme features on each obstacle The extreme feature group is defined as two extreme coordinate points with the smallest abscissa and the largest abscissa on the X-axis of the contour line of the obstacle, and/or the extreme feature group is defined as the obstacle The contour line has two extreme coordinate points with the smallest ordinate and the largest ordinate on the Y axis; the segmentation module 700 is used to segment the work area at the extreme feature point of each obstacle to form several sub-work Area.
本发明较佳实施方式中,所述解析模块600还用于:实现上述步骤M2和步骤M3;分割模块700用于实现步骤M4。In a preferred embodiment of the present invention, the parsing module 600 is also used to: implement the above steps M2 and M3; the segmentation module 700 is used to implement step M4.
本发明较佳实施方式中,结合图14所示,路径规划系统在图13所示基础上,增加一细分模块800,细分模块800用于实现步骤M5。In a preferred embodiment of the present invention, with reference to FIG. 14, the path planning system adds a subdivision module 800 on the basis of the one shown in FIG. 13, and the subdivision module 800 is used to implement step M5.
本发明一较佳实施方式,还提供一种包括如上所述的路径规划系统的割草机器人。A preferred embodiment of the present invention also provides a lawn mower robot including the path planning system described above.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和模块的具体工作过程,可以参考前述方法实施方式中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system and module described above can refer to the corresponding process in the foregoing method implementation, which will not be repeated here.
上述障碍地图的创建方法及系统以及路径规划方法均涉及地图中坐标的确定,本发明可实现方式中,可通过控制机器人在工作区域内行走,并根据机器人获得的坐标建立地图。现有技术中,通常采用低成本的基于角度测量方法的激光定位或定位精度相对较高超宽带UWB技术进行机器人的定位。The above-mentioned obstacle map creation method and system and path planning method all involve the determination of coordinates in the map. In the implementation manner of the present invention, the robot can be controlled to walk in the work area and the map can be established according to the coordinates obtained by the robot. In the prior art, low-cost laser positioning based on angle measurement methods or ultra-wideband UWB technology with relatively high positioning accuracy are usually used to locate robots.
然而当遮挡物较多,草坪环境较复杂,工作地面不平整,周围环境有高反射率物体时,激光定位的准确度均会受到影响;而超宽带UWB技术对于切割直径范围为分米级的小型割草机器人不能直接用重叠率的路径规划方式来完成区域全覆盖。However, when there are many obstructions, the lawn environment is more complicated, the working ground is uneven, and the surrounding environment has high reflectivity objects, the accuracy of laser positioning will be affected; while the ultra-wideband UWB technology is effective for cutting diameters of decimeter level. Small lawn mowers cannot directly use the path planning method of overlap ratio to complete the full coverage of the area.
如此,本发明一较佳实施方式中,提出一种割草机器人,具有该割草机器人的系统及该割草机器人的控制方法。Thus, in a preferred embodiment of the present invention, a lawn mower robot, a system with the lawn mower robot and a control method of the lawn mower robot are provided.
本发明一实施方式提供一种割草机器人系统,该系统包括割草机器人,所述割草机器人配置于一工作区域内作业,所述工作区域内设置若干已知坐标的反光标,以及设置若干已知坐标的UWB基站;所述反光标以及UWB基站的数量均为至少3个。An embodiment of the present invention provides a lawn mower robot system. The system includes a lawn mower robot configured to operate in a work area, and a number of anti-cursors with known coordinates are set in the work area, and a number of UWB base stations with known coordinates; the number of the reverse cursor and UWB base stations is at least 3.
如图15所示,本发明第一实施方式提供的割草机器人包括:UWB定位装置10,用于与已知坐标的UWB基站进行信息交互,以获得所述割草机器人相对于所述UWB基站的 UWB数据,并依据所述UWB数据获得所述割草机器人的UWB定位坐标;激光定位装置20,用于与已知坐标的反光标进行信息交互,以获得所述割草机器人对应于所述反光标的激光数据,并依据所述激光数据获得所述割草机器人的激光定位坐标;主控制器30,用于通信连接所述UWB定位装置10和所述激光定位装置20,以从所述UWB定位装置10接收所述割草机器人的UWB定位坐标和/或从所述激光定位装置20接收所述割草机器人的激光定位坐标,并且以所述UWB定位坐标、所述激光定位坐标、所述UWB定位坐标和所述激光定位坐标进行融合后的坐标其中之一作为所述割草机器人的当前位置坐标。As shown in FIG. 15, the lawn mower robot provided by the first embodiment of the present invention includes: a UWB positioning device 10, which is used to exchange information with a UWB base station with known coordinates to obtain the relative position of the lawn mower robot relative to the UWB base station. According to the UWB data, the UWB positioning coordinates of the lawn mower robot are obtained according to the UWB data; the laser positioning device 20 is used for information interaction with the anti-cursor of known coordinates to obtain the lawn mower robot corresponding to the Reflect the laser data of the cursor, and obtain the laser positioning coordinates of the lawn-mower robot according to the laser data; the main controller 30 is used to communicatively connect the UWB positioning device 10 and the laser positioning device 20 to obtain the laser positioning device from the UWB The positioning device 10 receives the UWB positioning coordinates of the lawnmower robot and/or receives the laser positioning coordinates of the lawnmower robot from the laser positioning device 20, and uses the UWB positioning coordinates, the laser positioning coordinates, and the One of the coordinates obtained by fusing the UWB positioning coordinates and the laser positioning coordinates is used as the current position coordinates of the lawn mower robot.
具体的,本发明第一实施方式中,所述UWB定位装置10包括:UWB标签11,用于所述UWB基站进行信息交互,以获得所述割草机器人相对于所述UWB基站的UWB数据;第一控制器13,其与所述UWB标签11电连接,用于从所述UWB标签11获取所述UWB数据,并依据所述UWB数据获得所述割草机器人的UWB定位坐标。Specifically, in the first embodiment of the present invention, the UWB positioning device 10 includes: a UWB tag 11, which is used for the UWB base station to exchange information to obtain UWB data of the lawn mower robot relative to the UWB base station; The first controller 13 is electrically connected to the UWB tag 11 and configured to obtain the UWB data from the UWB tag 11 and obtain the UWB positioning coordinates of the lawn mower robot according to the UWB data.
所述激光定位装置20包括:激光扫描头21,用于所述反光标进行信息交互,以获得所述割草机器人相对于所述反光标的激光数据;第二控制器23,其与所述激光扫描头21电连接,用于从所述激光扫描头21获取所述激光数据,并依据所述激光数据获得所述割草机器人的激光定位坐标。The laser positioning device 20 includes: a laser scanning head 21 for the anti-cursor to perform information interaction to obtain laser data of the lawn mower robot relative to the anti-cursor; a second controller 23, which interacts with the laser The scanning head 21 is electrically connected to obtain the laser data from the laser scanning head 21 and obtain the laser positioning coordinates of the lawn mower robot according to the laser data.
本发明具体实施方式中,UWB标签11与UWB基站进行信息交互过程中,获取当前割草机器人与工作区域内的UWB基站之间的距离信息;进一步的,第一控制器13采用三边测量定位算法解析UWB数据,以获得UWB定位坐标,并进一步的将获得的UWB定位坐标发送给主控制器30进行融合。In the specific embodiment of the present invention, in the process of information exchange between the UWB tag 11 and the UWB base station, the distance information between the current lawn mower robot and the UWB base station in the work area is obtained; further, the first controller 13 uses trilateration to locate The algorithm parses the UWB data to obtain UWB positioning coordinates, and further sends the obtained UWB positioning coordinates to the main controller 30 for fusion.
激光扫描头21与反光标进行信息交互过程中,获取当前割草机器人与工作区域内的反光标之间的角度信息;进一步的,第二控制器23采用三角测量定位算法解析激光数据,以获得激光定位坐标,并进一步的将获得的激光定位坐标发送给主控制器30进行融合。In the process of information interaction between the laser scanning head 21 and the anti-cursor, the angle information between the current mowing robot and the anti-cursor in the work area is obtained; further, the second controller 23 uses a triangulation positioning algorithm to analyze the laser data to obtain The laser positioning coordinates are further sent to the main controller 30 for fusion.
以上通过三边测量定位算法以及三角测量定位算法获得机器人坐标的方式均为现有技术,在此不做进一步的赘述。The above methods of obtaining robot coordinates through the trilateral measurement positioning algorithm and the triangulation positioning algorithm are all existing technologies, and will not be further described here.
本发明具体实施方式中,所述主控制器30与第一控制器13以及第二控制器23的通信连接方式具有多种,例如:通过串口、I2C、Wifi或蓝牙等。In the specific embodiment of the present invention, the main controller 30 and the first controller 13 and the second controller 23 have various communication connection modes, for example, via a serial port, I2C, Wifi, or Bluetooth.
当主控制器30接收UWB定位坐标及激光定位坐标过程中,接收到的UWB定位坐标或激光定位坐标其中之一可能会无效,如此,所述主控制器30具体用于:解析UWB定位坐标和激光定位坐标,判断UWB定位坐标和激光定位坐标其中之一是否无效,若是,将其中另一作为机器人的当前位置坐标。无效的状态例如:获得的其中一个坐标不在当前的环境区域范围内,当然,还有其他无效的场景,在此不做进一步的赘述。When the main controller 30 receives UWB positioning coordinates and laser positioning coordinates, one of the received UWB positioning coordinates or laser positioning coordinates may be invalid. In this way, the main controller 30 is specifically used to: resolve UWB positioning coordinates and laser positioning coordinates. Positioning coordinates, judge whether one of UWB positioning coordinates and laser positioning coordinates is invalid, if so, use the other as the current position coordinates of the robot. Invalid state, for example: one of the obtained coordinates is not within the current environment area. Of course, there are other invalid scenes, so I won’t go into further details here.
相应的,本发明一较佳实施方式中,当主控制器30确认仅接收到UWB定位坐标时,则将UWB定位坐标作为机器人的当前位置坐标。Correspondingly, in a preferred embodiment of the present invention, when the main controller 30 confirms that only UWB positioning coordinates are received, the UWB positioning coordinates are taken as the current position coordinates of the robot.
本发明一较佳实施方式中,当主控制器30确认仅接收到激光定位坐标时,则将激光定位坐标作为机器人的当前位置坐标。In a preferred embodiment of the present invention, when the main controller 30 confirms that only the laser positioning coordinates are received, the laser positioning coordinates are used as the current position coordinates of the robot.
本发明一较佳实施方式中,当主控制器30确认接收到UWB定位坐标和激光定位坐标时,直接将激光定位坐标作为机器人的当前位置坐标。In a preferred embodiment of the present invention, when the main controller 30 confirms that the UWB positioning coordinates and the laser positioning coordinates are received, it directly uses the laser positioning coordinates as the current position coordinates of the robot.
本发明一较佳实施方式中,当主控制器30未接收到UWB定位坐标和激光定位坐标任一时,发送指令至第二控制器,第二控制器指示激光扫描头重新扫描,并将重新扫描获得的激光定位坐标作为机器人的当前位置坐标。In a preferred embodiment of the present invention, when the main controller 30 does not receive either the UWB positioning coordinates or the laser positioning coordinates, it sends an instruction to the second controller, and the second controller instructs the laser scanning head to rescan, and rescan obtains The laser positioning coordinates of as the current position coordinates of the robot.
本发明再一较佳实施方式中,当主控制器30确认接收到UWB定位坐标和激光定位坐标时,采用加权平均法,卡尔曼滤波法,贝叶斯估计算法中的其中一种融合UWB定位坐标和激光定位坐标。In another preferred embodiment of the present invention, when the main controller 30 confirms that the UWB positioning coordinates and the laser positioning coordinates are received, it adopts one of the weighted average method, the Kalman filter method, and the Bayesian estimation algorithm to merge the UWB positioning coordinates. And laser positioning coordinates.
结合图16所示,本发明第二实施方式提供的割草机器人,所述第二实施方式与上述第一实施方式类似,其区别在于,未设置第一控制器和第二控制器,直接采用主控制器30通信连接并控制UWB标签11和激光扫描头21;相应的,由主控制器30实现第一控制器和第二控制器的功能。As shown in FIG. 16, the second embodiment of the present invention provides a lawn mower robot. The second embodiment is similar to the above-mentioned first embodiment. The difference is that the first controller and the second controller are not provided, and directly adopted The main controller 30 is communicatively connected to and controls the UWB tag 11 and the laser scanning head 21; accordingly, the main controller 30 implements the functions of the first controller and the second controller.
具体的,主控制器30分别与UWB标签和激光扫描头电连接,用于从所述UWB标签11获取所述UWB数据并依据所述UWB数据获得所述割草机器人的UWB定位坐标,和/或从所述激光扫描头21获取所述激光数据并依据所述激光数据获得所述割草机器人的激光定位坐标,所述主控器30还用于以所述UWB定位坐标、所述激光定位坐标、所述UWB定位坐标和所述激光定位坐标进行融合后的坐标其中之一作为所述割草机器人的当前位置坐标。Specifically, the main controller 30 is electrically connected to the UWB tag and the laser scanning head respectively, and is used to obtain the UWB data from the UWB tag 11 and obtain the UWB positioning coordinates of the lawn mower robot according to the UWB data, and/ Or obtain the laser data from the laser scanning head 21 and obtain the laser positioning coordinates of the lawn mower robot according to the laser data, and the main controller 30 is also used to use the UWB positioning coordinates and the laser positioning One of the coordinates, the UWB positioning coordinates, and the coordinates after the laser positioning coordinates are fused is used as the current position coordinates of the lawn mower robot.
主控制器30还用于实现上述第一控制器和第二控制器的其他功能,其具体实现过程参照上述实施方式,在此不做进一步的赘述。The main controller 30 is also used to implement other functions of the above-mentioned first controller and the second controller. For the specific implementation process, refer to the above-mentioned embodiment, which will not be further described here.
本发明一实施方式中,结合图17所示,还提供一种割草机器人的控制方法,所述方法包括:N1、实时通过UWB标签与UWB基站的信息交互获得所述割草机器人相对于所述UWB基站的UWB数据,和/或通过激光扫描头与反光标进行信息交互,以获得所述割草机器人相对于所述反光标的激光数据;N2,解析UWB数据获得所述割草机器人的UWB定位坐标,解析激光数据获得所述割草机器人的激光定位坐标;N3,以所述UWB定位坐标、所述激光定位坐标、所述UWB定位坐标和所述激光定位坐标进行融合后的坐标其中之一作为所述割草机器人的当前位置坐标。In an embodiment of the present invention, as shown in FIG. 17, a method for controlling a lawnmower robot is also provided. The method includes: N1, real-time information interaction between UWB tags and UWB base stations UWB data of the UWB base station, and/or information interaction with the anti-cursor through a laser scanning head, to obtain laser data of the lawn mower robot relative to the anti-cursor; N2, parse the UWB data to obtain the UWB of the lawn mower robot Positioning coordinates, analyzing laser data to obtain the laser positioning coordinates of the lawn mower robot; N3, using the UWB positioning coordinates, the laser positioning coordinates, the UWB positioning coordinates, and the laser positioning coordinates for one of the fusion coordinates One is the current position coordinate of the lawn mower robot.
本发明第一可实现方式中,步骤N3具体包括:解析UWB定位坐标和激光定位坐标,判断UWB定位坐标和激光定位坐标其中之一是否无效,若是,将其中另一作为机器人的当前位置坐标。。In the first implementation manner of the present invention, step N3 specifically includes: parsing UWB positioning coordinates and laser positioning coordinates, judging whether one of UWB positioning coordinates and laser positioning coordinates is invalid, and if so, using the other as the current position coordinates of the robot. .
本发明第二可实现方式中,步骤N3具体包括:当确认仅接收到UWB定位坐标时,则将UWB定位坐标作为机器人的当前位置坐标。In the second implementation manner of the present invention, step N3 specifically includes: when it is confirmed that only UWB positioning coordinates are received, the UWB positioning coordinates are used as the current position coordinates of the robot.
本发明第三可实现方式中,步骤N3具体包括:当确认仅接收到激光定位坐标时,则将激光定位坐标作为机器人的当前位置坐标。In the third implementable manner of the present invention, step N3 specifically includes: when it is confirmed that only the laser positioning coordinates are received, the laser positioning coordinates are used as the current position coordinates of the robot.
本发明第四可实现方式中,步骤N3具体包括:当未接收到UWB定位坐标和激光定位坐标任一时,指示重新扫描以重新获得激光定位坐标,将获得的激光定位坐标作为机器人的当前位置坐标。In the fourth implementable manner of the present invention, step N3 specifically includes: when neither UWB positioning coordinates nor laser positioning coordinates are received, instructing to rescan to retrieve the laser positioning coordinates, and using the obtained laser positioning coordinates as the current position coordinates of the robot .
本发明第五可实现方式中,步骤N3具体包括:当确认接收到UWB定位坐标和激光定位坐标时,采用加权平均法,卡尔曼滤波法,贝叶斯估计算法中的其中一种融合UWB定位坐标和激光定位坐标。In the fifth implementable manner of the present invention, step N3 specifically includes: when it is confirmed that the UWB positioning coordinates and the laser positioning coordinates are received, the weighted average method, the Kalman filter method, and the Bayesian estimation algorithm are used to merge UWB positioning Coordinates and laser positioning coordinates.
综上所述,本发明的割草机器人,具有该割草机器人的系统及该割草机器人的控制方法,融合UWB定位和激光定位的优点,提升机器人的定位精度。In summary, the lawn mower robot of the present invention has the lawn mower robot system and the lawn mower robot control method, combines the advantages of UWB positioning and laser positioning, and improves the positioning accuracy of the robot.
在本申请所提供的几个实施方式中,应该理解到,所揭露的模块,系统和方法,均可以通过其它的方式实现。以上所描述的系统实施方式仅仅是示意性的,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the several implementation manners provided in this application, it should be understood that the disclosed modules, systems, and methods can all be implemented in other ways. The system implementation described above is only illustrative. The division of the modules is only a logical function division. In actual implementation, there may be other divisions. For example, multiple modules or components can be combined or integrated into another. A system or some features can be ignored or not implemented.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上,可以根据实际的需要选择其中的部分或者全部模块来实现本实施方式方案的目的。The modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed to multiple network modules, Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of this embodiment.
另外,在本申请各个实施方式中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以2个或2个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, the functional modules in the various embodiments of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, or in the form of hardware plus software functional modules.
最后应说明的是:以上实施方式仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施方式对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施方式所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施方式技术方案的精神和范围。Finally, it should be noted that the above implementations are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing implementations, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (15)

  1. 一种路径规划方法,其特征在于,所述方法包括:A path planning method, characterized in that the method includes:
    获取机器人工作区域的电子地图,所述电子地图上映射障碍物坐标已知的障碍物地图;Acquiring an electronic map of the working area of the robot, and mapping an obstacle map with known obstacle coordinates on the electronic map;
    解析电子地图,若确定工作区域内存在障碍物,则获取障碍物地图上障碍物的轮廓线;Analyze the electronic map, and if it is determined that there is an obstacle in the work area, obtain the outline of the obstacle on the obstacle map;
    解析障碍物的轮廓线,在每一障碍物上获得至少一组极值特征组,所述极值特征组定义为障碍物的轮廓线在X轴上具有最小横坐标和具有最大横坐标的两个极值坐标点,和/或所述极值特征组定义为障碍物的轮廓线在Y轴上具有最小纵坐标和具有最大纵坐标的两个极值坐标点;Analyze the contour lines of obstacles, and obtain at least one set of extreme value feature groups on each obstacle. The extreme value feature groups are defined as the contour lines of the obstacle with the smallest abscissa and the largest abscissa on the X axis. Two extreme coordinate points, and/or the extreme feature group is defined as two extreme coordinate points with the smallest ordinate and the largest ordinate on the Y-axis of the contour line of the obstacle;
    在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区。The work area is divided at the extreme feature point of each obstacle to form several sub-work areas.
  2. 根据权利要求1所述的路径规划方法,其特征在于,所述方法还包括:遍历电子地图,获取电子地图上的拐点,在每一拐点处,以当前拐点为圆心,以预设长度为半径画圆,若所画的圆与当前拐点非相邻的边界线之间具有交点,则该拐点处于狭窄通道上,连接当前拐点以及其对应的交点,形成工作区域的区域分割线。The path planning method according to claim 1, wherein the method further comprises: traversing the electronic map, obtaining inflection points on the electronic map, and at each inflection point, taking the current inflection point as the center of the circle and the preset length as the radius Draw a circle. If there is an intersection between the drawn circle and the non-adjacent boundary line of the current inflection point, the inflection point is on the narrow passage, and the current inflection point and its corresponding intersection point are connected to form the area dividing line of the working area.
  3. 根据权利要求1所述的路径规划方法,其特征在于,“在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区”具体包括:The path planning method according to claim 1, wherein "segmenting the work area at the extreme feature point of each obstacle to form several sub-work areas" specifically includes:
    分别以获得的每一组极值特征点组中的每个极值坐标点为射线的端点做射线,每一组极值特征点组中的两个极值坐标点发射的射线在其延伸方向上不相交,且每一所述射线在当前极值特征点所在的轮廓线上仅具有一个交点;Each extreme value coordinate point in each group of extreme value feature point groups obtained separately is the end point of the ray as a ray, and the ray emitted by the two extreme value coordinate points in each group of extreme value feature point group is in its extension direction The upper part does not intersect, and each of the rays has only one intersection on the contour line where the current extreme feature point is located;
    获取每条射线沿其发射方向在工作区域上除所述极值坐标点之外的第一个交点;Acquiring the first intersection point of each ray along its emission direction on the working area except for the extreme coordinate point;
    连接每一极值特征点与其发射射线在工作区域上形成的交点形成工作区域的区域分割线。The area dividing line of the working area is formed by connecting each extreme feature point and the intersection formed by the emitted ray on the working area.
  4. 根据权利要求3所述的路径规划方法,其特征在于,所述方法还包括:The path planning method according to claim 3, wherein the method further comprises:
    配置每一组极值特征点组中的两个极值坐标点发射的射线方向相反,且每一所述射线在当前极值特征点所在的轮廓线上仅具有一个交点。The two extreme coordinate points in each group of extreme feature point groups are configured to emit rays in opposite directions, and each of the rays has only one intersection on the contour line where the current extreme feature point is located.
  5. 根据权利要求1所述的路径规划方法,其特征在于,“在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区”后,所述方法还包括:The path planning method according to claim 1, wherein after "dividing the working area at the extreme feature point of each obstacle to form several sub-working areas", the method further comprises:
    获取每一子工作区的最大延伸宽度,将每一子工作区在X轴上最小横坐标和最大横坐标的差值绝对值定义为最大延伸宽度;Get the maximum extension width of each sub-work area, and define the absolute value of the difference between the minimum abscissa and the maximum abscissa of each sub-work area on the X axis as the maximum extension width;
    若当前子工作区的最大延伸宽度大于预设宽度阈值;If the maximum extension width of the current sub-work area is greater than the preset width threshold;
    则按照预设宽度阈值分割当前子工作区,使分割后的任一子区域的最大延伸宽度不大于 预设宽度阈值;Dividing the current sub-work area according to the preset width threshold, so that the maximum extension width of any sub-area after the division is not greater than the preset width threshold;
    “按照预设宽度阈值分割当前子工作区,使分割后的任一子区域的最大延伸宽度不大于预设宽度阈值”具体包括:"Split the current sub-work area according to the preset width threshold so that the maximum extension width of any sub-area after the division is not greater than the preset width threshold" specifically includes:
    在需要分割的当前子区域的最大延伸宽度的形成方向上、自形成最大延伸宽度的起始点开始,每到达预设宽度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;In the direction of forming the maximum extension width of the current sub-region to be divided, starting from the starting point of forming the maximum extension width, each time the preset width threshold is reached, a dividing line is formed in the direction perpendicular to the maximum extension width. The dividing line and the working area have two intersection points;
    或获取最大延伸宽度m 1,以及预设宽度阈值n 1,判断m 1≥k 1·n 1是否成立,k 1≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述
    Figure PCTCN2019121288-appb-100001
    Figure PCTCN2019121288-appb-100002
    其中,
    Figure PCTCN2019121288-appb-100003
    表示向上取整。
    Or obtain the maximum extension width m 1 and the preset width threshold n 1 , determine whether m 1 ≥k 1 ·n 1 is established, k 1 ≥1.5, if so, every time the equal division threshold is reached, the formation perpendicular to the maximum extension width Forming a dividing line in the direction;
    Figure PCTCN2019121288-appb-100001
    Figure PCTCN2019121288-appb-100002
    among them,
    Figure PCTCN2019121288-appb-100003
    Indicates rounding up.
  6. 根据权利要求1所述的路径规划方法,其特征在于,“在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区”后,所述方法还包括:The path planning method according to claim 1, wherein after "dividing the working area at the extreme feature point of each obstacle to form several sub-working areas", the method further comprises:
    获取每一子工作区的最大延伸长度,将每一子工作区在Y轴上最小纵坐标和最大纵坐标的差值绝对值定义为最大延伸长度;Obtain the maximum extension length of each sub-work area, and define the absolute value of the difference between the minimum ordinate and the maximum ordinate of each sub-work area on the Y axis as the maximum extension length;
    若当前子工作区的最大延伸长度大于预设长度阈值;If the maximum extension length of the current sub-work area is greater than the preset length threshold;
    则按照预设长度阈值分割当前子工作区,使分割后的任一子区域的最大延伸长度不大于预设长度阈值;The current sub-work area is divided according to the preset length threshold, so that the maximum extension length of any sub-area after division is not greater than the preset length threshold;
    “按照预设长度阈值分割当前子工作区,使分割后的任一子区域的最大延伸长度不大于预设长度阈值”具体包括:"Splitting the current sub-work area according to the preset length threshold so that the maximum extension length of any sub-area after segmentation is not greater than the preset length threshold" specifically includes:
    在需要分割的当前子区域的最大延伸长度的形成方向上、自形成最大延伸长度的起始点开始,每到达预设长度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;In the direction of forming the maximum extension length of the current subregion to be divided, starting from the starting point of forming the maximum extension length, each time the preset length threshold is reached, a dividing line is formed in the direction perpendicular to the maximum extension width. The dividing line and the working area have two intersection points;
    或获取最大延伸长度m 2,以及预设宽度阈值n 2,判断m 2≥k 2·n 2是否成立,k 2≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述
    Figure PCTCN2019121288-appb-100004
    Figure PCTCN2019121288-appb-100005
    Or obtain the maximum extension length m 2 and the preset width threshold n 2 , judge whether m 2 ≥k 2 ·n 2 is established, k 2 ≥1.5, if so, every time the equal division threshold is reached, the formation perpendicular to the maximum extension width Forming a dividing line in the direction;
    Figure PCTCN2019121288-appb-100004
    Figure PCTCN2019121288-appb-100005
  7. 一种机器人,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1-6中任一项所述路径规划方法的步骤。A robot comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the path planning method according to any one of claims 1 to 6 when the computer program is executed.
  8. 一种可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-6中任一项所述路径规划方法的步骤。A readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, the steps of the path planning method according to any one of claims 1 to 6 are realized.
  9. 一种路径规划系统,其特征在于,所述系统包括:A path planning system, characterized in that the system includes:
    获取模块,用于获取机器人工作区域的电子地图,所述电子地图上映射障碍物坐标已知的障碍物地图;An acquisition module, configured to acquire an electronic map of the robot working area, and an obstacle map with known obstacle coordinates is mapped on the electronic map;
    解析模块,用于解析电子地图,若确定工作区域内存在障碍物,则获取障碍物地图上障碍物的轮廓线;The analysis module is used to analyze the electronic map. If it is determined that there is an obstacle in the work area, obtain the outline of the obstacle on the obstacle map;
    解析障碍物的轮廓线,在每一障碍物上获得至少一组极值特征组,所述极值特征组定义为障碍物的轮廓线在X轴上具有最小横坐标和具有最大横坐标的两个极值坐标点,和/或所述极值特征组定义为障碍物的轮廓线在Y轴上具有最小纵坐标和具有最大纵坐标的两个极值坐标点;Analyze the contour lines of obstacles, and obtain at least one set of extreme value feature groups on each obstacle. The extreme value feature groups are defined as the contour lines of the obstacle with the smallest abscissa and the largest abscissa on the X axis. Two extreme coordinate points, and/or the extreme feature group is defined as two extreme coordinate points with the smallest ordinate and the largest ordinate on the Y-axis of the contour line of the obstacle;
    分割模块,用于在每一障碍物的极值特征点处对工作区域进行分割,以形成若干子工作区。The segmentation module is used to segment the work area at the extreme feature point of each obstacle to form several sub-work areas.
  10. 根据权利要求9所述的路径规划系统,其特征在于,所述解析模块还用于:遍历电子地图,获取电子地图上的拐点,在每一拐点处,以当前拐点为圆心,以预设长度为半径画圆,若所画的圆与当前拐点非相邻的边界线之间具有交点,则该拐点处于狭窄通道上,连接当前拐点以及其对应的交点,形成工作区域的区域分割线。The path planning system according to claim 9, wherein the analysis module is further used to: traverse the electronic map to obtain inflection points on the electronic map, and at each inflection point, take the current inflection point as the center of the circle and use a preset length Draw a circle with a radius. If there is an intersection between the drawn circle and the non-adjacent boundary line of the current inflection point, the inflection point is on the narrow passage, connecting the current inflection point and its corresponding intersection to form the area dividing line of the working area.
  11. 根据权利要求10所述的路径规划系统,其特征在于,所述分割模块具体用于:分别以获得的每一组极值特征点组中的每个极值坐标点为射线的端点做射线,每一组极值特征点组中的两个极值坐标点发射的射线在其延伸方向上不相交,且每一所述射线在当前极值特征点所在的轮廓线上仅具有一个交点;The path planning system according to claim 10, wherein the segmentation module is specifically configured to: each extreme value coordinate point in each group of extreme value feature point groups obtained separately is the end point of the ray as a ray, The rays emitted by the two extreme coordinate points in each group of extreme feature point groups do not intersect in their extension direction, and each of the rays has only one intersection on the contour line where the current extreme feature point is located;
    获取每条射线沿其发射方向在工作区域上除所述极值坐标点之外的第一个交点;Acquiring the first intersection point of each ray along its emission direction on the working area except for the extreme coordinate point;
    连接每一极值特征点与其发射射线在工作区域上形成的交点形成工作区域的区域分割线。The area dividing line of the working area is formed by connecting each extreme feature point and the intersection formed by the emitted ray on the working area.
  12. 根据权利要求11所述的路径规划系统,其特征在于,所述分割模块具体用于:The path planning system according to claim 11, wherein the segmentation module is specifically configured to:
    配置每一组极值特征点组中的两个极值坐标点发射的射线方向相反,且每一所述射线在当前极值特征点所在的轮廓线上仅具有一个交点。The two extreme coordinate points in each group of extreme feature point groups are configured to emit rays in opposite directions, and each of the rays has only one intersection on the contour line where the current extreme feature point is located.
  13. 根据权利要求9所述的路径规划系统,其特征在于,所述系统还包括:细分模块,用于获取每一子工作区的最大延伸宽度,将每一子工作区在X轴上最小横坐标和最大横坐标的差值绝对值定义为最大延伸宽度;The path planning system according to claim 9, characterized in that, the system further comprises: a subdivision module for obtaining the maximum extension width of each sub-work area, and the smallest width of each sub-work area on the X axis The absolute value of the difference between the coordinates and the maximum abscissa is defined as the maximum extension width;
    若当前子工作区的最大延伸宽度大于预设宽度阈值;If the maximum extension width of the current sub-work area is greater than the preset width threshold;
    则按照预设宽度阈值分割当前子工作区,使分割后的任一子区域的最大延伸宽度不大于预设宽度阈值;Dividing the current sub-work area according to the preset width threshold, so that the maximum extension width of any sub-area after the division is not greater than the preset width threshold;
    所述细分模块具体用于:在需要分割的当前子区域的最大延伸宽度的形成方向上、自形成最大延伸宽度的起始点开始,每到达预设宽度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;The subdivision module is specifically configured to: in the direction of forming the maximum extension width of the current sub-region that needs to be divided, starting from the starting point of forming the maximum extension width, each time a preset width threshold is reached, at a position perpendicular to the maximum extension width A dividing line is formed in the forming direction, and each dividing line has two intersection points with the working area;
    或获取最大延伸宽度m 1,以及预设宽度阈值n 1,判断m 1≥k 1·n 1是否成立,k 1≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述
    Figure PCTCN2019121288-appb-100006
    Figure PCTCN2019121288-appb-100007
    其中,
    Figure PCTCN2019121288-appb-100008
    表示向上取整。
    Or obtain the maximum extension width m 1 and the preset width threshold n 1 , determine whether m 1 ≥k 1 ·n 1 is established, k 1 ≥1.5, if so, every time the equal division threshold is reached, the formation perpendicular to the maximum extension width Forming a dividing line in the direction;
    Figure PCTCN2019121288-appb-100006
    Figure PCTCN2019121288-appb-100007
    among them,
    Figure PCTCN2019121288-appb-100008
    Indicates rounding up.
  14. 根据权利要求9所述的路径规划系统,其特征在于,所述系统还包括:细分模块,用于获取每一子工作区的最大延伸长度,将每一子工作区在Y轴上最小纵坐标和最大纵坐标的差值绝对值定义为最大延伸长度;The path planning system according to claim 9, characterized in that the system further comprises: a subdivision module for obtaining the maximum extension length of each sub-work area, and the smallest vertical length of each sub-work area on the Y axis The absolute value of the difference between the coordinate and the maximum ordinate is defined as the maximum extension length;
    若当前子工作区的最大延伸长度大于预设长度阈值;If the maximum extension length of the current sub-work area is greater than the preset length threshold;
    则按照预设长度阈值分割当前子工作区,使分割后的任一子区域的最大延伸长度不大于预设长度阈值;The current sub-work area is divided according to the preset length threshold, so that the maximum extension length of any sub-area after division is not greater than the preset length threshold;
    所述细分模块具体用于:The subdivision module is specifically used for:
    在需要分割的当前子区域的最大延伸长度的形成方向上、自形成最大延伸长度的起始点开始,每到达预设长度阈值时,在垂直于最大延伸宽度的形成方向上形成分割线,每一分割线与工作区域具有两个交点;In the direction of forming the maximum extension length of the current sub-region to be divided, starting from the starting point of forming the maximum extension length, each time the preset length threshold is reached, a dividing line is formed in the direction perpendicular to the maximum extension width. The dividing line and the working area have two intersection points;
    或获取最大延伸长度m 2,以及预设宽度阈值n 2,判断m 2≥k 2·n 2是否成立,k 2≥1.5,若是,每到达等分阈值时,在垂直于最大延伸宽度的形成方向上形成分割线;所述
    Figure PCTCN2019121288-appb-100009
    Figure PCTCN2019121288-appb-100010
    Or obtain the maximum extension length m 2 and the preset width threshold n 2 , judge whether m 2 ≥k 2 ·n 2 is established, k 2 ≥1.5, if so, every time the equal division threshold is reached, the formation perpendicular to the maximum extension width Forming a dividing line in the direction;
    Figure PCTCN2019121288-appb-100009
    Figure PCTCN2019121288-appb-100010
  15. 一种包括权利要求9-14任一项所述的路径规划系统的机器人。A robot comprising the path planning system according to any one of claims 9-14.
PCT/CN2019/121288 2019-08-16 2019-11-27 Path planning method and system, robot and readable storage medium WO2021031441A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201910759661.5A CN112445212A (en) 2019-08-16 2019-08-16 Path planning method, system, robot and readable storage medium
CN201910760602.X 2019-08-16
CN201910760602.XA CN112393737B (en) 2019-08-16 2019-08-16 Obstacle map creation method, obstacle map creation system, robot and readable storage medium
CN201910759661.5 2019-08-16

Publications (1)

Publication Number Publication Date
WO2021031441A1 true WO2021031441A1 (en) 2021-02-25

Family

ID=74660170

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2019/121303 WO2021031442A1 (en) 2019-08-16 2019-11-27 Obstacle map creation method and system, robot, and readable storage medium
PCT/CN2019/121288 WO2021031441A1 (en) 2019-08-16 2019-11-27 Path planning method and system, robot and readable storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/121303 WO2021031442A1 (en) 2019-08-16 2019-11-27 Obstacle map creation method and system, robot, and readable storage medium

Country Status (1)

Country Link
WO (2) WO2021031442A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113387098A (en) * 2021-06-30 2021-09-14 深圳市海柔创新科技有限公司 Cargo conveying method, cargo conveying device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120221237A1 (en) * 2011-02-25 2012-08-30 Dongguk University Industry-Academic Cooperation Foundation Apparatus and method of cell-based path planning for mobile body
CN103528585A (en) * 2013-09-26 2014-01-22 中北大学 Path planning method of passable area divided at unequal distance
CN107505939A (en) * 2017-05-13 2017-12-22 大连理工大学 A kind of complete coverage path planning method of mobile robot
CN107976998A (en) * 2017-11-13 2018-05-01 河海大学常州校区 A kind of grass-removing robot map building and path planning system and method
CN108335302A (en) * 2018-01-26 2018-07-27 上海思岚科技有限公司 A kind of region segmentation method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101427186B1 (en) * 2013-06-12 2014-08-07 건국대학교 산학협력단 Device for searching area and mapping for path of intelligent robot in unknown environments
CN103472823B (en) * 2013-08-20 2015-11-18 苏州两江科技有限公司 A kind of grating map creating method of intelligent robot
CN104035444B (en) * 2014-06-27 2016-08-24 东南大学 Robot map structuring storage method
CN105320140B (en) * 2015-12-01 2018-09-18 浙江宇视科技有限公司 A kind of sweeping robot and its clean paths planning method
CN107065872B (en) * 2017-04-11 2020-06-05 珠海市一微半导体有限公司 Grid map creation method of intelligent robot

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120221237A1 (en) * 2011-02-25 2012-08-30 Dongguk University Industry-Academic Cooperation Foundation Apparatus and method of cell-based path planning for mobile body
CN103528585A (en) * 2013-09-26 2014-01-22 中北大学 Path planning method of passable area divided at unequal distance
CN107505939A (en) * 2017-05-13 2017-12-22 大连理工大学 A kind of complete coverage path planning method of mobile robot
CN107976998A (en) * 2017-11-13 2018-05-01 河海大学常州校区 A kind of grass-removing robot map building and path planning system and method
CN108335302A (en) * 2018-01-26 2018-07-27 上海思岚科技有限公司 A kind of region segmentation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113387098A (en) * 2021-06-30 2021-09-14 深圳市海柔创新科技有限公司 Cargo conveying method, cargo conveying device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2021031442A1 (en) 2021-02-25

Similar Documents

Publication Publication Date Title
CN112393737B (en) Obstacle map creation method, obstacle map creation system, robot and readable storage medium
CN112445212A (en) Path planning method, system, robot and readable storage medium
CN111830970B (en) Regional cleaning planning method for robot walking along edge, chip and robot
EP3985469A1 (en) Cleaning subarea planning method for robot walking along edge, chip and robot
CN113128747B (en) Intelligent mowing system and autonomous image building method thereof
CN113115621B (en) Intelligent mowing system and autonomous image building method thereof
CN113741438A (en) Path planning method and device, storage medium, chip and robot
CN110488809A (en) A kind of indoor mobile robot independently builds drawing method and device
WO2021031441A1 (en) Path planning method and system, robot and readable storage medium
CN111857156A (en) Robot region dividing method based on laser, chip and robot
CN114019956A (en) Method and system for determining region boundary, autonomous traveling equipment and mowing robot
US20240085919A1 (en) Traversal Method and System, Robot, and Readable Storage Medium
CN112799416B (en) Route generation method, equipment and system, unmanned operation system and storage medium
CN112212863A (en) Method and system for creating grid map
CN112214010B (en) Updating method and updating system for grid map parameters
CN116430838A (en) Self-mobile device and control method thereof
CN211558013U (en) Mowing robot and mowing robot system with same
CN112214560A (en) Updating method and updating system of grid map
CN112214040B (en) Configuration method and configuration system for optimal elevation angle in grid unit
WO2023134659A1 (en) Map processing method, self-moving gardening device, and automatic mower
US20230206647A1 (en) Automatic Robotic Lawn Mowing Boundary Detection Using 3D Semantic Segmentation
CN112212824B (en) Configuration method and configuration system of grid map parameters
US20230320263A1 (en) Method for determining information, remote terminal, and mower
EP4246275A1 (en) Method for controlling autonomous mobile device, autonomous mobile device, and computer storage medium
WO2022223023A1 (en) Self-moving device, moving trajectory adjusting method, and computer-readable storage medium

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: 19942613

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19942613

Country of ref document: EP

Kind code of ref document: A1