Vehicle obstacle avoidance control method, storage medium, electronic equipment and vehicle

By acquiring the front and rear images of the vehicle and using the artificial potential field method and bionic algorithm, the problem of high cost and complexity of vehicle obstacle avoidance control in the existing technology is solved, and low-cost, low-complexity obstacle recognition and obstacle avoidance control are achieved. Improved calculation efficiency and path planning accuracy.

CN118534889APending Publication Date: 2024-08-23BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410454265.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing vehicle obstacle avoidance control solutions rely on expensive sensors and complex stereo vision technology, resulting in high costs and computational complexity, making it difficult to achieve efficient obstacle recognition and obstacle avoidance control.

Method used

By acquiring images at two sampling moments before and after the vehicle, the visual sensor is used to determine the distance between the vehicle and the obstacle, and the obstacle around trajectory is determined based on the artificial potential field method and bionic algorithm, and the vehicle is controlled to avoid the obstacle and run towards the target point, reducing hardware and Calculate the cost.

Benefits of technology

It achieves low-cost, low-complexity identification of obstacles and controls vehicles to avoid obstacles, improves computing efficiency, reduces hardware costs, and at the same time improves the accuracy of obstacle recognition and the planning efficiency of obstacle avoidance paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534889A
    Figure CN118534889A
Patent Text Reader

Abstract

The invention relates to the technical field of traffic, in particular to a vehicle obstacle avoidance control method, a storage medium, electronic equipment and a vehicle. The method comprises the steps that the distance between a vehicle and a front obstacle is obtained, and the distance between the vehicle and the front obstacle is determined based on a first image in front of the vehicle at the previous sampling moment and a second image in front of the vehicle at the current sampling moment; determining an obstacle avoiding track according to the distance between the vehicle and the front obstacle; and controlling the vehicle to bypass the obstacle to run towards the target point according to the obstacle avoidance track.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of traffic technology, and more specifically, to a vehicle obstacle avoidance control method, a storage medium, an electronic device and a vehicle. Background Art

[0002] The intelligent assisted driving function of automobiles brings great convenience to people and has become an important reference factor for people to buy cars. As an important part of intelligent assisted driving, the autonomous obstacle avoidance function accurately identifies the location of obstacles, determines the obstacle avoidance trajectory, and controls the vehicle to autonomously avoid obstacles according to the obstacle avoidance trajectory. It is of great significance to achieve safe obstacle avoidance for cars, safe driving for users, and reduce traffic accidents. It can also improve customers' stickiness and acceptance of product functions.

[0003] However, most existing vehicle obstacle avoidance control solutions use relatively expensive sensors such as lidar to locate obstacles or use stereo vision technology to detect obstacles, which has the problems of high cost and complex calculation. Summary of the invention

[0004] The embodiments of the present application provide a vehicle obstacle avoidance control method, a storage medium, an electronic device, and a vehicle, which can improve computing efficiency and reduce costs.

[0005] In a first aspect, this embodiment provides a vehicle obstacle avoidance control method, including:

[0006] Acquire the distance between the vehicle and the obstacle ahead, wherein the distance between the vehicle and the obstacle ahead is determined based on a first image ahead of the vehicle at a previous sampling moment and a second image ahead of the vehicle at a current sampling moment;

[0007] Determining an obstacle avoidance trajectory according to the distance between the vehicle and the obstacle ahead;

[0008] According to the obstacle avoidance trajectory, the vehicle is controlled to avoid the obstacle and run towards the target point.

[0009] Optionally, the distance between the vehicle and the obstacle ahead is determined based on a first image ahead of the vehicle at a previous sampling moment and a second image ahead of the vehicle at a current sampling moment, including:

[0010] The distance between the vehicle and the obstacle ahead is determined according to the object image height of the obstacle in the first image, the object image height of the obstacle in the second image, the first vehicle speed corresponding to the first image, and the second vehicle speed corresponding to the second image.

[0011] Optionally, the first vehicle speed is a first component speed of the vehicle running speed on a set coordinate axis when the first image is collected, and the second vehicle speed is a second component speed of the vehicle running speed on a set coordinate axis when the second image is collected.

[0012] Optionally, determining the obstacle avoidance trajectory according to the distance between the vehicle and the obstacle ahead includes:

[0013] Determine, according to the distance between the vehicle and the obstacle ahead and the distance between the vehicle and the target point, a resultant force for guiding the vehicle to bypass the obstacle and move toward the target point;

[0014] According to the resultant force, an obstacle avoidance trajectory is determined.

[0015] Optionally, determining an obstacle avoidance trajectory according to the resultant force includes:

[0016] When the magnitude of the resultant force is not equal to 0, determining a first obstacle circumvention trajectory according to the magnitude and direction of the resultant force;

[0017] The step of controlling the vehicle to bypass the obstacle and move toward the target point according to the obstacle bypassing trajectory includes:

[0018] According to the first obstacle avoidance trajectory, the vehicle is controlled to avoid the obstacle and move towards the target point.

[0019] Optionally, determining an obstacle avoidance trajectory according to the resultant force includes:

[0020] When the magnitude of the resultant force is equal to 0 and the vehicle has not reached the target point, determining a second obstacle avoidance trajectory, wherein the second obstacle avoidance trajectory is different from the first obstacle avoidance trajectory;

[0021] The step of controlling the vehicle to bypass the obstacle and move toward the target point according to the obstacle bypassing trajectory includes:

[0022] According to the second obstacle avoidance trajectory, the vehicle is controlled to avoid the obstacle and move towards the target point.

[0023] Optionally, determining the second obstacle avoidance trajectory includes:

[0024] Based on the bionic algorithm, the second obstacle avoidance trajectory is determined.

[0025] Optionally, determining the resultant force for guiding the vehicle to bypass the obstacle and move toward the target point according to the distance between the vehicle and the obstacle ahead and the distance between the vehicle and the target point includes:

[0026] Establishing a gravitational potential field according to the distance between the vehicle and the target point;

[0027] Establishing a repulsive potential field according to the distance between the vehicle and the obstacle and the distance between the vehicle and the target point;

[0028] The resultant force is determined according to the gravitational potential field and the repulsive potential field.

[0029] Optionally, controlling the vehicle to bypass the obstacle and run toward the target point according to the obstacle bypassing trajectory includes:

[0030] Determine a lateral deviation and a heading deviation according to the obstacle avoidance trajectory and the vehicle state information, wherein the lateral deviation is the distance between the current position of the vehicle and the target vehicle position corresponding to the next sampling moment in the obstacle avoidance trajectory, and the heading deviation is determined based on the angle between the current heading of the vehicle and the tangent at the target vehicle position corresponding to the obstacle avoidance trajectory;

[0031] The vehicle operation is controlled according to the lateral deviation and the heading deviation.

[0032] Optionally, controlling the vehicle operation according to the lateral deviation and the heading deviation includes:

[0033] Determining a target deflection angle and a target deflection direction of a steering wheel of the vehicle according to the lateral deviation and the heading deviation;

[0034] The vehicle steering wheel deflection is controlled according to the target deflection angle and the target deflection direction.

[0035] Optionally, determining a target deflection angle of a steering wheel of the vehicle according to the lateral deviation and the heading deviation includes:

[0036] Determining, according to the lateral deviation and the heading deviation, a deflection angle at which the steering wheel of the vehicle needs to be deflected when reaching the target vehicle position;

[0037] In the case where the deflection angle required to be deflected is greater than or equal to a preset deflection angle, the preset deflection angle is used as the target deflection angle; or,

[0038] In a case where the deflection angle required to be deflected is smaller than a preset deflection angle, the deflection angle required to be deflected is used as the target deflection angle.

[0039] Optionally, controlling the deflection of the steering wheel of the vehicle according to the target deflection angle and the target deflection direction includes:

[0040] Determining a required deflection angle increment of the vehicle steering wheel according to a current deflection angle and a current deflection direction of the vehicle steering wheel and the target deflection angle and the target deflection direction;

[0041] In the case where the required deflection angle increment is greater than or equal to a preset deflection angle increment, the preset deflection angle increment is used as a target deflection angle increment; or,

[0042] In a case where the required deflection angle increment is less than a preset deflection angle increment, taking the required deflection angle increment as a target deflection angle increment;

[0043] The vehicle steering wheel deflection is controlled according to the target deflection angle increment and the target deflection direction.

[0044] In a second aspect, this embodiment provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method as described in any one of the first aspects of the present application.

[0045] In a third aspect, this embodiment provides an electronic device, comprising a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute a method as described in any one of the first aspects of the present application.

[0046] In a fourth aspect, this embodiment provides a vehicle, comprising the electronic device as described in the third aspect of the present application.

[0047] The embodiment of the present application determines the distance between the vehicle and the obstacle in front through the images at the two sampling moments before and after the vehicle, and determines the obstacle avoidance trajectory based on the distance between the vehicle and the obstacle in front, so as to control the vehicle to bypass the obstacle and run to the target point according to the obstacle avoidance trajectory. Since the images at the two sampling moments before and after the present application can be collected by a visual sensor, the hardware cost is low. In addition, the obstacle avoidance control method of the embodiment of the present application determines the position of the obstacle based on image acquisition, and does not need to detect the obstacle through stereoscopic vision detection technology, which can reduce the computational complexity and thus reduce the computational cost.

[0048] Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the application.

[0050] Figure 1 A schematic flowchart of a vehicle obstacle avoidance control method provided in an embodiment of the present application is shown.

[0051] Figure 2 A schematic diagram showing the geometric relationship between the distances between a vehicle and an obstacle corresponding to two consecutive sampling moments provided in an embodiment of the present application is shown.

[0052] Figure 3 A schematic diagram of a vehicle heading angle provided in an embodiment of the present application is shown.

[0053] Figure 4 A schematic diagram of lateral deviation and heading deviation provided in an embodiment of the present application is shown.

[0054] Figure 5 A schematic flowchart of a vehicle obstacle avoidance control method provided in another embodiment of the present application is shown.

[0055] Figure 6 A schematic flowchart of a vehicle obstacle avoidance control method provided in another embodiment of the present application is shown.

[0056] Figure 7 A block diagram of an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION

[0057] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present application.

