Lane generation method, device and electronic device

By obtaining and translating the trajectory equation of the existing lane and generating the trajectory equation of the additional lane, the problem of difficulty in lane switching in the existing technology is solved, and the convenience of lane switching and the flexibility of the autonomous driving system are achieved.

CN113538673BActive Publication Date: 2024-10-18SHENZHEN UNITY-DRIVE INNOVATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110725910.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-29
Publication Date
2024-10-18
Estimated Expiration
2041-06-29

AI Technical Summary

Technical Problem

The existing technology lacks a method for generating additional lanes, resulting in difficulty in lane switching between existing lanes and additional lanes.

Method used

By obtaining the trajectory equation of the existing lane and translating it by a preset distance to obtain the trajectory equation of the additional lane, the unit direction vector, lane information and relative position are used to determine the trajectory equation of the additional lane, thereby representing the additional lane.

Benefits of technology

It realizes the generation of additional lanes based on existing lanes, simplifies lane switching operations, and improves the flexibility and efficiency of the autonomous driving system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113538673B_ABST
    Figure CN113538673B_ABST
Patent Text Reader

Abstract

Embodiments of the present invention relate to the field of autonomous driving technology, and in particular to a lane generation method, device, and electronic device. The method is used to generate an additional lane based on an existing lane, and the method includes: obtaining a trajectory equation of the existing lane; translating the trajectory equation by a preset distance to obtain a trajectory equation of the additional lane; and using the trajectory equation of the additional lane to represent the additional lane, thereby providing a lane generation method that can generate an additional lane based on an existing lane, thereby facilitating subsequent operations such as lane switching between the existing lane and the additional lane.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of autonomous driving technology, and in particular to a lane generation method, device, and electronic device. Background Art

[0002] With the advancement of social science and technology, self-driving cars have become a research hotspot in recent years because they do not require people to drive the vehicles. Self-driving cars need some information support when performing self-driving tasks. Dot map is a lightweight map that can represent the information required for various self-driving tasks. Dot map is the data collected by the collection vehicle, which defines the position and orientation of a series of collection points, some additional information, and the connection relationship between each track point.

[0003] In the dot map, a lane is formed between every two adjacent collection points, and these two adjacent collection points serve as the two endpoints of the lane.

[0004] However, in the process of implementing the embodiments of the present invention, the inventors found that: currently, the lanes formed between the collection points collected by the collection vehicle are existing lanes, and sometimes additional lanes need to be generated to facilitate lane switching between the existing lanes and the additional lanes. However, the prior art lacks a method for generating additional lanes based on existing lanes. Summary of the invention

[0005] In view of the above problems, embodiments of the present invention provide a lane generation method, device and electronic device, which overcome the above problems or at least partially solve the above problems.

[0006] According to one aspect of an embodiment of the present invention, a lane generation method is provided for generating an additional lane based on an existing lane, comprising: obtaining a trajectory equation of the existing lane; translating the trajectory equation by a preset distance to obtain a trajectory equation of the additional lane; and representing the additional lane with the trajectory equation of the additional lane.

[0007] In an optional manner, the step of translating the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane further comprises: obtaining a unit direction vector of the trajectory equation of the existing lane; obtaining lane information of the additional lane, wherein the lane information includes information of which lane the additional lane is adjacent to the existing lane; and obtaining a relative position of the additional lane and the existing lane along the direction of the unit direction vector;

[0008] The trajectory equation of the additional lane is obtained according to the trajectory equation of the existing lane, the unit direction vector, the preset distance, the lane information and the relative position.

[0009] In an optional manner, the trajectory equation of the additional lane is obtained as:

[0010] LaneP(t) i =P(t)+H(t)*lanewidth*i*flag;

[0011] Wherein, t is a parameter; LaneP(t) i is the trajectory equation of the additional lane; P(t) is the trajectory equation of the existing lane; H(t) is the unit direction vector of the trajectory equation of the existing lane; lanewidth is the preset distance; i is the nth lane that the additional lane is adjacent to the existing lane; flag represents the relative position, and flag∈{-1,1}, along the direction of the unit direction vector, if the direction of the existing lane toward the additional lane is the same as the direction of the unit direction vector, then the value of flag is 1; if the direction of the existing lane toward the additional lane is opposite to the direction of the unit direction vector, then the value of flag is -1.

[0012] In an optional manner, the preset distance is the lane width.

[0013] In an optional manner, the trajectory equation of the existing lane is a cubic algebraic expression. Before the step of using the trajectory equation of the additional lane to represent the additional lane, the method also includes: obtaining a first extreme point of the trajectory equation of the existing lane; obtaining a first reference point with a preset variable between the first extreme point and the trajectory equation of the existing lane; obtaining a second extreme point corresponding to the first extreme point in the trajectory equation of the additional lane; obtaining a second reference point with the preset variable between the second extreme point and the trajectory equation of the additional lane; obtaining a first connecting line between the first extreme point and the second extreme point; obtaining a second connecting line between the first reference point and the second reference point; determining whether the first connecting line and the second connecting line intersect; if not, entering the step of using the trajectory equation of the additional lane to represent the additional lane.

[0014] In an optional manner, before the step of using the trajectory equation of the additional lane to represent the additional lane, the method also includes: determining whether there are marking points in the additional lane, wherein the marking points include the points where traffic lights are located and the inspection points for inspecting vehicles; if not, entering the step of using the trajectory equation of the additional lane to represent the additional lane; if so, obtaining the marking points in the additional lane; deleting the curve at a preset distance from the marking points in the trajectory equation of the additional lane, and entering the step of using the trajectory equation of the additional lane to represent the additional lane, wherein the trajectory equation of the additional lane is the trajectory equation of the additional lane after deleting the curve at a preset distance from the marking points.

