Frequently used notation in this chapter.

## Abstract

Consensus theory has been widely applied to collective motion planning related to coordinated motion. However, when the collective motion is highly irregular and adversarial, the basic consensus theory does not guarantee collision avoidance by default. As collision avoidance is a central problem of path planning, the incorporation of avoidance into the consensus algorithm is a subject of research. This work presents a new method of incorporating collision avoidance into the consensus algorithm, by applying the concept of constrained orientation control, where orientation constraints are represented as a set of linear matrix inequalities (LMI) and solved by semidefinite programming (SDP). The developed algorithm is used to simulate consensus-based multipath planning with collision avoidance for a team of communicating soccer robots.

### Keywords

- consensus
- path planning
- avoidance
- optimization
- LMI

## 1. Introduction

Path planning has found practical applications in areas such as entertainment (e.g. robot soccer) [1]; self-driving vehicles (e.g. Google’s self-driving cars) [2]; intelligent highways [3], and multiple unmanned space systems [4]. Because of the potential applications, the topic of multipath planning has been studied extensively, for example in [5, 6, 7, 8, 9, 10, 11].

The simplicity and potential of consensus algorithms to generate * collective behaviors*, such as

*,*flocking

*and other*platooning, rendezvous,

*configurations, make it an attractive choice for solving certain problems in multiagent control. However, the basic consensus algorithm collision avoidance mechanism is not developed for*formation

*situations (i.e., opposite or attacking motion). To extend the power of the algorithm, it is therefore necessary to develop more powerful collision avoidance capabilities.*adversarial

Next, we consider the basic approaches to collision avoidance in consensus. Some researchers, for example, [12, 13], approached the avoidance problem by introducing potential forces such as attraction and repulsion. However, the potential force algorithms were not developed for adversarial reconfigurations, for example, vehicles moving in opposite directions. Potential functions also have a problem of getting into local minima, coupled with slow speed of convergence. It is observed in [12] that any repulsion based on potential functions alone is not sufficient to guarantee consensus-based collision avoidance. Moreover, the attitude change maneuver presented in [12] was not developed for three-dimensional space (see [14] for a comprehensive literature survey on this topic).

Thus, in this work, we present an approach which we previously developed [5, 9] for incorporating collision avoidance into the consensus framework by applying quadratically constrained attitude control (Q-CAC), via semidefinite programming (SDP), using linear matrix inequalities (LMI). The main benefit of this approach is that it can solve the collision avoidance problem in adversarial situations and any configurations, and the formulation can be applied to two-dimensional as well as three-dimensional spaces. Table 1 shows the notation frequently used in this chapter.

Notation | Meaning |
---|---|

^{i} | Position vector of vehicle number |

()^{ij}^{off} | Offset vector of vehicles and |

Stacked vector of more than one position vector | |

^{off} | Stacked vector of more than one offset vector |

Control input of vehicle | |

Stacked vector of control inputs of more than one vehicle | |

Laplacian matrix | |

The set of × positive-definite matrices | |

Bounding sphere or circle of a vehicle or obstacle | |

Width of safety region | |

^{∗} | Radius of |

^{∗} + | |

^{i} | Attitude vector of vehicle |

Obstacle vector of vehicle | |

Obstacle vector of vehicle emanating from vehicle | |

^{ij} | Euclidean distance between vehicles and |

^{ij} | Line passing through the mid points of vehicles and |

^{ij} | Perpendicular bisector of separating vehicles ^{ij}and |

^{i} | Plane passing through the midpoint of vehicle |

^{ij} | Line of intersection of and ^{i}^{j} |

Distance from to ^{i}(for 3D) or ^{ij}(for 2D)^{ij} | |

Distance from to ^{i}(for 3D) or ^{ij}(for 2D)^{ij} | |

^{i} | A point on the axis of ^{i} |

^{ij} | Point of intersection of the lines passing through |

^{i} | Normal vector perpendicular to , ^{i}, and ^{i}^{i} |

