Positioning anchor point deployment method and device and readable storage medium

By obtaining a two-dimensional flat map in the working area of ​​the mobile device and marking the obstructions, and rasterizing it to determine the deployment location and number of positioning anchor points, the problem of positioning inaccuracy caused by obstructions in the positioning signal is solved and the positioning accuracy is improved. efficiency and reduce costs.

CN118710709APending Publication Date: 2024-09-27ECOVACS ROBOTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310261560.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the working area of ​​a mobile device, obstructions between positioning anchors and positioning tags weaken the positioning signal strength, thereby affecting the accuracy of positioning results. Existing technologies rely on experience to deploy positioning anchors, which can easily lead to high positioning costs and accuracy. Poor sex.

Method used

By obtaining a two-dimensional flat map of the work area, marking the area where the obstruction is located and rasterizing it, the deployment location and number of positioning anchor points are determined based on the raster map to ensure that the impact of the obstruction is considered and accurate deployment is achieved.

Benefits of technology

It improves positioning accuracy, reduces positioning costs, ensures that mobile devices can accurately position within the work area and reduces the occurrence of blank areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710709A
    Figure CN118710709A
Patent Text Reader

Abstract

The invention discloses a positioning anchor point deployment method and device, and a readable storage medium, an electronic device obtains a two-dimensional plane map of a working area, marks an area where a shielding object is located in the two-dimensional plane map, rasterizes the marked two-dimensional plane map to obtain a raster map, and deploys a positioning anchor point according to the raster map. And then determining the number and deployment positions of the to-be-deployed positioning anchor points according to the grid map. By adopting the scheme, the electronic equipment determines the deployment positions and the number according to the grid map marked with the shelters, namely, the influence of the shelters is considered when the number and the deployment positions of the positioning anchor points are determined, so that the positioning accuracy is improved and the positioning cost is reduced while the deployment positions and the number of the positioning anchor points are accurately deployed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of positioning technology, and in particular to a positioning anchor point deployment method, device and readable storage medium. Background Art

[0002] With the rapid development of artificial intelligence (AI) technology, various autonomous mobile devices are increasingly entering people's lives, such as logistics robots, sweeping robots, lawn mowing robots, and welcoming robots.

[0003] When a self-mobile device provides services to people, it needs to locate itself. To achieve accurate positioning, the self-mobile device often integrates multiple positioning methods for positioning. For example, the self-mobile device integrates the positioning results based on the environmental map positioning and the positioning results based on the positioning anchor points to obtain the final positioning result. Among them, in the positioning method based on the positioning anchor point, it is required to deploy multiple positioning anchor points (anchors) in the working area, set positioning tags (tags) on the self-mobile device, and measure the distance and achieve positioning through the positioning anchor points and positioning tags.

[0004] However, when there are occlusions between the positioning anchor and the positioning tag, the positioning result is inaccurate or even impossible to obtain. Therefore, how to deploy positioning anchors in the working area is considered an urgent problem to be solved. Summary of the invention

[0005] The present application provides a positioning anchor point deployment method, device and readable storage medium, which obtains a grid map by rasterizing a two-dimensional plane map of a working area, determines the deployment position and number of positioning anchor points according to the grid map, and achieves accurate deployment of the deployment positions of the positioning anchor points, while improving the positioning accuracy and reducing the positioning cost.

[0006] In a first aspect, an embodiment of the present application provides a method for deploying a positioning anchor point, including:

[0007] Get a 2D map of the work area;

[0008] Acquire an area where an obstruction is located on the two-dimensional plane map, wherein the obstruction is an object in the working area that can weaken the signal strength of the positioning signal transmitted and / or received by the positioning anchor point;

[0009] rasterizing the two-dimensional plane map to obtain a grid map of the working area;

[0010] The number and deployment positions of the positioning anchor points to be deployed are determined according to the grid map and the area where the obstruction is located.

[0011] In a second aspect, an embodiment of the present application provides a positioning anchor point deployment device, including:

[0012] A first acquisition module is used to acquire a two-dimensional plane map of the working area;

[0013] A second acquisition module is used to acquire an area where an obstruction is located on the two-dimensional plane map, where the obstruction is an object in the working area that can weaken the signal strength of the positioning signal transmitted and / or received by the positioning anchor point;

[0014] A rasterization module, used for rasterizing the two-dimensional plane map to obtain a raster map of the working area;

[0015] The processing module is used to determine the number and deployment positions of the positioning anchor points to be deployed according to the grid map and the area where the obstruction is located.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements the method described in the first aspect or various possible implementation methods of the first aspect.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the method described in the first aspect or various possible implementation methods of the first aspect.

[0018] In a fifth aspect, an embodiment of the present application provides a computer program product comprising a computing program, and when the computer program is executed by a processor, the method described in the first aspect or various possible implementation methods of the first aspect is implemented.

[0019] The positioning anchor point deployment method, device and readable storage medium provided in the embodiments of the present application, the electronic device obtains a two-dimensional plane map of the working area, marks the area where the obstruction is located in the two-dimensional plane map, rasterizes the marked two-dimensional plane map to obtain a grid map, and then determines the number and deployment positions of the positioning anchor points to be deployed according to the grid map. With this solution, the electronic device determines the deployment position and number based on the grid map marked with the obstruction, that is, the influence of the obstruction is taken into account when determining the number and deployment position of the positioning anchor points, so as to achieve accurate deployment of the deployment position and number of the positioning anchor points, improve the accuracy of positioning and reduce the positioning cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. 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 creative work.

[0021] Figure 1 It is a schematic diagram of the network architecture of the positioning anchor point deployment method provided in an embodiment of the present application;

[0022] Figure 2 is a schematic diagram of positioning based on positioning anchor points provided in an embodiment of the present application;

[0023] Figure 3 is a flow chart of a positioning anchor point deployment method provided in an embodiment of the present application;

[0024] Figure 4 It is a schematic diagram of the process of determining the signal coverage range in the positioning anchor point deployment method provided in an embodiment of the present application;

[0025] Figure 5 It is a schematic diagram of the theoretical coverage range and the actual signal coverage range in the positioning anchor point deployment method provided in an embodiment of the present application;

[0026] Fig. 6A It is a schematic diagram of the working area in the positioning anchor point deployment method provided in an embodiment of the present application;

[0027] Figure 6B yes Fig. 6A The corresponding two-dimensional plane map with the occluders marked;

[0028] Figure 6C Yes Figure 6B The two-dimensional plane map shown is a grid map after being rasterized;

[0029] Figure 7 is a deployment diagram of the positioning anchor points in the positioning anchor point deployment method provided in the embodiment of the present application;

[0030] Figure 8 A schematic diagram of a positioning anchor point deployment device provided in an embodiment of the present application;

[0031] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0033] When the robot enters an unfamiliar environment, it creates an environmental map by combining technologies such as Simultaneous Localization and Mapping (SLAM). It then locates itself based on the environmental map in order to plan or adjust the path and execute tasks.

[0034] Environmental map-based positioning is a visual positioning method. During the positioning process, when a mobile device moves from its current location to a new location, it uses visual sensors to obtain environmental information, compares the environmental information with a pre-created environmental map, and thus determines the position of the mobile device in the environmental map.

[0035] However, when objects without obvious features such as white walls appear around the self-moving device, the self-moving device cannot be positioned according to the environmental map. Moreover, in the visual positioning method, due to cumulative errors, etc., the positioning results are inaccurate, which in turn causes the self-moving device to deviate from the correct path. In addition, in the process of positioning based on the environmental map, if the self-moving device is hijacked, when the self-moving device returns to the ground, uncontrollable drift errors will occur in the positioning, making the positioning results based on the environmental map inaccurate or impossible to obtain. Among them, the hijacking of the self-moving device means that the self-moving device is moved, suspended in the air, or dragged over a large area.

[0036] In order to solve the problem of inaccurate visual positioning or inability to obtain positioning results, mobile devices often combine visual positioning with other absolute positioning information for positioning. Among them, absolute positioning information includes but is not limited to the Global Positioning System (GPS), Real-time kinematic (RTK), 3 or more positioning anchor points, etc. The positioning anchor point is also called Ultra Wide Band (UWB) base station.

[0037] When a self-moving device combines visual positioning and positioning anchors for positioning, it is necessary to set a positioning tag on the self-moving device and deploy three or more positioning anchors in the working area in advance. The number of positioning anchors is related to the area of ​​the working area, the transmission distance of the positioning signal emitted by the positioning anchors, etc.

[0038] If obstructions are not considered, the signal coverage of a positioning anchor point is a circular area with itself as the center and the transmission distance as the radius. However, when there are obstructions such as large trees and buildings between the positioning anchor point and the positioning tag, the obstructions will block the positioning signal emitted by the positioning anchor point, making the transmission distance of the positioning signal shorter. At this time, the signal coverage of the positioning anchor point is no longer a regular circle. Therefore, when deploying a positioning anchor point, it is necessary to comprehensively consider the signal coverage of the positioning anchor point and the surrounding environment.

[0039] In the traditional process of deploying positioning anchor points, users determine the deployment location and number based on experience, and the deployment location and number obtained based on experience are often inaccurate. When the number of positioning anchor points estimated based on experience is greater than the actual number required, users are required to purchase more positioning anchor points, resulting in high positioning costs. When the estimated number of positioning anchor points is less than the actual number required, the positioning anchor points cannot cover the entire working area, that is, there is at least one blank area in the working area, which is outside the signal coverage range of any positioning anchor point. If the self-mobile device is subsequently located in the blank area, positioning cannot be completed based on the positioning anchor points.

[0040] In addition, even if the user estimates a reasonable number based on experience, if the deployment position is unreasonable, it will also lead to blank areas in the working area. If the self-mobile device is located in the blank area, it will not be able to complete the positioning based on the positioning anchor point.

[0041] Based on this, the embodiments of the present application provide a positioning anchor point deployment method, device and readable storage medium, which marks the area where the obstruction is located on a two-dimensional plane map of the working area and rasterizes it, determines the deployment position and number of the positioning anchor points according to the grid map, and achieves accurate deployment of the deployment position and number of the positioning anchor points, while improving the positioning accuracy and reducing the positioning cost.

[0042] The positioning anchor point deployment method provided in the embodiment of the present application is executed by an electronic device, which obtains a two-dimensional plane map of the working area and marks obstructions, then rasterizes the marked two-dimensional plane map to obtain a grid map of the working area, and then determines the deployment position and number of positioning anchor points in the working area based on the grid map.

[0043] The electronic device described in the embodiments of the present application may be a terminal device or a server. When the electronic device is a terminal device, the electronic device may be hardware or software. When the electronic device is hardware, the electronic device may be, for example, a mobile phone, a tablet computer, an e-book reader, a laptop computer, a desktop computer, etc. When the electronic device is software, it may be installed in the hardware devices listed above. In this case, the electronic device may be, for example, a plurality of software modules or a single software module, etc., which is not limited by the embodiments of the present application.

[0044] When the electronic device is a server, the server can be software or hardware. When the server is hardware, the server is a single server or a distributed server cluster composed of multiple servers. When the server is software, it can be multiple software modules or a single software module, etc., which is not limited by the embodiments of the present application.

[0045] In the embodiment of the present application, the electronic device determines the number and deployment positions of the positioning anchor points for the working area and outputs them. Afterwards, the user determines the deployment positions in the working area according to the output of the electronic device and deploys a corresponding number of positioning anchor points.

[0046] After the positioning anchor points are deployed, the self-mobile device moves in the work area and creates an environment map based on SLAM technology. At the same time, the position of each positioning anchor point is determined and stored. For example, the position coordinates of each positioning anchor point in the geodetic coordinate system are determined and stored. When moving in the work area later, the environment map and the positioning anchor points are combined for positioning or repositioning.

[0047] A self-moving device refers to an electronic device that can move autonomously and can be intelligently controlled. For example, the self-moving device is a lawn mower robot that can automatically walk on the lawn to mow the lawn. Another example is an automatic vacuum cleaner that can automatically walk on the ground and vacuum. Another example is a cleaning robot that can automatically walk on the ground, sweep and mop the floor while vacuuming.

[0048] It should be noted that the self-moving device described in the embodiment of the present application is not limited to a lawn mower robot, an automatic vacuum cleaner or a cleaning robot, but may also be other types of devices, such as an automatic spraying device, etc. Through the self-moving device, unattended operation of various tasks can be achieved.

[0049] Figure 1 This is a schematic diagram of the network architecture of the positioning anchor point deployment method provided in the embodiment of the present application. Figure 1 The network architecture includes: an electronic device 11 and a terminal device 12, wherein an application (APP) from a mobile device is installed on the terminal device 12. A network connection is established between the electronic device 11 and the terminal device 12.

[0050] There are work restricted areas such as pools and flower beds in the work area. For the sake of clarity, the boundary of the work area is called the outer boundary, and the boundary of the work restricted area is called the inner boundary. Self-moving equipment must work within the outer boundary and outside the inner boundary.

[0051] When the deployment location and number of positioning anchor points need to be determined for the work area, the user opens the APP on the terminal device and calls up the shooting interface through the APP. After that, the user walks along the boundary of the work area with the terminal device in hand, and the terminal device shoots video to obtain multiple frames of environmental images. When the user walks along the boundary, he first walks along the outer boundary, and then walks along each inner boundary. Alternatively, after walking along each inner boundary, the user walks along the outer boundary.

[0052] After the edge tracking is completed, the user clicks upload to upload the multiple frames of environment images to the electronic device 11. The electronic device 11 creates a two-dimensional plane map of the working area based on the multiple frames of environment images, marks the area where the obstruction is located on the two-dimensional plane map, and then rasterizes the marked two-dimensional plane map to obtain a grid map. Finally, the electronic device determines the deployment position and number of positioning anchor points based on the grid map.

[0053] Above Figure 1 In the illustrated architecture, the electronic device 11 is a server, and the terminal device 12 is a mobile phone. However, the present application embodiment is not limited thereto, and in other feasible implementations, the electronic device 11 may also be other terminal devices, and the terminal device 12 may be a tablet computer, etc. Alternatively, there is no need to set up the electronic device 11, and the terminal device 12 collects environmental images and determines the number and deployment positions of the positioning anchor points according to the environmental images.

[0054] Although the above Figure 1 The illustrated architecture is based on an example in which a user holds a terminal device 12 and moves along the outer boundary and inner boundary of a working area and captures a video to obtain multiple frames of environmental images, however, the present application embodiment is not limited thereto. For example, in other feasible implementations, the mobile device may also move along the outer boundary and inner boundary of the working area and capture environmental images, and then transmit the environmental images to the electronic device 11.

[0055] For another example, the user uses a remote control to remotely control the self-moving device, so that it moves along the outer and inner boundaries of the working area and collects environmental images. For another example, the self-moving device follows the user to move along the working area and collect environmental images. For another example, the user uses a remote control or a mobile phone to generate a light spot of a preset shape in front of the self-moving device, and the self-moving device moves along the edge following the light spot, and collects environmental images during the movement.

[0056] After the electronic device determines the number and deployment positions of the positioning anchor points, the user deploys the positioning anchor points in the working area according to the number and deployment positions. Afterwards, the mobile device moves in the working area and locates itself based on the positioning anchor points.

[0057] The technology based on positioning anchor point positioning uses time of fly (TOF) ranging, which is a two-way ranging technology. The positioning anchor point transmits a positioning signal, and the timestamp of the transmission time is a1. The positioning signal carries the timestamp a1. The positioning tag receives the positioning signal, and the receiving time is timestamp b1. At the same time, it transmits a response signal at timestamp b1. The positioning anchor point receives the response signal, and the receiving time is timestamp a2. The mobile device determines the distance between the mobile device and the positioning anchor point based on the time length between timestamp a1 and timestamp b1 and the transmission speed of the positioning signal.

[0058] Figure 2 This is a schematic diagram of positioning based on positioning anchor points provided in an embodiment of the present application. Figure 2 , at least three positioning anchor points are deployed in the working area, such as UWB1, UWB2 and UWB3 as shown by the black filled circles in the figure, and the self-mobile device is shown as the gray filled circle in the figure, and a positioning tag is set on the self-mobile device. The direction of travel of the self-mobile device is shown by the black circle in the figure, and the signal coverage range of each positioning anchor point is a circular area. After the positioning anchor points are deployed in the working area, the positions of UWB1, UWB2 and UWB3 are known to the self-mobile device. When the self-mobile device is located in the intersection area of ​​the signal coverage range of the three UWBs, the self-mobile device can detect the three positioning signals, and then calculate the distance X1 between the self-mobile device and UWB1, the distance X2 between the self-mobile device and UWB2, and the distance X3 between the self-mobile device and UWB3. Afterwards, the self-mobile device calculates the position of the self-mobile device in the working area based on the position coordinates of each UWB and X1, X2 and X3.

[0059] Below, based on Figure 1 The network architecture shown in the figure is used to describe in detail the method for deploying the positioning anchor points described in the embodiment of the present application. Figure 3 , Figure 3 1 is a flow chart of a method for deploying a positioning anchor point provided by an embodiment of the present application. The execution subject of this embodiment is an electronic device, and this embodiment includes:

[0060] 301. Obtain a two-dimensional plane map of the working area.

[0061] In an embodiment of the present application, the electronic device can flexibly obtain a two-dimensional plane map of the working area. In one method, the electronic device obtains a two-dimensional environmental image of the working area and generates a two-dimensional plane map based on the environmental image. The environmental image is, for example, an image captured by a user holding a terminal device such as a mobile phone while walking along the boundary of the working area.

[0062] In another way, a depth sensor is set on the terminal device, and the depth sensor is also called a 3D sensor. When the terminal device is along the outer and inner boundaries of the working area, the depth sensor is used to collect three-dimensional point cloud data and upload it to the electronic device. When the depth sensor is implemented based on three-dimensional laser scanning, each point cloud data includes three-dimensional coordinates (X, Y, Z) and laser reflection intensity. When the depth sensor is implemented based on the principle of photogrammetry, each point cloud data includes three-dimensional coordinates (X, Y, Z) and color information, such as red, green, blue (RGB) values, grayscale values, etc. Among them, the coordinate of the Z axis represents the height of the point cloud data.

[0063] After the electronic device acquires the three-dimensional point cloud data, it generates a three-dimensional map of the working area according to the three-dimensional point cloud data, and then generates a two-dimensional plane map according to the three-dimensional map.

[0064] In another method, the user holds a terminal device and moves along the boundary of the work area and shoots a video to obtain multiple frames of environmental images. After walking along the boundary, the terminal device uploads the multiple frames of environmental images to the electronic device. Alternatively, the terminal device collects environmental images and uploads them to the electronic device. After the electronic device obtains the multiple frames of environmental images, it reconstructs a three-dimensional map of the work area based on the multiple frames of environmental images. Then, the two-dimensional plane map is generated based on the three-dimensional map.

[0065] In this method, the electronic device infers 3D information based on a series of two-dimensional environmental images and reconstructs a three-dimensional map of the working area. For example, the electronic device uses the structure from motion (SFM) method to reconstruct the three-dimensional map. In the SFM method, a three-dimensional reconstruction model is pre-deployed on the electronic device. The input of the three-dimensional reconstruction model is the environmental image within a period of time, and the output is a three-dimensional map of the working area.

[0066] This solution eliminates the need to collect point cloud data through expensive depth cameras. Instead, a three-dimensional map is reconstructed based on the two-dimensional environment image and a two-dimensional plane map is generated, which is low-cost.

[0067] In another embodiment, the user controls the mobile device to move along the boundary of the work area and collect the environment image. After the movement along the boundary is completed, the mobile device sends the environment image to the electronic device.

[0068] 302. Acquire an area where an obstruction is located on the two-dimensional plane map, where the obstruction is an object in the working area that can weaken the signal strength of the positioning signal transmitted and / or received by the positioning anchor point.

[0069] In the embodiment of the present application, an obstruction refers to an object that can reduce the signal strength of the positioning signal sent and / or received by the positioning anchor point, resulting in a shorter transmission distance of the positioning signal. The reduction range is related to the material and floor area of ​​the obstruction. For example, a brick wall reduces the positioning signal to a greater extent than a tree.

[0070] When the self-mobile device is within the signal coverage of the positioning anchor point, if there is no obstruction between the positioning anchor point and the positioning tag, the positioning tag receives the positioning signal from the positioning anchor point, and the self-mobile device performs ranging and positioning based on the positioning signal. When an obstruction is between the positioning anchor point and the positioning tag, the positioning tag cannot receive the positioning signal or receives a relatively weak positioning signal due to the presence of the obstruction, resulting in the self-mobile device being unable to locate.

[0071] To this end, after the electronic device creates a two-dimensional plane map, the location of the obstruction is marked on the two-dimensional plane map, so as to consider the influence of the obstruction when subsequently determining the number of positioning anchor points and the deployment position.

[0072] 303. Rasterize the two-dimensional plane map to obtain a grid map of the working area.

[0073] After the electronic device obtains the two-dimensional plane map of the working area, it rasterizes the two-dimensional plane map. The size of each grid is, for example, 1 meter × 1 meter, 1.5 meters × 1.5 meters, 2 meters × 2 meters, etc., which is not limited in the embodiment of the present application. Since the area where the obstruction is located is marked in the two-dimensional plane map. Therefore, after rasterization, the grid map contains two grids, namely the first grid and the second grid. The first grid is a grid where there is no obstruction, and the second grid is a grid where there is an obstruction.

[0074] 304. Determine the number and deployment positions of positioning anchor points to be deployed according to the grid map and the area where the obstruction is located.

[0075] In the embodiment of the present application, the positioning anchor points are usually deployed in the first grid. The electronic device determines the first grid from the grid map, and determines the target grid from the first grid. The target grid is the grid where the positioning anchor points are deployed, and the number of target grids is the number of positioning anchor points.

