Driving control method and device
By calculating the target turning angle of the device and performing precise steering control, the problem in the existing technology that the device cannot accurately track the predetermined path is solved, and a more efficient automatic driving effect is achieved.
Patent Information
- Application Number
- CN202410864687.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-07-01
AI Technical Summary
Existing lateral control methods cannot accurately control steering while the equipment is traveling, resulting in the equipment being unable to effectively track the intended path.
By determining the parameters of the equipment, such as forward sight distance, wheelbase, lateral deviation and heading deviation, and calculating the target angle according to the curvature radius of the desired path, the first calculation formula is used for steering control, and the desired path is distinguished between straight line segments and arc segments. Classification calculations avoid the 'corner cutting' phenomenon in traditional algorithms.
It improves the steering accuracy of the equipment in different path segments, ensures that the equipment can accurately track the desired path, overcomes the shortcomings of the traditional algorithm, and achieves more efficient automatic driving control.
Smart Images

Figure CN118394094B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent driving technology, and more specifically, to a driving control method and device. Background Art
[0002] In the field of intelligent driving technology, the method of controlling the driving of the device is pre-set so that the device can drive on a predetermined path (i.e., the desired path). The methods of controlling the driving of the device can be divided into two categories: longitudinal control methods and lateral control methods. The lateral control method, that is, controlling the steering, is critical to obtaining an accurate steering angle so that the device can turn correctly. However, the control effect of the existing lateral control method is not good. Summary of the invention
[0003] The present invention provides a driving control method and device to improve the control effect on the driving of equipment.
[0004] In a first aspect, the present invention provides a driving control method, comprising:
[0005] Determine parameters, the parameters include a first device parameter, a deviation parameter, a desired path, and a curvature radius R of the desired path, wherein:
[0006] The first parameters of the equipment include the foresight distance H and the wheelbase L, and the deviation parameters include the lateral deviation e and the heading deviation , the expected path includes an expected straight line segment path and / or an expected arc segment path, wherein the curvature radius R of the expected straight line segment path is infinite;
[0007] According to the parameters, the target angle is calculated according to the first calculation formula. , the first calculation formula is , wherein, when the curvature radius R is not infinite and the device needs to turn clockwise, the first calculation formula is , when the curvature radius R is not infinite and the device needs to turn counterclockwise, the first calculation formula is ;
[0008] Control the device to rotate according to the target angle Make a turn.
[0009] Further, when the expected path is the expected straight line path, the lateral deviation e is determined by the following method:
[0010] Get the second parameters of the device and the straight path parameters, the second parameters of the device include: device control point C, the device control point C is the center point of the rear axle wheel of the device, projection point P, the projection point P is the foot point of the perpendicular from the device control point C to the expected path of the straight segment, vector The straight line path parameters include: the expected path starting point of the straight line segment and end point ,vector , and a z-axis that is perpendicular to the desired path and in a plane and the positive half axis of the z-axis is facing upward;
[0011] The lateral deviation e is determined according to the second device parameter and the straight path parameter, wherein: , For vector With vector The z-axis component of the cross product result.
[0012] Furthermore, when the expected path is the straight line segment expected path, the heading deviation Determine as follows:
[0013] Get the second parameters of the device and the straight path parameters, the second parameters of the device include: device control point C, the device control point C is the center point of the rear axle wheel of the device, the center point of the front axle of the device , projection point P, the projection point P is the foot point of the perpendicular path from the device control point C to the expected path of the straight line segment, vector The straight line path parameters include: the expected path starting point of the straight line segment and end point ,vector , and a z-axis that is perpendicular to the desired path and in a plane and the positive half axis of the z-axis is facing upward;
[0014] Determine the heading deviation according to the second parameter of the device and the straight path parameter ,in, , ,in, For vector and The z-axis component of the cross product result.
[0015] Further, when the expected path is the arc segment expected path, the lateral deviation e is determined by the following method:
[0016] Acquire a third parameter of the device and an arc path parameter, wherein the third parameter of the device includes a device control point C, which is the center point of the rear axle wheel of the device, and the arc path parameter includes the center point O of the expected path of the arc segment;
[0017] The lateral deviation e is determined according to the third parameter of the device and the arc path parameter, wherein the lateral deviation e is equal to the difference between the distance from the device control point C to the center O and the curvature radius R.
[0018] Furthermore, when the expected path is the arc segment expected path, the heading deviation Determine as follows:
[0019] Get the third parameters of the device and the arc path parameters, the third parameters of the device include: device control point C, the device control point C is the center point of the rear axle wheel of the device, the center point of the front axle of the device ,vector , the arc path parameters include the center O of the expected path of the arc segment, the vector ;
[0020] Determine the heading deviation according to the third parameter of the device and the arc path parameter ,in, .
[0021] Furthermore, when the expected path includes the expected straight line path and the expected arc path, the target turning angle is calculated according to the first calculation formula: The method comprises: determining a current expected path of the device, wherein the current expected path is the expected path of the straight line segment or the expected path of the circular arc segment, and calculating the target turning angle according to the first calculation formula based on the current expected path. .
[0022] Furthermore, the determination of the current expected path of the device is implemented in the following manner:
[0023] Obtain position judgment parameters, which include: projection point P, which is the foot point of the perpendicular from the device control point C to the expected path, any point U2 on the expected path of the arc segment except the starting point and the end point, and the starting point of the expected path of the arc segment. and end point ,vector ,vector , and a z-axis perpendicular to the plane of the desired path;
[0024] According to the position judgment parameter, the position judgment vector is obtained. and ,in, , ;
[0025] Determine the vector according to the position and , the expected path at the current stage is obtained in the following way: make a path through point and Point The straight line, when and When the components of the two vectors on the z-axis have the same sign, the projection point P and the arbitrary point U2 are on the same side of the straight line, and the current expected path is the expected path of the arc segment; otherwise, the current expected path is the expected path of the straight line segment.
[0026] Furthermore, when the curvature radius R is not infinite, the target angle is calculated according to the first calculation formula: The method further includes determining the direction in which the device needs to rotate, and calculating the target rotation angle according to the first calculation formula based on the direction in which the device needs to rotate. .
[0027] Furthermore, the direction in which the device needs to rotate is determined by the following method:
[0028] Obtain turning determination parameters, the turning determination parameters including: any point U2 on the expected path of the arc segment except the starting point and the end point, the starting point of the expected path of the arc segment and end point ,vector ,vector , and a z-axis that is perpendicular to the desired path and in a plane and the positive half axis of the z-axis is facing upward;
[0029] According to the steering judgment parameter, the steering judgment vector is obtained ,in, For vector The component on the z-axis, ;
[0030] According to the steering judgment vector , determine the direction in which the device needs to rotate, where When it is a negative value, the device needs to turn counterclockwise; when When it is a positive value, the device needs to turn clockwise.
[0031] In a second aspect, the present invention provides a driving control device, comprising:
[0032] A determination unit is used to determine parameters, wherein the parameters include a first parameter of the device, a deviation parameter, a desired path, and a curvature radius R of the desired path, wherein:
[0033] The first parameters of the equipment include the foresight distance H and the wheelbase L, and the deviation parameters include the lateral deviation e and the heading deviation , the expected path includes an expected straight line segment path and / or an expected arc segment path, wherein the curvature radius R of the expected straight line segment path is infinite;
[0034] A calculation unit, configured to calculate a target rotation angle according to the parameters and a first calculation formula , the first calculation formula is , wherein, when the curvature radius R is not infinite and the device needs to turn clockwise, the first calculation formula is , when the curvature radius R is not infinite and the device needs to turn counterclockwise, the first calculation formula is ;
[0035] A steering unit, used to control the device to turn according to the target angle Make a rotation.
[0036] Beneficial effect: The technical solution of the present invention controls the steering of the device by adopting the first calculation formula target turning angle, so that the device can track the desired path more accurately, that is, the control effect on the driving of the device is improved.
[0037] In addition, the present invention distinguishes between the expected path of the arc segment and the expected path of the straight segment, and classifies and calculates the required turning angles of the device in different segments of the expected path. It can be found from the simulation trajectory diagram and tracking parameter diagram in the attached drawings of the specification that the technical solution of the present invention achieves a good effect on the automatic driving control of the device, as follows: When the expected path is a straight segment, the turning angle calculation formula is obtained based on the Ackerman kinematic model analysis, and when the angle between the device body direction and the expected path is When the tracking is within the range, the automatic driving control device can still turn correctly and return to the expected path; when the expected path is an arc segment, the "curvature feedforward + lateral deviation, heading deviation feedback" mode is used to calculate the required turning angle of the device. This can effectively avoid the occurrence of the "angle cutting" phenomenon when executing the transition from the expected path of the straight segment to the expected path of the semicircular segment, that is, turning in advance, overcoming the shortcomings of the traditional pure tracking algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 A flow chart of an automatic driving control method for equipment according to an embodiment of the present invention;
[0040] Figure 2 Another flow chart of the automatic driving control method of a device according to an embodiment of the present invention;
[0041] Figure 3 A schematic diagram of a path determination principle of an automatic driving control method for a device according to an embodiment of the present invention;
[0042] Figure 4A first principle diagram for calculating the required turning angle of a device in a straight line segment expected path for a device according to an embodiment of the present invention;
[0043] Figure 5 A second principle diagram for calculating the required turning angle of a device in a straight line segment desired path for a device according to an embodiment of the present invention;
[0044] Figure 6 A schematic diagram of calculating the required turning angle of a device when the device is in an expected path of an arc segment according to an embodiment of the present invention;
[0045] Figure 7 This is a simulation trajectory diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device on the expected path of the straight segment is 1m and the heading deviation is 120°;
[0046] Figure 8 This is a tracking parameter diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device on the expected path of the straight segment is 1m and the heading deviation is 120°;
[0047] Fig. 9 This is a simulation trajectory diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device on the expected path of the straight segment is -0.1m and the heading deviation is -170°;
[0048] Fig.10 A tracking parameter diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device on the expected path of the straight segment is -0.1m and the heading deviation is -170°;
[0049] Fig.11 This is a simulation trajectory diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device on the expected path of the straight segment is 0.3m and the heading deviation is 10°;
[0050] Fig.12 This is a tracking parameter diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device on the expected path of the straight segment is 0.3m and the heading deviation is 10°;
[0051] Fig.13 This is a simulation trajectory diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device on the expected path of the straight segment is -0.3m and the heading deviation is -10°;
[0052] Fig.14 This is a tracking parameter diagram when the lateral deviation of the initial position of the device in the expected path of the straight segment is -0.3m and the heading deviation is -10° in one embodiment of the present invention;
[0053] Fig.15This is a simulation trajectory diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device in the expected path of the arc segment is 0.3m and the heading deviation is 30°;
[0054] Fig.16 This is a tracking parameter diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device in the expected path of the arc segment is 0.3m and the heading deviation is 30°;
[0055] Fig.17 This is a simulation trajectory diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device in the expected path of the arc segment is 0.3m and the heading deviation is -30°;
[0056] Fig.18 This is a tracking parameter diagram when the lateral deviation of the initial position of the device in the expected path of the arc segment is 0.3m and the heading deviation is -30° in one embodiment of the present invention;
[0057] Fig.19 This is a simulation trajectory diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device in the expected path of the arc segment is -0.3m and the heading deviation is 30°;
[0058] Fig. 20 This is a tracking parameter diagram when the lateral deviation of the initial position of the device in the expected path of the arc segment is -0.3m and the heading deviation is 30° in one embodiment of the present invention;
[0059] Fig.21 This is a simulation trajectory diagram of an embodiment of the present invention when the lateral deviation of the initial position of the device in the expected path of the arc segment is -0.3m and the heading deviation is -30°;
[0060] Fig. 22 This is a tracking parameter diagram when the lateral deviation of the initial position of the device in the expected path of the arc segment is -0.3m and the heading deviation is -30° according to an embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0062] The equipment in this application may include road transportation, industrial equipment, agricultural equipment, or entertainment equipment, etc. For example, the equipment may be a vehicle, which is a vehicle in a broad sense, and may be a transportation tool (such as a commercial vehicle, a passenger car, a motorcycle, a train, etc.), an industrial vehicle (such as a forklift, a trailer, a tractor, etc.), an engineering vehicle (such as an excavator, a bulldozer, a crane, etc.), agricultural equipment (such as a lawn mower, a rice transplanter, a tractor, a field transporter, a seed drill, etc.), amusement equipment, a toy vehicle, etc. The embodiment of this application does not specifically limit the type of vehicle.
[0063] Embodiment 1:
[0064] like Figures 1 to 6 As shown, the embodiment of the present invention will select different automatic driving control algorithms according to the different desired paths of the equipment, calculate the direction angle required for the equipment to normally move along the desired path, and form equipment instructions to adjust the steering size, thereby realizing automatic driving of the equipment. In addition, the driving speed of the equipment is set to a constant low speed (preferably, 1m / s for rice transplanters and 2-3m / s for tractors).
[0065] S101:
[0066] Plan and generate the expected path and path parameters for the automatic driving of the equipment. The expected path includes the expected path of the straight line segment and the expected path of the arc segment. The path parameters include the radius R and center O of the circle corresponding to the arc in the expected path of the arc segment, and the starting point of the expected path of the arc segment. and end point , the starting point of the expected path of the straight line segment To the end Length and direction , the x-axis and y-axis in the same plane as the desired path, and the z-axis perpendicular to the plane.
[0067] S102:
[0068] Get device parameters, including:
[0069] The projection point P is the intersection of the line segment from the device control point C to the center O and the arc (when the device is on the expected path of the arc segment) or the perpendicular point from the device control point C to the straight line (when the device is on the expected path of the straight line segment).
[0070] The distance from the device control point (rear axle wheel center point) to the front axle center point (i.e. the device wheelbase L) and its direction (i.e. the vehicle body direction vector).
[0071] The forward viewing distance H is preferably in the range of 2-3 meters.
[0072] The shortest distance and its direction, that is, the straight-line distance and direction from the center of the circle O to the device control point C (When the device is on the expected path of the arc segment) or the length and direction from the projection point position P to the device control point C (The device is in the expected path of the straight segment).
[0073] It should be noted that steps S101 and S102 can be combined into one step, namely, determining parameters. Accordingly, the idea of determining parameters can be: first determine core parameters, such as lateral deviation and heading deviation, and then divide the situations, and adopt corresponding calculation methods to obtain the core parameters according to the specific situations of the expected path.
[0074] S103:
[0075] According to the above parameters, the device is determined by calculation in which expected path it is located, that is, in a straight line segment or in an arc segment. The determination method is as follows:
[0076] like Figure 3 As shown, connecting the projection point P with the starting point and end point of the expected path of the arc segment can obtain the vector and At the same time, take a point U2 at any position on the expected path of the arc segment (except the starting point and the end point) and connect it with the starting point and the end point of the expected path of the arc segment to obtain the vector , . Vectors can be obtained by vector cross multiplication: , .
[0077] Draw a straight line through the starting point and end point of the expected path of the arc segment. and When the components of the two vectors on the z-axis have the same sign, the projection point P and U2 are on the same side of the straight line, so the device is now in the expected path of the arc segment; conversely, the projection point P and U2 are on different sides of the straight line, and the device is now in the expected path of the straight line segment.
[0078] It should be pointed out that this step can be omitted. For example, it can be assumed that the device only needs to travel on the expected path of straight segments, that is, the expected path does not include the expected path of arc segments. In this case, there is no need to determine which expected path the device is on.
[0079] S104:
[0080] There are two calculation modes according to the expected path: arc segment expected path calculation mode and straight line segment expected path calculation mode. Select the corresponding calculation mode according to the path judgment result to calculate the required turning angle of the device. , . At the same time, it is stipulated that the left turn, is "+", turn right, for"-".
[0081] When in the straight line segment expected path calculation mode, such as Figure 3 As shown, it is realized by the following formula: ,
[0082] in:
[0083] The magnitude of the lateral deviation e is a vector The modulus length and its positive and negative properties are determined by the vector With vector The component of the cross product result on the z-axis is ;
[0084] Course deviation , whose magnitude can be determined by the body direction vector With vector The dot product of :
[0085] Similarly, The positive or negative value of is also determined by the component of the vector cross product on the z-axis, so we get: .
[0086] For ease of understanding, the formula is as follows The principle is explained:
[0087] like Figure 5 As shown in the figure, the straight line where the line segment PA is located is the expected path, the device is located on the right side of the expected path, the wheelbase of the device is L, point P is the projection point of the device control point C on the expected path, the length of the line segment PA is the foresight distance H, with O as the center and OA as the radius, a circle passing through points A and C is formed, and at point C, the line segment Tangent to the circle. The PC length is e, which is the lateral deviation. is the heading deviation.
[0088] In the triangular APC, , , and then we get: , ;
[0089] In triangle OAC, the law of cosines gives: , the turning circle radius is R, OA=OC=R, substituting R into the equation and simplifying it yields: ,
[0090] At the same time, according to the Ackerman kinematic model, it can be seen that the required turning angle of the front wheel of the equipment is determined by the ratio of its wheelbase to its required turning radius, that is: , that is: ;
[0091] Will Substitution We can get: ,
[0092] In order to be able to As the linear control feedback, the following approximation is made (here the difference in units is ignored, and the approximation result is directly defaulted to an angle, and the corresponding unit is degree): .
[0093] When in the arc segment expected path calculation mode, such as Figure 5 As shown, the calculation method is as follows:
[0094] The method in this mode uses the "curvature feedforward + lateral deviation, heading deviation feedback" mode to calculate the required turning angle of the device. , if the device has no deviation relative to the expected path (including lateral deviation e and heading deviation ), it is realized by the following formula: ;
[0095] On the contrary, when there is a lateral deviation e and When the control idea is to turn the device toward the arc tangent at the projection point P (to reduce e and for the purpose), while superimposing The arc curvature feedforward steering amount (for the purpose of arc tracking) is as follows: ,
[0096] in:
[0097] The value of the lateral deviation e is equal to the distance from the equipment control point C to the center of the circle O minus the radius R, that is:
[0098] ,when hour, ;when hour, ;when hour, ;
[0099] Course deviation For vector and The complementary angle of the angle ,Right now: ;
[0100] For vector The component on the z-axis contains the direction of the device. When it is "-", the device turns counterclockwise, and the corresponding turning mode is: turn left; when it is "+", the device turns clockwise, and the corresponding turning mode is: turn right.
[0101] Summarizing the above formulas, we can get: Use the first calculation formula to calculate the target turning angle , the first calculation formula is , wherein, when the curvature radius R is not infinite and the device needs to turn clockwise, the first calculation formula is , when the curvature radius R is not infinite and the device needs to turn counterclockwise, the first calculation formula is .
[0102] By distinguishing between the expected path of circular arc segments and the expected path of straight line segments, the required turning angles of the equipment in different expected paths are classified and calculated. In the case of the expected path of straight line segments, the turning angle calculation formula is obtained based on the Ackerman kinematic model analysis. In the case of the expected path, this method can still realize the correct steering of the automatic driving control device and return to the expected path; when the expected path is a circular arc segment, the "curvature feedforward + lateral deviation, heading deviation feedback" mode is used to calculate the required turning angle of the device. This method can effectively avoid the occurrence of the "angle cutting" phenomenon when executing the transition from the expected path of the straight segment to the expected path of the semicircular arc segment, that is, early steering, overcoming the shortcomings of the traditional pure tracking algorithm.
[0103] S105:
[0104] When the required rotation angle of the device is calculated After that, the calculation result is obtained and the direction rotation is performed according to the required angle of the device.
[0105] It should be pointed out that steps S101 to S105 in this embodiment should not be limited by the aforementioned execution order, as long as the required rotation angle of the device can be calculated according to the above formula.
[0106] Embodiment 2:
[0107] This embodiment is developed on the basis of the first embodiment, and the same parts are not repeated here.
[0108] like Figure 6 , Figure 7 , Figure 8 As shown, the initial position of the device is on the expected straight path, the lateral deviation e is 1m, and the heading deviation The angle of the device is 120°. Through software simulation, the process S101 to S105 is executed, the device turns and moves forward, thereby obtaining the path trajectory of the device, and the trajectory is compared with the expected path to obtain the tracking parameters of the automatic driving control of the device.
[0109] Embodiment three:
[0110] This embodiment is developed on the basis of the first embodiment, and the same parts are not repeated here.
[0111] like Fig. 9 , Fig.10 As shown, the initial position of the device is on the expected path of the straight segment, the lateral deviation e is -0.1m, and the heading deviation The angle is -170°. Through software simulation, the process S101 to S105 is executed. The device turns and moves forward, thereby obtaining the path trajectory of the device. The trajectory is compared with the expected path to obtain the tracking parameters of the automatic driving control of the device.
[0112] Embodiment 4:
[0113] This embodiment is developed on the basis of the first embodiment, and the same parts are not repeated here.
[0114] like Fig.11 , Fig.12 As shown, the initial position of the device is on the expected straight path, the lateral deviation e is 0.3m, and the heading deviation The angle is 10°. Through software simulation, the process S101 to S105 is executed. The device turns and moves forward, thereby obtaining the path trajectory of the device. The trajectory is compared with the expected path to obtain the tracking parameters of the automatic driving control of the device.
[0115] Embodiment five:
[0116] This embodiment is developed on the basis of the first embodiment, and the same parts are not repeated here.
[0117] like Fig.13 , Fig.14 As shown, the initial position of the device is on the expected path of the straight segment, the lateral deviation e is -0.3m, and the heading deviation The angle is -10°. Through software simulation, the process S101 to S105 is executed. The device turns and moves forward, thereby obtaining the path trajectory of the device. The trajectory is compared with the expected path to obtain the tracking parameters of the automatic driving control of the device.
[0118] Embodiment six:
[0119] This embodiment is developed on the basis of the first embodiment, and the same parts are not repeated here.
[0120] like Fig.15 , Fig.16 As shown, the initial position of the device is on the expected path of the arc segment, the lateral deviation e is 0.3m, and the heading deviation The angle of the device is 30°. Through software simulation, the process S101 to S105 is executed. The device turns and moves forward, thereby obtaining the path trajectory of the device. The trajectory is compared with the expected path to obtain the tracking parameters of the automatic driving control of the device.
[0121] Embodiment seven:
[0122] This embodiment is developed on the basis of the first embodiment, and the same parts are not repeated here.
[0123] like Fig.17 , Fig.18 As shown, the initial position of the device is on the expected path of the arc segment, the lateral deviation e is 0.3m, and the heading deviation The angle is -30°. Through software simulation, the process S101 to S105 is executed. The device turns and moves forward, thereby obtaining the path trajectory of the device. The trajectory is compared with the expected path to obtain the tracking parameters of the automatic driving control of the device.
[0124] Embodiment eight:
[0125] This embodiment is developed on the basis of the first embodiment, and the same parts are not repeated here.
[0126] like Fig.19 , Fig. 20 As shown, the initial position of the device is on the expected path of the arc segment, the lateral deviation e is -0.3m, and the heading deviation The angle of the device is 30°. Through software simulation, the process S101 to S105 is executed. The device turns and moves forward, thereby obtaining the path trajectory of the device. The trajectory is compared with the expected path to obtain the tracking parameters of the automatic driving control of the device.
[0127] Embodiment nine:
[0128] This embodiment is developed on the basis of the first embodiment, and the same parts are not repeated here.
[0129] like Fig.21 , Fig. 22 As shown, the initial position of the device is on the expected path of the arc segment, the lateral deviation e is -0.3m, and the heading deviation The angle is -30°. Through software simulation, the process S101 to S105 is executed. The device turns and moves forward, thereby obtaining the path trajectory of the device. The trajectory is compared with the expected path to obtain the tracking parameters of the automatic driving control of the device.
[0130] Embodiment ten:
[0131] An automatic driving control device, comprising:
[0132] A determination unit is used to determine parameters, wherein the parameters include a first parameter of the device, a deviation parameter, a desired path, and a curvature radius R of the desired path, wherein:
[0133] The first parameters of the equipment include the foresight distance H and the wheelbase L, and the deviation parameters include the lateral deviation e and the heading deviation , the expected path includes an expected straight line segment path and / or an expected arc segment path, wherein the curvature radius R of the expected straight line segment path is infinite;
[0134] A calculation unit, configured to calculate a target rotation angle according to the parameters and a first calculation formula , the first calculation formula is , wherein, when the curvature radius R is not infinite and the device needs to turn clockwise, the first calculation formula is , when the curvature radius R is not infinite and the device needs to turn counterclockwise, the first calculation formula is ;
[0135] A steering unit, used to control the device to turn according to the target angle Make a rotation.
[0136] Although the present invention is described herein with reference to the illustrative embodiments of the present invention, it should be understood that those skilled in the art can design many other modifications and implementations, which will fall within the scope and spirit of the principles disclosed in the present application. More specifically, within the scope disclosed in the present application, multiple variations and improvements can be made to the components and / or layout of the subject combination layout. In addition to the variations and improvements made to the components and / or layout, other uses will also be apparent to those skilled in the art.
Claims
1. A driving control method, It is characterized in that include: Determine parameters, the parameters include a first device parameter, a deviation parameter, a desired path, and a curvature radius R of the desired path, wherein: The first parameters of the equipment include the foresight distance H and the wheelbase L, and the deviation parameters include the lateral deviation e and the heading deviation , the expected path includes an expected straight line segment path and / or an expected arc segment path, wherein the curvature radius R of the expected straight line segment path is infinite; According to the parameters, the target angle is calculated according to the first calculation formula. , the first calculation formula is , wherein, when the curvature radius R is not infinite and the device needs to turn clockwise, the first calculation formula is , when the curvature radius R is not infinite and the device needs to turn counterclockwise, the first calculation formula is ; Control the device to rotate according to the target angle Make a turn.
2. The driving control method according to claim 1, It is characterized in that When the expected path is the expected path of the straight segment, the lateral deviation e is determined by the following method: Get the second parameters of the device and the straight path parameters, the second parameters of the device include: device control point C, the device control point C is the center point of the rear axle wheel of the device, projection point P, the projection point P is the foot point of the perpendicular from the device control point C to the expected path of the straight segment, vector The straight line path parameters include: the expected path starting point of the straight line segment and end point ,vector , and a z-axis that is perpendicular to the desired path and in a plane and the positive half axis of the z-axis is facing upward; The lateral deviation e is determined according to the second device parameter and the straight path parameter, wherein: , For vector With vector The z-axis component of the cross product result.
3. The driving control method according to claim 1, It is characterized in that When the expected path is the straight line segment expected path, the heading deviation Determine as follows: Get the second parameters of the device and the straight path parameters, the second parameters of the device include: device control point C, the device control point C is the center point of the rear axle wheel of the device, the center point of the front axle of the device , projection point P, the projection point P is the foot point of the perpendicular path from the device control point C to the expected path of the straight line segment, vector The straight line path parameters include: the expected path starting point of the straight line segment and end point ,vector , and a z-axis that is perpendicular to the desired path and in a plane and the positive half axis of the z-axis is facing upward; Determine the heading deviation according to the second parameter of the device and the straight path parameter ,in, , ,in, For vector and The z-axis component of the cross product result.
4. The driving control method according to claim 1, It is characterized in that When the expected path is the arc segment expected path, the lateral deviation e is determined by the following method: Acquire a third parameter of the device and an arc path parameter, wherein the third parameter of the device includes a device control point C, which is the center point of the rear axle wheel of the device, and the arc path parameter includes the center point O of the expected path of the arc segment; The lateral deviation e is determined according to the third parameter of the device and the arc path parameter, wherein the lateral deviation e is equal to the difference between the distance from the device control point C to the center O and the curvature radius R.
5. The driving control method according to claim 1, It is characterized in that When the expected path is the arc segment expected path, the heading deviation Determine as follows: Get the third parameters of the device and the arc path parameters, the third parameters of the device include: device control point C, the device control point C is the center point of the rear axle wheel of the device, the center point of the front axle of the device ,vector , the arc path parameters include the center O of the expected path of the arc segment, the vector ; Determine the heading deviation according to the third parameter of the device and the arc path parameter ,in, .
6. The driving control method according to claim 2, It is characterized in that When the expected path includes the expected straight line segment path and the expected arc segment path, the target turning angle is calculated according to the first calculation formula. The method comprises: determining a current expected path of the device, wherein the current expected path is the expected path of the straight line segment or the expected path of the circular arc segment, and calculating the target turning angle according to the first calculation formula based on the current expected path. .
7. The driving control method according to claim 6, It is characterized in that The determination of the current desired path of the device is achieved in the following manner: Obtain position judgment parameters, which include: projection point P, which is the foot point of the perpendicular from the device control point C to the expected path, any point U on the expected path of the arc segment except the starting point and the end point 2 , the starting point of the expected path of the arc segment and end point ,vector ,vector , and a z-axis perpendicular to the plane of the desired path; According to the position judgment parameter, the position judgment vector is obtained. and ,in, , ; Determine the vector according to the position and , the current expected path is obtained in the following way: make a path through point and Point The straight line, when and When the components of the two vectors on the z-axis have the same positive and negative sign, the projection point P and the arbitrary point U 2 On the same side of the straight line, the expected path at the current stage is the expected path of the arc segment; otherwise, the expected path at the current stage is the expected path of the straight line segment.
8. The driving control method according to claim 1, It is characterized in that When the curvature radius R is not infinite, the target angle is calculated according to the first calculation formula. The method further includes determining the direction in which the device needs to rotate, and calculating the target rotation angle according to the first calculation formula based on the direction in which the device needs to rotate. .
9. The driving control method according to claim 8, It is characterized in that The determination of the direction in which the device needs to rotate is achieved by the following method: Obtain turning determination parameters, the turning determination parameters including: any point U on the expected path of the arc segment except the starting point and the end point 2 , the starting point of the desired path of the arc segment and end point ,vector ,vector , and a z-axis that is perpendicular to the desired path and in a plane and the positive half axis of the z-axis is facing upward; According to the steering judgment parameter, the steering judgment vector is obtained ,in, For vector The component on the z-axis, ; According to the steering judgment vector , determine the direction in which the device needs to rotate, where When it is a negative value, the device needs to turn counterclockwise; when When it is a positive value, the device needs to turn clockwise.
10. A driving control device, It is characterized in that include: A determination unit is used to determine parameters, wherein the parameters include a first parameter of the device, a deviation parameter, a desired path, and a curvature radius R of the desired path, wherein: The first parameters of the equipment include the foresight distance H and the wheelbase L, and the deviation parameters include the lateral deviation e and the heading deviation , the expected path includes an expected straight line segment path and / or an expected arc segment path, wherein the curvature radius R of the expected straight line segment path is infinite; A calculation unit, configured to calculate a target rotation angle according to the parameters and a first calculation formula , the first calculation formula is , wherein, when the curvature radius R is not infinite and the device needs to turn clockwise, the first calculation formula is , when the curvature radius R is not infinite and the device needs to turn counterclockwise, the first calculation formula is ; A steering unit, used to control the device to turn according to the target angle Make a rotation.
Citation Information
Patent Citations
Trajectory tracking control method used for driverless vehicle
CN108622104A
Vehicle transverse control method and device, electronic equipment and storage medium
CN113511188A
