Method for controlling an unmanned vehicle
By obtaining the driving route and current driving lane of the unmanned vehicle, it determines the lane change requirement and controls the merge into the target lane, solving the problem of the unmanned vehicle being unable to merge into the target lane and achieving normal driving.
Patent Information
- Application Number
- CN202210177958.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-11
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-01-11
AI Technical Summary
When a driverless vehicle needs to change lanes, it cannot merge into the target lane, especially when there is a non-merging section in the target lane, resulting in the inability to drive normally.
By obtaining the driving route and current driving lane of the driverless vehicle, determine whether there is a lane change requirement, determine the trigger target and target lane for the lane change requirement, obtain the non-merging road section on the target lane, and determine the distance from the preset threshold. If it is less than or equal to the threshold, the merge condition is detected and the merge into the target lane is controlled. If it exceeds the threshold, the distance is obtained repeatedly after the preset time.
When there is a non-merging road section on the target lane, it can merge into the target lane at a certain distance to avoid the situation where unmanned vehicles cannot merge and ensure their normal driving.
Smart Images

Figure CN114802244B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of daily necessities, and in particular to a method for controlling an unmanned vehicle. Background Art
[0002] Unmanned vehicles, also known as fully automated vehicles, are vehicles that can start, drive, and stop without a driver. Its core technologies include high-precision maps, positioning, and perception. The emergence of unmanned vehicles has undoubtedly brought unprecedented experience to people who are not good at driving or do not know how to drive.
[0003] However, the inventor of the present invention found in the process of implementing the present invention that when a current driverless vehicle is driving in a driving lane and needs to change lanes, it often merges into the target lane when it is close to the trigger target for lane change. When there is a non-merge section at the trigger target, the driverless vehicle will not be able to merge into the target lane. Summary of the invention
[0004] In view of the above problems, an embodiment of the present invention provides a method for controlling an unmanned vehicle, which overcomes the above problems or at least partially solves the above problems.
[0005] According to one aspect of an embodiment of the present invention, a method for controlling an unmanned vehicle is provided, the method comprising: obtaining a driving route and a current driving lane of the unmanned vehicle; judging whether the unmanned vehicle has a lane change requirement based on the driving route and the driving lane; if so, determining a trigger target for the lane change requirement; determining a target lane based on the trigger target; obtaining a non-merging section that is continuous and cannot be merged into the target lane from the trigger target; obtaining a distance between the unmanned vehicle and the non-merging section; judging whether the distance is less than or equal to a preset threshold; if the distance is less than or equal to the preset threshold, detecting whether the unmanned vehicle meets the conditions for merging into the target lane; if so, controlling the unmanned vehicle to merge into the target lane; if the distance is greater than the preset threshold, executing the required merge after a preset time. The step of obtaining the distance between the unmanned vehicle and the non-merging section; the step of judging whether the unmanned vehicle has a lane changing demand based on the driving route and the driving lane, further comprises: obtaining the nearest turning intersection where a turn is required from the driving route of the unmanned vehicle; obtaining the turning lane corresponding to the turning intersection; judging whether the turning lane is the same as the driving lane; if not, determining that the unmanned vehicle has a lane changing demand, wherein the triggering target of the lane changing demand is the turning intersection, and the turning lane is the target lane; the step of obtaining a continuous non-merging section from the triggering target that cannot be merged into the target lane, further comprises: identifying whether the target lane is in a congested state; if so, obtaining a continuous congested section of the target lane from the triggering target, and treating the continuous congested section as a non-merging section.
[0006] In an optional manner, the step of obtaining a non-merging section that is continuous and cannot be merged into the target lane from the trigger target further includes: if the target lane is not in a congested state, obtaining a continuous solid line section from the trigger target, and using the continuous solid line section as a non-merging section.
[0007] According to one aspect of an embodiment of the present invention, there is provided a device for controlling an unmanned vehicle, the device comprising: a first acquisition module, for acquiring a driving route and a current driving lane of the unmanned vehicle; a first judgment module, for judging whether the unmanned vehicle has a lane change requirement based on the driving route and the driving lane; a first determination module, for determining a trigger target of the lane change requirement if there is a lane change requirement; a second determination module, for determining a target lane based on the trigger target; a second acquisition module, for acquiring a continuous non-merging section from the trigger target that cannot be merged into the target lane; a third acquisition module, for acquiring a distance between the unmanned vehicle and the non-merging section; a second judgment module, for judging whether the distance is less than or equal to a preset threshold, and if the distance is less than or equal to the preset threshold, executing the first detection module, and if the distance is greater than the preset threshold, executing the third acquisition module after a preset time; the first detection module, for detecting whether the unmanned vehicle whether the unmanned vehicle meets the conditions for merging into the target lane; a first control module, used to control the unmanned vehicle to merge into the target lane if the unmanned vehicle meets the conditions for merging into the target lane; the first judgment module includes: a first acquisition unit, used to acquire the nearest turning intersection where a turn is required from the driving route of the unmanned vehicle; a second acquisition unit, used to acquire the turning lane corresponding to the turning intersection; a first judgment unit, used to determine whether the turning lane is the same as the driving lane; a first determination unit, used to determine that the unmanned vehicle has a lane change demand if the turning lane is not the same as the driving lane, wherein the triggering target of the lane change demand is the turning intersection and the turning lane is the target lane; the second acquisition module includes: a first identification unit, used to identify whether the target lane is in a congested state; a fifth acquisition unit, used to acquire a continuous congested section of the target lane from the triggering target if the target lane is in a congested state, and use the continuous congested section as a non-merging section.
[0008] In an optional manner, the second acquisition module further includes: a sixth acquisition unit, configured to acquire a continuous solid line segment from the triggering target if the target lane is not in a congested state, and use the continuous solid line segment as a non-merging segment.
[0009] According to one aspect of an embodiment of the present invention, an unmanned vehicle 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 as described above.
[0010] The beneficial effect of the embodiment of the present invention is that, different from the existing method of controlling an unmanned vehicle, the method of controlling an unmanned vehicle in the embodiment of the present invention can, when there is a non-merge section on the target lane, merge into the target lane at a certain distance from the non-merge section, thereby avoiding the situation where the unmanned vehicle cannot merge into the target lane, and further ensuring the normal driving of the unmanned vehicle. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] 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.
[0012] Figure 1 is a flow chart of a method for controlling an unmanned vehicle provided by an embodiment of the present invention;
[0013] Figure 2 It is a flowchart of an implementation method for determining whether an unmanned vehicle has a lane change requirement provided by an embodiment of the present invention;
[0014] Figure 3 is a flowchart of another implementation method for determining whether an unmanned vehicle has a lane change requirement provided by an embodiment of the present invention;
[0015] Figure 4 It is a flowchart of an achievable method for obtaining a non-merging road section that is continuous and cannot be merged into a target lane from a triggering target, provided by an embodiment of the present invention;
[0016] Figure 5 It is a flowchart of an achievable method for detecting whether an unmanned vehicle meets the conditions for merging into a target lane provided by an embodiment of the present invention;
[0017] Figure 6 is a flow chart of another method for controlling an unmanned vehicle provided by an embodiment of the present invention;
[0018] Figure 7 is a schematic diagram of a device for controlling an unmanned vehicle provided by an embodiment of the present invention;
[0019] Figure 8 It is a schematic diagram of the hardware structure of an unmanned vehicle provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] 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.
[0021] 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.
[0022] 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.
[0023] Embodiment 1
[0024] See also Figure 1 , Figure 1 1 is a flow chart of a method for controlling an unmanned vehicle provided by an embodiment of the present invention, the method comprising the following steps:
[0025] Step S101, obtaining the driving route and current driving lane of the unmanned vehicle.
[0026] The driving route is a pre-set driving route of the unmanned vehicle from a certain starting point to a certain end point.
[0027] For example, the driving route includes going straight on Road A, going straight to the B turning intersection, then turning right to enter Road C, going straight, going straight to the D turning intersection, then turning left to enter Road E...
[0028] The driving lane is a lane in the route that the driverless vehicle is currently traveling in. The driving lane may be a straight lane, a turning lane for turning left, or a turning lane for turning right.
[0029] Step S102, judging whether the unmanned vehicle has a lane change requirement based on the driving route and driving lane, and if so, executing step S103.
[0030] If the unmanned vehicle does not need to change lanes, it is only necessary to control the unmanned vehicle to travel in the current lane, and after a preset time, execute step S102.
[0031] The lane change requirement refers to the requirement that an unmanned vehicle should change lanes to drive in the correct lane in order to ensure standardized driving during driving.
[0032] For example, an unmanned vehicle is driving straight on the straight lane of Road A. When it needs to turn at the turning intersection B, it needs to merge into the turning lane, and there is a need to change lanes at this time.
[0033] Based on the above situation where the driverless vehicle needs to merge into the turning lane at the turning intersection, please refer to Figure 2 , step S102 includes:
[0034] Step S1021 a, obtaining the nearest turning intersection where a turn is required from the driving route of the unmanned vehicle.
[0035] For example, the driving route includes going straight on Road A, going straight to the B turning intersection, then turning right to enter Road C and going straight, going straight to the D turning intersection, and then turning left to enter Road E... If the driverless vehicle is currently going straight on Road A, the nearest turning intersection is B. If the driverless vehicle is currently going straight on Road C, the nearest turning intersection is D.
[0036] Step S1022a, obtaining the turning lane corresponding to the turning intersection.
[0037] The turning lane corresponding to the turning intersection corresponds to the driving route of "turning". For a single row of turning lanes, for example, at the above-mentioned B turning intersection, if you turn right, the turning lane is the lane farthest from the lane dividing line. For example, at the above-mentioned D turning intersection, if you turn left, the turning lane is the lane closest to the lane dividing line.
[0038] It should be noted that, for double-row turning lanes or multiple-row turning lanes, all turning lanes need to be acquired.
[0039] Step S1023a, determining whether the turning lane is the same as the driving lane, if not, executing step S1024a.
[0040] If the turning lane is the same as the driving lane, it is determined that the driverless vehicle does not need to change lanes.
[0041] For example, if the driving lane of the unmanned vehicle is a straight lane, and the turning lane is different from the driving lane, it is determined that the unmanned vehicle has a need to change lanes.
[0042] For example, the driving lane of the unmanned vehicle is a turning lane for turning left, and the turning lane is a turning lane for turning right, then the turning lane is different from the driving lane, and it is determined that the unmanned vehicle has a need to change lanes.
[0043] For example, the driving lane of the unmanned vehicle is a turning lane for turning right, and the turning lane is a turning lane for turning right, then the turning lane is the same as the driving lane, and it is determined that the unmanned vehicle has no lane change requirement.
[0044] Step S1024a, determining that the unmanned vehicle has a lane change demand, wherein the triggering target of the lane change demand is a turning intersection, and the turning lane is a target lane.
[0045] For another example, an unmanned vehicle is driving straight on the turning lane on Road A. When it passes a traffic light and still needs to drive straight, it needs to merge into the straight lane to continue driving. At this time, there is a need to change lanes.
[0046] Based on the above situation where the driverless vehicle still needs to go straight at the traffic light, please refer to Figure 3 , step S102 includes:
[0047] Step S1021 b: acquiring, according to the driving route, the traffic light closest to the driverless vehicle and the driving direction of the driverless vehicle passing the traffic light.
[0048] The driving direction is a preset driving direction in the driving route, including a straight direction, a left turn direction, and a right turn direction.
[0049] Step S1022b, obtaining the traffic lane corresponding to the driving direction.
[0050] If the driving direction is a straight direction, then the traffic lane is a straight lane.
[0051] If the driving direction is a left turn direction, then the traffic lane is a left turn lane.
[0052] If the driving direction is a right turn direction, then the traffic lane is a turning lane for turning right.
[0053] Step S1023b, determine whether the passing lane is the same as the driving lane, if not, execute step S1024b.
[0054] If the passing lane is the same as the driving lane, it is determined that the unmanned vehicle has no lane change requirement.
[0055] For example, the driving lane of the unmanned vehicle is a straight lane, and the passing lane is a straight lane, and the passing lane is the same as the driving lane, so it is determined that the unmanned vehicle has no lane change requirement.
[0056] For example, the driving lane of the unmanned vehicle is a straight lane, and the passing lane is a turning lane for turning left, then the passing lane is different from the driving lane, and it is determined that the unmanned vehicle has a need to change lanes.
[0057] For example, the driving lane of the unmanned vehicle is a turning lane for turning left, and the passing lane is a turning lane for turning right, then the passing lane is different from the driving lane, and it is determined that the unmanned vehicle has a need to change lanes.
[0058] Step S1024b: determining that the unmanned vehicle has a lane change demand, wherein the triggering target of the lane change demand is a traffic light, and the passing lane is a target lane.
[0059] It is worth noting that, in the case where a turn is required at a traffic light, that is, the case where the vehicle needs to merge into a turning lane at a traffic light, the method of steps S1021 b to S1024 b may also be adopted.
[0060] Step S103, determining a triggering target for the lane change demand.
[0061] The trigger target may be the above-mentioned turning intersection or traffic light, etc.
[0062] Step S104, determining a target lane according to the trigger target.
[0063] When the trigger target is a turning intersection, the target lane is a turning lane; when the trigger target is a traffic light, the target lane is a passing lane.
[0064] Step S105, obtaining a continuous non-merging road section from the triggering target that cannot be merged into the target lane.
[0065] The non-merging road section may be a continuous congested road section or a continuous solid line route.
[0066] In some embodiments, when there is a first non-mergeable zone, a first feasible zone, a second non-mergeable zone, a second feasible zone and a third non-mergeable zone from the starting target, wherein the first non-mergeable zone, the second non-mergeable zone and the third non-mergeable zone refer to a solid line route, or an area where the vehicle is close to the vehicle, and is an area where the distance between the rear of the vehicle in front and the front of the vehicle behind is less than the parking safety distance, for example, an area where the distance between the rear of the vehicle in front and the front of the vehicle behind is less than 3 meters. The method for obtaining a continuous non-mergeable road section that cannot be merged into the target lane from the trigger target includes:
[0067] Obtain the length of the first feasible area and the length of the second feasible area;
[0068] Respectively comparing the length of the first feasible area, the length of the second feasible area, and the first preset threshold;
[0069] When the length of the first feasible area, the length of the second feasible area, and the length of the third feasible area are all less than the first preset threshold, the road section including the first non-mergeable area, the first feasible area, the second non-mergeable area, the second feasible area, and the third non-mergeable area will be used as the non-merge section.
[0070] The first preset distance is a safe distance for merging lanes, for example, 50 meters.
[0071] Through the above method, it is possible to avoid mistaking the first feasible area and the second feasible area whose lengths are smaller than the first preset threshold as sections where lane merging is possible, and to avoid mistaking the first non-mergeable area located in front of the first feasible area as a continuous non-merge section from the trigger target that cannot be merged into the target lane, thereby avoiding the situation where the unmanned vehicle cannot merge into the target lane.
[0072] See also Figure 4 Specifically, step S105 includes:
[0073] Step S1051, identifying whether the target lane is in a congested state, if so, executing step S1052, otherwise executing step S1053.
[0074] When the target lane is congested, you need to merge into the target lane in advance to avoid being unable to merge into the target lane.
[0075] When the target lane is not in a congested state but there is a continuous solid line segment, it is necessary to avoid the continuous solid line segment and merge into the target lane on the dotted line segment.
[0076] One feasible way to identify whether the target lane is in a congested state is to use the number of vehicles passing a certain test point of the target lane within a preset time. For example, if the number of vehicles passing less than 1 per minute is defined as a congested state, then when the number of vehicles passing the test point less than 1 per minute is obtained, the target lane is considered to be in a congested state.
[0077] Another feasible way to identify whether the target lane is in a congested state is the driving speed of the vehicle in the target lane. For example, the driving speed of the vehicle in the target lane is defined as a congested state if it is less than 30 kilometers per hour. Then, when the average driving speed of the vehicles in the target lane is less than 30 kilometers per hour, the target lane is considered to be in a congested state.
[0078] Another feasible way to identify whether the target lane is in a congested state is to receive official reports on the road conditions in the city where the driverless vehicle is located, and then obtain the congestion status of a specific target lane.
[0079] Step S1052, obtaining the continuous congested sections of the target lane from the trigger target, and using the continuous congested sections as non-merging sections.
[0080] It can be understood that the continuous congested road sections are continuous road sections starting from the trigger target.
[0081] Step S1053, obtaining a continuous solid line segment from the trigger target, and taking the continuous solid line segment as a non-merging segment.
[0082] Step S106, obtaining the distance between the unmanned vehicle and the non-merging road section.
[0083] Among them, one feasible way to obtain the distance between the unmanned vehicle and the non-merging road section is to install a binocular camera on the front of the unmanned vehicle, then use the binocular camera to take pictures of the non-merging road section, and finally calculate the distance based on the baseline, focal length and parallax of the binocular camera.
[0084] In some embodiments, the non-merging road section includes a continuous congested road section and a continuous solid road section. After obtaining a continuous non-merging road section that cannot be merged into the target lane from the trigger target, before obtaining the distance of the unmanned vehicle from the non-merging road section, that is, after step S105 and before step S106, the method further includes:
[0085] Determining whether the non-merging road section includes a congested road section, wherein the congested road section is a road section where the distance between the rear end of the front vehicle and the front end of the rear vehicle is less than the parking safety distance;
[0086] If not, it is determined that the non-merging road segment is a continuous solid road segment and the step S106 is executed.
[0087] In some embodiments, there is a target point in front of the trigger target, and after step S105 and before step S106, the method further includes:
[0088] Step S301, detect whether the unmanned vehicle has an optional route from the target point. If the unmanned vehicle does not have an optional route from the target point, execute step S106; if the unmanned vehicle has an optional route from the target point, execute step S302.
[0089] For example, the driving route is to go straight on road b at turning intersection a, and then go straight to the target point turning intersection c after triggering the target turn. The optional route can be to go straight on road d at turning intersection a, and then go straight to the target point turning intersection c after passing turning intersection e.
[0090] The target point is a certain position point in front of the trigger target. For example, the target point may be a turning intersection in front of the trigger target where a turn is required.
[0091] Step S302 , predicting a first driving time for the unmanned vehicle to reach the target point via the driving route, and predicting a second driving time for the unmanned vehicle to reach the target point via the optional route.
[0092] The first driving time and the second driving time may refer to historical data of the vehicle at the current moment.
[0093] Step S303, determining whether the first driving time is less than or equal to the second driving time; if the first driving time is less than or equal to the second driving time, executing step S106.
[0094] When the first driving time is less than or equal to the second driving time, that is, the time taken by the unmanned vehicle to reach the target point via the driving route is less than or equal to the time taken by the unmanned vehicle to reach the target point via the optional route, the driving route is still chosen.
[0095] When the first driving time is greater than the second driving time, an optional route may be chosen to ensure the driving time of the driverless vehicle.
[0096] Step S107, determining whether the distance is less than or equal to a preset threshold, if the distance is less than or equal to the preset threshold, executing step S108, if the distance is greater than the preset threshold, executing step S106 after a preset time.
[0097] If the distance is greater than the preset threshold, the unmanned vehicle only needs to be controlled to travel in the current driving lane, and step S106 is executed after a preset time, and step S108 is not executed until the distance is less than or equal to the preset threshold.
[0098] This method of controlling an unmanned vehicle can prevent the unmanned vehicle from merging into the target lane too early, thereby affecting its freedom of driving, and can also prevent the unmanned vehicle from being unable to merge into the target lane or being difficult to merge into the target lane when approaching a trigger target, thereby preventing the unmanned vehicle from being unable to drive normally.
[0099] It should be noted that, in some embodiments, the preset time is a variable, and the preset time can be calculated based on the distance between the unmanned vehicle and the non-merging road section, the preset threshold, and the driving speed of the unmanned vehicle. For example, the preset time is (the distance between the unmanned vehicle and the non-merging road section - the preset threshold) / (number of times x driving speed), where the number of times is the number of times step S106 is executed when the distance is greater than the preset threshold. By setting the preset time in this way, it can be avoided that when the preset time is a fixed amount, the hours set by the preset time increase the calculation burden of the unmanned vehicle, and when the preset time is set too long, the best time and position for merging into the target lane are missed.
[0100] It should be noted that, in some embodiments, the preset time is a fixed amount, such as 5 seconds, so that the unmanned vehicle does not need to calculate the preset time separately.
[0101] Step S108, detecting whether the unmanned vehicle meets the conditions for merging into the target lane, if so, executing step S109.
[0102] When there is a vehicle parallel to the driverless vehicle in the target lane, and there is a vehicle behind the driverless vehicle in the target lane, it is necessary to comprehensively consider the safety of merging into the target lane. Only when it is safe can you merge into the target lane. For details, please refer to Figure 5 A feasible method for detecting whether the driverless vehicle meets the conditions for merging into the target lane includes the following steps:
[0103] Step S1081, identifying whether the unmanned vehicle is located in a lane adjacent to the target lane, and if so, executing step S1082.
[0104] If it is identified that the unmanned vehicle is not located in a lane adjacent to the target lane, the unmanned vehicle needs to be merged into a lane adjacent to the target lane.
[0105] Step S1082, detect whether there is a parallel vehicle parallel to the unmanned vehicle on the lane, if there is such a parallel vehicle, execute step S1083, otherwise execute step S1084.
[0106] The side-by-side vehicles parallel to the unmanned vehicle include those whose rear end is parallel to the front end of the unmanned vehicle, whose rear end is parallel to the body of the unmanned vehicle, whose front end is parallel to the body of the unmanned vehicle, and whose front end is parallel to the rear end of the unmanned vehicle.
[0107] Step S1083, determining that the unmanned vehicle does not meet the conditions for merging into the target lane.
[0108] If there is a vehicle parallel to the driverless vehicle on the target lane, the driverless vehicle cannot be merged into the target lane at this time.
[0109] Step S1084, detecting whether there is a rear vehicle behind the unmanned vehicle on the target lane, if there is no rear vehicle, executing step S1085, otherwise executing step S1086.
[0110] Step S1085, determining whether the unmanned vehicle meets the conditions for merging into the target lane.
[0111] When there is no vehicle parallel to the unmanned vehicle in the target lane and no vehicle behind the unmanned vehicle is traveling in the target lane, it is considered that it is safe for the unmanned vehicle to merge into the target lane at this time, that is, it is determined that the unmanned vehicle meets the conditions for merging into the target lane.
[0112] Step S1086, obtaining the distance between the rear vehicle and the unmanned vehicle.
[0113] A feasible way to obtain the distance between the rear vehicle and the unmanned vehicle is to install a binocular camera at the rear of the unmanned vehicle, then use the binocular camera to take a picture of the rear vehicle, and finally calculate the distance based on the baseline, focal length and parallax of the binocular camera.
[0114] Another feasible way to obtain the distance between the rear vehicle and the unmanned vehicle is that the unmanned vehicle is equipped with a vehicle-mounted radar, which continuously transmits signals and receives echo signals of objects, and the distance between the object and the vehicle-mounted radar can be measured based on the transmitted signals and the echo signals of the object.
[0115] Step S1087, determine whether the distance is greater than or equal to the preset lane merging safety distance, if so, execute step S1088, otherwise execute step S1089.
[0116] The driverless vehicle can merge into the target lane only when the distance is greater than or equal to the preset merging safety distance.
[0117] Among them, for normally driving vehicles, the preset lane merging safety distance can generally be set to 50 meters.
[0118] In some embodiments, when the distance is greater than or equal to the preset merging safety distance, it is also necessary to detect whether the unmanned vehicle is located in a dotted line segment. If so, execute step S1088 to determine whether the conditions for merging into the target lane are met. If the unmanned vehicle is located in a solid line segment, execute step S1089 to determine whether the conditions for merging into the target lane are met. When it is determined that the conditions for merging into the target lane are not met, the unmanned vehicle continues to drive in the driving lane and executes step S1082 to detect whether there is a parallel vehicle parallel to the unmanned vehicle on the lane. If there is such a parallel vehicle, execute step S1083, otherwise execute step S1084.
[0119] Step S1088, determining that the conditions for merging into the target lane are met.
[0120] When it is determined that the conditions for merging into the target lane are met, the unmanned vehicle may be further controlled to merge into the target lane.
[0121] Step S1089, determining that the conditions for merging into the target lane are not met.
[0122] When it is determined that the conditions for merging into the target lane are not met, the unmanned vehicle cannot be controlled to merge into the target lane.
[0123] Step S109, controlling the unmanned vehicle to merge into the target lane.
[0124] In some embodiments, the step of controlling the unmanned vehicle to merge into the target lane further comprises:
[0125] comparing the distance between the unmanned vehicle and the non-merging road section with a second preset distance, wherein the second preset distance is less than the preset threshold;
[0126] If the distance is less than the second preset threshold, controlling the unmanned vehicle to merge into the target lane at a reduced speed;
[0127] If the distance is greater than or equal to the second preset threshold, the unmanned vehicle is controlled to merge into the target lane at a normal speed.
[0128] The second preset distance may be the sum of the merging safety distance and the vehicle's braking distance. For example, if the merging safety distance is 50 meters and the vehicle's braking distance is 35 meters, then the second preset distance is 85 meters.
[0129] When the distance between the unmanned vehicle and the non-merging road section is less than the second preset threshold, the safety of the unmanned vehicle merging into the target lane can be further ensured by controlling the unmanned vehicle to merge into the target lane at a reduced speed.
[0130] When the distance between the unmanned vehicle and the non-merging road section is greater than or equal to the second preset threshold, the unmanned vehicle is controlled to merge into the target lane at a normal speed. Therefore, when the unmanned vehicle merges, the driving speed of the unmanned vehicle is not affected, and the time it takes for the unmanned vehicle to reach the destination is not affected.
[0131] In the process of controlling the unmanned vehicle to merge into the target lane, the unmanned vehicle may be controlled to light up a corresponding turning light.
[0132] The corresponding turning light means that when turning left, the turning light corresponding to the left turn is turned on, and when turning right, the turning light corresponding to the right turn is turned on.
[0133] In some embodiments, when controlling the unmanned vehicle to merge into the target lane, the speed and distance of the vehicle in front of the unmanned vehicle on the target lane must also be considered. When there is no vehicle in front of the unmanned vehicle, the unmanned vehicle can be controlled to merge into the target lane at a normal speed or at an accelerated speed, so as to avoid affecting the driving of the vehicle behind the unmanned vehicle on the target lane. When the speed of the vehicle in front is low and / or the distance is close, the unmanned vehicle can be controlled to slow down and merge into the target lane, so as to avoid the unmanned vehicle from colliding with the vehicle in front of the unmanned vehicle on the target lane, thereby ensuring the driving safety of the unmanned vehicle.
[0134] Specifically, the step of controlling the unmanned vehicle to merge into the target lane further includes: detecting whether there is a vehicle in front at a preset distance in front of the unmanned vehicle on the driving lane; if there is a vehicle in front, detecting the driving speed of the vehicle in front; according to the driving speed of the vehicle in front, controlling the unmanned vehicle to merge into the driving lane; if there is no vehicle in front, controlling the unmanned vehicle to merge into the driving lane at a normal speed.
[0135] Among them, the step of controlling the unmanned vehicle to merge into the traffic lane according to the driving speed of the vehicle in front specifically includes: controlling the unmanned vehicle to merge into the traffic lane at a speed lower than the driving speed of the vehicle in front.
[0136] Wherein, the preset distance is at least greater than the braking distance of the unmanned vehicle.
[0137] It should be noted that, when there is no vehicle ahead of the unmanned vehicle, the unmanned vehicle can be controlled to merge into the target lane at a normal speed or at an accelerated speed. In an embodiment of the present invention, the driving route and the current driving lane of the unmanned vehicle are obtained; according to the driving route and the driving lane, it is determined whether the unmanned vehicle has a lane change demand; if so, a trigger target of the lane change demand is determined; according to the trigger target, a target lane is determined; a continuous non-merging section that cannot be merged into the target lane from the trigger target is obtained; the distance of the unmanned vehicle from the non-merging section is obtained; it is determined whether the distance is less than or equal to a preset threshold; if the distance is less than or equal to the preset threshold, it is detected whether the unmanned vehicle meets the conditions for merging into the target lane; if so, the unmanned vehicle is controlled to merge into the target lane, and if the distance is greater than the preset threshold, the distance of the unmanned vehicle from the non-merging section is obtained after a preset time, so that when there is a non-merging section on the target lane, the target lane is merged at a certain distance from the non-merging section, thereby avoiding the situation where the unmanned vehicle cannot merge into the target lane, and further ensuring the normal driving of the unmanned vehicle.
[0138] Embodiment 2
[0139] When there is a non-merging section in the target lane, and the distance between the driverless vehicle and the non-merging section is less than or equal to a preset threshold, when it is detected that the driverless vehicle meets the conditions for merging into the target lane, the driverless vehicle is controlled to merge into the target lane. When the driverless vehicle is driving in the target lane, for safety reasons, when there is a merging vehicle in front of the driverless vehicle, the driving of the driverless vehicle needs to be controlled. Figure 6 , Figure 6 FIG. 1 is a flow chart of another method for controlling an unmanned vehicle provided by an embodiment of the present invention. The method comprises the following steps:
[0140] Step S101 ′, obtaining the driving route and current driving lane of the driverless vehicle.
[0141] Step S102', judging whether the unmanned vehicle has a lane change requirement according to the driving route and driving lane, and if so, executing step S103'.
[0142] Step S103 ′, determining a triggering target for the lane change demand.
[0143] Step S104', determining a target lane according to the trigger target.
[0144] Step S105 ′, obtaining a continuous non-merging road section from the triggering target that cannot be merged into the target lane.
[0145] Step S106', obtaining the distance between the unmanned vehicle and the non-merging road section.
[0146] Step S107', determining whether the distance is less than or equal to a preset threshold, if the distance is less than or equal to the preset threshold, executing step S108', if the distance is greater than the preset threshold, executing step S106' after a preset time.
[0147] Step S108', detecting whether the driverless vehicle meets the conditions for merging into the target lane, if so, executing step S109'.
[0148] Step S109', controlling the unmanned vehicle to merge into the target lane.
[0149] Step S110', when the driverless vehicle is driving on the target lane, detecting whether there is a merging vehicle in front of the driverless vehicle, if so, executing step S111'.
[0150] The merging vehicle is a vehicle merging into the target lane from a lane adjacent to the target lane.
[0151] Step S111', identifying whether the distance between the merging vehicle and the unmanned vehicle is less than a preset merging safety distance, if so, executing step S112'.
[0152] For a normally traveling vehicle, generally, the preset lane-merging safety distance may be set to 50 meters, that is, when there is a lane-merging vehicle within 50 meters in front of the unmanned vehicle, step S112' is executed.
[0153] Step S112', controlling the unmanned vehicle to decelerate or brake.
[0154] When the distance between the merging vehicle and the unmanned vehicle is less than a preset merging safety distance, the unmanned vehicle is controlled to decelerate or brake, thereby ensuring that the unmanned vehicle does not collide with the merging vehicle.
[0155] Step S113': in the process of controlling the unmanned vehicle to decelerate or brake, controlling the unmanned vehicle to light up a warning light.
[0156] In the process of controlling the unmanned vehicle to decelerate or brake, controlling the unmanned vehicle to light up a warning light can warn the vehicle behind the unmanned vehicle, thereby preventing the rear vehicle from colliding with the unmanned vehicle.
[0157] In an embodiment of the present invention, the driving route and the current driving lane of the unmanned vehicle are obtained; based on the driving route and the driving lane, it is determined whether the unmanned vehicle has a lane change demand; if so, a trigger target for the lane change demand is determined; based on the trigger target, a target lane is determined; a continuous non-merging section from the trigger target that cannot be merged into the target lane is obtained; the distance of the unmanned vehicle from the non-merging section is obtained; it is determined whether the distance is less than or equal to a preset threshold; if the distance is less than or equal to the preset threshold, it is detected whether the unmanned vehicle meets the conditions for merging into the target lane; if so, the unmanned vehicle is controlled to merge into the target lane; while the unmanned vehicle is driving on the target lane, the unmanned vehicle is detected Whether there is a merging vehicle ahead, wherein the merging vehicle is a vehicle merging into the target lane from a lane adjacent to the target lane; if so, identifying whether the distance between the merging vehicle and the unmanned vehicle is less than a preset merging safety distance; if so, controlling the unmanned vehicle to decelerate or brake; in the process of controlling the unmanned vehicle to decelerate or brake, controlling the unmanned vehicle to turn on a warning light, so that, on the one hand, when there is a non-merging section on the target lane, the unmanned vehicle merges into the target lane at a certain distance from the non-merging section, thereby avoiding the situation where the unmanned vehicle cannot merge into the target lane, thereby ensuring the normal driving of the unmanned vehicle, and on the other hand, when the unmanned vehicle is driving in the target lane, it avoids collision with the merging vehicle in front, and the unmanned vehicle drives safely in the target lane.
[0158] Embodiment 3
[0159] See also Figure 7 , Figure 74 is a schematic diagram of a device for controlling an unmanned vehicle provided by an embodiment of the present invention, the device 400 includes: a first acquisition module 401, used to acquire the driving route and the current driving lane of the unmanned vehicle; a first judgment module 402, used to judge whether the unmanned vehicle has a lane change demand according to the driving route and the driving lane; a first determination module 403, used to determine the triggering target of the lane change demand if there is the lane change demand; a second determination module 404, used to determine the target lane according to the triggering target; a second acquisition module 405, used to acquire a continuous non-merging lane from the triggering target that cannot be merged into the target lane. a third acquisition module 406 for acquiring the distance between the unmanned vehicle and the non-merging road section; a second judgment module 407 for judging whether the distance is less than or equal to a preset threshold value, if the distance is less than or equal to the preset threshold value, executing the first detection module 408; if the distance is greater than the preset threshold value, executing the third acquisition module 406 after a preset time; a first detection module 408 for detecting whether the unmanned vehicle meets the conditions for merging into the target lane; a first control module 409 for controlling the unmanned vehicle to merge into the target lane if the unmanned vehicle meets the conditions for merging into the target lane.
[0160] In some embodiments, the first judgment module 402 includes: a first acquisition unit 4021, used to obtain the nearest turning intersection where a turn is required from the driving route of the unmanned vehicle; a second acquisition unit 4022, used to obtain the turning lane corresponding to the turning intersection; a first judgment unit 4023, used to determine whether the turning lane is the same as the driving lane; a first determination unit 4024, used to determine that the unmanned vehicle has a lane change requirement if the turning lane is not the same as the driving lane, wherein the trigger target of the lane change requirement is the turning intersection, and the turning lane is the target lane.
[0161] In some embodiments, the first judgment module 402 includes: a third acquisition unit 4025, used to obtain the traffic light closest to the unmanned vehicle and the driving direction of the unmanned vehicle passing the traffic light according to the driving route; a fourth acquisition unit 4026, used to obtain the passing lane corresponding to the driving direction; a second judgment unit 4027, used to determine whether the passing lane is the same as the driving lane; a second determination unit 4028, used to determine that the unmanned vehicle has a lane change requirement if the passing lane is different from the driving lane, wherein the trigger target of the lane change requirement is the traffic light, and the passing lane is the target lane.
[0162] In some embodiments, the second acquisition module 405 includes: a first identification unit 4051, used to identify whether the target lane is in a congested state; a fifth acquisition unit 4052, used to obtain the continuous congested section of the target lane from the triggering target if the target lane is in a congested state, and use the continuous congested section as a non-merging section.
[0163] In some embodiments, the second acquisition module 405 further includes: a sixth acquisition unit 4053, which is used to acquire a continuous solid line segment from the triggering target if the target lane is not in a congested state, and use the continuous solid line segment as a non-merging segment.
[0164] In some embodiments, the first detection module 408 includes: a second recognition unit 4081, used to identify whether the unmanned vehicle is located in a lane adjacent to the target lane; a first detection unit 4082, used to detect whether there is a parallel vehicle parallel to the unmanned vehicle on the lane if the unmanned vehicle is located in the lane adjacent to the target lane; a third determination unit 4083, used to determine that the unmanned vehicle does not meet the conditions for merging into the target lane if the parallel vehicle exists; and a second detection unit 4084, used to detect whether there is a rear vehicle located behind the unmanned vehicle on the target lane if the parallel vehicle does not exist. a fourth determining unit 4085, for determining that the unmanned vehicle satisfies the conditions for merging into the target lane if the rear vehicle does not exist; a seventh acquiring unit 4086, for acquiring the distance between the rear vehicle and the unmanned vehicle if the rear vehicle exists; a third judging unit 4087, for judging whether the distance is greater than or equal to a preset merging safety distance; a fifth determining unit 4088, for determining that the conditions for merging into the target lane are satisfied if the distance is greater than or equal to the preset merging safety distance; and a sixth determining unit 4089, for determining that the conditions for merging into the target lane are not satisfied if the distance is less than the preset merging safety distance.
[0165] In some embodiments, the device 400 also includes: a second detection module 410, used to detect whether there is a merging vehicle in front of the unmanned vehicle while the unmanned vehicle is driving on the target lane, wherein the merging vehicle is a vehicle merging into the target lane from a lane adjacent to the target lane; an identification module 411, used to identify whether the distance between the merging vehicle and the unmanned vehicle is less than a preset merging safety distance if there is a merging vehicle in front of the unmanned vehicle; and a second control module 412, used to control the unmanned vehicle to decelerate or brake if the distance between the merging vehicle and the unmanned vehicle is less than the preset merging safety distance.
[0166] In some embodiments, the device 400 further includes: a third control module 413, configured to control the unmanned vehicle to light up a corresponding turning light when controlling the unmanned vehicle to merge into the target lane.
[0167] In an embodiment of the present invention, a driving route and a current driving lane of the unmanned vehicle are obtained through a first acquisition module; a first judgment module 402 is used to judge whether the unmanned vehicle has a lane change demand based on the driving route and the driving lane; if there is a lane change demand, a trigger target of the lane change demand is determined through a first determination module 403; a target lane is determined based on the trigger target through a second determination module 404; a continuous non-merging section from the trigger target that cannot be merged into the target lane is obtained through a second acquisition module 405; a distance between the unmanned vehicle and the non-merging section is obtained through a third acquisition module 406; and a second judgment module 407 is used to judge whether the distance is If the distance is less than or equal to the preset threshold, the first detection module 408 is executed if the distance is less than or equal to the preset threshold; if the distance is greater than the preset threshold, the third acquisition module 406 is executed after a preset time; the first detection module 408 is used to detect whether the unmanned vehicle meets the conditions for merging into the target lane; if the unmanned vehicle meets the conditions for merging into the target lane, the first control module 409 is used to control the unmanned vehicle to merge into the target lane, so that when there is a non-merge section on the target lane, the unmanned vehicle merges into the target lane at a certain distance from the non-merge section, thereby avoiding the situation where the unmanned vehicle cannot merge into the target lane, and further ensuring the normal driving of the unmanned vehicle.
[0168] Embodiment 4
[0169] See also Figure 8 , Figure 8 Schematic diagram of the hardware structure of the unmanned vehicle provided by the embodiment of the present invention. The unmanned vehicle 500 includes: one or more processors 501 and a memory 502, Figure 8 A memory is taken as an example.
[0170] The processor 501 and the memory 502 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.
[0171] The memory 502 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 method for controlling an unmanned vehicle in an embodiment of the present invention (for example, the attached Figure 7The processor 501 executes various functional applications and data processing of the device for controlling the unmanned vehicle by running the non-volatile software programs, instructions and modules stored in the memory 502, that is, the method for controlling the unmanned vehicle in the above method embodiment is implemented.
[0172] The memory 502 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 for at least one function; the data storage area may store data created according to the use of the device for controlling the unmanned vehicle, etc. In addition, the memory 502 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 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the device for controlling the unmanned vehicle 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.
[0173] The one or more modules are stored in the memory 502, and when executed by the one or more processors 501, the method for controlling an unmanned vehicle in any of the above method embodiments is executed.
[0174] 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.
[0175] An embodiment of the present invention provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. The computer-executable instructions are executed by an unmanned vehicle to perform a method for controlling an unmanned vehicle in any of the above method embodiments.
[0176] 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 method for controlling an unmanned vehicle in any of the above method embodiments.
[0177] 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.
[0178] 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.
[0179] 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 method for controlling an unmanned vehicle, characterized in that: The method comprises: Obtaining the driving route and current driving lane of the driverless vehicle; Determining whether the unmanned vehicle needs to change lanes according to the driving route and driving lane; If yes, determining a triggering target of the lane change demand; Determining a target lane according to the trigger target; Acquire a non-merging road section that is continuous and cannot be merged into the target lane from the trigger target; Obtaining the distance between the driverless vehicle and the non-merging road section; Determining whether the distance is less than or equal to a preset threshold; If the distance is less than or equal to the preset threshold, detecting whether the driverless vehicle meets the condition of merging into the target lane; If satisfied, controlling the unmanned vehicle to merge into the target lane; If the distance is greater than the preset threshold, the step of obtaining the distance between the driverless vehicle and the non-merging road section is performed after a preset time; The step of judging whether the unmanned vehicle has a lane change requirement according to the driving route and the driving lane further comprises: According to the driving route, obtaining the traffic light closest to the driverless vehicle and the driving direction of the driverless vehicle passing the traffic light; Obtaining the traffic lane corresponding to the driving direction; Determining whether the passing lane is the same as the driving lane; If they are not the same, it is determined that the unmanned vehicle has a lane change demand, wherein the triggering target of the lane change demand is a traffic light, and the passing lane is a target lane.
2. The method according to claim 1, characterized in that The step of acquiring a non-merging road section that is continuous and cannot be merged into the target lane from the trigger target further includes: Identify whether the target lane is in a congested state; If yes, then obtaining the continuous congested road section of the target lane from the trigger target, and using the continuous congested road section as the non-merging road section; If not, a continuous solid line segment from the trigger target is obtained, and the continuous solid line segment is used as a non-merging segment.
3. The method according to claim 1, characterized in that The non-merging road section includes a continuous congested road section and a continuous solid road section. After the step of acquiring a continuous non-merging road section from the triggering target that cannot be merged into the target lane, and before the step of acquiring the distance between the unmanned vehicle and the non-merging road section, the method further includes: Determining whether the non-merging road section includes a congested road section, wherein the congested road section is a road section where the distance between the rear end of the front vehicle and the front end of the rear vehicle is less than the parking safety distance; If not, it is determined that the non-merging road segment is a continuous solid road segment and the step of obtaining the distance between the unmanned vehicle and the non-merging road segment is performed.
4. The method according to claim 1, characterized in that: There is a target point in front of the trigger target. After the step of acquiring a non-merging road section that is continuous and cannot be merged into the target lane from the trigger target, and before the step of acquiring the distance between the driverless vehicle and the non-merging road section, the method further includes: Detecting whether the unmanned vehicle has an optional route from the target point; If there is no optional route between the unmanned vehicle and the target point, executing the step of obtaining the distance between the unmanned vehicle and the non-merging road section; If the unmanned vehicle has an optional route to the target point, predicting a first driving time for the unmanned vehicle to reach the target point via the driving route, and predicting a second driving time for the unmanned vehicle to reach the target point via the optional route; Determine whether the first driving time is less than or equal to the second driving time. If the first driving time is less than or equal to the second driving time, execute the step of obtaining the distance between the unmanned vehicle and the non-merging road section.