Attitude control plant matrix, | |

⊗ | Kronecker multiplication operator |

State or plant matrix for dynamics of | |

Input matrix for dynamics of for input | |

Feedback controller matrix | |

Proportional constant | |

_{p} | Identity matrix of size × |

Γ | Γ = ⊗ _{p} |

A vector or matrix in the Schur inequality | |

A positive-definite matrix in the Schur inequality | |

A symmetric matrix in the Schur inequality | |

Positive real number for scaling the consensus term | |

Positive real number for scaling the proportional term |

## 2. Problem statement

The basic * consensus*problem is that of driving the states of a team of communicating agents to a common value by distributed protocols based on their

*. The agents (or vehicles)*communication graph

*(*i

*= 1, ⋯,*i

*) are represented by vertices of the graph, whereas the edges of the graph represent communication links between them. Let*n

*denote the state of a vehicle*x

_{i}

*and*i

**is the stacked vector of the states of all vehicles. For systems modeled by first-order dynamics, the following first-order consensus protocol (or its variants) has been proposed, for example in [12, 13]**x

Consensus is said to have been achieved when ‖* x* −

^{i}

*‖ → (*x

^{j}

*)*x

^{ij}

*, as*

^{off}

*→ ∞, ∀*t

*≠*i

*.*j

The * consensus-based multipath planning with collision avoidance*problem can be stated as follows: Given a set of vehicles

*, with initial positions*i

*(*x

^{i}

t

_{0}), desired final positions

*, a set of obstacles with positions*t

_{f}

**find a sequence of collision-free trajectories from**L

t

_{0}to

*such that*t

_{f}

## 3. Solutions

In this section, we develop solutions to the problem stated in Section 2.

### 3.1. Consensus-based arbitrary reconfigurations

It was shown that for the dynamic system.

there exists a stabilizing feedback controller ** F**, such that the protocol

drives ** x**to

x

_{f}[15]. Here,

**= [**x

x

^{1}, ⋯,

x

^{n}] is a stacked vector of the initial positions of the vehicles,

**= − Γ(**u

**−**x

x

^{off}), Γ =

**⊗**L

I

_{p},

I

_{p}is the identity matrix of size

*×*p

*, and*p

*is the state dimension of the vehicles.*p

To begin, we first consider the * reference consensus path planning*problem. To this end, the following protocol is proposed for a

*-*leader

*communication graph architecture*follower

The corresponding protocol for a * leaderless*architecture is

where ≠

_{d}

x

*is the desired final position and is different from the formation configuration,*

^{off}

**=**K

ϵI

_{n}, (0 <

**≪ 1), and**ϵ

*is the dimension of*n

**.**x

** Theorem 1**The time-varying system (Eq. (2)) achieves consensus.

Proof: see [14].

Figure 1 shows a simulation of consensus-based reconfiguration, using the communication graph in Figure 2, which is an example of a * leader*-

*graph. Node 1 is the*follower

*and each of the other nodes is connected to their adjacent neighbors. In Figure 1, the dots inside small circles indicate initial positions, whereas the dot in the diamond is the initial position of the leader. The stars indicate desired final positions. The larger circles with dashed lines are positions where collisions occurred, and the diameters of the circles indicate the size of intersection of the safety regions of the vehicles. The simulation proves that for arbitrary reconfigurations, the basic consensus algorithm does not guarantee collision avoidance.*leader,

### 3.2. Quadratically constrained attitude control-based collision avoidance

The collision avoidance problem is that of avoiding static obstacles and other moving vehicles while driving the state of a vehicle from one point to another. For simplicity, we approximate a vehicle or an obstacle by ** S**, as shown in Figure 3. A nonspherical obstacle may be represented by a polygon as shown in Figure 4. For the

**-type obstacle (or vehicle), let the obstacle be centered on a point**S

*; it is desired that the time evolution of any vehicle state*x

_{obs}