[0015] In an optional manner, the existing lane includes a first endpoint and a second endpoint, and the step of obtaining the trajectory equation of the existing lane further includes: obtaining the horizontal and vertical coordinates of the first endpoint; obtaining the horizontal and vertical coordinates of the second endpoint; obtaining the first lane and the second lane adjacent to the existing lane, wherein the first lane includes the second endpoint and the third endpoint, and the second lane includes the first endpoint and the fourth endpoint; obtaining the horizontal and vertical coordinates of the third endpoint; obtaining the horizontal and vertical coordinates of the fourth endpoint; fitting the trajectory equation of the existing lane where the first endpoint and the second endpoint are located according to the horizontal and vertical coordinates of the first endpoint, the horizontal and vertical coordinates of the second endpoint, the horizontal and vertical coordinates of the third endpoint, and the horizontal and vertical coordinates of the fourth endpoint.

[0016] In an optional manner, the trajectory equation of the existing lane where the first endpoint and the second endpoint are located is:

[0017] P(t)=A+Bt+Ct 2 +Dt 3 ;

[0018] Wherein, t is a parameter, t∈[0,1]; wherein A, B, C and D can be solved according to four constraints; the four constraints include: when t=0, P(0) is equal to the ordinate of the first endpoint; when t=1, P(1) is equal to the ordinate of the second endpoint; when t=0, P′(0) is equal to the difference between the ordinate of the second endpoint and the ordinate of the fourth endpoint, multiplied by a preset parameter; when t=1, P′(1) is equal to the difference between the ordinate of the third endpoint and the ordinate of the first endpoint, multiplied by the preset parameter.

[0019] According to one aspect of an embodiment of the present invention, a lane generation device is provided, which is used to generate an additional lane based on an existing lane, including: a first acquisition module, used to obtain a trajectory equation of the existing lane; an acquisition module, used to translate the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane; and a generation module, used to represent the additional lane with the trajectory equation of the additional lane.

[0020] In an optional manner, the acquisition module includes: a first acquisition unit, used to acquire a unit direction vector of the trajectory equation of the existing lane; a second acquisition unit, used to acquire lane information of the additional lane, wherein the lane information includes information on which lane the additional lane is adjacent to the existing lane; a third acquisition unit, used to acquire the relative position of the additional lane and the existing lane along the direction of the unit direction vector; an acquisition unit, used to acquire the trajectory equation of the additional lane based on the trajectory equation of the existing lane, the unit direction vector, the preset distance, the lane information and the relative position.

[0021] In an optional manner, the trajectory equation of the additional lane is obtained as:

[0022] LaneP(t) i =P(t)+H(t)*lanewidth*i*flag;

[0023] Wherein, t is a parameter; LaneP(t) i is the trajectory equation of the additional lane; P(t) is the trajectory equation of the existing lane; H(t) is the unit direction vector of the trajectory equation of the existing lane; lanewidth is the preset distance; i is the nth lane that the additional lane is adjacent to the existing lane; flag represents the relative position, and flag∈{-1,1}, along the direction of the unit direction vector, if the direction of the existing lane toward the additional lane is the same as the direction of the unit direction vector, then the value of flag is 1; if the direction of the existing lane toward the additional lane is opposite to the direction of the unit direction vector, then the value of flag is -1.

[0024] In an optional manner, the preset distance is the lane width.

[0025] In an optional manner, the trajectory equation of the existing lane is a cubic algebraic expression, and the device also includes: a second acquisition module, used to acquire the first extreme point of the trajectory equation of the existing lane; a third acquisition module, used to acquire the first reference point with a preset variable between the first extreme point and the trajectory equation of the existing lane; a fourth acquisition module, used to acquire the second extreme point corresponding to the first extreme point in the trajectory equation of the additional lane; a fifth acquisition module, used to acquire the second reference point with the preset variable between the second extreme point and the trajectory equation of the additional lane: a sixth acquisition module, used to acquire the first connecting line between the first extreme point and the second extreme point; a seventh acquisition module, used to acquire the second connecting line between the first reference point and the second reference point; a first judgment module, used to determine whether the first connecting line and the second connecting line intersect, and if the first connecting line and the second connecting line do not intersect, then enter the generation module.

[0026] In an optional manner, the device also includes: a second judgment module, used to determine whether there are marking points in the additional lane, if not, entering the generation module, and if so, entering the eighth acquisition module, wherein the marking points include points where traffic lights are located and inspection points for inspecting vehicles; an eighth acquisition module, used to acquire the marking points in the additional lane; a deletion module, used to delete the curve at a preset distance from the marking point in the trajectory equation of the additional lane, and enter the generation module, wherein the trajectory equation of the additional lane is the trajectory equation of the additional lane after deleting the curve at the preset distance from the marking point.

[0027] In an optional manner, the existing lane includes a first endpoint and a second endpoint, and the first acquisition module includes: a fourth acquisition unit, used to acquire the horizontal and vertical coordinates of the first endpoint; a fifth acquisition unit, used to acquire the horizontal and vertical coordinates of the second endpoint; a sixth acquisition unit, used to acquire the first lane and the second lane adjacent to the existing lane, wherein the first lane includes the second endpoint and the third endpoint, and the second lane includes the first endpoint and the fourth endpoint; a seventh acquisition unit, used to acquire the horizontal and vertical coordinates of the third endpoint; an eighth acquisition unit, used to acquire the horizontal and vertical coordinates of the fourth endpoint; and a fitting unit, used to fit the trajectory equation of the existing lane where the first endpoint and the second endpoint are located according to the horizontal and vertical coordinates of the first endpoint, the horizontal and vertical coordinates of the second endpoint, the horizontal and vertical coordinates of the third endpoint, and the horizontal and vertical coordinates of the fourth endpoint.