[0076] In the method for deploying positioning anchor points provided in the embodiment of the present application, the electronic device obtains a two-dimensional plane map of the working area, obtains and marks the area where the obstruction is located in the two-dimensional plane map, rasterizes the annotated two-dimensional plane map to obtain a grid map, and then determines the number and deployment positions of the positioning anchor points to be deployed according to the grid map. With this scheme, the electronic device determines the deployment position and number according to the grid map with the obstruction marked, that is, the influence of the obstruction is taken into account when determining the number and deployment position of the positioning anchor points, so as to achieve accurate deployment of the deployment position and number of the positioning anchor points, improve the accuracy of positioning and reduce the positioning cost.

[0077] The following describes in detail how the electronic device determines the number and deployment positions of positioning anchor points from the grid map.

[0078] In one method, the electronic device determines a target grid from a first grid included in a grid map, the first grid being a grid without an obstruction in the grid map, and the target grid satisfies the following conditions: when positioning anchor points are deployed in each of the target grids, at least three positioning anchor points can be detected when the self-mobile device is located at any position in the working area, and the number of the target grids is the least. Afterwards, the electronic device determines the number and deployment positions of the positioning anchor points in the working area according to the number of the target grids and the positions of each of the target grids.

[0079] In this way, after the electronic device determines the first grid, it can flexibly determine the target grid from the first grid, that is, the grid for deploying the positioning anchor point. For example, for each first grid, the electronic device determines the actual signal coverage range when the positioning anchor point is located in the first grid. Then exclude a part of the first grids until the number of remaining first grids is the smallest, and the remaining first grids are used as target grids. The exclusion condition is: when the first grid does not deploy the positioning anchor point, at least three positioning anchor points can be detected when the self-mobile device is located in any first grid.

[0080] In addition, since the working area is often complex, if the self-mobile device is guaranteed to detect at least three positioning anchor points in any first grid, the number of positioning anchor points will be huge and the positioning cost will be high. For this reason, an area threshold can also be set, such as 80%, that is, as long as the self-mobile device can detect at least three positioning anchor points at any position in 80% of the working area.

[0081] For another example, the electronic device randomly determines a first grid from multiple first grids, uses it as the first target grid, and determines the signal coverage range when the positioning anchor point is located in the target grid. Then, the first grid located in the signal coverage range is excluded from the grid map; the next target grid is determined from the remaining first grids, until at least three positioning anchor points can be detected when the self-mobile device is located in any first grid, and the number of the target grids is the least.

[0082] With this solution, the electronic device does not need to determine the signal coverage of the positioning anchor point for each first grid. Instead, each time a target grid is determined, a part of the first grid is excluded and then the target grid is determined, thereby achieving the purpose of quickly determining the target grid.

[0083] Normally, if obstructions are not considered, the signal coverage range of a positioning anchor point is a circular area with itself as the center and the transmission distance as the radius. The transmission distance is, for example, 30 meters, 50 meters, etc., which is related to the capability of the positioning anchor point. The closer to the edge of the circular area, the weaker the strength of the positioning signal. For example, the theoretical coverage range of a positioning anchor point is a circular area with a radius of 50 meters. The size of each grid in the grid map is 1 meter × 1 meter. The signal strength at the center of the circle is 100. The signal strength decays by 5 every time the positioning signal passes through a grid. Then the signal strength at the edge of the circular area is 0. In practice, in order to avoid blank areas in the working area, that is, areas that are not covered by any positioning anchor point, if there are no other positioning anchor points between the two positioning anchor points, the distance between the two positioning anchor points is close, so that the signal coverage ranges of the two positioning anchor points intersect. When an obstruction appears in the theoretical coverage area of ​​a positioning anchor point, the theoretical coverage area of ​​the positioning anchor point is no longer a regular circle.

[0084] Figure 4 Schematic diagram of the process of determining signal coverage in the positioning anchor point deployment method provided in an embodiment of the present application. This embodiment includes:

[0085] 401. Determine whether there is a second grid within the theoretical coverage range of the positioning anchor point. When the second grid exists within the theoretical coverage range, execute step 402; when the second grid does not exist within the theoretical coverage range, execute step 404. The second grid is a grid with an obstruction in the grid map;

[0086] The theoretical coverage range is a circular area with the target grid as the center and the theoretical transmission distance of the positioning signal as the radius. The theoretical transmission distance is, for example, 30 meters, 50 meters, etc., which depends on the model of the positioning anchor point. After the electronic device simulates the theoretical coverage range, it determines whether there is a second grid with an obstruction within the theoretical coverage range.

[0087] 402. Determine an actual transmission distance of the positioning signal on the ray where the second grid exists.

[0088] For each ray with the positioning anchor point as an endpoint, the electronic device shortens the theoretical transmission distance of the positioning signal of the positioning anchor point in the direction of the ray according to the second grid located on the ray to obtain the actual transmission distance of the positioning signal of the positioning anchor point in the direction of the ray.

[0089] Figure 5 This is a schematic diagram of the theoretical coverage range and the actual signal coverage range in the positioning anchor point deployment method provided in the embodiment of the present application. Figure 5The black filled circle at the center of the circle represents the positioning anchor point, the solid circle represents the theoretical coverage of the positioning anchor point, and the black rectangles on the rays L1, L2, L3, and L4 represent occluders. The closed dotted line represents the actual signal coverage of the positioning anchor point when the occluder is taken into account.

[0090] When the positioning signal encounters an obstruction, the signal strength is attenuated. For example, an attenuation amplitude is pre-set, and the attenuation amplitude is, for example, 5. On a ray, each time the positioning signal encounters an obstruction, the signal strength is attenuated by 5. For another example, different attenuation amplitudes are pre-set for different obstructions according to the material of the obstruction. For example, the attenuation amplitude corresponding to a large tree is 3, and the attenuation amplitude corresponding to a brick wall is 5.