*(*x

^{i}

*) from*t

t

_{0}to

*should avoid the constraint region shown in Figure 3.*t

_{f}

The feasible region is thus defined by

where ^{∗} is the radius of ** S**, bounded by a safety region of width

*.*ε

There is no direct representation of the nonlinear nonconvex equation (Eq. (6)) as LMI. However, some non-LMI methods, for example, mixed integer linear programming (MILP) [7], have been developed for approximating its solution. In this section, we present an approach, which we previously developed in [5, 9, 10, 14], based on the principles of quadratically constrained attitude control (Q-CAC) algorithm [16], initially developed for the spacecraft attitude control problem.

At any time * t*, suppose the safety region of vehicle

*centered on*i

*(*x

^{i}

*) intersects the safety region of an obstacle,*t

*, centered on*obs

*. Let*x

_{obs}

*(*v

*) be the unit vector extending from the centre of*t

*or*x

_{obs}

*(*x

^{i}

*) in the direction of the point of intersection. The vectors*t

*(*v

*) will be different for each vehicle or obstacle. Considering the case shown in Figure 3, assume*t

*is known and*x

_{obs}

*(*v

*) is also known in the frame of*t

*. Then, to guide vehicle*obs

*safely around the obstacle, define a unit vector*i

*(*v

^{i}

*) in the direction of*t

*(*v

*) in the frame of*t

*. The vector*obs

*(*v

^{i}

*) will be regarded as an imaginary vector whose direction can be constrained to change with time. The vector*t

*(*v

^{i}

*) can then be used to find a sequence of trajectories around*t

*which guides*obs

*from*i

*(*x

^{i}

t

_{0}) to

*(*x

^{i}

*) without violating (Eq. (6)).*t

_{f}

The problem reduces to the Q-CAC problem. It is desired that the angle * θ*between

*(*v

^{i}

*) and*t

*(*v

*) should be larger than some given angle ∅, ∀*t

*. The constraint is*t

The idea is to control the angle between the unit vectors * v*(

^{i}

*) and*t

*(*v

*). This implies that one of the vectors*t

*(*v

^{i}

*) or*t

*(*v

*) must remain static, whereas the other moves with time. Vector*t

*(*v

^{i}

*) is used to control the position of the vehicle; therefore,*t

*(*v

^{i}

*) will move with time. The positions of*t

*(*v

^{i}

*) define a trajectory path for*t

*(*x

^{i}

*). Thus,*t

*(*x

^{i}

*) is forced to move on the surface of the safety region bounding*t

**. At some time**S

*,*t

_{k}

*(*x

^{i}

*) will arrive close to a point indicated by*t

*(*v

^{i}

*), at which a translation to*t

_{k}

*(*x

^{i}

*) is unconstrained. This is shown by the black dots on the boundary of the safety region in Figure 4. To obtain the unit vector*t

_{f}

*(*v

*), the actual vector extending from the centre of*t

*or*x

_{obs}

*(*x

^{i}

*) in the direction of the point of intersection is normalized. After the solution*t

*(*v

^{i}

*) is obtained as a unit vector,*t

*(*v

^{i}

*) is multiplied by*t

*=*r

r

^{∗}+

*to obtain the actual safe trajectory.*ε

Let ** v**(

*) = [*t

*(*v

^{i}

*)*t

*(*

^{T}v

*)*t

*]*

^{T}

*, then the dynamics of*

^{T}

**(**v

*) is defined as*t

where * p*is the dimension of the state vector

*, and*x

^{i}

*is the number of vehicles. The above differential equation represents the rotational dynamics of the two vectors contained in*n

**(**v

*).*t

**is a semidefinite matrix variable whose contents are unknown. Its purpose is to vary the angle between the two vectors in**D

**(**v

*) with time while also keeping them normalized.*t

The discrete time equivalent of the above differential equation is

where * k* = 0, ⋯,

*(*N

*∆*N

*=*t

*) is the discrete time equivalent of*t

