Positioning method and device, electronic equipment and computer program product

By combining the initial positioning results and positioning error information in the indoor map model, the target positioning area is determined, and the appropriate positioning technology and algorithm are selected according to the regional characteristics. This solves the problem of low positioning accuracy in non-road sub-areas and achieves the goal of positioning in all indoor areas. high-precision positioning.

CN118828409AActive Publication Date: 2024-10-22CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410826968.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-22
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

Existing indoor positioning technology has low positioning accuracy in non-road sub-areas and is difficult to position accurately because road network matching technology is only applicable to road sub-areas and cannot effectively handle obstacles and complex terrain in non-linear areas.

Method used

By obtaining the initial positioning results and positioning error information of the target object in the map model, the target positioning area is determined, including road sub-areas and non-road sub-areas, and appropriate positioning algorithms and technologies are selected according to the characteristics of different areas, such as using UWB technology High-precision positioning is performed in non-road sub-areas, and the target position and driving trajectory are calculated by combining Kalman filtering and obstacle avoidance algorithms.

Benefits of technology

It achieves precise positioning in both road sub-areas and non-road sub-areas, improves the precision and accuracy of indoor positioning, avoids the impact of grid density on positioning results, and simplifies the road network construction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828409A_ABST
    Figure CN118828409A_ABST
Patent Text Reader

Abstract

The invention relates to a positioning method and device, electronic equipment and a computer program product. Comprising the following steps: acquiring an initial positioning result and positioning error information of a target object in a map model; determining a target positioning area in a map model according to an initial position and positioning error information corresponding to the initial positioning result, then obtaining first distances between a plurality of sub-areas in the target positioning area and the initial position, and determining a target sub-area from the plurality of sub-areas according to the first distances; and finally obtaining second distances between the plurality of pre-selected positions and the initial position, and determining a target position from the plurality of pre-selected positions according to the second distances. Therefore, the target object can be positioned not only in the road sub-region, but also in the non-road sub-region, and the positioning region can be reduced according to the initial positioning result and the positioning error information, so that the positioning precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of indoor positioning and navigation technology, and in particular to a positioning method, device, electronic device and computer program product. Background Art

[0002] With the rapid development of industries such as smart cities, the Internet of Things, and mobile Internet, people's demand for high-precision indoor location services is becoming increasingly strong.

[0003] In the related art, the road network matching technology can be used in combination with the indoor map to locate the target object. However, the road network matching technology can only locate the target object within the road sub-area. For the non-road sub-area other than the road sub-area in the indoor map that may be scattered with obstacles, when the road network matching technology is used to locate the target object, the target position corresponding to the positioning result may be located in the area corresponding to the obstacle, resulting in inaccurate positioning results. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a positioning method, device, electronic device and computer program product to solve the problems existing in the related art.

[0005] According to a first aspect of an embodiment of the present disclosure, a positioning method is provided, including: obtaining an initial positioning result and positioning error information of a target object in a map model; determining a target positioning area in the map model according to an initial position and positioning error information corresponding to the initial positioning result, wherein the target positioning area includes a plurality of sub-areas, and the plurality of sub-areas include a plurality of road sub-areas and / or a plurality of non-road sub-areas; obtaining first distances between a plurality of sub-areas in the target positioning area and the initial position, and determining a target sub-area from the plurality of sub-areas according to the first distance, wherein the target sub-area includes a plurality of pre-selected positions; obtaining second distances between a plurality of pre-selected positions and the initial position, and determining a target position from the plurality of pre-selected positions according to the second distance, wherein the target position is the target positioning result of the target object in the map model.

[0006] According to a second aspect of an embodiment of the present disclosure, a positioning device is provided, including: an acquisition module, used to acquire an initial positioning result and positioning error information of a target object in a map model; a first determination module, used to determine a target positioning area in the map model according to an initial position and positioning error information corresponding to the initial positioning result, wherein the target positioning area includes a plurality of sub-areas, and the plurality of sub-areas include a plurality of road sub-areas and / or a plurality of non-road sub-areas; a second determination module, used to acquire a first distance between each of the plurality of sub-areas in the target positioning area and the initial position, and determine a target sub-area from the plurality of sub-areas according to the first distance, wherein the target sub-area includes a plurality of pre-selected positions; a third determination module, used to acquire a second distance between each of the plurality of pre-selected positions and the initial position, and determine a target position from the plurality of pre-selected positions according to the second distance, wherein the target position is the target positioning result of the target object in the map model.

[0007] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory for storing instructions executable by at least one processor; wherein the at least one processor is used to execute instructions to implement the steps of the above method.

[0008] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the steps of the above method.

[0009] The above-mentioned at least one technical solution adopted in the embodiments of the present disclosure can achieve the following beneficial effects: by obtaining the initial positioning result and positioning error information of the target object in the map model; and then determining the target positioning area in the map model according to the initial position and positioning error information corresponding to the initial positioning result, wherein the target positioning area includes multiple sub-areas, and the multiple sub-areas include multiple road sub-areas and / or multiple non-road sub-areas; then obtaining the first distances between the multiple sub-areas in the target positioning area and the initial position, and determining the target sub-area from the multiple sub-areas according to the first distance, wherein the target sub-area includes multiple pre-selected positions; finally, obtaining the second distances between the multiple pre-selected positions and the initial position, and determining the target position from the multiple pre-selected positions according to the second distance, wherein the target position is the target positioning result of the target object in the map model.

[0010] Based on this, the disclosed embodiment can first determine the target positioning area in the map model according to the initial positioning result and the positioning error information, and then determine the target sub-area according to the first distance between the multiple sub-areas in the target positioning area and the initial position, and then determine the target position according to the second distance between the multiple pre-selected positions included in the target sub-area and the initial position. It can be seen that the disclosed embodiment can not only locate the target object in the road sub-area, but also locate the target object in the non-road sub-area, and can also reduce the positioning area according to the initial positioning result and the positioning error information, thereby improving the positioning accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 A schematic diagram of a flow chart of an indoor wireless positioning method provided by an embodiment of the present disclosure is shown;

[0013] Figure 2 A schematic diagram showing a driving trajectory passing through an impassable area provided by an embodiment of the present disclosure;

[0014] Figure 3 A schematic diagram of the flow of the positioning method provided by an embodiment of the present disclosure is shown;

[0015] Figure 4 A schematic diagram of the structure of a positioning device provided by an embodiment of the present disclosure is shown;

[0016] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown;

[0017] Figure 6 A schematic diagram of the structure of a computer program product provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0019] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0020] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0023] With the development of science and technology, people have an increasing demand for positioning services, which has led to the increasing popularity of positioning applications with the development of the information age. Positioning technologies in related technologies include electronic tag (RFID) positioning technology, Bluetooth positioning technology, wireless positioning technology, and ultrasonic positioning technology. In practical applications, positioning software with positioning technology can be used to locate the target object with the help of satellites. However, in indoor environments, positioning in indoor environments will be blocked by buildings, resulting in poor satellite signals, making it difficult to accurately locate the target object.

[0024] In some embodiments, when positioning a target object in an indoor environment, there may be many obstacles in the indoor environment, which may hinder the transmission of wireless signals. For example, wireless signals may be blocked by obstacles during transmission in an indoor environment, resulting in a longer wireless signal transmission line and greater wireless signal loss; they may also be interfered by electromagnetic waves emitted by other electronic devices indoors, resulting in unstable wireless signals. Therefore, it is difficult for the positioning technology in the related art to accurately position the target object in an indoor environment.

[0025] In related technologies, the target object can be located by using road network matching technology in combination with the indoor map model. This technology can match the positioning result to the best road network position on the indoor map model, thereby improving the accuracy of positioning and avoiding counterintuitive positioning results, that is, positioning to a position that cannot be reached indoors. The positioning results in practical applications are also relatively satisfactory. However, the road network matching technology can only accurately locate existing road sub-areas that are easy to identify, such as corridors, aisles, and stairs. There are still a large number of areas in the indoor environment that cannot be simply identified as roads, such as wide passages, large spaces with many columns, and large and irregular non-road sub-areas with different obstacles scattered around. These areas are not linear road network structures. Therefore, there is no way to directly use road network matching technology to accurately locate the target object.

[0026] In practical applications, when constructing a map model, the non-linear non-road sub-area can be gridded and a map model in the form of a grid structure can be constructed. Based on this, the non-road sub-area can be positioned by performing the same or similar road network matching operation as the road sub-area. In this way, a complex road network needs to be constructed first, and the density of the grid in the road network will affect the accuracy of the positioning process. Therefore, when using Bluetooth positioning technology or wireless positioning technology with low positioning error for positioning, after determining the appropriate grid density, a more satisfactory operation speed and positioning effect can be given. However, if the grid density is not appropriate, when using Bluetooth positioning technology or wireless positioning technology with low positioning error for positioning, the positioning result obtained for the target object is greatly different from the actual position, that is, the positioning error is large. For ultra-wideband technology (UWB) with high positioning accuracy, an overly dense grid will bring more complex and cumbersome road network construction operations and position solution matching operations with excessive computational load, while a sparse grid may introduce additional errors, matching the originally accurate positioning result to a grid at a farther distance, thereby resulting in inaccurate positioning results. It should be understood that UWB is a new communication technology that is very different from traditional communication technology. It does not require the use of carriers in traditional communication systems, but instead achieves wireless transmission by sending and receiving extremely narrow pulses. Since the pulse time width is extremely narrow, the bandwidth used is above 500MHz.

[0027] In view of the above problems, the embodiments of the present disclosure provide a wireless positioning method, device, electronic device and computer program product, which can analyze the road sub-area and non-road sub-area in the indoor environment respectively, wherein the non-road sub-area is an open area, which is an area that can be reached indoors; and the road sub-area is an area corresponding to the road in the indoor environment. Based on this, a map model corresponding to the indoor environment can be constructed, and then the target object is positioned by the existing positioning technology to obtain an initial positioning result, and a specific matching algorithm is determined according to the area type corresponding to the initial positioning result and the area type corresponding to the historical positioning result to perform map matching calculation to obtain the final target position and target driving trajectory. Based on this, the map model of the embodiments of the present disclosure is not limited to the analysis of the road sub-area, but also analyzes the non-road sub-area that can be driven indoors, and different matching algorithms are designed for different situations, so as to effectively ensure the accuracy of matching and the precision of positioning, which not only avoids the construction and encryption of complex grid-type road networks, but also avoids the problem that the positioning accuracy is affected by the grid density.

[0028] Figure 1 FIG. 1 is a flow chart of an indoor wireless positioning method provided by an embodiment of the present disclosure. Figure 1 As shown, specifically including:

[0029] S101: Construct a map model of the target area.

[0030] In some embodiments, the target area may be an indoor area. The indoor environment corresponding to the indoor area includes not only road sub-areas such as corridors, aisles, and stairs, but also non-road sub-areas corresponding to open spaces, wherein the non-road sub-areas may be halls or open spaces with irregular shapes and scattered obstacles, and other reachable areas.

[0031] Specifically, in the process of constructing the map model, the positioning error of the wireless positioning technology also needs to be considered. For example, for a road sub-area with a width of 3 to 5 meters, a low-precision positioning method such as Bluetooth positioning technology or wireless positioning technology can be used, while for a non-road sub-area, a high-precision positioning method such as UWB can be used. At the same time, the connection points of the road sub-area and the non-road sub-area can also be marked. If there are obstacles in the non-road sub-area, the obstacles in the non-road sub-area also need to be marked. It should be understood that the choice of positioning technology can also be selected according to actual conditions, and the embodiments of the present disclosure are not limited thereto.

[0032] In practical applications, the indoor map corresponding to the target area can be gridded, and the connection points such as doors and passageways in the grid structure can be saved. However, if the door or passageway is the connection point between two non-road sub-areas, the two non-road sub-areas need to be saved separately, and the door or passageway needs to be saved as a connection point. In addition, obstacles in the non-road sub-area can be saved as "holes" inside the non-road sub-area, and the obstacle area can be directly marked, for example, a no-entry sign can be added.

[0033] S102: Acquire the initial position of the target object according to the positioning technology.