[0058] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.

[0059] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0060] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0061] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0062] The intelligent assisted driving function of automobiles brings great convenience to people and has become an important reference factor for people to buy cars. As an important part of intelligent assisted driving, the autonomous obstacle avoidance function accurately identifies the location of obstacles, determines the obstacle avoidance trajectory, and controls the vehicle to autonomously avoid obstacles according to the obstacle avoidance trajectory. It is of great significance to achieve safe obstacle avoidance for cars, safe driving for users, and reduce traffic accidents. It can also improve customers' stickiness and acceptance of product functions.

[0063] However, most existing vehicle obstacle avoidance control solutions use relatively expensive sensors such as lidar to locate obstacles or use stereo vision technology to detect obstacles, which has the problems of high cost and complex calculation.

[0064] Based on this, the embodiment of the present application provides a vehicle obstacle avoidance control method. Figure 1 As shown, the method may include steps S110 to S130.

[0065] Step S110, obtaining the distance between the vehicle and the obstacle in front, wherein the distance between the vehicle and the obstacle in front is determined based on a first image in front of the vehicle at a previous sampling moment and a second image in front of the vehicle at a current sampling moment.

[0066] In this embodiment, the first image is a frame image of the front of the vehicle at the previous sampling moment, and the second image is a frame image of the front of the vehicle at the current sampling moment.

[0067] In this embodiment, a frame image in front of the vehicle can be obtained by a visual sensor. Preferably, the visual sensor can be a monocular visual sensor. The hardware cost of the monocular visual sensor is low. The frame image collected by the monocular visual sensor is rich in information.

[0068] In this embodiment, the monocular vision sensor can be installed on the vehicle at a certain angle and position. As an example, it can be installed at the center of the rear axle of the vehicle. This embodiment does not specifically limit the installation position of the monocular vision sensor.

[0069] In this embodiment, the monocular vision sensor can be calibrated in advance to ensure that the data obtained by the monocular vision sensor can correspond one-to-one with the real object. As an example, the Zhang Zhengyou calibration method can be used as the calibration principle. The parameter matrix of the camera's internal and external parameters, as well as the corresponding relationship between the imaging plane pixel and the length, etc. can be obtained in advance.

[0070] In this embodiment, a calibrated camera with a monocular vision sensor is used to capture multiple frames of images, and the sampling time interval of the frame images is recorded, and the previous and next frame images are input into a deep learning network model (such as a YOLOv5 deep learning network model).

[0071] The YOLOv5 deep learning network model has a good balance between reasoning accuracy and computational efficiency. The network model first slices the input frame image to turn it into a suitable feature map; then divides the feature map into n small grids, regresses multiple candidate boxes and their confidences at each grid, and outputs the probability of each category in the grid. Through the non-maximum suppression principle, the target box that best fits the image target is selected. The predicted object category is determined by ranking the probability value. Finally, the network model outputs the category of each target object in the frame image and the 2D size box of the object. Through the above method, the obstacle in front of the vehicle can be determined.

[0072] After determining the obstacle in front of the vehicle and before step S110, the method provided in the embodiment of the present application may further include step S100, determining the distance between the vehicle and the obstacle in front based on the first image in front of the vehicle at the previous sampling moment and the second image in front of the vehicle at the current sampling moment.

[0073] In some embodiments, step S100 may include: determining the distance between the vehicle and the obstacle ahead based on the object image height of the obstacle in the first image, the object image height of the obstacle in the second image, the first vehicle speed corresponding to the first image, and the second vehicle speed corresponding to the second image.

[0074] In this embodiment, the first vehicle speed may be a first component speed of the vehicle running speed on a set coordinate axis when the first image is captured, and the second vehicle speed may be a second component speed of the vehicle running speed on a set coordinate axis when the second image is captured.

[0075] The set coordinate axis may be a coordinate axis in the geodetic coordinate system or the world coordinate system, or a coordinate axis in other coordinate systems, which is not specifically limited here.

[0076] A geometric relationship may be established between the image information corresponding to the first image and the image information corresponding to the second image, so as to determine the relationship between the distance between the vehicle and the obstacle ahead at the previous sampling moment and the distance between the vehicle and the obstacle ahead at the current sampling moment through the geometric relationship. The distance between the vehicle and the obstacle ahead at the current sampling moment is determined through the distance relationship in combination with the difference between the distance between the vehicle and the obstacle ahead at the previous sampling moment and the distance between the vehicle and the obstacle ahead at the current sampling moment.

[0077] As an example, Figure 2 As shown in the figure, H is the actual height of the obstacle, h is the height of the obstacle on the imaging plane of the frame image (i.e., the height of the obstacle image in the frame image), o is the position of the visual sensor lens, f is the focal length of the camera with the visual sensor, and d is the distance between the obstacle and the plane where the visual sensor is located. Among them, subscript 1 corresponds to the previous sampling moment, and subscript 2 corresponds to the current sampling moment. According to the geometric relationship between the obstacle imaging in the previous and next frames, the following formula can be obtained:

[0078]

[0079]

[0080] Since the actual height of the obstacle will not change, the internal parameters of the same camera will remain unchanged after calibration, and h1 and h2 on the imaging plane can be solved by the deep learning model. Therefore, formulas (1) and (2) can be combined to obtain:

[0081]

[0082] From the geometric relationship diagram, it can be seen that the change in vehicle position causes o2 to shift relative to o1, and the length of d1 is the sum of the lengths of d2 and o1b.

[0083] For ease of calculation, Figure 3As shown, this embodiment takes the geodetic coordinates or world coordinates as the reference, and pre-sets an initial x-axis. The heading angle of the vehicle at position o1 is α, and the heading angle of the vehicle at position o2 is β. The heading angle can be understood as the angle between the vehicle speed direction and the x-axis. From the schematic diagram of the vehicle kinematic relationship, it can be seen that the component of the speed v1 of the vehicle at position o1 on the x-axis is:

[0084] v 1x =v1cosα (4)

[0085] The x-axis component of the vehicle's velocity v2 at position o2 is:

[0086] v 2x =v2cosβ (5)

[0087] Since the time interval between the previous and next frame images (i.e., the frame image sampling time interval) t is very small, it can be considered that the vehicle is moving with uniform acceleration, and the line segment o1b can be expressed as:

[0088]

[0089] Combining formulas (3) and (6), we can get the actual distance between the vehicle and the obstacle at the current sampling time:

[0090]

[0091] This embodiment can determine the distance between the vehicle and the obstacle ahead through the geometric relationship between the images at two sampling moments ahead of the vehicle and the vehicle speeds corresponding to the two images without complicated calculation processes.

[0092] Step S120, determining an obstacle avoidance trajectory according to the distance between the vehicle and the obstacle ahead.

[0093] In this embodiment, the obstacle avoidance trajectory can be determined by the artificial potential field method. As an example, the resultant force that guides the vehicle to avoid the obstacle and move toward the target point is determined based on the distance between the vehicle and the obstacle in front, and the obstacle avoidance trajectory is determined based on the resultant force. Under the guidance of the artificial potential field, the controlled vehicle can quickly plan the optimal path and avoid the complex calculation caused by the random diffusion search for the optimal solution.

[0094] This embodiment can output the relative position of the obstacle and the vehicle in real time, and can iterate the potential force according to the relative position. The deviation between the direction of the potential force and the current heading of the vehicle is the heading deviation, and the relative distance between the heading trajectory preview point and the current position of the vehicle is the lateral deviation. The relative position of the vehicle and the obstacle circumvention trajectory can be determined by the positive or negative value of the deviation, and the steering wheel deflection angle is controlled to deflect in the direction of eliminating the deviation until the deviation is 0. At this time, if the vehicle reaches the target point, the vehicle control is completed, thereby realizing the tracking control of the vehicle on the obstacle circumvention trajectory. At the same time, the robustness against dynamic obstacles can be greatly improved.

[0095] Step S130, according to the obstacle avoidance trajectory, control the vehicle to avoid obstacles and move towards the target point.

[0096] In this embodiment, a preset route is set for the vehicle in advance, including a starting point and an end point, wherein the target point is the end point of the preset route.

[0097] In this embodiment, the vehicle operation can be controlled by controlling the deflection angle and deflection direction of the vehicle steering wheel deflection, or by controlling the deflection angle increment and deflection direction of the vehicle steering wheel deflection, or by controlling the vehicle running speed, or by controlling the vehicle running speed increment.

[0098] The embodiment of the present application determines the distance between the vehicle and the obstacle in front through the images at the two sampling moments before and after the vehicle, and determines the obstacle avoidance trajectory based on the distance between the vehicle and the obstacle in front, so as to control the vehicle to bypass the obstacle and run to the target point according to the obstacle avoidance trajectory. Since the images at the two sampling moments before and after the present application can be collected by a visual sensor, the hardware cost is low. In addition, the obstacle avoidance control method of the embodiment of the present application determines the position of the obstacle based on image acquisition, and does not need to detect the obstacle through stereoscopic vision detection technology, which can reduce the computational complexity and thus reduce the computational cost.

[0099] Considering that when using this solution to determine the obstacle avoidance trajectory, when the target point and the obstacle are close together, the gravitational force is small and the repulsive force is large, which may cause the vehicle to be unable to approach the target point. Based on this, in some embodiments, such as Figure 5 As shown, step S120 may include steps S121 to S122.

[0100] Step S121, determining the resultant force for guiding the vehicle to bypass the obstacle and move toward the target point according to the distance between the vehicle and the obstacle ahead and the distance between the vehicle and the target point.

[0101] In this embodiment, the target point is used as the gravitational source, and the obstacle is used as the repulsive source to establish the gravitational potential field and the repulsive potential field.

[0102] In this embodiment, step S121 may include steps 210 to S230.

[0103] Step S210: Establish a gravitational potential field U according to the distance between the vehicle and the target point. att .

[0104]

[0105] Where n is the proportionality coefficient, p a is the distance between the vehicle and the target point, and m is the gravitational potential field factor.

[0106] Step S220, establishing a repulsive potential field according to the distance between the vehicle and the obstacle and the distance between the vehicle and the target point.

[0107] According to the distance between the vehicle and the obstacle and the distance between the vehicle and the target point, a repulsive potential field is established as Urep.