_{f}

*and ∆*t

*is the discretization time-step. To implement Eq. (9),*t

**is declared in a semidefinite program which chooses the appropriate values to rotate the vectors in**D

**(**v

*) while satisfying norm constraints. Note in the above discretization of the differential equation, the identity matrix cannot be added to the solution; instead, the matrix*t

**is chosen implicitly to satisfy the rotation. The vectors in**D

**(**v

*) are unit vectors; they are not translating, but they are rotating and must be preserved as unit vectors.*t

To enforce the attitude constraint (Eq. (7)) in a SDP, it should be represented as a LMI using the * Schur complement formula*described in [17]. The Schur complement formula states that the inequality

where ** Q** =

Q

^{T},

**=**R

R

^{T}, and

**> 0 are equivalent to and can be represented by the linear matrix inequality**R

Note that Eq. (7) is equivalent to

which also implies that

Note also that some of the eigenvalues of the ** G**in Eq. (13) are nonpositive. To make the matrix positive definite, one only needs to shift the eigenvalues of

**, by choosing a positive real number**G

*which is larger than the largest absolute value of the eigenvalues of*μ

**, then**G

Let ** M**is positive definite. Therefore, following the Schur complement formula, the LMI equivalent of Eq. (14) is

For collision avoidance, the dynamic system (Eq. (8)) is solved whenever it is required, subject to the attitude constraint (Eq. (15)) and norm constraints ‖* v*(

^{i}

*)‖ = 1 and ‖*t

*(*v

*)‖ = 1. Thus, the optimization problem of collision avoidance is essential to find a feasible*t

*subject to the following constraints:*v

^{i}

Eq. (17) is essentially the discrete time version of ** v**(

*)*t

^{T}

**(**v

*) = 2, if‖*t

*(0)‖ = 1 and ‖*v

^{i}

*(0)‖ = 1. This solution works for 2D and 3D spaces. The next step is to extend the formulation to the case of dynamic obstacles. First, consider two vehicles*v

*and*i

*with states*j

*(*x

^{i}

*),*t

*(*x

^{j}

*) and attitude vectors*t

*(*v

^{i}

*),*t

*(*v

^{j}

*), respectively. Collision avoidance requires that they must avoid each other always. As shown in Figure 5, any time their safety regions are violated and the point of their intersection in the coordinate frame of*t

*is*i

The avoidance requirements are

∀* t* ∈ [

t

_{0},

*],*t

_{f}

where ∅ ≥ * π*/2. For this dynamic situation, it is sufficient to enforce the following avoidance constraints:

Note that (* k* + 2) is used because the optimization is performed two steps ahead of time to ensure that the future trajectories are collision free. However, when this avoidance protocol is applied to dynamic collision avoidance, some vehicle configurations pose challenges and this is considered next.

### 3.3. Conflict resolution for multiple vehicles

A collision between two vehicles * i*and

*is imminent at time*j

*whenever*t

which can be computed using position feedback data determined by onboard or external sensors or communicated among the vehicles.

There are two aspects of collision problems: (i) * collision detection*and (ii)

*. Collision detection is the computational problem of detecting the intersection of two or more objects. This can be done either using sensors or numerically using concepts from linear algebra and computational geometry. Collision response is the initiation of the appropriate avoidance maneuver. In this section, we present methods to detect different configurations of collisions and classify them. Then, an appropriate response technique is developed for each of the collision configurations.*collision response

Consider two vehicles * i*and

*, whose current states are*j

*(*x

^{i}

*) and*t

*(*x

^{j}

*) and the desired final states are*t

*(*x

^{i}

*) and*t

_{f}

*(*x

^{j}

*). We identify three different basic collision configurations as: (i)*t

_{f}

*; (ii)*simple collision

*; and (iii)*head-on collision

*. Solutions will be developed for each of these configurations, and when combined synergistically, they will provide sufficient collision avoidance behavior for fast collision-free reconfiguration for the team of vehicles.*cross-path collision

