Path tracking method, device, equipment, medium and program

By obtaining and analyzing the vehicle position and way point coordinates, it can determine and correct the path deviation of the autonomous vehicle, solving the problem of way point judgment during driving and parking, and improving driving efficiency and comfort.

CN118534894APending Publication Date: 2024-08-23HUIZHOU DESAY SV AUTOMOTIVE
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

During the driving and parking process of an autonomous vehicle, existing technology is difficult to effectively determine whether the vehicle has passed the way point and deviated from the planned path, affecting driving efficiency and comfort.

Method used

By obtaining the position coordinates of the current vehicle and the coordinates of the waypoints in the planned path, it is determined whether the vehicle has passed the target point and the offset angle is calculated. If it has not passed and there is an offset angle, the steering wheel angle is determined based on the offset angle to control Vehicle path tracking.

Benefits of technology

It realizes the tracking point judgment and position correction of the vehicle, improving the efficiency and accuracy of the parking process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534894A
    Figure CN118534894A
Patent Text Reader

Abstract

The invention discloses a path tracking method, device and equipment, a medium and a program. The method comprises the steps that the position coordinate of a current vehicle and the position coordinate of each path point in a planned path are obtained, and the planned path comprises at least two path points; according to the position coordinate of the current vehicle and the position coordinate of each path point, determining whether the current vehicle has passed a target point, and determining a deviation angle between the current vehicle and the planned path; and if it is determined that the current vehicle does not pass through the target point and the deviation angle between the current vehicle and the planned path is not zero, determining a steering wheel rotation angle according to the deviation angle so as to control the current vehicle to perform path tracking according to the steering wheel rotation angle. According to the technical scheme of the invention, tracking point judgment and position correction of the vehicle can be completed, so that the whole parking process is completed, and the tracking efficiency is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of vehicle technology, and in particular, to a path tracking method, device, equipment, medium and program. Background Art

[0002] In recent years, with the development of automobile intelligence, autonomous driving domain controllers have also been widely used. During the driving and parking process, the vehicle path tracking problem is involved, which affects the effectiveness and comfort of vehicle driving.

[0003] After the vehicle starts the parking function, the planning algorithm will generate the path points according to the actual vehicle surrounding perception environment. After the tracking algorithm obtains the relevant path, the vehicle tracking control is started. In this process, the driving trajectory generation has determined the path points of the road, but in the trajectory tracking process, it is necessary to determine whether these path points have been passed. At the same time, it is also necessary to determine whether the parking process has stopped or which part of the parking process has been carried out. It is necessary to determine whether the relevant points of parking and the relevant position have been passed. In addition, it is necessary to determine whether the vehicle has deviated from the planned path and how to correct it after deviation. Summary of the invention

[0004] The embodiments of the present invention provide a path tracking method, device, equipment, medium and program to achieve the tracking passing point judgment and position correction of a vehicle.

[0005] According to one aspect of the present invention, there is provided a path tracking method, comprising:

[0006] Acquire the position coordinates of the current vehicle and the position coordinates of each path point in the planned path, wherein the planned path includes at least two path points;

[0007] Determine whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each path point;

[0008] If it is determined that the current vehicle has not passed the target point, and the offset angle between the current vehicle and the planned path is not zero, a steering wheel angle is determined according to the offset angle, so as to control the current vehicle to perform path tracking according to the steering wheel angle.

[0009] According to another aspect of the present invention, there is provided a path tracking device, the device comprising:

[0010] An acquisition module, used to acquire the position coordinates of the current vehicle and the position coordinates of each path point in the planned path, wherein the planned path includes at least two path points;

[0011] A first determination module, configured to determine whether the current vehicle has passed a target point and an offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each of the path points;

[0012] The second determination module is used to determine the steering wheel angle according to the offset angle if it is determined that the current vehicle has not passed the target point and the offset angle between the current vehicle and the planned path is not zero, so as to control the current vehicle to perform path tracking according to the steering wheel angle.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the path tracking method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the path tracking method described in any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, an embodiment of the present invention further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the path tracking method described in any embodiment of the present invention is implemented.