[0108]

[0109] Among them, p g is the distance between the vehicle and the obstacle, p a is the distance between the vehicle and the target point, k is the repulsion coefficient, and ρ is the influence distance of the set obstacle.

[0110] Step S230, determining the resultant force according to the gravitational potential field and the repulsive potential field.

[0111] Gravity is the derivative of the gravitational potential field, representing the fastest direction of change of the gravitational potential field. Based on formula (8), gravity can be obtained as:

[0112]

[0113] The derivation of the repulsive force is:

[0114]

[0115] The resultant force obtained by the potential field function using the gradient solution method can be expressed as:

[0116]

[0117] Where i is the number of obstacles that enter the impact range. The direction of the resultant force F is the direction in which the vehicle avoids obstacles and moves toward the target point. The resultant force drives the vehicle to complete the obstacle avoidance action.

[0118] In this embodiment, the relative distance between the vehicle and the target point is introduced into the repulsive potential field function. Thus, when the target point is close to the obstacle, the attraction is small and the repulsion is large, which will not affect the vehicle's approach to the target point.

[0119] Step S122, determining the obstacle circumvention trajectory according to the resultant force.

[0120] In this embodiment, the methods in the prior art that can determine the path according to the combined force are applicable to the embodiments of the present application. No limitation is made here. As an example, the obstacle avoidance trajectory can be determined according to the combined force through the PID preview algorithm.

[0121] The embodiment of the present application determines the obstacle avoidance trajectory based on the distance between the vehicle and the obstacle and the distance between the vehicle and the target point, thereby avoiding the risk that the vehicle cannot approach the target point.

[0122] Considering that there is a risk of falling into local optimum when using the artificial potential field method to determine the path, that is, when the resultant force vector calculated by the artificial potential field method is 0, the position of the vehicle may not be the target point, that is, when the vehicle has not reached the target point, the resultant force vector may have been 0. In this way, it will be impossible to drive the vehicle to plan a path to reach the target point.

[0123] Based on this, in some embodiments, step S122 may include steps S240 to S250.

[0124] Step S240: When the magnitude of the resultant force is not equal to 0, determine a first obstacle circumvention trajectory according to the magnitude and direction of the resultant force.

[0125] In one example, when the magnitude of the resultant force is not equal to 0, the first obstacle circumvention trajectory may be determined based on a gradient descent algorithm according to the magnitude and direction of the resultant force.

[0126] In this embodiment, step S130 includes: controlling the vehicle to bypass the obstacle and run towards the target point according to the first obstacle bypassing trajectory.

[0127] Step S250: When the resultant force is equal to 0 and the vehicle has not reached the target point, a second obstacle avoidance trajectory is determined, wherein the second obstacle avoidance trajectory is different from the first obstacle avoidance trajectory.

[0128] In this embodiment, when the resultant force is equal to 0 and the vehicle has not reached the target point, the second obstacle avoidance trajectory can be randomly determined. In one example, the second obstacle avoidance trajectory can be determined based on a bionic algorithm (butterfly foraging algorithm).

[0129] The following is a brief introduction to the steps of the bionic algorithm.

[0130] 1. Establish confidence in a feasible solution:

[0131] f i =cI a (13)

[0132] Among them, c is the constant factor, confidence strength I and power exponent a.

[0133] 2. Establish a global path search:

[0134]

[0135] in, represents the i-th solution vector in the t-th iteration, G * is the optimal solution at the current moment, The solution vector at the next moment is obtained, and R is a random number between 0 and 1. In this embodiment, the optimal solution at the current moment is the position of the vehicle at the current sampling moment.

[0136] 3. Establish a local path search:

[0137]

[0138] in, They represent the kth and jth feasible solutions randomly selected from the solution space in t iterations respectively.

[0139] The probability value R is set, and the global search and local search are switched randomly to determine the obstacle avoidance trajectory, so that the distance between the vehicle and the obstacle changes until the resultant force is not equal to 0, and the obstacle avoidance trajectory planning "jumps out" of the local optimal trap. After "jumping out" of the local optimal trap, the gradient descent algorithm is selected again to calculate the obstacle avoidance trajectory.

[0140] The embodiment of the present application improves the calculation efficiency of the obstacle avoidance trajectory by balancing the randomness and determinism of the planning algorithm, saving a lot of time cost, and avoiding the problem of falling into the local optimum.

[0141] In this embodiment, step S130 includes: controlling the vehicle to bypass the obstacle and run towards the target point according to the second obstacle bypassing trajectory.

[0142] It can be understood that after the vehicle is controlled to run according to the second obstacle avoidance trajectory, the distance between the vehicle and the obstacle and the distance between the vehicle and the target point change, so that the resultant force guiding the vehicle to run around the obstacle changes. When the resultant force is not 0, the first obstacle avoidance trajectory is determined according to the magnitude and direction of the resultant force, and the vehicle is controlled to run according to the first obstacle avoidance trajectory.

[0143] When a local optimum problem occurs, the embodiment of the present application temporarily cancels the method of solving the planning path by the gradient descent algorithm, and uses the random search method of the bionic (butterfly foraging) algorithm to select a better solution to eliminate the wrong solution that falls into the local minimum. For the local optimum problem, a strategy of increasing the randomness of the algorithm is adopted to make the planning algorithm "jump out" of the local optimum.

