CN111552296B - Local smooth track planning method based on curved cylindrical coordinate system - Google Patents
Local smooth track planning method based on curved cylindrical coordinate system Download PDFInfo
- Publication number
- CN111552296B CN111552296B CN202010410092.6A CN202010410092A CN111552296B CN 111552296 B CN111552296 B CN 111552296B CN 202010410092 A CN202010410092 A CN 202010410092A CN 111552296 B CN111552296 B CN 111552296B
- Authority
- CN
- China
- Prior art keywords
- local
- planning
- unmanned vehicle
- coordinate system
- time
- 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
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000004888 barrier function Effects 0.000 claims abstract description 4
- 230000001133 acceleration Effects 0.000 claims description 46
- 230000008859 change Effects 0.000 claims description 31
- 230000014509 gene expression Effects 0.000 claims description 29
- 238000005457 optimization Methods 0.000 claims description 25
- 230000000007 visual effect Effects 0.000 claims description 10
- 206010048669 Terminal state Diseases 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 4
- 238000009825 accumulation Methods 0.000 claims description 3
- 238000010276 construction Methods 0.000 claims description 3
- 238000006073 displacement reaction Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 47
- 238000005070 sampling Methods 0.000 description 7
- 238000013461 design Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000036461 convulsion Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000009499 grossing Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000010485 coping Effects 0.000 description 1
- 238000000354 decomposition reaction Methods 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000002787 reinforcement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0217—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with energy consumption, time reduction or distance reduction criteria
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0231—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means
- G05D1/0246—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means
- G05D1/0251—Control of position or course in two dimensions specially adapted to land vehicles using optical position detecting means using a video camera in combination with image processing means extracting 3D information from a plurality of images taken from different locations, e.g. stereo vision
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0214—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory in accordance with safety or protection criteria, e.g. avoiding hazardous areas
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0221—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving a learning process
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0212—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory
- G05D1/0223—Control of position or course in two dimensions specially adapted to land vehicles with means for defining a desired trajectory involving speed control of the vehicle
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D1/00—Control of position, course or altitude of land, water, air, or space vehicles, e.g. automatic pilot
- G05D1/02—Control of position or course in two dimensions
- G05D1/021—Control of position or course in two dimensions specially adapted to land vehicles
- G05D1/0276—Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Aviation & Aerospace Engineering (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Multimedia (AREA)
- Electromagnetism (AREA)
- Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)
Abstract
A local smooth track planning method based on a curved column coordinate system belongs to the technical field of unmanned vehicle track planning. The invention solves the problems of poor track continuity and smoothness and difficult track constraint of the existing unmanned vehicle local path planning method in the three-dimensional space. According to the invention, a smooth global path is planned according to map information and the target task requirement of the unmanned vehicle; taking the global path as a base line, and creating a curved column coordinate system; converting the motion state information of the unmanned vehicle from a global coordinate system to a curved column coordinate system; planning a local motion track of the unmanned vehicle in the future time T by using a cost function and time space discretization according to the global path; and deleting the local motion trail which is collided with the barrier and exceeds the power constraint range of the unmanned vehicle, and taking the local motion trail with the lowest cost function value as the optimal motion trail of the local planning. The method is suitable for planning the local motion trail of the unmanned vehicle.
Description
Technical Field
The invention belongs to the technical field of unmanned vehicle trajectory planning.
Background
In recent years, unmanned vehicles in three-dimensional space, such as small unmanned submarines and unmanned planes, have attracted attention of a large number of researchers at home and abroad due to the advantages of simple models, convenience in manufacturing, rapidness in response, good maneuverability, low cost and the like. However, in a complex three-dimensional space, planning a local path in real time, which can successfully avoid an obstacle, has a smooth track and does not change a motion state suddenly, has been one of the main research subjects for realizing high dynamic operation of an unmanned vehicle. Ensuring that a long and straight area of an unknown obstacle passes through quickly and stably in a three-dimensional space and successfully and accurately avoiding the obstacle to reach a target point is still very challenging work. This work focuses on methods that obtain optimal local paths given the knowledge of global paths, which is essentially an optimization problem.
Planning and controlling task level of unmanned vehicle in three-dimensional space can be divided into three levels: global path planning, local path following. Three levels are from high to low, abstract to concrete: in the highest layer of the whole task planning, a smooth path (path) from a starting point to an end point needs to be acquired according to the existing task, a map and other constraint information before the unmanned vehicle runs; local track planning (Local track planning) is arranged on a second layer of the whole mission planning, and the Local track planning is based on an obtained global path and combines the information of the surrounding environment observed in real time by a sensor carried on the unmanned vehicle in the three-dimensional space to plan a track (track) which accords with the current environmental constraint and the unmanned vehicle dynamic constraint in real time; local Path following (Path tracking) is performed on the lowest layer, namely the most specific layer, of task planning and control of the unmanned vehicle, and the unmanned vehicle uses a model-based or model-free control rate according to the current state of the unmanned vehicle and a local track obtained by the previous layer to realize that the local Path is followed with lower deviation. In the whole task planning and controlling process, any one of the above layers is the research focus at present, and the local path planning is located at the position where the local path planning starts and ends, and the difficulty is that the planned local path is guaranteed to meet the optimization of a certain degree (speed, curvature, smoothness and the like) and the feasibility of the path (obstacle avoidance, dynamics and the like).
The current method for local path planning can be divided into autonomous learning-based and non-autonomous learning-based types, wherein an end-to-end planning and control method based on deep learning and an algorithm based on reinforcement learning are greatly developed in theory in recent years, but the method has great problems in safety, reliability and stability and cannot be used in unknown environments at all; the non-autonomous learning algorithm can be classified into a search-based planning algorithm and a sampling-based planning algorithm. The search-based planning algorithm mainly represents an A-algorithm and a Dijkstra algorithm, and the two algorithms are well applied to many occasions, particularly in the fields of games, automobile navigation and the like, but have long planning time and large consumption and calculation power, and cannot be well applied to unmanned vehicles which run in high dynamic state in areas with unknown obstacle positions; the RRT algorithm and the PRM algorithm are mainly represented in the planning algorithm based on sampling, but the randomness of sampling in a three-dimensional space is higher, and the obtained path cannot be optimal, and a lot of burrs and jitters can appear and exceed the model constraint and the dynamic range of the unmanned vehicle.
In order to solve the problems, a special curve splicing method which is more suitable for unmanned vehicle path planning in a three-dimensional space appears: the path planning algorithm based on the smooth connection straight line and the circular arc can easily obtain a smooth path according to the initial state and the target configuration of the unmanned carrier, but the obtained path has poor flexibility, the centripetal acceleration of the unmanned carrier in a three-dimensional space at the connection part of the straight line and the circular arc has sudden change, and the requirement on following the path of the unmanned carrier behind is higher; the path obtained by the path planning algorithm based on the Bezier curve is more intelligent, four control points of the path can be edited, but the Bezier curve is difficult to meet the geometric continuity condition when spliced, and the Bezier curve is difficult to further optimize; the path planning algorithm based on the B-spline curve can obtain a smoothly spliced path, but the curvature of the B-spline curve is difficult to represent, and the curvature constraint condition of the unmanned carrier in the three-dimensional space is not easy to guarantee.
Disclosure of Invention
The invention provides a local smooth track planning method based on a curved cylindrical coordinate system, which aims to solve the problems that the existing method for planning the local path of an unmanned vehicle in a three-dimensional space is poor in track continuity and smoothness and difficult in track constraint.
The invention relates to a local smooth track planning method based on a curved column coordinate system, which comprises the following specific steps:
the method comprises the following steps: planning a smooth global path according to the map information and the target task requirement of the unmanned vehicle;
step two: taking the global path as a base line, and creating a curved column coordinate system;
step three: carrying out environment construction on the visual space of the unmanned vehicle, and extracting barrier information in a coordinate system of the visual space of the unmanned vehicle;
step four: converting the motion state information of the unmanned vehicle from a global coordinate system to a curved column coordinate system; converting the obstacle information in the visual space of the unmanned vehicle into obstacle information of a global coordinate system;
planning the local motion trail of the unmanned vehicle in the future time T by using a cost function and a time-space discretization algorithm according to the global path; acquiring a plurality of possible local motion tracks;
step six, deleting invalid local motion tracks from multiple possible local motion tracks according to the global coordinate system obstacle information obtained by conversion in the step four, and obtaining multiple effective local motion tracks; and step seven, calculating a cost function value of each effective local motion track, and taking the local motion track with the lowest cost function value as the optimal motion track of the local planning.
Further, in the present invention, the specific method for creating the curved cylindrical coordinate system with the global path as the baseline in the second step is as follows:
taking the global path as a z-axis, expressing the normal plane of each point on the path by using polar coordinates (r, theta), wherein r is the distance between the coordinate point and the global path, and theta is the spiral angle of the coordinate point around the global path, and obtaining a curved cylindrical coordinate system (r, theta, z).
Further, in the present invention, the invalid local motion trajectory in step six includes: the local motion trail of the collision with the obstacle and the local motion trail beyond the power constraint range of the unmanned vehicle.
Further, in the present invention, the cost function in the step five is:
C=krCr+kzCz+kθCθ (1)
where C is the total cost function, krIs a proportionality coefficient of a radial cost function, CrAs a radial cost function, kzIs a proportionality coefficient of a course cost function, CzAs a course cost function, kθIs the proportionality coefficient of the spiral cost function, CθIs a spiral cost function.
Radial cost function CrComprises the following steps:
wherein, Ct(r (t)) is an optimization index of the radial acceleration change rate, r (T) is the distance from the position of the local planning end to the global path at the time of the local planning, r (t) is the distance from the position of the unmanned vehicle to the global path at the time of t,is the radial weight coefficient, k, of the local planning time index of this timejrThe radial weight coefficient of the current local planning acceleration change rate index,is the radial weight coefficient of the terminal state index of the local planning,is the square of the third derivative of r (t) over time.
The course cost function is:
wherein, Ct(z (t)) is an optimization index of the change rate of the heading acceleration, z (t) is the course of the heading motion of the unmanned vehicle at the time t,is the cost function of the local planning terminal moment in the z-axis direction; z (T) is a value in the z-axis direction at the time when the local planning is finished,is the first derivative of z (T),is the second derivative of z (T),is the course weight coefficient of the local planning acceleration change rate index,the course weight coefficient of the local planning time index is as follows:
wherein, Ct(theta (t)) is an optimization index of the rate of change of the helical acceleration, theta (0) is the helix angle at the initial time, theta (t) is the helix angle at time t,is the spiral direction weight coefficient of the current local planning acceleration rate index,is the spiral direction weight coefficient of the terminal state index of the local planning,is the spiral direction weight coefficient of the current local planning time index.
Further, the specific method for acquiring multiple possible local motion trajectories in step five is as follows:
calculating an expression of a distance r (t) between the position of the unmanned vehicle and a global path at the time t, an expression of a displacement z (t) of course motion of the unmanned vehicle at the time t and an expression of a spiral angle theta (t) at the time t by using a time-space discretization algorithm and an optimization index of a radial acceleration change rate, an optimization index of a course acceleration change rate and an optimization index of a spiral acceleration change rate;
the specific method for solving the expression of the distance r (t) between the position of the unmanned vehicle and the global path is as follows:
order:
requirement Ct(r (t)) minimum, r (t) is required to satisfyTherefore, the variable r (t) which is indexed by the accumulation of the acceleration rate must satisfy the fifth order polynomial relationship:
r(t)=a0+a1t+a2t2+a3t3+a4t4+a5t5 (6)
a0、a1、a2、a3、a4、a5coefficients, which are all fifth order polynomials, are substituted for the initial and final values:
r(0)=a0 (7)
r(T)=a0+a1T+a2T2+a3T3+a4T4+a5T5 (10)
obtaining a0、a1And a2A value of (d); wherein r (0) is the distance of the unmanned vehicle from the global path at the initial time,is the radial velocity of the unmanned vehicle at the initial moment,is the radial acceleration of the unmanned vehicle at the initial moment, r (T) is the target radial position of the unmanned vehicle when the local planning is finished,when the local planning is finished, the target radial speed of the unmanned vehicle,the target radial acceleration of the unmanned vehicle is obtained when the local planning is finished;
bringing (7), (8) and (9) into (10), (11) and (12) to obtain:
solve to a3、a4And a5Obtaining an expression of r (t); obtaining an expression of z (t) and an expression of theta (t) in the same way, and further obtaining a possible local motion trajectory as follows:
wherein, b0、b1、b2、b3、b4、b5、c0、c1、c2、c3、c4、c5The coefficients of expression z (t) and the coefficients of expression θ (t), respectively. The invention adopts a cost function and a time-space decomposition algorithm to findThe method solves the balance between the path optimality and the problem solvability, balances the calculation efficiency and the cost function complexity, and is very suitable for the local trajectory planning of unmanned vehicles such as high-dynamic unmanned submarines, unmanned aerial vehicles and the like in the three-dimensional space. The smoothness of the local motion trail is effectively improved. And a new coordinate system is provided, and under the coordinate system, the description of task planning problems of unmanned vehicles such as unmanned submarines, unmanned aerial vehicles and the like and the design of cost functions can be greatly simplified, the continuity and smoothness of the motion trail are improved, and the constraint of the motion trail is effectively realized.
Drawings
FIG. 1 is a flow chart of a local smooth trajectory planning method based on a curved cylindrical coordinate system according to the present invention;
FIG. 2 is a schematic representation of a curved cylindrical coordinate system;
FIG. 3 is a schematic diagram of a curved cylinder coordinate system and a global coordinate system;
FIG. 4 is the result of radial planning in an example;
FIG. 5 is the result of the spiral direction planning in the example;
FIG. 6 is a result of the course planning in an example;
fig. 7 is a partial planned trajectory of a drone in a particular embodiment.
Detailed Description
In a first embodiment, the present embodiment is described with reference to fig. 1 to 3, and the method for planning a local smooth trajectory based on a curved cylindrical coordinate system in the present embodiment includes the following specific steps:
the method comprises the following steps: planning a smooth global path according to the map information and the target task requirement of the unmanned vehicle;
step two: taking the global path as a base line, and creating a curved column coordinate system;
step three: carrying out environment construction on the visual space of the unmanned vehicle, and extracting barrier information in a coordinate system of the visual space of the unmanned vehicle;
step four: converting the motion state information of the unmanned vehicle from a global coordinate system to a curved column coordinate system; converting the obstacle information in the visual space of the unmanned vehicle into obstacle information of a global coordinate system;
planning the local motion trail of the unmanned vehicle in the future time T by using a cost function and a time-space discretization algorithm according to the global path; acquiring a plurality of possible local motion tracks;
step six, deleting invalid local motion tracks from multiple possible local motion tracks according to the global coordinate system obstacle information obtained by conversion in the step four, and obtaining multiple effective local motion tracks;
the invalid local motion profile comprises: the local motion trail of the collision with the obstacle and the local motion trail beyond the power constraint range of the unmanned vehicle.
And step seven, calculating a cost function value of each effective local motion track, and taking the local motion track with the lowest cost function value as the optimal motion track of the local planning.
In the embodiment, the specific implementation steps of the local planning algorithm can be seen, collision avoidance and unmanned aerial vehicle dynamics constraint are considered independently and are not designed in the cost function, because the introduction of the collision penalty term brings a large number of parameters which need to be adjusted manually, so that the design of the cost function becomes extremely complex, and the calculation amount and the complexity of track optimization can be greatly increased.
The optimization index only considers the running stability of the unmanned vehicle and the smoothness of the track, namely the acceleration continuity of the unmanned vehicle is ensured, and jerk (namely the change rate of the acceleration) is selected as one of the optimization indexes; because global path planning is related to task layers and static map information, but does not necessarily adapt to slight details and temporary dynamic changes in the environment, local path planning mainly exists for coping with temporary conditions of the environment, so that local paths are slightly adjusted on the basis of global paths, and the deviation is not too large relative to the global paths, and the difference between the local paths and the global paths is selected as one of optimization indexes; the local path planning can also be regarded as that of the unmanned aerial vehicle for the self track in a future periodThe prediction is that as the unmanned vehicle moves, the information of the environment acquired by the onboard sensor is more and more abundant, the path planned by the unmanned vehicle in the future time T may have a better path along with the movement of the unmanned vehicle, even sometimes, the original path is directly changed into invalid due to new change of the environment, so that the reliability of the actually planned path may be worse if the planned time T is longer, but if the T is too short, the power requirement on the unmanned vehicle is higher, most of the paths may exceed the dynamics constraint of the unmanned vehicle, so the planned time T should be valued in a reasonable range according to the actual task, and the planned time T is selected as one of the cost functions. The indexes can be easily designed under a curved cylindrical coordinate system. The cost function is thus decomposed into three terms along the coordinate axes (r, θ, z) of the curved cylindrical coordinate system: radial cost CrHeading cost CzAnd helical cost Cθ。
The unmanned vehicle comprises an unmanned aerial vehicle, and is also suitable for unmanned submarines and robots moving in three-dimensional space, such as magnetic robots, medical nano robots and the like.
Further, in this embodiment, the specific method for creating the curved cylindrical coordinate system with the global path as the baseline in the second step is as follows:
taking the global path as a z-axis, expressing the normal plane of each point on the path by using polar coordinates (r, theta), wherein r is the distance between the coordinate point and the global path, and theta is the spiral angle of the coordinate point around the global path, and obtaining a curved cylindrical coordinate system (r, theta, z).
In the present embodiment, the curved cylindrical coordinate system is established with the global path as a base line, and for a smooth global path, the path is taken as a z-axis, and the normal plane of each point on the path is described using polar coordinates (r, θ) (as shown in fig. 2). Assuming the global path is a straight line, the coordinate system is degraded to a cylindrical coordinate system, where r is the distance of the coordinate point from the global path and θ is the spiral angle of the coordinate point around the global path. When the cylindrical coordinate system is generalized to an arbitrary smooth global path, a so-called "curved cylindrical coordinate system" (r, θ, z) is obtained. By utilizing the idea of Newton-Lei-Netzian infinitesimal, each small segment in the curved cylindrical coordinate system can be approximately regarded as a cylindrical coordinate system, so that the curved cylindrical coordinate system can also be considered to be formed by splicing countless cylindrical coordinate systems. For the problem of planning the local track of the unmanned vehicle, in each transient state, z is the flying distance of the unmanned vehicle along the global path direction, r is the distance between the unmanned vehicle and the global path in the current normal plane, r is 0 to represent that the unmanned vehicle is on the global path, and θ is 0, and the orientation is horizontal to the right relative to the direction time of the global path. Because the curved cylindrical coordinate system is established on the basis of the global path, the actual physical meaning of the cost function can be conveniently expressed on the basis of the coordinate system.
In this embodiment, the cost function in the step five is:
C=krCr+kzCz+kθCθ (1)
where C is the total cost function, krIs a proportionality coefficient of a radial cost function, CrAs a radial cost function, kzIs a proportionality coefficient of a course cost function, CzAs a course cost function, kθIs the proportionality coefficient of the spiral cost function, CθIs a spiral cost function.
kr、kz、kθThe scale factor of the cost in the three directions can be understood as the total cost obtained by weighted average of the costs in the three directions. In different actual planning tasks, different influence degrees of different costs on the path may be emphasized, for example, in a certain task, it is generally desirable that the path is not spiral as much as possible, and the change of distance from the global path is less important, so that k can be determinedθThe adjustment is larger, when the distance between the local path and the global path is important, k is setrAdjust for big, etc. These three parameters are adjusted by the user depending on the emphasis of the actual problem. k is a radical ofr、kz、kθThe three parameters have another effect because the design of each cost function is different, and the cost functionThere are also respective scaling parameters, and the cost values in the last three directions are not necessarily in the same order of magnitude, and the order of magnitude needs to be adjusted by the three parameters.
Radial cost function CrComprises the following steps:
wherein, Ct(r (t)) is an optimization index of the radial acceleration change rate, r (T) is the distance from the position of the local planning end to the global path at the time of the local planning, r (t) is the distance from the position of the unmanned vehicle to the global path at the time of t,is the radial weight coefficient of the local planning time index,the radial weight coefficient of the current local planning acceleration change rate index,is the radial weight coefficient of the terminal state index of the local planning,is the square of the third derivative of r (t) over time.
According to the practical problems solved by the invention, the method is selectedAs an optimization index of Jerk (Jerk); the deviation between the local path and the global path can be represented by the radial distance r (t) at the last time of the local planning.
The course cost function is:
wherein, Ct(z (t)) is an optimization index of the change rate of the heading acceleration, z (t) is the course of the heading motion of the unmanned vehicle at the time t,is the cost function of the local planning terminal moment in the z-axis direction; z (T) is a value in the z-axis direction at the time when the local planning is finished,is the first derivative of z (T),is the second derivative of z (T),is the course weight coefficient of the local planning acceleration change rate index,is the course weight coefficient of the local planning time index,is the course weight coefficient of the local planning terminal state index of the current time.
Rate of change of course cost function with respect to acceleration CtThe same principle of the design of (z (T)) and the planning time length T part and the radial cost function is that the deviation of a local path and a global path does not exist in the navigation direction, so that no definite cost item related to the terminal position exists, and the cost item can be replaced by other expressions related to the terminal state according to the actual task situation, for example, the cost related to the terminal speed state can be set by requiring constant speed (tasks such as cruising and racing)Requiring fixed points (tasks such as follow or frame-through) to set the cost (z-z) for the end position stated)2And the like. In summary, regarding the end shapeThe state cost design is uniformly applied to h (z (T),to indicate.
The spiral cost function is:
wherein, Ct(theta (t)) is an optimization index of the rate of change of the helical acceleration, theta (0) is the helix angle at the initial time, theta (t) is the helix angle at time t,is the spiral direction weight coefficient of the current local planning acceleration rate index,is the spiral direction weight coefficient of the terminal state index of the local planning,is the spiral direction weight coefficient of the current local planning time index.
Further, in this embodiment, the specific method for acquiring multiple possible local motion trajectories in step five is as follows:
calculating an expression of a distance r (t) between the position of the unmanned vehicle and a global path at the time t, an expression of a displacement z (t) of course motion of the unmanned vehicle at the time t and an expression of a spiral angle theta (t) at the time t by using a time-space discretization algorithm and an optimization index of a radial acceleration change rate, an optimization index of a course acceleration change rate and an optimization index of a spiral acceleration change rate;
the specific method for solving the expression of the distance r (t) between the position of the unmanned vehicle and the global path is as follows:
order:
requirement Ct(r (t)) minimum, r (t) is required to satisfyTherefore, the variable r (t) which is indexed by the accumulation of the acceleration rate must satisfy the fifth order polynomial relationship:
r(t)=a0+a1t+a2t2+a3t3+a4t4+a5t5 (6)
a0、a1、a2、a3、a4、a5coefficients, which are all fifth order polynomials, are substituted for the initial and final values:
r(0)=a0 (7)
r(T)=a0+a1T+a2T2+a3T3+a4T4+a5T5 (10)
obtaining a0、a1And a2A value of (d); wherein r (0) is the distance of the unmanned vehicle from the global path at the initial time,is at the beginningThe radial speed of the unmanned carrier is measured,is the radial acceleration of the unmanned vehicle at the initial moment, r (T) is the target radial position of the unmanned vehicle when the local planning is finished,when the local planning is finished, the target radial speed of the unmanned vehicle,the target radial acceleration of the unmanned vehicle is obtained when the local planning is finished;
bringing (7), (8) and (9) into (10), (11) and (12) to obtain:
solve to a3、a4And a5Obtaining an expression of r (t); obtaining an expression of z (t) and an expression of theta (t) in the same way, and further obtaining a possible local motion trajectory as follows:
wherein, b0、b1、b2、b3、b4、b5、c0、c1、c2、c3、c4、c5The coefficients of expression z (t) and the coefficients of expression θ (t), respectively.
The plurality of possible local motion trajectories described in this embodiment are finite local paths that are uniformly distributed around the global path.
In this embodiment, we can let us haveAndat zero, i.e. at the end of the local planning, the radial velocity and radial acceleration are 0, r (T) is reasonably discretized, where (r)min,rmax) In between, a finite number of end states are obtained by sampling at intervals of Δ r, and T is similarly at (T)min,Tmax) In between, sampling at intervals of DeltaT, and substituting into the above linear equation system to obtain a series of a0、a1、a2、a3、a3、a4、a5A series of r (t) is obtained. The other two directions are the same, and z (t) and theta (t) are obtained, so that a parameter equation which is equivalent to a curve is obtained, and a series of paths are obtained.
The time-space discretization algorithm described in this embodiment is a discretization of a target state. The specific process is that in the r direction, the setting is carried outmin,rmax) And (T)min,Tmax) The distance of the unmanned aerial vehicle deviating from the global path and the planning time length are limited, and a group of radial target states are obtained by setting delta r and delta T. Similarly, in the theta direction is set (theta)min,θmax) Limiting the range of helix angles, setting Δ θ to obtain a set of target states for the helical direction, which is the z direction (z direction)min,zmax) And Δ z to obtain a set of target states for the heading. Δ r, Δ θ, Δ z, and Δ T represent discretization.
The specific embodiment is as follows:
the present embodiment is described with reference to fig. 4 to 7, which illustrate a method for planning a local trajectory of an unmanned aerial vehicle based on a curved cylindrical coordinate system.
The method specifically comprises the following steps: in a long corridor with a width and height of 3m, the unmanned aerial vehicle is made to fly at a constant speed of 5m/s, and occasionally pedestrians pass through the corridor, occasionally doors are opened and the like (various unmodeled obstacles). Assuming that the unmanned vehicle is a four-rotor aircraft with a wheelbase of 200, the upper speed limit is 10m/s, and the upper acceleration limit is 5m/s2The curvature is not restricted, and the positioning system is positioned by UWB. Assuming that the initial position of the quad-rotor aircraft is located at the global coordinates (1,0,0) the initial velocity and the initial acceleration are both 0.
The method comprises the following steps: a smooth global path is planned according to the map information, in the example, the global path can be set along the central line of the corridor, the smoothing processing at the corner of the corridor can be forgotten, and the cubic spline interpolation smoothing is assumed here. After the global path is acquired, the coordinates of the global path in the global coordinate system, the tangential direction vector of each point, and the distance from the starting point to each point on the path along the global path (i.e., the z-coordinate value in the curved cylindrical coordinate system) are known.
Step two: based on the global path, a "curved cylindrical coordinate system" is created.
Step three: the corridor space is constructed through airborne sensors such as TOF cameras on the four-rotor aircraft, and information of all obstacles in the visual space is extracted.
Step four: and converting the state information of the four-rotor aircraft from a global coordinate system to a 'curved cylindrical coordinate system'. The global coordinate system is aligned with the origin of the curved cylinder coordinate system, and the initial z-axis direction is the same. As is well known, the cylindrical coordinate system and the rectangular coordinate system are transformed as follows:
however, the z-axis of the curved cylindrical coordinate system is curved, so there is a small tick used to obtain the z-value of the quad-rotor vehicle in the curved cylindrical coordinate system: selecting the z-coordinate value of the closest point in the global path to the current position of the quadrotor aircraft in the curved cylindrical coordinate system as the z-coordinate value of the quadrotor aircraft in the curved cylindrical coordinate system, as shown in fig. 3, where the unmanned vehicle is located at point a, and point B on the global path is closest to the unmanned vehicle, because point B is located on the global path and the z-coordinate value of point B in the curved cylindrical coordinate system is known, we can consider that the z-coordinate value of point a in the curved cylindrical coordinate system is the same as the z-coordinate value of point B in the curved cylindrical coordinate system. And then, the coordinate values of the quadrotor aircraft under the 'curved cylindrical coordinate system' can be obtained only by using the conversion of the rectangular coordinate system and the polar coordinate system in a normal plane.
Step five: designing a cost function;
radial cost function:whereinCourse cost function:wherein the cruising speedHelical cost function:the total cost is C ═ krCr+kzCz+kθCθRespectively adjusting the parameters according to the physical meanings of the parameters;
step six: discretizing the target configuration, namely discretizing a time space; according to the practical situation, the width and the height of the corridor are all 3m, the global path is in the middle of the corridor, and d can be setmin=-1.2m,dmaxSelecting space sampling interval of 1.2m, and selecting space sampling interval of 0.2m to obtain the same distance between axes; the cylinder is equally divided into 8 parts of thetamin=0,θmax=π,Planning time Tmin=4s,Tmax5s, 0.2 s; since it is a constant velocity problem, v is also discretized for the target velocitymin=3m/s,vmax=7m/s,△v=1m/s。
The relationship between the coordinates (r, θ, z) of all the waypoints in the target configuration set and the time t is solved by using the theory of the theoretical basis part, as shown in fig. 4, 5 and 6, which are a relationship diagram between the radial position and the time, a relationship diagram between the spiral direction position and the time, and a relationship diagram between the heading position and the time in the embodiment. Since the obtained path is not an explicit analytical expression but in a parametric equation form, the path is saved in a waypoint list form. Fig. 7 shows the three-dimensional local trajectory drawn by some waypoints.
Step seven: and D, traversing all paths by combining the cost functions in the step five, replacing integration by accumulated summation, and solving the cost function values of all paths in the set.
Step eight: by judging the distance between the path points and the obstacle, setting a threshold value d to be 0.2m, and when the distance between any one of the path points and the obstacle is smaller than the threshold value d, considering that the local path has certain danger, such path is directly deleted from the waypoint list. The speed, acceleration and instantaneous curvature of each path point are calculated, and paths exceeding the set upper limit are also deleted. And selecting the path with the minimum cost in the remaining paths, namely the path of the local planning.
The unmanned aerial vehicle obtained by the invention has smooth local track path, no sudden change of acceleration and speed, no sudden change of acceleration, no sudden stop of sudden rotation of a motor, improved service life of the aircraft, improved energy efficiency of a battery and the like, and the provided coordinate system can provide clearer physical description for the local planning process, thereby facilitating the design of various cost functions and greatly simplifying the description of the local path planning problem of the unmanned aerial vehicle. By reasonable dispersion in a new coordinate system, the suboptimal solution of the optimization problem is skillfully solved, the balance between solvability and optimality is found, and the method is more suitable for really solving the actual problem.
The present invention is described herein with reference to particular embodiments, but it is to be understood that these embodiments are merely illustrative of the principles and applications of the present invention. It is therefore to be understood that numerous modifications may be made to the illustrative embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that features described in different dependent claims and herein may be combined in ways different from those described in the original claims. It is also to be understood that features described in connection with individual embodiments may be used in other described embodiments.
Claims (3)
1. A local smooth track planning method based on a curved cylindrical coordinate system is characterized by comprising the following specific steps:
the method comprises the following steps: planning a smooth global path according to the map information and the target task requirement of the unmanned vehicle;
step two: taking the global path as a base line, and creating a curved column coordinate system;
step three: carrying out environment construction on the visual space of the unmanned vehicle, and extracting barrier information in a coordinate system of the visual space of the unmanned vehicle;
step four: converting the motion state information of the unmanned vehicle from a global coordinate system to a curved column coordinate system; converting the obstacle information in the visual space of the unmanned vehicle into obstacle information of a global coordinate system;
planning the local motion trail of the unmanned vehicle in the future time T by using a cost function and a time-space discretization algorithm according to the global path; acquiring a plurality of possible local motion tracks;
wherein the cost function is:
C=krCr+kzCz+kθCθ (1)
where C is the total cost function, krIs a proportionality coefficient of a radial cost function, CrAs a radial cost function, kzIs a proportionality coefficient of a course cost function, CzAs a course cost function, kθIs the proportionality coefficient of the spiral cost function, CθIs a spiral cost function;
radial cost function CrComprises the following steps:
wherein, Ct(r (t)) is an index for optimizing the radial acceleration rate, and r (T) isThe distance between the position of the local planning terminal and the global path at the time, r (t), is the distance between the position of the unmanned carrier and the global path at the time t,is the radial weight coefficient of the local planning time index,the radial weight coefficient of the current local planning acceleration change rate index,is the radial weight coefficient of the terminal state index of the local planning,is the square of the third derivative of r (t) over time;
the course cost function is:
wherein, Ct(z (t)) is an optimization index of the change rate of the heading acceleration, z (t) is the course of the heading motion of the unmanned vehicle at the time t, h (z (T),is the cost function of the local planning terminal moment in the z-axis direction; z (T) is a value in the z-axis direction at the time when the local planning is finished,is the first derivative of z (T),is the second derivative of z (T),is the course weight coefficient of the local planning acceleration change rate index,is the course weight coefficient of the local planning time index,is the course weight coefficient of the terminal state index of the local planning;
the spiral cost function is:
wherein, Ct(theta (t)) is an optimization index of the rate of change of the helical acceleration, theta (0) is the helix angle at the initial time, theta (t) is the helix angle at time t,is the spiral direction weight coefficient of the current local planning acceleration rate index,is the spiral direction weight coefficient of the terminal state index of the local planning,is the spiral direction weight coefficient of the current local planning time index;
the specific method for acquiring a plurality of possible local motion trajectories is as follows:
calculating an expression of a distance r (t) between the position of the unmanned vehicle and a global path at the time t, an expression of a displacement z (t) of course motion of the unmanned vehicle at the time t and an expression of a spiral angle theta (t) at the time t by using a time-space discretization algorithm and an optimization index of a radial acceleration change rate, an optimization index of a course acceleration change rate and an optimization index of a spiral acceleration change rate;
the specific method for solving the expression of the distance r (t) between the position of the unmanned vehicle and the global path is as follows:
order:
requirement Ct(r (t)) minimum, r (t) is required to satisfyTherefore, the variable r (t) which is indexed by the accumulation of the acceleration rate must satisfy the fifth order polynomial relationship:
r(t)=a0+a1t+a2t2+a3t3+a4t4+a5t5 (6)
a0、a1、a2、a3、a4、a5coefficients, which are all fifth order polynomials, are substituted for the initial and final values:
r(0)=a0 (7)
r(T)=a0+a1T+a2T2+a3T3+a4T4+a5T5 (10)
obtaining a0、a1And a2A value of (d); wherein r (0) is the distance of the unmanned vehicle from the global path at the initial time,is the radial velocity of the unmanned vehicle at the initial moment,is the radial acceleration of the unmanned vehicle at the initial time, r (T) is the target radial position of the unmanned vehicle at the end time of the local planning,the target radial speed of the unmanned carrier at the end moment is locally planned,the target radial acceleration of the unmanned carrier at the end moment of the local planning is obtained;
bringing (7), (8) and (9) into (10), (11) and (12) to obtain:
solve to a3、a4And a5Obtaining an expression of r (t); obtaining an expression of z (t) and an expression of theta (t) in the same way, and further obtaining a possible local motion trajectory as follows:
wherein, b0、b1、b2、b3、b4、b5、c0、c1、c2、c3、c4、c5Coefficients of expression z (t) and coefficients of expression θ (t), respectively;
step six, deleting invalid local motion tracks from multiple possible local motion tracks according to the global coordinate system obstacle information obtained by conversion in the step four, and obtaining multiple effective local motion tracks;
and step seven, calculating a cost function value of each effective local motion track, and taking the local motion track with the lowest cost function value as the optimal motion track of the local planning.
2. The method for planning a local smooth trajectory based on a curved cylindrical coordinate system according to claim 1, wherein the second step takes the global path as a baseline, and the specific method for creating the curved cylindrical coordinate system is as follows:
taking the global path as a z-axis, expressing the normal plane of each point on the path by using polar coordinates (r, theta), wherein r is the distance between the coordinate point and the global path, and theta is the spiral angle of the coordinate point around the global path, and obtaining a curved cylindrical coordinate system (r, theta, z).
3. The method according to claim 1, wherein the invalid local motion trajectory in the sixth step comprises: the local motion trail of the collision with the obstacle and the local motion trail beyond the power constraint range of the unmanned vehicle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010410092.6A CN111552296B (en) | 2020-05-14 | 2020-05-14 | Local smooth track planning method based on curved cylindrical coordinate system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010410092.6A CN111552296B (en) | 2020-05-14 | 2020-05-14 | Local smooth track planning method based on curved cylindrical coordinate system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111552296A CN111552296A (en) | 2020-08-18 |
CN111552296B true CN111552296B (en) | 2021-03-26 |
Family
ID=72004776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010410092.6A Active CN111552296B (en) | 2020-05-14 | 2020-05-14 | Local smooth track planning method based on curved cylindrical coordinate system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111552296B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112683291B (en) * | 2020-12-30 | 2023-03-31 | 广州小鹏自动驾驶科技有限公司 | Vehicle turning path planning method and device, vehicle and storage medium |
CN112550497B (en) * | 2021-03-01 | 2021-06-01 | 苏州澳昆智能机器人技术有限公司 | Walking assembly for automatic loading robot |
CN113188543B (en) * | 2021-04-22 | 2023-02-24 | 北京云迹科技股份有限公司 | Path optimization method and device, electronic equipment and storage medium |
CN115328174A (en) * | 2022-10-14 | 2022-11-11 | 杭州华橙软件技术有限公司 | Trajectory planning method, electronic device and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104914870A (en) * | 2015-07-08 | 2015-09-16 | 中南大学 | Ridge-regression-extreme-learning-machine-based local path planning method for outdoor robot |
CN105549597A (en) * | 2016-02-04 | 2016-05-04 | 同济大学 | Unmanned vehicle dynamic path programming method based on environment uncertainty |
CN106094833A (en) * | 2016-07-19 | 2016-11-09 | 重庆邮电大学 | A kind of method for planning path for mobile robot based on chaos glowworm swarm algorithm |
CN106873600A (en) * | 2017-03-31 | 2017-06-20 | 深圳市靖洲科技有限公司 | It is a kind of towards the local obstacle-avoiding route planning method without person bicycle |
CN107167141A (en) * | 2017-06-15 | 2017-09-15 | 同济大学 | Robot autonomous navigation system based on double line laser radars |
CN107943072A (en) * | 2017-11-13 | 2018-04-20 | 深圳大学 | Unmanned plane during flying path generating method, device, storage medium and equipment |
CN108444482A (en) * | 2018-06-15 | 2018-08-24 | 东北大学 | A kind of autonomous pathfinding barrier-avoiding method of unmanned plane and system |
CN109933057A (en) * | 2017-12-18 | 2019-06-25 | 中国农业机械化科学研究院 | The local guide tracks method and device for planning of dilatory machine automatic drive system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102010007458A1 (en) * | 2010-02-10 | 2011-08-11 | KUKA Laboratories GmbH, 86165 | Method for collision-free path planning of an industrial robot |
-
2020
- 2020-05-14 CN CN202010410092.6A patent/CN111552296B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104914870A (en) * | 2015-07-08 | 2015-09-16 | 中南大学 | Ridge-regression-extreme-learning-machine-based local path planning method for outdoor robot |
CN105549597A (en) * | 2016-02-04 | 2016-05-04 | 同济大学 | Unmanned vehicle dynamic path programming method based on environment uncertainty |
CN106094833A (en) * | 2016-07-19 | 2016-11-09 | 重庆邮电大学 | A kind of method for planning path for mobile robot based on chaos glowworm swarm algorithm |
CN106873600A (en) * | 2017-03-31 | 2017-06-20 | 深圳市靖洲科技有限公司 | It is a kind of towards the local obstacle-avoiding route planning method without person bicycle |
CN107167141A (en) * | 2017-06-15 | 2017-09-15 | 同济大学 | Robot autonomous navigation system based on double line laser radars |
CN107943072A (en) * | 2017-11-13 | 2018-04-20 | 深圳大学 | Unmanned plane during flying path generating method, device, storage medium and equipment |
CN109933057A (en) * | 2017-12-18 | 2019-06-25 | 中国农业机械化科学研究院 | The local guide tracks method and device for planning of dilatory machine automatic drive system |
CN108444482A (en) * | 2018-06-15 | 2018-08-24 | 东北大学 | A kind of autonomous pathfinding barrier-avoiding method of unmanned plane and system |
Non-Patent Citations (1)
Title |
---|
Local Path Planning and Motion Control For Agv In Positioning;Takahashi A,等;《IEEE/RSJ International Workshop on Intelligent Robots & Systems 89 the Autonomous Mobile Robots & Its Applications Iros》;20021231;392-397页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111552296A (en) | 2020-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111552296B (en) | Local smooth track planning method based on curved cylindrical coordinate system | |
Liu et al. | Global dynamic path planning fusion algorithm combining jump-A* algorithm and dynamic window approach | |
Saska et al. | Coordination and navigation of heterogeneous UAVs-UGVs teams localized by a hawk-eye approach | |
McLain et al. | Implementing dubins airplane paths on fixed-wing uavs | |
Szczepanski et al. | Energy efficient local path planning algorithm based on predictive artificial potential field | |
Manathara et al. | Reactive collision avoidance of multiple realistic UAVs | |
Cole et al. | Reactive trajectory generation for multiple vehicles in unknown environments with wind disturbances | |
Li et al. | A mobile robot path planning algorithm based on improved A* algorithm and dynamic window approach | |
Samar et al. | Autonomous terrain-following for unmanned air vehicles | |
An et al. | Task planning and collaboration of jellyfish-inspired multiple spherical underwater robots | |
Lee et al. | RRT-based path planning for fixed-wing UAVs with arrival time and approach direction constraints | |
López et al. | A new approach to local navigation for autonomous driving vehicles based on the curvature velocity method | |
Kukreti et al. | Genetically tuned LQR based path following for UAVs under wind disturbance | |
Silva et al. | Quadrotor thrust vectoring control with time and jerk optimal trajectory planning in constant wind fields | |
Yang et al. | Automatic Parking Path Planning of Tracked Vehicle Based on Improved A* and DWA Algorithms | |
Chen et al. | Online on-road motion planning based on hybrid potential field model for car-like robot | |
Meenakshisundaram et al. | Vector field guidance for path following of MAVs in three dimensions for variable altitude maneuvers | |
Wu et al. | Real-time three-dimensional smooth path planning for unmanned aerial vehicles in completely unknown cluttered environments | |
Xue et al. | Small UAV flight planning in urban environments | |
Babaei et al. | Optimal trajectory-planning of UAVs via B-splines and disjunctive programming | |
Alturbeh et al. | Real-time obstacle collision avoidance for fixed wing aircraft using b-splines | |
Li et al. | UAV obstacle avoidance by human-in-the-loop reinforcement in arbitrary 3D environment | |
Hota et al. | Time-optimal convergence to a rectilinear path in the presence of wind | |
Masehian et al. | Path planning of nonholonomic flying robots using a new virtual obstacle method | |
Kosecka et al. | 2 1/2 D conflict resolution maneuvers for ATMS |
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 |