[0028] In an optional manner, the trajectory equation of the existing lane where the first endpoint and the second endpoint are located is:

[0029] P(t)=A+Bt+Ct 2 +Dt 3 ;

[0030] Wherein, t is a parameter, t∈[0,1]; wherein A, B, C and D can be solved according to four constraints; the four constraints include: when t=0, P(0) is equal to the ordinate of the first endpoint; when t=1, P(1) is equal to the ordinate of the second endpoint; when t=0, P′(0) is equal to the difference between the ordinate of the second endpoint and the ordinate of the fourth endpoint, multiplied by a preset parameter; when t=1, P′(1) is equal to the difference between the ordinate of the third endpoint and the ordinate of the first endpoint, multiplied by the preset parameter.

[0031] According to one aspect of an embodiment of the present invention, an electronic device is provided, which includes: at least one processor, and a memory, wherein the memory is communicatively connected to the at least one processor, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described above.

[0032] The beneficial effects of the embodiments of the present invention are: by obtaining the trajectory equation of the existing lane; translating the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane; using the trajectory equation of the additional lane to represent the additional lane, thereby providing a lane generation method that can generate an additional lane based on the existing lane, thereby facilitating subsequent operations such as lane switching between the existing lane and the additional lane. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0034] Figure 1 is a flow chart of a lane generation method provided by an embodiment of the present invention;

[0035] Figure 2 is a schematic diagram of four adjacent collection points provided by an embodiment of the present invention;

[0036] Figure 3 is a schematic diagram of a flow chart of obtaining a trajectory equation of an existing lane provided by an embodiment of the present invention;

[0037] Figure 4 is a schematic diagram of generating an additional lane based on an existing lane provided by an embodiment of the present invention;

[0038] Figure 5is a flow chart of translating the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane provided by an embodiment of the present invention;

[0039] Figure 6 is a flow chart of another lane generation method provided by an embodiment of the present invention;

[0040] Figure 7 is another schematic diagram of generating an additional lane based on an existing lane provided by an embodiment of the present invention;

[0041] Figure 8 is a flow chart of another lane generation method provided by an embodiment of the present invention;

[0042] Fig. 9 is a schematic diagram of a lane generation device provided by an embodiment of the present invention;

[0043] Fig.10 It is a schematic diagram of the hardware structure of an electronic device for executing the lane generation method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0045] It should be noted that when an element is described as being "fixed to" another element, it may be directly on the other element, or one or more elements may be located therebetween. When an element is described as being "connected to" another element, it may be directly connected to the other element, or one or more elements may be located therebetween. The terms "vertical", "horizontal", "left", "right" and similar expressions used in this specification are for illustrative purposes only.

[0046] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0047] Embodiment 1

[0048] See also Figure 1 , Figure 1 : is a flow chart of a lane generation method provided by an embodiment of the present invention, the method comprising the following steps:

[0049] Step S10, obtaining the trajectory equation of the existing lane.

[0050] The existing lanes are lanes formed by the collection points collected by the data collection vehicle for dot mapping.

[0051] The existing lane may be a lane formed by two arbitrary adjacent collection points, or a lane formed by multiple collection points.

[0052] When the existing lane is a lane formed by two arbitrary adjacent collection points, the trajectory equation of the existing lane is the trajectory equation of the lane formed by the two adjacent collection points.

[0053] When the existing lane is a lane formed by multiple collection points, the trajectory equation of the existing lane is a combination of trajectory equations of the lane formed by any two adjacent collection points.

[0054] For an existing lane formed by two arbitrary adjacent collection points, the existing lane includes a first endpoint and a second endpoint, and the first endpoint and the second endpoint are two endpoints of the existing lane. In the dot map, the first endpoint and the second endpoint are any two adjacent collection points in the dot map, that is, the first endpoint and the second endpoint are two adjacent collection points where the collection vehicle actually collects data.

[0055] It is worth noting that the existing lane in the present application may be a lane actually drawn between the first endpoint and the second endpoint, or may be a lane assumed to exist between the first endpoint and the second endpoint, that is, may be a lane not actually drawn.

[0056] The method of obtaining the trajectory equation of the existing lane in this application, that is, the method of obtaining the trajectory equation of the existing lane where the first endpoint and the second endpoint are located, requires four endpoints. Figure 2 , using the horizontal and vertical coordinates of the four adjacent trajectory points P0, P1, P2 and P3, the trajectory equation of the curve of the two trajectory points P1 and P2 can be obtained. Let P1 be the first endpoint and P2 be the second endpoint. Let P3 be the third endpoint, the third endpoint P3 is the end point of the first lane adjacent to the lane and located behind the lane, that is, the third endpoint P3 is the trajectory point adjacent to the second endpoint P2, and the third endpoint P3 is far away from the first endpoint P1. Let P0 be the fourth endpoint, the fourth endpoint P0 is the starting point of the second lane adjacent to the lane and located in front of the lane, that is, the fourth endpoint P0 is the trajectory point in front of the first endpoint P1. Through the first endpoint P1, the second endpoint P2, the third endpoint P3 and the fourth endpoint P0, step S10 can be implemented, that is, fitting the trajectory equation of the existing lane where the first endpoint and the second endpoint are located.

[0057] For details, please refer to Figure 3, step S10 comprises the following steps:

[0058] Step S101, obtaining the horizontal and vertical coordinates of the first endpoint.

[0059] The horizontal and vertical coordinates of the first endpoint are the horizontal and vertical coordinates in the world coordinate system where the first endpoint is located. The horizontal and vertical coordinates of the first endpoint are obtained when the data collection vehicle collects data.

[0060] Step S102, obtaining the horizontal and vertical coordinates of the second endpoint.