[0034] In some embodiments, the initial position of the target object corresponding to the initial positioning result can be obtained. For example, the target object can be positioned using Bluetooth positioning technology, wireless positioning technology, 5G positioning technology, or UWB positioning technology. Since different positioning technologies correspond to different positioning error information, the positioning errors corresponding to different positioning error information vary greatly. Therefore, after the positioning system is deployed and installed, its approximate accuracy is tested in actual application scenarios, and the accuracy value corresponding to the positioning error is used as a threshold for subsequent map model matching and position correction.

[0035] Specifically, the error value of wireless positioning technology and Bluetooth positioning technology is about 5m to 10m; the error value of 5G positioning technology is about 2m to 3m; and the error value of UWB is about 1m. Based on this, the map model can be corrected before application according to different error values, which can be:

[0036] In practical applications, low-precision positioning methods such as Bluetooth positioning technology or wireless positioning technology are more effective for road sub-areas. Therefore, the error values ​​corresponding to Bluetooth positioning and wireless positioning technologies can be used as a reference. When the width of the road sub-area is less than the error value, the center line of the road sub-area can be selected as the positioning area, thereby simplifying the road sub-area, that is, the center line can be used as a reference for positioning during the positioning process.

[0037] For non-road sub-areas with scattered obstacles, high-precision positioning methods such as UWB are more effective, so the accuracy value corresponding to UWB can be used as a reference. Based on this, if the distance between two obstacles is less than the error value corresponding to UWB, the center line between the two obstacles can be taken as the positioning area, thereby simplifying the non-road sub-area, that is, the center line can be referenced for positioning during the positioning process.

[0038] It should be understood that when there are multiple obstacles in the non-road sub-area, the historical position corresponding to the historical positioning result and the initial position corresponding to the current positioning result can be referred to, and the driving direction can be determined according to the two positions, and then the corresponding obstacles can be determined according to the driving direction and the initial position. For example, two positions can determine a driving trajectory, and the driving direction can be determined according to the driving trajectory. Based on this, the obstacles on both sides of the driving trajectory can be determined. When the distance between the two obstacles on both sides of the driving trajectory is less than the accuracy value, the distance here can be the distance between the center points of the two obstacles, or other distances, which can be set according to the actual situation. Then, the trajectory line corresponding to the center point between the two obstacles can be taken as the driving trajectory, that is, the driving trajectory can be referenced for positioning during the positioning process.

[0039] S103: Determine a target positioning area according to the initial position, and determine a plurality of sub-areas included in the target positioning area.

[0040] In some embodiments, all road sub-areas and non-road sub-areas included in the map model may be marked. For example, the road sub-areas and non-road sub-areas may be marked in digital form, wherein the first road sub-area may be marked as T1, the second road sub-area may be marked as T2, the third road sub-area may be marked as T3, and so on; the first non-road sub-area may be marked as M1, the second non-road sub-area may be marked as M2, the third non-road sub-area may be marked as M3, and so on. Based on this, a region index table may be established according to the marks corresponding to the road sub-areas and non-road sub-areas.

[0041] Specifically, after the initial position is determined according to step S102, a circle can be drawn with the initial position as the center and the error value corresponding to the corresponding positioning technology as the radius, wherein the radius can be 1 times the error value or 2 times the error value, and can be set specifically according to the actual situation, and then a circular area can be obtained, and the circular area is used as the target positioning area, and then the road sub-area and non-road sub-area on the map model can be spatially intersected with the target positioning area. For example, the mathematical expression corresponding to the target positioning area can be solved jointly with the mathematical expressions corresponding to multiple road sub-areas and / or the mathematical expressions corresponding to the non-road sub-areas. If there is a solution, there is an intersection point, and if there is no solution, there is no intersection point. Based on this, the road sub-area or non-road sub-area that exists in the target positioning area or intersects with the target positioning area can be determined.

[0042] S104: Determine the target location according to the historical location, the initial location and the corresponding sub-region type.

[0043] In some embodiments, the historical position may be the position corresponding to the historical positioning result. Based on this, it can be analyzed in three cases. The first case is that the target sub-region only includes the road sub-region, and the historical position is on the road sub-region; the second case is that the target sub-region only includes the non-road sub-region, and the historical position is on the non-road sub-region; the third case is that the target sub-region includes both the road sub-region and the non-road sub-region, and the historical position is on the road sub-region or the non-road sub-region. It should be understood that if the historical position does not exist, the initial position can be directly used as the current positioning result.

[0044] In practical applications, for the first case, a geometric topology matching algorithm can be used to determine the target position and target driving trajectory. Specifically, the target sub-region can be determined from multiple sub-regions by measuring indicators such as distance, angle, and accessibility, and the target position can be calculated on the target sub-region. Among them, the matching degree between the initial position and each sub-region corresponding to the initial position can be calculated as follows:

[0045]

[0046] Where D1 represents the distance between the initial position and the sub-region, D th Represents the error value corresponding to the wireless positioning technology; H1 = cosθ, θ represents the angle between the driving trajectory formed by the connection of the historical position and the initial position and the direction of the target sub-area, ranging from 0° to 180°; R1 represents the accessibility of the target object to the target sub-area, accessibility is whether it can be reached, R1 = 1 means it is reachable, R1 = -1 means it is unreachable. α represents the weight coefficient of the distance term; β represents the weight coefficient of the angle term, and α + β = 1.

[0047] When calculating the accessibility R1, the point closest to the initial position in each sub-area can be used as the pre-selected position, that is, the point with the shortest straight-line distance can be used as the pre-selected position, and then the shortest path algorithm (Dijkstra) algorithm is used to solve the shortest path from the historical position to the pre-selected position, and then the speed is judged whether it is reasonable according to the time interval between two positionings. If the speed is greater than the speed threshold, R1 takes -1, otherwise it takes 1. The specific judgment can be analyzed and judged by relevant technical personnel to judge whether the speed, time and driving speed are reasonable.

[0048] Based on this, the sub-area with the largest matching degree among all sub-areas can be selected as the target sub-area, and the pre-selected position on the target sub-area can be used as the target position, that is, the target positioning result corresponding to the initial positioning result, and the target driving trajectory of the target object can be determined based on the historical position and the target position.