#### 3.3.1. Detecting and resolving a simple collision

A simple collision problem is any configuration in which * D*(

^{ij}

*) ≤ (*t

*+*r

^{i}

*) and the current vector directions (or attitude vectors)*r

^{j}

*(*v

^{i}

*) and*t

*(*v

^{j}

*) of vehicles*t

*and*i

*are on different sides of the plane or infinite line*j

*(*L

^{ij}

*) passing through the points*t

*(*x

^{i}

*),*t

*(*x

^{j}

*); and the attitude vectors*t

This is the easiest collision problem to solve because the attitude vectors are already on opposite sides of * L*(

^{ij}

*). Considering Figure 6 (b), the plane or line*t

*(*ρ

^{ij}

*) tangent to the point of intersection of both vehicles constrains the current motion spaces of the vehicles to either of the two sides of the plane at time*t

*. A pure optimization-based solution will attempt to search the space on the right side of*t

*(*ρ

^{ij}

*) to seek for a point which is closest to the goal of*t

*, and this will be used as the next trajectory. The algorithm will also search the left side of*i

*(*ρ

^{ij}

*) to find the next trajectory for*t

*. Once the positions are updated, a new*j

*(*ρ

^{ij}

*) is computed.*t

Indeed, the solution is provided by the basic collision avoidance protocols (Eqs. (21) and (22)) without having to do a set search. It is easy to observe that by expanding the angles * θ*(

^{i}

*) and*t

*(*θ

^{j}

*) and choosing the next feasible trajectories*t

r

^{∗}/2 along the new direction vectors

*(*ρ

^{ij}

*), provided*t

*>*ε

^{i}

r

^{∗i}for any

*. The rest of the avoidance strategies developed in the remaining part of this section are attempts to reduce more complex collision configurations to a simple collision configuration.*i

#### 3.3.2. Detecting and resolving a head-on collision

A head-on collision problem is any configuration in which * D*(

^{ij}

*) ≤ (*t

*+*r

^{i}

*) and*r

^{j}

*(*v

^{i}

*)*t

*(*

^{T}v

^{j}

*) ≈*t

*rad. Figure 7(a) illustrates the head-on collision problem.*π

The paths from the current positions * x*(

^{i}

*) and*t

*(*x

^{j}

*) to the goal positions*t

*(*x

^{i}

*) and*t

_{f}

*(*x

^{j}

*) lead to a configuration in which the attitude vectors*t

_{f}

*because the vectors*direct head-on collision

*(*L

^{ij}

*). Figure 7(c) is an*t

*and Figure 7(d) is a head-on collision that can be easily converted to a simple collision configuration.*approximate head-on collision

For the configurations in Figure 7(b) and (c), the Q-CAC formulation presented earlier easily solves this problem without any modifications to the algorithm. However, whenever * i*, the optimization algorithm takes some significant time to solve. Even though the resulting trajectory is desirable, this delay is undesirable for real-time collision avoidance. Therefore, whenever this configuration is encountered for any two vehicles, a one-step elementary evasive maneuver is initiated, in which either

*(*v

^{i}

*) or*t

*(*v

^{j}

*) is rotated by a small angle*t

*> 0. This rotation effectively transforms the head-on collision configuration to a simple collision configuration. Once this is done, the avoidance constraints defined in Eqs. (21) and (22) solve in real time. The trajectory obtained using this strategy for two-vehicle reconfiguration with head-on collision avoidance is shown in [14].*ψ

#### 3.3.3. Detecting and resolving cross-path collision for two vehicles

A cross-path collision problem is any configuration in which * D*(

^{ij}

*) ≤ (*t

*+*r

^{i}

*) and the current vector directions*r

^{j}

*(*v

^{i}

*) and*t

*(*v

^{j}

*) are on the same side of*t

*(*L

^{ij}

*), and the attitude vectors*t

