CN109991934B - Time-optimal online S-type acceleration and deceleration planning method - Google Patents

Time-optimal online S-type acceleration and deceleration planning method Download PDF

Info

Publication number
CN109991934B
CN109991934B CN201910178004.1A CN201910178004A CN109991934B CN 109991934 B CN109991934 B CN 109991934B CN 201910178004 A CN201910178004 A CN 201910178004A CN 109991934 B CN109991934 B CN 109991934B
Authority
CN
China
Prior art keywords
acceleration
type
speed
initial
curve
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
Application number
CN201910178004.1A
Other languages
Chinese (zh)
Other versions
CN109991934A (en
Inventor
王国栋
王铭礼
白杨
肖聚亮
洪鹰
刘海涛
黄田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin University
Original Assignee
Tianjin University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tianjin University filed Critical Tianjin University
Priority to CN201910178004.1A priority Critical patent/CN109991934B/en
Publication of CN109991934A publication Critical patent/CN109991934A/en
Application granted granted Critical
Publication of CN109991934B publication Critical patent/CN109991934B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/416Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by control of velocity, acceleration or deceleration

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses an online S-shaped acceleration and deceleration planning method with optimal time, which has the characteristic of realizing online real-time calculation and can plan an interpolation track meeting motion constraint conditions according to any initial motion state and an end state with zero acceleration. The off-line calculation process is simplified, and the real-time automatic planning of the motion trail according to the signals returned by the sensors in an unknown environment can be realized.

Description

Time-optimal online S-type acceleration and deceleration planning method
Technical Field
The invention relates to the field of motion control of industrial robots and the field of speed control of servo motors, in particular to an online S-shaped acceleration and deceleration planning method in the aspects of a speed planning method and robot motion planning for a mobile robot.
Background
The traditional trajectory planning method usually does not consider the initial acceleration of the initial motion state, and the initial speed is not equal to zero, because the trajectory planning is difficult and complicated in calculation for the situation that the initial motion state is not equal to zero, and the requirement of real-time property cannot be met. For a high performance robot control system, regardless of the current motion state of the robot, the robot should immediately react to the input signal by inputting an external sensor signal as a robot controller.
Disclosure of Invention
The method aims to overcome the defect that the traditional trajectory planning method cannot plan the trajectory according to any initial motion state and any end state. The invention provides an online S-shaped acceleration and deceleration planning method with optimal time, which can be used for automatic online generation of a robot track. And under the condition of considering speed, acceleration and jerk constraint conditions and the starting and ending states of the robot motion, directly solving by taking the shortest time as an optimization target.
The purpose of the invention is realized by the following technical scheme:
an online S-shaped acceleration and deceleration planning method with optimal time comprises the following steps:
(1) inputting parameters required by online motion planning: inputting a first and last motion state and motion constraint conditions, wherein the first and last motion state comprises an initial position PsInitial velocity VsInitial acceleration AsAnd an end position PtrgtEnd velocity VtrgtThe motion constraint condition includes maximum jerk JmaxMaximum acceleration AmaxMaximum velocity Vmax
(2) Calculating an initial acceleration Curve Type regardless of Displacementa *: according to the parameters input in the step (1), under the condition of not considering displacement constraint, meeting other constraint conditions to calculate the Type of the initial acceleration curvea *
Firstly, judging whether the acceleration A needs to reach the limit in the process of changing from the initial speed to the final speed in the shortest time; if the acceleration limit value does not need to be reached, calculating Type according to the head and tail motion statesa *The Type of initial acceleration curvea *Four cases are divided; if the acceleration needs to reach the limit value, the Type is calculated according to the head and tail motion statea *Also corresponding to four cases; selecting one of the eight cases as Typea *
(3) Type returned by step (2)a *Calculating an initial jerk Js(ii) a Firstly aiming at the returned Type in the step (2)a *Calculate Typea *Corresponding displacement Δ P of the acceleration curve*Considering the convenience of calculation, the eight types of types are useda *The method is divided into four categories;
(4) determining an S-Type acceleration curve Typea(ii) a If the calculated delta P in the step (3)*Equal to the target displacement Δ P, then TypeaIs equal to Typea *(ii) a Otherwise J calculated by step (3) is requiredsCalculate Typea(ii) a Considering whether a uniform acceleration region exists, whether a uniform velocity region exists and acceleration and deceleration are carried out according to the principle that the total planning time is shortestThe S-shaped acceleration curve types are divided into eight types by the transition times, and one Type is selected from the eight types of S-shaped acceleration curves as the Type according to the following principlea(ii) a The classification judgment principle is as follows:
principle A: supposing that the speed just reaches the speed limit and finally reaches the target speed in the motion planning process, and comparing the displacement at the moment with the actual target displacement;
principle B: supposing that in the motion planning process, the acceleration just reaches the limit and finally reaches the target speed, and comparing the displacement at the moment with the actual target displacement;
principle C: supposing that in the motion planning process, the acceleration reaches the limit, the speed just reaches the limit and finally reaches the target speed, and comparing the displacement at the moment with the actual target displacement;
principle D: supposing that in the motion planning process, the acceleration and the speed just reach the limit, and comparing the current speed with the actual target speed;
principle E: supposing that in the motion planning process, the acceleration just reaches the limit and finally reaches the target speed, and comparing the current speed with the actual target speed and the current displacement with the actual target displacement;
through the combined use of the principles, one type of the eight S-shaped acceleration curve types is selected to meet the requirement of shortest total planning time and meet the motion constraint condition at the same time;
(5) calculating the segmentation parameters of the acceleration curve: calculating to obtain Type in step (4)aWriting different equation sets aiming at different acceleration curve columns and solving to obtain the time corresponding to each section of the acceleration curve;
for the condition that the uniform motion does not exist, solving the acceleration part time and the deceleration part time through a nonlinear equation system respectively; for the condition of existence of uniform acceleration or uniform deceleration section, the speed constraint condition, namely the middle speed extreme value V, is reached in the motion processpIf the calculation method is known, the calculation method is the same as that under the condition that uniform acceleration or uniform deceleration does not exist, and the calculation method is a linear equation system at the moment; thereby solving the acceleration time and the deceleration timeAnd uniform speed time; finally obtaining the subsection parameter t of the acceleration curve1a,t1b,t1c,t2a,t2b,t2c,totg];
(6) Generating a motion track according to the acceleration curve segmentation parameters: from acceleration curve TypeaAnd (5) substituting the acceleration curve segmentation parameters calculated in the step (5) into an S-type acceleration and deceleration curve formula to generate the motion track.
Further, in the step (2), if the acceleration limit value does not need to be reached, judging the speed change trend according to the head and tail motion states to determine the Type of the initial acceleration curvea *The method is divided into four cases, and the corresponding four cases are respectively: a. the initial acceleration curve is firstly accelerated and then decelerated, and is marked as + PosTri; b. the initial acceleration curve is accelerated and decelerated firstly and then decelerated, and is marked as-NegTri; c. the initial acceleration curve is firstly reduced and decelerated, then accelerated and then reduced and accelerated, and is marked as-PosTri; d. the initial acceleration curve is firstly reduced and accelerated, then is reduced and decelerated, and is marked as + NegTri;
for the condition that the acceleration needs to reach the limit value, judging the speed change trend according to the first and last motion states, wherein the four conditions are as follows: e. the initial acceleration curve is accelerated in an adding mode, then accelerated in a uniform mode and finally accelerated in a reducing mode, and the acceleration curve is marked as + PosTrap; f. the initial acceleration curve is accelerated and decelerated firstly, then decelerated evenly and finally decelerated, and is marked as-NegTrap; g. the initial acceleration curve firstly reduces and decelerates, then accelerates, then uniformly accelerates, finally reduces and accelerates, and is marked as-PosTrap; h. the initial acceleration curve is firstly reduced and accelerated, then decelerated, uniformly decelerated and finally reduced and decelerated, and is marked as + NegTrap.
Further, in step (3), the displacement Δ P of the corresponding acceleration curve is calculated*Aspect, will eight types of Typea *The kit is divided into four types, wherein the types of the + PosTri and the-NegTri, the types of the-PosTri and the + NegTri, the types of the + PosTrap and the-NegTrap and the types of the-PosTrap and the + NegTrap are included;
if the target displacement Δ P is equal to Δ P*Then TypeaIs equal to Typea *(ii) a If the target displacement Δ P is not equal to Δ P*Then Typea *Invalid; if the target displacement Δ P is greater than Δ P*Then J issIs equal to Jmax(ii) a If the target displacement Δ P is smaller than Δ P*Then J issIs equal to-Jmax(ii) a There may be speed over speed maximum constraints for the second and fourth types of deceleration, and deceleration regions, where J is specifiedsAnd (5) 0, namely the input parameters are wrong, and the planning cannot be carried out under the motion constraint condition.
Further, considering the principle of shortest planning total time in the step (4), the Type of the acceleration curve is determinedaThe method comprises the following eight steps: TriTriTri, Traptri, TriTrap, Traptrap, TriZeroTri, TrapZeroTri, TriZeroTrap, TrapZeroTrap; wherein Tri represents acceleration first and then deceleration or acceleration first and then deceleration second; trap represents the condition of uniform acceleration or uniform deceleration, namely the acceleration process is firstly added and then uniformly accelerated and then subtracted; zero denotes that the acceleration is equal to Zero, i.e. a constant velocity segment process.
Compared with the prior art, the technical scheme of the invention has the following beneficial effects:
1. the method can satisfy the motion constraint condition (J)max,Amax,Vmax) Of any initial state of motion (A)s,Vs,Ps) And a motion state (A) in which the end acceleration is zero is taken into accounttrgt,Vtrgt,Ptrgt) And performing S-type acceleration and deceleration planning to generate a unique S-type acceleration and deceleration trajectory which meets the motion constraint condition and has optimal time.
2. The method considers various conditions of the S-shaped acceleration and deceleration curve in detail, greatly simplifies the solving algorithm of the S-shaped acceleration and deceleration curve in any initial state, can calculate S-shaped acceleration and deceleration track parameters in microsecond time and generate the motion track, has high real-time performance, and is suitable for planning the track on line in real time. Since the planned trajectory is optimal in time, the work efficiency can be improved.
3. The invention can plan the motion track in real time according to the return signal of the sensor. A method is provided for automatically planning a motion path of a robot in an unknown environment. The intelligent and flexible robot is facilitated to be realized.
Drawings
Fig. 1 shows a schematic diagram of a time-optimal online S-type acceleration and deceleration planning method.
FIG. 2 shows eight initial acceleration curve types without considering target displacementa *Schematic representation. Wherein the horizontal axis is time t, and the vertical axis is acceleration A; in the figure 1, + PosTri, 2, -NegTri, 3, -PosTri, 4, + NegTri, 5, + PosTrap, 6, -NegTrap, 7, -PosTrap, 8, + PosTrap.
FIG. 3 shows eight S-shaped acceleration curve typesaSchematic representation. (A)s∈[-Amax,Amax],Js=±Jmax) (ii) a Wherein the horizontal axis is time t, the vertical axis is acceleration A, and the diagram shows 1, TriTriTri, 2, Traptri, 3, TriTrap, 4, Traptrap, 5, TrizeroTri, 6, TraptroTri, 7, TrizeroTrap, 8 and TraptroTrap.
Fig. 4(a) to 4(f) show graphs of results for some experimental parameters. The abscissa is time t, and the ordinates of the upper, middle and lower plots of fig. 4(a) to 4(f) are acceleration, velocity and displacement, respectively.
Detailed Description
The invention is described in further detail below with reference to the figures and the specific examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a linear velocity planning method. The input parameters comprise motion constraint conditions, initial and final motion states and interpolation time dt. The motion constraints include maximum jerk, maximum acceleration, and maximum velocity, denoted as (J)max,Amax,Vmax). The initial motion state includes an initial acceleration, an initial velocity, an initial displacement, denoted as (A)s,Vs,Ps). The initial motion state should satisfy the actual conditions, otherwise the motion plan may exceed the motion constraint conditions.
The ending motion state comprises zero target acceleration, zero target velocity, and target displacement, and is denoted as (A)trgt,Vtrgt,Ptrgt). The output parameters include the optimal time of planningtotgReal-time jerk J (t), acceleration A (t), velocity V (t), and displacement P (t) generated according to the interpolation time.
The technical scheme of the online S-type acceleration and deceleration planning method is specifically shown in fig. 1, and the following is a detailed description of fig. 1. :
step 1, inputting parameters required by online motion planning:
firstly, inputting a head and tail motion state and a motion constraint condition in an array form, wherein the head and tail motion state comprises an initial position PsInitial velocity VsInitial acceleration AsAnd an end position PtrgtEnd velocity VtrgtThe constraint condition includes maximum jerk JmaxMaximum acceleration AmaxMaximum velocity value Vmax. Is marked as INPUT ═ Ps,Vs,As,Ptrgt,Vtrgt,Vmax,Amax,Jmax]。
Step 2, calculating the Type of the initial acceleration curve without considering the displacementa *
Calculating the Type of the initial acceleration curve meeting other constraint conditions without considering the displacement according to the input parametersa *
And judging whether the acceleration A needs to reach the acceleration limit in the process of changing the speed from the initial speed to the final speed in the shortest time. If the acceleration limit value does not need to be reached, calculating Type according to the motion head and tail statesa *
Initial acceleration curve Type without considering displacementa *There are four cases, as shown in fig. 2. Wherein 1, the speed curve is firstly accelerated and then decelerated and marked as + PosTri; 2. the speed curve is firstly accelerated and decelerated and then decelerated, and is marked as-NegTri; 3. the speed curve is firstly reduced and decelerated, then accelerated and then reduced and accelerated, and is marked as-PosTri; 4. the speed curve is firstly reduced and accelerated, then reduced and decelerated, and is marked as + NegTri.
When the difference between the head and the tail speeds is delta V and the initial acceleration AsDifferent signs, and | Δ V | is greater than the initial acceleration and is reduced to zeroThe speed variation is + PosTri or-NegTri, or-PosTri or + NegTri.
For the case that the acceleration needs to reach the limit value, the Type is also calculated according to the motion head and tail statesa *The same applies to the four cases, see fig. 2. 5. The speed curve is firstly accelerated, then accelerated uniformly and finally accelerated in a speed reducing way, and is marked as + PosTrap; 6. the speed curve is accelerated and decelerated firstly, then decelerated evenly and finally decelerated, and is marked as-NegTrap; 7. the speed curve firstly reduces and decelerates, then accelerates, then uniformly accelerates, finally reduces and accelerates, and is marked as-PosTrap; 8. the speed curve is firstly reduced and accelerated, then is reduced and then is uniformly reduced, and finally is reduced and decelerated, and is marked as + NegTrap.
When the difference between the head and tail speeds is Δ V and the initial acceleration AsThe sign is different, and if | Δ V | is larger than the corresponding speed variation when the initial acceleration drops to zero, it is + PosTrap or-NegTrap, otherwise it is-PosTrap or + NegTrap. This makes it possible to select 1 Type of initial acceleration curve from the eight cases of FIG. 2a *. See step 3 for details.
Step 3, Type returned from step 2a *Calculating an initial jerk Js
According to Typea *Calculate Typea *Corresponding displacement Δ P of the acceleration curve*. The above eight types of initial acceleration curves can be classified into four categories in terms of calculating displacement, i.e., + PosTri and-NegTri, PosTri and + NegTri, and + PosTrap and-NegTrap, PosTrap and + NegTrap.
Type calculated according to step 2a *Calculate Typea *Corresponding displacement Δ P of the acceleration curve*. If the target displacement Δ P is equal to Δ P*Then TypeaIs equal to Typea *(ii) a If the target displacement Δ P is not equal to Δ PminThen Typea *Invalid; if the target displacement Δ P is greater than Δ P*Then J issIs equal to Jmax(ii) a If the target displacement Δ P is smaller than Δ P*Then J issIs equal to-Jmax. Intermediate speeds may exceed for class 2 and class 4Speed maximum constraint, in which case J is specifiedsAnd (5) 0, namely the input parameters are wrong, and the planning cannot be carried out under the motion constraint condition.
Specifically, the number of intersections of the acceleration curve and the time axis described in this embodiment is a special case in which the initial acceleration is not considered to be equal to zero. As shown in fig. 2, the first graph may be represented as + PosTri or-NegTri, and includes the case where the initial acceleration is greater than zero, the initial jerk is greater than zero, the initial acceleration is less than zero, and the initial jerk is less than zero, and is characterized in that the maximum acceleration value does not reach the acceleration upper limit value, and there is only one intersection point of the acceleration curve and the time axis. The second graph can be represented as-PosTri or + NegTri, and comprises the condition that the initial acceleration is less than zero, the initial jerk is greater than zero, the initial acceleration is greater than zero, and the initial jerk is less than zero. The third graph can be expressed as a + PosTrap or a-NegTrap, and includes that the initial speed and the initial acceleration have the same sign, and the acceleration reaches the acceleration upper limit value at the middle time, and the acceleration curve has only one intersection point with the time axis. The fourth plot, which may be referred to as a PosTrap or a + PosTrap, includes an initial acceleration that is different in sign from the initial jerk, an intermediate time when the acceleration has reached an upper acceleration limit, and two acceleration curves that intersect the time axis.
Step 4, determining the Type of the S-shaped acceleration curvea
If the calculated delta P in the step (3)*Equal to the target displacement Δ P, then TypeaIs equal to Typea *(ii) a Otherwise J calculated by step 3 is requiredsCalculate Typea. Considering the principle that the total planning time is shortest, the Type is divided intoaThe three-dimensional model is divided into eight Tri, Traptri, TriTrap, Traptrap, TrizeroTri, TrapZeroTri, TriZeroTrap and TrapZeroTrap, which are respectively shown in FIG. 3.
The eight S-shaped acceleration curve types shown in fig. 3 encompass several cases shown in fig. 2. The first type of curve can be represented by TriTriTriTri, and is characterized in that the initial acceleration and the initial jerk have the same sign, the maximum acceleration is smaller than the acceleration upper limit value, two time intervals with the acceleration constant equal to zero exist at the intersection of the acceleration curve and the time axis. The second kind of curve can be represented by TrpTri, and is characterized in that the initial acceleration and the initial jerk have the same sign, the maximum acceleration of the acceleration area at a certain time reaches the acceleration upper limit value, two intersection points of the acceleration curve and the time axis exist, and no time interval with the acceleration constantly equal to zero exists. The third kind of curve can be expressed by TriTrap, and is characterized in that the initial acceleration and the initial acceleration have the same sign, the maximum acceleration at a certain time in the deceleration area reaches the acceleration upper limit value, two intersection points of the acceleration curve and the time axis exist, and no time interval with the acceleration constantly equal to zero exists. The fourth type of curve can be represented by Traptrap, and is characterized in that the initial acceleration and the initial jerk have the same sign, the maximum acceleration of the acceleration area and the deceleration area reaches the acceleration upper limit value at a certain moment, two intersection points of the acceleration curve and the time axis exist, and no time interval with the acceleration constantly equal to zero exists. The acceleration curve of the fifth type, which may be denoted as TriZeroTri, is characterized with respect to the acceleration curve of the first type by the presence of time intervals in which the acceleration is equal to zero, i.e. by the presence of uniform motion intervals. The acceleration curve of the sixth type is denoted as trap zerotri, which is distinguished in relation to the acceleration curve of the second type in that it comprises a uniform motion interval. The seventh acceleration curve may be denoted as a TriZeroTrap, which is distinguished from the third acceleration curve by the presence of a constant motion interval in the middle segment. The eighth acceleration curve may be denoted as trap zerotrap, which is distinguished from the fourth acceleration curve by the presence of a constant speed interval in the middle segment.
Selecting a classification judgment principle of the acceleration curve types:
principle A: assuming that the speed just reaches the speed limit and finally reaches the target speed in the motion planning process, the displacement at the moment is compared with the actual target displacement.
Principle B: assuming that the acceleration just reaches the limit and finally reaches the target speed in the motion planning process, the displacement at the moment is compared with the actual target displacement.
Principle C: assuming that during the motion planning process, the acceleration has reached a limit, the velocity just reached a limit and finally the target velocity, the displacement at that time is compared to the actual target magnitude.
Principle D: assuming that both the acceleration and the velocity just reach the limit during the motion planning process, the magnitude of the velocity at that time is compared with the actual target velocity.
Principle E: assuming that the acceleration just reaches the limit and finally reaches the target speed in the motion planning process, the magnitude of the speed at the moment and the actual target speed and the magnitude of the displacement at the moment and the actual target displacement are compared.
Through the combined use of the various principles, one curve can be selected from the 8 acceleration curves to meet the condition that the total planning time is shortest and the motion constraint condition can be met at the same time.
At an initial jerk JsThe speed of the process with acceleration just reaching the maximum acceleration and then the acceleration dropping to zero is greater than the maximum speed for example.
Judgment 1: if the initial speed is less than the final target speed, decision 2 is entered.
And (3) judging: and judging according to the principle A, if the acceleration curve is TriTriTriTri, comparing the displacement at the moment with the actual target displacement. Type if the displacement at this time is smaller than the actual target displacementaEqual to TriZeroTri. Otherwise, the result is TriTriTriTriTri. If the decision 1 condition is not met, then decision 3 is entered.
And 3, judgment: and if the minimum acceleration of the deceleration part reaches the acceleration lower limit value and the final speed reaches the target speed, judging whether the speed of the constant speed section is less than the speed limit value. If decision 3 is less than the speed limit, then decision 4 is entered.
And 4, judgment: and judging according to the principle B, and comparing the final displacement with the actual target displacement by assuming that the type of the acceleration curve is TriTriTriTri. Type if the displacement at this time is larger than the actual target displacementaAnd (5) if the value is equal to the TriTriTri, otherwise, entering judgment 5.
And 5, judgment: whether the final speed is greater than the target speed is judged by the principle D. If less than the target speed, TypeaEqual to TriZeroTri, otherwise go to decision 6.
Judgment of6: similarly, the planning displacement and the target displacement are compared according to the principle A, and if the planning displacement is larger than the target displacement, the TypeaEqual to TriTrap, otherwise TriZeroTrap.
If the determination 3 is greater than or equal to the speed limit value, the routine proceeds to a determination 7.
And 7, judgment: according to principle A, the deceleration part is of a Tri Type, the displacement at the moment is compared with the actual target displacement, and if the displacement is larger than the target displacement, the Type isaEqual to TriTriTri, otherwise TrizeroTri.
Step 5, calculating the segmentation parameters of the acceleration curve:
calculating to obtain Type from step 4aAnd writing different equation sets aiming at different acceleration curve columns, and solving to obtain the time corresponding to each section of the acceleration curve.
For the case of no uniform acceleration or uniform deceleration, the acceleration part time and the deceleration part time are respectively used as t10And t21This shows that the above eight acceleration curves can be reduced to 5 general equations and 2 distinct equations, with 7 unknowns. Solving t from the equation10And t21
With TypeaTaking TriTri as an example, an intermediate variable S is introduced1、S2、ΔP1a、ΔP1b、Vp、tb. Wherein VpThe intermediate speed limit.
tb=-|As/J|
General equation
S1=Vp-Vs
S2=Vtrgt-Vp
ΔP1a=(Jstb 3/6+tbVb)+(t10-tb)(Vb+Vp)/2
ΔP1b=ΔP-t21(Vp+Vtrgt)/2
ΔP1a-ΔP1b=0
Equation of difference
Figure BDA0001990245580000091
Figure BDA0001990245580000092
For the condition of existence of uniform acceleration or uniform deceleration section, the speed constraint condition, namely the middle speed extreme value V, is reached in the motion processpIf known, the calculation method is the same as the calculation method of the case of uniform acceleration or uniform deceleration without existence, and the acceleration part time t can be directly solved at the moment10And a deceleration time t21Sum and uniform acceleration (deceleration) time tm. According to t10,t21,tmCan obtain the sectional parameters of the acceleration curve
[t1a,t1b,t1c,t2a,t2b,t2c,totg]
Wherein t is1aIndicating the end of the acceleration section, t1bIndicating the end of the uniform acceleration period, t1cTo reduce the end of the acceleration section, t2aAt the end of the uniform velocity segment, t2bFor the end of the acceleration or deceleration section, t2cAt the end of the uniform deceleration section, totgTo decrease the end time of the deceleration section.
Step 6, generating a motion track according to the acceleration curve segmentation parameters:
then the acceleration curve TypeaAnd substituting the segmented parameters of the acceleration curve calculated in the step 5 into an S-type acceleration and deceleration track formula to generate tracks J (t), A (t), V (t) and P (t).
The formula of the S-shaped acceleration and deceleration curve is as follows:
the specific trajectories are as follows:
t is more than or equal to 0 and less than or equal to t in the first section1a
Figure BDA0001990245580000093
Second section t1a<t≤t1bIn which P is1a、V1a、A1aRespectively, the displacement, velocity and acceleration of the end of the first section of the joint,
Figure BDA0001990245580000094
third segment t1b<t≤t1cIn which P is1b、V1b、A1bRespectively displacement, velocity, acceleration of the end of the second segment of the joint
Figure BDA0001990245580000095
Fourth segment t1c<t≤t2aIn which P is1c、V1c、A1cDisplacement, velocity and acceleration of the end of the third segment of the joint
P(t)=P1c+V1c(t-t1c)
Fifth segment t2a<t≤t2bIn which P is2a、V2a、A2aRespectively displacement, velocity and acceleration of the end of the fourth segment of the joint
Figure BDA0001990245580000101
The sixth section t2b<t≤t2cIn which P is2b、V2b、A2bRespectively displacement, velocity and acceleration of the end of the fifth segment of the joint
Figure BDA0001990245580000102
Seventh segment t2c<t≤totgIn which P is2c、V2c、A2cRespectively displacement, velocity and acceleration of the end of the sixth section of the joint
Figure BDA0001990245580000103
J (t), A (t), V (t) are respectively equal to P (t) to evaluate t for third order second order and first derivative functions.
The following are the test parameters:
INPUT=[Ps,Vs,As,Ptrgt,vtrgt,Vmax,Amax,Jmax]
INPUT1=[0,100,50,500,-100,250,100,100]
INPUT2=[0,100,50,500,-100,200,100,100]
INPUT3=[0,100,50,500,-100,250,150,100]
INPUT4=[0,100,50,500,-100,250,200,100]
INPUT5=[0,100,50,500,-100,200,150,100]
INPUT6=[0,100,50,500,-100,200,200,100]
fig. 4(a) to 4(f) show the time-optimal S-type acceleration and deceleration trajectory planning result planned by the method, and the trajectory curves corresponding to the above 6 sets of input parameters are respectively shown in fig. 4(a), 4(b), 4(c), 4(d), 4(e) and 4 (f).
The present invention is not limited to the above-described embodiments. The foregoing description of the specific embodiments is intended to describe and illustrate the technical solutions of the present invention, and the above specific embodiments are merely illustrative and not restrictive. Those skilled in the art can make many changes and modifications to the invention without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (1)