[0144] In order to make the entire vehicle control process more in line with the driver's driving habits and ensure the safety and smoothness of the vehicle control process, in some embodiments, step S130 may include steps S260 to S270.

[0145] Step S260, determining the lateral deviation and the heading deviation according to the obstacle avoidance trajectory and the vehicle status information.

[0146] In this embodiment, the vehicle state information may include the vehicle's speed information, position information, deflection information, etc. The vehicle state information is the current vehicle state information.

[0147] In this embodiment, the lateral deviation is the distance between the current position of the vehicle and the target vehicle position corresponding to the next sampling moment in the obstacle avoidance trajectory. The heading deviation is determined based on the angle between the current heading of the vehicle and the tangent at the target vehicle position corresponding to the obstacle avoidance trajectory.

[0148] As an example, Figure 4 As shown in the figure, taking the case where the visual sensor of a vehicle is located at the center of the rear axle of the vehicle as an example, the lateral deviation can be the center of the rear axle of the vehicle (x cr ,y cr ) and its target vehicle position S(x) at the next sampling moment on the obstacle avoidance trajectory S ,y S ). If the vehicle is on the right side of the obstacle avoidance track, the lateral error is calculated as:

[0149]

[0150] Among them, x cr is the x-axis coordinate of the current vehicle position in the plane coordinates. cr is the coordinate of the y-axis corresponding to the current vehicle position in the plane coordinates. S is the x-axis coordinate corresponding to the target vehicle position S. S is the coordinate in the y-axis direction corresponding to the target vehicle position S.

[0151] The definition of heading deviation requires first finding the target vehicle position S(x S ,y S ). The heading deviation calculation formula is determined based on the absolute angle difference between the vehicle's heading and the tangent. The heading deviation unit is degree. If the clockwise direction is positive, the calculation formula for the heading deviation ф is:

[0152] Φ=57.3×(θ-θ road ) (18)

[0153] Among them, θ roadis the heading angle corresponding to the tangent line at the target position S, in radians. θ is the heading angle of the current vehicle, in radians.

[0154] In this embodiment, the lateral deviation and the heading deviation are determined according to the obstacle avoidance trajectory and the vehicle state information.

[0155] Step S270, controlling the vehicle operation according to the lateral deviation and the heading deviation.

[0156] The embodiment of the present application achieves the purpose of controlling the vehicle to bypass obstacles and run to the target point through deviation constraints of lateral deviation and heading deviation, which is more in line with the driver's driving habits and can ensure the safety and smoothness of the vehicle control process.

[0157] In some embodiments, the control of vehicle operation can be achieved by controlling the deflection angle and deflection direction of the vehicle steering wheel deflection. The deflection angle of the steering wheel deflection is the deflection angle relative to the positive direction of the vehicle steering wheel. The positive direction of the vehicle steering wheel is a reference value of 0 degrees. The deflection direction is the left and right directions relative to the positive direction of the vehicle steering wheel. As an example, the vehicle steering wheel deflection angle is 10 degrees and the deflection direction is left.

[0158] In this embodiment, Figure 6 As shown, step S270 may include steps S300 to S310.

[0159] Step S300, determining a target deflection angle and a target deflection direction of the vehicle steering wheel deflection according to the lateral deviation and the heading deviation.

[0160] In this embodiment, the target deflection angle is the deflection angle and deflection direction of the steering wheel of the vehicle that is actually controlled to be deflected at the next sampling moment.

[0161] In this embodiment, step S300 may include steps S400 to S420.

[0162] Step S400, determining the deflection angle that the steering wheel needs to deflect when the vehicle reaches the target vehicle position according to the lateral deviation and the heading deviation.

[0163] In this embodiment, the target vehicle position can be understood as the vehicle position corresponding to the next sampling time in the obstacle avoidance trajectory.

[0164] It is understandable that the deflection angle that the steering wheel needs to deflect and the target deflection angle may be the same or different. In the actual vehicle control process, the deflection angle that the steering wheel needs to deflect may be relatively large. Based on the vehicle's own performance and passenger comfort, sometimes it is impossible or impossible to directly control the vehicle based on the calculated deflection angle that the steering wheel needs to deflect.

[0165] In this embodiment, a preset deflection angle may be pre-set based on the vehicle's own performance and / or the passenger's comfort level. The preset deflection angle may be a limit value determined based on the vehicle's own performance, or a value less than the limit value determined based on the passenger's comfort level.

[0166] Step S410: When the deflection angle to be deflected is greater than or equal to the preset deflection angle, the preset deflection angle is used as the target deflection angle.

[0167] Step S420: When the deflection angle required to be deflected is less than the preset deflection angle, the deflection angle required to be deflected is used as the target deflection angle.

[0168] Step S310, controlling the vehicle steering wheel to deflect according to the target deflection angle and the target deflection direction.

[0169] This embodiment determines the target deflection angle and the target deflection direction according to the lateral deviation and the heading deviation, and controls the target deflection direction of the vehicle to deflect the target deflection angle.