Note that for the avoidance process, the attitude control algorithm attempts to expand the angles * θ*(

^{i}

*) and*t

*(*θ

^{j}

*) to an angle =*t

*/2. Based on this initial configuration, therefore,*π

*(*v

^{i}

*) and*t

*(*v

^{j}

*) will remain parallel or close to parallel, but not in opposite directions. If this continues, the desired goal positions may never be reached, or may be reached after a great deal of effort. To resolve this problem, it is required to determine whether the two vehicles are indeed in a cross-path configuration. The task is therefore to see if there exists a point or line of intersection between*t

*.*L

^{ij}

#### 3.3.4. Determining cross-path collision in 3D and 2D.

To determine cross-path collision between * i*and

*in 3D, two planes*j

*and*PL

^{i}

*are defined, both parallel to the*PL

^{j}

*axes of the world coordinate frame (Figure 9). Each plane must contain the vectors*z

*is defined as the set (*PL

^{i}

*(*N

^{i}

*),*t

*(*x

^{i}

*),*t

*(*v

^{i}

*),*t

*(*z

*)), where*t

*(*z

^{i}

*) is a point chosen above or below*t

*(*x

^{i}

*) or*t

*(*v

^{i}

*) on the*t

*axis and*z

*(*N

^{i}

*) is the normal vector perpendicular to*t

*(*x

^{i}

*),*t

*(*v

^{i}

*), and*t

*(*z

^{i}

*). Once*t

*(*N

^{j}

*) is similarly defined, the intersection of the two planes can be computed using techniques from computational geometry. If the two planes are not parallel, the computation of planes’ intersection will return a line*t

*. Once this line is determined, the next step is check if it is on one side of the plane parallel to the*l

^{ij}

*axis and containing the points*z

*(*x

^{i}

*) and*t

*(*x

^{j}

*).*t

An easy way to do this is to compute the perpendicular distances from the points * x*(

^{i}

*),*t

*(*v

^{i}

*),*t

*(*x

^{j}

*), and*t

*(*v

^{j}

*), to*t

*.*l

^{ij}

Let the corresponding distances be:

If

The analysis is simpler in the 2D case. Instead of * l*, we search for a point

^{ij}

*, which is the point of intersection of the lines passing through*p

^{ij}

*instead of*p

^{ij}

*in the previous set of equations.*l

^{ij}

Figure 11 shows an illustration of the computation of * i*.

Figure 12(a) is a cross-path collision configuration, but (b) is a simple collision configuration.

The solution strategy adopted is to convert any cross-path configuration such as Figure 12 (a) to a simple configuration such as (b). To do this, one only must move either * v*(

^{i}

*) or*t

*(*v

^{j}

*) to the other side of*t

*(*L

^{ij}

*) (or onto the line*t

*(*L

^{ij}

*)). A simple strategy to decide which*t

*(*v

*) should be moved to obtain smoother phase transition is to measure*t

*(*θ

^{i}

*) and*t

*(*θ

^{j}

*). If*t

*(*θ

^{j}

*) <*t

*(*θ

^{i}

*), then*t

*(*v

^{j}

*) should be moved. This is done by swapping*t

*(*v

^{j}

*) and*t

*(*θ

^{j}

*), it is the former*t

*(*v

^{j}

*)) that moves, whereas the former*t