1. An online S-shaped acceleration and deceleration planning method with optimal time is characterized by comprising the following steps:
(1) inputting parameters required for online motion planning: inputting a first and last motion state and motion constraint conditions, wherein the first and last motion state comprises an initial position PsInitial velocity VsInitial acceleration AsAnd an end position PtrgtEnd velocity VtrgtThe motion constraint condition includes maximum jerk JmaxMaximum acceleration AmaxMaximum velocity Vmax
(2) Calculating an initial acceleration Curve Type regardless of Displacementa *: according to the parameters input in the step (1), under the condition of not considering displacement constraint, meeting other constraint conditions to calculate the Type of the initial acceleration curvea *
Firstly, judging whether the acceleration A needs to reach the limit in the process of changing from the initial speed to the final speed in the shortest time; if the acceleration limit value does not need to be reached, calculating Type according to the head and tail motion statesa *The Type of initial acceleration curvea *Four cases are divided; the corresponding four cases are respectively: a. the initial acceleration curve is firstly accelerated and then decelerated, and is marked as + PosTri; b. the initial acceleration curve is accelerated and decelerated firstly and then decelerated, and is marked as-NegTri; c. the initial acceleration curve is firstly reduced and decelerated, then accelerated and then reduced and accelerated, and is marked as-PosTri; d. the initial acceleration curve is firstly reduced and accelerated, then is reduced and decelerated, and is marked as + NegTri; if the acceleration needs to reach the limit value, the Type is calculated according to the head and tail motion statea *The other four cases are also corresponded: e. the initial acceleration curve is accelerated in an adding mode, then accelerated in a uniform mode and finally accelerated in a reducing mode, and the acceleration curve is marked as + PosTrap; f. the initial acceleration curve is accelerated and decelerated firstly, then decelerated evenly and finally decelerated, and is marked as-NegTrap; g. the initial acceleration curve firstly reduces and decelerates, then accelerates, then uniformly accelerates, finally reduces and accelerates, and is marked as-PosTrap; h. the initial acceleration curve firstly reduces and accelerates, then decelerates, then uniformly decelerates, finally reduces and decelerates, and is marked as + NegTrap; selecting one of the eight cases as Typea *
(3) Type returned by step (2)a *Calculating an initial jerk Js(ii) a First returns to step (2)Type (2)a *Calculate Typea *Corresponding displacement Δ P of the acceleration curve*Considering the convenience of calculation, the eight types of types in the step (2) are useda *The method is divided into four categories; wherein, the types of + PosTri and-NegTri, -PosTri and + NegTri, the types of + PosTrap and-NegTrap and the types of-PosTrap and + NegTrap;
if the target displacement Δ P is equal to Δ P*Then TypeaIs equal to Typea *(ii) a If the target displacement Δ P is not equal to Δ PminThen Typea *Invalid; if the target displacement Δ P is greater than Δ P*Then J issIs equal to Jmax(ii) a If the target displacement Δ P is smaller than Δ P*Then J issIs equal to-Jmax(ii) a There may be speed over speed maximum constraints for the second and fourth types of deceleration, and deceleration regions, where J is specifiedsWhen the input parameter is wrong, the programming cannot be performed under the motion constraint condition;
(4) determining an S-Type acceleration curve Typea(ii) a If the calculated delta P in the step (3)*Equal to the target displacement Δ P, then TypeaIs equal to Typea *(ii) a Otherwise J calculated by step (3) is requiredsCalculate Typea(ii) a The method divides the types of the S-shaped acceleration curve into eight types according to the principle that the total planning time is shortest and whether a uniform acceleration area exists, whether a uniform speed area exists and the number of acceleration and deceleration transition times are considered, and specifically comprises the following steps: TriTriTri, Traptri, TriTrap, Traptrap, TriZeroTri, TrapZeroTri, TriZeroTrap, TrapZeroTrap; wherein Tri represents acceleration first and then deceleration or acceleration first and then deceleration second; trap represents the condition of uniform acceleration or uniform deceleration, namely the acceleration process is firstly added and then uniformly accelerated and then subtracted; zero represents that the acceleration is equal to Zero, namely a uniform speed segment process; one of the eight S-shaped acceleration curve types is selected as Type according to the following principlea(ii) a The classification judgment principle is as follows:
principle A: supposing that the speed just reaches the speed limit and finally reaches the target speed in the motion planning process, and comparing the displacement at the moment with the actual target displacement;
principle B: supposing that in the motion planning process, the acceleration just reaches the limit and finally reaches the target speed, and comparing the displacement at the moment with the actual target displacement;
principle C: supposing that in the motion planning process, the acceleration reaches the limit, the speed just reaches the limit and finally reaches the target speed, and comparing the displacement at the moment with the actual target displacement;
principle D: supposing that in the motion planning process, the acceleration and the speed just reach the limit, and comparing the current speed with the actual target speed;
principle E: supposing that in the motion planning process, the acceleration just reaches the limit and finally reaches the target speed, and comparing the current speed with the actual target speed and the current displacement with the actual target displacement;
through the combined use of the principles, one type of the eight S-shaped acceleration curve types is selected to meet the requirement of shortest total planning time and meet the motion constraint condition at the same time;
(5) calculating the segmentation parameters of the acceleration curve: calculating to obtain Type in step (4)aWriting different equation sets aiming at different acceleration curve columns and solving to obtain the time corresponding to each section of the acceleration curve;
for the condition that the uniform motion does not exist, solving the acceleration part time and the deceleration part time through a nonlinear equation system respectively; for the condition of existence of uniform acceleration or uniform deceleration section, the speed constraint condition, namely the middle speed extreme value V, is reached in the motion processpIf the calculation method is known, the calculation method is the same as that under the condition that uniform acceleration or uniform deceleration does not exist, and the calculation method is a linear equation system at the moment; thereby solving the acceleration time, the deceleration time and the uniform speed time; finally obtaining the subsection parameter t of the acceleration curve1a,t1b,t1c,t2a,t2b,t2c,totg](ii) a Wherein t is1aIndicating the end of the acceleration section, t1bIndicating the end of the uniform acceleration period, t1cTo reduce the end of the acceleration section, t2aAt the end of the uniform velocity segment, t2bFor the end of the acceleration or deceleration section, t2cAt the end of the uniform deceleration sectionMoment totgThe ending moment of the deceleration section is reduced;
(6) generating a motion track according to the acceleration curve segmentation parameters: from acceleration curve TypeaAnd (5) substituting the acceleration curve segmentation parameters calculated in the step (5) into an S-type acceleration and deceleration curve formula to generate the motion track.
CN201910178004.1A 2019-03-10 2019-03-10 Time-optimal online S-type acceleration and deceleration planning method Active CN109991934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910178004.1A CN109991934B (en) 2019-03-10 2019-03-10 Time-optimal online S-type acceleration and deceleration planning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910178004.1A CN109991934B (en) 2019-03-10 2019-03-10 Time-optimal online S-type acceleration and deceleration planning method

Publications (2)

Publication Number Publication Date
CN109991934A CN109991934A (en) 2019-07-09
CN109991934B true CN109991934B (en) 2021-02-09

Family

ID=67129604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910178004.1A Active CN109991934B (en) 2019-03-10 2019-03-10 Time-optimal online S-type acceleration and deceleration planning method

Country Status (1)

Country Link
CN (1) CN109991934B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4115250A1 (en) * 2020-03-03 2023-01-11 Sew-Eurodrive GmbH & Co. KG Method for decelerating an object and machine
CN112498355B (en) * 2020-11-02 2022-11-25 浙江吉利控股集团有限公司 Speed planning method and device
CN113703399B (en) * 2021-08-26 2022-09-16 广东拓斯达科技股份有限公司 Motion trajectory planning method, device, equipment and storage medium
CN115963782B (en) * 2023-01-31 2023-08-18 北京立迈胜控制技术有限责任公司 S-shaped speed planning method based on initial acceleration being non-zero

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004258700A (en) * 2003-02-24 2004-09-16 Keyence Corp Method of setting synchronous curve for positioning system and computer program therefor
CN101477354B (en) * 2009-01-19 2010-08-04 东元总合科技(杭州)有限公司 Position S type instruction generation method
EP2947445B1 (en) * 2013-01-21 2017-11-15 National University Corporation Yokohama National University Method for correcting representative displacement waveform, and method for evaluating residual seismic perfromance of building
CN103713581B (en) * 2013-12-12 2016-01-20 南京工程学院 The implementation method of kinetic control system S curve acceleration and deceleration
CN106444635B (en) * 2015-08-04 2019-09-13 深圳市雷赛智能控制股份有限公司 A kind of asymmetric S curve Acceleration-deceleration Control Method and device of kinetic control system
CN106168790B (en) * 2016-02-29 2020-08-18 华南理工大学 S-shaped acceleration and deceleration control method for changing target speed and position on line
CN108663994B (en) * 2018-06-04 2020-08-25 绵阳逢研科技有限公司 S-curve acceleration and deceleration control method for servo motor
CN108983595B (en) * 2018-07-18 2021-04-20 天津大学 Automatic setting method for parameters of feedforward controller
CN108829044B (en) * 2018-07-27 2020-12-08 山东大学 S-curve acceleration and deceleration planning method for coping with negative values of starting and ending speeds
CN108958173B (en) * 2018-07-27 2021-07-09 山东大学 S curve acceleration and deceleration planning method based on trapezoidal solution and under any displacement speed