[0170] In some embodiments, controlling the operation of the vehicle may also be achieved by controlling the deflection angle increment and deflection direction of the vehicle steering wheel. In this embodiment, step S310 may include steps S311 to S314.

[0171] Step S311, determining the deflection angle increment required for the vehicle steering wheel according to the current deflection angle and current deflection direction of the vehicle steering wheel and the target deflection angle and target deflection direction.

[0172] In this embodiment, the deflection angle increment is the difference between the deflection angle of the vehicle at the current moment and the target deflection angle at the next sampling moment. As an example, it is stipulated that when deflecting to the left, the deflection angle is negative. When deflecting to the right, the deflection angle is positive. The deflection angle at the current moment is 10 degrees. The target deflection angle at the next sampling moment is -10 degrees, then the deflection angle increment is -20.

[0173] In the actual vehicle control process, the deflection angle increment that the steering wheel needs to deflect may be relatively large. Considering the vehicle's own performance and passenger comfort, it is sometimes impossible or impossible to control the vehicle directly based on the calculated deflection angle increment that the steering wheel needs to deflect.

[0174] In this embodiment, a preset deflection angle increment may be pre-set based on the vehicle's own performance and / or the passenger's comfort. The preset deflection angle increment may be a limit value determined according to the vehicle's own performance, or a value less than the limit value determined according to the passenger's comfort.

[0175] Step S312: When the required deflection angle increment is greater than or equal to the preset deflection angle increment, the preset deflection angle increment is used as the target deflection angle increment.

[0176] Step S313: When the required deflection angle increment is less than the preset deflection angle increment, the required deflection angle increment is used as the target deflection angle increment.

[0177] Step S314, controlling the vehicle steering wheel deflection according to the target deflection angle increment and the target deflection direction.

[0178] In some embodiments, controlling the operation of the vehicle may be achieved in combination with controlling the speed of the vehicle. In this embodiment, step S270 may include steps S320 to S330.

[0179] Step S320, determining the target running speed of the vehicle according to the lateral deviation and the heading deviation.

[0180] In this embodiment, the target running speed is the actual speed at which the vehicle is controlled to run at the next sampling moment.

[0181] In this embodiment, step S320 may include steps S430 to S450.

[0182] Step S430, determining the running speed that the vehicle needs to reach when it reaches the target vehicle position according to the lateral deviation and the heading deviation.

[0183] Step S440: If the required running speed is greater than or equal to the preset running speed, the preset running speed is used as the target running speed.

[0184] Step S450: When the required running speed is lower than the preset running speed, the required running speed is used as the target running speed.

[0185] Step S330, controlling the vehicle operation according to the target operating speed.

[0186] In some embodiments, controlling the operation of the vehicle can also be achieved by combining controlling the speed increment of the vehicle. In this embodiment, the speed increment is the difference between the current operating speed of the vehicle and the target operating speed at the next sampling moment.

[0187] In this embodiment, a preset running speed increment may be pre-set based on the vehicle's own performance and / or the passenger's comfort level. The preset running speed increment may be a limit value determined based on the vehicle's own performance, or a value less than the limit value determined based on the passenger's comfort level.

[0188] In this embodiment, step S330 may include steps S331 to S334.

[0189] Step S331, determining the required running speed increment of the vehicle according to the current running speed of the vehicle and the target running speed.

[0190] Step S332: If the required running speed increment is greater than or equal to the preset running speed increment, the preset running speed increment is used as the target running speed increment.

[0191] Step S333: When the required running speed increment is less than the preset running speed increment, the required running speed increment is used as the target running speed increment.

[0192] Step S334, controlling the vehicle operation according to the target operating speed increment.

[0193] This embodiment adds multiple constraints such as deflection angle, deflection angle increment, speed, speed increment, etc., so that the vehicle control process is more in line with the driver's driving habits, thereby ensuring the safety and smoothness of the vehicle control process.

[0194] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in any one of the above embodiments is implemented.

[0195] The present application also provides an electronic device. Figure 7 As shown, the electronic device 100 includes a memory 110 and a processor 120, wherein the memory 110 is used to store computer instructions, and the processor 120 is used to call the computer instructions from the memory 110 to execute the method as described in any one of the above embodiments.

[0196] The embodiment of the present application further provides a vehicle, comprising the electronic device 100 as described in the above embodiment.

[0197] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0198] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0199] The present application may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.

[0200] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0201] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0202] The computer program instructions for performing the operation of the present application can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of a computer-readable program instruction to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit can execute a computer-readable program instruction, thereby realizing various aspects of the present application.

[0203] Various aspects of the present application are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0204] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0205] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0206] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0207] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present application is defined by the appended claims.

Claims

1. A vehicle obstacle avoidance control method, characterized in that: include: Acquire the distance between the vehicle and the obstacle ahead, wherein the distance between the vehicle and the obstacle ahead is determined based on a first image ahead of the vehicle at a previous sampling moment and a second image ahead of the vehicle at a current sampling moment; Determining an obstacle avoidance trajectory according to the distance between the vehicle and the obstacle ahead; According to the obstacle avoidance trajectory, the vehicle is controlled to avoid the obstacle and run towards the target point.