[0049] For the second case, Kalman filtering and obstacle avoidance algorithms can be used to solve the target position and target driving trajectory. First, the Kalman filtering algorithm based on the linear motion prediction model can be used to filter the positioning signal corresponding to the initial position to obtain the filtering result. The filtering result corresponds to the candidate position. Since there are inaccessible areas and passable areas in the map model, the inaccessible area can be a preset prohibited activity area, an area inside an obstacle, or an area outside the map model. Therefore, there are three situations for the candidate position corresponding to the filtering result in the map model:

[0050] The first case is that the candidate location is within the traversable area, in which case the candidate location can be directly used as the target location.

[0051] The second case is that when the candidate position is in an inaccessible area and the initial position is within a accessible area, the initial position can be directly used as the target position.

[0052] In the third case, both the candidate position and the initial position are in the inaccessible area, then the non-road sub-area including the point closest to the initial position among multiple reachable positions can be used as the target position.

[0053] In practical applications, when the target object is a movable object, if the historical position and the target position are in the same non-road sub-area or road sub-area, the position points corresponding to the two positions can be directly connected to obtain the target driving trajectory; if the historical position and the target position are not in the same non-road sub-area or road sub-area, the target driving trajectory can be determined according to the connection points between different sub-areas, the historical position and the initial position. For example, the historical position and the target position are not in the same non-road sub-area, but in two adjacent non-road sub-areas. At this time, it is necessary to determine the connection point between the two non-road sub-areas, and then connect the connection points corresponding to the connection points, historical positions and initial positions to obtain the target driving trajectory. It should be understood that in practical applications, there may be multiple connection points between two non-road sub-areas. At this time, multiple driving trajectories can be determined according to multiple connection points, historical positions and initial positions, and then the driving trajectory with the shortest trajectory distance is selected from the multiple driving trajectories as the trajectory line corresponding to the target driving trajectory, and the connection point corresponding to the target driving trajectory is the target connection point.

[0054] Figure 2 A schematic diagram of a driving trajectory passing through an impassable area provided by an embodiment of the present disclosure is shown. Figure 2 As shown, Figure 2 The middle shaded area is an impassable area. After determining the driving trajectory based on the historical position and the initial position, it is also necessary to determine whether the driving trajectory passes through the impassable area. When the driving trajectory passes through the impassable area, the driving trajectory needs to be adjusted.

[0055] Specifically, a regional boundary line can be constructed for the impassable area, and the regional boundary line 201 can be determined according to the error value, and the regional boundary line 201 can be a boundary driving path, and the target position can be located on the boundary driving path. For example, if the impassable area is the obstacle area 203, then the inside of the obstacle is the impassable area, the boundary driving path is the outline corresponding to the obstacle, and the area inside the boundary driving path is the obstacle area 203, that is, the impassable area; the impassable area can also be the boundary area 202, and the boundary area 202 is the boundary of the map model, then the boundary driving path is the outline corresponding to the boundary of the map model, and the area outside the boundary driving path is the boundary area 202, that is, the impassable area.

[0056] like Figure 2 As shown, assuming that the impassable area passed by the driving trajectory is a boundary area outside the map model, the two intersection points of the driving trajectory and the area boundary line 201 can be determined first, and then the trajectory line corresponding to the driving trajectory is adjusted according to the two intersection points and the area boundary line 201 to obtain the target driving trajectory, that is, a trajectory line L1 is determined on the area boundary line 201 according to the two intersection points, and then the target driving trajectory is determined according to the first historical position, the first initial position and the trajectory line L1. It should be understood that Figure 2 The target driving trajectory should be on the area boundary line 201 , but for the sake of clarity, the embodiment of the present disclosure displays the target driving trajectory next to the area boundary line 201 .

[0057] Assuming that the impassable area passed by the driving trajectory is the obstacle area 203, two intersection points of the driving trajectory and the area boundary line can be determined, but because the obstacle is completely located in the indoor environment, the two intersection points can determine two driving trajectories, including the second trajectory line L2 and the third trajectory line L3. At this time, the third trajectory line L3 with a shorter trajectory length can be determined from the two trajectory lines according to the trajectory length of the trajectory line, and the target driving trajectory can be determined according to the third trajectory line L3, the second historical position and the second initial position. It should be understood that Figure 2 The target driving trajectory should be on the area boundary line 201 , but for the sake of clarity, the embodiment of the present disclosure displays the target driving trajectory next to the area boundary line 201 .

[0058] In actual applications, there is a situation where both the historical position and the target position are not located on the regional boundary line, but the driving trajectory between the historical position and the target position passes through an inaccessible area. At this time, the first intersection point and the second intersection point of the driving trajectory with the inaccessible area can be determined, and then the first driving trajectory can be obtained according to the first intersection point and the target position, the second driving trajectory can be obtained according to the second intersection point and the historical position, and the third driving trajectory can be obtained according to the regional boundary line, the first intersection point and the second intersection point. Based on this, the target driving trajectory can be determined according to the first driving trajectory, the second driving trajectory and the third driving trajectory.

[0059] For the third case above, the algorithms corresponding to the first and second cases can be combined, and a unified matching index can be used to solve the target position in the sub-area. The matching degree between the specific initial position and each sub-area is calculated as follows:

[0060]

[0061] Among them, the distance term D2 is the distance from the initial position to the sub-region. If the initial position is inside the sub-region, D = 0; the angle term H2 = cosθ. When it is for a non-road sub-region, θ = 0°. For a road sub-region, θ represents the angle between the driving trajectory formed by the connection between the historical position and the initial position and the direction of the sub-region, ranging from 0° to 180°. It should be understood that if the historical position and the initial position involve a non-road sub-region, and the historical position and the initial position are not in the same sub-region, then it is necessary to find the connection point of the two regions, and then calculate the angle term H2 and accessibility R2.