[0091] If there is no obstruction, the theoretical transmission distance in the direction of the ray corresponds to the largest number of grids. When there is an obstruction in the direction of the ray, the attenuation amplitude of the obstruction corresponds to one grid number. For example, if the attenuation amplitude is 5, it corresponds to 5 grids; if the attenuation amplitude is 3, it corresponds to 3 grids. Assuming that the theoretical transmission distance corresponds to 50 grids, each grid is 1 meter × 1 meter, and there are 2 obstructions in the direction of a ray, with attenuation amplitudes of 5 and 3 respectively, the actual transmission distance of the positioning signal on this ray is 42 grids. The 42 grids are 42 continuous grids along the ray direction from the center of the circle.

[0092] 403. Determine, according to the actual transmission distance of the positioning signal of the positioning anchor point in each of the ray directions, the signal coverage range when the positioning anchor point is located in the target grid.

[0093] like Figure 5 As shown, the actual signal coverage range when the positioning anchor point is located at the target grid is the area formed by the closed dotted line. In order to ensure the signal strength, the dotted area can also be retracted, and the retracted area is used as the signal coverage range when the positioning anchor point is located at the target grid.

[0094] 404. Determine that the actual signal coverage range when the positioning anchor point is located at the target grid is the theoretical coverage range, and then execute step 403.

[0095] With this solution, when there is a second grid with an obstruction within the theoretical coverage range, the actual signal coverage range is determined based on the number of second grids, etc., thereby achieving the purpose of accurately determining the signal coverage range of the positioning anchor point located at the target grid.

[0096] In another mode, when the electronic device determines the target grid from the first grid included in the grid map, the electronic device first determines the grid located at the boundary of the working area and the grid located around the second grid from the first grid of the grid map, wherein the second grid is the grid with an obstruction in the grid map. Then, the target grid is determined from the grid located at the boundary of the working area and the grid located around the second grid.

[0097] Fig. 6A It is a schematic diagram of the working area in the positioning anchor point deployment method provided in an embodiment of the present application. Figure 6B yes Fig. 6A The corresponding two-dimensional plane map with the occluders marked. Figure 6C Yes Figure 6B The two-dimensional plane map shown is a raster map after being rasterized.

[0098] Please refer to Fig. 6A ,The obstructions in the work area include three trees and a house. Figure 6B The area indicated by the dotted line is where the obstruction is located. The dotted line can be regarded as the inner boundary of the working area. Figure 6B After the two-dimensional plane map marked as shown is rasterized, the resulting raster map is as follows Figure 6C shown. Figure 6C In the figure, the grid inside the outer boundary and outside the dashed line but not including the dashed line is the first grid, and the grid inside the dashed line and including the dashed line is the second grid.

[0099] Electronic equipment gets Figure 6C After the grid map shown in the figure is obtained, the grid located on the outer boundary of the working area and the grid located outside the dotted line and surrounding the dotted line are screened out from the first grids of the grid map. Then, the target grid is determined from the multiple first grids on the outer boundary of the working area and the multiple first grids located around the second grid. For the sake of clarity, the grid on the outer boundary of the working area is referred to as the boundary grid, and the grids around the second grid are referred to as the surrounding grids.

[0100] In the process of determining the target grid, the electronic device randomly determines a grid from the boundary grid and the surrounding grid as the first target grid, and determines the signal coverage range when the positioning anchor point is located at the target grid. Then, the first grid within the signal coverage range is excluded from the boundary grid and the surrounding grid, and the target grid is determined from the remaining boundary grids and the surrounding grids. The target grid is shown as a black filled grid in the figure.

[0101] With this solution, the electronic device determines the boundary grid and the surrounding grids from the first grid, and then determines the target grid from the boundary grid and the surrounding grids, thereby achieving the purpose of quickly and accurately determining the target grid.

[0102] Optionally, in the above embodiment, after the electronic device determines the number and deployment positions of the positioning anchor points in the working area based on the grid map and the area where the obstruction is located, it also outputs a deployment map, which displays the deployment positions of the positioning anchor points to be deployed and the number of positioning anchor points to be deployed.

[0103] For example, the electronic device sends the deployment map to the user's mobile phone. After the user opens the APP on the mobile device on the mobile phone, the deployment map is displayed on the APP interface. After that, the user deploys the positioning anchor points in the work area according to the APP display. The deployment map is as follows: Figure 6C or Figure 7 shown. Figure 7 It is a deployment diagram of positioning anchor points in the positioning anchor point deployment method provided in an embodiment of the present application.

[0104] like Figure 7 As shown, the deployment diagram is a two-dimensional image, which shows the positions of the occluders and each positioning anchor point.

[0105] With this solution, the electronic device outputs a deployment map, which facilitates users to quickly and accurately deploy positioning anchor points in the work area, thereby improving deployment efficiency.

[0106] Optionally, in the above embodiment, the electronic device identifies the obstruction and marks it on the two-dimensional plane map. The identification method includes but is not limited to the following methods:

[0107] Method a: Recognize the two-dimensional environment image.

[0108] In this method, images of various obstructions are pre-deployed on the electronic device, such as images of various trees, images of various houses, etc. During the obstruction recognition process, the electronic device extracts the object from the environmental image and determines the similarity between the object and the image of each obstruction. If the similarity between the extracted object and the image of a certain obstruction exceeds the preset similarity, it indicates that there is an obstruction in the environmental image. The electronic device further determines the position of the point cloud data of the environmental image in the three-dimensional map. Afterwards, the electronic device determines the position of the obstruction on the two-dimensional plane map and marks it based on the position of the point cloud data of the environmental image in the three-dimensional map.