[0061] The horizontal and vertical coordinates of the second endpoint are the horizontal and vertical coordinates in the world coordinate system where the second endpoint is located. The horizontal and vertical coordinates of the second endpoint are obtained when the data collection vehicle collects data.

[0062] Step S103: Acquire a first lane and a second lane adjacent to the lane, wherein the first lane includes the second endpoint and a third endpoint, and the second lane includes the first endpoint and a fourth endpoint.

[0063] For example, the first endpoint is the starting point of the lane, and the second endpoint is the end point of the lane.

[0064] In a first lane adjacent to the lane, the second endpoint is the starting point of the first lane, and the third endpoint is the end point of the first lane.

[0065] In a second lane adjacent to the lane, the first endpoint is an end point of the second lane, and the fourth endpoint is a starting point of the second lane.

[0066] Step S104, obtaining the horizontal and vertical coordinates of the third endpoint.

[0067] The horizontal and vertical coordinates of the third endpoint are the horizontal and vertical coordinates of the third endpoint in the world coordinate system. The horizontal and vertical coordinates of the third endpoint are obtained when the data collection vehicle collects data.

[0068] Step S105, obtaining the horizontal and vertical coordinates of the fourth endpoint.

[0069] The horizontal and vertical coordinates of the fourth endpoint are the horizontal and vertical coordinates of the fourth endpoint in the world coordinate system. The horizontal and vertical coordinates of the fourth endpoint are obtained when the data collection vehicle collects data.

[0070] Step S106, fitting the trajectory equation of the existing lane where the first endpoint and the second endpoint are located according to the horizontal and vertical coordinates of the first endpoint, the horizontal and vertical coordinates of the second endpoint, the horizontal and vertical coordinates of the third endpoint, and the horizontal and vertical coordinates of the fourth endpoint.

[0071] One implementation of step S106 is, for example, that the trajectory equation of the existing lane where the first endpoint and the second endpoint are located is:

[0072] P(t)=A+Bt+Ct 2 +Dt 3 ;

[0073] Wherein, t is a parameter, t∈[0,1]; wherein A, B, C and D can be solved according to four constraints; the four constraints include: when t=0, P(0) is equal to the ordinate of the first endpoint; when t=1, P(1) is equal to the ordinate of the second endpoint; when t=0, P′(0) is equal to the difference between the ordinate of the second endpoint and the ordinate of the fourth endpoint, multiplied by a preset parameter; when t=1, P′(1) is equal to the difference between the ordinate of the third endpoint and the ordinate of the first endpoint, multiplied by the preset parameter.

[0074] Wherein, P′(0) is the first-order derivative of the trajectory equation P(t) at t=0.

[0075] Wherein, P′(1) is the first-order derivative of the trajectory equation P(t) at t=1.

[0076] Among them, the preset parameter is s, s∈[0,1], and s represents the tightness of the existing lane where the first endpoint and the second endpoint are located. The larger the s is, the tighter the existing lane where the first endpoint and the second endpoint are located, and the smaller the s is, the looser the existing lane where the first endpoint and the second endpoint are located.

[0077] The value of s can be selected according to actual conditions. For example, s can be selected to be 0.5.

[0078] Through the above four constraints, A, B, C and D can be solved, and then the trajectory equation of the existing lane where the first endpoint and the second endpoint are located can be solved.

[0079] Where P(t)∈R 2 , where R is the real number field, R 2 represents the plane where P(t) lies.

[0080] It is worth noting that the parameter t is not equivalent to the horizontal coordinate of the point on the existing lane where the first endpoint and the second endpoint are located. In some embodiments, let X(t) be a parametric equation of the horizontal coordinate of each point on the existing lane where the first endpoint and the second endpoint are located with respect to the parameter t. An optional relationship between X(t) and the parameter t is:

[0081]

[0082] Wherein, X1 is the horizontal coordinate of the first endpoint, and X2 is the horizontal coordinate of the second endpoint. Therefore, an optional formula of X(t) is:

[0083] X(t)=(X2-X1)t+X1;

[0084] It is worth noting that P(t) may be equivalent to the ordinates of each point on the existing lane where the first endpoint and the second endpoint are located. In other words, let Y(t) be a parametric equation of the ordinates of each point on the existing lane where the first endpoint and the second endpoint are located with respect to parameter t. An optional relationship between Y(t) and parameter t is:

[0085] Y(t)=P(t).

[0086] Step S20: translating the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane.

[0087] See also Figure 4 , Figure 4 It is a schematic diagram of generating an additional lane based on an existing lane provided by an embodiment of the present invention. Figure 4 A1 is the existing lane, and A2 and A3 are additional lanes generated.

[0088] The preset distance is at least not less than the lane width, for example, the preset distance is 3 meters.

[0089] In some embodiments, the preset distance is set to the lane width.

[0090] In some embodiments, see Figure 5 Specifically, step S20 includes the following steps:

[0091] Step S201, obtaining the unit direction vector of the trajectory equation of the existing lane.

[0092] For a known trajectory equation of an existing lane, its tangent direction vector can be obtained by solving the first-order derivative of the trajectory equation of the existing lane, and then the unit direction vector of the trajectory equation of the existing lane can be obtained.

[0093] It is a prior art to obtain the unit direction vector of the trajectory equation through the trajectory equation, which will not be described in detail here.

[0094] Step S202: Acquire lane information of the additional lane, wherein the lane information includes information of which lane the additional lane is adjacent to the existing lane.

[0095] For example, the additional lane is a first lane adjacent to the existing lane, or, for example, the additional lane is a second lane adjacent to the existing lane, and so on.

[0096] It can be understood that, in some embodiments, the trajectory equation is translated by one lane width to obtain a first lane adjacent to the existing lane, and the trajectory equation is translated by two lane widths to obtain a second lane adjacent to the existing lane.

