Roundabout section guidance method, device, equipment and storage medium
By dividing the links of the roundabout section in the navigation system, judging the road structure type and calculating the accurate inbound and outbound directions, the problem of inaccurate steering action guidance on the roundabout section is solved, and more accurate steering guidance is provided, which is suitable for all types of roads. roundabouts of various shapes and angles.
Patent Information
- Application Number
- CN202210856293.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-19
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-07-19
AI Technical Summary
When existing navigation systems guide vehicles through roundabouts, the steering action guidance is inaccurate, especially for roundabouts with irregular shapes or non-vertical connecting road angles, resulting in users being unable to obtain accurate steering guidance.
By dividing the roundabout section into several links that are connected end to end, it is determined whether the road structure at the entrance and exit of the roundabout is straight in or straight out, and the back-exploration and forward-exploration techniques are used to calculate the incoming and outgoing directions. According to the angle between these directions Output steering indicators, skip the impact of ramps, and provide precise steering guidance.
It achieves more accurate steering action guidance on roundabouts, reduces user misdirection, and improves the driving experience. It is suitable for roundabouts with irregular shapes and non-vertical angles.
Smart Images

Figure CN115235494B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of driving navigation, and in particular to a roundabout road section guidance method, device, equipment and storage medium. Background Art
[0002] In the current in-vehicle navigation system products that use Standard Definition Map (SD map), when the vehicle is about to pass a maneuvering point, the user will be informed of the correct turning action by using a turn sign. The selection of the turn sign is determined by calculating the turning angle from entering to leaving the road structure, that is, the angle between the exit direction and the entry direction.
[0003] For road structures such as general intersections, current navigation systems can provide relatively accurate steering guidance. However, for special road structures such as roundabouts, especially for roundabouts with irregular shapes or connecting roads that are not equal to the four, and the angles of the entry and exit roads are not perpendicular to the main road of the roundabout, there is a certain deviation in steering guidance. Some navigation products even avoid this deviation by not outputting steering guidance and only informing users of the exit number. This makes it inconvenient for users to obtain accurate steering guidance, which makes driving inconvenient. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a roundabout guidance method, device, equipment and storage medium to solve the problem of inaccurate steering action guidance on a roundabout.
[0005] The technical solution proposed by the present invention is as follows:
[0006] A first aspect of an embodiment of the present invention provides a method for guiding a roundabout section, comprising: dividing a target section into a plurality of links connected end to end; determining whether the road structure of a roundabout entrance is a straight entry, and when the road structure of the roundabout entrance is not a straight entry, taking the roundabout entry point as the starting point, back-probing along the path for a first preset distance to obtain a back-probing end point, and calculating an entry direction based on the link where the back-probing end point is located; determining whether the road structure of a roundabout exit is a straight exit, and when the road structure of the roundabout exit is not a straight exit, taking the roundabout exit point as the starting point, forward-probing along the path for a second preset distance to obtain a forward-probing end point, and calculating an exit direction based on the link where the forward-probing end point is located; and outputting a turn sign according to the angle between the entry direction and the exit direction to guide driving on the roundabout section.
[0007] The roundabout guidance method of the embodiment of the present invention determines whether the roundabout road structure is a straight entry and a straight exit. When it is not a straight entry, the entry point of the roundabout is used as the starting point, and the first preset distance is back-traced along the path to obtain the back-tracing end point, and the entry direction is calculated based on the link where the back-tracing end point is located. Since the ramp is skipped by back-tracing the first preset distance, the accurate entry direction can be found when it is not a straight entry, and the accurate exit direction can be obtained similarly. Then, the turn sign is obtained according to the angle between the entry direction and the exit direction, thereby obtaining an accurate turn sign, accurately guiding the user's driving, and solving the problem of inaccurate steering action guidance on the roundabout section.
[0008] According to the roundabout guidance method provided by the first aspect of an embodiment of the present invention, the first preset distance is obtained by the following steps: calculating the average radius of the roundabout; multiplying the average radius of the roundabout by a first preset coefficient to obtain the first preset distance; the second preset distance is obtained by the following steps: multiplying the average radius of the roundabout by a second preset coefficient to obtain the second preset distance.
[0009] In this embodiment, the first preset distance and the second preset distance are obtained by multiplying the average radius of the roundabout by the first preset coefficient and the second preset coefficient, and the ramp length is approximated by the first preset distance and the second preset distance, so that the ramp can be skipped to obtain the accurate entry direction and exit direction.
[0010] According to the roundabout guidance method provided by the first aspect of an embodiment of the present invention, the calculation of the entry direction based on the link where the back-probing endpoint is located includes: judging whether the distance from the guidance starting point to the roundabout entry point is less than a first preset distance; if the distance from the guidance starting point to the roundabout entry point is not less than the first preset distance, judging whether the back-probing endpoint is located at the starting point of the link; if not, searching for the previous shape point in the opposite direction of entering the roundabout on the link where the back-probing endpoint is located, and the entry direction is the direction of the line connecting the back-probing endpoint and the previous shape point; if so, the entry direction is the starting direction angle of the link where the back-probing endpoint is located plus 180°; if the distance from the guidance starting point to the roundabout entry point is less than the first preset distance, judging whether the guidance starting point is located at the starting point of the link; if not, searching for the previous shape point in the opposite direction of entering the roundabout on the link where the guidance starting point is located, and the entry direction is the direction of the line connecting the guidance starting point and the previous shape point; if so, the entry direction is the starting direction angle of the link where the guidance starting point is located plus 180°.
[0011] This embodiment can set different entry direction determination mechanisms according to the distance between the guidance starting point, i.e., the current position of the vehicle, and the entry point of the roundabout. Different and accurate entry directions can be obtained for guidance at different positions, so that the accurate entry direction can be obtained according to the actual driving conditions, thereby improving the accuracy of the obtained entry direction.
[0012] According to the roundabout guidance method provided by the first aspect of an embodiment of the present invention, the out-edge direction is calculated based on the link where the forward exploration terminal is located, comprising: judging whether the distance from the guidance terminal to the point of leaving the roundabout is less than a second preset distance; if the distance from the guidance terminal to the point of entering the roundabout is not less than the second preset distance, judging whether the forward exploration terminal is located at the end of the link where it is located; if not, searching for the next shape point on the link where the forward exploration terminal is located in the direction of leaving the roundabout, the out-edge direction being the direction of the line connecting the forward exploration terminal and the next shape point; if so, the out-edge direction being the terminal direction angle of the link where the forward exploration terminal is located; if the distance from the guidance terminal to the point of entering the roundabout is less than the second preset distance, judging whether the guidance terminal is located at the end of the link where it is located; if not, searching for the next shape point on the link where the guidance terminal is located in the direction of leaving the roundabout, the out-edge direction being the direction of the line connecting the guidance terminal and the next shape point; if so, the out-edge direction being the terminal direction angle of the link where the guidance terminal is located.
[0013] This embodiment can set different exit direction determination mechanisms according to the distance between the guidance end point and the exit roundabout point, so that different and accurate exit directions can be obtained for guidance at different positions, so that the accurate exit direction can be obtained according to the actual driving conditions, thereby improving the accuracy of the obtained exit direction.
[0014] According to the roundabout section guidance method provided by the first aspect of an embodiment of the present invention, the determining whether the road structure of the roundabout entrance is a straight-in comprises: calculating the roundabout entrance angle; determining whether the roundabout entrance angle is within the interval of 90°±a first preset angle, when the roundabout entrance angle is within the interval of 90°±a first preset angle, the road structure of the roundabout entrance is a straight-in, otherwise, the road structure of the roundabout entrance is not a straight-in; the determining whether the road structure of the roundabout exit is a straight-out comprises: calculating the roundabout turning angle; determining whether the roundabout exit turning angle is within the interval of 90°±a second preset angle, when the roundabout exit turning angle is within the interval of 90°±a second preset angle, the road structure of the roundabout exit is a straight-out, otherwise, the road structure of the roundabout exit is not a straight-out.
[0015] This embodiment can determine whether the road structure of the roundabout entrance and the roundabout exit is a straight exit through the roundabout entrance angle and the roundabout exit angle.
[0016] According to the roundabout section guidance method provided by the first aspect of an embodiment of the present invention, the target section includes a roundabout section, the link includes an input edge link with an input roundabout point as an end point and a first roundabout link with the input roundabout point as a starting point, as well as an output edge link with an output roundabout point as a starting point and a second roundabout link with an output roundabout point as an end point; the calculation of the roundabout entry angle includes: obtaining the roundabout entry angle by calculating the angle between the input edge link and the first roundabout link; the calculation of the roundabout turning angle includes: obtaining the roundabout exit angle by calculating the angle between the output edge link and the second roundabout link.
[0017] The calculation is convenient by using the angle between the two links with the entry point as the intersection as the roundabout entry angle and the angle between the two links with the exit point as the intersection as the roundabout exit angle.
[0018] According to the roundabout section guidance method provided by the first aspect of an embodiment of the present invention, when the road structure of the roundabout entrance is a straight entry, the entry direction is determined based on the direction of the entry link; when the road structure of the roundabout exit is a straight exit, the exit direction is determined based on the direction of the exit link.
[0019] This embodiment can realize rapid determination of the entry and exit directions when the roundabout is in a straight-in and straight-out shape.
[0020] A second aspect of an embodiment of the present invention provides a roundabout section guidance device, including: a link division module, used to divide a target section into a plurality of end-to-end connected links; an entry direction calculation module, used to determine whether the road structure of the roundabout entrance is a straight entry. When the road structure of the roundabout entrance is not a straight entry, taking the entry point of the roundabout as the starting point, back-probing along the path for a first preset distance to obtain a back-probing end point, and calculating the entry direction based on the link where the back-probing end point is located; an exit direction calculation module, used to determine whether the road structure of the roundabout exit is a straight exit. When the road structure of the roundabout exit is not a straight exit, taking the exit point of the roundabout as the starting point, forward-probing along the path for a second preset distance to obtain a forward-probing end point, and calculating the exit direction based on the link where the forward-probing end point is located; a turn sign guidance module, used to output a turn sign according to the angle between the entry direction and the exit direction to guide driving on the roundabout section.
[0021] The roundabout section guidance device provided in the second aspect of the embodiment of the present invention determines whether the roundabout road structure is a straight entry or a straight exit. When it is not a straight entry, it takes the entry point of the roundabout as the starting point, back-traces the first preset distance along the path to obtain the back-tracing end point, and calculates the entry direction based on the link where the back-tracing end point is located. Since the ramp is skipped by back-tracing the first preset distance, the accurate entry direction can be found when it is not a straight entry, and the accurate exit direction can be obtained similarly. Then, the turn sign is obtained according to the angle between the entry direction and the exit direction. The user is accurately guided to drive by the accurate turn sign, thereby solving the problem of inaccurate steering action guidance on the roundabout section.
[0022] A third aspect of an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the roundabout section guidance method as described in any one of the first aspect of the embodiments of the present invention by executing the computer instructions.
[0023] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the roundabout section guidance method as described in any one of the first aspect of the embodiment of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly express the technical solutions of the embodiments of the present invention, the drawings required for describing the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 Flow chart of the roundabout section guidance method in an embodiment of the present invention;
[0026] Figure 2 A road condition display diagram for calculating the incoming edge direction in an embodiment of the present invention;
[0027] Figure 3 A schematic diagram comparing the turn indicators output in the prior art and in the embodiment of the present invention;
[0028] Figure 4 A road condition display diagram in which a roundabout corner is calculated in an embodiment of the present invention;
[0029] Figure 5 is a flow chart of a roundabout section guidance method in another embodiment of the present invention;
[0030] Figure 6 : is a structural block diagram of a roundabout section guiding device in an embodiment of the present invention;
[0031] Figure 7 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0033] The embodiment of the present invention provides a roundabout section guidance method for providing accurate guidance when a vehicle passes through a roundabout section. Figure 1 , the method comprising:
[0034] Step S101, dividing the target road section into a plurality of links connected end to end.
[0035] Specifically, the target road section is the road section including the roundabout that currently needs to be navigated.
[0036] Specifically, a link is a term in the navigation map industry. In SD maps, each road is abstracted as a collection of links, and each link is divided by intersections on the actual road. For each link, it is abstracted as a combination of straight line segments in the SD map. The connection points of these segments are shape points, also called inflection points, which are used to indicate that the route direction has changed. Each link includes at least two shape points: the beginning and the end.
[0037] Step S102, determine whether the road structure of the roundabout entrance is a straight entry. When the road structure of the roundabout entrance is not a straight entry, take the entry point of the roundabout as the starting point, backtrack along the path for a first preset distance to obtain the backtracking end point, and calculate the entry direction based on the link where the backtracking end point is located.
[0038] Specifically, straight-in refers to the road structure that allows the vehicle to directly enter the roundabout by driving along the entry direction. The entry direction refers to the direction of the straight section that is almost pointing to the center of the roundabout before the path enters the roundabout. In addition, the road structure of the roundabout also includes cut-in and cut-out. Cut-in refers to the road structure that requires the vehicle to turn a certain angle before driving along the entry direction to enter the roundabout; cut-out refers to the road structure that requires the vehicle to turn a certain angle after leaving the roundabout and driving to the exit direction. When it is not a straight-in, that is, a cut-in scenario, there will be a turning section before entering the roundabout, such as the ramp into the roundabout (in the cut-in scenario, the path turns from the entry direction to the road section of the roundabout / in the cut-out scenario, the path turns from the road section leaving the roundabout to the exit direction). At this time, when calculating the entry direction, if the entry direction is calculated based on the section closest to the roundabout, the direction of the turning section is obtained, and the entry direction cannot be accurately obtained. In order to avoid the influence of the turning section, a method is adopted in which the first preset distance is back-traced along the path to obtain the back-tracing end point and the incoming edge direction is calculated based on the link where the back-tracing end point is located, so that the incoming edge direction can be calculated accurately.
[0039] Exemplarily, the calculation of the incoming edge direction based on the link where the back-probing endpoint is located is mainly to determine the incoming edge direction according to the direction of the link where the back-probing endpoint is located. For example, in one embodiment, the direction of the line connecting the first shape point and the last shape point of the link where the back-probing endpoint is located is used as the incoming edge direction. In other embodiments, the line connecting two shape points near the back-probing endpoint can also be used as the incoming edge direction.
[0040] In a preferred embodiment, if Figure 2 As shown, Figure 2 The roundabout section in the road is neither a straight entry nor a straight exit. I To enter the roundabout, from point P I Probe back along the path for the first preset distance to obtain the probe end point P IR , return to the end point P IR Then find the previous shape point P from the link in the opposite direction of the driving direction IB , P IB P IR The connection direction of is taken as the incoming edge direction.
[0041] Step S103, determine whether the road structure of the roundabout exit is a straight exit. When the road structure of the roundabout exit is not a straight exit, take the exit point of the roundabout as the starting point, explore the second preset distance along the path to obtain the exploration end point, and calculate the edge direction based on the link where the exploration end point is located.
[0042] Specifically, straight out refers to the road structure that immediately faces the outbound direction after the vehicle leaves the roundabout. The outbound direction refers to the direction of the straight section that is almost pointing to the center of the roundabout after the path leaves the roundabout. When it is not a straight out, there will be a turning section before leaving the roundabout, such as a ramp leaving the roundabout. When calculating the outbound direction, if the outbound direction is calculated based on the section closest to the roundabout, the direction of the turning section is obtained, and the outbound direction cannot be accurately obtained. In order to avoid the influence of the turning section, the method of probing forward along the path for a second preset distance to obtain the forward end point and calculating the outbound direction based on the link where the forward end point is located is adopted, so that the inbound direction can be accurately calculated.
[0043] Exemplarily, the outgoing edge direction is calculated based on the link where the forward probe endpoint is located. The outgoing edge direction is mainly determined based on the direction of the link where the forward probe endpoint is located. In one embodiment, the direction of the line connecting the first shape point and the last shape point of the link where the forward probe endpoint is located is used as the outgoing edge direction. In other embodiments, the line connecting two shape points near the forward probe endpoint can also be used as the outgoing edge direction.
[0044] In a preferred embodiment, if Figure 2 As shown. O To leave the roundabout, from point P O Probe forward a second preset distance along the driving direction to obtain a forward exploration end point P OR , forward exploration end point P OR Then find the next shape point P from the link in the direction of travel OF , P OR P OF The direction of the line is taken as the outgoing edge direction.
[0045] Specifically, the first preset distance and the second preset distance can be set according to the actual structure of the roundabout, and their specific lengths are not limited to this embodiment. For the scenario where the angle of the connecting road entering and exiting the roundabout is not vertical and intersects tangentially, this embodiment focuses on the direction trend of the user entering and exiting the roundabout at a macro level to perform steering calculation, which can effectively avoid steering misjudgment caused by cutting angles.
[0046] Step S104: outputting a turn sign according to the angle between the inbound direction and the outbound direction to guide driving on the roundabout.
[0047] Specifically, after obtaining the in-edge direction and the out-edge direction, the direction angle of the in-edge direction is subtracted from the direction angle of the out-edge direction to obtain their included angle.
[0048] It should be noted that the turn indicator actually represents the angle between the inbound direction and the outbound direction. The larger the angle, the larger the turn angle indicated by the turn indicator. For example, the angle between the inbound direction and the outbound direction is 90°±
[0049] When the angle is 10°, the output is a turn sign indicating a 90° right turn.
[0050] Current high-quality navigation systems use 16-way turn signs for roundabouts to prompt users to exit from the correct exit in advance. Unlike 4-way or 8-way turn signs, which can provide guidance through rough calculations of the entry and exit angles, 16-way turn signs require higher accuracy. The angle between the entry and exit directions calculated in this embodiment can skip the turning section with high accuracy, which can meet the accuracy requirements of 16-way turn signs, making it possible to use 16-way turn signs for turning guidance. For scenarios where there are 3 or more roads connected to the roundabout, the guidance of 16-way turn signs is more accurate than that of 4-way and 8-way turn signs. Figure 3 As shown, the method of this embodiment can obtain accurate turn signs when calculating roundabout turn signs, while the turn signs obtained by the prior art do not skip the turning section, resulting in the turn sign output not conforming to the actual road conditions.
[0051] The roundabout guidance method of the embodiment of the present invention determines whether the roundabout road structure is a straight entry and a straight exit. When it is not a straight entry, the entry point of the roundabout is used as the starting point, and the first preset distance is back-traced along the path to obtain the back-tracing end point, and the entry direction is calculated based on the link where the back-tracing end point is located. Since the ramp is skipped by back-tracing the first preset distance, the accurate entry direction can be found when it is not a straight entry, and the accurate exit direction can be obtained similarly. Then, the turn sign is obtained according to the angle between the entry direction and the exit direction, thereby obtaining an accurate turn sign, accurately guiding the user's driving, and solving the problem of inaccurate steering action guidance on the roundabout section.
[0052] In one embodiment, the first preset distance is obtained by the following steps: calculating the average radius of the roundabout; multiplying the average radius of the roundabout by the first preset coefficient to obtain the first preset distance; the second preset distance is obtained by the following steps: multiplying the average radius of the roundabout by the second preset coefficient to obtain the second preset distance.
[0053] Specifically, the average radius of the roundabout is calculated as follows:
[0054] Take a number of points on the roundabout, and calculate the curvature of all arcs with two adjacent points as endpoints, and calculate the average curvature. The average radius of the roundabout is the reciprocal of the average curvature. In order to facilitate calculation, in a specific implementation, the roundabout map can be zoomed in first, for example, by 10 6 times, and then use this to calculate the average curvature, then the average radius of the roundabout is R = 10 6 / average curvature.
[0055] For example, in order to truly approach the ramp, the first preset distance and the second preset coefficient are both
[0056] Practice has shown that when the first preset distance and the second preset coefficient are both In other embodiments, the first preset distance and the second preset coefficient may be set to other multiples such as 1 or 2, and the first preset distance and the second preset coefficient may not be equal.
[0057] In this embodiment, the first preset distance and the second preset distance are obtained by multiplying the average radius of the roundabout by the first preset coefficient and the second preset coefficient. The ramp length is approximated by the first preset distance and the second preset distance, and the ramp can be skipped to obtain the accurate entry and exit directions. By determining the first preset distance and the second preset distance by multiples of the roundabout radius, the actual road conditions of each roundabout can be met, and the ramp can be accurately skipped to obtain the accurate entry and exit directions, and the scope of application is wide. For roundabouts with irregular shapes, as long as they are roughly circular, the ramp can be approximated by multiples of the radius in this embodiment to produce actual physical meaning, so that the points for trend speculation are reasonable.
[0058] In one embodiment, calculating the incoming edge direction based on the link where the back-probing endpoint is located includes:
[0059] First, it is determined whether the distance from the guidance starting point to the roundabout point is less than a first preset distance. Specifically, the guidance starting point is the starting point of this vehicle navigation, which can generally be understood as the current position of the vehicle.
[0060] Secondly, if the distance from the guidance starting point to the point where the roundabout is entered is not less than the first preset distance, determine whether the back-probe end point is located at the starting point of the link where it is located; if not, search for the previous shape point in the opposite direction of entering the roundabout on the link where the back-probe end point is located, and the entry direction is the direction of the line connecting the back-probe end point and the previous shape point; if so, the entry direction is the direction angle of the head end of the link where the back-probe end point is located plus 180°.
[0061] If the distance from the guidance starting point to the roundabout entry point is less than the first preset distance, determine whether the guidance starting point is located at the starting point of the link where it is located; if not, search for the previous shape point in the opposite direction of entering the roundabout on the link where the guidance starting point is located, and the entry direction is the direction of the line connecting the guidance starting point and the previous shape point; if so, the entry direction is the starting end direction angle of the link where the guidance starting point is located plus 180°.
[0062] In the prior art, each roundabout entrance often outputs a fixed turn sign. In fact, when the vehicle is in different positions, its direction should be different. For example, on the turning section before entering the roundabout, the actual direction of the vehicle should be constantly changing. Therefore, when the vehicle is in different positions, the corresponding turn sign should also be output. The turn sign output according to the prior art cannot change according to the vehicle position, and the result is not accurate enough. This embodiment sets different entry direction determination mechanisms according to the distance between the guidance starting point, i.e., the current position of the vehicle, and the entry point of the roundabout. Different and accurate entry directions can be obtained when guiding at different positions, so that it can obtain an accurate entry direction according to the actual driving conditions, thereby making the output turn sign more accurate.
[0063] In one embodiment, calculating the edge direction based on the link where the forward probe end point is located includes:
[0064] First, it is determined whether the distance from the guidance end point to the point of leaving the roundabout is less than a second preset distance. Specifically, the guidance end point is the end point of this vehicle navigation, which can generally be understood as the vehicle heading to the destination.
[0065] Secondly, if the distance from the guidance end point to the entry point into the roundabout is not less than the second preset distance, determine whether the forward exploration end point is located at the end point of the link where it is located; if not, search for the next shape point on the link where the forward exploration end point is located in the direction away from the roundabout, and the out-edge direction is the direction of the line connecting the forward exploration end point and the next shape point; if so, the out-edge direction is the end direction angle of the link where the forward exploration end point is located.
[0066] If the distance from the guidance end point to the entry point into the roundabout is less than the second preset distance, determine whether the guidance end point is located at the end point of the link where it is located; if not, search for the next shape point on the link where the guidance end point is located in the direction away from the roundabout, and the out-edge direction is the direction of the line connecting the guidance end point and the next shape point; if so, the out-edge direction is the end direction angle of the link where the guidance end point is located.
[0067] The present embodiment can set different mechanisms for determining the exit direction according to the distance between the guidance end point and the point leaving the roundabout, so that different and accurate exit directions can be obtained for guidance at different positions, so that the accurate exit direction can be obtained according to the actual driving conditions. Combined with the above-mentioned method for determining the entry direction, the angle between the exit direction and the entry direction that is more in line with the actual road conditions can be obtained. The present embodiment sets different mechanisms for determining the entry direction and the exit direction according to the actual positions of the guidance starting point and the guidance end point, so that different and accurate entry directions and exit directions can be obtained for guidance at different positions, so that the accurate entry direction and output direction can be obtained according to the actual driving conditions, thereby making the output turn sign more accurate.
[0068] In an optional embodiment, determining whether the road structure of the roundabout entrance is a straight-in includes:
[0069] Calculate the roundabout entrance angle; determine whether the roundabout entrance angle is within the range of 90°±the first preset angle, when the roundabout entrance angle is within the range of 90°±the first preset angle, the road structure of the roundabout entrance is a straight-in, otherwise, the road structure of the roundabout entrance is not a straight-in;
[0070] Determine whether the road structure of the roundabout exit is a straight exit, including:
[0071] Calculate the roundabout turning angle;
[0072] Determine whether the roundabout corner is within the interval of 90°±the second preset angle. When the roundabout exit corner is within the interval of 90°±the second preset angle, the road structure of the roundabout exit is a straight exit. Otherwise, the road structure of the roundabout exit is not a straight exit.
[0073] Specifically, the turning angle refers to the angle of rotation of the vehicle from one direction clockwise / counterclockwise to another along the road. The roundabout entry angle refers to the angle between the vehicle's forward direction and the roundabout tangent when the vehicle enters the roundabout. The roundabout exit angle refers to the angle between the vehicle's forward direction and the roundabout tangent when the vehicle leaves the roundabout. The way to calculate the roundabout entry angle is to find the roundabout entry point, which can also be understood as the intersection of the non-roundabout section and the roundabout section when the vehicle enters the roundabout, determine the vehicle's forward direction when the vehicle leaves the roundabout and the roundabout tangent at that point, and then determine the roundabout entry angle. The same method is used to determine the roundabout exit angle.
[0074] Exemplarily, in one embodiment, the first preset angle and the second preset angle are both (360° / 16). When the entry / exit angle of the roundabout is within the range of 90°±(360° / 16), i.e., [67.5°, 112.5°], it is deemed that the straight-in / straight-out judgment condition is met.
[0075] This embodiment can determine whether the road structure of the roundabout entrance and the roundabout exit is a straight exit through the roundabout entrance angle and the roundabout exit angle.
[0076] In an optional embodiment, the target road section includes a roundabout section, and the link includes an input edge link with an entry point as an end point and a first roundabout link with the entry point as a starting point, as well as an output edge link with an exit point as a starting point and a second roundabout link with the exit point as an end point.
[0077] Calculate the roundabout angle, including:
[0078] The roundabout entry angle is obtained by calculating the angle between the entry edge link and the first roundabout link.
[0079] Calculate the roundabout angle, including:
[0080] The exit roundabout turning angle is obtained by calculating the included angle between the exit edge link and the second roundabout link.
[0081] Specifically, in the left-hand steering scenario (the pilot is on the left side of the cockpit):
[0082] Turning angle θ I =|the direction angle of the first roundabout link - 180° - the direction angle of the end of the incoming link|% 360°. Among them, for each link, according to the corresponding actual road direction, the starting side is the starting side and the ending side is the end. The direction angle of the starting end refers to the angle of the extension line from the east direction, rotating counterclockwise to the starting point of the starting point in the opposite direction of the link; the direction angle of the end refers to the angle of the extension line from the east direction, rotating counterclockwise to the starting point of the ending point in the same direction as the link. The value range of both is [0°, 360°). In order to avoid the calculated turning angle θ of the roundabout I If the angle is greater than 360°, the angle of the first roundabout link minus 180° and the angle of the end of the incoming link is divided by 360° and the remainder is taken to obtain the angle of the roundabout. I .like Figure 4 As shown, θ Ia is the direction angle of the first island link, θ Ib is the terminal direction angle of the incoming link.
[0083] Turning angle θ at roundabout exit o =|the direction angle of the first end of the outgoing link - 180° - the direction angle of the end of the second roundabout link |% 360°. Similarly, in order to avoid the calculated outgoing roundabout angle θ o If the angle is greater than 360°, the angle of the exit link is divided by 360° after subtracting 180° from the direction angle of the first end of the exit link and the direction angle of the second roundabout link, and the remainder is obtained to obtain the exit roundabout angle θ. o .
[0084] Similarly, in the right-hand rudder scenario (the pilot is on the right side of the cockpit):
[0085] Turning angle θ I =|the starting direction angle of the first roundabout link - the ending direction angle of the incoming edge link|% 360°.
[0086] Turning angle θ at roundabout exit o =|the starting direction angle of the outgoing link - the ending direction angle of the second roundabout link|% 360°.
[0087] In this embodiment, the included angle of two links with the intersection of the entry point of the roundabout is used as the entry angle of the roundabout, and the included angle of two links with the intersection of the exit point of the roundabout is used as the exit angle of the roundabout, which is convenient for calculation.
[0088] In one embodiment, when the road configuration of the roundabout entrance is straight-in, the edge-in direction is determined based on the direction of the edge-in link;
[0089] When the road configuration of the roundabout exit is straight-out, the outbound direction is determined based on the direction of the outbound link.
[0090] Specifically, when the road structure of the roundabout entrance is straight-in, the end direction angle of the inbound link is used as the inbound direction; when the outbound meets the straight-out condition, the head end direction angle +180° of the outbound link is used as the outbound direction.
[0091] This embodiment can realize rapid determination of the entry and exit directions when the roundabout is in a straight-in and straight-out shape.
[0092] Figure 5 FIG. 1 is an overall flow chart of an embodiment of the present invention. Figure 5 As shown, the workflow of the embodiment of the present invention includes:
[0093] First, calculate the turning angles for entering and exiting the roundabout;
[0094] Secondly, determine whether the road structure of the roundabout is a straight-in or straight-out. When the road structure of the roundabout is a straight-in or straight-out, use the distance approximation method, i.e., the method of step S102 and step S103 above, to calculate the in-edge direction or out-edge direction. When the road structure of the roundabout is not a straight-in or straight-out, directly calculate the out-edge direction and the in-edge direction, i.e., determine the in-edge direction based on the direction of the in-edge link and determine the out-edge direction based on the direction of the out-edge link in the above method.
[0095] Finally, the angle between the incoming direction and the outgoing direction is calculated, and the turning sign is obtained according to the angle, and the vehicle is guided according to the turning sign.
[0096] It should be noted that the steps of calculating the in-edge direction and the out-edge direction can be serial or parallel, and the order of the steps in the above embodiment can be interchanged without violating the principle of the present invention.
[0097] The embodiment of the present invention also provides a roundabout section guiding device, such as Figure 6 As shown, the device comprises:
[0098] The link division module 601 is used to divide the target road section into a number of end-to-end connected links; the specific content can be found in the corresponding part of the above method embodiment, which will not be repeated here.
[0099] The entry direction calculation module 602 is used to determine whether the road structure of the roundabout entrance is a straight entry. When the road structure of the roundabout entrance is not a straight entry, the entry point is used as the starting point, and the first preset distance is back-traced along the path to obtain the back-tracing end point, and the entry direction is calculated based on the link where the back-tracing end point is located; the specific content refers to the corresponding part of the above method embodiment, which will not be repeated here.
[0100] The outbound edge direction calculation module 603 is used to determine whether the road structure of the roundabout exit is a straight exit. When the road structure of the roundabout exit is not a straight exit, the exit point of the roundabout is taken as the starting point, and the second preset distance is explored along the path to obtain the forward exploration end point, and the outbound edge direction is calculated based on the link where the forward exploration end point is located; the specific content refers to the corresponding part of the above method embodiment, which will not be repeated here.
[0101] The turn sign guidance module 604 is used to output a turn sign to guide the vehicle driving on the roundabout according to the angle between the inbound direction and the outbound direction. For details, please refer to the corresponding part of the above method embodiment, which will not be repeated here.
[0102] The roundabout section guidance device provided by the embodiment of the present invention takes the roundabout entry point as the starting point, back-traces the first preset distance along the path to obtain the back-tracing end point, and calculates the entry direction based on the link where the back-tracing end point is located. Even for some roundabouts with irregular shapes or where the connecting roads are not equal to the fourth and the angles of the entry and exit roads are not perpendicular to the roundabout main body road, the accurate entry direction can be found because the ramp is skipped by back-tracing the first preset distance. Similarly, the accurate exit direction can be obtained, and then the turn sign is obtained according to the angle between the entry direction and the exit direction. The user is accurately guided to drive by the accurate turn sign, thereby solving the problem of inaccurate steering action guidance on the roundabout section.
[0103] The embodiment of the present invention further provides an electronic device, comprising: a memory 702 and a processor 701, the memory 702 and the processor 701 are connected to each other for communication, the memory 702 stores computer instructions, and the processor 701 executes the roundabout section guidance method in the above method embodiment of the present invention by executing the computer instructions, such as Figure 7As shown, it includes a memory 702 and a processor 701, wherein the processor 701 and the memory 702 can be connected via a bus or other means. The processor 701 can be a central processing unit (CPU). The processor 701 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components and other chips, or a combination of the above-mentioned types of chips. The memory 702, as a non-transient computer storage medium, can be used to store non-transient software programs, non-transient computer executable programs and modules, such as the corresponding program instructions / modules in the embodiment of the present invention. The processor 701 executes various functional applications and data processing of the processor 701 by running the non-transient software programs, instructions and modules stored in the memory 702, that is, the roundabout section guidance method in the above method embodiment is realized. The memory 702 may include a program storage area and a data storage area, wherein the program storage area may store an operating device, an application required for at least one function; the data storage area may store data created by the processor 701, etc. In addition, the memory 702 may include a high-speed random access memory 702, and may also include a non-transitory memory 702, such as at least one disk memory 702 piece, a flash memory device, or other non-transitory solid-state memory 702 piece. In some embodiments, the memory 702 may optionally include a memory 702 remotely arranged relative to the processor 701, and these remote memories 702 may be connected to the processor 701 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 a combination thereof. One or more modules are stored in the memory 702, and when executed by the processor 701, the roundabout section guidance method in the above-mentioned method embodiment is executed. The specific details of the above-mentioned electronic device can be understood in accordance with the corresponding relevant descriptions and effects in the above-mentioned method embodiment, and will not be repeated here.
[0104] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the instruction is executed by the processor, the steps of the roundabout section guidance method in the above embodiment are implemented. The storage medium also stores audio and video stream data, feature frame data, interactive request signaling, encrypted data, and preset data size, etc. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memories. Those skilled in the art can understand that all or part of the processes in the above embodiment method can be implemented by instructing the relevant hardware through a computer program, and the computer 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 methods. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (Solid-State Drive, SSD), etc.; the storage medium can also include a combination of the above types of memory.
[0105] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A roundabout section guidance method, characterized in that: include: Divide the target road section into several links connected end to end; Determine whether the road structure of the roundabout entrance is a straight entry. If the road structure of the roundabout entrance is not a straight entry, take the roundabout entry point as the starting point, backtrack along the path for a first preset distance to obtain a backtracking end point, and calculate the entry direction based on the link where the backtracking end point is located; Determine whether the road structure of the roundabout exit is a straight exit. When the road structure of the roundabout exit is not a straight exit, take the point of leaving the roundabout as the starting point, explore the path for a second preset distance to obtain the exploration end point, and calculate the edge direction based on the link where the exploration end point is located, wherein in the cut-in scenario, the path refers to the road portion that turns from the entry edge direction to the roundabout, and in the cut-out scenario, the path refers to the road portion from leaving the roundabout to the exit edge direction; Outputting a turn sign according to the angle between the inbound direction and the outbound direction to guide driving on the roundabout; The calculating the incoming edge direction based on the link where the back-probing endpoint is located includes: Determine whether the distance from the guidance starting point to the roundabout entry point is less than a first preset distance, wherein the guidance starting point is the starting point of this vehicle navigation; If the distance from the guidance starting point to the roundabout entry point is not less than the first preset distance, determining whether the back-probing end point is located at the starting point of the link; If not, then search for the previous shape point on the link where the back-probing end point is located in the opposite direction of entering the roundabout. The inbound direction is the direction of the line connecting the back-probing end point and the previous shape point. For each link, it is abstracted as a combination of straight line segments in the SD map, and the connection points of these line segments are shape points; If yes, the direction of the incoming edge is the direction angle of the head end of the link where the back-probing endpoint is located plus 180°. The direction angle of the head end refers to the angle of the extension line from the east direction, rotating counterclockwise to the head end in the opposite direction of the link; If the distance from the guidance starting point to the roundabout entry point is less than the first preset distance, determining whether the guidance starting point is located at the starting point of the link where it is located; If not, then search for the previous shape point on the link where the guidance starting point is located in the opposite direction of entering the roundabout, and the incoming edge direction is the direction of the line connecting the guidance starting point and the previous shape point; If yes, the incoming edge direction is the head end direction angle of the link where the guidance starting point is located plus 180°; The calculating the edge direction based on the link where the forward probe endpoint is located includes: Determine whether the distance from the guidance end point to the point of leaving the roundabout is less than a second preset distance, the guidance end point being the end point of this vehicle navigation; If the distance from the guidance end point to the roundabout entry point is not less than the second preset distance, determining whether the forward exploration end point is located at the end point of the link where it is located; If not, then search for the next shape point on the link where the forward exploration end point is located in the direction away from the roundabout, and the outbound direction is the direction of the line connecting the forward exploration end point and the next shape point; If yes, the outgoing direction is the end direction angle of the link where the end point of the forward exploration is located. The end direction angle refers to the angle of the extension line from the east direction to the end point in the same direction as the link. If the distance from the guidance end point to the roundabout entry point is less than the second preset distance, determining whether the guidance end point is located at the end point of the link where it is located; If not, then search for the next shape point on the link where the guidance end point is located in the direction away from the roundabout, and the outbound direction is the direction of the line connecting the guidance end point and the next shape point; If so, the outgoing direction is the end direction angle of the link where the guidance end point is located.
2. A roundabout section guidance method according to claim 1, characterized in that: The first preset distance is obtained by the following steps: Calculate the average radius of the roundabout; The first preset distance is obtained by multiplying the average radius of the roundabout by the first preset coefficient; The second preset distance is obtained by the following steps: The second preset distance is obtained by multiplying the average radius of the roundabout by the second preset coefficient.
3. A roundabout section guidance method according to claim 1, characterized in that: The determining whether the road structure of the roundabout entrance is a straight-in includes: Calculate the roundabout angle; Determine whether the roundabout entrance angle is within the range of 90°±first preset angle, when the roundabout entrance angle is within the range of 90°±first preset angle, the road structure of the roundabout entrance is straight-in, otherwise, the road structure of the roundabout entrance is not straight-in; The step of determining whether the road structure of the roundabout exit is a straight exit includes: Calculate the roundabout turning angle; Determine whether the roundabout exit angle is within the interval of 90°±the second preset angle. When the roundabout exit angle is within the interval of 90°±the second preset angle, the road structure of the roundabout exit is a straight exit. Otherwise, the road structure of the roundabout exit is not a straight exit.
4. A roundabout section guidance method according to claim 3, characterized in that: The target road section includes a roundabout section, the link includes an inbound link with an inbound point as an end point and a first roundabout link with an inbound point as a starting point, and an outbound link with an outbound point as a starting point and a second roundabout link with an outbound point as an end point; The roundabout angle is calculated including: Obtaining an entry roundabout turning angle by calculating the angle between the entry edge link and the first roundabout link; The calculating of the roundabout angle comprises: The roundabout exit angle is obtained by calculating the angle between the outgoing edge link and the second roundabout link.
5. A roundabout section guidance method according to claim 4, characterized in that: When the road structure of the roundabout entrance is straight-in, determining the edge-in direction based on the direction of the edge-in link; When the road configuration of the roundabout exit is a straight exit, the exit direction is determined based on the direction of the exit link.
6. A roundabout section guiding device, characterized in that: include: A link division module, used to divide the target road section into a number of links connected end to end; An entry direction calculation module is used to determine whether the road structure of the roundabout entrance is a straight entry. When the road structure of the roundabout entrance is not a straight entry, the entry point is used as the starting point, and a first preset distance is back-traced along the path to obtain a back-tracing end point, and the entry direction is calculated based on the link where the back-tracing end point is located; An outbound direction calculation module is used to determine whether the road structure of the roundabout exit is a straight exit. When the road structure of the roundabout exit is not a straight exit, the exit point of the roundabout is taken as the starting point, and the second preset distance is explored along the path to obtain the forward exploration end point, and the outbound direction is calculated based on the link where the forward exploration end point is located. In the cut-in scenario, the path refers to the road part that turns from the entry direction to the roundabout, and in the cut-out scenario, the path refers to the road part from leaving the roundabout to the exit direction; A turn sign guidance module, used to output a turn sign to guide driving on the roundabout according to the angle between the entry direction and the exit direction; The calculating the incoming edge direction based on the link where the back-probing endpoint is located includes: Determine whether the distance from the guidance starting point to the roundabout entry point is less than a first preset distance, wherein the guidance starting point is the starting point of this vehicle navigation; If the distance from the guidance starting point to the roundabout entry point is not less than the first preset distance, determining whether the back-probing end point is located at the starting point of the link; If not, then search for the previous shape point on the link where the back-probing end point is located in the opposite direction of entering the roundabout. The inbound direction is the direction of the line connecting the back-probing end point and the previous shape point. For each link, it is abstracted as a combination of straight line segments in the SD map, and the connection points of these line segments are shape points; If yes, the direction of the incoming edge is the direction angle of the head end of the link where the back-probing endpoint is located plus 180°. The direction angle of the head end refers to the angle of the extension line from the east direction, rotating counterclockwise to the head end in the opposite direction of the link; If the distance from the guidance starting point to the roundabout entry point is less than the first preset distance, determining whether the guidance starting point is located at the starting point of the link where it is located; If not, then search for the previous shape point on the link where the guidance starting point is located in the opposite direction of entering the roundabout, and the incoming edge direction is the direction of the line connecting the guidance starting point and the previous shape point; If yes, the incoming edge direction is the head end direction angle of the link where the guidance starting point is located plus 180°; The calculating the edge direction based on the link where the forward probe endpoint is located includes: Determine whether the distance from the guidance end point to the point of leaving the roundabout is less than a second preset distance, the guidance end point being the end point of this vehicle navigation; If the distance from the guidance end point to the roundabout entry point is not less than the second preset distance, determining whether the forward exploration end point is located at the end point of the link where it is located; If not, then search for the next shape point on the link where the forward exploration end point is located in the direction away from the roundabout, and the outbound direction is the direction of the line connecting the forward exploration end point and the next shape point; If yes, the outgoing direction is the end direction angle of the link where the end point of the forward exploration is located. The end direction angle refers to the angle of the extension line from the east direction to the end point in the same direction as the link. If the distance from the guidance end point to the roundabout entry point is less than the second preset distance, determining whether the guidance end point is located at the end point of the link where it is located; If not, then search for the next shape point on the link where the guidance end point is located in the direction away from the roundabout, and the outbound direction is the direction of the line connecting the guidance end point and the next shape point; If so, the outgoing direction is the end direction angle of the link where the guidance end point is located.
7. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the roundabout section guidance method as described in any one of claims 1 to 5 by executing the computer instructions.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the roundabout section guidance method as described in any one of claims 1-5.