[0019] The embodiment of the present invention obtains the position coordinates of the current vehicle and the position coordinates of each path point in the planned path, wherein the planned path includes at least two path points, and determines whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each path point. If it is determined that the current vehicle has not passed the target point and the offset angle between the current vehicle and the planned path is not zero, the steering wheel angle is determined according to the offset angle, so as to control the current vehicle to track the path according to the steering wheel angle. Through the technical solution of the present invention, it is possible to complete the tracking point judgment and position correction of the vehicle, thereby completing the entire parking process and making the tracking efficiency more efficient.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a flow chart of a path tracking method in an embodiment of the present invention;

[0023] Figure 2 is a schematic diagram of a method for determining a passing point based on parking path tracking in an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a method for correcting the parking path position according to an embodiment of the present invention;

[0025] Figure 4 is a schematic structural diagram of a path tracking device in an embodiment of the present invention;

[0026] Figure 5 It is a schematic diagram of the structure of an electronic device for implementing the path tracking method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0030] Embodiment 1

[0031] Figure 1 is a flow chart of a path tracking method in an embodiment of the present invention. This embodiment is applicable to the case where an autonomous driving vehicle performs path tracking during driving and parking. The method can be executed by a path tracking device in an embodiment of the present invention. The device can be implemented in software and / or hardware, such as Figure 1 As shown, the method specifically comprises the following steps:

[0032] S101, obtaining the position coordinates of the current vehicle and the position coordinates of each path point in the planned path.

[0033] The planned path includes at least two path points.

[0034] In this embodiment, the current vehicle may be, for example, an autonomous driving vehicle that is performing a path tracking task. After the vehicle starts the parking function, the planning algorithm generates a planned path based on the actual vehicle surrounding perception environment. The planned path includes a number of path points that need to be tracked. After the tracking algorithm obtains the relevant planned path, it starts the vehicle for tracking control.

[0035] Specifically, the current vehicle has real-time position coordinates (specifically, the position coordinates of the center of the rear axle of the current vehicle can be used as the position coordinates of the current vehicle), and each path point in the planned path also has position coordinates. The position coordinates of the current vehicle and the position coordinates of each path point in the planned path can be in the same coordinate system. In this embodiment, the position coordinates can be two-dimensional coordinates.

[0036] S102: Determine whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each path point.

[0037] It should be noted that the target point can be a path point in the planned path, which is used to determine whether the current vehicle has passed through it. For example, there are path points 1, 2, 3, 4 and 5 in a planned path, and the current vehicle is traveling from path point 1 to path point 5. It is known that the current vehicle has passed path point 1 and path point 2, and it is determined whether the current vehicle has passed path point 3. At this time, path point 3 is the target point.

[0038] Among them, the offset angle can be the angle at which the current vehicle deviates from the planned path, and specifically can be the angle formed by the line formed by the current vehicle and the path point just passed, based on the current vehicle's driving direction, and the line formed by the target point and the path point just passed.

[0039] Specifically, according to the position coordinates of the current vehicle and the position coordinates of each path point, it is determined whether the current vehicle has passed the target point, and the offset angle between the current vehicle and the planned path is calculated.

[0040] S103: If it is determined that the current vehicle has not passed the target point, and the offset angle between the current vehicle and the planned path is not zero, determine the steering wheel angle according to the offset angle, so as to control the current vehicle to perform path tracking according to the steering wheel angle.

[0041] The steering wheel angle may be the rotation angle of the steering wheel of the current vehicle, that is, the front wheel steering angle of the current vehicle.

[0042] Specifically, if it is determined that the current vehicle has not passed the target point, and the offset angle between the current vehicle and the planned path is not zero, that is, the current vehicle has deviated from the planned path, the steering wheel angle is determined according to the offset angle to control the current vehicle to perform path tracking according to the steering wheel angle.

[0043] The embodiment of the present invention obtains the position coordinates of the current vehicle and the position coordinates of each path point in the planned path, wherein the planned path includes at least two path points, and determines whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each path point. If it is determined that the current vehicle has not passed the target point and the offset angle between the current vehicle and the planned path is not zero, the steering wheel angle is determined according to the offset angle, so as to control the current vehicle to track the path according to the steering wheel angle. Through the technical solution of the present invention, it is possible to complete the tracking point judgment and position correction of the vehicle, thereby completing the entire parking process and making the tracking efficiency more efficient.

[0044] Optionally, determining a steering wheel angle according to the offset angle includes:

[0045] Get the target distance between the current vehicle and the target point and the vehicle wheelbase corresponding to the current vehicle.