[0097] Step S203: Acquire the relative position of the additional lane and the existing lane along the direction of the unit direction vector.

[0098] The relative position of the additional lane with respect to the existing lane may be that, along the direction of the unit direction vector, the direction of the existing lane toward the additional lane is the same as the direction of the unit direction vector, or, along the direction of the unit direction vector, the direction of the existing lane toward the additional lane is opposite to the direction of the unit direction vector.

[0099] Step S204, obtaining the trajectory equation of the additional lane according to the trajectory equation of the existing lane, the unit direction vector, the preset distance, the lane information and the relative position.

[0100] In some embodiments, the trajectory equation of the additional lane is obtained as:

[0101] LaneP(t) i =P(t)+H(t)*lanewidth*i*flag.

[0102] Wherein, the t is a parameter.

[0103] LaneP(t) i is the trajectory equation of the additional lane.

[0104] The P(t) is the trajectory equation of the existing lane.

[0105] The H(t) is the unit direction vector of the trajectory equation of the existing lane.

[0106] The lanewidth is the preset distance.

[0107] The i represents the nth lane of the additional lane adjacent to the existing lane.

[0108] The flag represents the relative position, and the flag∈{-1,1}. If the direction of the existing lane toward the additional lane is the same as the direction of the unit direction vector along the unit direction vector, the value of the flag is 1. If the direction of the existing lane toward the additional lane is opposite to the direction of the unit direction vector, the value of flAG is -1.

[0109] Step S30: Using the trajectory equation of the additional lane to represent the additional lane.

[0110] In some embodiments, the trajectory equation of the additional lane represents the curve where the central axis of the additional lane is located. Since the additional lane has width, the trajectory equation of the additional lane is translated by half the lane width on both sides of the central axis of the additional lane to obtain the trajectory equations of the curves on both sides of the additional lane. The area between the curves on both sides of the additional lane is the additional lane.

[0111] In an embodiment of the present application, a lane generation method is provided by obtaining the trajectory equation of the existing lane; translating the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane; and using the trajectory equation of the additional lane to represent the additional lane. This can generate an additional lane based on the existing lane, thereby facilitating subsequent operations such as lane switching between the existing lane and the additional lane.

[0112] Embodiment 2

[0113] See also Figure 6 , Figure 6 : is a flow chart of another lane generation method provided by an embodiment of the present invention, wherein the trajectory equation of the existing lane is a cubic algebraic expression, and the method comprises the following steps:

[0114] Step S10', obtaining the trajectory equation of the existing lane.

[0115] Step S20', translating the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane.

[0116] Step S30', obtaining the first extreme point of the trajectory equation of the existing lane.

[0117] The first extreme point of the trajectory equation of the existing lane is a point corresponding to a first-order derivative of the trajectory equation of the existing lane being zero.

[0118] See also Figure 7 , Figure 7 It is another schematic diagram of generating an additional lane based on an existing lane provided by an embodiment of the present invention. Figure 7 A1' represents the existing lane, and A2' and A3' are additional lanes generated based on the existing lanes. Figure 7 Point B1 in represents one of the first extreme points in the existing lane.

[0119] For the cubic algebraic expression, the method for solving the extreme value point is prior art and will not be described in detail here.

[0120] It is worth noting that the number of the first extreme value points of the trajectory equation of the existing lane can be one, two or even more.

[0121] Step S40', obtaining a first reference point having a preset variable between the first extreme point and the trajectory equation of the existing lane.

[0122] For example, the trajectory equation of the existing lane is P(t), where t is a parameter, and the preset variable is a variable relative to the parameter t.

[0123] For example, the first extreme point is (t1, P(t1)), the preset variable is Δ, and the first reference point is (t1+Δ, P(t1+Δ)), where Δ∈(0, 1), for example, the value of Δ can be 0.01.

[0124] Please continue reading Figure 7 , Figure 7 B2 in the figure may represent one of the first reference points in the existing lane.

[0125] Step S50', obtaining a second extreme point in the trajectory equation of the additional lane corresponding to the first extreme point.

[0126] Since the trajectory equation of the additional lane is formed by translating the trajectory equation of the existing lane by a preset distance, any point in the trajectory equation of the existing lane has a corresponding point in the trajectory equation of the additional lane, and the point corresponding to the first extreme point in the trajectory equation of the additional lane is the second extreme point.

[0127] It can be understood that the second extreme point is the extreme point of the trajectory equation of the additional lane, that is, the point corresponding to when the first-order derivative of the trajectory equation of the additional lane takes zero.

[0128] Please continue reading Figure 7 , Figure 7 Point C1 in is the second extreme point in the additional lane corresponding to the first extreme point.

[0129] Step S60', obtaining a second reference point having the preset variable between the second extreme point and the trajectory equation of the additional lane.

[0130] For example, the second extreme point is (t2, LaneP(t2) i ), the preset variable is Δ, the first reference point is (t2+Δ, LaneP(t2+Δ) i ), where Δ∈(0,1), for example, the value of Δ can be 0.01.

[0131] Please continue reading Figure 7 , Figure 7 C2 in the figure may represent one of the second reference points in the additional lane.

[0132] Step S70': obtaining a first connecting line between the first extreme point and the second extreme point.

[0133] The equation of the first connecting line can be determined according to the first extreme point and the second extreme point. The method of determining the equation of a straight line according to two points is a prior art and will not be described in detail here.

[0134] Please continue reading Figure 7 , Figure 7 L1 in represents a first connecting line between the first extreme point and the second extreme point.

[0135] Step S80': obtaining a second connecting line between the first reference point and the second reference point.