[0062] In some embodiments, when calculating accessibility R2, when the target sub-region is a road sub-region, it is necessary to first determine the degree of match between each sub-region and the initial position, determine the sub-region with the largest degree of match as the target sub-region, and then determine the distance between multiple pre-selected positions on the target sub-region and the initial position, and determine the pre-selected position with the shortest distance as the target position. It is also possible to first take the point closest to the initial position on each sub-region as the pre-selected position, that is, the point with the shortest straight-line distance as the pre-selected position, and then use Dijkstra to calculate the shortest path from the historical position to the pre-selected position, and then judge whether the speed is reasonable based on the time interval between the two positionings. If the speed is greater than the speed threshold, R2 takes -1, otherwise it takes 1. Then, the target sub-region with the largest degree of match among all sub-regions can be selected, and the pre-selected position on the target sub-region can be taken as the target position, that is, the final result of local positioning, and the target driving trajectory can be determined based on the historical position and the target position. For details, please refer to the solution process of the first case.

[0063] For the non-road sub-area in the sub-area, the candidate position corresponding to the initial position can be calculated according to the method corresponding to the second case, and then the target position can be determined according to the candidate position, and the target driving trajectory can be determined according to the target position and the historical position. The specific method for determining the target driving trajectory can refer to the relevant content in the second case. After determining the target driving trajectory, the Dijkstra algorithm is used to solve the shortest path, the shortest path from the historical position to the target position is solved, and then the speed is judged according to the time interval between the two positionings. If the speed is greater than the speed threshold, R2 takes -1, otherwise it takes 1.

[0064] In practical applications, there may be a historical position in a non-road sub-area, but the initial position is in a road sub-area. In this case, the target sub-area can be determined according to the matching degree between the initial position and each sub-area according to the method corresponding to the first case, and then the position closest to the initial position in the target sub-area is determined as the target position. Finally, the target driving trajectory of the target object can be determined based on the target position and the historical position.

[0065] In actual applications, there may be a situation where the historical position is in the road sub-area, but the initial position is in the non-road sub-area. In this case, the solution corresponding to the second case can be used to first determine the target position according to the method corresponding to the second case, and then determine the target driving trajectory of the target object based on the target position and the historical position.

[0066] The positioning method provided by the embodiments of the present disclosure may be executed by a terminal or by a chip applied to the terminal.

[0067] Exemplarily, the above-mentioned terminals may include one or more of mobile phones, tablet computers, wearable devices, vehicle-mounted devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), and wearable devices based on augmented reality (AR) and / or virtual reality (VR) technology, and may also include but not be limited to remote control devices, wearable devices, street lamps, home appliances and other smart terminals, which are not specifically limited in the embodiments of the present disclosure.

[0068] Figure 3 FIG. 1 is a flow chart of a positioning method provided by an embodiment of the present disclosure. Figure 3 As shown, the method includes the positioning method of the embodiment of the present disclosure including:

[0069] S301: Obtaining the initial positioning result and positioning error information of the target object in the map model.

[0070] In some embodiments, the initial positioning result of the target object in the map model can be obtained based on existing technologies, such as Bluetooth positioning technology, wireless positioning technology, or UWB positioning technology, and the positioning error information is the positioning error corresponding to the positioning technology. It should be understood that the map model can be a model after the indoor structure is converted into a virtual visual picture. Based on this, the initial positioning result can be displayed in the map model, so that the positioning information of the target object can be obtained more clearly and intuitively.

[0071] S302: Determine a target positioning area in a map model according to an initial position and positioning error information corresponding to an initial positioning result, wherein the target positioning area may include one or more sub-areas, and the multiple sub-areas include multiple road sub-areas and / or multiple non-road sub-areas.

[0072] In some embodiments, since the initial positioning result is determined based on the existing technology, and the existing technology has positioning errors when positioning, the positioning error information can be determined according to the adopted positioning technology, and the positioning error information can be an error value. Based on this, the target positioning area can be determined in the map model according to the error value and the initial position, and then the target object can be positioned in the target positioning area, thereby reducing the positioning error. It should be understood that the target positioning area can be a circular area with the initial position as the center and the error value as the radius, and the circular area is the target positioning area. The road sub-area can be a linear area that can be driven, such as a lane, stairs, etc., and the non-road sub-area can be other open areas that can be driven in the map model except the road sub-area.

[0073] S303: Obtaining first distances between a plurality of sub-regions in the target positioning region and the initial position, and determining a target sub-region from the plurality of sub-regions according to the first distances, wherein the target sub-region includes a plurality of pre-selected positions;

[0074] In some embodiments, since the target positioning area may include one or more road sub-areas, or one or more non-road sub-areas, or both road sub-areas and non-road sub-areas, and the initial position can only be located inside one sub-area, it is necessary to first determine the target sub-area in the target positioning area. Specifically, it can be determined based on the first distances between the multiple sub-areas and the initial position, that is, the sub-area with the smallest first distance can be determined as the target sub-area.

[0075] S304: Obtain second distances between the multiple pre-selected positions and the initial position respectively, and determine a target position from the multiple pre-selected positions according to the second distances, where the target position is a target positioning result of the target object in the map model.

[0076] In some embodiments, since there are multiple preselected positions on the target sub-area, each preselected position may be the target position of the target object. Therefore, it is necessary to obtain the second distances between the multiple preselected positions and the initial position respectively, and then the preselected position with the smallest second distance can be determined as the target position. Based on this, the target object can be accurately located in the map model.

[0077] It can be seen that the disclosed embodiment can first determine the target positioning area in the map model according to the initial positioning result and the positioning error information, and then determine the target sub-area according to the first distance between the multiple sub-areas in the target positioning area and the initial position, and then determine the target position according to the second distance between the multiple pre-selected positions included in the target sub-area and the initial position. It can be seen that the disclosed embodiment can not only locate the target object in the road sub-area, but also locate the target object in the non-road sub-area, and can also reduce the positioning area according to the initial positioning result and the positioning error information, thereby improving the positioning accuracy.

[0078] In some embodiments, when the target positioning area only includes multiple non-road sub-areas and the initial position is located in one of the non-road sub-areas, the embodiment of the present disclosure can construct a position feature matrix based on the position vector corresponding to the initial position; and then construct an observation equation and a state equation based on the position feature matrix; wherein the observation equation is used to express the relationship between the number of positioning times and the initial positioning result, and the state equation is used to predict the position feature matrix at the next positioning based on the current position feature matrix; finally, the observation equation and the state equation are used to remove the error in the initial positioning result, and the candidate position is determined based on the initial positioning result after the error is removed.