[0046] The target distance may be the distance between the current vehicle and the target point, which may be calculated based on the position coordinates of the current vehicle and the position coordinates of the target point, and may be represented by Ld in this embodiment. The vehicle wheelbase may be the distance between the front wheel and the rear wheel of the current vehicle, which may be obtained based on the attribute information of the current vehicle, and may be represented by L in this embodiment.

[0047] The target steering wheel angle is determined based on the offset angle, the target distance, and the vehicle wheelbase.

[0048] Specifically, according to the kinematic formula and the geometric relationship between the rear wheel of the vehicle and the path point, the formula for the front wheel turning angle can be derived:

[0049]

[0050] Where λ represents the target steering wheel angle, L represents the vehicle wheelbase, Ld represents the target distance, and θ represents the offset angle.

[0051] Optionally, based on the position coordinates of the current vehicle and the position coordinates of each path point, determining whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path includes:

[0052] According to the position coordinates of the current vehicle and the position coordinates of each path point, the previous path point corresponding to the current vehicle is determined.

[0053] The previous path point is the path point that the current vehicle has passed when traveling along the planned path and is closest to the current vehicle.

[0054] For example, there are path point 1, path point 2, path point 3, path point 4 and path point 5 in a planned path. The current vehicle is traveling from path point 1 to path point 5. It is known that the current vehicle has passed path point 1 and path point 2, and path point 2 is closer to the current vehicle than path point 1. At this time, path point 2 is the previous path point.

[0055] The target point corresponding to the current vehicle is determined based on the previous path point corresponding to the current vehicle and the position coordinates of each path point.

[0056] The target point is the path point in the planned path that is located in front of the current vehicle's driving direction and is closest to the previous path point.

[0057] For example, there are path point 1, path point 2, path point 3, path point 4 and path point 5 in a planned path. The current vehicle is traveling from path point 1 to path point 5. It is known that the current vehicle has passed path point 1 and path point 2, and path point 2 is closer to the current vehicle than path point 1. At this time, path point 2 is the previous path point, and path point 3 is the target point.

[0058] According to the position coordinates of the current vehicle, the position coordinates of the previous path point and the position coordinates of the target point, it is determined whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path.

[0059] Specifically, based on the position coordinates of the current vehicle, the position coordinates of the previous path point and the position coordinates of the target point, determine whether the current vehicle has passed the target point, whether there is an offset between the current vehicle and the planned path, and the offset angle between the current vehicle and the planned path.

[0060] Optionally, determining whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path is performed based on the position coordinates of the current vehicle, the position coordinates of the previous path point, and the position coordinates of the target point, including:

[0061] A first vector is determined according to the position coordinates of the current vehicle and the position coordinates of the previous path point.

[0062] The first vector may be a vector composed of two position coordinates of the current vehicle and the previous path point, and the direction of the vector may be from the position of the previous path point to the position of the current vehicle.

[0063] Specifically, the first vector is composed of the position coordinates of the current vehicle and the position coordinates of the previous path point.

[0064] The second vector is determined according to the position coordinates of the previous path point and the position coordinates of the target point.

[0065] The second vector may be a vector composed of two position coordinates of the previous path point and the target point, and the direction of the vector may be from the position of the previous path point to the position of the target point.

[0066] Specifically, the second vector is composed of the position coordinates of the previous path point and the position coordinates of the target point.

[0067] It is determined whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the first vector and the second vector.

[0068] Specifically, the length of the projection of the first vector on the second vector can be compared with the length of the second vector to determine whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path.

[0069] Optionally, determining whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the first vector and the second vector includes:

[0070] The coordinates corresponding to the first vector and the modulus of the first vector are determined according to the position coordinates of the current vehicle and the position coordinates of the previous path point.

[0071] Specifically, the coordinates corresponding to the first vector and the modulus of the first vector can be calculated by subtracting the position coordinates of the previous path point from the position coordinates of the current vehicle.

[0072] The coordinates corresponding to the second vector and the modulus of the second vector are determined according to the position coordinates of the previous path point and the position coordinates of the target point.

[0073] Specifically, the coordinates corresponding to the second vector and the modulus of the second vector can be calculated by subtracting the position coordinates of the target point from the position coordinates of the previous path point.

[0074] An offset angle between the current vehicle and the planned path is determined according to the coordinates corresponding to the first vector, the modulus of the first vector, the coordinates corresponding to the second vector, and the modulus of the second vector.

