Mapping method and device, computer storage medium and working method of self-moving robot
By obtaining and marking regional position information, extending the channel to the boundary, and using rasterization processing and positioning signal strength judgment, the reconstruction problem caused by the channel not being connected to the boundary in the existing mapping method is solved, and the mapping efficiency and stability are improved. sex.
Patent Information
- Application Number
- CN202310179996.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When establishing a channel, existing mapping methods are prone to reconstructing the map because the channel is not connected to the boundary of the work area, which is time-consuming, labor-intensive, and inefficient.
By obtaining regional location information, the channel start and end points are marked. If the points are not in the region, they are extended to the boundary. Raster processing and positioning signal strength judgment are used to ensure accurate connections and avoid reconstructing the map.
It improves the efficiency of mapping, avoids the problem of re-mapping because the channel is not connected to the boundary, and enhances the stability and efficiency of mapping.
Smart Images

Figure CN118570329A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a mapping method, device, computer storage medium, and a working method of a self-moving robot. Background Art
[0002] With the continuous advancement of computer technology and artificial intelligence technology, automatic working systems similar to intelligent robots have begun to slowly enter people's lives. For example, an automatic lawn mower can automatically mow and charge the user's lawn without user intervention. This automatic working system does not need to be managed after it is set up once, freeing users from boring, time-consuming and laborious housework such as cleaning and lawn maintenance. Taking an automatic lawn mower as an example, when the automatic lawn mower cuts the working area, it is necessary to obtain a map of the working area including the automatic lawn mower so that it can work according to the map. When generating a map, in order to connect two unconnected working areas, it is usually necessary to establish a channel connecting the two working areas.
[0003] In the existing mapping methods, when an abnormality occurs in channel establishment, for example, when the established channel is not connected to the working area, the mapping will be re-established, which is very time-consuming and labor-intensive.
[0004] Therefore, it is necessary to provide a mapping method, device and computer storage medium to solve the above problems existing in the prior art. Summary of the invention
[0005] In view of this, the purpose of the present application is to provide a mapping method, device and computer storage medium, which can improve the efficiency of mapping compared with the existing technology.
[0006] The present application provides a mapping method, which is performed by a mapping device, and the mapping method includes: obtaining position information of a first area and position information of a second area; in response to an instruction to start establishing a channel connecting the first area and the second area, obtaining position information of a first position point; if the first position point is located in one of the first area or the second area, marking the first position point as a channel starting point; and / or, in response to an instruction to end establishing the first area and the second area, obtaining position information of a second position point; if the second position point is located in the other of the first area or the second area, marking the second position point as a channel ending point.
[0007] In one embodiment, the mapping device is an autonomous robot or a mapping component.
[0008] In one embodiment, the mapping method further includes: if it is determined that the first position point or the second position point is not in the first area and the second area, the mapping device moves to a third position point or a fourth position point to determine whether the third position point or the fourth position point is located in the first area or the second area.
[0009] In one embodiment, if the mapping device is an autonomous robot, the mapping device autonomously moves to a third location point or a fourth location point.
[0010] In one embodiment, if the mapping device is a mapping assembly, the mapping device is controlled to move to a third position point or a fourth position point.
[0011] In one embodiment, the mapping method further includes: if the first position point is not in the first area and the second area, extending the first position point to the boundary of one of the first area or the second area; and / or if the second position point is not in the first area and the second area, extending the second position point to the boundary of the other of the first area or the second area.
[0012] In one embodiment, extending the first position point to a boundary of one of the first region or the second region is the same as extending the second position point to a boundary of the other of the first region or the second region.
[0013] In one embodiment, the extending the first position point to the boundary of one of the first area or the second area includes: rasterizing the map, wherein the map includes at least the location information of the first area, the second area, and the location information of the first position point; based on the first position point, traversing each grid adjacent to the first position point outward in a circular form; if the intersection point with the boundary of one of the first area or the second area is not traversed, then expanding the traversal outward by one grid in a circular form until at least one intersection point with the boundary of the first area or the second area is traversed; comparing the straight-line distance between the first position point and each intersection point, selecting the intersection point with the smallest straight-line distance to the first position point as the nearest boundary point, and extending the first position point to the nearest boundary point.
[0014] In one embodiment, if the first position point is located in one of the first area or the second area, marking the first position point as the starting point of the channel includes: obtaining the position information of the boundary between the first area and the second area, determining the position information of the points within the boundary between the first area and the second area based on the position information of the boundary, and setting the pixel values of the points within the boundary between the first area and the second area to one pixel value, and setting the pixel values of the points outside the boundary between the first area and the second area to another pixel value; determining the pixel value of the point corresponding to the first position point in the map based on the position information of the first position point; if the pixel value of the point corresponding to the first position point is the same as the pixel value of the first area and the second area, determining that the first position point is located in one of the first area and the second area.
[0015] In one embodiment, if the first position point is located in one of the first area or the second area, then marking the first position point as the starting point of the channel includes: if the first position point is located in one of the first area or the second area, and the positioning signal strength of the first position point is greater than a preset strength value, then confirming the first position point as the starting point of the channel.
[0016] In one embodiment, the mapping method further includes: in response to ending the establishment of the boundary of the working area, if the straight-line distance between the start point and the end point of the boundary of the currently established working area is greater than a preset distance, connecting the start point and the end point with a straight line.
[0017] In one embodiment, the mapping method further includes: detecting the straight-line distance between the starting point and the end point of the boundary of the established working area; when the straight-line distance is not less than the preset distance, executing a response to continue to establish the boundary of the working area; when the straight-line distance is less than the preset distance, executing a response to end the establishment of the boundary of the working area.
[0018] In one embodiment, the mapping method includes: in response to generating multiple closed areas when establishing the boundary of the working area, deleting other closed areas among the multiple closed areas except the closed area with the largest outline.
[0019] The present application also provides a working method for a self-moving robot, which includes: when located at the starting point of a channel, determining whether the channel is a magnetic channel, wherein a magnetic strip is provided in the magnetic channel, and the magnetic strip extends from the starting point of the magnetic channel to the ending point of the magnetic channel; if the channel is not a magnetic channel, determining whether the positioning signal strength at the starting point of the channel is less than a signal strength threshold; if the positioning signal strength at the starting point of the channel is less than the signal strength threshold, waiting in place for a response.
[0020] In one embodiment, when located at the starting point of the channel, after determining whether the channel is a magnetic channel, the working method of the self-moving robot further includes: if the channel is a magnetic channel, then when passing through the channel, moving in response according to the magnetic signal of the channel.
[0021] In one embodiment, after determining whether the channel is a magnetic channel, the working method of the self-moving robot further includes: if the channel is a magnetic channel, then when located at the end point of the channel, determining whether a condition for leaving the end point of the channel is met, wherein the condition for leaving the end point of the channel includes that the end point of the channel is located in the working area and the positioning signal strength is greater than a signal strength threshold; if the condition for leaving the end point of the channel is met, performing an operation to leave the end point of the channel; if the condition for leaving the end point of the channel is not met, waiting for a response in situ.
[0022] The present application also provides a mapping device, which includes a memory and a processor, the memory stores a computer program, and the processor can implement the above-mentioned mapping method and / or the working method of the self-moving robot when executing the computer program.
[0023] The present application also provides a computer storage medium, which stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the above-mentioned mapping method and / or the working method of the self-moving robot.
[0024] Compared to the prior art, the mapping method provided by the above-mentioned preferred embodiment of the present application includes: in response to an instruction to start establishing a channel connecting the first area and the second area, obtaining the position information of a first position point, and if the first position point is located in one of the first area or the second area, marking the first position point as the starting point of the channel; and / or in response to an instruction to end establishing the first area and the second area, obtaining the position information of a second position point, and if the second position point is located in the other of the first area or the second area, marking the second position point as the end point of the channel. Therefore, the mapping method, device and computer storage medium provided by the present application can avoid the need to re-map because the channel is not connected to the boundary of the first area and / or the second area during mapping, thereby improving mapping efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 It is a flowchart of the mapping method provided in the first embodiment of the present application.
[0027] Figure 2 It is a flowchart of the mapping method provided in the second embodiment of the present application.
[0028] Figure 3 An embodiment of the present application adopts Figure 2 The mapping method shown is a schematic diagram of traversing intersection points.
[0029] Figure 4 One embodiment of the present application adopts Figure 2 Schematic diagram of the effect of the channel established by the mapping method shown.
[0030] Figure 5 It is a flowchart of a mapping method provided in the third embodiment of the present application.
[0031] Figure 6 One embodiment of the present application adopts Figure 5 Schematic diagram of application scenarios of the mapping method shown.
[0032] Figure 7 One embodiment of the present application adopts Figure 6 Schematic diagram of the effect of the mapping method shown.
[0033] Figure 8 It is a scene schematic diagram of a mapping method according to an embodiment of the present application.
[0034] Fig. 9 It is a schematic diagram of the structure of a mapping device provided in the first embodiment of the present application. DETAILED DESCRIPTION
[0035] The specific embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the description of the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0036] Figure 1is a flow chart of the mapping method provided in the first embodiment of the present application. Figure 1 As shown, the mapping method includes:
[0037] Step S11: Acquire information of the first area and information of the second area;
[0038] Step S12a: in response to an instruction to start establishing a channel connecting the first area and the second area, obtaining position information of a first position point; if the first position point is located in one of the first area or the second area, marking the first position point as a channel start point; and / or
[0039] Step S12b: in response to the instruction to end the establishment of the first area and the second area, obtain the position information of the second position point; if the second position point is located in the other of the first area or the second area, mark the second position point as the channel end point.
[0040] In one embodiment, the mapping device is an autonomous robot or a mapping component. Specifically, the mapping device can be, for example, a lawn mower, a wheelbarrow, or the like.
[0041] In one embodiment, the mapping method further includes: if it is determined that the first position point or the second position point is not in the first area and the second area, the mapping device moves to a third position point or a fourth position point to determine whether the third position point or the fourth position point is located in the first area or the second area. In this way, the mapping device can determine whether to mark the third position or the fourth position as a channel start point or a channel end point based on the result of determining whether the third position point or the fourth position point is located in one of the first area or the second area.
[0042] Among them, the first position point, the second position point, the third position point and the fourth position point are the current positions of the mapping device when responding to the instruction.
[0043] In one embodiment, if the mapping device is an autonomous robot, the mapping device moves autonomously to a third position point or a fourth position point. In one embodiment, if the mapping device is a mapping assembly, the mapping device is controlled to move to a third position point or a fourth position point.
[0044] In one embodiment, step S12a: in response to an instruction to start establishing a channel connecting the first area and the second area, obtain the position information of the first position point, if the first position point is located in one of the first area or the second area, then mark the first position point as the channel starting point includes: determine whether the pixel value of the first position point is the same as the pixel value in one of the first area or the second area. Specifically, in one embodiment, the first area and the second area in the map can be but not limited to using the same pixel value, which can simplify the detection of whether the point to be confirmed (for example, at least one of the first position point, the second position point, the third position point, and the fourth position point) is located in the working area, thereby further improving the efficiency of map building. Determining whether the pixel value of the first position point is the same as one of the first area or the second area may include: obtaining the boundary coordinates of the first area and the second area, and setting the pixel value of the point within the boundary of the first area and the second area to a pixel value, and setting the pixel value of the point outside the boundary of the first area and the second area to another pixel value; according to the position information of the first position point, determine the pixel value of the point corresponding to the first position point in the map; if the pixel value of the point corresponding to the first position point is the same as the pixel value of the point in the first area and the second area, then determine that the first position point is located in one of the first area and the second area.
[0045] Step S12b: In response to the instruction to end the establishment of the first area and the second area, the position information of the second position point is obtained. If the second position point is located in the other of the first area or the second area, marking the second position point as the channel end point includes: judging whether the pixel value of the second position point is the same as the pixel value of the point in the other of the first area or the second area. Specifically, in one embodiment, the first area and the second area in the map can be but not limited to using the same pixel value, which can simplify the detection of whether the point to be confirmed (for example, at least one of the first position point, the second position point, the third position point, and the fourth position point) is located in the working area, thereby further improving the efficiency of map building. Judging whether the pixel value of the second position point is the same as the pixel value of the point in the other of the first area or the second area may include: obtaining the boundary coordinates of the first area and the second area, and setting the pixel value of the point within the boundary of the first area and the second area to a pixel value, and setting the pixel value of the point outside the boundary of the first area and the second area to another pixel value; according to the position information of the second position point, determining the pixel value of the point corresponding to the second position point in the map; if the pixel value of the point corresponding to the second position point is the same as the pixel value of the point in the first area and the second area, it is determined that the second position point is located in the other of the first area and the second area.
[0046] In order to ensure that the positioning signal strength corresponding to the starting point or the ending point of the channel is greater than the preset strength value, thereby ensuring the stability of the automatic working system during operation. In one embodiment, step S12a: in response to an instruction to start establishing a channel connecting the first area and the second area, obtaining the position information of the first position point, if the first position point is located in one of the first area or the second area, then marking the first position point as the starting point of the channel, including: if the first position point is located in one of the first area or the second area, and the positioning signal strength of the first position point is greater than the preset strength value, then confirming the first position point as the starting point of the channel.
[0047] In one embodiment, step S12b: in response to an instruction to end the establishment of the first area and the second area, obtaining the position information of the second position point, if the second position point is located in the other of the first area or the second area, marking the second position point as the channel end point, including: if the second position point is located in the other of the first area or the second area, and the positioning signal strength of the second position point is greater than a preset strength value, then confirming the second position point as the channel end point.
[0048] Among them, the positioning signal can be, for example, RTK (Real-time kinematic) carrier phase differential technology, which is a differential method for real-time processing of carrier phase observations of two measuring stations, and sends the carrier phase collected by the base station to the user receiver for differential coordinate calculation. This is a new and commonly used satellite positioning measurement method. The previous static, fast static, and dynamic measurements all required post-calculation to obtain centimeter-level accuracy, while RTK is a measurement method that can obtain centimeter-level positioning accuracy in real time in the field. It uses a carrier phase dynamic real-time differential method and is a major milestone in the application of GPS. Its appearance has brought new measurement principles and methods to engineering layout, topographic mapping, and various control measurements, greatly improving work efficiency.
[0049] The mapping method provided in this embodiment obtains the position information of the first position point in response to the instruction to start establishing a channel connecting the first area and the second area, and if the first position point is located in one of the first area or the second area, the first position point is marked as the starting point of the channel; and / or, in response to the instruction to end establishing the first area and the second area, obtains the position information of the second position point, and if the second position point is located in the other of the first area or the second area, the second position point is marked as the ending point of the channel. Therefore, it can avoid the need to re-build the map because the channel is not connected to the boundary during mapping, thereby improving the mapping efficiency.
[0050] In one embodiment, the mapping method includes: if the first position point is not in the first area and the second area, extending the first position point to the boundary of one of the first area or the second area; and / or, if the second position point is not in the first area and the second area, extending the second position point to the boundary of the other of the first area or the second area. Figure 2 is a flow chart of the mapping method provided by the second embodiment of the present application. Figure 2 As shown, in one embodiment, if the first position point is not in the first area and the second area, extending the first position point to a boundary of the first area or the second area includes:
[0051] Step S211: rasterizing the map;
[0052] Step S212: Based on the first position point, traverse each grid adjacent to the first position point outward in a circular form;
[0053] Step S213: if the traversal does not reach an intersection point with the boundary of one of the first region or the second region, then expand the grid outward in a circular form to traverse until at least one intersection point with the boundary of the first region or the second region is reached;
[0054] Step S214: Compare the straight-line distances between the first position point and each intersection point, select the intersection point with the smallest straight-line distance to the first position point as the nearest boundary point, and then extend the first position point to the nearest boundary point.
[0055] The map at least includes the location information of the first area, the second area, and the location information of the first location point. Figure 3 As shown, in one embodiment, the points in the map are firstly rasterized, and the starting point of the channel, such as the first position point A, is obtained, and each grid ① adjacent to the first position point A is traversed outward in a circular form; if the intersection point with the boundary of one of the first area or the second area is not traversed, then the grid traversal is expanded outward in a circular form, that is, traversed to grid ②, until at least one intersection point with the boundary of the first area or the second area is traversed. Specifically, whether the intersection point with the boundary of the first area or the second area is traversed can be confirmed based on the pixel value corresponding to the grid.
[0056] In one embodiment, the step of extending the first position point to the boundary of one of the first area or the second area may be the same as the step of extending the second position point to the boundary of the other of the first area or the second area. Figure 3 The schematic diagram shown will not be repeated here.
[0057] Figure 4 One embodiment of the present application adopts Figure 2 The effect diagram of the channel established by the mapping method shown in FIG. Figure 4 As shown, if the channel has no intersection with the second area C2, the current end point of the channel can be extended to the boundary of the second area C2, and then the channel has an intersection with the second area C2.
[0058] The mapping method provided in this embodiment includes extending the first position point to the boundary of one of the first region or the second region if the first position point is not in the first region and the second region; and / or extending the second position point to the boundary of the other of the first region or the second region if the second position point is not in the first region and the second region. In this way, even if the starting point or the ending point of the channel has no intersection with the first region and / or the second region, the channel can be further processed, thereby further improving the efficiency and stability of mapping.
[0059] Figure 5 : is a flow chart of a mapping method provided in the third embodiment of the present application. In one embodiment, the mapping method further includes:
[0060] Step S51: In response to the completion of establishing the boundary of the working area, if the straight-line distance between the start point and the end point of the boundary of the currently established working area is greater than a preset distance, the start point and the end point are connected by a straight line.
[0061] The preset distance may be a system default value or a user-set value.
[0062] In one embodiment, before step S51, the following may be included: step S50: when a trigger instruction to end establishing the boundary of the working area is received, or when it is detected that the mapping time is longer than a preset time, end establishing the boundary of the working area.
[0063] In other embodiments, the mapping method may include: detecting the straight-line distance between the starting point and the end point of the boundary of the established working area; when the straight-line distance is not less than a preset distance, executing a response to continue to establish the boundary of the working area; when the straight-line distance is less than the preset distance, executing a response to end the establishment of the working area. That is, in other embodiments, the boundary of the working area may also be continued to be established when the straight-line distance between the starting point and the end point of the boundary is not less than the preset distance. The establishment of the working area is terminated when the straight-line distance is less than the preset distance, thereby confirming that when the boundary of the working area is established, the straight-line distance between the starting point and the end point of the boundary of the working area is less than the preset distance.
[0064] The mapping method provided in this embodiment includes responding to the end of establishing the boundary of the working area. If the straight-line distance between the start point and the end point of the boundary of the currently established working area is greater than a preset distance, the start point and the end point are connected by a straight line, so that it can be confirmed that the boundary of the established working area is closed, thereby avoiding re-mapping, thereby improving the efficiency of mapping.
[0065] Figure 6 : is a flow chart of a mapping method provided in the third embodiment of the present application. In one embodiment, the mapping method includes:
[0066] Step S61: in response to generating multiple closed areas when establishing the boundary of the working area, obtaining a closed area with the largest outline among the multiple closed areas;
[0067] Step S62: Delete the other closed areas among the multiple closed areas except the closed area with the largest outline.
[0068] In one implementation, opencv (also known as open source database) can be used to extract the contour of the boundary. Specifically, the perimeter of each closed area can be calculated in opencv, and after comparing the perimeters of each closed area, only the closed area with the largest perimeter value, that is, the closed area with the largest contour, is retained, and other closed areas are deleted. Figure 7 As shown, in the closed area AB and the closed area CD, if the perimeter of the closed area CD is greater than that of the closed area AB, the closed area CD is retained and the closed area AB is deleted.
[0069] The mapping method provided in this embodiment includes generating multiple closed areas in response to establishing the boundary of the working area, and deleting other closed areas among the multiple closed areas except the closed area with the largest contour, thereby avoiding abnormalities caused by the automatic working system such as a lawn mower being unable to pass through a narrow point, and avoiding the influence of the mapping efficiency on the re-establishment of the boundary, thereby improving the mapping efficiency.
[0070] The present application also provides a working method for a self-moving robot, including: when located at the starting point of a channel, determining whether the channel is a magnetic channel, wherein a magnetic strip is arranged in the magnetic channel, and the magnetic strip extends from the starting point of the magnetic channel to the ending point of the magnetic channel; if the channel is not a magnetic channel, determining whether the positioning signal strength at the starting point of the channel is less than a signal strength threshold; if the positioning signal strength at the starting point of the channel is less than the signal strength threshold, waiting in place for a response.
[0071] The magnetic channel is a channel provided with a magnetic strip, and the magnetic strip of the magnetic channel extends from the starting point of the channel to the ending point of the magnetic channel. Figure 8In the long shadow channel shown, the long shadow channel is used to connect the lawn (area 1) and the lawn (area 2). The magnetic strips provided in the long shadow channel can prevent the problem that the positioning signal, such as the RTK signal strength, is weak due to the houses on both sides, which causes the machine, such as the lawn mower, to move abnormally (for example, park in the channel) when passing through the long shadow channel. Specifically, the long shadow channel can be a channel including a position where the positioning signal, such as the RTK signal strength, is weak (for example, less than a signal strength threshold) in the channel, or a channel defined by the user, etc.
[0072] Among them, waiting for a response on the spot may include: stopping moving and performing an alarm operation.
[0073] In one embodiment, when located at the starting point of the channel, after determining whether the channel is a magnetic channel, the working method of the self-moving robot further includes: if the channel is a magnetic channel, then when passing through the channel, moving in response according to the magnetic signal of the channel.
[0074] Specifically, for example, when passing through a channel, a movement response may be made directly according to the magnetic information of the channel, for example, ignoring the RTK signal.
[0075] In one embodiment, after determining whether the channel is a magnetic channel, the working method of the self-moving robot also includes: if the channel is a magnetic channel, then when located at the end point of the channel, determining whether the condition for leaving the end point of the channel is met; if the condition for leaving the end point of the channel is met, performing an operation to leave the end point of the channel; if the condition for leaving the end point of the channel is not met, waiting for a response in place.
[0076] The condition for leaving the channel end point may include that the channel end point is located in the working area, and the positioning signal strength, such as the RTK signal strength, is greater than a signal strength threshold.
[0077] Fig. 9 Schematic diagram of the structure of the mapping device provided by the first embodiment of the present application. Fig. 9 As shown, the mapping device includes a memory and a processor, the memory stores a computer program, and the processor can implement the above-mentioned mapping method and / or the working method of the self-moving robot when executing the computer program. The specific process and principle of mapping can be referred to the above description, which will not be repeated here.
[0078] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps described in the above method embodiments are implemented. For specific definitions of the steps, please refer to the definitions of the mapping method and / or the working method of the self-propelled robot in each method embodiment, which will not be repeated here.
[0079] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0080] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A mapping method, performed by a mapping device, characterized in that: The mapping method comprises: Acquire location information of the first area and location information of the second area; In response to an instruction to start establishing a channel connecting the first area and the second area, acquiring location information of a first location point; If the first position point is located in one of the first area or the second area, marking the first position point as the channel starting point; and / or In response to the instruction to end establishing the first area and the second area, acquiring location information of a second location point; If the second position point is located in the first area or the other one of the second area, the second position point is marked as the channel end point.
2. The mapping method according to claim 1, characterized in that: The mapping device is an autonomous robot or a mapping component.
3. The mapping method according to claim 2, characterized in that: The mapping method further includes: if it is determined that the first position point or the second position point is not in the first area and the second area, the mapping device moves to a third position point or a fourth position point to determine whether the third position point or the fourth position point is located in the first area or the second area.
4. The mapping method according to claim 3, characterized in that: If the mapping device is an autonomous robot, the mapping device autonomously moves to a third position point or a fourth position point.
5. The mapping method according to claim 3, characterized in that: If the mapping device is a mapping assembly, the mapping device is controlled to move to a third position point or a fourth position point.
6. The mapping method according to claim 1, characterized in that: The mapping method further comprises: If the first location point is not in the first area and the second area, extending the first location point to a boundary of the first area or the second area; and / or If the second position point is not in the first area and the second area, the second position point is extended to the boundary of the other one of the first area or the second area.
7. The mapping method according to claim 6, characterized in that: The extending the first position point to a boundary of the first area or the second area comprises: rasterizing a map, wherein the map at least includes location information of the first area, the second area, and location information of the first location point; Based on the first position point, traverse each grid adjacent to the first position point outward in a circular form; If the traversal does not reach an intersection point with the boundary of one of the first region or the second region, then expand the grid traversal outward in a circular form until the traversal reaches at least one intersection point with the boundary of the first region or the second region; Compare the straight-line distances between the first position point and each intersection point, select the intersection point with the smallest straight-line distance to the first position point as the nearest boundary point, and then extend the first position point to the nearest boundary point.
8. The mapping method according to claim 1, wherein: If the first position point is located in one of the first area or the second area, marking the first position point as a channel starting point includes: Acquire location information of a boundary between the first area and the second area, determine location information of points within the boundary between the first area and the second area according to the location information of the boundary, set pixel values of points within the boundary between the first area and the second area to one pixel value, and set pixel values of points outside the boundary between the first area and the second area to another pixel value; Determine, according to the location information of the first location point, a pixel value of a point in the map corresponding to the first location point; If the pixel value of the point corresponding to the first position point is the same as the pixel values of the first area and the second area, it is determined that the first position point is located in one of the first area and the second area.
9. The mapping method according to claim 1, wherein: If the first position point is located in one of the first area or the second area, marking the first position point as a channel starting point includes: If the first position point is located in one of the first area or the second area, and the positioning signal strength of the first position point is greater than a preset strength value, the first position point is confirmed as the starting point of the channel.
10. The mapping method according to claim 1, wherein: The mapping method further comprises: In response to finishing establishing the boundary of the working area, if a straight-line distance between a start point and an end point of the boundary of the currently established working area is greater than a preset distance, the start point and the end point are connected by a straight line.
11. The mapping method according to claim 1, wherein: The mapping method further comprises: Detect the straight-line distance between the start and end points of the established working area boundary; When the straight-line distance is not less than the preset distance, executing a response of continuing to establish the boundary of the working area; When the straight-line distance is less than the preset distance, a response may be executed to end establishing the boundary of the working area.
12. The mapping method according to claim 1, wherein: The mapping method comprises: In response to multiple closed areas being generated when establishing the boundary of the working area, other closed areas among the multiple closed areas except for the closed area with the largest outline are deleted.
13. A method for operating a self-moving robot, characterized in that: The working method of the self-moving robot comprises: When located at the starting point of the channel, determining whether the channel is a magnetic channel, wherein a magnetic strip is provided in the magnetic channel, and the magnetic strip extends from the starting point of the magnetic channel to the ending point of the magnetic channel; If the channel is not a magnetic channel, determining whether the positioning signal strength at the starting point of the channel is less than a signal strength threshold; If the positioning signal strength at the starting point of the channel is less than the signal strength threshold, the system waits for a response in situ.
14. The working method of the self-moving robot according to claim 13, characterized in that: When the robot is located at the starting point of the channel, after determining whether the channel is a magnetic channel, the working method of the self-moving robot further includes: If the channel is a magnetic channel, when passing through the channel, a movement response is performed according to a magnetic signal of the channel.
15. The working method of the self-moving robot according to claim 13, characterized in that: After determining whether the channel is a magnetic channel, the working method of the self-moving robot further includes: If the channel is a magnetic channel, when located at the end point of the channel, determining whether a condition for leaving the end point of the channel is met, wherein the condition for leaving the end point of the channel includes that the end point of the channel is located in the working area and the positioning signal strength is greater than a signal strength threshold; If the condition for leaving the channel end point is met, an operation of leaving the channel end point is performed; If the condition for leaving the end point of the channel is not met, wait for a response on the spot.
16. A mapping device, characterized in that: The mapping device includes a memory and a processor, the memory stores a computer program, and the processor can implement the mapping method according to any one of claims 1 to 12 when executing the computer program.
17. A computer storage medium, characterized in that: The computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the mapping method according to any one of claims 1 to 12.