[0079] Specifically, when locating the target object, the signal generated in the wireless mobile communication network of the target object can be obtained, and the characteristic parameters corresponding to the received signal can be measured to locate the target object. However, in the positioning process, the positioning result is inaccurate due to the noise contained in the signal or the influence of the outside world. Therefore, the Kalman filter method can be used to remove the noise in the signal, that is, to remove the error in the initial positioning result, so as to obtain a candidate position, where the observation equation and the state equation are two equations corresponding to the Kalman filter algorithm. The non-road sub-areas in the target sub-area are all open and passable areas. Therefore, when the candidate position is located in one of the non-road sub-areas, the candidate position can be determined as the target positioning result of the target object in the map model.

[0080] In actual applications, there may be many obstacles in the map model, such as supporting pillars and display stands for performances. Therefore, the map model includes not only passable areas but also inpassable areas, where the inpassable areas can be obstacle areas corresponding to obstacles. Based on this, the target positioning area may also include one or more obstacle areas. Since the multiple location points included in the obstacle area are not reachable, that is, the target object cannot exist in the obstacle area, therefore, it is only necessary to analyze the reachable positions corresponding to multiple non-road sub-areas, where the reachable position is the position that the target object can reach.

[0081] In some embodiments, after determining the candidate position according to the initial positioning result after removing the error, the embodiment of the present disclosure can also obtain the third distances between the multiple reachable positions and the initial position respectively when both the candidate position and the initial position are located in the obstacle area, and determine the target position from the multiple reachable positions according to the third distance. In some special cases, that is, when the candidate position is located in the obstacle area, the initial position can be determined as the target position.

[0082] Specifically, multiple reachable positions included in multiple non-road sub-areas in the target positioning area can be analyzed respectively with the initial position, that is, the third distances between the multiple reachable positions and the initial position can be taken, and then the reachable position with the smallest third distance can be determined as the target position.

[0083] In some embodiments, when the target positioning area includes multiple road sub-areas and the initial position is located in one of the road sub-areas, fourth distances between the multiple road sub-areas and the initial position are obtained; then, the target road sub-area is determined from the multiple road sub-areas based on the fourth distance; finally, fifth distances between multiple pre-selected positions corresponding to the target road sub-area and the initial position are obtained, and the target position is determined from the multiple pre-selected positions based on the fifth distance.

[0084] Specifically, the initial position obtained by using existing positioning technology is usually near the road sub-area and cannot be accurately positioned on the road sub-area. Therefore, when the target positioning area includes multiple road sub-areas and the initial position is located in one of the road sub-areas, it is necessary to determine the target sub-area from the multiple road sub-areas, and then determine the target position from the multiple pre-selected positions included in the target sub-area.

[0085] In practical applications, the matching degree between the initial position and each sub-region corresponding to the initial position can be calculated as follows:

[0086]

[0087] Where D3 represents the distance between the initial position and the sub-region, which is the fourth distance. th Represents the error value corresponding to the wireless positioning technology; H3 = cosθ, θ represents the angle between the driving trajectory formed by the connection of the historical position and the initial position and the direction of the target sub-area, ranging from 0° to 180°; R3 represents the accessibility of the target object to the target sub-area, accessibility is whether it can be reached, R3 = 1 means it is reachable, R3 = -1 means it is unreachable. α represents the weight coefficient of the distance term; β represents the weight coefficient of the angle term, and α + β = 1.

[0088] When calculating the accessibility R1, the point closest to the initial position in each sub-area can be used as the pre-selected position, that is, the point with the shortest straight-line distance can be used as the pre-selected position, and then the shortest path algorithm (Dijkstra) algorithm is used to solve the shortest path from the historical position to the pre-selected position, and then the speed is judged whether it is reasonable according to the time interval between two positionings. If the speed is greater than the speed threshold, R1 takes -1, otherwise it takes 1. The specific judgment can be analyzed and judged by relevant technical personnel to judge whether the speed, time and driving speed are reasonable.

[0089] Based on this, the sub-area with the largest matching degree among all sub-areas can be selected as the target sub-area, and the pre-selected position on the target sub-area can be used as the target position, that is, the target positioning result corresponding to the initial positioning result, and the target driving trajectory of the target object can be determined based on the historical position and the target position.

[0090] In some embodiments, the disclosed embodiments may also obtain historical positioning results of the target object in the map model; and then generate a target driving trajectory based on the historical position and target position corresponding to the historical positioning results, where the target driving trajectory is the driving trajectory of the target object in the map model.

[0091] Specifically, the map model of the embodiment of the present disclosure includes an impassable area. Therefore, when determining the target driving trajectory according to the historical position and the target position corresponding to the historical positioning result, the region boundary line corresponding to the impassable area can be obtained first when the driving trajectory passes through the impassable area; then the trajectory line is determined according to the target position and the historical position, and the intersection point is determined according to the trajectory line and the region boundary line; finally, the driving trajectory is determined on the region boundary line according to the intersection point, and the target driving trajectory is generated according to the driving trajectory, the target position and the historical position. It should be understood that the above-mentioned trajectory line is the trajectory line corresponding to the driving trajectory.

[0092] Specifically, after determining the driving trajectory according to the historical position and the initial position, it is also necessary to determine whether the driving trajectory passes through an impassable area. When the driving trajectory passes through an impassable area, the driving trajectory needs to be adjusted. For example, when the impassable area is a boundary area corresponding to the map model, based on this, the regional boundary line of the boundary area can be determined first, and then the two intersection points of the trajectory line and the regional boundary line can be determined, and finally the driving trajectory is adjusted according to the two intersection points and the regional boundary line to obtain the target driving trajectory. When the impassable area is a side obstacle area corresponding to the map model, the two intersection points of the trajectory line and the regional boundary line can be determined, but because the obstacle is completely located in the indoor environment, the two intersection points can determine two trajectory lines. At this time, the trajectory line with a shorter trajectory length can be determined from the two trajectory lines according to the trajectory length of the trajectory line, and the target driving trajectory is generated according to the trajectory line with a shorter trajectory length, the historical position and the initial position.

[0093] In actual applications, there is a situation where both the historical position and the target position are not located on the regional boundary line, but the driving trajectory between the historical position and the target position passes through an inaccessible area. At this time, the first intersection point and the second intersection point of the driving trajectory with the inaccessible area can be determined, and then the first driving trajectory can be obtained according to the first intersection point and the target position, the second driving trajectory can be obtained according to the second intersection point and the historical position, and the third driving trajectory can be obtained according to the regional boundary line, the first intersection point and the second intersection point. Based on this, the target driving trajectory can be determined according to the first driving trajectory, the second driving trajectory and the third driving trajectory.

[0094] The above mainly introduces the scheme provided by the embodiment of the present disclosure. It is understandable that in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed in this article, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.

[0095] The disclosed embodiment can divide the electronic device into functional units according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the disclosed embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0096] In the case of dividing each functional module according to each function, an embodiment of the present disclosure provides a positioning device, which may be an electronic device or a chip applied to an electronic device. Figure 4 FIG. 2 shows a schematic diagram of the structure of a positioning device provided by an embodiment of the present disclosure. Figure 4 As shown, the device 400 includes:

[0097] An acquisition module 401 is used to acquire an initial positioning result and positioning error information of a target object in a map model;

[0098] A first determination module 402 is used to determine a target positioning area in the map model according to the initial position corresponding to the initial positioning result and the positioning error information, wherein the target positioning area includes a plurality of sub-areas, and the plurality of sub-areas include a plurality of road sub-areas and / or a plurality of non-road sub-areas;

[0099] A second determination module 403 is used to obtain first distances between each of the plurality of sub-regions in the target positioning region and the initial position, and determine a target sub-region from the plurality of sub-regions according to the first distances, wherein the target sub-region includes a plurality of pre-selected positions;

[0100] The third determination module 404 is used to obtain second distances between the multiple pre-selected positions and the initial position respectively, and determine a target position from the multiple pre-selected positions according to the second distances, where the target position is a target positioning result of the target object in the map model.

[0101] In some embodiments, the device 400 also includes a construction module 405, which is used to construct a position feature matrix according to the position vector corresponding to the initial position when the target positioning area includes multiple non-road sub-areas and the initial position is located in one of the non-road sub-areas; construct an observation equation and a state equation according to the position feature matrix; wherein the observation equation is used to express the relationship between the number of positioning times and the initial positioning result, and the state equation is used to predict the position feature matrix at the next positioning based on the current position feature matrix; use the observation equation and the state equation to remove the error in the initial positioning result, and determine the candidate position based on the initial positioning result after the error is removed; the third determination module 404 is also used to determine that the candidate position is the target position when the candidate position is located in one of the non-road sub-areas.

[0102] In some embodiments, the target positioning area also includes an obstacle area, and the multiple non-road sub-areas include multiple reachable positions. The third determination module 404 is also used to obtain the third distances between the multiple reachable positions and the initial position respectively when the candidate position and the initial position are both located in the obstacle area, and determine the target position from the multiple reachable positions according to the third distance.

[0103] In some embodiments, the third determination module 404 is further configured to determine the initial position as the target position when the candidate position is located in the obstacle area.

[0104] In some embodiments, the second determination module 403 is also used to obtain fourth distances between the multiple road sub-areas and the initial position respectively when the target positioning area includes multiple road sub-areas and the initial position is located in one of the road sub-areas; determine the target road sub-area from the multiple road sub-areas according to the fourth distance; obtain fifth distances between the multiple pre-selected positions corresponding to the target road sub-area and the initial position respectively, and determine the target position from the multiple pre-selected positions according to the fifth distance.

[0105] In some embodiments, the acquisition module 401 is also used to obtain the historical positioning results of the target object in the map model; the device 400 also includes a generation module 406, and the generation module 406 is used to generate a target driving trajectory according to the historical position corresponding to the historical positioning results and the target position, and the target driving trajectory is the driving trajectory of the target object in the map model.

[0106] In some embodiments, the map model includes an impassable area, and the generation module 406 is further used to obtain an area boundary line corresponding to the impassable area when the driving trajectory passes through the impassable area; determine a trajectory line according to the target position and the historical position, and determine an intersection point according to the trajectory line and the area boundary line; determine a driving trajectory on the area boundary line according to the intersection point, and generate the target driving trajectory according to the driving trajectory, the target position and the historical position.

[0107] An embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; a memory for storing instructions executable by at least one processor; wherein the at least one processor is used to execute instructions to implement the steps of the above method disclosed in the embodiment of the present disclosure.

[0108] Figure 5 FIG. 1 shows a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 5As shown, the electronic device 500 includes at least one processor 501 and a memory 502 coupled to the processor 501 , and the processor 501 can execute corresponding steps in the above method disclosed in the embodiment of the present disclosure.

[0109] The processor 501 may also be referred to as a central processing unit (CPU), which may be an integrated circuit chip having signal processing capabilities. Each step in the method disclosed in the embodiment of the present disclosure may be completed by an integrated logic circuit of hardware in the processor 501 or by instructions in the form of software. The processor 501 may be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a memory 502, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, or other mature storage media in the art. The processor 501 reads the information in the memory 502 and completes the steps of the method in combination with its hardware.

[0110] In addition, when various operations / processes according to the present disclosure are implemented by software and / or firmware, they can be transferred from a storage medium or a network to a computer program product having a dedicated hardware structure, for example, Figure 6 The computer program product 600 shown installs the programs constituting the software, and when the various programs are installed, the computer program product can perform various functions, including the functions described above. Figure 6 A schematic diagram of the structure of a computer program product provided by an embodiment of the present disclosure is shown.