2. The method according to claim 1, characterized in that The distance between the vehicle and the obstacle ahead is determined based on a first image ahead of the vehicle at a previous sampling moment and a second image ahead of the vehicle at a current sampling moment, including: The distance between the vehicle and the obstacle ahead is determined according to the object image height of the obstacle in the first image, the object image height of the obstacle in the second image, the first vehicle speed corresponding to the first image, and the second vehicle speed corresponding to the second image.

3. The method according to claim 2, characterized in that The first vehicle speed is a first component speed of the vehicle running speed on a set coordinate axis when the first image is collected, and the second vehicle speed is a second component speed of the vehicle running speed on a set coordinate axis when the second image is collected.

4. The method according to claim 1, characterized in that: The determining of the obstacle avoidance trajectory according to the distance between the vehicle and the obstacle ahead includes: Determine, according to the distance between the vehicle and the obstacle ahead and the distance between the vehicle and the target point, a resultant force for guiding the vehicle to bypass the obstacle and move toward the target point; According to the resultant force, an obstacle avoidance trajectory is determined.

5. The method according to claim 4, characterized in that Determining an obstacle avoidance trajectory according to the resultant force includes: When the magnitude of the resultant force is not equal to 0, determining a first obstacle circumvention trajectory according to the magnitude and direction of the resultant force; The step of controlling the vehicle to bypass the obstacle and move toward the target point according to the obstacle bypassing trajectory includes: According to the first obstacle avoidance trajectory, the vehicle is controlled to avoid the obstacle and move towards the target point.

6. The method according to claim 4, characterized in that Determining an obstacle avoidance trajectory according to the resultant force includes: When the magnitude of the resultant force is equal to 0 and the vehicle has not reached the target point, determining a second obstacle avoidance trajectory; The step of controlling the vehicle to bypass the obstacle and move toward the target point according to the obstacle bypassing trajectory includes: According to the second obstacle avoidance trajectory, the vehicle is controlled to avoid the obstacle and move towards the target point.

7. The method according to claim 6, wherein determining the second obstacle avoidance trajectory comprises: Based on the bionic algorithm, the second obstacle avoidance trajectory is determined.

8. The method according to claim 4, characterized in that The determining, based on the distance between the vehicle and the obstacle ahead and the distance between the vehicle and the target point, a resultant force for guiding the vehicle to bypass the obstacle and move toward the target point comprises: Establishing a gravitational potential field according to the distance between the vehicle and the target point; Establishing a repulsive potential field according to the distance between the vehicle and the obstacle and the distance between the vehicle and the target point; The resultant force is determined according to the gravitational potential field and the repulsive potential field.

9. The method according to claim 1, characterized in that: The step of controlling the vehicle to bypass the obstacle and move toward the target point according to the obstacle bypassing trajectory includes: Determine a lateral deviation and a heading deviation according to the obstacle avoidance trajectory and the vehicle state information, wherein the lateral deviation is the distance between the current position of the vehicle and the target vehicle position corresponding to the next sampling moment in the obstacle avoidance trajectory, and the heading deviation is determined based on the angle between the current heading of the vehicle and the tangent at the target vehicle position corresponding to the obstacle avoidance trajectory; The vehicle operation is controlled according to the lateral deviation and the heading deviation.

10. The method according to claim 9, characterized in that The step of controlling the vehicle operation according to the lateral deviation and the heading deviation comprises: Determining a target deflection angle and a target deflection direction of a steering wheel of the vehicle according to the lateral deviation and the heading deviation; The vehicle steering wheel deflection is controlled according to the target deflection angle and the target deflection direction.

11. The method according to claim 10, characterized in that The step of determining a target deflection angle of a steering wheel of a vehicle according to the lateral deviation and the heading deviation comprises: Determining, according to the lateral deviation and the heading deviation, a deflection angle at which the steering wheel of the vehicle needs to be deflected when reaching the target vehicle position; In the case where the deflection angle required to be deflected is greater than or equal to a preset deflection angle, the preset deflection angle is used as the target deflection angle; or, In a case where the deflection angle required to be deflected is smaller than a preset deflection angle, the deflection angle required to be deflected is used as the target deflection angle.

12. The method according to claim 10, characterized in that The step of controlling the steering wheel deflection of the vehicle according to the target deflection angle and the target deflection direction comprises: Determining a required deflection angle increment of the vehicle steering wheel according to a current deflection angle and a current deflection direction of the vehicle steering wheel and the target deflection angle and the target deflection direction; In the case where the required deflection angle increment is greater than or equal to a preset deflection angle increment, the preset deflection angle increment is used as a target deflection angle increment; or, In a case where the required deflection angle increment is less than a preset deflection angle increment, taking the required deflection angle increment as a target deflection angle increment; The vehicle steering wheel deflection is controlled according to the target deflection angle increment and the target deflection direction.

13. A storage medium, characterized in that: A computer program is stored thereon, which implements the method according to any one of claims 1 to 12 when executed by a processor.

14. An electronic device, characterized in that: including memory and processor, The memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the method according to any one of claims 1 to 12.

15. A vehicle, characterized in that: Comprising the electronic device as claimed in claim 14.