Path planning method and system for lawn mower
11493923 · 2022-11-08
Assignee
Inventors
- Wei Zhong (Chongqing, CN)
- Zhe Niu (Chongqing, CN)
- Bo Ding (Chongqing, CN)
- Xun Xu (Chongqing, CN)
- Yuanyuan Chen (Chongqing, CN)
- Qian Xu (Chongqing, CN)
- Lei Zhou (Chongqing, CN)
- Yi Zhou (Chongqing, CN)
Cpc classification
G05D1/0088
PHYSICS
International classification
G05D1/00
PHYSICS
Abstract
The present disclosure relates to the field of intelligent lawn mowers and logic control technologies thereof, and discloses a path planning method for an intelligent lawn mower. The path planning method includes: starting a touch panel of the intelligent lawn mower; entering a path planning setting interface, which displays a schematic diagram of a region to be mowed, a path angle indicating image and a path angle setting image; receiving a touch input of a user with respect to the path angle setting image to set a path angle; adjusting, based on the set path angle, the path angle indicating image for display; and re-planning a path of the intelligent lawn mower based on the set path angle and a preset algorithm. The present disclosure further provides a path planning system for the intelligent lawn mower.
Claims
1. A path planning method for an intelligent lawn mower, the method comprising: starting a touch panel of the intelligent lawn mower; entering a path planning setting interface, which displays a schematic diagram of a region to be mowed, a path angle indicating image and a path angle setting image; receiving a touch input of a user with respect to the path angle setting image to set a path angle; adjusting, based on the set path angle, the path angle indicating image for display; and planning a path of the intelligent lawn mower based on the set path angle and a preset algorithm.
2. The path planning method for the intelligent lawn mower according to claim 1, wherein the path angle indicating image and the path angle setting image are the same.
3. The path planning method for the intelligent lawn mower according to claim 1, further comprising: displaying a mowing path schematic diagram on the touch panel based on the planned path.
4. The path planning method for the intelligent lawn mower according to claim 1, wherein the touch panel and the intelligent lawn mower are in detachable connection.
5. The path planning method for the intelligent lawn mower according to claim 1, wherein the schematic diagram of the region to be mowed is constituted by a plurality of grids of which the sizes are half to twice of the size of the lawn mower.
6. The path planning method for the intelligent lawn mower according to claim 5, wherein the schematic diagram of the region to be mowed comprises region boundary information and obstacle boundary information.
7. A path planning system for an intelligent lawn mower, the system comprising: a display module, configured to display a path planning setting interface, a schematic diagram of a region to be mowed, a path angle indicating image and a path angle setting image; an input module, configured to receive a gesture input of a user with respect to the path angle setting image by a touch panel of the intelligent lawn mower to set a path angle; and a controller, configured to adjust, based on the path angle set by the input module, the path angle indicating image for display, and to plan a path of the intelligent lawn mower based on a preset algorithm and the path angle.
8. The path planning system for the intelligent lawn mower according to claim 7, wherein the path angle indicating image and the path angle setting image are the same.
9. The path planning system for the intelligent lawn mower according to claim 7, wherein the display module is further configured to display a mowing path schematic diagram based on the planned path.
10. The path planning system for the intelligent lawn mower according to claim 7, wherein the touch panel and the intelligent lawn mower are in detachable connection.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION
(11) Specific embodiments of a path planning method for a lawn mower of the present disclosure will be described in detail below with reference to the drawings.
(12) Refer to
(13) In step a, a touch panel of the intelligent lawn mower is started.
(14) In step b, a path planning setting interface is entered, and displays a schematic diagram of a region to be mowed, a path angle indicating image and a path angle setting image.
(15) In step c, a touch input of a user with respect to the path angle setting image to set a path angle is received.
(16) In step d, based on the set path angle, the path angle indicating image is adjusted for display.
(17) In step e, a path of the intelligent lawn mower is re-planned based on the set path angle and a preset algorithm.
(18) The path angle indicating image and the path angle setting image are the same. Meanwhile, re-planning the path of the intelligent lawn mower based on the set path angle and the preset algorithm particularly includes: re-planning the path of the intelligent lawn mower based on the set path angle and the preset algorithm, and displaying a mowing path schematic diagram on the touch panel. The schematic diagram of the region to be mowed is constituted by a plurality of grids of which the sizes are half to twice of the size of the lawn mower. The schematic diagram of the region to be mowed includes region boundary information and obstacle boundary information.
(19) Continuously refer to
(20) In the present embodiment, the path angle indicating image and the path angle setting image are the same. The display module is further configured to display a mowing path schematic diagram. The touch panel and the intelligent lawn mower are in detachable connection.
(21) Refer to
(22) In step S1, boundary information of a working region and boundary information of an obstacle are acquired to obtain accurate boundary information.
(23) In step S2, a grid map is built.
(24) In step S3, an angle in an intended direction is selected to generate a self-defined mowing task.
(25) In particular, further referring to
(26) In step S10, boundary information of a working region and boundary information of an obstacle are loaded.
(27) In step S20, a mowing region is divided into a plurality of sub-regions and the sub-regions are numbered.
(28) In step S30, all the sub-regions are ranked in a coverage order.
(29) In step S40, one unprocessed sub-region is sorted out sequentially in the order of the sub-regions.
(30) In step S50, internal paths of the sub-regions are planned till processing of all the sub-regions is finished.
(31) In step S60, sizes of grids are determined according to the lawn mower to build map parameters.
(32) In step S70, a path planning result is output.
(33) Further, referring to
(34) In step S100, boundary information of a working region and boundary information of an obstacle are loaded.
(35) In step S200, filtering is performed on all data, and fitting is performed on data fields to obtain relatively-ideal smoothed data.
(36) In step S300, an optimal direction is acquired. In particular, a current data coordinate needs to be transformed into an internally processed grid coordinate when data of one closed curve are acquired. At this time, it is necessary to find one direction that may represent the whole closed curve. An optimal representation direction of the data of the entire curve can be acquired by putting in the data with a mathematical matrix library, forming a square or a rectangle by maximum and minimum points, building a coordinate of angular points and building a horizontal coordinate system.
(37) In step S400, a polygon is rotated. In particular, one polygon is finally presented after fitting of the collected data as described above. The result of the fitting is the polygon composed of a plurality of linear segments. When the polygon is rotated, it is called a rotatable polygon.
(38) In step S500, whether a coordinate value X is smaller than a coordinate value Y is judged. If not, the process returns to step S400; or if yes, step S600 is executed.
(39) In step S600, angle normalization is performed. In particular, in the present preferred embodiment, by taking 180° as the maximum angle, complementation is performed on data over 180°, and then a percentage is figured out.
(40) In step S700, configuration information of a grid map is initialized.
(41) In step S800, coordinate rotations of a rotation matrix are calculated.
(42) In step S900, dimension extension is performed. In particular, after the whole grid map is built, an outermost boundary of a drivable region is collected. However, during internal processing, the rationality and the security of a working region of a mowing robot need to be drawn into full consideration. An effective method is to perform dimension extension on the internal processing matrix. That is, the outermost layer is filled with one kind of invalid data to facilitate temporal operation.
(43) In step S1000, regions are connected. In particular, a current point searches whether there is a similar point around based on a threshold value. If yes, corresponding setting is performed, and the current point continues to move to a next determined connected point. The connected point takes over the task and continues to search a point connected thereto without stop. If it is finally detected at certain time that the currently found point coincides with a start point, the whole query ends. At this time, an updated electronic map may be gained. The data then produce an entire region that looks connected.
(44) In step S1100, information of the grid map is updated according to the processed boundary of the working region.
(45) In step S1200, the processed boundary information of the obstacle is acquired.
(46) In step S1300, the information of the grid map is updated according to the processed boundary information of the obstacle.
(47) In step S1400, a path planning result is output.
(48) It is assumed that the intelligent lawn mower has completed the boundary information of the working region and the boundary information of the obstacle. An automatic path planning method needs to include the following elements:
(49) providing a human-computer interaction interface and performing personalization; providing a method for denoising boundary information; providing a boundary information classifying and segment fitting method; providing a polymerization process for building grids and calculating connected regions; providing externally self-defined angle information; and providing an improved path planning method to make an optimal path plan.
(50) The method of the present disclosure is mainly implemented by running global planning on a complete intelligent mobile robot. The automatic path planning method needs at least five complete functional modules.
(51) An upper-computer display module includes such computer displays with a human-machine interaction function as a mobile phone APP, an industrial control display and a tablet PC, and can provide rich human-machine interaction functions, including parameter configuration, signal acquisition, etc.
(52) A database storage module provides safe and appropriate initialization data for an algorithm during initialization of the algorithm.
(53) The automatic path planning method runs on an operation module. A CPU is controlled to perform high-frequency operations, such that accurate data are provided for a display phase of an upper computer as soon as possible.
(54) A storage module stores original boundary data and accurately stores key data, including path planning data, the map, etc., after calculation.
(55) A backstage management module supports all control logic by an internal method.
(56) It is assumed that the boundary data have been stored in a complete data and storage mechanism at this time. All statuses of the robot are normal. The steps are as follows.
(57) 1. An interface of the upper computer is entered; all task information is loaded; and such relevant information as an internal boundary, an external boundary and parameter configuration of a current task is displayed by choice of an operator.
(58) 2. Human-machine interaction information of the operator is awaited on the interface.
(59) 3. The above boundary information is moved out from an internal memory, and information related to this signal in a database is deleted.
(60) 4. Boundary information of a current storage mechanism is loaded, and a path planning method is recalled for synchronous updating of data.
(61) 5. The boundary information and path planning information are reloaded, and the latest information is transferred into the upper computer for display.
(62) Referring to
(63) Referring
(64) According to the size and the location of the obstacle, the entire mowing region is divided into a plurality of rectangular (or rectangle-like) unit sub-regions, and the unit sub-regions are numbered to ensure that the number of units obtained by division is minimal and none of the units contains an obstacle. Attributes of each unit are marked. The division is helpful for unit ranking in the subsequent steps and path planning within the units.
(65) The coverage order of all the units is arranged according to the sizes and locations of the units and their relative positions to neighboring units and obstacles. According to the order of the units, one unprocessed unit is selected sequentially, and the internal paths of the units are planned. Whether all the units have been processed is judged. If yes, path planning ends, or if not, one path is planned to ensure that the length of the path and the number of turns are minimized. Since all paths are composed of linear segments and turns, complete-coverage path planning ends.
(66) Generally, an area of the mobile robot is used as the basis for selecting the sizes of the grids. Regarding the basis for selecting an intelligent lawn mower, in order to comprehensively reflect effective information of a working environment of the intelligent lawn mower, the fact that the sizes of the grids are half of the size of a robot is taken as a map building parameter.
(67) The adopted method can well achieve the coverage rate, and particularly, at the boundary of the obstacle, a satisfactory coverage result is obtained. Thus, a self-defined automatic task path planning data set can be gained.
(68) Referring to
(69) In step S10000, a user unlocks the vehicle-mounted display terminal.
(70) In step S20000, the user clicks to enter an automatic mowing interface.
(71) In step S30000, the user enters a path planning interface.
(72) In step S40000, a path planning button is clicked on the automatic mowing interface for setting.
(73) In step S50000, the user selects an angle on the interface.
(74) A path planning graph after planning is displayed. In the shown planning schematic diagram, a direction, a start point and an end point of path planning are identified. After confirmation by the user, a path can be added for mowing operations.
(75) Continuously refer to
(76)