[0109] In this method, only image recognition is performed on the two-dimensional environment image to identify the occluders in the environment image. When marking, the position of the occluders needs to be determined based on the three-dimensional point cloud data.

[0110] In addition, during the process of identifying an obstruction, each time the electronic device extracts an object, it generates a rectangular frame for the object, and the rectangular frame at least contains the extracted object. Afterwards, the electronic device determines whether the extracted object is an obstruction based on the rectangular frame. For example, when the length of the rectangular frame is greater than a preset length and the width is greater than a preset width, the extracted object is considered to be an obstruction. On the contrary, if the length of the rectangular frame is less than or equal to the preset length, and / or, if the width of the rectangular frame is less than or equal to the preset width, the extracted object is considered not to be an obstruction.

[0111] With this solution, the electronic device performs image recognition on the two-dimensional environment image, identifies the obstruction and marks it in the two-dimensional plane map, thereby achieving the purpose of quickly and accurately marking the obstruction.

[0112] Method b: recognize three-dimensional point cloud data.

[0113] In the method, for each object in the working area, the electronic device extracts the point cloud data of the object from the three-dimensional point cloud data. A cuboid is generated for the object, and the cuboid contains at least all the point cloud data of the extracted object. Then, the electronic device determines whether the object is an obstruction based on the cuboid. For example, when the length of the cuboid is greater than the preset length, the width is greater than the preset width, and the height is greater than the preset height, the extracted object is considered to be an obstruction. On the contrary, if the length of the cuboid is less than or equal to the preset length, the width of the cuboid is less than or equal to the preset width, and / or the height of the cuboid is less than or equal to the preset height, the electronic device considers that the extracted object is not an obstruction.

[0114] For each obstruction, the electronic device determines the position of the point cloud data corresponding to the obstruction in the three-dimensional map. Then, the electronic device determines the position of the obstruction on the two-dimensional plane map and marks it according to the position of the point cloud data corresponding to the obstruction in the three-dimensional map.

[0115] With this solution, electronic devices identify three-dimensional point cloud data, identify obstructions and mark them on a two-dimensional map with high speed and accuracy.

[0116] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0117] Figure 8 A schematic diagram of a positioning anchor point deployment device provided in an embodiment of the present application. The positioning anchor point deployment device 800 comprises: a first acquisition module 81 , a second acquisition module 82 , a gridding module 83 and a processing module 84 .

[0118] A first acquisition module 81 is used to acquire a two-dimensional plane map of the working area;

[0119] A second acquisition module 82 is used to acquire an area where an obstruction is located on the two-dimensional plane map, where the obstruction is an object in the working area that can weaken the signal strength of the positioning signal transmitted and / or received by the positioning anchor point;

[0120] A rasterization module 83, used for rasterizing the two-dimensional plane map to obtain a raster map of the working area;

[0121] The processing module 84 is used to determine the number and deployment positions of the positioning anchor points to be deployed according to the grid map and the area where the obstruction is located.

[0122] In a feasible implementation, the processing module 84 is used to determine the target grid from the first grid contained in the grid map, the first grid is a grid without any obstructions in the grid map, and the target grid satisfies the following conditions: when positioning anchor points are deployed in each of the target grids, at least three positioning anchor points can be detected when the self-mobile device is located in any first grid, and the number of the target grids is the least; according to the number of the target grids and the position of each of the target grids, the number and deployment positions of the positioning anchor points to be deployed are determined.

[0123] In a feasible implementation, when the processing module 84 determines the target grid from the first grid included in the grid map, it is used to determine one target grid from multiple first grids each time; determine the signal coverage range when the positioning anchor point is located at the target grid; exclude the first grid located in the signal coverage range from the grid map; determine the next target grid from the remaining first grids, until at least three positioning anchor points can be detected when the self-mobile device is located at any first grid, and the number of the target grids is the least.

[0124] In a feasible implementation, when the processing module 84 determines the signal coverage range when the positioning anchor point is located at the target grid, it is used to determine whether there is a second grid within the theoretical coverage range of the positioning anchor point, and the second grid is a grid with an obstruction in the grid map; when the second grid exists within the theoretical coverage range, for each ray with the positioning anchor point as an endpoint, according to the second grid located on the ray, the actual transmission distance of the positioning signal of the positioning anchor point in the direction of the ray is determined; according to the actual transmission distance of the positioning signal of the positioning anchor point in each of the ray directions, the signal coverage range when the positioning anchor point is located at the target grid is determined.

[0125] In a feasible implementation, the processing module 84 is used to determine the grid located at the boundary of the working area and the grids located around the second grid from the first grid of the grid map, where the second grid is the grid where there are obstructions in the grid map; and determine the target grid from the grid located at the boundary of the working area and the grids located around the second grid.

[0126] In a feasible implementation, the first acquisition module 81 is used to acquire multiple frames of environmental images collected when the terminal device moves along the boundary of the working area; reconstruct a three-dimensional map of the working area based on the multiple frames of environmental images; and generate the two-dimensional plane map based on the three-dimensional map.

[0127] In a feasible implementation method, the standard module is used to determine the position of the point cloud data corresponding to the occlusion in the three-dimensional map for each frame of the environmental image in the environmental map when there is an occlusion in the environmental image; and determine and mark the position of the occlusion on the two-dimensional plane map based on the position of the point cloud data corresponding to the occlusion in the three-dimensional map.

[0128] In a feasible implementation, the standard module is used to determine the point cloud data corresponding to the occluder from the point cloud data corresponding to the three-dimensional map; determine the position of the point cloud data corresponding to the occluder in the three-dimensional map; determine the position of the occluder on the two-dimensional plane map and mark it according to the position of the point cloud data corresponding to the occluder in the three-dimensional map

