Method and device for returning intelligent mower to charging station, electronic equipment and medium
By acquiring and utilizing initial and current positioning information, electromagnetic signals and camera data, the smart lawn mower can accurately return to the charging station without high-precision navigation and physical boundaries, solving the problem of smart lawn mowers returning to the charging station and improving Increased recycling rates and reduced costs.
Patent Information
- Application Number
- CN202410707552.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-23
AI Technical Summary
In the absence of a high-precision navigation and positioning system and physical boundary lines, smart lawn mowers cannot accurately return to the charging station, resulting in low charging efficiency and high usage costs.
By obtaining initial and current positioning information, combined with electromagnetic signal values and camera data, the running direction is determined to return to the charging station in the auxiliary working area, and the method of returning to the charging station is implemented using physical boundary lines and boundary recognition.
It reduces the requirements for high-precision navigation of electronic maps, improves the recovery rate of smart lawn mowers, reduces usage costs, and ensures that smart lawn mowers can accurately return to the charging station.
Smart Images

Figure CN118534907A
Abstract
Description
Technical Field
[0001] The present application relates to the field of lawn mower design, and more particularly to a method, device, electronic device and medium for returning an intelligent lawn mower to a charging station. Background Art
[0002] A smart lawn mower is a lawn mowing and maintenance device that can automatically enter the designated working lawn area to perform mowing tasks according to preset programs, autonomously avoid obstacles, and automatically return to the charging station to charge.
[0003] According to whether there is a physical boundary line, the currently commonly used smart lawn mowers can be divided into two types: one is a smart lawn mower with a physical boundary, and the other is a smart lawn mower without a physical boundary. There are generally two ways for smart lawn mowers without physical boundaries: one is to use a high-precision navigation and positioning system (such as RTK, UWB or SLAM technology) to provide an electronic map, and confirm the virtual boundary line based on the electronic map; this type of smart lawn mower generally adopts a planned traversal method for the working area, such as a bow-shaped reciprocating parallel walking cutting path; the other is not to use a high-precision navigation and positioning system, there is no electronic map, and only the camera is used to identify the boundary of the working lawn area; this type of smart lawn mower generally takes a random walking cutting path for the working area, and sometimes relies on derivation algorithms such as visual odometers to achieve a relatively rough reciprocating parallel walking cutting path in the working area. In order to realize the automatic charging function of the smart lawn mower, a charging station is usually set at the boundary of the working area of the smart lawn mower. When the battery voltage of the smart lawn mower is low or a command to return to the charging station is received, the smart lawn mower will automatically return to the charging station for charging. For smart lawn mowers with physical boundaries: wires are laid at the edge of the working area to form a physical boundary line. When the battery voltage of the smart lawn mower is low or a command to return to the charging station is received, it needs to find the physical boundary line and walk along the boundary line until it returns to the charging station to charge. For smart lawn mowers that do not have a high-precision navigation and positioning system and can only use cameras to identify the boundaries of the working area: it identifies the boundaries of the working area based on the images collected by the camera, and takes a random walking cutting path or a reciprocating parallel walking cutting path based on a derivation algorithm in the working area. However, the smart lawn mower does not have an electronic map for high-precision navigation and positioning, and cannot return to the charging station for charging according to the electronic map; at the same time, since the smart lawn mower does not have a physical boundary line, it cannot walk along the physical boundary line to the charging station for charging.
[0004] In view of the above technology, seeking a method for a smart lawn mower to return to a charging station is an urgent problem to be solved by those skilled in the art. Summary of the invention
[0005] The purpose of this application is to provide a method, device, electronic device and medium for returning a smart lawn mower to a charging station, which can reduce the requirements for high-precision navigation and positioning of electronic maps in the prior art, improve the recovery rate of the smart lawn mower, and reduce the use cost of the smart lawn mower.
[0006] In order to solve the above technical problems, the present application provides a method for returning a smart lawn mower to a charging station, comprising:
[0007] Obtaining initial position information, a first starting direction, and a second starting direction at the charging station, wherein the angle between the first starting direction and the second starting direction is a right angle;
[0008] If a return instruction is received while executing a work task in the main work area, the current current location information is obtained;
[0009] If the initial position information and the current positioning information meet the positioning requirements, the running direction is determined according to the initial position information and the current positioning information, and the vehicle moves along the running direction until it reaches the charging station in the secondary working area;
[0010] If the initial position information and / or the current positioning information do not meet the positioning requirements, proceed along the second starting direction until reaching the charging station in the secondary working area;
[0011] The main working area and the secondary working area constitute a working area, the main working area and the secondary working area are divided by a physical boundary line of the secondary working area, and the secondary working area is set at the boundary of the working area.
[0012] Preferably, obtaining the initial location information of the device at the charging station includes:
[0013] If the location information of the vehicle at the charging station is obtained, the location information is confirmed as the initial location information;
[0014] If the positioning information of the vehicle at the charging station is not obtained, the vehicle will run along the physical boundary line and obtain the positioning information group in real time during the operation;
[0015] The average positioning information is determined according to the positioning information group, and the average positioning information is confirmed as the initial position information.
[0016] Preferably, the method advances along the running direction / the second starting direction, comprising:
[0017] Acquire a first edgeline electromagnetic signal value and a second edgeline electromagnetic signal value;
[0018] The distance between the current position of the device and the secondary working area is determined according to the polarity of the first edge line electromagnetic signal value and the second edge line electromagnetic signal value.
[0019] Preferably, determining the distance between the current position of the device and the secondary working area according to the polarities of the first edgeline electromagnetic signal value and the second edgeline electromagnetic signal value includes:
[0020] When the first sideline electromagnetic signal value and the second sideline electromagnetic signal value are both zero, it is determined that the intelligent lawn mower is currently in the main working area and the distance from the secondary working area is a first preset distance;
[0021] When the first edge electromagnetic signal value and the second edge electromagnetic signal value are both negative values, it is determined that the intelligent lawn mower is currently in the main working area, and the distance from the secondary working area is the second preset distance; the second preset distance is less than the first preset distance;
[0022] When the first sideline electromagnetic signal value is positive and the second sideline electromagnetic signal value is negative, or the first sideline electromagnetic signal value is negative and the second sideline electromagnetic signal value is positive, it is determined that the intelligent lawn mower is currently on the physical boundary line of the secondary working area;
[0023] When the first edge line electromagnetic signal value and the second edge line electromagnetic signal value are both positive values, it is determined that the intelligent lawn mower is currently in the secondary working area.
[0024] Preferably, the method further comprises:
[0025] Acquire the current target image in front of the camera in real time;
[0026] Identify, by the controller, whether the current target image represents an obstacle or a boundary of a working area;
[0027] If the current target image represents an obstacle, avoid the obstacle and move forward along the running direction / second starting direction;
[0028] If the current target image represents the boundary of the working area, the vehicle turns and walks along the boundary of the working area after turning until it reaches the secondary working area.
[0029] Preferably, the method further comprises: advancing along the second starting direction / walking along the boundary of the working area;
[0030] In the process of moving along the second starting direction / walking along the boundary of the working area, the current target positioning information is acquired in real time, and it is determined in real time whether the target positioning information and the initial position information meet the positioning requirements;
[0031] If the target's front positioning information and initial position information meet the positioning requirements during the forward movement, the target's running direction is re-determined according to the initial position information and the target positioning information, and the vehicle moves forward along the target's running direction.
[0032] Preferably, advancing along the running direction / second starting direction until reaching the charging station in the secondary working area includes:
[0033] When determining that the device is in the secondary working area, obtaining specific location information of the physical boundary line of the secondary working area;
[0034] Run along the physical boundary line according to the specific location information until you reach the charging station.
[0035] In order to solve the above technical problems, the present application also provides a device for returning a smart lawn mower to a charging station, comprising:
[0036] A first acquisition module, used to acquire initial position information, a first starting direction and a second starting direction of the vehicle at the charging station, wherein the angle between the first starting direction and the second starting direction is a right angle;
[0037] A second acquisition module is used to acquire current location information if a return instruction is received when executing a work task in the main work area;
[0038] A first forward module, configured to determine a running direction according to the initial position information and the current positioning information if the initial position information and the current positioning information meet the positioning requirements, and to advance along the running direction until reaching a charging station in the secondary working area;
[0039] A second forward module, configured to advance along a second starting direction until reaching a charging station in the secondary working area if the initial position information and / or the current positioning information do not meet the positioning requirements;
[0040] The main working area and the secondary working area constitute a working area, the main working area and the secondary working area are divided by a physical boundary line of the secondary working area, and the secondary working area is set at the boundary of the working area.
[0041] To solve the above technical problems, the present application also provides an electronic device, including a memory for storing a computer program;
[0042] The processor is used to implement the steps of the method for returning the intelligent lawn mower to the charging station when executing the computer program.
[0043] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method of returning the smart lawn mower to the charging station are implemented.
[0044] The present application provides a method for an intelligent lawn mower to return to a charging station, including: obtaining the initial position information, the first starting direction and the second starting direction when the mower is at the charging station, wherein the angle between the first starting direction and the second starting direction is a right angle; if a return instruction is received when performing a work task in the main working area, the current current positioning information is obtained; if the initial position information and the current positioning information meet the positioning requirements, the running direction is determined according to the initial position information and the current positioning information, and the running direction is advanced until the charging station in the secondary working area is reached; if the initial position information and / or the current positioning information do not meet the positioning requirements, the running direction is advanced along the second starting direction until the charging station in the secondary working area is reached; wherein the main working area and the secondary working area constitute a working area, the main working area and the secondary working area are divided by the physical boundary line of the secondary working area, and the secondary working area is set at the boundary of the working area. It can be seen that the application scenario in the present application is to set a secondary working area on the boundary of the working area, and a charging station is set in the secondary working area. When the smart lawn mower is working in the working area, it takes the charging station as the starting point, so it needs to obtain its initial position information, the first starting direction and the second starting direction when it is at the charging station. When it needs to return, it obtains the current positioning information of the current position. Therefore, the smart lawn mower returns to the charging station according to the initial position information and the current positioning information, but when using the positioning information, the accuracy of the positioning information cannot be guaranteed, so it is necessary to judge the initial position information and the current positioning information. If the initial position information and the current positioning information meet the positioning requirements, the running direction is determined according to the initial position information and the current positioning information, and it moves forward along the running direction until it reaches the charging station in the secondary working area; if the initial position information and / or the current positioning information do not meet the positioning requirements, it moves forward along the second starting direction until it reaches the charging station in the secondary working area. It can be seen that the present application adopts two methods to achieve the purpose of the smart lawn mower returning to the charging station in the working area. This method reduces the requirements for high-precision navigation and positioning of electronic maps, improves the recovery rate of the smart lawn mower, and reduces the use cost of the smart lawn mower. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] FIG1 is a flow chart of a method for returning a smart lawn mower to a charging station provided by an embodiment of the present application;
[0047] FIG2 is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0048] FIG3 is a first schematic diagram of an intelligent lawn mower provided in an embodiment of the present application;
[0049] FIG4 is a second schematic diagram of the intelligent lawn mower provided in an embodiment of the present application;
[0050] FIG5 is a path diagram of the intelligent lawn mower provided in an embodiment of the present application when performing a work task;
[0051] FIG6 is a schematic diagram of a first embodiment of a smart lawn mower returning to a charging station provided in an embodiment of the present application;
[0052] FIG7 is a schematic diagram of a second embodiment of the intelligent lawn mower returning to a charging station provided in an embodiment of the present application;
[0053] FIG8 is a schematic diagram of an intelligent lawn mower according to an embodiment of the present application obtaining initial position information;
[0054] FIG9 is a schematic diagram of a third embodiment of the intelligent lawn mower returning to a charging station provided in an embodiment of the present application;
[0055] FIG10 is a schematic diagram of a fourth embodiment of the intelligent lawn mower returning to a charging station provided in an embodiment of the present application;
[0056] FIG11 is a module diagram of a device for returning a smart lawn mower to a charging station provided by another embodiment of the present application;
[0057] FIG. 12 is a structural diagram of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0059] The core of this application is to provide a method, device, electronic device and medium for returning a smart lawn mower to a charging station.
[0060] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0061] FIG1 is a flow chart of a method for returning a smart lawn mower to a charging station provided in an embodiment of the present application, as shown in the figure, including the following steps:
[0062] S10: Acquire initial position information, a first starting direction, and a second starting direction at the charging station, wherein the angle between the first starting direction and the second starting direction is a right angle.
[0063] In a specific embodiment, the present application is a method for returning a smart lawn mower to a charging station, and its application scenario is shown in FIG2 , wherein the area of the lawn to be mowed is the working area, and a physical boundary line is used at the boundary of the working area to enclose a secondary working area, and the part of the working area excluding the secondary working area is the main working area. The charging station is set in the secondary working area and at the boundary of the working area. Among them, as a preferred embodiment, the area of the secondary working area is much smaller than the area of the working area.
[0064] The schematic diagram of the intelligent lawn mower is shown in Figures 3 and 4, wherein the intelligent lawn mower includes: a camera 1, a positioning module 2, a sideline signal sensor 3 (a left sideline signal sensor 31 and a right sideline signal sensor 32) and a controller 4. When the intelligent lawn mower needs to perform a work task, it starts from the charging station, passes through the secondary working area and moves to the main working area, and performs the work task in the main working area, and performs the mowing task in the main working area in a random path manner, as shown in Figure 5. Before starting, it is necessary to determine the initial position information through the positioning module of the intelligent lawn mower itself, and at the same time determine the first starting direction when the intelligent lawn mower is running. On the basis of determining the first starting direction, the second starting direction is determined, and the angle between the first starting direction and the second starting direction is a right angle.
[0065] It should be noted that the purpose of the second starting direction determined in this application is to enable the smart lawn mower to return to the secondary working area according to the second starting direction if the initial position information does not meet the requirements. It should also be noted that the second starting direction is determined by rotating the first starting direction 90° clockwise, or the second starting direction is determined by rotating the first starting direction 90° counterclockwise. This application does not limit this and can be determined based on the specific location of the current charging station and the secondary working area.
[0066] S11: If a return instruction is received when executing a work task in the main work area, the current positioning information is obtained.
[0067] In a specific embodiment, when the smart lawn mower is performing a work task in the main working area, if the controller 4 receives an instruction from the operator to stop performing the work task and return, or receives a signal that its own power is insufficient to support the continuation of the work task (that is, receives a return instruction), it once again determines the current positioning information of its own location through its own positioning module 2.
[0068] S12: If the initial position information and the current positioning information meet the positioning requirements, determine the running direction according to the initial position information and the current positioning information, and move forward along the running direction until reaching the charging station in the secondary working area.
[0069] S13: If the initial position information and / or the current positioning information do not meet the positioning requirements, proceed along the second starting direction until reaching the charging station in the secondary working area.
[0070] In a specific embodiment, there is a possibility that the positioning module 2 of the smart lawn mower itself fails or has a deviation in accuracy, and the initial position information and the current position information may not be obtained, or the obtained initial position information and the current position information are inaccurate. Therefore, after determining that it is necessary to return to the charging station and determining the current position information through the positioning module 2, it is necessary to judge the initial position information and the current position information.
[0071] As shown in FIG6 , when the initial position information and the current positioning information meet the positioning requirements, that is, the initial position information and the current positioning information are accurate and available, then according to the principle of two points determining a straight line, a shortest route back to the secondary working area can be determined through the initial position information and the current positioning information of the current position, and then the smart lawn mower moves forward along the route until it returns to the charging station in the secondary working area.
[0072] As shown in FIG. 7 , when the initial position information and / or the current positioning information do not meet the positioning requirements, there are three situations: the first situation: the initial position information does not meet the positioning requirements, and the current positioning information meets the positioning requirements; the second situation: the initial position information meets the positioning requirements, and the current positioning information does not meet the positioning requirements; the third situation: the initial position information does not meet the positioning requirements, and the current positioning information does not meet the positioning requirements. However, no matter which situation it is, it is impossible to use the principle of two points to determine a straight line, and determine a shortest route back to the secondary working area through the initial position information and the current positioning information of the current position. At this time, proceed along the second starting direction until you reach the charging station in the secondary working area.
[0073] It should be noted that whether the initial position information and the current positioning information meet the positioning requirements can be determined based on whether the initial position information and the current positioning information are obtained, or based on the accuracy of the obtained initial position information and the current positioning information, but this application is not limited.
[0074] The present application provides a method for an intelligent lawn mower to return to a charging station, including: obtaining the initial position information, the first starting direction and the second starting direction when the mower is at the charging station, wherein the angle between the first starting direction and the second starting direction is a right angle; if a return instruction is received when performing a work task in the main working area, the current current positioning information is obtained; if the initial position information and the current positioning information meet the positioning requirements, the running direction is determined according to the initial position information and the current positioning information, and the running direction is advanced until the charging station in the secondary working area is reached; if the initial position information and / or the current positioning information do not meet the positioning requirements, the running direction is advanced along the second starting direction until the charging station in the secondary working area is reached; wherein the main working area and the secondary working area constitute a working area, the main working area and the secondary working area are divided by the physical boundary line of the secondary working area, and the secondary working area is set at the boundary of the working area. It can be seen that the application scenario in the present application is to set a secondary working area on the boundary of the working area, and a charging station is set in the secondary working area. When the smart lawn mower is working in the working area, it takes the charging station as the starting point, so it needs to obtain its initial position information, the first starting direction and the second starting direction when it is at the charging station. When it needs to return, it obtains the current positioning information of the current position. Therefore, the smart lawn mower returns to the charging station according to the initial position information and the current positioning information, but when using the positioning information, the accuracy of the positioning information cannot be guaranteed, so it is necessary to judge the initial position information and the current positioning information. If the initial position information and the current positioning information meet the positioning requirements, the running direction is determined according to the initial position information and the current positioning information, and it moves forward along the running direction until it reaches the charging station in the secondary working area; if the initial position information and / or the current positioning information do not meet the positioning requirements, it moves forward along the second starting direction until it reaches the charging station in the secondary working area. It can be seen that the present application adopts two methods to achieve the purpose of the smart lawn mower returning to the charging station in the working area. This method reduces the requirements for high-precision navigation and positioning of electronic maps, improves the recovery rate of the smart lawn mower, and reduces the use cost of the smart lawn mower.
[0075] Based on the above embodiment, as a preferred embodiment, obtaining the initial location information of the charging station includes:
[0076] If the location information of the charging station is obtained, the location information is confirmed as the initial location information;
[0077] If the positioning information of the vehicle at the charging station is not obtained, the vehicle will run along the physical boundary line and obtain the positioning information group in real time during the operation;
[0078] The average positioning information is determined according to the positioning information group, and the average positioning information is confirmed as the initial position information.
[0079] In a specific embodiment, when the intelligent lawn mower has no faults and the location of the charging station is not blocked, the intelligent lawn mower can smoothly determine the location information of itself at the charging station according to its own positioning module 2, and the positioning information at this time is the initial location information. Of course, there is also a situation that the positioning module 2 of the intelligent lawn mower itself does not have a fault, but the location of the charging station is blocked, which causes the positioning module 2 in the intelligent lawn mower to be unable to obtain the initial location information at the charging station. Since the charging station is only a small part of the secondary working area, it is impossible that the entire secondary working area cannot obtain the positioning information. Therefore, the intelligent lawn mower itself is controlled to run along the physical boundary line of the secondary working area, and the positioning information is obtained in real time through the positioning module 2 during the running process. Since running along the physical boundary line is a process, and positioning information is continuously obtained in this process, the positioning information obtained at this time is multiple, that is, a positioning information group, and finally the average positioning information is determined according to the positioning information group, and the average positioning information is confirmed as the initial position information.
[0080] The process of determining the average positioning information is shown in FIG8 , wherein: at the charging station or in front of the charging station, the smart lawn mower is started, so that it automatically walks along the physical boundary line of the secondary working area and finally returns to the charging station; during this process, all GPS positioning coordinates with accurate position data are recorded, such as (X1, Y1), (X2, Y2), (X3, Y3), ..., (Xn, Yn), until the smart lawn mower returns to the charging station and enters the charging state. The arithmetic mean of all positioning coordinates is taken to obtain the average GPS coordinate, that is, (Xav, Yav). Then, when the smart lawn mower starts to look for a charging station, the point (Xav, Yav) is the GPS origin, or the initial position information.
[0081] It should be noted that this application is only one possible implementation method, but is not limited to this implementation method and can be set according to user needs.
[0082] The embodiment of the present application provides two methods for obtaining the initial position information of the smart lawn mower itself when it is at the charging station. One of the methods takes into account how to obtain the initial position information when the position information cannot be obtained due to occlusion. Overall, the accuracy of obtaining the initial position information is improved, laying the foundation for the subsequent return of the smart lawn mower to the charging station.
[0083] Based on the above embodiment, as a preferred embodiment, moving along the running direction / second starting direction includes:
[0084] Acquire a first edgeline electromagnetic signal value and a second edgeline electromagnetic signal value;
[0085] The distance between the current position of the device and the secondary working area is determined according to the polarity of the first edge line electromagnetic signal value and the second edge line electromagnetic signal value.
[0086] The method of determining the distance between the current position of the user and the secondary working area according to the polarity of the first edge line electromagnetic signal value and the second edge line electromagnetic signal value includes:
[0087] When the first sideline electromagnetic signal value and the second sideline electromagnetic signal value are both zero, it is determined that the intelligent lawn mower is currently in the main working area and the distance from the secondary working area is a first preset distance;
[0088] When the first edge electromagnetic signal value and the second edge electromagnetic signal value are both negative values, it is determined that the intelligent lawn mower is currently in the main working area, and the distance from the secondary working area is the second preset distance; the second preset distance is less than the first preset distance;
[0089] When the first sideline electromagnetic signal value is positive and the second sideline electromagnetic signal value is negative, or the first sideline electromagnetic signal value is negative and the second sideline electromagnetic signal value is positive, it is determined that the intelligent lawn mower is currently on the physical boundary line of the secondary working area;
[0090] When the first edge line electromagnetic signal value and the second edge line electromagnetic signal value are both positive values, it is determined that the intelligent lawn mower is currently in the secondary working area.
[0091] In a specific embodiment, the smart lawn mower itself has a left line signal sensor 31 and a right line signal sensor 32. The data collected by the left line signal sensor 31 is the first line electromagnetic signal value, and the data collected by the right line signal sensor 32 is the second line electromagnetic signal value. When the smart lawn mower moves along the running direction / second starting direction until the smart lawn mower returns to the secondary working area, since the secondary working area is surrounded by a physical boundary line, when the physical boundary line is energized, a pulse electromagnetic field is generated inside the secondary working area. In this application, the magnetism of the pulse electromagnetic field in the secondary working area is defined as positive, and the magnetism of the pulse electromagnetic field outside the physical boundary line, that is, near the physical boundary line in the main working area, is defined as negative.
[0092] Among them, when the smart lawn mower is too far away from the auxiliary working area (the distance between the smart lawn mower and the auxiliary working area is the first preset distance) and is located in the main working area, the left line signal sensor 31 and the right line signal sensor 32 cannot sense the positive pulse electromagnetic field in the auxiliary working area, and also cannot sense the negative pulse electromagnetic field near the physical boundary line in the main working area. Therefore, at this time, the first sideline electromagnetic signal value collected by the left line signal sensor 31 of the smart lawn mower itself and the second sideline electromagnetic signal value collected by the right line signal sensor 32 are both zero.
[0093] When the smart lawn mower is not far from the secondary working area (the distance between the smart lawn mower and the secondary working area is the second preset distance) and is located in the main working area near the physical boundary line, the left line signal sensor 31 and the right line signal sensor 32 cannot sense the positive pulse electromagnetic field in the secondary working area, but can sense the negative pulse electromagnetic field in the main working area near the physical boundary line. Therefore, at this time, the first sideline electromagnetic signal value collected by the left line signal sensor 31 of the smart lawn mower itself and the second sideline electromagnetic signal value collected by the right line signal sensor 32 are both negative values.
[0094] When the smart lawn mower is at the physical boundary line, it means that half of the volume of the smart lawn mower has passed the physical boundary line and entered the secondary working area, while the other half of the volume of the smart lawn mower is still in the main working area. At this time, the left line signal sensor 31 and the right line signal sensor 32 can simultaneously sense the positive pulse electromagnetic field in the secondary working area and the negative pulse electromagnetic field in the main working area near the physical boundary line. Therefore, at this time, the first sideline electromagnetic signal value collected by the left sideline signal sensor 31 of the smart lawn mower itself and the second sideline electromagnetic signal value collected by the right sideline signal sensor 32 are one positive and one negative (when the first sideline electromagnetic signal value is positive and the second sideline electromagnetic signal value is negative or the first sideline electromagnetic signal value is negative and the second sideline electromagnetic signal value is positive).
[0095] When the smart lawn mower completely enters the secondary working area, the left line signal sensor and the right line signal sensor of the smart lawn mower can only sense the positive pulse electromagnetic field in the secondary working area. Therefore, the first line electromagnetic signal value collected by the left line signal sensor 31 and the second line electromagnetic signal value collected by the right line signal sensor 32 of the smart lawn mower are both positive values.
[0096] When the smart lawn mower reaches the secondary working area, it needs to reach the charging station from the secondary working area, as shown in Figures 6 and 7. The specific steps at this time are: obtain the specific location information of the physical boundary line of the secondary working area, and control the smart lawn mower to run along the physical boundary line of the secondary working area according to the specific location information until it returns to the charging station. The purpose of this step is that the smart lawn mower and the charging station are one-to-one corresponding, and when the charging station charges the smart lawn mower, the smart lawn mower needs to be in the correct position, and the smart lawn mower runs along the physical boundary line of the secondary working area according to the specific location information until it returns to the charging station to meet this condition.
[0097] It should be noted that this application is only one possible implementation method, but is not limited to this implementation method and can be set according to user needs.
[0098] The present application provides a method for determining the distance between the current position of the smart lawn mower and the auxiliary working area according to the polarity of a first sideline electromagnetic signal value collected by the left sideline signal sensor of the smart lawn mower and a second sideline electromagnetic signal value collected by the right sideline signal sensor, and further determining the distance between the smart lawn mower and the auxiliary working area during the process of returning to the charging station. At the same time, the recovery rate of the smart lawn mower can be improved according to the distance between the smart lawn mower and the auxiliary working area.
[0099] Based on the above embodiment, as a preferred embodiment, the method further includes:
[0100] Acquire the current target image in front of the camera in real time;
[0101] Identify, by the controller, whether the current target image represents an obstacle or a boundary of a working area;
[0102] If the current target image represents an obstacle, avoid the obstacle and move forward along the running direction / second starting direction;
[0103] If the current target image represents the boundary of the working area, the vehicle turns and walks along the boundary of the working area after turning until it reaches the secondary working area.
[0104] In a specific embodiment, no physical boundary is set at the boundary of the working area, so the smart lawn mower collects the current target image in front of the running (the direction back to the charging station) according to its own camera 1, and identifies whether the current target image represents an obstacle or the boundary of the working area through the controller 4; if the current target image represents an obstacle, the obstacle is avoided and the running direction / second starting direction is advanced until it returns to the secondary working area. If the current target image represents the boundary of the working area, as shown in FIG9 , the smart lawn mower turns and walks along the boundary of the working area until it reaches the secondary working area.
[0105] It should be noted that when the smart lawn mower is performing work tasks in the main working area, it will also avoid obstacles when encountering them and continue to perform work tasks.
[0106] As shown in FIG. 10 , when the smart lawn mower moves along the second starting direction / walks along the boundary of the working area, it is necessary to obtain the current target positioning information in real time, and determine in real time whether the target positioning information and the initial position information meet the positioning requirements; if the target positioning information and the initial position information meet the positioning requirements during the moving process, the principle of two points determining a straight line is re-adopted, and the target running direction is re-determined according to the initial position information and the target positioning information, and the smart lawn mower moves along the target running direction.
[0107] The present application provides a method for an intelligent lawn mower to return to a charging station, including: obtaining the initial position information, the first starting direction and the second starting direction when the mower is at the charging station, wherein the angle between the first starting direction and the second starting direction is a right angle; if a return instruction is received when performing a work task in the main working area, the current current positioning information is obtained; if the initial position information and the current positioning information meet the positioning requirements, the running direction is determined according to the initial position information and the current positioning information, and the running direction is advanced until the charging station in the secondary working area is reached; if the initial position information and / or the current positioning information do not meet the positioning requirements, the running direction is advanced along the second starting direction until the charging station in the secondary working area is reached; wherein the main working area and the secondary working area constitute a working area, the main working area and the secondary working area are divided by the physical boundary line of the secondary working area, and the secondary working area is set at the boundary of the working area. It can be seen that the application scenario in the present application is to set a secondary working area on the boundary of the working area, and a charging station is set in the secondary working area. When the smart lawn mower is working in the working area, it uses the charging station as the starting point, so it needs to obtain its initial position information, the first starting direction and the second starting direction when it is at the charging station. When it needs to return, it needs to obtain the current positioning information of the current location. Therefore, the smart lawn mower returns to the charging station according to the initial position information and the current positioning information. However, when using the positioning information, the accuracy of the positioning information cannot be guaranteed. Therefore, it is necessary to judge the initial position information and the current positioning information. If the initial position information and the current positioning information meet the positioning requirements, the running direction is determined according to the initial position information and the current positioning information, and the running direction is advanced until it reaches the charging station in the secondary working area; if the initial position information and / or the current positioning information do not meet the positioning requirements, the running direction is advanced along the second starting direction until it reaches the charging station in the secondary working area. It can be seen that the present application adopts two methods to achieve the purpose of the smart lawn mower returning to the charging station in the working area. This method reduces the requirements for high-precision navigation and positioning of electronic maps, improves the recovery rate of the smart lawn mower, and reduces the use cost of the smart lawn mower.
[0108] In the above embodiments, the method for returning the smart lawn mower to the charging station is described in detail, and the present application also provides an embodiment corresponding to the device for returning the smart lawn mower to the charging station. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0109] FIG11 is a module diagram of a device for returning a smart lawn mower to a charging station provided by another embodiment of the present application, including:
[0110] A first acquisition module 11 is used to acquire initial position information, a first starting direction and a second starting direction when the vehicle is at a charging station, wherein the angle between the first starting direction and the second starting direction is a right angle;
[0111] A second acquisition module 12 is used to acquire current location information if a return instruction is received when executing a work task in the main work area;
[0112] A first forward module 13, configured to determine a running direction according to the initial position information and the current positioning information if the initial position information and the current positioning information meet the positioning requirements, and to advance along the running direction until reaching the charging station in the secondary working area;
[0113] A second advancing module 14, configured to advance along a second starting direction until reaching a charging station in a secondary working area if the initial position information and / or the current positioning information do not meet the positioning requirements;
[0114] The main working area and the secondary working area constitute a working area, the main working area and the secondary working area are divided by a physical boundary line of the secondary working area, and the secondary working area is set at the boundary of the working area.
[0115] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.
[0116] FIG. 12 is a structural diagram of an electronic device provided by another embodiment of the present application. As shown in FIG. 12 , the electronic device includes: a memory 20 for storing a computer program;
[0117] The processor 21 is used to implement the steps of the method for returning the intelligent lawn mower to the charging station mentioned in the above embodiment when executing the computer program.
[0118] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.
[0119] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0120] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the method for returning the smart lawn mower to the charging station disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc.
[0121] In some embodiments, the electronic device may further include a display screen 22 , an input / output interface 23 , a communication interface 24 , a power source 25 , and a communication bus 26 .
[0122] Those skilled in the art will appreciate that the structure shown in FIG. 12 does not limit the electronic device and may include more or fewer components than those shown in the figure.
[0123] The electronic device provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the method of returning the smart lawn mower to the charging station as described above and has the same beneficial effects.
[0124] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0125] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0126] The above is a detailed introduction to the method, device, electronic device and medium for returning a smart lawn mower to a charging station provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can refer to the method part description. It should be pointed out that for ordinary technicians in the technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application. It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "includes", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
Claims
1. A method for returning a smart lawn mower to a charging station, characterized in that: include: Obtaining initial position information, a first starting direction, and a second starting direction at the charging station, wherein the angle between the first starting direction and the second starting direction is a right angle; If a return instruction is received while executing a work task in the main work area, the current current location information is obtained; If the initial position information and the current positioning information meet the positioning requirements, determine the running direction according to the initial position information and the current positioning information, and move forward along the running direction until reaching the charging station in the secondary working area; If the initial position information and / or the current positioning information do not meet the positioning requirement, proceed along the second starting direction until reaching the charging station in the secondary working area; The main working area and the secondary working area constitute a working area, the main working area and the secondary working area are divided by a physical boundary line of the secondary working area, and the secondary working area is set at the boundary of the working area.
2. The method for returning the smart lawn mower to the charging station according to claim 1, characterized in that: The obtaining of the initial location information of the charging station includes: If the location information of the charging station is obtained, the location information is confirmed as the initial location information; If the positioning information of the vehicle at the charging station is not obtained, the vehicle runs along the physical boundary line, and during the running process, the positioning information group is obtained in real time; Average positioning information is determined according to the positioning information group, and the average positioning information is confirmed as the initial position information.
3. The method for returning the smart lawn mower to the charging station according to claim 1, characterized in that: Advancing along the running direction / the second starting direction, comprising: Acquire a first edgeline electromagnetic signal value and a second edgeline electromagnetic signal value; The distance between the current position of the device and the secondary working area is determined according to the polarities of the first sideline electromagnetic signal value and the second sideline electromagnetic signal value.
4. The method for returning the intelligent lawn mower to the charging station according to claim 3, characterized in that: The determining the distance between the current position of the device and the secondary working area according to the polarity of the first sideline electromagnetic signal value and the second sideline electromagnetic signal value includes: When the first sideline electromagnetic signal value and the second sideline electromagnetic signal value are both zero, it is determined that the intelligent lawn mower is currently in the main working area and the distance from the secondary working area is a first preset distance; When the first sideline electromagnetic signal value and the second sideline electromagnetic signal value are both negative values, it is determined that the intelligent lawn mower is currently in the main working area, and the distance from the secondary working area is a second preset distance; the second preset distance is less than the first preset distance; When the first sideline electromagnetic signal value is a positive value and the second sideline electromagnetic signal value is a negative value, or the first sideline electromagnetic signal value is a negative value and the second sideline electromagnetic signal value is a positive value, it is determined that the intelligent lawn mower is currently located on the physical boundary line of the secondary working area; When the first sideline electromagnetic signal value and the second sideline electromagnetic signal value are both positive values, it is determined that the intelligent lawn mower is currently in the secondary working area.
5. The method for returning the intelligent lawn mower to the charging station according to any one of claims 1 to 4, characterized in that: and moving along the running direction / the second starting direction, further comprising: Acquire the current target image in front of the camera in real time; Identifying, by a controller, whether the current target image represents an obstacle or a boundary of the working area; If the current target image represents the obstacle, avoid the obstacle and move forward along the running direction / the second starting direction; If the current target image represents the boundary of the working area, the vehicle turns and walks along the boundary of the working area after turning until reaching the secondary working area.
6. The method for returning the intelligent lawn mower to the charging station according to claim 5, characterized in that: The method further comprises: advancing along the second starting direction / walking along the boundary of the working area; In the process of moving along the second starting direction / walking along the boundary of the working area, current target positioning information is acquired in real time, and whether the target positioning information and the initial position information meet the positioning requirements is determined in real time; If the target front positioning information and the initial position information meet the positioning requirement during the forward movement, the target running direction is re-determined according to the initial position information and the target positioning information, and the vehicle moves forward along the target running direction.
7. The method for returning the intelligent lawn mower to the charging station according to claim 4, characterized in that: The moving forward along the running direction / the second starting direction until reaching the charging station in the secondary working area includes: When determining that the device is in the secondary working area, obtaining specific position information of the physical boundary line of the secondary working area; The vehicle moves along the physical boundary line according to the specific location information until reaching the charging station.
8. A device for returning an intelligent lawn mower to a charging station, characterized in that: include: A first acquisition module, used to acquire initial position information, a first starting direction, and a second starting direction of the battery at the charging station, wherein the angle between the first starting direction and the second starting direction is a right angle; A second acquisition module is used to acquire current location information if a return instruction is received when executing a work task in the main work area; A first forward module, configured to determine a running direction according to the initial position information and the current positioning information if the initial position information and the current positioning information meet the positioning requirements, and to advance along the running direction until reaching a charging station in a secondary working area; a second forward module, configured to advance along the second starting direction until reaching the charging station in the secondary working area if the initial position information and / or the current positioning information do not meet the positioning requirement; The main working area and the secondary working area constitute a working area, the main working area and the secondary working area are divided by a physical boundary line of the secondary working area, and the secondary working area is set at the boundary of the working area.
9. An electronic device, characterized in that: comprising a memory for storing a computer program; A processor is used to implement the steps of the method for returning the smart lawn mower to a charging station as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for returning the smart lawn mower to the charging station as described in any one of claims 1 to 7 are implemented.