[0136] The equation of the second line can be determined according to the first reference point and the second reference point. The method of determining the equation of a straight line according to two points is a prior art and will not be described in detail here.

[0137] Please continue reading Figure 7 , Figure 7 L2 in the figure represents a second line connecting the first reference point and the second reference point.

[0138] Step S90', determining whether the first link and the second link intersect, if not, executing step S100'.

[0139] The method for determining whether two straight lines intersect, for example, can determine whether the slopes of the two straight lines are the same. If they are not the same, it is determined that the two straight lines intersect. Specifically, the method for determining whether two straight lines intersect is a mature prior art and will not be repeated here.

[0140] If the first connecting line intersects with the second connecting line, it means that an inappropriate situation occurs in the generated additional lane, and the reasons for the inappropriate situation include that the curvature of the existing lane and the location is too large, or the preset distance is too large.

[0141] If the first link and the second link do not intersect, it means that there is no inappropriate situation in the generated additional lane, that is, the generated additional lane is ideal and meets the actual needs.

[0142] Step S100 ′: using the trajectory equation of the additional lane to represent the additional lane.

[0143] When the first link intersects the second link, the step of using the trajectory equation of the additional lane to represent the additional lane may be directly entered.

[0144] The above steps S10', S20' and S100' may refer to the first embodiment and will not be described in detail here.

[0145] In an embodiment of the present application, by obtaining the first extreme point of the trajectory equation of the existing lane; obtaining the first reference point with a preset variable between the first extreme point in the trajectory equation of the existing lane; obtaining the second extreme point corresponding to the first extreme point in the trajectory equation of the additional lane; obtaining the second reference point with the preset variable between the second extreme point in the trajectory equation of the additional lane; obtaining a first connecting line between the first extreme point and the second extreme point; obtaining a second connecting line between the first reference point and the second reference point; determining whether the first connecting line and the second connecting line intersect; if not, entering the step of representing the additional lane with the trajectory equation of the additional lane, the impact of illegal situations in the additional lane on the generated additional lane can be effectively reduced, and the additional lane finally formed is ideal and meets actual needs.

[0146] Embodiment 3

[0147] See also Figure 8 , Figure 8 FIG. 4 is a flow chart of another lane generation method provided by an embodiment of the present invention, the method comprising the following steps:

[0148] Step S10 ”, obtaining the trajectory equation of the existing lane.

[0149] In step S20, the trajectory equation is translated by a preset distance to obtain the trajectory equation of the additional lane.

[0150] Step S30", determine whether there is a marking point in the additional lane, if not, execute step S60", if yes, execute step S40".

[0151] The marking points include points where traffic lights are located and checkpoints for checking vehicles.

[0152] Step S40 ”: obtaining the marking points in the additional lane.

[0153] Step S50", deleting the curve at the preset distance from the marking point in the trajectory equation of the additional lane, and entering the step of representing the additional lane with the trajectory equation of the additional lane, wherein the trajectory equation of the additional lane is the trajectory equation of the additional lane after deleting the curve at the preset distance from the marking point.

[0154] At the front of the point where the traffic light is located, or at the front of the checkpoint where the vehicle is checked, sometimes the vehicle is not allowed to change lanes, so the generation of an additional lane is not allowed, and it is determined whether there is a marking point in the additional lane. If so, the marking point is found, and according to step S50", the curve at a preset distance from the marking point in the trajectory equation of the additional lane is deleted. If there is no marking point in the additional lane, the step of using the trajectory equation of the additional lane to represent the additional lane can be directly entered.

[0155] It is worth noting that the preset distance can be reasonably set according to actual conditions, for example, the preset distance can be 5 meters.

[0156] In step S60 , the additional lane is represented by the trajectory equation of the additional lane.

[0157] The above-mentioned step S10 ″, step S20 ″ and step S60 ″ may refer to the first embodiment and will not be described in detail here.

[0158] In an embodiment of the present application, it is determined whether there are marking points in the additional lane, wherein the marking points include points where traffic lights are located and inspection points for vehicle inspections; if not, the step of using the trajectory equation of the additional lane to represent the additional lane is entered; if so, the marking points in the additional lane are obtained; the curve at a preset distance from the marking points in the trajectory equation of the additional lane is deleted, and the step of using the trajectory equation of the additional lane to represent the additional lane is entered, wherein the trajectory equation of the additional lane is the trajectory equation of the additional lane after the curve at the preset distance from the marking points is deleted. Through this method, no additional lane is generated for the preset distance before and after the marking point, that is, there is only one lane, the existing lane, before and after the marking point, so that the additional lane and the existing lane formed are more in line with actual needs.

[0159] Embodiment 4

[0160] See also Fig. 9 , Fig. 9 It is a schematic diagram of a lane generation device provided by an embodiment of the present invention. The device 400 is used to generate an additional lane based on an existing lane. The device 400 includes: a first acquisition module 401, used to obtain the trajectory equation of the existing lane; an acquisition module 402, used to translate the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane; a generation module 403, used to represent the additional lane with the trajectory equation of the additional lane.

[0161] In some embodiments, the acquisition module 402 includes: a first acquisition unit 4021, used to acquire the unit direction vector of the trajectory equation of the existing lane; a second acquisition unit 4022, used to acquire lane information of the additional lane, wherein the lane information includes information on which lane the additional lane is adjacent to the existing lane; a third acquisition unit 4023, used to acquire the relative position of the additional lane and the existing lane along the direction of the unit direction vector; an acquisition unit 4024, used to acquire the trajectory equation of the additional lane based on the trajectory equation of the existing lane, the unit direction vector, the preset distance, the lane information and the relative position.

[0162] In some embodiments, the trajectory equation of the additional lane is obtained as:

[0163] LaneP(t) i =P(t)+H(t)*lanewidth*i*flag;