[0111] Computer program product 600 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0112] like Figure 6 As shown, the computer program product 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program product stored in a read-only memory (ROM) 602 or a computer program product loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer program product 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0113] A plurality of components in the computer program product 600 are connected to the I / O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 may be any type of device capable of inputting information to the computer program product 600, and the input unit 606 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 607 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 608 may include, but is not limited to, a disk, an optical disk. The communication unit 609 allows the computer program product 600 to exchange information / data with other devices over a network such as the Internet, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, for example, a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0114] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above. For example, in some embodiments, the above methods disclosed in the embodiments of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program product may be loaded and / or installed on an electronic device via a ROM 602 and / or a communication unit 609. In some embodiments, the computing unit 601 may be configured to perform the above methods disclosed in the embodiments of the present disclosure in any other appropriate manner (e.g., by means of firmware).

[0115] The embodiment of the present disclosure also provides a computer-readable storage medium, wherein when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above method disclosed in the embodiment of the present disclosure.

[0116] The computer-readable storage medium in the disclosed embodiments may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specifically, the computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0117] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0118] The embodiments of the present disclosure also provide a computer program product, including a computer program product, wherein when the computer program product is executed by a processor, the above method disclosed in the embodiments of the present disclosure is implemented.

[0119] In embodiments of the present disclosure, computer program product codes for performing the operations of the present disclosure may be written in one or more programming languages ​​or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.

[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacement, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The modules, components or units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the names of the modules, components or units do not, in some cases, limit the modules, components or units themselves.

[0122] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0123] The above descriptions are only some embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, a technical solution formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to).

[0124] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. A positioning method, characterized in that: The method comprises: Obtain the initial positioning result and positioning error information of the target object in the map model; Determining a target positioning area in the map model according to an initial position corresponding to the initial positioning result and the positioning error information, wherein the target positioning area includes a plurality of sub-areas, and the plurality of sub-areas include a plurality of road sub-areas and / or a plurality of non-road sub-areas; Acquire first distances between each of the plurality of sub-regions in the target positioning region and the initial position, and determine a target sub-region from the plurality of sub-regions according to the first distances, wherein the target sub-region includes a plurality of pre-selected positions; The second distances between the plurality of preselected positions and the initial position are obtained, and a target position is determined from the plurality of preselected positions according to the second distances, wherein the target position is a target positioning result of the target object in the map model.

2. The method according to claim 1, characterized in that: The method comprises: When the target positioning area includes a plurality of non-road sub-areas and the initial position is located in one of the non-road sub-areas, constructing a position feature matrix according to a position vector corresponding to the initial position; Constructing an observation equation and a state equation according to the position feature matrix; wherein the observation equation is used to express the relationship between the number of positioning times and the initial positioning result, and the state equation is used to predict the position feature matrix at the next positioning according to the current position feature matrix; Using the observation equation and the state equation to remove errors in the initial positioning result, and determining a candidate position according to the initial positioning result after the errors are removed; In the case where the candidate position is located in one of the non-road sub-areas, the candidate position is determined to be the target position.

3. The method according to claim 2, characterized in that The target positioning area also includes an obstacle area, and the plurality of non-road sub-areas include a plurality of reachable locations. After determining the candidate location according to the initial positioning result after removing the error, the method further includes: In the case where both the candidate position and the initial position are located in the obstacle area, third distances between each of the plurality of reachable positions and the initial position are obtained, and the target position is determined from the plurality of reachable positions according to the third distances.

4. The method according to claim 3, characterized in that The method further comprises: When the candidate position is located in the obstacle area, the initial position is determined as the target position.

5. The method according to claim 1, characterized in that The method further comprises: When the target positioning area includes a plurality of road sub-areas and the initial position is located in one of the road sub-areas, obtaining fourth distances between the plurality of road sub-areas and the initial position respectively; Determine a target road sub-area from the plurality of road sub-areas according to the fourth distance; The fifth distances between a plurality of pre-selected positions corresponding to the target road sub-region and the initial position are acquired, and a target position is determined from the plurality of pre-selected positions according to the fifth distances.

6. The method according to claim 1, characterized in that The method further comprises: Obtaining historical positioning results of the target object in the map model; A target driving trajectory is generated according to the historical position corresponding to the historical positioning result and the target position, where the target driving trajectory is the driving trajectory of the target object in the map model.

7. The method according to claim 6, characterized in that The map model includes an impassable area, and the determining of the target driving trajectory according to the historical position corresponding to the historical positioning result and the target position includes: When the driving track passes through the impassable area, obtaining an area boundary line corresponding to the impassable area; Determine a trajectory line according to the target position and the historical position, and determine an intersection point according to the trajectory line and the area boundary line; A driving trajectory is determined on the area boundary line according to the intersection point, and the target driving trajectory is generated according to the driving trajectory, the target position and the historical position.

8. A positioning device, characterized in that: The device comprises: An acquisition module is used to obtain the initial positioning result and positioning error information of the target object in the map model; A first determination module is used to determine a target positioning area in the map model according to an initial position corresponding to the initial positioning result and the positioning error information, wherein the target positioning area includes a plurality of sub-areas, and the plurality of sub-areas include a plurality of road sub-areas and / or a plurality of non-road sub-areas; a second determination module, configured to obtain first distances between each of the plurality of sub-regions in the target positioning region and the initial position, and determine a target sub-region from the plurality of sub-regions according to the first distances, wherein the target sub-region includes a plurality of pre-selected positions; The third determination module is used to obtain the second distances between the multiple pre-selected positions and the initial position respectively, and determine the target position from the multiple pre-selected positions according to the second distances, and the target position is the target positioning result of the target object in the map model.

9. An electronic device, characterized in that: include: at least one processor; a memory for storing the at least one processor-executable instruction; The at least one processor is configured to execute the instructions to implement the steps of the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that The invention comprises a computer program product, which is used to make the computer program product perform the steps of any one of the methods of claims 1 to 7 when the computer program product is executed by a computer.

Citation Information

Patent Citations

  • Robot positioning method, device and equipment and storage medium

    CN108638062A

  • Transformer substation operation guidance method, device and equipment and storage medium

    CN111739152A

  • Method for correcting position of vehicle, electronic device, and computer-readable medium

    CN111835811A

  • Position information generation method and device, equipment and computer readable medium

    CN114385772A

  • Positioning method and device, equipment and storage medium

    CN115755133A