• Aucun résultat trouvé

Path Planning Placing Bezier Curves on Corners (BC)

4 Path Planning Algorithm

4.2 Path Planning Placing Bezier Curves on Corners (BC)

Another path planning method (BC) adds quadratic Bezier curves on the corner area around Wj, j 2 {2, . . ., N 1}. The quadratic Bezier curves are denoted as

jQðtÞ ¼P2

k¼0B2kðtÞjQ0k intersects the j-th bisector. The first and the last control point,jQ00 andjQ02are constrained to lie withinGj1andGj, respectively. Within each segment Gi, another Bezier curve is used to connect the end points of jQ withC2continuity and/orW1with slope ofc0and/orWNwithcf. Hence,jQis the curve segments of even number index:

2ðj1ÞPðtÞ ¼jQðtÞ; j2 f2;. . .;N1g

The degree ofiPis determined by the minimum number of control points to satisfy C2continuity constraint, independently:

Lettcdenote the Bezier curve parameter corresponding to the crossing point of

jQ(t) on the bisector, such that

jQðtcÞ ¼Wjþdjb^j: (12)

Letyjdenote the angle of the tangent vector at the crossing point fromX-axis:

jQ_ðtcÞ ¼ ðjjQ_ðtcÞjcosyj; jjQ_ðtcÞjsinyjÞ: (13) The notations are illustrated in Fig.4. Due to the constraint ofjQ00andjQ02within Gj1andGj, the feasible scope ofyjis limited to the same direction asWjþ1is with respect to^bj. In other words, ifWjþ1is to the right of^bj, thenyjmust point to the right of^bj, and vice versa.

GivenjQ00,jQ02,dj, andyj, the other control pointjQ01 is computed such that the crossing point is located atWjþdj^bj and the angle of the tangent vector at the crossing point isyj. Since each control point is two-dimensional, the degrees of freedom ofjQ(t) are six. Sincedjandyjare scaler, representingjQ(t) in terms of

jQ00,jQ02,dj, andyjdoes not affect the degrees of freedom. However, it comes up with an advantage for corridor constraint. If we computejQ01 such as above, the points computed by applying the de Casteljau algorithm such that two subdivided curves are separated by thej-th bisector are represented asjQ00andjQ02as described in the following. The two curves are constructed by fjQ00; jQ10;jQ20g and fjQ20;jQ11;jQ02g. We can test if the convex hull offjQ00;jQ10;jQ20g lies withinGj 1and if that offjQ20; jQ11;jQ02g lies withinGjin (26), instead of testing that of fjQ00;jQ01;jQ02g. (Note thatjQ01is not constrained to lie within corridor as shown in Fig.4.) So, the convex hull property is tested for tighter conditions against the corridor constraint without increasing the degrees of freedom.

In order to computejQ01, the world coordinate frameTis transformed and rotated into the local framejTwhere the origin is at the crossing point,jQ(tc) andXaxis is codirectional with the tangent vector of the curve at the crossing point,jQ_ðtcÞ.

Y

3 Piecewise Bezier Curves Path Planning with Continuous Curvature Constraint 39

Let us consider the subdivision ratio, t 2 (0, 1) such that the location of jQ20 computed by applying the de Casteljau algorithm with it is the crossing point. In other words,thasjQ20be at the origin with respect tojTframe. Fig.5illustrates the control points ofjQ(t) with respect tojTframe. Note thatjQ20is at the origin by the definition ofjTandt.jQ10 andjQ11 are on theXaxis by the definition ofjT and Remark1. Let the coordinates of the control points be denoted as Q0i ¼ ðxi;yiÞ, i2{0, 1, 2}, where all coordinates are with respect tojT.

Lemma 2.Given djand yj, for jQ(t) to intersect j-th bisector with the crossing point determined by the djand (12), and the tangent vector at the point determined by theyjand (13), it is necessary that y0y20.