[0164] Wherein, t is a parameter; LaneP(t) i is the trajectory equation of the additional lane; P(t) is the trajectory equation of the existing lane; H(t) is the unit direction vector of the trajectory equation of the existing lane; lanewidth is the preset distance; i is the nth lane that the additional lane is adjacent to the existing lane; flag represents the relative position, and flag∈{-1,1}, along the direction of the unit direction vector, if the direction of the existing lane toward the additional lane is the same as the direction of the unit direction vector, then the value of flag is 1; if the direction of the existing lane toward the additional lane is opposite to the direction of the unit direction vector, then the value of flag is -1.

[0165] In some embodiments, the preset distance is the lane width.

[0166] In some embodiments, the trajectory equation of the existing lane is a cubic algebraic expression, and the device 400 further includes: a second acquisition module 404, used to acquire a first extreme point of the trajectory equation of the existing lane; a third acquisition module 405, used to acquire a first reference point with a preset variable between the first extreme point and the trajectory equation of the existing lane; a fourth acquisition module 406, used to acquire a second extreme point corresponding to the first extreme point in the trajectory equation of the additional lane; a fifth acquisition module 407, used to acquire a second reference point with the preset variable between the second extreme point and the trajectory equation of the additional lane: a sixth acquisition module 408, used to acquire a first connecting line between the first extreme point and the second extreme point; a seventh acquisition module 409, used to acquire a second connecting line between the first reference point and the second reference point; a first judgment module 410, used to determine whether the first connecting line and the second connecting line intersect, and if the first connecting line and the second connecting line do not intersect, then enter the generation module.

[0167] In some embodiments, the device 400 also includes: a second judgment module 411, used to determine whether there are marking points in the additional lane, if not, entering the generation module 403, and if so, entering the eighth acquisition module 412, wherein the marking points include the points where traffic lights are located and the inspection points for inspecting vehicles; the eighth acquisition module 412, used to obtain the marking points in the additional lane; a deletion module 413, used to delete the curve at a preset distance from the marking point in the trajectory equation of the additional lane, and enter the generation module, wherein the trajectory equation of the additional lane is the trajectory equation of the additional lane after deleting the curve at the preset distance from the marking point.

[0168] In some embodiments, the existing lane includes a first endpoint and a second endpoint, and the first acquisition module 401 includes: a fourth acquisition unit 4011, used to acquire the horizontal and vertical coordinates of the first endpoint; a fifth acquisition unit 4012, used to acquire the horizontal and vertical coordinates of the second endpoint; a sixth acquisition unit 4013, used to acquire the first lane and the second lane adjacent to the existing lane, wherein the first lane includes the second endpoint and the third endpoint, and the second lane includes the first endpoint and the fourth endpoint; a seventh acquisition unit 4014, used to acquire the horizontal and vertical coordinates of the third endpoint; an eighth acquisition unit 4015, used to acquire the horizontal and vertical coordinates of the fourth endpoint; a fitting unit 4016, used to fit the trajectory equation of the existing lane where the first endpoint and the second endpoint are located according to the horizontal and vertical coordinates of the first endpoint, the horizontal and vertical coordinates of the second endpoint, the horizontal and vertical coordinates of the third endpoint, and the horizontal and vertical coordinates of the fourth endpoint.

[0169] In some embodiments, the trajectory equation of the existing lane where the first endpoint and the second endpoint are located is:

[0170] P(t)=A+Bt+Ct 2 +Dt 3 ;

[0171] Wherein, t is a parameter, t∈[0,1]; wherein A, B, C and D can be solved according to four constraints; the four constraints include: when t=0, P(0) is equal to the ordinate of the first endpoint; when t=1, P(1) is equal to the ordinate of the second endpoint; when t=0, P′(0) is equal to the difference between the ordinate of the second endpoint and the ordinate of the fourth endpoint, multiplied by a preset parameter; when t=1, P′(1) is equal to the difference between the ordinate of the third endpoint and the ordinate of the first endpoint, multiplied by the preset parameter.

[0172] In the embodiment of the present application, the trajectory equation of the existing lane is obtained by the first acquisition module 401; the trajectory equation of the additional lane is translated by the acquisition module 402 by a preset distance to obtain the trajectory equation of the additional lane; the trajectory equation of the additional lane is used to represent the additional lane by the generation module 403, thereby providing a lane generation device that can generate an additional lane based on the existing lane, thereby facilitating subsequent operations such as lane switching between the existing lane and the additional lane.

[0173] Embodiment 5

[0174] See also Fig.10 , Fig.10 1 is a schematic diagram of the hardware structure of an electronic device for executing the lane generation method provided in an embodiment of the present invention. The electronic device 50 includes: one or more processors 51 and a memory 52. Fig.10 A memory is taken as an example.

[0175] The processor 51 and the memory 52 may be connected via a bus or other means. In the embodiment of the present invention, connection via a bus is taken as an example.

[0176] The memory 52 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the lane generation method in the embodiment of the present invention (for example, the attached Fig. 9 The processor 51 executes various functional applications and data processing of the lane generation device by running the non-volatile software programs, instructions and modules stored in the memory 52, that is, the lane generation method of the above method embodiment is implemented.

[0177] The memory 52 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the lane generation device, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 52 may optionally include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the lane generation device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0178] The one or more modules are stored in the memory 52, and when executed by the one or more processors 51, the lane generation method in any of the above method embodiments is executed.

[0179] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.

[0180] An embodiment of the present invention provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by an electronic device to perform the lane generation method in any of the above method embodiments.

[0181] An embodiment of the present invention provides a computer program product, including a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the lane generation method in any of the above method embodiments.