[0075] It can be known that the convolution of two vectors is equal to the product of the modulus of the two vectors and the cosine of the angle between the two vectors, that is, the convolution of the first vector and the second vector is equal to the product of the modulus of the first vector and the modulus of the second vector and the cosine of the offset angle between the current vehicle and the planned path. Based on this relationship, the convolution result of the first vector and the second vector can be obtained according to the coordinates corresponding to the first vector and the coordinates corresponding to the second vector, and then the offset angle between the current vehicle and the planned path can be finally determined by combining the modulus of the first vector and the modulus of the second vector.

[0076] The projection length of the first vector on the second vector is determined according to the magnitude of the first vector and the offset angle.

[0077] It should be noted that the projection length may be the distance between the projection point of the current vehicle position on the planned path and the previous path point.

[0078] Specifically, the projection point of the current vehicle position on the second vector formed by the target point and the previous path point is obtained, and the projection length of the projection point from the previous path point is obtained.

[0079] If the projection length is greater than the modulus of the second vector, it is determined that the current vehicle has passed the target point.

[0080] Specifically, if the projection length is less than the modulus of the second vector, it is determined that the current vehicle has not passed the target point; if the projection length is greater than the modulus of the second vector, it can be determined that the current vehicle has passed the target point, that is, the current vehicle has completed tracking of the current point and can continue preview tracking of the next path point.

[0081] Optionally, the current vehicle is controlled to perform path tracking according to the steering wheel angle, including:

[0082] The current vehicle is controlled to drive towards the target point according to the steering wheel angle. After the current vehicle passes the target point, the target point is used as the new previous path point, and the operation of obtaining the position coordinates of the current vehicle and the position coordinates of each path point in the planned path is returned until the current vehicle completes the path tracking task of the planned path.

[0083] As an exemplary description of an embodiment of the present invention, Figure 2 FIG. 1 is a schematic diagram of a method for determining a parking path passing point based on a parking path tracking method in an embodiment of the present invention. Figure 2 As shown, let P1 be the previous path point, with position coordinates (X1, Y1), P2 be the target point, with position coordinates (X2, Y2), how to judge whether the current vehicle has passed the target point P2? Let P0 be the center point of the rear axle of the current vehicle, P0 represents the position of the current vehicle, with position coordinates (X0, Y0), θ is the offset angle, and P3 is the projection point of the current vehicle on the second vector. To judge whether the current vehicle has passed the target point P2, we can apply whether the projection length of the first vector composed of P1 and P0 in the direction of the second vector composed of P2 and P1 is greater than the length of the modulus of the second vector to make a judgment. If it is greater than the modulus of the second vector, it can be judged that the current vehicle has passed the target point P2, then the control amount of the next point is given to the vehicle for control, and so on, to complete the tracking of the entire planned path.

[0084] The specific derivation method is described as follows:

[0085] Second vector The coordinates of can be expressed as (ΔX, ΔY), where ΔX = (X2-X1), ΔY = (Y2-Y1), that is, the second vector It can be expressed as: Similarly, the first vector It can be expressed as:

[0086]

[0087] Let P3 be the projection point. The projection length of the first vector In the second vector The projection length on is:

[0088]

[0089] and

[0090] at this time

[0091] therefore,

[0092] Therefore,

[0093] In summary, judging the first vector In the second vector Is the projection greater than If the modulus is greater than , the point has been tracked, that is, It is determined that the vehicle has completed tracking of the current point and can continue preview tracking of the next point.

[0094] Based on the above method of judging the passing point, how to complete the heading correction is to correct the heading by controlling the front wheel steering angle.

[0095] Figure 3 is a schematic diagram of a method for correcting the parking path position according to an embodiment of the present invention. Figure 3 As shown, the wheelbase of the current vehicle is L, the target distance between the current vehicle and the target point P2 is Ld, and the offset angle is θ. According to the kinematic formula and the geometric relationship between the rear wheel of the vehicle and the path point, the formula for the front wheel turning angle can be derived:

[0096]

[0097] Among them, λ represents the front wheel steering angle, that is, the target steering wheel angle, L represents the vehicle wheelbase, Ld represents the target distance, and θ represents the offset angle.

[0098] The above solutions are combined to complete the vehicle tracking point judgment and position correction.