Also Published As

Publication number Publication date
CN109991934A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN109991934B (en) Time-optimal online S-type acceleration and deceleration planning method
CN107885209B (en) Obstacle avoidance method based on dynamic window and virtual target point
CN110450156B (en) Optimal design method of self-adaptive fuzzy controller of multi-degree-of-freedom mechanical arm system
CN111506081B (en) Robot trajectory tracking method, system and storage medium
CN110450155B (en) Optimal design method for controller of multi-degree-of-freedom mechanical arm system
CN108549324B (en) Workpiece for high speed sorting system follows crawl method for planning track and system
Liu et al. Online time-optimal trajectory planning for robotic manipulators using adaptive elite genetic algorithm with singularity avoidance
Luo et al. Target tracking using a hierarchical grey-fuzzy motion decision-making method
CN110134062B (en) Multi-axis numerical control machine tool machining path optimization method based on reinforcement learning
CN112506199B (en) Local path planning method based on dynamic window method and suitable for Ackerman model robot
CN112965501A (en) Automatic driving speed planning method and device
CN109814496A (en) Multiaxis method for synchronizing time in a kind of S type acceleration and deceleration trajectory planning
CN114510063B (en) Unmanned tracked vehicle and track tracking control method and system thereof
CN109032128B (en) Triangular formation control method of discrete multiple AGV non-particle system
CN111158318A (en) Flexible acceleration and deceleration planning method for asymmetric quartic curve
Li et al. On-line self tuning of contouring control for high accuracy robot manipulators under various operations
CN115981328A (en) Trajectory planning and adjusting method and system based on dynamic motion primitives
CN114370793A (en) Rocket sublevel return and vertical landing guidance method
CN114442630A (en) Intelligent vehicle planning control method based on reinforcement learning and model prediction
CN116551703B (en) Motion planning method based on machine learning in complex environment
Lee et al. Faster and smoother trajectory generation considering physical system limits under discontinuously assigned target angles
CN116604565A (en) Force guiding control method and system for variable admittance of robot
CN113325694B (en) Model prediction control parameter setting method based on machine learning
CN113867157B (en) Optimal trajectory planning method and device for control compensation and storage device
CN114290335B (en) Robot track planning method

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