Electronic device and lane determination method
Through the judgment method of vehicle historical trajectory points, the problem of difficulty in obtaining lane-level maps is solved, fast and accurate lane judgment is achieved, costs are reduced and safety is improved.
Patent Information
- Application Number
- CN202110227730.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-01
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-03-01
AI Technical Summary
In the existing technology, there are difficulties in determining whether two vehicles are in the same lane through lane-level maps, including the large amount of high-precision map data, large storage space consumption, poor timeliness, and high acquisition and maintenance costs.
By obtaining the historical trajectory points of two vehicles, using the processor to determine whether there are multiple consecutive trajectory points and including the latest recorded trajectory points, and determining whether the two vehicles are in the same lane, this avoids reliance on lane-level maps and improves efficiency. Processing speed and accuracy.
It is possible to determine whether two vehicles are in the same lane without relying on lane-level maps, reducing storage and maintenance costs, improving processing speed and prediction accuracy, and effectively reducing the occurrence of collision accidents.
Smart Images

Figure CN114996323B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent driving technology, and in particular to an electronic device and a lane determination method. Background Art
[0002] Automobile assisted driving technology usually needs to first determine whether the vehicle being driven (hereinafter referred to as the vehicle) and other vehicles are in the same lane. In the prior art, lane-level maps are used to determine whether two vehicles are in the same lane. There are two ways to obtain lane-level maps: one is to obtain high-precision lane-level map data of the surrounding area through roadside units. This method requires a lot of construction on the roadside. Only when the roadside units are fully covered can stable and reliable vehicle collision warnings be achieved. This requires a lot of cost and time to achieve full coverage of the road network by roadside units, and it is difficult to implement.
[0003] The second is to build high-precision lane-level maps into the device. This approach has the following defects: ① The amount of data in high-precision lane-level maps is much larger than that in ordinary maps. If all high-precision lane-level maps of the province or even the country are built into the device, it will consume a huge amount of storage space; ② The timeliness of the built-in maps is difficult to guarantee, and invalid or erroneous map data is difficult to support early warning calculations. Summary of the invention
[0004] The present invention provides an electronic device and a lane determination method, and provides a new lane determination method, which can determine whether two vehicles are in the same lane through the historical trajectory points of the two vehicles, thereby avoiding the difficulty caused by the need for a lane-level map to determine whether two vehicles are in the same lane.
[0005] In a first aspect, an embodiment of the present invention provides an electronic device, including: an acquisition unit and a processor;
[0006] The acquisition unit is used to acquire multiple historical track points of the target vehicle and multiple historical track points of at least one other vehicle; wherein the distance between the target vehicle and each of the other vehicles is within a preset distance range;
[0007] The processor is used to determine a target second historical trajectory point from a plurality of the second historical trajectory points for any other vehicle; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; the sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located behind the target vehicle; the first historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located in front of the target vehicle;
[0008] If the target second historical track point includes a plurality of consecutive second historical track points, and the plurality of consecutive second historical track points includes a newly recorded second historical track point, it is determined that the other vehicle and the target vehicle are in the same lane.
[0009] The above-mentioned electronic device provides a new lane judgment method, which determines whether two vehicles are in the same lane by determining that the target historical trajectory point of a vehicle contains multiple consecutive second historical trajectory points, and the multiple consecutive second historical trajectory points contain the most recently recorded second historical trajectory point, thereby avoiding the difficulty caused by the need for a lane-level map to determine whether two vehicles are in the same lane.
[0010] In a possible implementation, the processor is specifically configured to obtain a plurality of historical trajectory points that satisfy some or all of the following conditions:
[0011] Condition 1: The multiple historical trajectory points obtained are continuous and include the latest recorded historical trajectory points;
[0012] Condition 2: The number of multiple historical trajectory points obtained does not exceed the preset threshold;
[0013] Condition 3: The multiple acquired historical track points are located within the position range determined by the latest recorded historical track point.
[0014] The electronic device can filter the historical track points according to some or all of the above conditions, thereby avoiding too many historical track points being acquired, which would result in a slow processing speed, and improving the processing speed.
[0015] In a possible implementation, the processor is specifically configured to record the historical track points of the vehicle in the following manner:
[0016] According to the motion state of the vehicle when each recording cycle arrives, determine whether the location point of the vehicle when each recording cycle arrives is a historical trajectory point;
[0017] The process of determining whether the vehicle location point is a historical trajectory point when each recording cycle arrives is as follows:
[0018] If the vehicle's motion state at the time of the current recording period has not changed compared to the vehicle's motion state at the time of recording the last historical trajectory point, and the vehicle's motion state at the time of recording the last historical trajectory point has changed compared to the vehicle's motion state at the time of the next recording period, then the vehicle's location at the time of the current recording period is taken as the vehicle's historical trajectory point; or
[0019] If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
[0020] The above-mentioned electronic device can record the position of the vehicle at the time of the previous recording cycle as a historical trajectory point when the vehicle's motion state changes each time a recording cycle arrives. In this way, the present invention records historical trajectory points by changes in motion state, thereby not only being able to record the vehicle's driving trajectory well, but also avoiding recording too many points, which may lead to a slower processing speed in the subsequent determination process of whether it is the same lane.
[0021] In a possible implementation manner, the processor is further configured to:
[0022] If the vehicle behind the other vehicle and the target vehicle is the target vehicle, it is predicted whether the target vehicle will collide with the other vehicle, and after predicting that the target vehicle will collide with the other vehicle, the driver of the target vehicle is notified that the other vehicle will collide with the target vehicle.
[0023] The electronic device can predict whether the first vehicle and the second vehicle will collide when it is determined that the first vehicle and the second vehicle are in the same lane, and when a collision is predicted, notify the driver of the second vehicle of the collision, thereby effectively reducing the occurrence of collision accidents.
[0024] In a possible implementation manner, the processor is specifically configured to:
[0025] Determine the moving safety distance between the other vehicle and the target vehicle according to the speed of the other vehicle, the speed of the target vehicle, the relative static safety distance of the target vehicle, and the preset braking information of the target vehicle; wherein the braking information includes: the driver's reaction time, braking time, deceleration growth time, and acceleration of braking safety;
[0026] If the movement safety distance does not exceed the actual distance between the other vehicle and the target vehicle, predicting that the target vehicle will collide with the other vehicle;
[0027] If the movement safety distance exceeds the actual distance between the other vehicle and the target vehicle, it is predicted that the target vehicle will not collide with the other vehicle;
[0028] or
[0029] Determining a collision time of the target vehicle according to the speed of the other vehicle, the speed of the target vehicle, and the actual distance between the other vehicle and the target vehicle;
[0030] If the collision time does not exceed the preset time, predicting that the target vehicle will collide with the other vehicle;
[0031] If the collision time exceeds a preset time, it is predicted that the target vehicle will not collide with the other vehicle.
[0032] The electronic device can take into account all vehicle motion factors to predict whether two vehicles will collide or take into account the overall braking time to predict whether two vehicles will collide, thereby improving the accuracy of the prediction.
[0033] In a possible implementation manner, the processor is further configured to:
[0034] Determining, based on the navigation information of the target vehicle, that the forward driving route of the target vehicle is a curved route; or
[0035] It is determined that the speed of the target vehicle exceeds a preset speed.
[0036] The electronic device can initiate measures to check whether two vehicles are in the same lane when on a curved route or at a high speed. This can initiate measures in these accident-prone scenarios, thereby improving driving safety.
[0037] In a second aspect, an embodiment of the present invention provides a lane determination method, including:
[0038] Acquire multiple historical track points of a target vehicle, and acquire multiple historical track points of at least one other vehicle; wherein the distance between the target vehicle and each of the other vehicles is within a preset distance range;
[0039] For any other vehicle, a target second historical trajectory point is determined from a plurality of the second historical trajectory points; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; the sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located behind the target vehicle; the first historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located in front of the target vehicle;
[0040] If the target second historical track point includes a plurality of consecutive second historical track points, and the plurality of consecutive second historical track points includes a newly recorded second historical track point, it is determined that the other vehicle and the target vehicle are in the same lane.
[0041] In a possible implementation, the multiple historical trajectory points obtained meet some or all of the following conditions:
[0042] Condition 1: The multiple historical trajectory points obtained are continuous and include the latest recorded historical trajectory points;
[0043] Condition 2: The number of multiple historical trajectory points obtained does not exceed the preset threshold;
[0044] Condition 3: The multiple acquired historical track points are located within the position range determined by the latest recorded historical track point.
[0045] In one possible implementation, the historical trajectory points of the vehicle are recorded in the following manner:
[0046] According to the motion state of the vehicle when each recording cycle arrives, determine whether the location point of the vehicle when each recording cycle arrives is a historical trajectory point;
[0047] The process of determining whether the vehicle location point is a historical trajectory point when each recording cycle arrives is as follows:
[0048] If the vehicle's motion state at the time of the current recording period has not changed compared to the vehicle's motion state at the time of recording the last historical trajectory point, and the vehicle's motion state at the time of recording the last historical trajectory point has changed compared to the vehicle's motion state at the time of the next recording period, then the vehicle's location at the time of the current recording period is taken as the vehicle's historical trajectory point; or
[0049] If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
[0050] In a possible implementation, after determining that the other vehicle and the target vehicle are in the same lane, the method further includes:
[0051] If the vehicle behind the other vehicle and the target vehicle is the target vehicle, it is predicted whether the target vehicle will collide with the other vehicle, and after predicting that the target vehicle will collide with the other vehicle, the driver of the target vehicle is notified that the other vehicle will collide with the target vehicle.
[0052] In a third aspect, the present application further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processing unit, the steps of the lane determination method described in the second aspect are implemented.
[0053] In addition, the technical effects brought about by any implementation method in the second to fourth aspects can refer to the technical effects brought about by different implementation methods in the first aspect, and will not be repeated here.
[0054] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the description are used to explain the principles of the present invention, and do not constitute improper limitations of the present invention.
[0056] Figure 1 is a schematic diagram of a vehicle interaction system provided by an embodiment of the present invention;
[0057] Figure 2 is a schematic diagram of another vehicle interaction system provided by an embodiment of the present invention;
[0058] Figure 3 is a schematic diagram of information interaction in a vehicle interaction system provided by an embodiment of the present invention;
[0059] Figure 4 is a flow chart of a lane determination method provided by an embodiment of the present invention;
[0060] Figure 5 is a schematic diagram of historical trajectory points of a target vehicle and other vehicles provided by an embodiment of the present invention;
[0061] Figure 6 is a flow chart of a complete method for lane determination provided by an embodiment of the present invention;
[0062] Figure 7 It is a schematic diagram for judging the front-rear position relationship of two vehicles provided by an embodiment of the present invention;
[0063] Figure 8 is a flow chart of another complete method for lane determination provided by an embodiment of the present invention;
[0064] Fig. 9 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0065] In order to enable ordinary persons in the art to better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.
[0066] It should be noted that the terms "first", "second", etc. in the description of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0067] The application scenarios described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems. In the description of the present invention, unless otherwise specified, the meaning of "multiple" is
[0068] At present, a lane-level map is required to determine whether two vehicles are in the same lane. However, it is difficult to obtain the lane-level map. In this regard, an embodiment of the present invention provides an electronic device and a lane determination method that can determine whether two vehicles are in the same lane through the historical trajectory points of the two vehicles without using a lane-level map, thereby avoiding the difficulties caused by obtaining the lane-level map.
[0069] Specifically, the electronic device provided by the embodiment of the present invention is used to: obtain multiple historical trajectory points of a target vehicle, and obtain multiple historical trajectory points of at least one other vehicle; wherein the distance between the target vehicle and each other vehicle is within a preset distance range; for any other vehicle, determine the target second historical trajectory point from multiple second historical trajectory points; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; the sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of the vehicle located behind the other vehicle and the target vehicle; the first historical trajectory point is a historical trajectory point of the vehicle located in front of the other vehicle and the target vehicle; if the target second historical trajectory point includes multiple consecutive second historical trajectory points, and the multiple consecutive second historical trajectory points include the latest recorded second historical trajectory point, it is determined that the other vehicle and the target vehicle are in the same lane.
[0070] First, common application scenarios of the embodiments of the present invention are introduced. Specifically:
[0071] The electronic device provided in the embodiment of the present invention is built in a vehicle, wherein the vehicle with the built-in electronic device is a target vehicle;
[0072] Other vehicles are used to determine multiple historical track points and broadcast the multiple historical track points externally, wherein the broadcast can be broadcast through V2X technology.
[0073] A target vehicle is used to receive the broadcast, thereby obtaining multiple historical track points of at least one other vehicle; wherein the distance between the target vehicle and each of the other vehicles is within a preset distance range; and determining multiple historical track points of the target vehicle;
[0074] For any other vehicle, a target second historical trajectory point is determined from a plurality of second historical trajectory points; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; a sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of a vehicle located behind the other vehicle and the target vehicle; and the first historical trajectory point is a historical trajectory point of a vehicle located in front of the other vehicle and the target vehicle;
[0075] If the target second historical track point includes a plurality of consecutive second historical track points, and the plurality of consecutive second historical track points includes the most recently recorded second historical track point, it is determined that the other vehicle and the target vehicle are in the same lane.
[0076] For example, vehicles on the lane communicate with each other via V2X (vehicle to everything, wireless communication technology for vehicles), combined with Figure 1 As shown, taking vehicle 1 and vehicle 2 traveling on the road as an example, vehicle 1 and vehicle 2 communicate through V2X; wherein, the preset distance range provided in the embodiment of the present invention is determined according to the communication distance that can be achieved by the V2X technology.
[0077] When vehicle 1 and vehicle 2 are driving on the road, they broadcast their multiple historical track points via V2X.
[0078] If the distance between vehicle 1 and vehicle 2 is within a preset distance range, vehicle 1 can receive multiple historical trajectory points of vehicle 2. If vehicle 1 determines a target second historical trajectory point from multiple second historical trajectory points; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; a sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of the vehicle located behind vehicle 1 and vehicle 2; the first historical trajectory point is a historical trajectory point of the vehicle located in front of vehicle 1 and vehicle 2; if the target second historical trajectory point includes multiple consecutive second historical trajectory points, and the multiple consecutive second historical trajectory points include the latest recorded second historical trajectory point, then it is determined that vehicle 1 and vehicle 2 are in the same lane.
[0079] If vehicle 1 is behind vehicle 2 , vehicle 1 continues to predict whether vehicle 1 will collide with vehicle 2 , and after predicting that vehicle 1 will collide with vehicle 2 , the driver of vehicle 1 is notified that vehicle 2 will collide with vehicle 1 .
[0080] If vehicle 1 is in front of vehicle 2, vehicle 1 will inform the driver of the positional relationship between vehicle 1 and vehicle 2, so that the driver of vehicle 1 can make the next driving action according to the position of vehicle 2. For example, when turning, the action of vehicle 2 can be checked to avoid dangerous events caused by vehicle 2 accelerating and turning at the same time.
[0081] Similarly, if the electronic device provided by the present invention is built into vehicle 2, vehicle 2 is the target vehicle, vehicle 1 is another vehicle, and vehicle 2 can also perform the contents of vehicle 1.
[0082] The electronic device provided in the embodiment of the present invention is a background server, wherein the vehicle that sends a determination request to the background server is a target vehicle;
[0083] Specifically: an embodiment of the present invention provides an interactive system, including: a background server, a target vehicle and at least one other vehicle;
[0084] The target vehicle is used to send a judgment request to the background server if the forward driving route is a curved route or the speed exceeds a preset speed, and send multiple historical trajectory points to the background server, and receive information from the background server that the target vehicle and other vehicles are in the same lane.
[0085] The backend server is used to send the acquired information to other vehicles whose distance from the target vehicle is within a preset distance range, and receive multiple historical track points sent by at least one other vehicle; for any other vehicle, determine the target second historical track point from multiple second historical track points; wherein the target second historical track point is a second historical track point whose vertical distance to the sub-track segment is less than the preset distance; the sub-track segment is composed of two adjacent first historical track points; the second historical track point is the historical track point of the vehicle located behind the other vehicle and the target vehicle; the first historical track point is the historical track point of the vehicle located in front of the other vehicle and the target vehicle; if the target second historical track point includes multiple consecutive second historical track points, and the multiple consecutive second historical track points include the latest recorded second historical track point, it is determined that the other vehicle and the target vehicle are in the same lane, and the target vehicle is notified;
[0086] Other vehicles are used to send multiple historical track points to the background server after receiving the acquisition information sent by the background server.
[0087] For example, the vehicle traveling on the lane communicates with the backend server via a network, combining Figure 2 As shown, taking vehicles 1, 2, 3 and 4 travelling on the road as an example, vehicles 1 to 4 are all connected to the backend server 100 via a network;
[0088] Combination Figure 3 As shown, vehicle 1 sends a judgment request to the backend server 100, requesting to judge whether other vehicles within a preset distance range are in the same lane, wherein multiple historical track points of vehicle 1 are sent together with the judgment request. After receiving the judgment request of vehicle 1, the backend server 100 determines other vehicles within a preset distance range from vehicle 1, and sends information on reporting historical track points to other vehicles. For example, if the distance between vehicle 2 and vehicle 1 is within the preset distance range, after vehicle 2 receives the information on reporting historical track points sent by the backend server 100, vehicle 2 uploads its multiple historical track points.
[0089] The background processor 100 finds all second historical trajectory points whose vertical distances to the sub-trajectory segments composed of two adjacent first historical trajectory points are less than a preset distance, and the background processor 100 takes them as target second historical trajectory points. If it is determined that the target second historical trajectory point includes multiple consecutive second historical trajectory points, and the multiple consecutive second historical trajectory points include the latest recorded second historical trajectory point, it is determined that vehicles 1 and 2 are in the same lane.
[0090] Among them, the second historical track point is the historical track point of the vehicle located behind vehicle 1 and vehicle 2; the first historical track point is the historical track point of the vehicle located in front of vehicle 1 and vehicle 2; that is, if vehicle 1 is traveling in front of vehicle 2, the historical track point of vehicle 1 is the first historical track point, and the historical track point of vehicle 2 is the second historical track point. If vehicle 2 is traveling in front of vehicle 1, the historical track point of vehicle 2 is the first historical track point, and the historical track point of vehicle 1 is the second historical track point.
[0091] Furthermore, if vehicle 1 is behind vehicle 2, the background server 100 continues to predict whether vehicle 1 will collide with vehicle 2, and after predicting that vehicle 1 will collide with vehicle 2, notifies the driver of vehicle 1 that vehicle 2 will collide with vehicle 1.
[0092] If vehicle 1 is in front of vehicle 2, the backend server 100 will send the position relationship between vehicle 1 and vehicle 2 to vehicle 1, so that the driver of vehicle 1 can make the next driving action according to the position of vehicle 2. For example, when turning, the action of vehicle 2 can be checked to avoid the occurrence of dangerous events caused by vehicle 2 accelerating and turning at the same time.
[0093] With respect to the above process proposed in the embodiment of the present invention, the process of lane determination is described in detail below with reference to the accompanying drawings.
[0094] Combination Figure 4 As shown, an embodiment of the present invention provides a lane determination method, which is applied to an electronic device, including:
[0095] S400: Acquire multiple historical track points of the target vehicle, and acquire multiple historical track points of at least one other vehicle;
[0096] Wherein, the distance between the target vehicle and each of the other vehicles is within a preset distance range;
[0097] It should be noted that if the electronic device is a vehicle-mounted device, built into the target vehicle, then the multiple historical track points of at least one other vehicle are obtained from at least one other vehicle; the multiple historical track points of the target vehicle are recorded by the target vehicle;
[0098] If the electronic device is a background server, the multiple historical track points of at least one other vehicle are obtained from at least one other vehicle, and the multiple historical track points of the target vehicle are obtained from the target vehicle.
[0099] S401: for any other vehicle, determining a target second historical trajectory point from a plurality of second historical trajectory points;
[0100] Among them, the target second historical trajectory point is the second historical trajectory point whose vertical distance to the sub-trajectory segment is less than the preset distance; the sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is the historical trajectory point of the vehicle located behind other vehicles and the target vehicle; the first historical trajectory point is the historical trajectory point of the vehicle located in front of other vehicles and the target vehicle;
[0101] Combination Figure 5 As shown, the historical trajectory points of any other vehicle and the vehicle located in front of the target vehicle are historical trajectory points A, historical trajectory points B, and historical trajectory points C, and the historical trajectory points of any other vehicle and the vehicle located behind the target vehicle are historical trajectory points M and historical trajectory points N.
[0102] Determine whether there is a target straight line perpendicular to the sub-track segment AB composed of the historical track point A and the historical track point B in the straight line passing through the historical track point M. If so, determine whether the distance between the historical track point M and the target intersection point P in the target straight line is less than the preset distance. If there is no target straight line, the second historical track point is not the target second historical track point, and continue to determine the historical track point N, where the target intersection point P is the intersection of the target straight line and the sub-track segment AB composed of the historical track point A and the historical track point B. If it is less than the preset distance, determine that the second historical track point is the target second historical track point. If it is not less than the preset distance, the second historical track point is not the target second historical track point, and continue to determine the track point N.
[0103] For example, when there are many historical track points, if they are compared one by one according to the sub-track segments, it may be troublesome to handle. Therefore, before judging whether the vertical distance is less than the preset distance, the second historical track points corresponding to all the sub-track segments formed by the multiple first historical track points can be determined, and the distance between each first historical track point in the sub-track segment and the second historical track point corresponding to the sub-track segment does not exceed the threshold, so there is no need to determine the vertical distance between all the second historical track points and the sub-track segment. Figure 5 As shown, it can be seen that the second historical track point corresponding to the sub-track segment AB is the historical track point M, so it is directly determined whether the vertical distance from the historical track point M to the sub-track segment AB is less than the preset distance. The second historical track point corresponding to the sub-track segment BC is the historical track point N, so it is directly determined whether the vertical distance from the second historical track point N to the sub-track segment BC is less than the preset distance. There is no need to make a determination on all the historical track points of another vehicle.
[0104] S402: If the target second historical trajectory point includes a plurality of consecutive second historical trajectory points, and the plurality of consecutive second historical trajectory points includes a newly recorded second historical trajectory point, it is determined that the other vehicles and the target vehicle are in the same lane.
[0105] The target second historical track point includes a plurality of consecutive second historical track points, where the plurality may exceed a preset number, that is, the target first historical track point includes a preset number of consecutive second historical track points, which is 5.
[0106] For example, the multiple second historical trajectory points are historical trajectory points 1 to historical trajectory points 11, and the target second historical trajectory points are historical trajectory points 1 to 5, and historical trajectory points 9 to historical trajectory points 11; then the second historical trajectory points that meet the preset number of consecutive times are historical trajectory points 1 to 5, and historical trajectory points 1 to 5 include the latest recorded second historical trajectory point 1, so the two vehicles are in the same lane.
[0107] Combination Figure 6As shown, the embodiment of the present invention also provides a complete process of lane determination, including:
[0108] S600: Acquire multiple historical track points of the target vehicle, and acquire multiple historical track points of at least one other vehicle;
[0109] S601: for any other vehicle, determine whether the target historical track point can be determined from the historical track points of multiple other vehicles; if yes, execute S602; otherwise, execute S603;
[0110] Among them, the target historical trajectory point is the historical trajectory point of other vehicles whose vertical distance to the sub-trajectory segment is less than the preset distance; the sub-trajectory point is composed of two connected historical trajectory points of the target vehicle;
[0111] S602: Determine whether the target historical track point includes a plurality of consecutive historical track points of other vehicles, and whether the plurality of consecutive historical track points of other vehicles include the latest recorded historical track point of other vehicles; if yes, execute S604, otherwise execute S603;
[0112] S603: Determine whether a target historical trajectory point can be determined from the historical trajectory points of multiple target vehicles; wherein the target historical trajectory point is a historical trajectory point of a target vehicle whose vertical distance to a sub-trajectory segment is less than a preset distance; a sub-trajectory point is composed of two connected historical trajectory points of other vehicles; if so, execute S605, otherwise, execute S606.
[0113] S604: Determine that other vehicles and the target vehicle are in the same lane.
[0114] S605: Determine whether the target historical trajectory point includes multiple consecutive historical trajectory points of the target vehicle, and the multiple consecutive historical trajectory points of the target vehicle include the latest recorded historical trajectory point of the target vehicle; if so, execute S604, otherwise S606.
[0115] S606: Determine that the other vehicles and the target vehicle are not in the same lane.
[0116] It can be seen that the embodiment of the present invention can determine the front and rear position relationship between other vehicles and the target vehicle by directly comparing the historical trajectory points. For example, if the second historical trajectory point is the historical trajectory point of the target vehicle, the target vehicle is behind the other vehicles. If the second historical trajectory point is the historical trajectory point of the other vehicle, the target vehicle is in front of the other vehicles.
[0117] Exemplarily, before performing step 401, the present invention may further include: determining a front-to-rear position relationship between the target vehicle and other vehicles.
[0118] For each other vehicle, if the angle between the target vehicle's moving direction angle and the target direction angle is less than the set angle, the other vehicle is in front of the target vehicle; the angle between the direction of the ray from the target vehicle's latest recorded historical trajectory point to the other vehicle's latest recorded historical trajectory point and the true north direction is the target direction angle; the angle between the moving direction of the target vehicle's latest recorded historical trajectory point and the true north direction is the moving direction angle.
[0119] If the angle between the moving direction angle of the target vehicle and the target direction angle is not less than the set angle, then the other vehicles are behind the target vehicle.
[0120] The preset angle is 0 to 90 degrees, or 0 to 45 degrees, or 0 to 60 degrees. The smaller the preset angle, the more accurate the position relationship is. A too small value may also cause the vehicle in front to be unable to be properly identified on a curve with a large curvature. The larger the value, the looser the judgment. A too large value may cause the selected vehicles to be inaccurate. Therefore, the value of the preset angle can be determined according to the specific situation.
[0121] Exemplary, combined Figure 7 As shown, the latest recorded historical track point of the target vehicle is historical track point O, the movement direction of the latest recorded historical track point of the target vehicle is OP, which is due north, and the direction angle of the target vehicle is 0 degrees. The latest recorded historical track point of other vehicles is historical track point Q, the direction of the ray from the latest recorded historical track point O of the target vehicle to the latest recorded historical track point Q of other vehicles is OQ, and the target direction angle is the angle α between OQ and OP; the angle between the movement direction angle of the target vehicle and the target direction angle is actually the angle α between OQ and OP. It can be seen that if the angle α between OQ and OP is less than the preset angle, then the other vehicles are in front of the target vehicle.
[0122] If the latest recorded historical track point of other vehicles is historical track point H, the direction of the ray from the latest recorded historical track point O of the target vehicle to the latest recorded historical track point H of other vehicles is OH; the target direction angle is the angle β between OQ and OP; the angle between the moving direction angle of the target vehicle and the target direction angle is actually the angle β between OQ and OP. It can be seen that the angle β between OH and OP is not less than the preset angle, then the other vehicles are behind the target vehicle.
[0123] Among them, other vehicles encapsulate information such as historical trajectory points and speed into V2X data packets and broadcast them to the outside through V2X communication devices.
[0124] Combination Figure 8 As shown, the embodiment of the present invention also provides another complete process of lane determination, including:
[0125] S800: Acquire multiple historical track points of the target vehicle, and acquire multiple historical track points of at least one other vehicle;
[0126] S801: For any other vehicle, determine the positional relationship between the target vehicle and the other vehicles;
[0127] S802: If the position relationship is that the target vehicle is located in front of other vehicles, determine the target historical trajectory point from the historical trajectory points of multiple other vehicles; wherein the target historical trajectory point is a historical trajectory point of other vehicles whose vertical distance to the sub-trajectory segment is less than a preset distance; and the sub-trajectory point is composed of two connected historical trajectory points of the target vehicle;
[0128] S803: If the target historical track point includes a plurality of consecutive historical track points of other vehicles, and the plurality of consecutive historical track points of other vehicles include the latest recorded historical track point of other vehicles, it is determined that the other vehicles and the target vehicle are in the same lane.
[0129] S804: If the position relationship is that the target vehicle is located behind the other vehicles, determine the target historical trajectory point from the historical trajectory points of the multiple target vehicles; wherein the target historical trajectory point is a historical trajectory point of the target vehicle whose vertical distance to the sub-trajectory segment is less than a preset distance; and the sub-trajectory point is composed of two connected historical trajectory points of the other vehicles;
[0130] S805: If the target historical trajectory point includes a plurality of consecutive historical trajectory points of the target vehicle, and the plurality of consecutive historical trajectory points of the target vehicle include the latest recorded historical trajectory point of the target vehicle, it is determined that the other vehicles and the target vehicle are in the same lane.
[0131] Exemplarily, the embodiment of the present invention proposes the following conditions for the multiple historical trajectory points obtained:
[0132] Since it is necessary to judge whether it is the same lane based on the latest driving trajectory of the vehicle, condition 1 is proposed: the multiple historical trajectory points obtained are continuous and include the latest recorded historical trajectory points;
[0133] Since it is cumbersome to process multiple historical trajectory points of a vehicle, condition 2 is also proposed: the number of multiple historical trajectory points obtained does not exceed a preset threshold;
[0134] Condition 3 is also proposed: the multiple historical trajectory points obtained are located within the position range determined by the latest recorded historical trajectory point.
[0135] With respect to the above conditions, the multiple historical trajectory points obtained may satisfy a single condition or multiple conditions.
[0136] For example, the multiple acquired historical track points are continuous and include the latest recorded historical track point, and are located within a position range determined by the latest recorded historical track point.
[0137] The location range may be a circle within a preset radius with the latest recorded historical trajectory point as the center.
[0138] Exemplarily, multiple historical trajectory points of other vehicles are recorded by other vehicles, and multiple historical trajectory points of the target vehicle are recorded by the target vehicle. Therefore, the location range determined by the latest historical trajectory points recorded by the vehicle, for example, when obtaining the historical trajectory points of other vehicles, the location range can be determined based on the latest historical trajectory points recorded by other vehicles. When obtaining the historical trajectory points of the target vehicle, the location range can be determined based on the latest historical trajectory points recorded by the target vehicle.
[0139] The specific recording process is as follows: according to the motion state of the vehicle when each recording cycle arrives, determine whether the location point of the vehicle when each recording cycle arrives is a historical trajectory point;
[0140] The process of determining whether the vehicle location point is a historical trajectory point when each recording cycle arrives is as follows:
[0141] If the vehicle's motion state at the time of the current recording period has not changed compared to the vehicle's motion state at the time of recording the last historical trajectory point, and the vehicle's motion state at the time of recording the last historical trajectory point has changed compared to the vehicle's motion state at the time of the next recording period, then the vehicle's location at the time of the current recording period is taken as the vehicle's historical trajectory point; or
[0142] If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
[0143] The driving information characterizing the motion state of the vehicle is the speed of the vehicle, the motion direction angle of the vehicle, and the position of the vehicle; wherein the angle between the motion direction of the vehicle and the true north direction is the motion direction angle.
[0144] The specific process of judging whether the motion state has changed is as follows:
[0145] If the difference between the speed of the vehicle when the current recording period is reached and the speed when the vehicle recorded the last historical trajectory point is less than the preset differential speed, and the difference between the movement direction angle of the vehicle when the current recording period is reached and the movement direction angle of the vehicle when the vehicle recorded the last historical trajectory point is less than the preset differential angle, and the distance between the position point of the vehicle when the current recording period is reached and the last historical trajectory point recorded by the vehicle is less than the preset gap, then it is determined that the movement state of the vehicle when the current recording period is reached has not changed compared with the movement state of the last historical trajectory point recorded by the vehicle;
[0146] If the difference between the speed of the vehicle when the current recording period is reached and the speed when the vehicle recorded the last historical trajectory point is not less than a preset differential speed, or the difference between the movement direction angle of the vehicle when the current recording period is reached and the movement direction angle of the vehicle when the vehicle recorded the last historical trajectory point is not less than a preset differential angle, or the distance between the position point of the vehicle when the current recording period is reached and the last historical trajectory point recorded by the vehicle is not less than a preset gap, it is determined that the movement state of the vehicle when the current recording period is reached has changed compared with the movement state of the last historical trajectory point recorded by the vehicle;
[0147] If the difference between the speed of the vehicle when recording the last historical trajectory point and the speed of the vehicle when the next recording period is reached is less than a preset differential speed, and the difference between the movement direction angle of the vehicle when recording the last historical trajectory point and the movement direction angle of the vehicle when the next recording period is reached is less than a preset differential angle, and the distance between the position point of the vehicle when recording the last historical trajectory point and the position point of the vehicle when the next recording period is reached is less than a preset gap, then it is determined that the movement state of the vehicle when recording the last historical trajectory point has not changed compared to the movement state of the vehicle when the next recording period is reached;
[0148] If the difference between the speed of the vehicle when recording the last historical trajectory point and the speed of the vehicle when the next recording cycle is reached is not less than the preset differential speed, or the difference between the movement direction angle of the vehicle when recording the last historical trajectory point and the movement direction angle of the vehicle when the next recording cycle is reached is not less than the preset differential angle, or the distance between the position point of the vehicle when recording the last historical trajectory point and the position point of the vehicle when the next recording cycle is reached is not less than the preset gap, then it is determined that the movement state of the vehicle when recording the last historical trajectory point has changed compared with the movement state of the vehicle when the next recording cycle is reached.
[0149] Among them, if the difference between the speed of the vehicle when the current recording cycle is reached and the speed when the vehicle recorded the last historical trajectory point is not less than the preset differential speed, or the difference between the movement direction angle of the vehicle when the current recording cycle is reached and the movement direction angle of the vehicle when the vehicle recorded the last historical trajectory point is not less than the preset differential angle, or the distance between the position point of the vehicle when the current recording cycle is reached and the last historical trajectory point recorded by the vehicle is not less than the preset gap, and the position point of the vehicle when the last recording cycle was reached was the last historical trajectory point, then the position point of the vehicle when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
[0150] Among them, if the difference between the speed of the vehicle when the current recording cycle is reached and the speed when the vehicle records the last historical trajectory point is less than the preset differential speed, and the difference between the movement direction angle of the vehicle when the current recording cycle is reached and the movement direction angle of the vehicle when the vehicle records the last historical trajectory point is less than the preset differential angle, and the distance between the position point of the vehicle when the current recording cycle is reached and the last historical trajectory point recorded by the vehicle is less than the preset gap; the difference between the speed of the vehicle when the last historical trajectory point is recorded and the speed of the vehicle when the next recording cycle is reached is not less than the preset differential speed, or the difference between the movement direction angle of the vehicle when the last historical trajectory point is recorded and the movement direction angle of the vehicle when the next recording cycle is reached is not less than the preset differential angle, or the distance between the position point when the vehicle records the last historical trajectory point and the position point of the vehicle when the next recording cycle is reached is not less than the preset gap, then the position point of the vehicle when the current recording cycle is reached is taken as the historical trajectory point of the vehicle.
[0151] Recombination Figure 5 As shown, taking the historical trajectory points A, B, and C of other vehicles as examples, the position point of the vehicle when the current recording cycle arrives is position point B, the previous historical trajectory point recorded by the vehicle is historical trajectory point A, and the position point of the vehicle when the next recording cycle arrives is position point C.
[0152] Among them, the speed V of other vehicles at historical trajectory point A A , the moving direction angle is ∠A, and the speed of other vehicles at position point B is V B , the moving direction angle is ∠B. By calculating the speed difference between the two |V A -V B | is less than the preset differential speed, and |∠A-∠B| is also less than the preset differential angle, and the distance L between the two points AB If the difference is also smaller than the preset difference, it is considered that the vehicle's motion state has not changed significantly relative to the historical trajectory point A at position B, and position B is not recorded as the historical trajectory. The vehicle moves to position C when the next recording cycle is reached, and the speed is V C , the moving direction angle is ∠C, by calculating the speed difference between the two |VA -V C | is greater than or equal to the preset differential speed, |∠A-∠C| is greater than or equal to the preset differential angle, and the distance L between the two points AC Is it greater than or equal to the preset gap? As long as one of the three meets the requirements, it is considered that the vehicle's motion state has changed, and the vehicle's position point B when the current recording cycle is reached is used as the historical trajectory point (it should be noted that position point C meets the recording requirements, and the vehicle's position point B when the current recording cycle is reached is used as the historical trajectory point, which can record the vehicle's motion trajectory more accurately).
[0153] When the speed difference between the two |V A -V B | is not less than the preset differential speed, or |∠A-∠B| is not less than the preset differential angle, or the distance L between the two points AB If the gap is not less than the preset gap, and the location point where the vehicle was located when the previous recording cycle was reached is the historical trajectory point A, then the location point B where the vehicle was located when the current recording cycle was reached is taken as the historical trajectory point of the vehicle.
[0154] When the lane judgment method is applied to a target vehicle, after determining that other vehicles and the target vehicle are in the same lane, if the vehicle behind the other vehicle and the target vehicle is the target vehicle, it is predicted whether the target vehicle will collide with the other vehicle, and after predicting that the target vehicle will collide with the other vehicle, the driver of the target vehicle is notified that the other vehicle will collide with the target vehicle.
[0155] Among them, the following two specific prediction methods can be included:
[0156] Method 1: Determine the moving safety distance between other vehicles and the target vehicle based on the speed of other vehicles, the speed of the target vehicle, the relative static safety distance of the target vehicle, and the preset braking information of the target vehicle; wherein the braking information includes: the driver's reaction time, braking time, and deceleration growth time;
[0157] If the motion safety distance does not exceed the actual distance between the other vehicle and the target vehicle, the target vehicle is predicted to collide with the other vehicle;
[0158] If the motion safety distance exceeds the actual distance between other vehicles and the target vehicle, it is predicted that the target vehicle will not hit other vehicles.
[0159] Exemplarily, the safe distance between other vehicles and the target vehicle is determined by the following formula:
[0160]
[0161] Among them, V s is the speed of the target vehicle, V fis the speed of other vehicles, T is the reaction time of the driver of the target vehicle, t1 is the braking time of the target vehicle, and t2 is the deceleration growth time of the target vehicle. s is the braking safety acceleration of the target vehicle. d0 is the relative static safety distance of the target vehicle.
[0162] Data Description: V s It is obtained by electronic equipment in real time from the vehicle CAN bus or GPS information; V f It is obtained in real time by the electronic equipment of the target vehicle through V2X; the driver reaction time of the target vehicle is T; the braking time of the target vehicle is t1, the deceleration growth time of the target vehicle is t2, and the braking safety acceleration of the target vehicle is a s According to the braking performance of the target vehicle, it is input into the electronic device in advance; the relative static safety distance d0 of the target vehicle is configured according to the user's warning level. The larger the value of d0 configuration, the more sensitive the collision warning is, and the smaller the value of d0 configuration, the stricter the collision warning is.
[0163] Method 2: Determine the collision time of the target vehicle based on the speed of other vehicles, the speed of the target vehicle, and the actual distance between other vehicles and the target vehicle;
[0164] If the collision time does not exceed the preset time, it is predicted that the target vehicle will collide with other vehicles;
[0165] If the collision time exceeds the preset time, it is predicted that the target vehicle will not hit the other vehicle.
[0166] Exemplarily, the collision time of the target vehicle is determined by the following formula:
[0167]
[0168] Where V s is the speed of the target vehicle, V f is the speed of other vehicles, L is the actual distance between other vehicles and the target vehicle, and Tc is the collision time of the target vehicle.
[0169] Considering that in actual driving, if it is a curved route, the driver may not be able to see the vehicle in front, which may easily cause an accident, illustratively, before performing step 400, the present invention determines that the forward driving route of the target vehicle is a curved route based on the navigation information of the target vehicle.
[0170] Alternatively, considering that accidents are more likely to occur when the vehicle speed is relatively high due to the limited field of vision of the driver, before performing step 400 , it is determined that the speed of the target vehicle exceeds a preset speed.
[0171] Based on the above introduction, an embodiment of the present invention further provides an electronic device 900, Fig. 9 As shown, it includes: an acquisition unit 901 and a processor 902;
[0172] The acquisition unit 901 is used to acquire multiple historical track points of the target vehicle and multiple historical track points of at least one other vehicle; wherein the distance between the target vehicle and each of the other vehicles is within a preset distance range;
[0173] The processor 902 is used to determine a target second historical trajectory point from a plurality of the second historical trajectory points for any other vehicle; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; the sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located behind the target vehicle; the first historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located in front of the target vehicle;
[0174] If the target second historical track point includes a plurality of consecutive second historical track points, and the plurality of consecutive second historical track points includes a newly recorded second historical track point, it is determined that the other vehicle and the target vehicle are in the same lane.
[0175] Optionally, the processor 902 is specifically configured to obtain a plurality of historical trajectory points that satisfy some or all of the following conditions:
[0176] Condition 1: The multiple historical trajectory points obtained are continuous and include the latest recorded historical trajectory points;
[0177] Condition 2: The number of multiple historical trajectory points obtained does not exceed the preset threshold;
[0178] Condition 3: The multiple acquired historical track points are located within the position range determined by the latest recorded historical track point.
[0179] Optionally, the processor 902 is specifically configured to record the historical track points of the vehicle in the following manner:
[0180] According to the motion state of the vehicle when each recording cycle arrives, determine whether the location point of the vehicle when each recording cycle arrives is a historical trajectory point;
[0181] The process of determining whether the vehicle location point is a historical trajectory point when each recording cycle arrives is as follows:
[0182] If the vehicle's motion state at the time of the current recording period has not changed compared to the vehicle's motion state at the time of recording the last historical trajectory point, and the vehicle's motion state at the time of recording the last historical trajectory point has changed compared to the vehicle's motion state at the time of the next recording period, then the vehicle's location at the time of the current recording period is taken as the vehicle's historical trajectory point; or
[0183] If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
[0184] Optionally, the processor 902 is further configured to:
[0185] If the vehicle behind the other vehicle and the target vehicle is the target vehicle, it is predicted whether the target vehicle will collide with the other vehicle, and after predicting that the target vehicle will collide with the other vehicle, the driver of the target vehicle is notified that the other vehicle will collide with the target vehicle.
[0186] Optionally, the processor 902 is specifically configured to:
[0187] Determine the moving safety distance between the other vehicle and the target vehicle according to the speed of the other vehicle, the speed of the target vehicle, the relative static safety distance of the target vehicle, and the preset braking information of the target vehicle; wherein the braking information includes: the driver's reaction time, braking time, deceleration growth time, and acceleration of braking safety;
[0188] If the movement safety distance does not exceed the actual distance between the other vehicle and the target vehicle, predicting that the target vehicle will collide with the other vehicle;
[0189] If the movement safety distance exceeds the actual distance between the other vehicle and the target vehicle, it is predicted that the target vehicle will not collide with the other vehicle;
[0190] or
[0191] Determining a collision time of the target vehicle according to the speed of the other vehicle, the speed of the target vehicle, and the actual distance between the other vehicle and the target vehicle;
[0192] If the collision time does not exceed the preset time, predicting that the target vehicle will collide with the other vehicle;
[0193] If the collision time exceeds a preset time, it is predicted that the target vehicle will not collide with the other vehicle.
[0194] Optionally, the processor 902 is further configured to:
[0195] Determining, based on the navigation information of the target vehicle, that the forward driving route of the target vehicle is a curved route; or
[0196] It is determined that the speed of the target vehicle exceeds a preset speed.
[0197] Based on the above introduction, an embodiment of the present invention further provides a vehicle-mounted device, including: a communication unit and a processor; the vehicle-mounted device is built into a target vehicle;
[0198] The communication unit is used to obtain a plurality of historical trajectory points of at least one other vehicle;
[0199] The processor is used to determine a plurality of historical trajectory points of a target vehicle, and for any other vehicle, determine a target second historical trajectory point from a plurality of the second historical trajectory points; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; the sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of the other vehicle and a vehicle located behind the target vehicle; the first historical trajectory point is a historical trajectory point of the other vehicle and a vehicle located in front of the target vehicle;
[0200] If the target second historical track point includes a plurality of consecutive second historical track points, and the plurality of consecutive second historical track points includes a newly recorded second historical track point, it is determined that the other vehicle and the target vehicle are in the same lane.
[0201] Optionally, the processor is specifically configured to determine that the multiple historical trajectory points of the target vehicle satisfy some or all of the following conditions:
[0202] Condition 1: The multiple historical trajectory points of the target vehicle are continuous and include the latest recorded historical trajectory points;
[0203] Condition 2: The number of multiple historical trajectory points of the target vehicle does not exceed the preset threshold;
[0204] Condition 3: The multiple historical trajectory points of the target vehicle are located within the position range determined by the latest recorded historical trajectory point of the target vehicle.
[0205] Optionally, the processor 902 is specifically configured to record historical track points of the target vehicle in the following manner:
[0206] According to the motion state of the target vehicle when each recording cycle arrives, determine whether the location point of the target vehicle when each recording cycle arrives is a historical trajectory point;
[0207] The process of determining whether the location of the target vehicle is a historical trajectory point when each recording cycle arrives is as follows:
[0208] If the motion state of the target vehicle at the time of the current recording cycle has not changed compared with the motion state of the vehicle at the time of recording the last historical trajectory point, and the motion state of the vehicle at the time of recording the last historical trajectory point has changed compared with the motion state of the target vehicle at the time of the next recording cycle, then the location of the target vehicle at the time of the current recording cycle is taken as the historical trajectory point of the target vehicle; or
[0209] If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
[0210] The solution for predicting collision is the same as above and will not be repeated here.
[0211] An embodiment of the present invention further provides a vehicle-mounted device, comprising: a communication unit and a processor; the vehicle-mounted device is built into other vehicles;
[0212] A communication unit, used for broadcasting a plurality of historical trajectory points;
[0213] The processor is used to record multiple historical trajectory points.
[0214] Optionally, the processor is specifically configured to obtain a plurality of historical trajectory points that meet some or all of the following conditions:
[0215] Condition 1: The multiple historical trajectory points obtained are continuous and include the latest recorded historical trajectory points;
[0216] Condition 2: The number of multiple historical trajectory points obtained does not exceed the preset threshold;
[0217] Condition 3: The multiple acquired historical track points are located within the position range determined by the latest recorded historical track point.
[0218] Optionally, the processor is specifically configured to record the historical track points of other vehicles in the following manner:
[0219] According to the motion states of other vehicles when each recording cycle arrives, determine whether the location points of other vehicles when each recording cycle arrives are historical trajectory points;
[0220] The process of determining whether the location of other vehicles at the time of each recording cycle is a historical track point is as follows:
[0221] If the motion state of other vehicles at the time of the current recording period has not changed compared with the motion state of the vehicle when the previous historical trajectory point was recorded, and the motion state of the vehicle when the previous historical trajectory point was recorded has changed compared with the motion state of other vehicles at the time of the next recording period, then the position point of other vehicles at the time of the current recording period is used as the historical trajectory point of other vehicles; or
[0222] If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
[0223] Based on the above introduction, an embodiment of the present invention also provides a background server, including: a communication unit and a processor;
[0224] The communication unit is used to receive a determination request of a target vehicle, obtain a plurality of historical track points of the target vehicle from the target vehicle, send the obtained information to at least one other vehicle, and obtain a plurality of historical track points of at least one other vehicle from at least one other vehicle, and send information that the target vehicle and other vehicles are in the same lane to the target vehicle; wherein the distance between the target vehicle and each of the other vehicles is within a preset distance range;
[0225] The processor is used to determine a target second historical trajectory point from a plurality of the second historical trajectory points for any other vehicle; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; the sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located behind the target vehicle; the first historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located in front of the target vehicle;
[0226] If the target second historical track point includes a plurality of consecutive second historical track points, and the plurality of consecutive second historical track points includes a newly recorded second historical track point, it is determined that the other vehicle and the target vehicle are in the same lane.
[0227] Optionally, the processor is further configured to:
[0228] If the vehicle behind the other vehicle and the target vehicle is the target vehicle, it is predicted whether the target vehicle will collide with the other vehicle, and after predicting that the target vehicle will collide with the other vehicle, the driver of the target vehicle is notified that the other vehicle will collide with the target vehicle.
[0229] Optionally, the processor is specifically configured to:
[0230] Determine the moving safety distance between the other vehicle and the target vehicle according to the speed of the other vehicle, the speed of the target vehicle, the relative static safety distance of the target vehicle, and the preset braking information of the target vehicle; wherein the braking information includes: the driver's reaction time, braking time, deceleration growth time, and acceleration of braking safety;
[0231] If the movement safety distance does not exceed the actual distance between the other vehicle and the target vehicle, predicting that the target vehicle will collide with the other vehicle;
[0232] If the movement safety distance exceeds the actual distance between the other vehicle and the target vehicle, it is predicted that the target vehicle will not collide with the other vehicle;
[0233] or
[0234] Determining a collision time of the target vehicle according to the speed of the other vehicle, the speed of the target vehicle, and the actual distance between the other vehicle and the target vehicle;
[0235] If the collision time does not exceed the preset time, predicting that the target vehicle will collide with the other vehicle;
[0236] If the collision time exceeds a preset time, it is predicted that the target vehicle will not collide with the other vehicle.
[0237] An embodiment of the present invention also provides a target vehicle, including a communication unit, an output unit and a processor;
[0238] The processor is used to send a judgment request to the backend server through the communication unit if the front driving route is a curved route or the speed exceeds a preset speed, and send multiple historical track points to the backend server through the communication unit, so that the backend server determines whether it is in the same lane with other vehicles based on the multiple historical track points;
[0239] The communication unit is used to send multiple historical track points to the backend server and receive information from the backend server that the target vehicle and other vehicles are in the same lane;
[0240] The output unit is used to notify the driver of the information sent by the background server that the target vehicle and other vehicles are in the same lane.
[0241] Optionally, the processor is specifically configured to enable the plurality of historical trajectory points to satisfy some or all of the following conditions:
[0242] Condition 1: Multiple historical track points are continuous and include the latest recorded historical track points;
[0243] Condition 2: The number of multiple historical trajectory points does not exceed the preset threshold;
[0244] Condition 3: Multiple historical track points are located within the position range determined by the latest recorded historical track point.
[0245] Optionally, the processor is specifically configured to record historical track points of the target vehicle in the following manner:
[0246] According to the motion state of the target vehicle when each recording cycle arrives, determine whether the location point of the target vehicle when each recording cycle arrives is a historical trajectory point;
[0247] The process of determining whether the location of the target vehicle is a historical trajectory point when each recording cycle arrives is as follows:
[0248] If the motion state of the target vehicle at the time of the current recording cycle has not changed compared with the motion state of the vehicle at the time of recording the last historical trajectory point, and the motion state of the vehicle at the time of recording the last historical trajectory point has changed compared with the motion state of the target vehicle at the time of the next recording cycle, then the location of the target vehicle at the time of the current recording cycle is taken as the historical trajectory point of the target vehicle; or
[0249] If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
[0250] An embodiment of the present invention also provides another vehicle, including a communication unit and a processor;
[0251] The processor is used to determine a plurality of historical trajectory points;
[0252] The communication unit is used to receive the acquisition information sent by the background server and send multiple historical track points to the background server.
[0253] Optionally, the processor is specifically configured to enable the plurality of historical trajectory points to satisfy some or all of the following conditions:
[0254] Condition 1: Multiple historical track points are continuous and include the latest recorded historical track points;
[0255] Condition 2: The number of multiple historical trajectory points does not exceed the preset threshold;
[0256] Condition 3: Multiple historical track points are located within the position range determined by the latest recorded historical track point.
[0257] Optionally, the processor is specifically configured to record the historical track points of other vehicles in the following manner:
[0258] According to the motion states of other vehicles when each recording cycle arrives, determine whether the location points of other vehicles when each recording cycle arrives are historical trajectory points;
[0259] The process of determining whether the location of other vehicles at the time of each recording cycle is a historical track point is as follows:
[0260] If the motion state of other vehicles at the time of the current recording period has not changed compared with the motion state of the vehicle when the previous historical trajectory point was recorded, and the motion state of the vehicle when the previous historical trajectory point was recorded has changed compared with the motion state of other vehicles at the time of the next recording period, then the position point of other vehicles at the time of the current recording period is used as the historical trajectory point of other vehicles; or
[0261] If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
[0262] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by a processor of an electronic device to complete the lane determination method. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0263] An embodiment of the present invention further provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes any one of the lane determination methods described above in the embodiment of the present invention.
[0264] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention invented herein. The invention is intended to cover any variations, uses or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not invented by the present invention. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the invention are indicated by the following claims.
[0265] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. An electronic device, characterized in that: include: Get the unit and processor; The acquisition unit is used to acquire multiple historical track points of the target vehicle and multiple historical track points of at least one other vehicle; wherein the distance between the target vehicle and each of the other vehicles is within a preset distance range; The processor is used to determine a target second historical trajectory point from a plurality of second historical trajectory points for any other vehicle; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; the sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of a vehicle located behind the other vehicle and the target vehicle; the first historical trajectory point is a historical trajectory point of a vehicle located in front of the other vehicle and the target vehicle; If the target second historical track point includes a plurality of consecutive second historical track points, and the plurality of consecutive second historical track points includes the most recently recorded second historical track point, it is determined that the other vehicle and the target vehicle are in the same lane; The processor is specifically used to record the historical track points of the vehicle in the following manner: According to the motion state of the vehicle when each recording cycle arrives, determine whether the location point of the vehicle when each recording cycle arrives is a historical trajectory point; The process of determining whether the vehicle location point is a historical trajectory point when each recording cycle arrives is as follows: If the vehicle's motion state at the time of the current recording period has not changed compared to the vehicle's motion state at the time of recording the last historical trajectory point, and the vehicle's motion state at the time of recording the last historical trajectory point has changed compared to the vehicle's motion state at the time of the next recording period, then the vehicle's location at the time of the current recording period is taken as the vehicle's historical trajectory point; or If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
2. The electronic device according to claim 1, characterized in that: The processor is specifically configured to obtain a plurality of historical trajectory points that meet some or all of the following conditions: Condition 1: The multiple historical trajectory points obtained are continuous and include the latest recorded historical trajectory points; Condition 2: The number of multiple historical trajectory points obtained does not exceed the preset threshold; Condition 3: The multiple acquired historical track points are located within the position range determined by the latest recorded historical track point.
3. The electronic device according to claim 1, characterized in that: The processor is further configured to: If the vehicle behind the other vehicle and the target vehicle is the target vehicle, it is predicted whether the target vehicle will collide with the other vehicle, and after predicting that the target vehicle will collide with the other vehicle, the driver of the target vehicle is notified that the other vehicle will collide with the target vehicle.
4. The electronic device according to claim 3, characterized in that: The processor is specifically used for: Determine the moving safety distance between the other vehicle and the target vehicle according to the speed of the other vehicle, the speed of the target vehicle, the relative static safety distance of the target vehicle, and the preset braking information of the target vehicle; wherein the braking information includes: the driver's reaction time, braking time, deceleration growth time, and acceleration of braking safety; If the movement safety distance does not exceed the actual distance between the other vehicle and the target vehicle, predicting that the target vehicle will collide with the other vehicle; If the movement safety distance exceeds the actual distance between the other vehicle and the target vehicle, it is predicted that the target vehicle will not collide with the other vehicle; or Determining a collision time of the target vehicle according to the speed of the other vehicle, the speed of the target vehicle, and the actual distance between the other vehicle and the target vehicle; If the collision time does not exceed the preset time, predicting that the target vehicle will collide with the other vehicle; If the collision time exceeds a preset time, it is predicted that the target vehicle will not collide with the other vehicle.
5. The electronic device according to claim 3 or 4, characterized in that: The processor is further configured to: Determining, based on the navigation information of the target vehicle, that the forward driving route of the target vehicle is a curved route; or It is determined that the speed of the target vehicle exceeds a preset speed.
6. A lane determination method, characterized in that: include: Acquire multiple historical track points of a target vehicle, and acquire multiple historical track points of at least one other vehicle; wherein the distance between the target vehicle and each of the other vehicles is within a preset distance range; For any other vehicle, a target second historical trajectory point is determined from a plurality of second historical trajectory points; wherein the target second historical trajectory point is a second historical trajectory point whose vertical distance to a sub-trajectory segment is less than a preset distance; the sub-trajectory segment is composed of two adjacent first historical trajectory points; the second historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located behind the target vehicle; the first historical trajectory point is a historical trajectory point of the other vehicle and the vehicle located in front of the target vehicle; If the target second historical track point includes a plurality of consecutive second historical track points, and the plurality of consecutive second historical track points includes the most recently recorded second historical track point, it is determined that the other vehicle and the target vehicle are in the same lane; The vehicle's historical track points are recorded in the following ways: According to the motion state of the vehicle when each recording cycle arrives, determine whether the location point of the vehicle when each recording cycle arrives is a historical trajectory point; The process of determining whether the vehicle location point is a historical trajectory point when each recording cycle arrives is as follows: If the vehicle's motion state at the time of the current recording period has not changed compared to the vehicle's motion state at the time of recording the last historical trajectory point, and the vehicle's motion state at the time of recording the last historical trajectory point has changed compared to the vehicle's motion state at the time of the next recording period, then the vehicle's location at the time of the current recording period is taken as the vehicle's historical trajectory point; or If the motion state of the vehicle when the current recording cycle is reached is changed compared to the motion state of the vehicle when the last historical trajectory point is recorded, and the position point where the vehicle was when the last recording cycle was reached is the last historical trajectory point, then the position point where the vehicle was when the current recording cycle is reached is used as the historical trajectory point of the vehicle.
7. The lane determination method according to claim 6, characterized in that: The multiple historical track points obtained meet some or all of the following conditions: Condition 1: The multiple historical trajectory points obtained are continuous and include the latest recorded historical trajectory points; Condition 2: The number of multiple historical trajectory points obtained does not exceed the preset threshold; Condition 3: The multiple acquired historical track points are located within the position range determined by the latest recorded historical track point.
8. The lane determination method according to claim 6, characterized in that: After determining that the other vehicle and the target vehicle are in the same lane, the method further includes: If the vehicle behind the other vehicle and the target vehicle is the target vehicle, it is predicted whether the target vehicle will collide with the other vehicle, and after predicting that the target vehicle will collide with the other vehicle, the driver of the target vehicle is notified that the other vehicle will collide with the target vehicle.