[0099] The technical solution of the embodiment of the present invention uses a new method for determining whether path tracking is completed. Regardless of driving or parking, the path points in the planned path are determined by applying the vector method to determine whether the vehicle has passed the relevant points of driving and parking and the relevant position conditions, thereby completing the entire driving and parking process and making tracking more efficient and effective.

[0100] Embodiment 2

[0101] Figure 4is a schematic diagram of the structure of a path tracking device in an embodiment of the present invention. This embodiment is applicable to the case where an autonomous driving vehicle performs path tracking during driving and parking. The device can be implemented in software and / or hardware. The device can be integrated in any device that provides a path tracking function, such as Figure 4 As shown, the path tracking device specifically includes: an acquisition module 201 , a first determination module 202 and a second determination module 203 .

[0102] The acquisition module 201 is used to acquire the position coordinates of the current vehicle and the position coordinates of each path point in the planned path, wherein the planned path includes at least two path points;

[0103] A first determination module 202, configured to determine whether the current vehicle has passed a target point and an offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each of the path points;

[0104] The second determination module 203 is used to determine the steering wheel angle according to the offset angle if it is determined that the current vehicle has not passed the target point and the offset angle between the current vehicle and the planned path is not zero, so as to control the current vehicle to perform path tracking according to the steering wheel angle.

[0105] Optionally, the second determining module 203 includes:

[0106] An acquisition unit, used for acquiring a target distance between the current vehicle and the target point and a vehicle wheelbase corresponding to the current vehicle;

[0107] The first determining unit is used to determine a target steering wheel angle according to the offset angle, the target distance and the vehicle wheelbase.

[0108] Optionally, the first determining module 202 includes:

[0109] A second determining unit is used to determine a previous path point corresponding to the current vehicle according to the position coordinates of the current vehicle and the position coordinates of each of the path points, wherein the previous path point is a path point that is closest to the current vehicle and has been passed by the current vehicle when traveling along the planned path;

[0110] A third determining unit is used to determine a target point corresponding to the current vehicle according to the position coordinates of the previous path point corresponding to the current vehicle and each of the path points, wherein the target point is a path point in the planned path that is located in front of the driving direction of the current vehicle and is closest to the previous path point;

[0111] The fourth determination unit is used to determine whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path based on the position coordinates of the current vehicle, the position coordinates of the previous path point and the position coordinates of the target point.

[0112] Optionally, the fourth determining unit includes:

[0113] A first determining subunit, configured to determine a first vector according to the position coordinates of the current vehicle and the position coordinates of the previous path point;

[0114] A second determining subunit, configured to determine a second vector according to the position coordinates of the previous path point and the position coordinates of the target point;

[0115] The third determining subunit is used to determine whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the first vector and the second vector.

[0116] Optionally, the third determining subunit is specifically used to:

[0117] Determine the coordinates corresponding to the first vector and the modulus of the first vector according to the position coordinates of the current vehicle and the position coordinates of the previous path point;

[0118] Determine the coordinates corresponding to the second vector and the modulus of the second vector according to the position coordinates of the previous path point and the position coordinates of the target point;

[0119] Determine an offset angle between the current vehicle and the planned path according to the coordinates corresponding to the first vector, the modulus of the first vector, the coordinates corresponding to the second vector, and the modulus of the second vector;

[0120] Determine a projection length of the first vector on the second vector according to the magnitude of the first vector and the offset angle;

[0121] If the projection length is greater than the modulus of the second vector, it is determined that the current vehicle has passed the target point.

[0122] Optionally, the second determining module 203 includes:

[0123] The execution unit is used to control the current vehicle to travel toward the target point according to the steering wheel angle. After the current vehicle passes the target point, the target point is used as a new previous path point, and the operation of obtaining the position coordinates of the current vehicle and the position coordinates of each path point in the planned path is returned to execute until the current vehicle completes the path tracking task of the planned path.

[0124] The above-mentioned product can execute the path tracking method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0125] Embodiment 3

[0126] Figure 5 A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0127] like Figure 5 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other through a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.

[0128] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0129] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 31 performs the various methods and processes described above, such as the path tracking method:

[0130] Acquire the position coordinates of the current vehicle and the position coordinates of each path point in the planned path, wherein the planned path includes at least two path points;

[0131] Determine whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each path point;

[0132] If it is determined that the current vehicle has not passed the target point, and the offset angle between the current vehicle and the planned path is not zero, a steering wheel angle is determined according to the offset angle, so as to control the current vehicle to perform path tracking according to the steering wheel angle.

[0133] In some embodiments, the path tracking method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the path tracking method described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to perform the path tracking method in any other appropriate manner (e.g., by means of firmware).

[0134] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0135] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0136] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0137] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0138] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0139] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0140] In one embodiment, the present invention further includes a computer program product, the computer program product includes a computer program, and the computer program implements the path tracking method of any embodiment of the present invention when executed by a processor.

[0141] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely 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).

[0142] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0143] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A path tracking method, It is characterized in that include: Acquire the position coordinates of the current vehicle and the position coordinates of each path point in the planned path, wherein the planned path includes at least two path points; Determine whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each path point; If it is determined that the current vehicle has not passed the target point, and the offset angle between the current vehicle and the planned path is not zero, a steering wheel angle is determined according to the offset angle, so as to control the current vehicle to perform path tracking according to the steering wheel angle.

2. The method according to claim 1, It is characterized in that Determining a steering wheel angle according to the offset angle includes: Acquire a target distance between the current vehicle and the target point and a vehicle wheelbase corresponding to the current vehicle; A target steering wheel angle is determined according to the offset angle, the target distance, and the vehicle wheelbase.

3. The method according to claim 1, It is characterized in that Determining whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each of the path points includes: Determine a previous path point corresponding to the current vehicle according to the position coordinates of the current vehicle and the position coordinates of each of the path points, wherein the previous path point is a path point that is closest to the current vehicle and has been passed by the current vehicle when traveling along the planned path; Determine a target point corresponding to the current vehicle according to the position coordinates of the previous path point corresponding to the current vehicle and each of the path points, wherein the target point is a path point in the planned path that is located in front of the driving direction of the current vehicle and is closest to the previous path point; According to the position coordinates of the current vehicle, the position coordinates of the previous path point and the position coordinates of the target point, it is determined whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path.

4. The method according to claim 3, It is characterized in that Determining whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle, the position coordinates of the previous path point, and the position coordinates of the target point includes: Determine a first vector according to the position coordinates of the current vehicle and the position coordinates of the previous path point; Determine a second vector according to the position coordinates of the previous path point and the position coordinates of the target point; Whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path are determined according to the first vector and the second vector.

5. The method according to claim 4, It is characterized in that Determining whether the current vehicle has passed the target point and the offset angle between the current vehicle and the planned path according to the first vector and the second vector includes: Determine the coordinates corresponding to the first vector and the modulus of the first vector according to the position coordinates of the current vehicle and the position coordinates of the previous path point; Determine the coordinates corresponding to the second vector and the modulus of the second vector according to the position coordinates of the previous path point and the position coordinates of the target point; Determine an offset angle between the current vehicle and the planned path according to the coordinates corresponding to the first vector, the modulus of the first vector, the coordinates corresponding to the second vector, and the modulus of the second vector; Determine a projection length of the first vector on the second vector according to the magnitude of the first vector and the offset angle; If the projection length is greater than the modulus of the second vector, it is determined that the current vehicle has passed the target point.

6. The method according to claim 1, It is characterized in that Controlling the current vehicle to perform path tracking according to the steering wheel angle includes: The current vehicle is controlled to travel toward the target point according to the steering wheel angle. After the current vehicle passes the target point, the target point is used as a new previous path point, and the operation of obtaining the position coordinates of the current vehicle and the position coordinates of each path point in the planned path is returned to execute until the current vehicle completes the path tracking task of the planned path.

7. A path tracking device, It is characterized in that include: An acquisition module, used to acquire the position coordinates of the current vehicle and the position coordinates of each path point in the planned path, wherein the planned path includes at least two path points; A first determination module, configured to determine whether the current vehicle has passed a target point and an offset angle between the current vehicle and the planned path according to the position coordinates of the current vehicle and the position coordinates of each of the path points; The second determination module is used to determine the steering wheel angle according to the offset angle if it is determined that the current vehicle has not passed the target point and the offset angle between the current vehicle and the planned path is not zero, so as to control the current vehicle to perform path tracking according to the steering wheel angle.

8. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the path tracking method according to any one of claims 1 to 6.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the path tracking method according to any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the path tracking method according to any one of claims 1 to 6.