CN113306549B - Automatic parking trajectory planning algorithm - Google Patents
Automatic parking trajectory planning algorithm Download PDFInfo
- Publication number
- CN113306549B CN113306549B CN202110675702.XA CN202110675702A CN113306549B CN 113306549 B CN113306549 B CN 113306549B CN 202110675702 A CN202110675702 A CN 202110675702A CN 113306549 B CN113306549 B CN 113306549B
- Authority
- CN
- China
- Prior art keywords
- parking
- vehicle
- track
- point
- parking space
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000004422 calculation algorithm Methods 0.000 title claims abstract description 57
- 238000004088 simulation Methods 0.000 claims abstract description 10
- 238000000034 method Methods 0.000 claims description 36
- 230000008569 process Effects 0.000 claims description 25
- 238000001514 detection method Methods 0.000 claims description 18
- 230000001133 acceleration Effects 0.000 claims description 3
- 238000013507 mapping Methods 0.000 claims description 3
- 238000005070 sampling Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 abstract description 4
- 238000011065 in-situ storage Methods 0.000 abstract description 4
- 238000004364 calculation method Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 5
- 238000011160 research Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 4
- 238000004898 kneading Methods 0.000 description 3
- 238000005457 optimization Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 238000010845 search algorithm Methods 0.000 description 1
- 230000001502 supplementing effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W30/00—Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
- B60W30/06—Automatic manoeuvring for parking
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W30/00—Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
- B60W30/08—Active safety systems predicting or avoiding probable or impending collision or attempting to minimise its consequences
- B60W30/095—Predicting travel path or likelihood of collision
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W40/00—Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
- Steering Control In Accordance With Driving Conditions (AREA)
- Traffic Control Systems (AREA)
Abstract
The invention provides an automatic parking trajectory planning algorithm, S1: determining a travelable area space; s2: selecting a target parking space and establishing a parking space coordinate system; s3: determining a plurality of key points between a starting point of the vehicle and a target point of the vehicle parking position through a simulation planning algorithm; s4: parking is carried out; s5: and finishing parking until the starting point of the vehicle is superposed with the target point of the parking position of the vehicle. According to the invention, the key points of the parking track are selected and calculated through a simulation planning algorithm, the parking track is generated in segments, and then the feasibility of the track is analyzed according to the size of the parking space, the position of the vehicle body and the situation of surrounding obstacles; therefore, the planning of the path is realized quickly. A smooth and controllable parking track point meeting collision constraint is formed between two adjacent key points by adopting a track planning algorithm and combining interpolation, so that the final track is smooth and controllable, the curvature change rate is continuous, and the problem that the vehicle wears tires when a steering wheel is used in situ is solved.
Description
Technical Field
The invention belongs to the technical field of automatic driving track planning, and particularly relates to an automatic parking track planning algorithm.
Background
The automatic parking is an important function in automatic driving, partial commercial vehicles with autonomous parking are already available on the market at present, the traditional autonomous parking trajectory planning method mainly comprises two links, a parking map is divided into grids, a parking path is calculated in the grids by using search algorithms such as A, state lattices and the like, the path speed is calculated according to the parking path by using an optimization method, and the parking trajectory is finally formed.
The other method for calculating the parking track is an optimization method based on a vehicle kinematics model, and the method combines two steps of path planning and speed matching by using optimal control to directly calculate the parking track; however, the algorithm can be used in practice to cause the following problems:
(1) Because the sensing range of the sensor is limited, the existing scheme is that a majority of automatic parking adopts a look-around camera and ultrasonic waves, the general visual range of look-around vision is within 10m, but the image distortion of the actual range larger than 6m is serious, the effective detection range is within 6m, and the general effective detection distance of the ultrasonic waves is within 5m, so that the surrounding environment of a car body can not be sensed completely when the parking space is searched, obstacle detection and secondary parking space identification can be performed in the parking process of the car, and once the parking space identification result is different from the result of the first parking space search, the position of a target parking space is required to be updated again, and the parking track is required to be planned again. Meanwhile, wheel speed odometer errors and vehicle transverse and longitudinal control errors caused by vehicle tire wear, tire pressure change and the like can require readjustment of parking tracks in the parking process.
(2) The geometric parking track algorithm of the circular arc and the straight line has the problems that the curvature of the track at the joint of the circular arc and the straight line is discontinuous, the steering wheel shakes during vehicle control, the steering wheel is driven after the vehicle control needs to be stopped, and the steering wheel moves after the steering wheel is executed to a target angle, so that the tire is abraded by driving the steering wheel in situ greatly.
(3) And vehicles can not be parked in narrow parallel parking spaces.
Disclosure of Invention
The invention provides an automatic parking track planning algorithm, which is characterized in that key points of a parking track are selected through a simulation planning algorithm, the key points are arranged according to a time sequence, then a current position of a vehicle body is taken as a starting point, the next key point is taken as a key point, the parking track is generated in a subsection mode, and then the feasibility of the track is analyzed according to the size of the parking space, the position of the vehicle body and the condition of surrounding obstacles; therefore, the planning of the path is quickly realized. A smooth and controllable parking track point meeting collision constraint is formed between two adjacent key points by adopting a track planning algorithm and combining interpolation, so that the final track is smooth and controllable, the curvature change rate is continuous, and the problem that the tires are abraded when the steering wheel is used for driving a vehicle in situ is solved; meanwhile, the planning algorithm can realize the parking of ultra-narrow parallel parking spaces.
In order to solve the technical problems, the invention adopts the technical scheme that: an automatic parking trajectory planning algorithm, comprising the steps of:
s1: determining a travelable space
S2: selecting a target parking space, establishing a parking space coordinate system, acquiring target parking space information, calculating coordinates of a vehicle starting point, and determining coordinates of a target at a vehicle parking position according to the parking space information;
s3: determining a plurality of key points between a starting point of the vehicle and a target point of the vehicle parking position through a simulation planning algorithm;
s4: taking a key point adjacent to the starting point of the vehicle as a current target point, moving the vehicle from the starting point to the target point, continuously updating the next key point as a new target point when the starting point of the vehicle is consistent with the current target point, moving to enable the starting point of the vehicle to move to the new target point, and continuously parking; if the current vehicle starting point is inconsistent with the current target point through movement, returning to the step S3;
s5: and finishing parking until the starting point of the vehicle is superposed with the target point of the parking position of the vehicle.
Further, the step S1 specifically includes the following steps:
s11, identifying and acquiring obstacle information around the vehicle body;
s12, identifying and acquiring parking space information;
s13: and mapping the obstacle information and the parking space information around the vehicle body to a unified coordinate system to determine the vehicle driving space.
In the technical scheme, the vehicle driving space is a track range within which the vehicle can park, namely, the space range within which the vehicle can drive can be obtained after the obstacle information and the parking space information are unified into a coordinate system with the same reference point.
Further, in the step S2, the target parking space information includes a target parking space corner coordinate, and a length and a width of a parking space, wherein the parking space coordinate system is a coordinate system established by using a vertex of the target parking space as an origin of coordinates.
In the technical scheme, the coordinates of the parking position of the vehicle can be determined by combining the coordinates of the angular point of the target parking space, the length and the width of the parking space and the coordinates of the initial point of the vehicle, and then the coordinates of the key point in the parking track are calculated according to the parameters.
Further, the simulation planning algorithm in the step S3 is to calculate the end point of each section of track in a segmented manner as a key point by using a method of common tangent between an arc and a straight line and combining geometric space constraint conditions that a vehicle can travel.
Further, in the step S3, the geometric space constraint condition that the vehicle can travel is that the arc radius of each track is equal to the minimum turning radius of the vehicle, and the vehicle does not collide with the parking space boundary and the road boundary in each track. The minimum turning radius of the vehicle is the turning radius of the vehicle in a left dead driving state or a right dead driving state.
Further, in the step S4, a plurality of specific track points between the two key points are generated according to a segmented track point generation algorithm, so that a continuous parking track is generated; when parking, the vehicle moves from the starting point to the target point along the parking track.
Further, in the step S4, the process of generating the parking trajectory points by the segmented trajectory point generating algorithm is as follows:
s411, generating a straight line circular arc splicing line segment through a track planning algorithm, and then generating discrete track points according to the length of the line segment and the position of a curvature catastrophe point by non-equal-interval sampling;
s412, taking the discrete track points as control points, generating a smooth and continuous curve through an interpolation algorithm, and then dispersing to obtain track points at intervals of 0.1 m;
s413, calculating the parking track length to generate a smooth speed curve according to the parking speed and the acceleration limit, and dispersing to obtain the target speed of each track point;
s414, connecting a plurality of track points according to the target speed of the track points, and finally generating a smooth parking track.
Further, in the step S1, a detection module is arranged on the periphery of the vehicle body to identify and acquire obstacle information and parking space information around the vehicle body, and the detection module is a camera or an ultrasonic module arranged on the periphery of the vehicle body or a combination of the camera and the ultrasonic module.
Further, in the step S4, the detection module monitors the obstacle information around the vehicle body in real time during the parking process to determine whether a new parking trajectory needs to be re-planned during the parking process, and the steps are as follows:
(1) The vehicle moves along with the parking track points, the detection module identifies the obstacle information around the vehicle body in real time in the moving process, and the obstacle information is mapped into a parking space coordinate system;
(2) Braking the vehicle to prevent collision if the obstacle enters the travelable space in step S1; detecting whether the obstacle exists continuously after 10s, and if the obstacle disappears, continuing parking; if the obstacle continuously exists, returning to the step S3;
(3) When the vehicle reaches the next key point position, the detection module carries out parking space secondary identification, and compares the identified parking space result with the current target parking space to judge whether to update the parking space;
(4) And if the parking space is updated, returning to the step S1.
The invention has the advantages and positive effects that:
1. the method comprises the steps of selecting key points for calculating the parking track through a simulation planning algorithm, arranging the key points according to a time sequence, generating the parking track in segments by taking the current position of a vehicle body as a starting point and the next key point as a key point, and analyzing the feasibility of the track according to the size of the parking space, the position of the vehicle body and the conditions of surrounding obstacles; therefore, the planning of the path is realized quickly.
2. According to the algorithm, a smooth and controllable parking track point is formed between two adjacent key points by adopting a track planning algorithm and combining an interpolation algorithm, so that the final track is smooth and controllable, the curvature change rate is continuous, and the problem that a steering wheel is used for a vehicle in situ to wear tires is solved.
3. The algorithm supports the minimum parallel parking space to be the vehicle body length plus 0.8m parking space through accurate calculation, so that the problem of parallel parking in an ultra-narrow parking space can be solved.
Drawings
FIG. 1 is a schematic view of the Ackerman steering mechanism;
FIG. 2 is a schematic view of the geometric relationship between the coordinates of the vehicle contour points and the coordinates of the center point of the rear axle;
FIG. 3 is a schematic diagram I of a vertical parking trajectory planning in an automatic parking trajectory planning algorithm according to the present invention;
FIG. 4 is a schematic diagram of a vertical parking trajectory planning in an automatic parking trajectory planning algorithm according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram of a parallel parking entry trajectory planning and a parallel parking exit trajectory planning in the automatic parking trajectory planning algorithm according to the present invention;
FIG. 6 is an overall flow chart of an automatic parking trajectory planning algorithm of the present invention;
FIG. 7 is a flow chart of an algorithm for generating a segmented track point in an automatic parking track planning algorithm according to the present invention;
fig. 8 is a flow chart of re-planning a parking trajectory in an automatic parking trajectory planning algorithm according to the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings.
As shown in fig. 6, the automatic parking trajectory planning algorithm provided by the present invention includes the following steps:
s1: determining a travelable space
S11, identifying and acquiring obstacle information around the vehicle body;
s12, identifying and acquiring parking space information;
s13: mapping the obstacle information and the parking space information around the vehicle body to a unified coordinate system, and determining a vehicle driving space;
s2: selecting a target parking space, establishing a parking space coordinate system, acquiring target parking space information, calculating coordinates of a vehicle starting point, and determining coordinates of a target at a vehicle parking position according to the parking space information;
s3: determining a plurality of key points between a starting point of the vehicle and a target point of the vehicle parking position through a simulation planning algorithm;
s4: taking a key point adjacent to the starting point of the vehicle as a current target point, moving the vehicle from the starting point to the target point, continuously updating the next key point as a new target point when the starting point of the vehicle is consistent with the current target point, moving to enable the starting point of the vehicle to move to the new target point, and continuously parking; if the current vehicle starting point is inconsistent with the current target point through movement, returning to the step S3;
s5: and finishing parking until the starting point of the vehicle is superposed with the target point of the parking position of the vehicle.
In the step S13, the vehicle drivable space is a trajectory range in which the vehicle can park, that is, the obstacle information and the parking space information are unified into a coordinate system with the same reference point, and then the vehicle drivable space range can be obtained. And S2, the target parking space information comprises angular point coordinates of the target parking space, the length and the width of the parking space, wherein the parking space coordinate system is a coordinate system established by taking one vertex of the target parking space as an origin of coordinates.
And the simulation planning algorithm in the step S3 is to calculate the end point of each section of track in a segmented manner as a key point by adopting a method of common tangent of circular arcs and straight lines and combining geometric space constraint conditions that the vehicle can run. In the step S3, the geometric space constraint condition that the vehicle can travel is that the arcs of two adjacent key point tracks are tangent, the arc radius of each track section is equal to the minimum turning radius of the vehicle, and the vehicle in each track section does not collide with the parking space boundary and the road boundary. Wherein, the minimum turning radius is the turning radius when the vehicle is dead left or dead right.
In the concrete calculation, the circular arc section is calculated by adopting the minimum turning radius, if the vehicle cannot back for warehousing at one time due to the limitation of parking space or road boundary, the vehicle needs to back for warehousing again after driving forward for a certain distance, so that a warehouse kneading action is formed, the tracks of forward and backward in the warehouse kneading process are in a circumscribed relation, the circular arcs or straight lines are in a circumscribed relation until the final target position can be parked in the warehouse kneading process at the last time, and the position coordinates and angles of all key points in the middle are calculated. Wherein the minimum turning radius is the radius of the track of the left dead or right dead turn of the vehicle;
in the invention, the coordinate parameters of the vehicle are determined by adopting the Ackerman steering mechanism principle, wherein the Ackerman steering mechanism principle diagram is shown in figure 1; as shown in fig. 2, it is a schematic diagram of the geometric relationship between the coordinates of the vehicle contour points and the coordinates of the center point of the rear axle:
the Ackerman steering mechanism comprises the following specific principles: under the condition of low speed, the vehicle has kinematic constraint and no sideslip phenomenon, and the equivalent steering angle of a front axle of the vehicle isThe motion track of the robot makes a circle-drawing motion with a circle center, and the radius of the circle is independent of the speedWherein L is the wheel base, R is the radius of the motion curve of the center point of the rear axle, and the curvature is ρ =1/R, as shown in fig. 1.
When the vehicle parameter structure parameter is fixed, the equivalent rotation angle of the front axle of the vehicle determines the shape of the driving path of the midpoint of the rear axle, and the coordinate of any point of the vehicle body can be obtained through the coordinate of the midpoint of the rear axle, the included angle between the tangent line of the path and the coordinate system and the vehicle structure parameter. Therefore, in the invention, the position and posture of the midpoint of the rear shaft is selected as a research object, the midpoint of the rear shaft is recorded as M, and the position and posture of the M point is expressed as [ x y theta ]]And A, B, C, D point coordinates are [ x ] respectivelyA yA]、[xB yB]、[xC yC]、[xD yD]. Wherein L is the length of the wheel base of the vehicle, LfIs the front overhang length of the vehicle, LrIs the rear overhang length, LkThe vehicle width belongs to vehicle structure parameters, is provided by a general host factory and can be measured by the host factory. The relationship between the vehicle contour vertex and the vehicle rear axle midpoint can be obtained by the geometric relationship between the vehicle structure parameters and the figure 2, and is shown in the formulas (1-1) to (1-4).
In the invention, the coordinates of the initial point of the vehicle are the initial point of the research point of the vehicle, and the target point of the parking position of the vehicle is the target point of the research point of the vehicle after the parking of the vehicle is finished. In the whole process, the same vehicle research point is used as a research object to carry out track planning.
In the step S4, a plurality of specific track points between the two key points are generated according to a segmented track point generation algorithm, so that a continuous parking track is generated; when the vehicle is parked, the vehicle moves from the starting point to the target point along the parking track.
As shown in fig. 7, the process of generating the parking trajectory points by the segment trajectory point generation algorithm is as follows:
s411, generating a straight-line circular arc splicing line segment through a track planning algorithm, and then sampling at unequal intervals according to the length of the line segment and the position of a curvature catastrophe point to generate discrete track points;
s412, taking the discrete track points as control points, generating a smooth and continuous curve through an interpolation algorithm, and then dispersing to obtain track points at intervals of 0.1 m;
s413, calculating the parking track length to generate a smooth speed curve according to the parking speed and the acceleration limit, and dispersing to obtain the target speed of each track point; wherein the velocity calculation formula is:
and S414, connecting the plurality of track points to finally generate a smooth parking track.
Wherein,in step S411The path planning algorithm determines the path by planning a dubins curve, so as to generate a specific straight line circular arc splicing line segment, and the interpolation algorithm in the step S412 adopts the Cubic B-Spline interpolationThe tri-spline interpolates to generate a smooth continuous curve.
The purpose of planning the dubins curve is to find a curve which has the shortest distance from a starting point to a target point and meets the turning radius, the advancing direction, the initial relative position and the speed direction; the dubins path type is composed of a straight line (S), a left turn (L) and a right turn (R), and the dubins path type is totally 6 types: { RSR, RSL, LSR, LSL, RLR, LRL }.
In this embodiment, in step S1, a detection module is arranged on the periphery of the vehicle body to identify and acquire obstacle information and parking space information around the vehicle body, and the detection module is a camera or an ultrasonic module arranged on the periphery of the vehicle body, or a combination of the two. As shown in fig. 8, in step S4, the detection module monitors the obstacle information around the vehicle body in real time during parking to determine whether a new parking trajectory needs to be re-planned during parking, and the steps are as follows:
(1) The vehicle moves along with the parking track points, the detection module identifies the obstacle information around the vehicle body in real time in the moving process, and the obstacle information is mapped into a parking space coordinate system;
(2) Braking the vehicle to prevent collision if the obstacle enters the travelable space in step S1; detecting whether the obstacle exists continuously after 10s, and if the obstacle disappears, continuing parking; if the obstacle continuously exists, returning to the step S3;
(3) When the vehicle reaches the next key point position, the detection module carries out secondary parking space identification, and the identified parking space result is compared with the current target parking space to judge whether to update the parking space;
(4) And if the parking space is updated, returning to the step S1.
In the practical application process, the calculation of the key points of the vertical parking tracks, the calculation of the key points of the parallel parking garage entrance tracks and the calculation of the key points of the parallel parking exit tracks can be divided according to the position of the target parking space and the length of the practical parking space.
The following embodiments 1 to 3 respectively describe steps and specific algorithm processes for calculating key points of a vertical parking trajectory, calculating key points of a parallel parking trajectory, and calculating key points of a parallel parking trajectory.
Example 1:
in this embodiment, the calculation of key points of a vertical parking trajectory is described, and the trajectory refers to fig. 3, which includes the following specific steps:
the first step is as follows: backing up and warehousing, knowing that the tail of the vehicle just collides with the boundary of the parking space, and simultaneously ensuring that the vehicle does not collide with the right vertex angle of the parking space, wherein the motion track in the process is an arc P1P2;
wherein, define P1The coordinates of the point are (x)p1,yp1,θp1) Wherein y isp1Is confirmed to be known after the parking space is searched, thetap1For initial angle set to 0 degrees, mainly solve for xp1;
Known line segment O1P1Is the turning radius R, E is the outer side point of the right rear wheel of the vehicle, H is O1P1The intersection with the x-axis is obtained from the geometric relationship:
O1O=O1E1=O1P1-Lk/2=R-Lk/2
O1H=O1P1-P1H=R-yp1
then, solve for P2Coordinates of points (x)p2,yp2,θp2) First, solve for thetap2;
Assuming that the rear of the vehicle collides with the left boundary (or left boundary extension line) of the parking space, as shown in fig. 4, knowing the width w of the parking space, it can be obtained according to the geometrical relationship:
xD=-w
O1D=R+Lk/2
θp2=θD=arcsin((xp1-xD)/O1D)=arcsin((xp1+w)/(R+Lk/2))
yD=O1D×cosθp2-O1H=(R+Lk/2)×cosθp2-(R-yp1)
obtaining the coordinate point P from the formulas 1-42The relationship to D is as follows:
the second step: the vehicle advances, the angle is adjusted to make the course angle approach 90 DEG, the motion track is as the arc P in figure 42P3;
The third step: the vehicle backs to the center of the parking space, the target course angle is 90 degrees, and the motion track is an arc P3P4;
Wherein, according to P2Coordinates of points (x)p2,yp2,θp2) Can easily solve O2Coordinates are as follows:
xO2=xp2-R sinθp2
yO2=yp2+R cosθp2
at the same time, due to O2And O3Tangent, O3Tangent to the center line of the parking space, the following relationship exists:
xO3=-w/2+R
xp3=(xO3+xO2)/2
yp3=(yO3+yO2)/2
θp3=arcsin((xO3-xO2)/2R)
xp4=-w/2
yp4=yO3
θp4=π/2
the fourth step: the vehicle continues to back to the final target position, is a straight line segment, so that the vehicle head is flush with the top of the parking space, and the running track of the vehicle is P4P5;
xp5=-w/2
yp5=-L-Lf
θp5=π/2
In the calculation of the key points of the vertical parking trajectory in the embodiment, each section of trajectory needs to be satisfied, and the vehicle does not collide with the parking space boundary and the road boundary; arc radius = minimum turning radius of vehicle, O1And O2Tangent, O2And O3Tangent, O3Is tangent with the central line of the parking space.
Example 2:
in this embodiment, the calculation of key points of a parallel parking garage entrance trajectory is described, where the trajectory may refer to fig. 5, the calculation of the key points of the parallel parking garage entrance trajectory adopts a reverse push algorithm, and it is assumed that how a vehicle needs to park out of a parking space in the parking space and does not collide with a boundary of the parking space, so as to push out the key points of the parking trajectory, and the parking process is the reverse process of the parking out process; the method comprises the following steps:
assuming a horizontal berthing-out starting point position P1If the course angle is 0, P2For vehicles along O1The position of the arc when it is in contact with the right boundary of the parking space, P, in a similar manner3For vehicles from P2Position along O2The circular arc backs to the position contacted with the left boundary of the parking space, and the circular arc pushes inwards in sequence until Pn(n =2k, k =1,2, 3.. The.) when the vehicle can be directly parked out of the parking space without colliding with the boundary of the parking space, the parked track points are sequentially P1,P2,P3,...PnTherefore, the key points of the multi-step horizontal docking trajectory are: pn,Pn-1,...,P3,P2,P1。
The calculation process is as follows:
firstly, setting the final target point position of the vehicle when the vehicle is parked in the parking space, wherein the depth of the parallel parking space is known as d, the length is known as c, and P1 (x)p1,yp1,θp1) Setting the coordinate position of the final target position as follows:
xp1=-c-L/2
yp1=-d/2
θp1=0
simulating the process of parking and taking out of the parking space with the starting point P1When the steering wheel is left dead, the steering wheel is opened and the vehicle is driven to P2When the vehicle collides with the right boundary of the parking space, the steering wheel is driven to reverse until reaching the position P3And the vehicle collides with the left boundary of the parking space or the bottom line of the parking space, and the vehicle can be successfully driven out of the parking space after the vehicle is not collided with the right boundary in the left-opening dead-moving process.
P1After the position of P is known, P can be easily solved according to the constraint condition2Due to P2When the vehicle right vertex B just collides with the right boundary of the parking space, the following relationship exists:
xB=0
yB<0
the vehicle can be driven from P using the approximation1Calculating the vertex B coordinate of the new position every 0.1m advance of the position, if x is satisfiedB<0,yB<0 then continues to accumulate until x is satisfiedB>0,yB<0 is stopped, the last position is P2Position of coordinate points, from P2Backing to position P3The constraint conditions are also satisfied:
yC>-d
xD>-c
p can be obtained using approximation3Coordinate point, and so on, when PnSatisfy xB>0,yB>When 0, the vehicle can safely leave the parking space, and the calculated coordinate position is reversed to obtain a key point P for horizontal parkingn,Pn-1,...,P3,P2,P1。
Supplementing: known coordinate point P1(xp1,yp1,θp1) And a new coordinate point position calculation process after 0.1m of advance:
θ=0.1/R+θp1
x=xp1+R sinθ-R sinθp1
y=yp1+R cosθp1-R cosθ
in the calculation of key points of multi-step parallel parking garage entering tracks, the following conditions need to be met: the vehicle does not collide with the parking space boundary and the road boundary; the radius of the circular arc = the minimum turning radius of the vehicle, each section of track is in a tangent relation, and each point of the vehicle outline makes concentric circle motion with the same center of circle, but the radius is different.
Example 3:
this embodiment describes the parallel-parked trajectory key point calculation, which has the same principle as the parallel-parked trajectory key point calculation of embodiment 2, and the trajectory refers to fig. 5, and the steps are as follows:
according to the position P of the ultrasonic radar or the camera measuring the horizontal berthing starting point1If the default course angle is 0, then P2For vehicles along O1The position of the arc when it is in contact with the right boundary of the parking space, P, in a similar manner3For vehicles from P2Position along O2The circular arc backs until the position of the left boundary of the parking space is contacted, and the circular arc pushes inwards in sequence until the position is Pn(n =2k, k =1,2, 3. -) the vehicle can be parked out of the parking space directly without colliding with the boundary of the parking space, and the parking track points are P in sequence1,P2,P3,...Pn;
In parallel berthing trajectory key point calculation, the following conditions need to be satisfied: the vehicle does not collide with the parking space boundary and the road boundary; the radius of the circular arc = the minimum turning radius of the vehicle, each section of track is in a tangent relation, and each point of the vehicle outline makes concentric circle motion with the same center of circle, but the radius is different.
While specific embodiments of the present invention have been described in detail, the description is merely illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the invention. All equivalent changes and modifications made within the scope of the present invention shall fall within the scope of the present invention.
Claims (8)
1. An automatic parking trajectory planning algorithm is characterized in that: the method comprises the following steps:
s1: determining a travelable space;
s2: selecting a target parking space, establishing a parking space coordinate system, acquiring target parking space information, calculating coordinates of a starting point of a vehicle, and determining coordinates of a target point of a parking position of the vehicle according to the target parking space information;
s3: determining a plurality of key points between a starting point of the vehicle and a target point of the vehicle parking position through a simulation planning algorithm;
s4: taking a key point adjacent to the starting point of the vehicle as a current target point, moving the vehicle from the starting point to the target point, continuously updating the next key point as a new target point when the starting point of the vehicle is consistent with the current target point, moving to enable the starting point of the vehicle to move to the new target point, and continuously parking; if the current vehicle starting point is inconsistent with the current target point through movement, returning to the step S3;
s5: until the starting point of the vehicle is superposed with the target point of the vehicle parking position, parking is finished;
in the step S4, the process of generating the parking track points by the segment track point generation algorithm is as follows:
s411, generating a straight line circular arc splicing line segment through a track planning algorithm, and then generating discrete track points according to the length of the line segment and the position of a curvature catastrophe point by non-equal-interval sampling;
s412, taking the discrete track points as control points, generating a smooth and continuous curve through an interpolation algorithm, and then dispersing to obtain track points at intervals of 0.1 m;
s413, calculating the parking track length to generate a smooth speed curve according to the parking speed and the acceleration limit, and dispersing to obtain the target speed of each track point;
and S414, connecting the plurality of track points to finally generate a smooth parking track.
2. The automated parking trajectory planning algorithm of claim 1, wherein: the step S1 specifically includes the steps of:
s11, identifying and acquiring obstacle information around the vehicle body;
s12, identifying and acquiring parking space information;
s13: and mapping the obstacle information and the parking space information around the vehicle body to a unified coordinate system to determine the vehicle driving space.
3. The algorithm for planning an automatic parking trajectory according to claim 2, wherein: and in the step S2, the target parking space information comprises the angular point coordinates of the target parking space, and the length and the width of the target parking space.
4. The automated parking trajectory planning algorithm of claim 2, wherein: the simulation planning algorithm in the step S3 is to calculate the end point of each section of track in a segmented manner as a key point by adopting a method of common tangent of an arc and a straight line and combining geometrical space constraint conditions under which the vehicle can run.
5. The automated parking trajectory planning algorithm of claim 4, wherein: and S3, according to the geometric space constraint condition that the vehicle can run, the arc radius of each section of track is equal to the minimum turning radius of the vehicle, and the vehicle does not collide with the parking space boundary and the road boundary in each section of track.
6. The automated parking trajectory planning algorithm of claim 1, wherein: s4, generating a plurality of specific track points between two key points according to a segmented track point generation algorithm so as to generate a continuous parking track; when parking, the vehicle moves from the starting point to the target point along the parking track.
7. The algorithm for planning an automatic parking trajectory according to claim 1, wherein: in the step S1, a detection module is arranged on the periphery of a vehicle body of the vehicle to identify and acquire obstacle information and parking space information around the vehicle body, and the detection module is a camera or an ultrasonic module arranged on the periphery of the vehicle body or is used in combination with the camera or the ultrasonic module.
8. The algorithm for planning an automatic parking trajectory according to claim 6, wherein: in the step S4, the detection module monitors the obstacle information around the vehicle body in real time in the parking process to judge whether a new parking track needs to be planned again in the parking process, and the steps are as follows:
(1) The vehicle moves along with the parking track points, the detection module identifies the obstacle information around the vehicle body in real time in the moving process, and the obstacle information is mapped to the parking space coordinate system;
(2) Braking the vehicle to prevent collision if the obstacle enters the travelable space in step S1; detecting whether the obstacle exists continuously after 10s, and if the obstacle disappears, continuing parking; if the obstacle continuously exists, returning to the step S3;
(3) When the vehicle reaches the next key point position, the detection module carries out parking space secondary identification, and compares the identified parking space result with the current target parking space to judge whether to update the parking space;
(4) And if the parking space is updated, returning to the step S1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110675702.XA CN113306549B (en) | 2021-06-17 | 2021-06-17 | Automatic parking trajectory planning algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110675702.XA CN113306549B (en) | 2021-06-17 | 2021-06-17 | Automatic parking trajectory planning algorithm |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113306549A CN113306549A (en) | 2021-08-27 |
CN113306549B true CN113306549B (en) | 2022-11-01 |
Family
ID=77379477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110675702.XA Active CN113306549B (en) | 2021-06-17 | 2021-06-17 | Automatic parking trajectory planning algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113306549B (en) |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113799766B (en) * | 2021-09-17 | 2023-04-18 | 东风汽车集团股份有限公司 | Constrained parallel parking path planning method, electronic device and storage medium |
CN113696886B (en) * | 2021-09-17 | 2023-04-25 | 中国第一汽车股份有限公司 | Automatic determination method and device for parking track, medium and electronic equipment |
CN113799768B (en) * | 2021-09-27 | 2023-06-27 | 惠州华阳通用智慧车载系统开发有限公司 | Automatic parking method based on vertical parking space |
CN114132304B (en) * | 2021-10-13 | 2023-10-13 | 武汉光庭信息技术股份有限公司 | Speed planning method and device in autonomous parking |
CN113887060B (en) * | 2021-10-13 | 2024-05-10 | 英博超算(南京)科技有限公司 | Novel automatic parking system vehicle positioning method |
CN114001745B (en) * | 2021-10-25 | 2023-11-24 | 东南大学 | Electric automobile parking guide system and position detection and evaluation method thereof |
CN113985889B (en) * | 2021-11-11 | 2024-04-30 | 北京三快在线科技有限公司 | Track planning method and device, storage medium and electronic equipment |
CN114030463B (en) * | 2021-11-23 | 2024-05-14 | 上海汽车集团股份有限公司 | Path planning method and device for automatic parking system |
CN114013428B (en) * | 2021-11-29 | 2024-08-09 | 江苏大学扬州(江都)新能源汽车产业研究所 | Parking path dynamic planning method based on intermolecular acting force |
CN114248761B (en) * | 2021-12-10 | 2024-06-04 | 重庆长安汽车股份有限公司 | Target track discretization method, parking path tracking error optimization method and system |
CN114103934B (en) * | 2021-12-23 | 2023-06-16 | 岚图汽车科技有限公司 | Automatic parking path planning method, device, equipment and readable storage medium |
CN114274952B (en) * | 2021-12-24 | 2023-09-22 | 重庆长安汽车股份有限公司 | Autonomous parking method and system for vertical parking space, storage medium and electronic equipment |
CN116353619A (en) * | 2021-12-28 | 2023-06-30 | 魔门塔(苏州)科技有限公司 | Automatic parking path planning method, device, medium and equipment |
CN114516322B (en) * | 2022-02-24 | 2024-04-26 | 重庆长安汽车股份有限公司 | System and method for parking vehicle, vehicle and computer storage medium |
CN114701875A (en) * | 2022-03-08 | 2022-07-05 | 中国人民解放军空军工程大学 | Guiding device and method for loading and unloading of railway vehicle under light condition |
CN115123202A (en) * | 2022-07-25 | 2022-09-30 | 山东理工大学 | Optimal path planning-based target parking space selection method and system |
CN115489515A (en) * | 2022-08-29 | 2022-12-20 | 武汉理工大学 | Automatic parking trajectory planning method for narrow vertical parking space and electronic equipment |
CN115456297B (en) * | 2022-09-28 | 2024-05-21 | 远峰科技股份有限公司 | Automatic parking path optimization method and device |
CN116442992B (en) * | 2023-06-15 | 2023-09-05 | 广汽埃安新能源汽车股份有限公司 | Parking control method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1987357B (en) * | 2006-12-26 | 2010-05-19 | 浙江工业大学 | Intelligent parking auxiliary device based on omnibearing computer sight |
CN109866761B (en) * | 2019-03-05 | 2020-07-10 | 重庆长安汽车股份有限公司 | Automatic parking path planning method, system and computer readable storage medium |
JP7018048B2 (en) * | 2019-06-24 | 2022-02-09 | 本田技研工業株式会社 | Parking support system |
CN112829740B (en) * | 2019-11-25 | 2022-11-04 | 亿咖通(湖北)技术有限公司 | Vehicle control method and device for autonomous parking and vehicle |
CN112537294B (en) * | 2020-12-23 | 2022-05-17 | 上汽通用汽车有限公司 | Automatic parking control method and electronic equipment |
-
2021
- 2021-06-17 CN CN202110675702.XA patent/CN113306549B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113306549A (en) | 2021-08-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113306549B (en) | Automatic parking trajectory planning algorithm | |
CN109987092B (en) | Method for determining vehicle obstacle avoidance and lane change time and method for controlling obstacle avoidance and lane change | |
CN109976329B (en) | Planning method for vehicle obstacle avoidance and lane change path | |
CN110949374B (en) | Automatic parallel parking path planning method based on two-section second-order Bezier curve | |
CN111307152B (en) | Reverse generation planning method for autonomous parking path | |
CN113895463B (en) | Path planning method suitable for turning around of automatic driving vehicle | |
CN110696819B (en) | Automatic parking path planning method and system | |
CN105197010B (en) | Auxiliary parking system and auxiliary are parked control method | |
Zheng et al. | RRT based path planning for autonomous parking of vehicle | |
JP6989333B2 (en) | Parking support device | |
CN106020200A (en) | AGV driven by wheel hub motor and its path planning method | |
CN108759829B (en) | Local obstacle avoidance path planning method for intelligent forklift | |
JP5666327B2 (en) | Unmanned moving body and control method of unmanned moving body | |
JP6759143B2 (en) | Parking support device | |
CN111547045B (en) | Automatic parking method and device for vertical parking spaces | |
CN114516322B (en) | System and method for parking vehicle, vehicle and computer storage medium | |
CN115195790B (en) | Method and device for predicting vehicle track, electronic equipment and storage medium | |
CN113212424B (en) | Vehicle and automatic parking method and device thereof | |
JP2014054912A (en) | Parking support system | |
CN113589685B (en) | Vehicle moving robot control system and method based on deep neural network | |
CN112092804B (en) | Automatic parking method and system | |
CN113978452A (en) | Automatic parallel parking path planning method | |
CN113885525A (en) | Path planning method and system for automatically driving vehicle to get rid of trouble, vehicle and storage medium | |
US11794756B2 (en) | Estimating vehicle velocity based on variables associated with wheels | |
CN111547047B (en) | Automatic parking method and device for parallel parking spaces |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |