• Keine Ergebnisse gefunden

Cooperative Flocking and Formation Technique

5.2 Flocking and Formation Cooperative Control

5.2.2 Cooperative Flocking and Formation Technique

As introduced in Chapter 4, group convergence to a source location is achieved using the following control rule:

un = X

m∈Nn

φmn(q)δmn+ X

m∈Nn

anm(pm−pn)−cpn+k X

m∈Nn

m−ψnmn (5.20)

under the following definitions:

φmn(q) =ρh(qmn/rαs(qmn−dα) qmn=||qm−qn||σ

δmn=(qm−qn)/(1 +ǫ||z||σ), dα=||d||σ, rα=||rs||σ c >0 : damping term,

where each virtual leader measures the field’s concentration according to ψn= 1

|Ni|+ 1 X

i∈Nln

ψi. (5.21)

For achieving formation consensus followed by leader tracking in each subgroup, we propose the following. The control law applied on each agent ϕi ∈ R2 comprises a formation element and a navigational term tracking aγ-agent with respect to i∈ Nln and is in the form of

ϕi =kfi(qf −q) +ˆ kl(qn−qi), (5.22) where qf,qˆ∈R2N is the relative formation and position vectors where ˆq= [q1T, . . . , qNT]T, Lˆi∈R2×2N is thei-th rows ([ ˆLxi,Lˆyi]T) of the Laplacian matrix ˆL=L⊗I2∈R2N×2N, andkf, kl>0 are tuning parameters. We can decompose (5.22) into thex, y components

ϕxi=kfLi(xf−x) +kl(xn−xi)

ϕyi=kfLi(yf−y) +kl(yn−yi) (5.23) where Li ∈ R1×N is the i-th row of the Laplacian matrix L and x, y, xf, yf ∈ RN (e.g.

x= [x1, . . . , xN]T). Now we can construct the local controllerui= [vi, ωi]T that controls the linear and angular velocities of each agent with respect to (5.23) and determines the

72 CHAPTER 5. COMPARISON AND COOPERATION desired location and orientationθdi

ϕθii−θdi, θdi= tan1yi

Since theγ-agents possess dynamics different from that of the physical agents, one needs to constrain the flocking convergence speed of the top level leader according to the agents’

convergence rate. Following the proposed control law in (5.20), we add a continuous-adaptivebump-function with a dependency onϕi where

uµn=unρhn)

First we place a lemma showing that a group stays together following their leader.

Lemma 5.2.Consider a group ofNlnagents with dynamics (3.36) applying the control law (5.24). Then, the group track theirγ-agent with a bounded steady-state error in formation.

Proof. Since qn depends on ψn and µn (see (5.21),(5.25)) then ||qn −qc|| ≤ ǫ where Eventually ˙V is in the form of

V˙ =−kv

5.2. FLOCKING AND FORMATION COOPERATIVE CONTROL 73 hence, ˙V ≤0 and ˙V = 0 iff ϕxi, ϕyi, ϕθi = 0.

Next, to achieve convergence to the source location in flocking (C1), we place the following proposition.

Proposition 5.3. Consider a group of N agents, divided to small groups of Nln agents, and consider a group of Nl, γ-agents with dynamics (5.18) and the control law (5.25).

Then, under the described assumptions, all γ-agents’ trajectories asymptotically converge to the equilibrium (q,0) s.t. qs∈convexhull(q), where each is tracked by a group ofNln agents in formation.

Proof. We first show that the weighted control law does not affect theenergy structureof the agents’ dynamics. Applying (5.25) on (5.20),

uµn=unρhn) = X matrix. This leads to the closed-loop collective dynamics

˙ q=p

˙

p=−∇U˘(q)−Lˆw2pn−˘cpn+ ˘fγ(q).

The product with (2.13) produces weighted elements of the potential functionU(q), Lapla-cian matrix ˆL, damping constant c, and field climbing element fγ(q). This modification does not affect the energy structure of the agent’s dynamics or the convergence analysis, only the convergence rate. Next, we organize the dynamics as

˙ q=p

˙

p=− ∇U˘(q)−( ˆL2(q) +c)p+∇Ψ(q) + (fγ(q)− ∇Ψ(q))

=− ∇U˜˘(q)−( ˆL2(q) +c)p+e(q).

The last equation is similar to the proposed structural dynamics in (4.3) where the proof is in two parts; part A use La Salle’s invariance principle showing that the Hamiltonian is a dissipative particle system; part B shows that the proposed protocol leads to a stable dynamics and finally convergence to the equilibrium (q,0). The steps are similar and thus omitted. Finally, from Lemma 5.2, each group of agents remain in formation and track their leader, which eventually leads to the source being located by the swarm.

74 CHAPTER 5. COMPARISON AND COOPERATION

5.2.3 Simulation Results

In all simulations and experiments, the blue lines connecting the agents represent the formation topology and the red lines represent the flocking connectivity between the γ-agents. The dashed black curves are the field’s concentration levels, where a narrow circle corresponds to the higher concentration level.

A group ofN = 20 non-holonomic agents performs the proposed extremum-seeking tech-nique on a scalar field

ψ(z) =Aψ[e−((z−qs)TH1(z−qs))+e−((z−qs)TH2(z−qs))], where H1 = diag(12

x1,12

y1), H2 = diag(12 x2,12

y2),σx1 = 10, σy1 = 50, σx2 = 80, σy2 = 30, Aψ = 3, and a maximum is located at qs = [40,40]T with a value ofψmax = 6. The agents are divided into a group of|Ni|+ 1 = 4 (i.e., Nl = 5 γ-agents) with an initial arbitrary location around [0,0]T. Figure 5.7 (a) presents the measured concentration level ψiover time. During the search procedure, the agents locate the field’s maxima at [30,40]T with an average value of Avg∀i(ψ) = 5.85, as expected. In addition, in (b), the errors of the control laws (5.22) and (5.25) are plotted over time. Owing to the use of the gradient-free technique as the navigation function, both inputs approach zero.

(a) (b)

Figure 5.7. (a) Field concentration measurements over time. When agents locate the field’s extremum they remain there as expected. (b) Agents (top) andγ-agents (bottom) errors decreas-ing behavior over time.

Chapter 6

Experimental Results

This chapter presents a number of experiments evaluating the proposed algorithms in the previous chapters under different conditions. The experiments are conducted under the Robotarium project by Georgia Institute of Technology [Pickem et al., 2017] using a swarm of mobile, two-wheeled robots called “GRITSBot” (Figure 6.1 (a)). The size of the GRITSBot size is 4×4×3 cm. It can reach a maximum forward speed of approximately 10 [censec] and can turn at up to 1 [rotsec]. A group of up to 20 mobile robots can be used in an

(a) (b)

Figure 6.1. (a) a GRITSBot agent and (b) the arena.

arena with a size of 1.6×1.0 m (Figure 6.1 (b)). A camera-based position technique is used to determine each agent’s location, which also assists in creating virtual fields and obstacles projected on the arena table. Nevertheless, the agents’ control remains distributed. In addition, the Robotarium implements barrier certificates to handle and prevent collisions between agents.

6.1 MESA

In Section 3.3, the algorithm for multiple extrema is presented. This technique involves elements of formation and gradient estimation, as well as nature-imitation techniques, such as GSO. In addition, the concept of a predefined matching location is introduced to connect agents in the search for neighbors or to repulse agents from occupied extrema.

Two experiments with a group of 10 agents are conducted. The agents are required to form 75

76 CHAPTER 6. EXPERIMENTAL RESULTS two groups of 5 in a “plus” formation, where two extrema are posed (the field’s different concentration levels are drawn in circles, where the source is located at the center). The difference between the experiments is the distance between those two extrema. Initially, in experiment 1 (Figure 6.2), the sources are located far from one another and the agents are deployed at the center of the connecting line between them. The agents are first assigned into two groups, which are then each attracted to a different extremum (the attraction level is the same) and finally rest in both. To challenge our algorithm, we next move the

Figure 6.2. MESA 1 - field with 2 extrema located far apart.

two extrema closer, as shown in Figure 6.3. Now, all agents are attracted to the nearest extremum. This results in an over-populated source. Without MESA, the agents would have remained at this location, leaving one extremum unattended, and thus would have failed the task. The actual result is that one group takes over the detected source, and the rest are sent (using match-making locations) to search for the second, undiscovered source. Finally, both extrema are occupied with same number of agents (equal density), as requested.