*(*v

^{j}

*) (which is now the new*t

Therefore, if a cross-path trajectory is determined, to resolve the problem it is sufficient to swap the variables in one of the avoidance constraints (Eq. (21) or Eq. (22)). For example, Eq. (21) may be left as it is and Eq. (22) is rewritten in the form

The trajectories obtained by applying this strategy to cross-path collision avoidance for two vehicles in 2D and 3D are shown in [14].

#### 3.3.5. Resolving cross-path collision for more than two vehicles

If more than two vehicles are involved as shown in Figure 13, for any vehicle * i*, whose attitude vector

*(*v

^{i}

*) is in a cross-path configuration with vehicles*t

*and*j

*, we are concerned only about the two bounding obstacle vectors*k

In order not to get into a stalemate situation (undesirable for aircraft), only positive nonzero velocities are required to be generated. We adopt a counterclockwise avoidance measure to achieve this, where, for each vehicle, the left bounding obstacle vector is always chosen as the cross-path obstacle vector for avoidance. For example, for * k*to turn counterclockwise, it chooses the vector

### 3.4. Consensus with Q-CAC–based avoidance

Once a safe attitude vector * v*(

^{i}

*) is computed at time*k

*for any*k

*, the next position*i

*(*x

^{i}

*+ 1) is computed as a point a distance*k

r

^{∗i}/2 from the current position, along the vector

*(*v

^{i}

*). Note that*k

*(*v

^{i}

*) is normalized to keep the computed control bounded. Whether there are intersections of the safety regions or not, one can guarantee the safety of the algorithm by bounding the control size within the interval 0 <*k

*≤*u

^{i}

r

^{∗i}/2. This means that a vehicle never steps beyond its safety region at any single time step.

Another important consideration is the size of control computed at each time using Laplacian matrices, which is directly proportional to the algebraic connectivity of the communication graph, and inversely proportional to the magnitude of the current time * k*. This means that, while the early values of

**are large and therefore unsafe for collision avoidance (and must be bounded), the latter values of**u

**are very small and therefore slow down the rate of convergence. One can observe that collisions are less likely to occur in the latter times when the vehicles are closer to their goal positions; consequently, convergence is slower at that time. Therefore, there is need to obtain constantly bounded control**u

**which can guarantee both collision avoidance and a high speed of convergence. The following modifications to Eq. (4) and Eq. (5) were proposed in our previous works [5, 9, 14]. For the leader-follower architecture,**u

And for the leaderless architecture,

where _{2}() is the second smallest eigenvalue of the Laplacian

**. The parameter**L

*is for scaling the consensus term and*η

*is for scaling the proportional term in Eqs. (32) and (33). The logarithmic term log*β

_{10}(

*+ 1) and the term*k

**‖ when**u

*is small and increase ‖*k

**‖ when**u

*is large. The choices of parameters*k

*and*η

*should depend on the radius of*β

**and safety region**S

*for each vehicle. Alternatively, one may choose to compute an unbounded*ε

**using Eqs. (4) or (5), then for each**u

*and set*u

^{i}

The step-by-step procedure for implementing the algorithm including a flowchart can be found in Ref. [14].

## 4. Simulation results

To demonstrate the solutions developed in this chapter, we revisit the experiment presented in Figure 1. The robots are homogeneous, and ** S**for each robot is 85 mm,

*= 90 mm, whereas the dimensions of the soccer pitch are 6050 mm x 4050 mm. In Figure 14 (a), Eq. (5) was applied with the cyclic communication topology with one leader (Figure 2). In Figure 14 (b), Eq. (33) was applied with a full communication topology (i.e., every vehicle can communicate with each other). The simulation was done with MATLAB R2009a on an Intel*ε

^{®}Core(TM)2 Duo P8600 @ 2.40 GHz with 2 GB RAM, running Windows 7. For Figure 14(a), the multipath planning problem took 244 time-steps to solve, resulting in a total computation time of 7.343 s, in which 203 avoidance attempts were made, and there were no collisions. For Figure 14(b), using a full communication topology, the computational time was 0.0131 s, and there were no collisions.

In [14], more simulations and analyses are presented, together with the limitations of this approach, which remains to be explored for future development.

## 5. Conclusion

In this chapter, we considered consensus-based multipath planning. An approach to incorporating collision avoidance in adversarial situations in the consensus algorithm by applying Q-CAC is presented. Simulation results are presented here to show that for a sizable number of vehicles, collision avoidance and fast convergence are guaranteed. Future work will include implementation on a team of mobile robots and autonomous aerial vehicles.