[0182] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0183] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0184] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A lane generation method for generating an additional lane based on an existing lane, characterized in that: include: Obtaining a trajectory equation of the existing lane; translating the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane, wherein the preset distance is the lane width; Representing the additional lane with a trajectory equation of the additional lane; Wherein, the trajectory equation of the existing lane is a cubic algebraic expression, and before the step of using the trajectory equation of the additional lane to represent the additional lane, the method further includes: Obtaining a first extreme point of the trajectory equation of the existing lane; Acquire a first reference point having a preset variable between the first extreme point and the trajectory equation of the existing lane; Obtaining a second extreme point corresponding to the first extreme point in the trajectory equation of the additional lane; Acquire a second reference point having the preset variable between the second extreme point and the trajectory equation of the additional lane; Obtain a first connecting line between the first extreme point and the second extreme point; Acquire a second connecting line between the first reference point and the second reference point; Determine whether the first connecting line and the second connecting line intersect; If not, the process proceeds to the step of representing the additional lane with the trajectory equation of the additional lane.

2. The method according to claim 1, characterized in that The step of translating the trajectory equation by a preset distance to obtain the trajectory equation of the additional lane further comprises: Obtaining a unit direction vector of a trajectory equation of the existing lane; Acquire lane information of the additional lane, wherein the lane information includes information of which lane the additional lane is adjacent to the existing lane; Acquire a relative position of the additional lane and the existing lane along the direction of the unit direction vector; The trajectory equation of the additional lane is obtained according to the trajectory equation of the existing lane, the unit direction vector, the preset distance, the lane information and the relative position.

3. The method according to claim 2, characterized in that The trajectory equation of the additional lane is obtained as: ; Among them, the is the parameter; Said is the trajectory equation of the additional lane; Said is the trajectory equation of the existing lane; Said is the unit direction vector of the trajectory equation of the existing lane; Said is the preset distance; Said The lane number of the additional lane adjacent to the existing lane; Said represents the relative position, the , along the direction of the unit direction vector, the direction of the existing lane toward the additional lane is the same as the direction of the unit direction vector, then the The value of is 1. If the direction of the existing lane toward the additional lane is opposite to the direction of the unit direction vector, then The value of is -1.

4. The method according to any one of claims 1 to 3, characterized in that: Before the step of representing the additional lane with the trajectory equation of the additional lane, the method further comprises: Determining whether there are marking points in the additional lane, wherein the marking points include points where traffic lights are located and checkpoints for checking vehicles; If not, then entering the step of representing the additional lane with the trajectory equation of the additional lane; If yes, obtaining the marking points in the additional lane; The step of deleting a curve at a preset distance from the marking point from the trajectory equation of the additional lane, and entering the step of representing the additional lane with the trajectory equation of the additional lane, wherein the trajectory equation of the additional lane is the trajectory equation of the additional lane after deleting the curve at the preset distance from the marking point.

5. The method according to any one of claims 1 to 3, characterized in that: The existing lane includes a first endpoint and a second endpoint, and the step of obtaining the trajectory equation of the existing lane further includes: Obtaining the horizontal and vertical coordinates of the first endpoint; Obtaining the horizontal and vertical coordinates of the second endpoint; Acquire a first lane and a second lane adjacent to the existing lane, wherein the first lane includes the second endpoint and a third endpoint, and the second lane includes the first endpoint and a fourth endpoint; Obtaining the horizontal and vertical coordinates of the third endpoint; Obtaining the horizontal and vertical coordinates of the fourth endpoint; According to the horizontal and vertical coordinates of the first endpoint, the horizontal and vertical coordinates of the second endpoint, the horizontal and vertical coordinates of the third endpoint, and the horizontal and vertical coordinates of the fourth endpoint, a trajectory equation of the existing lane where the first endpoint and the second endpoint are located is fitted.

6. The method according to claim 5, characterized in that The trajectory equation of the existing lane where the first endpoint and the second endpoint are located is: ; Among them, the As parameters, ; Among them, the , , and Solve according to four constraints; The four constraints include: =0, is equal to the ordinate of the first endpoint; =1, is equal to the ordinate of the second endpoint; =0, is equal to the difference between the ordinate of the second endpoint and the ordinate of the fourth endpoint, multiplied by a preset parameter; =1, It is equal to the difference between the ordinate of the third endpoint and the ordinate of the first endpoint, multiplied by the preset parameter.

7. A lane generation device, characterized in that: include: A first acquisition module is used to obtain the trajectory equation of the existing lane; an obtaining module, configured to translate the trajectory equation by a preset distance to obtain a trajectory equation of an additional lane, wherein the preset distance is a lane width; A generating module, configured to represent the additional lane using a trajectory equation of the additional lane; Wherein, the trajectory equation of the existing lane is a cubic algebraic expression, and the device further includes: A second acquisition module, used to acquire a first extreme value point of the trajectory equation of the existing lane; A third acquisition module, used for acquiring a first reference point having a preset variable between the first extreme point and the trajectory equation of the existing lane; a fourth acquisition module, configured to acquire a second extreme point corresponding to the first extreme point in the trajectory equation of the additional lane; A fifth acquisition module is used to acquire a second reference point having the preset variable between the second extreme point and the trajectory equation of the additional lane: A sixth acquisition module, used to acquire a first connecting line between the first extreme point and the second extreme point; A seventh acquisition module, configured to acquire a second connecting line between the first reference point and the second reference point; The first judging module is used to judge whether the first link and the second link intersect, and if the first link and the second link do not intersect, enter the generating module.

8. An electronic device, characterized in that: include: at least one processor; as well as A memory, wherein the memory is communicatively connected to the at least one processor, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Real-time relative map generation method and device, electronic equipment and storage medium

    CN111339802A

  • Lane recognition device and lane recognition method

    CN111462527A