[0129] In a feasible implementation, the processing module 84 is further configured to output a deployment diagram, wherein the deployment locations and quantities of the positioning anchor points to be deployed are displayed on the deployment diagram.

[0130] The positioning anchor point deployment device provided in the embodiment of the present application can execute the actions of the electronic device in the above-mentioned embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0131] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device 900 includes:

[0132] Processor 901 and memory 902;

[0133] The memory 902 stores computer instructions;

[0134] The processor 901 executes the computer instructions stored in the memory 902, so that the processor 901 executes the positioning anchor point deployment method implemented by the electronic device as above.

[0135] The specific implementation process of the processor 901 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0136] Optionally, the electronic device 900 further includes a communication component 903 . The processor 901 , the memory 902 and the communication component 903 may be connected via a bus 904 .

[0137] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed by a processor, they are used to implement the positioning anchor point deployment method implemented by the electronic device as above.

[0138] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the positioning anchor point deployment method implemented by the above electronic device.

[0139] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0140] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for deploying a positioning anchor point, characterized in that: include: Get a 2D map of the work area; Acquire an area where an obstruction is located on the two-dimensional plane map, wherein the obstruction is an object in the working area that can weaken the signal strength of the positioning signal transmitted and / or received by the positioning anchor point; rasterizing the two-dimensional plane map to obtain a grid map of the working area; The number and deployment positions of the positioning anchor points to be deployed are determined according to the grid map and the area where the obstruction is located.

2. The method according to claim 1, characterized in that The step of determining the number and deployment positions of the positioning anchor points to be deployed according to the grid map and the area where the obstruction is located includes: Determine a target grid from a first grid included in the grid map, the first grid being a grid without an obstruction in the grid map, and the target grid satisfies the following conditions: when positioning anchor points are deployed in each of the target grids, at least three positioning anchor points can be detected when the self-mobile device is located in any first grid, and the number of the target grids is the least; The number and deployment positions of the positioning anchor points to be deployed are determined according to the number of the target grids and the position of each of the target grids.

3. The method according to claim 2, characterized in that The step of determining a target grid from a first grid included in the grid map comprises: Determine a target grid from a plurality of first grids each time; Determine the signal coverage range when the positioning anchor point is located at the target grid; Excluding a first grid within the signal coverage range from the grid map; The next target grid is determined from the remaining first grids until at least three positioning anchor points can be detected when the self-mobile device is located in any first grid, and the number of the target grids is the least.

4. The method according to claim 3, characterized in that The determining of the signal coverage range when the positioning anchor point is located at the target grid includes: Determine whether there is a second grid within the theoretical coverage range of the positioning anchor point, where the second grid is a grid where an obstruction exists in the grid map; When the second grid exists within the theoretical coverage range, for each ray with the positioning anchor point as an endpoint, determine the actual transmission distance of the positioning signal of the positioning anchor point in the direction of the ray according to the second grid located on the ray; The signal coverage range of the positioning anchor point when the positioning anchor point is located in the target grid is determined according to the actual transmission distance of the positioning signal of the positioning anchor point in each of the ray directions.

5. The method according to claim 2, characterized in that: The step of determining a target grid from a first grid included in the grid map comprises: Determine a grid located at a boundary of the working area and a grid located around a second grid from the first grid of the grid map, wherein the second grid is a grid where an obstruction exists in the grid map; A target grid is determined from the grid located at the boundary of the working area and the grid located around the second grid.

6. The method according to any one of claims 1 to 5, characterized in that: The step of obtaining a two-dimensional plane map of the working area includes: Acquire multiple frames of environment images collected when the terminal device moves along the boundary of the working area; Reconstructing a three-dimensional map of the working area according to the multiple frames of environmental images; The two-dimensional plane map is generated according to the three-dimensional map.

7. The method according to claim 6, characterized in that The step of marking the area where the obstruction is located on the two-dimensional plane map includes: For each frame of the environment image in the environment map, when there is an occluder in the environment image, determining the position of the point cloud data corresponding to the occluder in the three-dimensional map; According to the position of the point cloud data corresponding to the obstruction in the three-dimensional map, the position of the obstruction on the two-dimensional plane map is determined and marked.

8. The method according to claim 6, characterized in that The step of marking the area where the obstruction is located on the two-dimensional plane map includes: Determining point cloud data corresponding to the obstruction from the point cloud data corresponding to the three-dimensional map; Determine the position of the point cloud data corresponding to the obstruction in the three-dimensional map; According to the position of the point cloud data corresponding to the obstruction in the three-dimensional map, the position of the obstruction on the two-dimensional plane map is determined and marked.

9. The method according to any one of claims 1 to 5, characterized in that: After determining the number and deployment positions of the positioning anchor points in the working area according to the grid map and the area where the obstruction is located, the method further includes: A deployment diagram is outputted, where the deployment locations and quantities of the positioning anchor points to be deployed are displayed on the deployment diagram.

10. A positioning anchor point deployment device, characterized in that: include: A first acquisition module is used to acquire a two-dimensional plane map of the working area; A second acquisition module is used to acquire an area where an obstruction is located on the two-dimensional plane map, where the obstruction is an object in the working area that can weaken the signal strength of the positioning signal transmitted and / or received by the positioning anchor point; A rasterization module, used for rasterizing the two-dimensional plane map to obtain a raster map of the working area; The processing module is used to determine the number and deployment positions of the positioning anchor points to be deployed according to the grid map and the area where the obstruction is located.

11. An electronic device comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic device implements the method according to any one of claims 1 to 9.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.