Proof. Let (x(t), y(t)) denote the coordinate of jQ(t) with respect to jT. By the definition ofjT and Remark 1,Q(t) passes through the origin with tangent slope of zero with respect tojT. That is,x(tc)¼0,y(tc)¼0 andyðt_ cÞ ¼0. Suppose that y0¼y(0)<0. Sincey(t) is a quadratic polynomial,yðtÞ_ >0 and€yðtÞ<0 fort2[0,tc).

Subsequently,yðtÞ_ <0 andyðtÞ€ <0 fort2(tc, 1]. Thus,y2¼y(1)<0 andy0y2>0.

Similarly, ify0>0 theny1>0. Ify0¼0 thenyðtÞ ¼_ 0 fort2[0, 1] andy2¼0.

Thus,y0y2¼0. □

We are to calculatejQ01 depending on whethery0y2is nonzero. For simplicity, superscript j is dropped from now on. Without loss of generality, suppose that y0<0 andy2<0.Q20is represented as

Q20¼ ð1tÞQ10þtQ11

by applying (1). So the coordinates ofQ10 andQ11can be represented as

Q10 ¼ ðat;0Þ; Q11¼ ðað1tÞ;0Þ; a>0 (14) wherea>0 is some constant. Applying (1) withi¼0 andj¼1 and arranging the result with respect toQ01by using (14) gives

Q01¼

Similarly, applying (1) withi¼1 andj¼1 yields

whereaandtare obtained by equations (15) and (16):

t¼ 1 determined, hence,Q(t) is infeasible. That is, (17) ends up with Lemma2.

Ify0¼y2¼0 then all control points ofjQare onXaxis (see proof of Lemma2).

In the geometric relation of control points and the points computed by applying the de Casteljau algorithm as shown in Fig.6, we obtain

x0¼ ðaþbÞt x2¼ ðaþgÞð1tÞ

a¼bð1tÞ þgt

(18)

where a > 0, b > 0, g > 0 are some constants. Using (18), Q01¼ ðx1;0Þ is represented in terms of arbitraryt2(0, 1):

x1¼ 1

The constraints imposed on the planned path are formulated as follows:

l The beginning and end position oflareW1andWN.

3 Piecewise Bezier Curves Path Planning with Continuous Curvature Constraint 41

l i1PandiP,8i2{2,. . ., 2N3} areC2continuous at the junctions.

i1Pni1¼iP0 (22a)

ni1ði1Pni1i1Pni11Þ ¼niðiP1iP0Þ (22b) ni1ðni11Þði1Pni12i1Pni11þi1Pni12Þ

¼niðni1ÞðiP22iP1þiP0Þ (22c)

l The crossing points are bounded within the corridor.

jdjj< 1

2 minðwj1;wjÞ; 8j2 f2;. . .;N1g (23)

l yjhas the same direction asWjþ1is with respect to^bj. modðffðWjþ1WjÞ ff^bj;2pÞ>p

)modðyj ff^bj;2pÞ>p; (24a)

modðffðWjþ1WjÞ ff^bj;2pÞ<p

)modðyj ff^bj;2pÞ<p (24b)

l jQ00andjQ02with respect tojTsatisfies Lemma2.

y0y20 (25)

wherey0andy2are with respect tojT.

l jQ00andjQ10lie withinGj1.jQ02andjQ11lie withinGj.

jQ00 2Gj1;jQ102Gj1;jQ022Gj;jQ112Gj (26)

l {iP1,. . .,iPni1} always lie within the area ofGi.

iP12Gi; . . .;iPni1 2Gi; i2 f1;3;. . .;2N3g (27) The free variables are, for j 2 {2, . . .,N 1}, Q ¼{jQ0, jQ2}, d ¼{dj}, u¼{yj}, andL¼{l0,lf}. The degrees of freedom is 6N10. The variables are computed by minimizing the constrained optimization problem:

min

Q;d;y;L J¼XN1

i¼1

Ji (28)

42 J.W. Choi et al.

subject to (23), (24,b), (25), (26), and (27), whereJiis the cost function ofiP(t), defined in (11). Notice that the convex hull property is tested forjQ10andjQ11of the divided curves instead ofjQ01in (26). Thus, it comes up with tighter conditions for curves against the corridor constraint.