Vehicle positioning method and device, computer equipment, readable storage medium and product
By using longitude and latitude coordinates, deviation distance and signal light status in intelligent driving vehicles, combined with lane number matching, the problem of insufficient vehicle positioning accuracy in an environment without high-precision maps is solved, and accurate position determination in the intersection area is achieved, improving the Navigation accuracy and reliability.
Patent Information
- Application Number
- CN202410547829.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2024-08-27
AI Technical Summary
The current smart driving vehicle positioning technology is difficult to accurately determine the vehicle position in the intersection area without high-precision maps, resulting in limited navigation accuracy.
Through the longitude and latitude coordinates of the vehicle, the vehicle's adjacent roads and waypoints on the navigation map are determined, and the vehicle position is accurately located by combining the deviation distance and signal light status. Especially in the intersection area, the number of lanes and signal light status are used for position matching.
It improves the accuracy of vehicle positioning, ensuring that the vehicle can be accurately bound to the road position in the navigation map in an environment without high-precision maps, and enhances the reliability and accuracy of navigation.
Smart Images

Figure CN118548902A
Abstract
Description
Technical Field
[0001] The present application relates to the field of navigation map positioning assistance technology, and in particular to a vehicle positioning method, device, computer equipment, readable storage medium and product. Background Art
[0002] Vehicle positioning is an important part of the autonomous driving system. The accuracy of the vehicle's position directly affects the accuracy and rationality of the vehicle's driving. At present, the intelligent driving vehicle positioning technology is mainly based on differential satellite positioning and high-precision map-assisted positioning. In the future, with the development of science and technology, intelligent driving will move towards a route without high-precision maps. The problem that needs to be solved is the coordinated use of vehicle positioning and vehicle navigation without high-precision maps. Summary of the invention
[0003] Based on this, it is necessary to provide a vehicle positioning method, device, computer equipment, readable storage medium and product that can improve the accuracy of vehicle positioning in response to the above technical problems.
[0004] In a first aspect, the present application provides a vehicle positioning method, comprising:
[0005] Determine the adjacent roads of the vehicle on the navigation map according to the latitude and longitude coordinates of the vehicle;
[0006] In the case where it is determined according to the latitude and longitude coordinates that the vehicle is not located in the intersection area, determining a neighboring waypoint of the vehicle on a neighboring road, and determining a deviation distance between the vehicle and the neighboring waypoint;
[0007] When the deviation distance is less than the first preset distance, determining the position of the vehicle according to adjacent roads and adjacent waypoints;
[0008] When it is determined that the vehicle is located in an intersection area according to the latitude and longitude coordinates, the number of lanes of each road in the intersection area is obtained from the navigation map;
[0009] In the case that there are at least two roads with the same number of lanes, the position of the vehicle is determined according to the state of traffic lights in the intersection area.
[0010] In one embodiment, the step of determining whether the vehicle is located in the intersection area according to the latitude and longitude coordinates includes:
[0011] Obtaining an endpoint waypoint on an adjacent road ahead of the vehicle in the direction of travel;
[0012] When the distance between the vehicle and the endpoint waypoint is greater than a second preset distance, determining that the vehicle is not located in the intersection area;
[0013] When the distance between the vehicle and the endpoint waypoint is less than or equal to the second preset distance, it is determined that the vehicle is located in the intersection area.
[0014] In one embodiment, the step of determining the position of the vehicle based on the adjacent roads and adjacent waypoints includes:
[0015] The distance between the vehicle and the endpoint waypoint is used as the longitudinal distance between the vehicle and the intersection area;
[0016] The location of the vehicle is determined based on the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0017] In one embodiment, the step of determining the position of the vehicle according to the state of the traffic lights in the intersection area includes:
[0018] Obtaining a detection signal of the vehicle; the detection signal is the state of the signal light in front of the vehicle's driving direction determined by the on-board sensor;
[0019] Determine the status of the traffic lights corresponding to each road in the intersection area;
[0020] The road whose signal light status is consistent with the detection signal is regarded as the target road where the vehicle is located;
[0021] Determine the target waypoint of the vehicle on the target road, and determine the position of the vehicle based on the road information of the target road and the latitude and longitude coordinates of the target waypoint.
[0022] In one embodiment, the method further comprises:
[0023] When the deviation distance is not less than the first preset distance, obtaining the continuous deviation distances between the vehicle and the adjacent waypoints corresponding to a plurality of consecutive moments within a preset time period;
[0024] When the continuous deviation distances corresponding to all moments are not less than the first preset distance, determining a current adjacent waypoint of the vehicle on the adjacent road;
[0025] Respectively obtain a first distance between the vehicle and the endpoint waypoint, and a second distance between the current adjacent waypoint and the endpoint waypoint;
[0026] When the difference between the first distance and the second distance is less than the preset difference distance, the position of the vehicle is determined according to the road information of the neighboring roads and the latitude and longitude coordinates of the neighboring road points.
[0027] In one embodiment, the method further comprises:
[0028] When the continuous deviation distance corresponding to the existence moment is less than the first preset distance, obtaining the average deviation distance of all continuous deviation distances;
[0029] When the mean deviation distance is less than the preset deviation distance, the position of the vehicle is determined based on the road information of the neighboring roads and the latitude and longitude coordinates of the neighboring road points.
[0030] In a second aspect, the present application also provides a vehicle positioning device, comprising:
[0031] A road determination module, used to determine the adjacent roads of the vehicle on the navigation map according to the latitude and longitude coordinates of the vehicle;
[0032] A waypoint determination module, for determining adjacent waypoints of the vehicle on adjacent roads and determining a deviation distance between the vehicle and the adjacent waypoints when it is determined based on the latitude and longitude coordinates that the vehicle is not located in the intersection area;
[0033] A first positioning module, used for determining the position of the vehicle according to adjacent roads and adjacent waypoints when the deviation distance is less than a first preset distance;
[0034] A lane acquisition module, for acquiring the number of lanes of each road in the intersection area from the navigation map when the vehicle is determined to be in the intersection area according to the latitude and longitude coordinates;
[0035] The second positioning module is used to determine the position of the vehicle according to the state of traffic lights in the intersection area when there are at least two roads with the same number of lanes.
[0036] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method steps of any one of the first aspects are implemented.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements any one of the method steps in the first aspect when the computer program is executed by a processor.
[0038] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which implements any one of the method steps in the first aspect when executed by a processor.
[0039] The above-mentioned vehicle positioning method, device, computer equipment, computer-readable storage medium and computer program product determine the adjacent roads of the vehicle on the navigation map and the adjacent waypoints of the vehicle on the adjacent roads based on the latitude and longitude coordinates of the vehicle, and when the vehicle is not located in the intersection area, obtain the deviation distance between the vehicle and the adjacent waypoints, and when the deviation distance is less than a first preset distance, determine the position of the vehicle based on the adjacent roads and the adjacent waypoints, and when the vehicle is located in the intersection area, obtain the number of lanes of each road in the intersection area from the navigation map, and determine the position of the vehicle based on the number of lanes and the status of traffic lights in the intersection area. Since positioning is assisted by the navigation map, the vehicle can be accurately bound to the road position in the navigation map, thereby improving the accuracy of vehicle positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A diagram showing an application environment of a vehicle positioning method in an embodiment;
[0042] Figure 2 A schematic diagram of a vehicle positioning method according to an embodiment;
[0043] Figure 3 A topological diagram of a crossroad in one embodiment;
[0044] Figure 4 is a topological schematic diagram of a ramp intersection in one embodiment;
[0045] Figure 5 A schematic diagram of a vehicle positioning method according to an embodiment;
[0046] Figure 6 is a structural block diagram of a vehicle positioning device in one embodiment;
[0047] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0049] The vehicle positioning method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the server 104 is used to cache the navigation map. The terminal 102 is used to determine the adjacent roads of the vehicle on the navigation map according to the latitude and longitude coordinates of the vehicle, and when it is determined that the vehicle is not located in the intersection area according to the latitude and longitude coordinates, determine the adjacent waypoints of the vehicle on the adjacent roads, determine the deviation distance between the vehicle and the adjacent waypoints, and when the deviation distance is less than the first preset distance, determine the position of the vehicle according to the adjacent roads and the adjacent waypoints, and when it is determined that the vehicle is located in the intersection area according to the latitude and longitude coordinates, obtain the number of lanes of each road in the intersection area from the navigation map, and when there are at least two roads with the same number of lanes, determine the position of the vehicle according to the state of the traffic lights in the intersection area. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices may be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 may be an independent physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides cloud computing services.
[0050] In an exemplary embodiment, Figure 2 As shown, a vehicle positioning method is provided, which is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, including the following steps 202 to 210. Among them:
[0051] S202: Determine adjacent roads of the vehicle on the navigation map according to the latitude and longitude coordinates of the vehicle.
[0052] Optionally, the latitude and longitude coordinates of the vehicle are obtained through the Global Navigation Satellite System (GNSS), and the latitude and longitude coordinates of the vehicle are matched with the road network on the navigation map by accessing the navigation map to determine the vehicle's adjacent roads on the navigation map, wherein the adjacent roads are represented by a series of waypoints. When matching, by comparing the distances between the vehicle and waypoints in the surrounding roads, the road corresponding to the closest distance between the vehicle and the waypoints is used as the vehicle's adjacent road.
[0053] S204: When it is determined based on the longitude and latitude coordinates that the vehicle is not located in the intersection area, determine a neighboring waypoint of the vehicle on a neighboring road, and determine a deviation distance between the vehicle and the neighboring waypoint.
[0054] Optionally, when the vehicle is not located in the intersection area, it means that there are only adjacent roads around the vehicle, and by determining the adjacent waypoints of the vehicle on the adjacent road, it is further confirmed whether the vehicle is located on the adjacent road, wherein the adjacent waypoint is the waypoint on the adjacent road that is closest to the vehicle, and the deviation distance is the straight-line distance between the vehicle and the adjacent waypoint.
[0055] S206: When the deviation distance is less than the first preset distance, determine the position of the vehicle according to adjacent roads and adjacent waypoints.
[0056] Optionally, when the deviation distance is less than the first preset distance, it means that the deviation between the vehicle and the adjacent waypoint is small, and the position of the vehicle on the navigation map is determined to be the adjacent waypoint on the adjacent road, so as to bind the vehicle to the adjacent road, accurately locate the position of the vehicle on the navigation map, and avoid navigation deviation. The position of the vehicle is represented by latitude and longitude coordinates.
[0057] S208: When it is determined based on the longitude and latitude coordinates that the vehicle is located in an intersection area, the number of lanes of each road in the intersection area is obtained from the navigation map.
[0058] Optionally, when the vehicle is located at an intersection, it means that there are more than one road around the vehicle. In this case, the adjacent road may not be the road where the vehicle is actually located. It is necessary to match the position of the road where the vehicle is actually located on the navigation map according to the number of lanes of each road in the intersection where the vehicle is located. The number of lanes is obtained through the navigation map and refers to the number of all lanes contained in a road.
[0059] S210: When there are at least two roads with the same number of lanes, determine the position of the vehicle according to the status of traffic lights in the intersection area.
[0060] Alternatively, if the number of lanes does not exist to be the same, for example, in a ramp condition, the number of lanes on the main road is greater than the number of lanes on the ramp, the number of lanes on the road where the vehicle is located can be used to directly determine the road where the vehicle is located, thereby locating the position of the vehicle. If the number of lanes exists to be the same, for example, in a crossroad condition, the number of lanes on the roads in each direction may be the same, then it is necessary to match the actual signal light state in the intersection area based on the vehicle's predicted front signal light state. When the vehicle's predicted front signal light state is consistent with the actual signal light state of a road in the intersection area, it is determined that the vehicle is located on that road, thereby determining the vehicle's position.
[0061] In the above-mentioned vehicle positioning method, the adjacent roads of the vehicle on the navigation map and the adjacent waypoints of the vehicle on the adjacent roads are determined based on the latitude and longitude coordinates of the vehicle. When the vehicle is not located in the intersection area, the deviation distance between the vehicle and the adjacent waypoints is obtained. When the deviation distance is less than a first preset distance, the position of the vehicle is determined based on the adjacent roads and the adjacent waypoints. When the vehicle is located in the intersection area, the number of lanes of each road in the intersection area is obtained from the navigation map. The position of the vehicle is determined based on the number of lanes and the status of traffic lights in the intersection area. Since positioning is assisted by the navigation map, the vehicle and the road position in the navigation map can be accurately bound, thereby improving the accuracy of vehicle positioning.
[0062] In an exemplary embodiment, the step of determining whether a vehicle is located in an intersection area based on latitude and longitude coordinates includes: obtaining an endpoint waypoint on an adjacent road that is located ahead of the vehicle's travel direction; determining that the vehicle is not located in the intersection area when the distance between the vehicle and the endpoint waypoint is greater than a second preset distance; and determining that the vehicle is located in the intersection area when the distance between the vehicle and the endpoint waypoint is less than or equal to the second preset distance.
[0063] Optionally, the adjacent road is represented by a series of waypoints, the waypoints at both ends of the adjacent road are called waypoint endpoints, the endpoint waypoint located in front of the vehicle's travel direction is used as the target waypoint, and the straight-line distance between the vehicle and the target waypoint is determined. If the straight-line distance is greater than a second preset distance, it indicates that the vehicle is not located in the intersection area, and if the straight-line distance is less than the second preset distance, it indicates that the vehicle is located in the intersection area. The second preset distance can be set according to actual road conditions.
[0064] In this embodiment, by determining the distance between the vehicle and the front endpoint waypoint, it is determined whether the vehicle is located in the intersection area, so that the range of the road where the vehicle is located can be quickly determined, and then the road where the vehicle is located can be accurately located, thereby improving the accuracy of vehicle positioning.
[0065] In an exemplary embodiment, the step of determining the position of the vehicle based on adjacent roads and adjacent waypoints includes: using the distance between the vehicle and the endpoint waypoint as the longitudinal distance between the vehicle and the intersection area; and determining the position of the vehicle based on the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0066] Optionally, the road information of the adjacent road is bound to the vehicle, the road position of the vehicle on the navigation map is determined, and the latitude and longitude coordinates of the adjacent waypoints are used as the position coordinates of the vehicle in the navigation map. The final determined position of the vehicle can be expressed as: located at the adjacent waypoint on the adjacent road, and the longitudinal distance from the intersection area. It should be noted that the vehicle position can also be directly expressed by latitude and longitude coordinates, and the specific method is not limited.
[0067] In this embodiment, by using the distance between the vehicle and the endpoint waypoint as the longitudinal distance between the vehicle and the intersection area, the position of the vehicle is determined according to the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints. This can accurately determine the position of the vehicle on the road, improve the accuracy of vehicle positioning, provide more reliable data support for the navigation map, and ensure the accuracy of navigation.
[0068] In an exemplary embodiment, the steps of determining the position of a vehicle based on the status of traffic lights in an intersection area include: obtaining a detection signal of the vehicle; the detection signal is the status of the traffic light in front of the vehicle's driving direction determined by an on-board sensor; determining the status of the traffic lights corresponding to each road in the intersection area; taking the road whose traffic light status is consistent with the detection signal as the target road for the vehicle; determining the target waypoint of the vehicle on the target road, and determining the position of the vehicle based on the road information of the target road and the latitude and longitude coordinates of the target waypoint.
[0069] Alternatively, if Figure 3 As shown, Figure 3 The topological diagram of the intersection. Under the traffic conditions of the intersection, there may be multiple roads with the same number of lanes. At this time, the actual signal light state in the intersection area is matched according to the signal light state predicted by the vehicle. Specifically, the signal light state in front of the vehicle is detected by the on-board sensor as the signal light state predicted by the vehicle (i.e., the detection signal). At the same time, the actual signal light state corresponding to each road is determined according to the signal light state in the intersection area. When the signal light state predicted by the vehicle is consistent with the actual signal light state, the corresponding road is used as the target road where the vehicle is located. At this time, the target road may not be an adjacent road, thereby eliminating the interference caused by positioning errors. The position of the vehicle is determined according to the target waypoint corresponding to the vehicle on the target road. Among them, if there are multiple roads with the same signal light state, the road where the vehicle is located is determined according to the road direction in the intersection area and the vehicle's driving direction.
[0070] Alternatively, if Figure 4 As shown, Figure 4 This is a topological diagram of a ramp intersection. Under ramp conditions, the number of lanes on the main road is usually greater than that on the ramp. According to the number of lanes on the road where the vehicle is located, the number of lanes on each road in the intersection area in the navigation map is matched to determine the target road where the vehicle is located.
[0071] In this embodiment, the position of the vehicle is determined based on the number of lanes and the status of traffic lights in the intersection area. Since positioning is assisted by a navigation map, the vehicle can be accurately bound to the road position in the navigation map, thereby improving the accuracy of vehicle positioning.
[0072] In an exemplary embodiment, the method further includes: obtaining continuous deviation distances between the vehicle and adjacent waypoints corresponding to multiple consecutive moments within a preset time period when the deviation distance is not less than a first preset distance; determining the current adjacent waypoint of the vehicle on the adjacent road when the continuous deviation distances corresponding to all moments are not less than the first preset distance; respectively obtaining a first distance between the vehicle and the endpoint waypoint, and a second distance between the current adjacent waypoint and the endpoint waypoint; and determining the position of the vehicle based on the road information of the adjacent road and the latitude and longitude coordinates of the adjacent waypoint when the difference between the first distance and the second distance is less than a preset difference distance.
[0073] Optionally, when the deviation distance between the vehicle and the adjacent road point is not less than the first preset distance, it may be due to the positioning error that the identified adjacent road is deviated and is not the road where the vehicle is actually located. At this time, by obtaining the continuous deviation distances at multiple consecutive moments, if the continuous deviation distances are not less than the first preset distance, the first distance between the vehicle and the intersection area and the second distance between the adjacent road point and the intersection area at the current moment are calculated respectively. When the absolute value of the difference between the first distance and the second distance is less than the threshold, it may be an error caused by abnormal vehicle positioning. The vehicle is actually still located on the adjacent road. The position of the vehicle is determined based on the road information of the adjacent road and the longitude and latitude coordinates of the adjacent road point. If the difference between the first distance and the second distance is greater than the threshold, it is considered that the road where the vehicle is currently located is not in the navigation map, and the longitude and latitude coordinates of the vehicle are directly reported at this time.
[0074] In this embodiment, by obtaining the continuous deviation distance between the vehicle and the adjacent waypoints corresponding to multiple consecutive moments, it is further determined whether the vehicle is located on the adjacent road based on the continuous deviation between the vehicle and the adjacent waypoints. The vehicle can be accurately bound to the road position in the navigation map, thereby improving the accuracy of vehicle positioning.
[0075] In an exemplary embodiment, the method also includes: when the continuous deviation distance corresponding to the existence moment is less than a first preset distance, obtaining the mean deviation distance of all continuous deviation distances; when the mean deviation distance is less than the preset deviation distance, determining the position of the vehicle based on the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0076] Optionally, if only the deviation distance corresponding to some moments is greater than the first preset distance, the average deviation distance of all continuous deviation distances is calculated. If the deviation distance is less than the preset value, it is considered that the vehicle is located on an adjacent road, and the position of the vehicle is determined based on the road information of the adjacent road and the latitude and longitude coordinates of the adjacent waypoints.
[0077] In this embodiment, when the continuous deviation distance corresponding to the existence moment is less than the first preset distance, the mean deviation distance of all continuous deviation distances is obtained, and whether the vehicle is located on a neighboring road is determined by the mean deviation distance. This can accurately bind the vehicle to the road position in the navigation map, thereby improving the accuracy of vehicle positioning.
[0078] In an exemplary embodiment, Figure 5 As shown, a vehicle positioning method is provided, the method comprising the following steps:
[0079] According to the latitude and longitude coordinates of the vehicle, the adjacent roads of the vehicle on the navigation map are determined.
[0080] An endpoint waypoint on an adjacent road that is ahead of the vehicle in the direction of travel is obtained; when the distance between the vehicle and the endpoint waypoint is greater than a second preset distance, it is determined that the vehicle is not located in an intersection area; when the distance between the vehicle and the endpoint waypoint is less than or equal to the second preset distance, it is determined that the vehicle is located in an intersection area.
[0081] When it is determined according to the latitude and longitude coordinates that the vehicle is not located in the intersection area, a neighboring waypoint of the vehicle on a neighboring road is determined, and a deviation distance between the vehicle and the neighboring waypoint is determined.
[0082] When the deviation distance is less than the first preset distance, the distance between the vehicle and the endpoint waypoint is used as the longitudinal distance between the vehicle and the intersection area; the position of the vehicle is determined based on the road information of the adjacent road and the latitude and longitude coordinates of the adjacent waypoint.
[0083] When it is determined that the vehicle is located in an intersection area according to the latitude and longitude coordinates, the number of lanes of each road in the intersection area is obtained from the navigation map.
[0084] In the case where there are at least two roads with the same number of lanes, a detection signal of the vehicle is obtained; the detection signal is the state of a traffic light in front of the vehicle's driving direction determined by an on-board sensor; the state of the traffic lights corresponding to each road in the intersection area is determined; the road whose traffic light state is consistent with the detection signal is taken as the target road where the vehicle is located, the target waypoint of the vehicle on the target road is determined, and the position of the vehicle is determined based on the road information of the target road and the latitude and longitude coordinates of the target waypoint.
[0085] When the deviation distance is not less than a first preset distance, obtain the continuous deviation distances between the vehicle and the adjacent waypoints corresponding to multiple consecutive moments within a preset time period; when the continuous deviation distances corresponding to all moments are not less than the first preset distance, determine the current adjacent waypoint of the vehicle on the adjacent road; obtain the first distance between the vehicle and the endpoint waypoint, and the second distance between the current adjacent waypoint and the endpoint waypoint respectively; when the difference between the first distance and the second distance is less than the preset difference distance, determine the position of the vehicle based on the road information of the adjacent road and the latitude and longitude coordinates of the adjacent waypoint.
[0086] When the continuous deviation distance corresponding to the existence moment is less than the first preset distance, the mean deviation distance of all continuous deviation distances is obtained; when the mean deviation distance is less than the preset deviation distance, the position of the vehicle is determined according to the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0087] In this embodiment, the adjacent roads of the vehicle on the navigation map and the adjacent waypoints of the vehicle on the adjacent roads are determined based on the latitude and longitude coordinates of the vehicle. When the vehicle is not located in an intersection area, the deviation distance between the vehicle and the adjacent waypoints is obtained. When the deviation distance is less than a first preset distance, the position of the vehicle is determined based on the adjacent roads and the adjacent waypoints. When the vehicle is located in the intersection area, the number of lanes of each road in the intersection area is obtained from the navigation map. The position of the vehicle is determined based on the number of lanes and the status of traffic lights in the intersection area. Since positioning is assisted by the navigation map, the vehicle and the road position in the navigation map can be accurately bound, thereby improving the accuracy of vehicle positioning.
[0088] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0089] Based on the same inventive concept, the embodiment of the present application also provides a vehicle positioning device for implementing the vehicle positioning method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more vehicle positioning device embodiments provided below can refer to the limitations on the vehicle positioning method above, and will not be repeated here.
[0090] In an exemplary embodiment, Figure 6 As shown, a vehicle positioning device is provided, comprising: a road determination module 10, a waypoint determination module 20, a first positioning module 30, a lane acquisition module 40 and a second positioning module 50, wherein:
[0091] The road determination module 10 is used to determine the adjacent roads of the vehicle on the navigation map according to the latitude and longitude coordinates of the vehicle.
[0092] The waypoint determination module 20 is used to determine the adjacent waypoints of the vehicle on the adjacent roads and determine the deviation distance between the vehicle and the adjacent waypoints when it is determined based on the latitude and longitude coordinates that the vehicle is not located in the intersection area.
[0093] The first positioning module 30 is used to determine the position of the vehicle according to adjacent roads and adjacent waypoints when the deviation distance is less than a first preset distance.
[0094] The lane acquisition module 40 is used to acquire the number of lanes of each road in the intersection area from the navigation map when it is determined that the vehicle is located in the intersection area according to the latitude and longitude coordinates.
[0095] The second positioning module 50 is used to determine the position of the vehicle according to the state of traffic lights in the intersection area when there are at least two roads with the same number of lanes.
[0096] In an exemplary embodiment, the road determination module 10 is also used to obtain an endpoint waypoint on an adjacent road that is located ahead of the vehicle's driving direction; when the distance between the vehicle and the endpoint waypoint is greater than a second preset distance, it is determined that the vehicle is not located in an intersection area; when the distance between the vehicle and the endpoint waypoint is less than or equal to the second preset distance, it is determined that the vehicle is located in an intersection area.
[0097] In an exemplary embodiment, the first positioning module 30 is further configured to use the distance between the vehicle and the endpoint waypoint as the longitudinal distance between the vehicle and the intersection area; and determine the position of the vehicle based on the road information of the adjacent road and the latitude and longitude coordinates of the adjacent waypoint.
[0098] In an exemplary embodiment, the second positioning module 50 is also used to obtain a detection signal of the vehicle; the detection signal is the state of the traffic light in front of the vehicle's driving direction determined by the on-board sensor; the traffic light state corresponding to each road in the intersection area is determined; the road whose traffic light state is consistent with the detection signal is used as the target road for the vehicle; the target waypoint of the vehicle on the target road is determined, and the position of the vehicle is determined based on the road information of the target road and the latitude and longitude coordinates of the target waypoint.
[0099] In an exemplary embodiment, the second positioning module 50 is also used to obtain the continuous deviation distance between the vehicle and the adjacent waypoint corresponding to multiple consecutive moments within a preset time period when the deviation distance is not less than the first preset distance; determine the current adjacent waypoint of the vehicle on the adjacent road when the continuous deviation distance corresponding to all moments is not less than the first preset distance; obtain the first distance between the vehicle and the endpoint waypoint, and the second distance between the current adjacent waypoint and the endpoint waypoint respectively; and determine the position of the vehicle based on the road information of the adjacent road and the latitude and longitude coordinates of the adjacent waypoint when the difference between the first distance and the second distance is less than the preset difference distance.
[0100] In an exemplary embodiment, the second positioning module 50 is also used to obtain the mean deviation distance of all continuous deviation distances when the continuous deviation distance corresponding to the existence moment is less than the first preset distance; when the mean deviation distance is less than the preset deviation distance, the position of the vehicle is determined according to the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0101] Each module in the above vehicle positioning device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0102] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a vehicle positioning method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0103] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0104] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: determining the adjacent roads of the vehicle on a navigation map based on the latitude and longitude coordinates of the vehicle; determining adjacent waypoints of the vehicle on the adjacent roads and determining the deviation distance between the vehicle and the adjacent waypoints when it is determined based on the latitude and longitude coordinates that the vehicle is not located in an intersection area; determining the position of the vehicle based on the adjacent roads and the adjacent waypoints when the deviation distance is less than a first preset distance; obtaining the number of lanes of each road in the intersection area from the navigation map when it is determined based on the latitude and longitude coordinates that the vehicle is located in an intersection area; and determining the position of the vehicle based on the state of traffic lights in the intersection area when there are at least two roads with the same number of lanes.
[0105] In one embodiment, the steps involved in determining whether a vehicle is located in an intersection area based on latitude and longitude coordinates when a processor executes a computer program include: obtaining an endpoint waypoint on an adjacent road that is located ahead of the vehicle's travel direction; determining that the vehicle is not located in the intersection area when the distance between the vehicle and the endpoint waypoint is greater than a second preset distance; and determining that the vehicle is located in the intersection area when the distance between the vehicle and the endpoint waypoint is less than or equal to the second preset distance.
[0106] In one embodiment, the processor determines the position of the vehicle based on adjacent roads and adjacent waypoints when executing a computer program, including: using the distance between the vehicle and the endpoint waypoint as the longitudinal distance between the vehicle and the intersection area; and determining the position of the vehicle based on road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0107] In one embodiment, the processor determines the position of the vehicle based on the status of traffic lights in an intersection area when executing a computer program, including: obtaining a detection signal of the vehicle; the detection signal is the status of the traffic light in front of the vehicle in the direction of travel determined by the on-board sensor; determining the status of the traffic lights corresponding to each road in the intersection area; taking the road whose traffic light status is consistent with the detection signal as the target road where the vehicle is located; determining the target waypoint of the vehicle on the target road, and determining the position of the vehicle based on the road information of the target road and the latitude and longitude coordinates of the target waypoint.
[0108] In one embodiment, the processor further implements the following steps when executing the computer program: when the deviation distance is not less than a first preset distance, obtaining the continuous deviation distances between the vehicle and the adjacent waypoints corresponding to multiple consecutive moments within a preset time period; when the continuous deviation distances corresponding to all moments are not less than the first preset distance, determining the current adjacent waypoint of the vehicle on the adjacent road; obtaining the first distance between the vehicle and the endpoint waypoint, and the second distance between the current adjacent waypoint and the endpoint waypoint respectively; when the difference between the first distance and the second distance is less than the preset difference distance, determining the position of the vehicle based on the road information of the adjacent road and the latitude and longitude coordinates of the adjacent waypoint.
[0109] In one embodiment, when the processor executes the computer program, the following steps are also implemented: when the continuous deviation distance corresponding to the existence moment is less than the first preset distance, the mean deviation distance of all continuous deviation distances is obtained; when the mean deviation distance is less than the preset deviation distance, the position of the vehicle is determined according to the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0110] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: determining the adjacent roads of the vehicle on a navigation map based on the latitude and longitude coordinates of the vehicle; in a case where it is determined that the vehicle is not located in an intersection area based on the latitude and longitude coordinates, determining the adjacent waypoints of the vehicle on the adjacent roads, and determining the deviation distance between the vehicle and the adjacent waypoints; in a case where the deviation distance is less than a first preset distance, determining the position of the vehicle based on the adjacent roads and the adjacent waypoints; in a case where it is determined that the vehicle is located in an intersection area based on the latitude and longitude coordinates, obtaining the number of lanes of each road in the intersection area from the navigation map; in a case where there are at least two roads with the same number of lanes, determining the position of the vehicle based on the state of traffic lights in the intersection area.
[0111] In one embodiment, the steps involved in determining whether a vehicle is located in an intersection area based on latitude and longitude coordinates when a computer program is executed by a processor include: obtaining an endpoint waypoint on an adjacent road that is located ahead of the vehicle's travel direction; determining that the vehicle is not located in the intersection area when the distance between the vehicle and the endpoint waypoint is greater than a second preset distance; and determining that the vehicle is located in the intersection area when the distance between the vehicle and the endpoint waypoint is less than or equal to the second preset distance.
[0112] In one embodiment, the computer program executed by the processor involves determining the position of the vehicle based on adjacent roads and adjacent waypoints, including: using the distance between the vehicle and the endpoint waypoint as the longitudinal distance between the vehicle and the intersection area; and determining the position of the vehicle based on the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0113] In one embodiment, when a computer program is executed by a processor, the method involves determining the position of a vehicle based on the status of traffic lights in an intersection area, including: obtaining a detection signal of the vehicle; the detection signal is the status of the traffic light in front of the vehicle in the direction of travel determined by an on-board sensor; determining the status of traffic lights corresponding to each road in the intersection area; taking the road whose traffic light status is consistent with the detection signal as the target road where the vehicle is located; determining the target waypoint of the vehicle on the target road, and determining the position of the vehicle based on the road information of the target road and the latitude and longitude coordinates of the target waypoint.
[0114] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the deviation distance is not less than a first preset distance, the continuous deviation distances between the vehicle and the adjacent waypoints corresponding to multiple consecutive moments within a preset time period are obtained; when the continuous deviation distances corresponding to all moments are not less than the first preset distance, the current adjacent waypoint of the vehicle on the adjacent road is determined; the first distance between the vehicle and the endpoint waypoint, and the second distance between the current adjacent waypoint and the endpoint waypoint are respectively obtained; when the difference between the first distance and the second distance is less than the preset difference distance, the position of the vehicle is determined based on the road information of the adjacent road and the latitude and longitude coordinates of the adjacent waypoint.
[0115] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the continuous deviation distance corresponding to the existence moment is less than the first preset distance, the mean deviation distance of all continuous deviation distances is obtained; when the mean deviation distance is less than the preset deviation distance, the position of the vehicle is determined based on the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0116] In one embodiment, a computer program product is provided, comprising a computer program, which implements the following steps when executed by a processor: determining the adjacent roads of the vehicle on a navigation map based on the latitude and longitude coordinates of the vehicle; determining adjacent waypoints of the vehicle on the adjacent roads and determining the deviation distance between the vehicle and the adjacent waypoints when it is determined based on the latitude and longitude coordinates that the vehicle is not located in an intersection area; determining the position of the vehicle based on the adjacent roads and the adjacent waypoints when the deviation distance is less than a first preset distance; obtaining the number of lanes of each road in the intersection area from the navigation map when it is determined based on the latitude and longitude coordinates that the vehicle is located in an intersection area; and determining the position of the vehicle based on the state of traffic lights in the intersection area when there are at least two roads with the same number of lanes.
[0117] In one embodiment, the steps involved in determining whether a vehicle is located in an intersection area based on latitude and longitude coordinates when a computer program is executed by a processor include: obtaining an endpoint waypoint on an adjacent road that is located ahead of the vehicle's travel direction; determining that the vehicle is not located in the intersection area when the distance between the vehicle and the endpoint waypoint is greater than a second preset distance; and determining that the vehicle is located in the intersection area when the distance between the vehicle and the endpoint waypoint is less than or equal to the second preset distance.
[0118] In one embodiment, the computer program executed by the processor involves determining the position of the vehicle based on adjacent roads and adjacent waypoints, including: using the distance between the vehicle and the endpoint waypoint as the longitudinal distance between the vehicle and the intersection area; and determining the position of the vehicle based on the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0119] In one embodiment, when a computer program is executed by a processor, the method involves determining the position of a vehicle based on the status of traffic lights in an intersection area, including: obtaining a detection signal of the vehicle; the detection signal is the status of the traffic light in front of the vehicle in the direction of travel determined by an on-board sensor; determining the status of traffic lights corresponding to each road in the intersection area; taking the road whose traffic light status is consistent with the detection signal as the target road where the vehicle is located; determining the target waypoint of the vehicle on the target road, and determining the position of the vehicle based on the road information of the target road and the latitude and longitude coordinates of the target waypoint.
[0120] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the deviation distance is not less than a first preset distance, the continuous deviation distances between the vehicle and the adjacent waypoints corresponding to multiple consecutive moments within a preset time period are obtained; when the continuous deviation distances corresponding to all moments are not less than the first preset distance, the current adjacent waypoint of the vehicle on the adjacent road is determined; the first distance between the vehicle and the endpoint waypoint, and the second distance between the current adjacent waypoint and the endpoint waypoint are respectively obtained; when the difference between the first distance and the second distance is less than the preset difference distance, the position of the vehicle is determined based on the road information of the adjacent road and the latitude and longitude coordinates of the adjacent waypoint.
[0121] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the continuous deviation distance corresponding to the existence moment is less than the first preset distance, the mean deviation distance of all continuous deviation distances is obtained; when the mean deviation distance is less than the preset deviation distance, the position of the vehicle is determined based on the road information of the adjacent roads and the latitude and longitude coordinates of the adjacent waypoints.
[0122] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0123] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0124] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A vehicle positioning method, characterized in that: The method comprises: Determining adjacent roads of the vehicle on a navigation map according to the latitude and longitude coordinates of the vehicle; In the case where it is determined according to the latitude and longitude coordinates that the vehicle is not located in the intersection area, determining a neighboring waypoint of the vehicle on the neighboring road, and determining a deviation distance between the vehicle and the neighboring waypoint; When the deviation distance is less than a first preset distance, determining the position of the vehicle according to the adjacent roads and the adjacent waypoints; When it is determined that the vehicle is located in the intersection area according to the latitude and longitude coordinates, obtaining the number of lanes of each road in the intersection area from the navigation map; In the case that there are at least two roads with the same number of lanes, the position of the vehicle is determined according to the state of traffic lights in the intersection area.
2. The method according to claim 1, characterized in that The step of determining whether the vehicle is located in an intersection area according to the latitude and longitude coordinates comprises: Acquire an endpoint waypoint on the adjacent road that is ahead of the vehicle in the driving direction; When the distance between the vehicle and the endpoint waypoint is greater than a second preset distance, determining that the vehicle is not located in an intersection area; When the distance between the vehicle and the endpoint waypoint is less than or equal to the second preset distance, it is determined that the vehicle is located in the intersection area.
3. The method according to claim 2, characterized in that The step of determining the position of the vehicle according to the adjacent roads and the adjacent waypoints comprises: Taking the distance between the vehicle and the endpoint waypoint as the longitudinal distance between the vehicle and the intersection area; The position of the vehicle is determined according to the road information of the adjacent road and the latitude and longitude coordinates of the adjacent road points.
4. The method according to claim 1, characterized in that: The determining the position of the vehicle according to the state of the traffic lights in the intersection area includes: Acquire a detection signal of the vehicle; the detection signal is a state of a signal light in front of the vehicle in the driving direction determined by a vehicle-mounted sensor; Determine the status of the traffic lights corresponding to each road in the intersection area; The road whose signal light status is consistent with the detection signal is used as the target road where the vehicle is located; A target waypoint of the vehicle on the target road is determined, and the position of the vehicle is determined according to the road information of the target road and the latitude and longitude coordinates of the target waypoint.
5. The method according to claim 2, characterized in that: The method further comprises: When the deviation distance is not less than the first preset distance, obtaining continuous deviation distances between the vehicle and the adjacent waypoint corresponding to a plurality of consecutive moments within a preset time period; When the continuous deviation distances corresponding to all moments are not less than the first preset distance, determining a current adjacent waypoint of the vehicle on the adjacent road; Respectively acquiring a first distance between the vehicle and the endpoint waypoint, and a second distance between the current adjacent waypoint and the endpoint waypoint; When the difference between the first distance and the second distance is less than a preset difference distance, the position of the vehicle is determined according to the road information of the adjacent road and the latitude and longitude coordinates of the adjacent road point.
6. The method according to claim 5, characterized in that The method further comprises: In the case where the continuous deviation distance corresponding to the existence moment is less than the first preset distance, obtaining the average deviation distance of all continuous deviation distances; When the mean deviation distance is less than the preset deviation distance, the position of the vehicle is determined according to the road information of the neighboring road and the latitude and longitude coordinates of the neighboring waypoints.
7. A vehicle positioning device, characterized in that: The device comprises: A road determination module, used to determine the adjacent roads of the vehicle on the navigation map according to the latitude and longitude coordinates of the vehicle; A waypoint determination module, configured to determine a neighboring waypoint of the vehicle on the neighboring road and determine a deviation distance between the vehicle and the neighboring waypoint when it is determined according to the latitude and longitude coordinates that the vehicle is not located in a road intersection area; A first positioning module, configured to determine the position of the vehicle according to the adjacent roads and the adjacent waypoints when the deviation distance is less than a first preset distance; A lane acquisition module, configured to acquire the number of lanes of each road in the intersection area from the navigation map when it is determined that the vehicle is located in the intersection area according to the latitude and longitude coordinates; The second positioning module is used to determine the position of the vehicle according to the state of the traffic lights in the intersection area when there are at least two roads with the same number of lanes.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
