CN117216176A - Method, device, electronic equipment and storage medium for acquiring driver end position - Google Patents
Method, device, electronic equipment and storage medium for acquiring driver end position Download PDFInfo
- Publication number
- CN117216176A CN117216176A CN202311179134.XA CN202311179134A CN117216176A CN 117216176 A CN117216176 A CN 117216176A CN 202311179134 A CN202311179134 A CN 202311179134A CN 117216176 A CN117216176 A CN 117216176A
- Authority
- CN
- China
- Prior art keywords
- driver
- distance
- path
- side vehicle
- factor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 76
- 238000012545 processing Methods 0.000 claims description 12
- 238000013507 mapping Methods 0.000 claims description 10
- 238000013179 statistical model Methods 0.000 claims description 6
- YBJHBAHKTGYVGT-ZKWXMUAHSA-N (+)-Biotin Chemical compound N1C(=O)N[C@@H]2[C@H](CCCCC(=O)O)SC[C@@H]21 YBJHBAHKTGYVGT-ZKWXMUAHSA-N 0.000 description 12
- FEPMHVLSLDOMQC-UHFFFAOYSA-N virginiamycin-S1 Natural products CC1OC(=O)C(C=2C=CC=CC=2)NC(=O)C2CC(=O)CCN2C(=O)C(CC=2C=CC=CC=2)N(C)C(=O)C2CCCN2C(=O)C(CC)NC(=O)C1NC(=O)C1=NC=CC=C1O FEPMHVLSLDOMQC-UHFFFAOYSA-N 0.000 description 12
- 238000004364 calculation method Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000007613 environmental effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008054 signal transmission Effects 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Navigation (AREA)
Abstract
The invention relates to a method, a device, electronic equipment and a storage medium for acquiring a driver end position. The method relates to the technical field of cross-platform data sharing, and comprises the following steps: acquiring an observation position of a driver-side vehicle, wherein the observation position is the position of the driver-side vehicle acquired by an application program; the observed position is adjusted according to a bias factor and a distance factor, so that an effective position of the driver-side vehicle is obtained, the bias factor is used for projecting the observed position onto a target path, and the distance factor is used for controlling update frequency of the effective position of the driver-side vehicle; and transmitting the effective position of the driver-side vehicle to a passenger terminal. The method can improve the accuracy of the driver-end vehicle position, enable the driver-end vehicle position acquired by the passenger to be consistent with the actual vehicle position, and improve the user experience.
Description
Technical Field
The present invention relates to the field of cross-platform data sharing technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for obtaining a driver end position.
Background
With the popularization of network taxi service, many third party applications are convenient for user management in order to improve user viscosity and can be externally connected with driver resources of network taxi suppliers, and because drivers of the suppliers belong to network taxi driver end users, passengers are users of the third party applications, application programs used by the third party applications are different, and therefore when passengers use the third party applications for passengers, the third party applications acquire position information of the drivers by calling interfaces provided by the network taxi suppliers, so that passengers can conveniently know the current positions of the drivers.
However, in research and practice of the prior art, the inventor of the present invention found that when a driver places a network vehicle order through a third party application, a vehicle icon representing a driver position displayed on the third party application drifts in the process that the driver goes to an access point, so that the judgment of the user on the driver position is affected, and the riding experience is poor. The reasons for the drift of the vehicle icon representing the driver position displayed on the third party application may be environmental factors, signal transmission factors, insufficient hardware setting and other factors, for example, when the vehicle runs in a tunnel or a place covered by a high building, the signal intensity of the GPS is weaker, the positioning signal of the driver can be affected, the frequency of calling an interface provided by a network vehicle provider by the third party application is lower than the frequency of acquiring normal position information, and the third party application lacks auxiliary information such as base station information of a mobile operation network, speed information of the driver, wiFi information and the like to adjust the driver positioning, and the third party application cannot accurately estimate the position of the driver due to the lack of the excessively discrete position information and the auxiliary information.
Therefore, the environmental factors, the signal transmission factors and the hardware setting deficiency factors can cause deviation between the position of the driver acquired by the third party application and the actual position of the driver, so that the vehicle icon representing the position of the driver displayed on the third party application drifts, and the user experience is seriously affected.
Disclosure of Invention
Based on this, it is necessary to provide a method, an apparatus, an electronic device and a storage medium for obtaining the driver end position, aiming at the problem that the third party application in the prior art cannot accurately obtain the real-time position of the driver.
Based on the above object, in a first aspect, the present application proposes a method for acquiring a driver end position, the method comprising: acquiring an observation position of a driver-side vehicle, wherein the observation position is the position of the driver-side vehicle acquired by an application program; the observed position is adjusted according to a bias factor and a distance factor, so that an effective position of the driver-side vehicle is obtained, the bias factor is used for projecting the observed position onto a target path, and the distance factor is used for controlling update frequency of the effective position of the driver-side vehicle; and transmitting the effective position of the driver-side vehicle to a passenger terminal.
Optionally, before the obtaining the observed position of the driver-side vehicle, the method further includes: acquiring an initial position of a driver when receiving an order of a network vehicle, and acquiring a guest receiving point displayed in the order of the network vehicle; and taking the initial position as a starting point, taking the guest point as an ending point, obtaining at least one planned path, and taking the starting point as an initial effective position of the driver-side vehicle.
Optionally, the adjusting the observing position according to the bias factor and the distance factor to obtain an effective position of the driver-side vehicle includes: acquiring a road closest to the observation position as a reference path according to preset road network information; determining a target path according to the distance relation between the observation position and the reference path and each planning path, wherein the target path is one of any planning path and the reference path; and obtaining the effective position of the driver-side vehicle according to the projection position of the observation position on the target path and the distance factor.
Optionally, the determining the target path according to the distance relation between the observation position and the reference path and each planned path respectively includes: calculating the distance between the observation position and each planned path to obtain a planned path with the minimum distance as an alternative path; calculating a first distance between the observation position and the alternative path, and calculating a second distance between the observation position and the reference path; when the difference between the first distance and the second distance is smaller than the bias factor, the alternative path is taken as a target path; and when the difference between the first distance and the second distance is greater than or equal to the bias factor, the reference path is taken as a target path.
Optionally, the obtaining the effective position of the driver-side vehicle according to the projection position of the observation position on the target path and the distance factor includes: acquiring an effective position at a preset moment; and when the distance between the projection position of the observation position on the target path and the effective position at the preset moment is larger than a distance factor, taking the projection position of the observation position on the target path as the effective position of the driver-side vehicle.
Optionally, after the obtaining the valid position of the driver-side vehicle, the method further includes: and judging whether the effective position is on any planning path, if so, continuing to calculate the next effective position, and if not, recalculating the planning path.
Optionally, the method further comprises updating the bias factor and the distance factor based on a statistical model, and the updating method comprises: under the condition that a driver-side vehicle reaches a passenger access point, acquiring an actual driving route of the driver-side vehicle; obtaining a mapping position of the observing position of the driver-side vehicle on the actual driving route of the driver, and obtaining an error data set according to a difference value between the observing position of the driver-side vehicle and the mapping position of the observing position on the actual driving route; and after the data quantity in the error data set reaches a preset quantity, updating the bias factor and the distance factor.
In a second aspect, there is also provided an apparatus for acquiring a driver end position, the apparatus for acquiring a driver end position including: the data acquisition module is used for acquiring the observation position of the driver-side vehicle, wherein the observation position is the position of the driver-side vehicle acquired by the application program; the data processing module is used for adjusting the observation position according to a bias factor and a distance factor to obtain an effective position of the driver-side vehicle, the bias factor is used for projecting the observation position onto a target path, and the distance factor is used for controlling the updating frequency of the effective position of the driver-side vehicle; and the output module is used for sending the effective position of the driver-side vehicle to the passenger terminal. .
In a third aspect, there is also provided an electronic device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the method of the first aspect.
In a fourth aspect, there is also provided a storage medium storing computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any of the first aspects.
Overall, the beneficial effects of the application are at least:
the method for acquiring the driver end position comprises the steps of longitudinally adjusting the observed position through a bias factor, reasonably projecting the observed position of a driver onto a target path, improving the selection accuracy of the target path, transversely adjusting the projection of the observed position on the target path through a distance factor to obtain an effective position, reducing the influence of noise on the positioning of the vehicle when the vehicle runs slowly or is stationary, avoiding slow updating of the driver end vehicle position, and finally sending the effective position of the driver end vehicle to a passenger terminal.
Drawings
FIG. 1 is a diagram of an implementation environment for a method of acquiring a driver end position provided in one embodiment;
FIG. 2 is a flowchart illustrating steps of a method for obtaining a driver end position in one embodiment;
FIG. 3 is a schematic diagram of a process for obtaining an effective position of a driver-side vehicle in one embodiment;
FIG. 4 is a block diagram of an apparatus for acquiring a driver's side position in one embodiment;
FIG. 5 is a schematic diagram of an electronic device according to one embodiment;
FIG. 6 is a schematic diagram of a computer-readable storage medium provided by one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It will be understood that the terms first, second, etc. as used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 is a diagram of an implementation environment of a method for acquiring a driver end position provided in one embodiment, as shown in fig. 1, in the implementation environment, including a computer device 110 and a terminal 120.
The computer device 110 may be a server, and the computer device 110 and the terminal device 120 may be connected by bluetooth, USB (Universal Serial Bus ) or other communication connection, which is not limited herein.
The computer device 110 provides a processing, database, service point for communication facilities. The servers may be monolithic servers, distributed servers across multiple computers, computer data centers, cloud servers, or clusters of servers deployed at the cloud, etc. The server may be of various types such as, but not limited to, a web server, news server, mail server, message server, advertisement server, file server, application server, interaction server, database server, or proxy server. In some embodiments, each server may include hardware, software, or embedded logic components or a combination of two or more such components for performing the appropriate functions supported by or implemented by the server. For example, the server is a blade server, cloud server, or the like, or may be a server group consisting of a plurality of servers, may include one or more of the above-described types of servers, or the like.
In the present embodiment, the terminal 120 is, for example, a mobile phone, a portable computer, a tablet computer, a palm computer, a wearable device, etc., but is not limited thereto. The terminal 120 is provided with an application program APP with a network taxi service function, and the APP obtains the position information of a driver side provided by a network taxi operator through the computer equipment 110.
An application scene of the embodiment is a scene that a user performs network vehicle-restraining through a third party application program, and when the user needs to use the vehicle, the user can enter a vehicle-using interface through the third party application on the operation terminal, and the vehicle-using interface is provided with a map so as to display the position of a vehicle nearby the user to the user through the map, thereby achieving the purpose of guiding the user to quickly find the vehicle. Under the car scene, under the condition that the terminal enters the car interface according to the operation of a user, the terminal can acquire the position information of the passenger to determine the access point, or the access point is determined according to the address input by the passenger, after the user successfully calls the car, the car interface can display the position of the driver end car in the form of a car icon so that the passenger can know the position of the driver, and the passenger can wait at the access point in time according to the upcoming time of the driver. In order to avoid the situation of vehicle icon drifting in the process, the embodiment provides a method for acquiring the position of the driver, which is used for adjusting the position information of the driver acquired from the operator side based on the bias factor and the distance factor, predicting the effective position of the driver, comparing the received position information of the driver-side vehicle with the actual position information of the driver-side vehicle after the network vehicle order is completed, generating an error set of each road, updating the bias factor and the distance factor according to the error set, so that the calculation of the effective position is more accurate, the calculation precision of the effective position is further improved, the drifting of the vehicle icon on a passenger vehicle page is reduced, and the consistency of the position of the driver-side vehicle displayed on a vehicle interface and the actual position of the driver-side vehicle is improved.
Fig. 2 is a flowchart showing steps of a method for acquiring a driver end position, where an implementation subject of the method is a server or a terminal, and when the implementation subject is the terminal, the terminal may send a data acquisition request with the server to acquire position information of the driver acquired by the server, and then execute the method of the embodiment. The present embodiment takes a server as an implementation subject, for example, the implementation subject is the computer device 110 of fig. 1.
As shown in fig. 2, in one embodiment, a method for acquiring a driver end position includes the following steps S201 to S203:
s201, obtaining the observing position of the driver-side vehicle.
It can be understood that, because the driver and the passenger belong to users of two different applications, the third party application cannot directly obtain the position information of the driver-side vehicle, and in addition, the environmental factors, the signal transmission factors, the hardware setting deficiency and other factors exist, so that the position of the driver-side vehicle obtained by the third party application program from the network vehicle supply platform may deviate from the actual position of the driver-side vehicle.
Thus, in this embodiment, the observed position of the driver-side vehicle is a position acquired by an application program, which is a third party application, and the application program acquires the driver position from the network vehicle supply platform.
In one example, the travel path of the driver of the network vehicle generally follows the travel path given by the network vehicle platform, and the travel path of the driver generally corresponds to the preset path, so that the rule can be used as a basis for adjusting the position of the driver, and it can be understood that when the driver receives the network vehicle order, the driver needs to go to the receiving point according to the order information, so that the position of the driver when receiving the order is the starting point of the vehicle at the driver end. Therefore, in the present embodiment, before acquiring the observation position of the driver, it further includes: acquiring an initial position of a driver when receiving an order of a network vehicle, and acquiring a guest receiving point displayed in the order of the network vehicle; and taking the initial position as a starting point, taking the guest point as an end point, obtaining at least one planned path, and taking the starting point as the initial effective position of the driver-side vehicle. And the planned path and the initial effective position can be stored so as to facilitate the calculation of the subsequent effective position and the target path.
S202, adjusting the observation position according to the bias factor and the distance factor to obtain the effective position of the driver-side vehicle.
In this embodiment, the server stores road network information in advance, the road network is a virtual map of actual roads, and any one of the actual roads can find the road network road corresponding to the actual road in the road network.
In the prior art, the projection point of the observation position to the nearest road on the road network is directly used as the effective position, for example, the display position of the observation position on the road network is A, the road adjacent to A is provided with a road M and a road N, the vertical distance between the observation position A and the road M is larger than the vertical distance between the observation position A and the road N, at this time, the projection position of the observation position A on the road N is used as the effective position of the observation position A, however, in the case that a plurality of bidirectional single-way roads separated by green belts exist in urban roads, the road M and the road N are roads with opposite directions, and the method can enable the observation position A to be projected on the opposite single-way roads. In addition, at intersections of urban roads, vehicles may slowly move due to congestion or be stationary due to traffic lights. In this case, the error in the observation position is much larger than the actual displacement of the vehicle, and the disturbance is more strong, and in this case, the observation position may be distributed on each side of the intersection.
Therefore, the embodiment adjusts the observation position according to the bias factor and the distance factor to obtain the effective position of the driver-side vehicle. In this embodiment, the bias factor is used to project the observation position onto the target path, for example, when the observation position satisfies the correspondence relationship with the bias factor. The distance factor is used to control the update frequency of the effective position of the driver-side vehicle, for example, when the observed position satisfies the correspondence relationship with the distance factor, the effective position is updated. Therefore, the observation position is longitudinally adjusted through the bias factor, the observation position of a driver is reasonably projected onto the target path, and the projection of the observation position on the target path is transversely adjusted through the distance factor, so that an effective position is obtained, the influence of noise on the positioning of the vehicle during slow running or static state of the vehicle can be reduced, and the situation that the vehicle position at the driver end is updated slowly and the user experience is influenced is avoided.
In this embodiment, fig. 3 is a schematic diagram showing a process of obtaining an effective position of a driver, and referring to fig. 3, an observation position is adjusted according to a bias factor and a distance factor to obtain the effective position of a driver-side vehicle, which includes steps S301 to S303 as follows:
s301, acquiring a road closest to an observation position according to preset road network information, and taking the road as a reference path.
As can be seen from the above embodiments, the observation position may be correct, or there may be a deviation, and when the observation position is the correct position, the road closest to the observation position may be the target path, so the embodiment obtains the road closest to the observation position on the road network as the reference path. The reference path may be one of the planned paths.
S302, determining a target path according to the distance relation between the observation position and the reference path and each planning path.
In this embodiment, the target path is one of any planned path and a reference path. In one example, the planned path may include T1, T2, and T3 … Tn, and it is understood that the reference path is the road closest to the observation position, and there is only one reference path, and this embodiment refers to the reference path as T. Then in this embodiment the target path is one of T, T1, T2, T3 … Tn at any one time.
In this embodiment, determining the target path according to the distance relation between the observation position and the reference path and each planned path, includes: calculating the distance between the observation position and each planning path to obtain a planning path with the minimum distance as an alternative path; calculating a first distance between the observed position and the alternative path, and calculating a second distance between the observed position and the reference path; when the difference between the first distance and the second distance is smaller than the bias factor, the alternative path is taken as a target path; and when the difference between the first distance and the second distance is greater than or equal to the bias factor, taking the reference path as a target path.
Continuing with the example above, the planned path includes T1, T2, T3 … Tn, with the reference path being T. The first distances from the observation position to each planned path are S1, S2, S3 … Sn, respectively, and if the minimum value of S1, S2, S3 … Sn is S2, the alternative path is T2. And if the second distance from the observation position to the reference path T is S, the difference between the first distance and the second distance is a1, a1= |S2-S|, and when a1 is smaller than the bias factor lambda, the alternative path T2 is taken as a target path. When a1 is greater than or equal to the bias factor λ, the reference path T is taken as the target path.
By the method, the bias factor lambda is introduced to optimize the selection of the target path, so that the selection accuracy of the target path can be improved. It will be appreciated that when the offset factor λ is 0, the observed position will be projected directly onto the reference path, and when the offset factor λ is infinity, the observed position will be projected directly onto any one of the planned paths, failing to reflect the actual travel path of the driver-side vehicle. Therefore, the more accurate the value of the bias factor λ of the present embodiment, the more accurate the selection of the target path of the present embodiment.
S303, obtaining the effective position of the driver-side vehicle according to the projection position of the observation position on the target path and the distance factor.
It can be understood that the position of the vehicle is continuously changed in the running process, so as to reduce the influence of noise on the positioning of the vehicle when the vehicle runs slowly or is stationary, and avoid the influence on the user experience caused by slow updating of the vehicle position at the driver end. The present embodiment introduces a distance factor S t When the distance between the effective positions of two adjacent moments is greater than S t When the valid position is updated.
Specifically, in this embodiment, obtaining the effective position of the driver-side vehicle according to the projection position of the observation position on the target path and the distance factor includes: acquiring an effective position at a preset moment; and when the distance between the projection position of the observation position on the target path and the effective position at the preset moment is larger than the distance factor, taking the projection position of the observation position on the target path as the effective position.
In this embodiment, the preset time is the calculation time of the last valid position. In one example, if the target path is T2, the observed position is A, the projected position of the observed position on the target path is B, the effective position at the last time is C, and the position C is on the target path T2, the distance between the position B and the position C is greater than the distance factor S t And storing the position B as the effective position at the current moment. If the distance between the projection position of the observation position on the target path and the effective position at the last moment is smaller than the distance factor, the observation position of the driver is acquired again, and step S301 is executed again.
By the method, the distance factor S is introduced t So that the vehicle travels by a distance factor S t Then updating is performed, and the updating frequency of the effective position is controlled. It will be appreciated that when S t When=0, the projection position of each observation position on the target path is taken as the effective position, when S t At infinity, all observed positions will be ignored, and the driver's position updates slowly, affecting the user experience. Thus, the distance factor S of the present embodiment t The more accurate the value of (c), the more accurate the selection of the effective position in this embodiment.
After obtaining the effective position of the driver, the method of the present embodiment further includes: and judging whether the effective position is on any planning path, if so, continuing to calculate the next effective position, and if not, recalculating the planning path.
For example, if the planned route includes T1, T2, and T3, and the effective position obtained in step S303 is a point on T2, the calculation of the next effective position is continued, and if the effective position obtained in step S303 is not on any one of T1, T2, and T3, there may be a possibility that the driver changes the route or the passenger modifies the address, the planned route is recalculated at this time, that is, steps S201 to S202 are re-executed.
S203, the effective position of the driver side vehicle is sent to the passenger terminal.
In this embodiment, in order to enable the driver to see the effective position of the driver-side vehicle in real time, a vehicle interface may be provided on the terminal of the driver through a third party application, where the vehicle interface represents the current position of the driver-side vehicle through a vehicle icon, and the position of the vehicle icon is consistent with the effective position of the vehicle. For example, when the valid position is the position D on the road T5 in the road network, the position at which the vehicle icon is displayed is also the position D on the road T5 in the road network.
To improve the bias factor lambda and the distance factor S t Accuracy, the embodiment adopts a statistical model to offset factor lambda and distance factor S t And updating, wherein the initial value of the statistical model can be manually set according to historical data and expert experience and is used for cold start of the system.
In one example, considering that the bias factor can meet the positioning error of most of the good open areas of the signal when λ is 20 meters, and has a certain tolerance to the signal distortion caused by the multipath effect, the initial value of the bias factor λ is set to 20. And distance factor S t In relation to lambda, S, assuming lambda is the noise distribution in a circular region centered around the true position t Should be greater than the diameter 2 lambda of the circle. Based on the history data, at S t The update frequency of the effective position has a preferred effect when it differs from 2λ by 10 meters. The distance factor S of the present embodiment t The calculation formula of the initial value is:
S t =2λ+10
that is, in the present embodiment, the initial value of λ may be 20 meters, then S t The initial value of (2) may be 50 meters.
The above is a setting manner of initial values of the bias factor and the distance factor, and it can be understood that, as the time points are different, the bias factor and the distance factor of each road change along with the different road conditions, so as to further improve the effective prediction of the actual position of the driver, the embodiment further includes: under the condition that the driver-side vehicle reaches the guest access point, acquiring an actual driving route of the driver-side vehicle; obtaining a mapping position of an observation position of a driver-side vehicle on an actual driving route of a driver, and obtaining an error data set according to a difference value between the observation position of the driver-side vehicle and the mapping position of the observation position on the actual driving route; and after the data quantity in the error data set reaches the preset quantity, updating the bias factor and the distance factor.
When the driver-side vehicle arrives at the passenger access point, the actual driving path of the driver-side vehicle is stored in the network vehicle supply platform, the embodiment requests the network vehicle supply platform to acquire the complete actual driving path of the driver-side vehicle, and compares the acquired observation position of the driver-side vehicle with the mapping position of the observation position on the actual driving path, for example, the observation position at a certain moment is O, the mapping position of the observation position O on the actual driving path is P, the difference between the position O and the position P is 1 meter, an error data set is obtained by the method, after the data amount in the error data set reaches the preset amount, the statistical data amount reaches the magnitude with statistical significance at the moment, the output of the statistical model is more stable, the real condition of the road can be reflected, and the bias factor and the distance factor are updated at the moment.
In one example, assuming that the error distribution of the observed position and the mapped position of the observed position on the actual running route approximately follows a two-dimensional gaussian distribution, the distribution of the observed position is approximately elliptical, and the observed position distribution formula is:
wherein sigma x As the semi-major axis of the ellipse, the variance of the data in the x-direction is represented; sigma (sigma) y As the semi-minor axis of the ellipse, the variance of the data in the y-direction is represented; s represents the scale of the ellipse, corresponding to the confidence level. The scheme takes a 95% confidence interval as a standard, namely 95% of data can be in the confidence ellipse in a statistical sense, and can solve most of service problems. Since x and y follow gaussian distribution, the degree of freedom is 2, and according to the query chi-square distribution table, the following formula can be obtained:
P(s<5.991)=1-0.005=0.95
from this formula, s=5.991 is the boundary of the confidence ellipse, and is substituted into the observation position distribution formula to obtain the 95% confidence ellipse range:
meanwhile, the major axis of the ellipse can be calculated as follows:the minor axis of the ellipse is: />For the convenience of calculation and implementation of the method of this embodiment, in this embodiment, the confidence ellipse is approximated to a confidence circle, and then the radius of the confidence circle may be used as the bias factor λ, where the calculation mode is:
at the same time, the distance factor can be calculated
The bias factor lambda and the distance factor S can be derived respectively t The calculation formula of (2) is as follows:
where n is the number of samples of the current road and t is the sample number threshold. That is, when the number of samples n of the current road is smaller than t, the bias factor λ=20, the distance factor S t =50, whenWhen the number of samples n of the front road is greater than t, the bias factorDistance factor->
In one example, t may be 50, that is, when the amount of data in the error data set is greater than 50, the bias factor λ and the distance factor S t And updating.
According to the method for acquiring the driver end position, the observation position of the driver end vehicle is longitudinally adjusted through the bias factor, the observation position of the driver end vehicle is reasonably projected onto the target path, the selection accuracy of the target path is improved, the projection of the observation position on the target path is transversely adjusted through the distance factor, so that the effective position is obtained, the influence of noise on the positioning of the vehicle during slow running or static state of the vehicle is reduced, the situation that the driver end vehicle position is slowly updated is avoided, and finally the effective position of the driver end vehicle is sent to the passenger terminal is avoided.
As shown in fig. 4, in an embodiment, an apparatus 400 for obtaining a driver end position is provided, where the apparatus for obtaining a driver end position may be integrated into the computer device 110, and the apparatus for obtaining a driver end position is configured to perform the method for obtaining a driver end position described in the foregoing embodiment, as shown in fig. 4, where the apparatus for obtaining a driver end position 400 specifically may include:
The data acquisition module 401 is configured to acquire an observed position of the driver-side vehicle, where the observed position is a position of the driver-side vehicle acquired by the application program;
the data processing module 402 is configured to adjust the observed position according to a bias factor and a distance factor, so as to obtain an effective position of the driver-side vehicle, where the bias factor is used to project the observed position onto a target path, and the distance factor is used to control an update frequency of the effective position of the driver-side vehicle;
and the output module 403 is used for sending the effective position of the driver side vehicle to the passenger terminal.
In one embodiment, the data acquisition module 401 is further configured to, prior to said acquiring the observed position of the driver-side vehicle, further comprise: acquiring an initial position of a driver when receiving an order of a network vehicle, and acquiring a guest receiving point displayed in the order of the network vehicle; and taking the initial position as a starting point, taking the guest point as an ending point, obtaining at least one planned path, and taking the starting point as an initial effective position of the driver-side vehicle.
In one embodiment, the data processing module 402 is configured to obtain, as a reference path, a road closest to the observation location according to preset road network information; determining a target path according to the distance relation between the observation position and the reference path and each planning path, wherein the target path is one of any planning path and the reference path; and obtaining the effective position of the driver-side vehicle according to the projection position of the observation position on the target path and the distance factor.
In one embodiment, the data processing module 402 is configured to calculate a distance between the observation position and each planned path, to obtain a planned path with a minimum distance, as an alternative path; calculating a first distance between the observation position and the alternative path, and calculating a second distance between the observation position and the reference path; when the difference between the first distance and the second distance is smaller than the bias factor, the alternative path is taken as a target path; and when the difference between the first distance and the second distance is greater than or equal to the bias factor, the reference path is taken as a target path.
In one embodiment, the data processing module 402 is configured to obtain a valid position at a preset time; and when the distance between the projection position of the observation position on the target path and the effective position at the preset moment is larger than a distance factor, taking the projection position of the observation position on the target path as the effective position of the driver-side vehicle.
In one embodiment, the data processing module 402 is configured to determine, after the obtaining of the effective position of the driver, whether the effective position is on any planned path, if so, continue calculation of the next effective position, and if not, recalculate the planned path.
In one embodiment, the data processing module 402 is configured to update the bias factor and the distance factor based on a statistical model, and the updating method includes: under the condition that a driver-side vehicle reaches a passenger access point, acquiring an actual driving route of the driver-side vehicle; obtaining a mapping position of the observation position of the driver-side vehicle on an actual running route of the driver-side vehicle, and obtaining an error data set according to a difference value between the observation position and the mapping position of the observation position on the actual running route; and after the data quantity in the error data set reaches a preset quantity, updating the bias factor and the distance factor.
The device for acquiring the driver end position provided by the embodiment of the application and the method for acquiring the driver end position provided by the embodiment of the application have the same beneficial effects as the method adopted, operated or realized by the application program stored in the device for acquiring the driver end position are the same in the application conception.
The embodiment of the application also provides an electronic device corresponding to the method for acquiring the driver end position provided by the embodiment, so as to execute the method for acquiring the driver end position. The embodiment of the application is not limited.
The embodiment of the application also provides an electronic device corresponding to the method for acquiring the driver end position provided by the embodiment, so as to execute the method for acquiring the driver end position.
In one embodiment, an electronic device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of: acquiring an observation position of a driver-side vehicle, wherein the observation position is the position of the driver-side vehicle acquired by an application program; the observed position is adjusted according to a bias factor and a distance factor, so that an effective position of the driver-side vehicle is obtained, the bias factor is used for projecting the observed position onto a target path, and the distance factor is used for controlling update frequency of the effective position of the driver-side vehicle; and transmitting the effective position of the driver-side vehicle to a passenger terminal.
Referring to fig. 5, a schematic diagram of an electronic device according to some embodiments of the present application is shown. As shown in fig. 5, the electronic device 20 includes: a processor 200, a memory 201, a bus 202 and a communication interface 203, the processor 200, the communication interface 203 and the memory 201 being connected by the bus 202; the memory 201 stores a computer program that can be executed on the processor 200, and the processor 200 executes the method for acquiring the driver side position according to any one of the foregoing embodiments of the present application when executing the computer program.
The memory 201 may include a high-speed random access memory (RAM: random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 203 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 202 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. The memory 201 is configured to store a program, and the processor 200 executes the program after receiving an execution instruction, and the method for obtaining the driver end position disclosed in any of the foregoing embodiments of the present application may be applied to the processor 200 or implemented by the processor 200.
The processor 200 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 200 or by instructions in the form of software. The processor 200 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201, and in combination with its hardware, performs the steps of the above method.
The electronic equipment provided by the embodiment of the application and the method for acquiring the driver end position provided by the embodiment of the application are the same in conception and have the same beneficial effects as the method adopted, operated or realized by the electronic equipment.
The present application further provides a storage medium storing computer readable instructions corresponding to the method for obtaining a driver end position provided in the foregoing embodiment, and referring to fig. 6, the computer readable storage medium is shown as an optical disc 30, where the computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the method for obtaining a driver end position provided in any of the foregoing embodiments.
In one embodiment, the computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the steps of: acquiring an observation position of a driver, wherein the observation position is the position of the driver acquired by an application program; the observing position is adjusted according to a bias factor and a distance factor, so that an effective position of a driver is obtained, the bias factor is used for projecting the observing position onto a target path, and the distance factor is used for controlling the updating frequency of the effective position of the driver; and outputting a vehicle icon to the passenger terminal, wherein the position of the vehicle icon is consistent with the effective position.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM), which will not be described in detail herein.
The storage medium storing the computer readable instructions provided by the above embodiment of the present application has the same advantages as the method for acquiring the driver end position provided by the embodiment of the present application, which is adopted, operated or implemented by the application program stored in the storage medium, because of the same inventive concept.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present application is not directed to any particular programming language. It will be appreciated that the teachings of the present application described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present application.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the application, various features of the application are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed application requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this application.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Various component embodiments of the application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in a virtual machine creation system according to embodiments of the application may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present application can also be implemented as an apparatus or system program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present application may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the application, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that various changes and substitutions are possible within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A method of obtaining a driver end position, the method comprising:
acquiring an observation position of a driver-side vehicle, wherein the observation position is the position of the driver-side vehicle acquired by an application program;
the observed position is adjusted according to a bias factor and a distance factor, so that an effective position of the driver-side vehicle is obtained, the bias factor is used for projecting the observed position onto a target path, and the distance factor is used for controlling update frequency of the effective position of the driver-side vehicle;
and transmitting the effective position of the driver-side vehicle to a passenger terminal.
2. The method of acquiring a driver's side position as recited in claim 1, wherein prior to said acquiring an observed position of a driver's side vehicle, the method further comprises:
acquiring an initial position of a driver when receiving an order of a network vehicle, and acquiring a guest receiving point displayed in the order of the network vehicle;
and taking the initial position as a starting point, taking the guest point as an ending point, obtaining at least one planned path, and taking the starting point as an initial effective position of the driver-side vehicle.
3. The method for obtaining the driver's end position according to claim 2, wherein said adjusting the observed position according to the bias factor and the distance factor to obtain the effective position of the driver's end vehicle comprises:
Acquiring a road closest to the observation position as a reference path according to preset road network information;
determining a target path according to the distance relation between the observation position and the reference path and each planning path, wherein the target path is one of any planning path and the reference path;
and obtaining the effective position of the driver-side vehicle according to the projection position of the observation position on the target path and the distance factor.
4. A method for obtaining a driver's end position according to claim 3, wherein said determining a target path based on the distance relationship between the observed position and the reference path and each planned path, respectively, comprises:
calculating the distance between the observation position and each planned path to obtain a planned path with the minimum distance as an alternative path;
calculating a first distance between the observation position and the alternative path, and calculating a second distance between the observation position and the reference path;
when the difference between the first distance and the second distance is smaller than the bias factor, the alternative path is taken as a target path;
and when the difference between the first distance and the second distance is greater than or equal to the bias factor, the reference path is taken as a target path.
5. A method for obtaining a driver's end position according to claim 3, wherein said obtaining an effective position of a driver's end vehicle based on a projected position of said observed position on said target path and said distance factor comprises:
acquiring an effective position at a preset moment;
and when the distance between the projection position of the observation position on the target path and the effective position at the preset moment is larger than a distance factor, taking the projection position of the observation position on the target path as the effective position of the driver-side vehicle.
6. The method of deriving a driver-side position according to claim 5, further comprising, after said deriving the effective position of the driver-side vehicle:
and judging whether the effective position is on any planning path, if so, continuing to calculate the next effective position, and if not, recalculating the planning path.
7. The method of obtaining a driver end position of claim 1, further comprising updating the bias factor and the distance factor based on a statistical model, the updating method comprising:
under the condition that a driver-side vehicle reaches a passenger access point, acquiring an actual driving route of the driver-side vehicle;
Obtaining a mapping position of the observation position of the driver-side vehicle on an actual running route of the driver-side vehicle, and obtaining an error data set according to a difference value between the observation position and the mapping position of the observation position on the actual running route;
and after the data quantity in the error data set reaches a preset quantity, updating the bias factor and the distance factor.
8. An apparatus for acquiring a driver end position, the apparatus comprising:
the data acquisition module is used for acquiring the observation position of the driver-side vehicle, wherein the observation position is the position of the driver-side vehicle acquired by the application program;
the data processing module is used for adjusting the observation position according to a bias factor and a distance factor to obtain an effective position of the driver-side vehicle, the bias factor is used for projecting the observation position onto a target path, and the distance factor is used for controlling the updating frequency of the effective position of the driver-side vehicle;
and the output module is used for sending the effective position of the driver-side vehicle to the passenger terminal.
9. An electronic device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the steps of the method of any of claims 1 to 7.
10. A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311179134.XA CN117216176A (en) | 2023-09-12 | 2023-09-12 | Method, device, electronic equipment and storage medium for acquiring driver end position |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311179134.XA CN117216176A (en) | 2023-09-12 | 2023-09-12 | Method, device, electronic equipment and storage medium for acquiring driver end position |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117216176A true CN117216176A (en) | 2023-12-12 |
Family
ID=89043677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311179134.XA Pending CN117216176A (en) | 2023-09-12 | 2023-09-12 | Method, device, electronic equipment and storage medium for acquiring driver end position |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117216176A (en) |
-
2023
- 2023-09-12 CN CN202311179134.XA patent/CN117216176A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108922173B (en) | Vehicle deviation detection method and device | |
US20210070317A1 (en) | Travel plan generation device, travel plan generation method, and non-transitory tangible computer readable storage medium | |
JP6975775B2 (en) | How to drive along the lane without maps and positioning for autonomous driving on the highway of self-driving vehicles | |
US20220324478A1 (en) | Electronic control device, control method, and automatic driving system | |
CN108537352A (en) | A kind of data processing method, device and server | |
CN113721599B (en) | Positioning method and positioning device | |
WO2022134365A1 (en) | Vehicle scheduling method, apparatus, and system, device, and storage medium | |
CN111207759B (en) | Method and device for displaying vehicle position | |
SE1550387A1 (en) | System and method for coordination of platoon formation | |
CN110455302B (en) | Navigation system control method, device, computer equipment and storage medium | |
US20220341742A1 (en) | Systems and methods for route reconstruction | |
CN111337045A (en) | Vehicle navigation method and device | |
US20220058763A1 (en) | Information processing apparatus, information processing method, and non-transitory storage medium | |
KR20080068215A (en) | Method for sensing covering state according to velocity and system for providing traffic information using the same method | |
CN110686690A (en) | Road condition information display method and system | |
CN113375681A (en) | Map data updating device and storage medium storing computer program for updating map data | |
CN111381263B (en) | Positioning method, positioning device, electronic equipment and storage medium | |
CN117216176A (en) | Method, device, electronic equipment and storage medium for acquiring driver end position | |
CN111060123A (en) | Method and system for realizing lane-level navigation based on common map | |
US11680808B2 (en) | Map selection device, storage medium storing computer program for map selection and map selection method | |
CN115839721A (en) | Method and device for predicting driving route, vehicle-mounted terminal and medium | |
US20210157333A1 (en) | Automatic driving control system, server device, and recording medium | |
CN115512567A (en) | Control device, mobile body, control method, and computer-readable storage medium | |
CN111928859A (en) | Navigation path correcting method and device | |
US20230194299A1 (en) | Map providing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |