Edge-Weighted Consensus-Based Formation Control Wi
Edge-Weighted Consensus-Based Formation Control Wi
Article
Edge-Weighted Consensus-Based Formation Control with
Collision Avoidance for Mobile Robots Based on Multi-Strategy
Mutation Differential Evolution
Jesus Hernandez-Barragan 1 , Tonatiuh Hernandez 2 , Jorge D. Rios 1 , Marco Perez-Cisneros 3
and Alma Y. Alanis 1, *
xib = xi + bi cos(θi )
(2)
yib = yi + bi sin(θi ),
𝑦ሶ 𝑖
𝑦𝑖𝑏 𝐵
𝜃𝑖
𝑦𝑖
𝑏𝑖
𝑥𝑖 𝑥𝑖𝑏 𝑥ሶ 𝑖
Figure 1. Differential drive robot model.
y y
To drive the robot, the input control (uix , ui ) is designed such as ẋib = uix and ẏib = ui .
Then, using the following input transformation
x
uix
vi u cos(θi ) sin(θi )
= T−1 (θi ) iy = y , (4)
ωi ui − sin(θi )/bi cos(θi )/bi ui
Mathematics 2023, 11, 3633 4 of 19
ẋib = uix
y
ẏib = ui (5)
y
θ̇i = (ui cos(θi ) − uix sin(θi ))/bi .
an edge (i, j) represents the bidirectional communication between agents i and j. By con-
struction, L1 N = 0, such that 1 N = [1, · · · , 1]> , L is symmetric, it has a unique zero
eigenvalue, and the rest of its spectrum is strictly positive [20].
where zi := [ xib , yib ]> , Ni = {∀v j ∈ V | (i, j) ∈ E } is the Neighbors subset of the ith robot,
and wij (z) is a positive edge-weight function in terms of z := [z1> , . . . , z> N ]. Defining a
weight matrix as
W (z) = diag({wij (z) | (i, j) ∈ E }) ∈ R M× M , (9)
and the weighted Laplacian matrix as follows
where αij > 0 defines the inter-robot influence, zij := zi − z j stands for the position error,
and k ij > 0 is a constant related to the distance between robots.
The edge-weight function (12) was designed based on an edge-tension function that
guarantees collision avoidance between agents i and j, if the δ parameter is strictly greater
than the distance kzij k [11].
The distance between robots i and j is given by
q
kzij k = δ + k ij acsch k ij . (13)
Mathematics 2023, 11, 3633 5 of 19
The selection of the k ij values determines the final formation. It means that the edge-
weight control requires the appropriate selection of the k ij values to drive the robots to a
desired formation. Thus, given a formation pattern in cartesian coordinates, the goal is to
adjust the k ij gain such that
khi − h j k − kzij k = 0, (14)
where hi is the desired bias of agent i, and h j is the desired bias of agent j, both biases
defined with respect to the centroid of the desired formation.
This work proposes to solve the problem statement in (14), as an optimization problem.
An objective function to deal with the optimization is described in the next subsection.
For further details of the Laplacian-based feedback method and collision avoidance,
the reader is referred to read [11].
where xn ∈ R M , since the cardinality of E defines the dimension of the optimization problem.
Based on the edge-weight graph strategy, each element knij ∈ xn is related to a distance
dij between agents i and j. The distance dijn (knij ) is computed as
n
q
dijn (knij ) = δ + knij acsch knij . (16)
On the other hand, a desired distance dij∗ between agents i and j can be defined based
on the desired formation pattern in cartesian coordinates. Distance dij∗ is given by
An objective function can be designed such that (dij∗ − dijn (knij )) → 0. Then, an error
= dij∗ − dijn (knij ) is defined, ∀(i, j) ∈ E .
eijn (knij )
Finally, the following objective function f (xn ) is proposed
1
f (xn ) = e ( x n ) T e ( x n ), (18)
M
where each element knij ∈ xn is considered a feasible solution if knij > 0. Otherwise,
unfeasible solutions knij <= 0 cause system instability while performing the formation
control task.
In this work, the MMDE algorithm is used to solve this optimization problem stated
in (19).
In conventional DE, the mutation strategy DE/rand/1 is utilized for global optimiza-
tion, but its convergence ability is often insufficient with low convergence speed. On the
other hand, the mutation strategy DE/best/1 is utilized for local optimization, but it suffers
from premature convergence. Based on [18], this work presents the MMDE scheme to
enhance the convergence speed while avoiding premature convergence of the conventional
DE algorithm. The procedure of MMDE to solve minimizationn problemsois shown below.
g g g g
In the mutation operation, a mutant vector vn = vn1 , vn2 , · · · , vnD is generated for
each individual n according to
g g g
xbest + F xr2 − x3 if 1 ≤ g ≤ G/4
xrg + (1 − F ) xrg − xrg
if G/4 < g ≤ G/2
g 1
2 3
vn = g g g
(20)
x best + ( 1 − F ) x r2 − x 3 if G/2 < g ≤ 3G/2
xrg + F xrg − xrg
if 3G/2 < g ≤ G,
1 2 3
g g g
where xr1 , xr2 , and xr3 are randomly selected individuals such as r1 , r2 , r3 ∈ {1, NP } and
n 6= r1 6= r2 6= r3 . The parameter F ∈ [0, 1] is called the amplification factor, and it
g g
controls the amplification of the differential variation (xr2 − xr3 ). Moreover, best is the best
individual in the population at generation g, and G is the total number of generations.
As shown in (20), the mutation scheme is divided into four generation units. The first
and the third generation promote exploitation search and speed convergence. The second
and fourth generation unitsn prevent population
o stagnation in local optima regions [18].
g g g g
A trial vector un = un1 , un2 , · · · , unD is generated based on the following binomial
crossover operation
g
g vnm if rm ≤ CR or m = mrand
unm = g (21)
xnm otherwise,
where m = 1, 2, 3, · · · , D and CR ∈ [0, 1] is the crossover constant. rm and mrand are uniform
random numbers defined as rm ∈ [0, 1] and mrand ∈ {1, D }. The number mrand ensures
g g
that the trial vector un obtains at least one element from the mutation vector vn to avoid
evolutionary stagnation [22].
g g
In the selection operation, the trial vector un is compared to the actual vector xn based
g g
on the evaluation of an objective function f . If f (un ) yields a better solution than f (xn ),
g g g
then un replaces xn . Otherwise, xn is retained to the next iteration g + 1. The selection
scheme is defined as g g g
g +1 un if f (un ) ≤ f (xn )
xn = g (22)
xn otherwise.
A detailed description of conventional DE and its modifications can be found in [17,21,22].
This work proposes to optimize the k ij values for the edge-weighted formation control,
∀(i, j) ∈ E , such that each robot i achieves the desired formation defined with cartesian
coordinates.
The description of the proposed approach is illustrated in Figure 2. The MMDE-
based formation pattern scheme consists of two stages: The first stage involves offline
optimization. In this phase, the MMDE algorithm determines the corresponding k ij values
based on a desired formation pattern hi with respect to the centroid of the formation.
In the second stage, the edge-weighted control strategy is employed to achieve the desired
formation using the calculated k ij values.
where kmin max are the lower and upper bounds, respectively. Moreover, r ∈ [0, 1] is a
ij and k ij
uniform random number. This boundary must be selected such as kmax
ij > kmin
ij > 0.
g
It is important to notice that some elements knij of the trial vector un may represent
unfeasible solutions due to the impact of the mutation operation. To deal with unfeasible
solutions, it is proposed to follow the next scheme
(
n
kmin max − k min ) if k n <= 0
ij + r ( k ij ij ij g
k ij = ∀ knij ∈ un , (24)
knij otherwise,
where each knij value is randomly computed to make it feasible. A summary of the MMDE
algorithm to adjust the k ij values, ∀(i, j) ∈ E for the edge-weighted formation control is
shown in Algorithm 1.
Mathematics 2023, 11, 3633 8 of 19
Algorithm 1 MMDE algorithm to adjust the k ij values, ∀(i, j) ∈ E for the edge-weighted
formation control
1: define each bias hi for each robot
2: set G, NP , F ∈ [0, 1] and CR ∈ [0, 1] parameters
3: set safety distance parameter δ and boundary [ k min max
ij , k ij ]
4: f (xn ) ← objective function defined in (18)
5: for each individual n ∈ {1, NP } do
6: define individual position xn = {knij | (i, j) ∈ E }
7: /* Perform initialization based on (23) */
8: knij = kmin max − k min ), ∀ k n ∈ x
ij + r ( k ij ij ij n
9: end
10: for each generation g ∈ {1, G } do
11: for each individual n ∈ {1, NP } do
g
12: /* Generate the mutant vector vn based on (20) */
13: randomly choose r1 , r2 , r3 ∈ {1, NP } such as n 6= r1 6= r2 6= r3
14: best ← find the best individual
15: if 1 ≤ g ≤ G/4 then
g g g g
16: vn = xbest + F xr2 − x3
17: else if G/4 < g ≤ G/2 then
g g g g
18: v n = x r1 + (1 − F ) x r2 − x r3
19: else if G/2 < g ≤ 3G/2 then
g g g g
20: vn = xbest + (1 − F ) xr2 − x3
21: else if 3G/2 < g ≤ G then
g g g g
22: v n = x r1 + F x r2 − x r3
23: end
g
24: /* Generate the trial vector un based on (21) */
25: randomly choose mrand ∈ {1, D }
26: for each dimensional parameter m ∈ {1, D } do
27: randomly choose rm ∈ [0, 1]
28: if rm ≤ CR or m = mrand then
g g
29: unm = vnm
30: else
g g
31: unm = xnm
32: end
33: end
g
34: /* Deal with unfeasible solutions knij <= 0, ∀ knij ∈ un based on (24) */
35: n
if k ij <= 0 then
36: knij = kmin max − k min )
ij + r ( k ij ij
37: end
38: /* Perform
the selection
operation based on (22) */
g g
39: if f un < f xn then
g +1 g
40: xn = un
41: else
g +1 g
42: xn = xn
43: end
44: end
45: end
46: best ← find the best individual
47: report the optimal kbest
ij ∈ xbest values related to the best individual
Mathematics 2023, 11, 3633 9 of 19
6. Experimental Results
The applicability of the proposed approach is demonstrated through simulation and
real-world experiments. All parameter settings used for both experiments are provided below.
The settings of the MMDE algorithm are defined as follows: The amplification factor
F = 0.5 and the crossover constant CR = 0.5, as suggested in [17]. Moreover, a total of
G = 150 iterations and N = 30 population members were selected. With respect to the
edge-weight formation strategy settings, the safety distance was set to δ = 0.15, and the
inter-robot influence was fixed to α = 0.05. These parameters were experimentally selected.
For simplicity, the physical parameter bi is set to 0.08 meters for all robots. Additionally,
the linear and angular velocities (vi , ωi ) have been bounded to −0.2 ≤ vi ≤ 0.2 and
−0.9 ≤ ωi ≤ 0.9. This saturation is imposed to protect the equipment, especially for
real-world implementations.
All experiments are conducted as follows: First, a desired formation pattern is pro-
vided in cartesian coordinates hi with respect to the centroid of the formation. Then,
the MMDE algorithm optimizes offline the k ij values ∀(i, j) ∈ E for the edge-weighted
formation control. Finally, the edge-weighted formation control was performed online to
achieve the desired formation.
For real-world experimentation, up to five Turtlebot3 (Turtlebot3 is a registered trade-
mark of ROBOTIS Inc. USA) Waffle Pi mobile robots have been considered. The Turtlebot3®
Waffle Pi is a modular differential drive mobile robot, compact and customizable, pro-
grammable and ROS-based platform for education, research, and product development
applications [23] (see Figure 3).
Figure 3. Turtlebot3® Waffle Pi. Onboard cubes of silver reflective fabric are used for tracking purposes.
The ROS (ROS is a registered trademark of Open Robotics, Mountain View, CA, USA)
packages of Turtlebot3® provide access to send velocity control inputs and read its odometry.
However, odometry measures lack precision due to the sensor’s tell, terrain conditions,
and slipping. To deal with this problem, it is proposed to use an OptiTrack (OptiTrack is a
registered trademark of NaturalPoint Inc., Corvallis, OR, USA) tracking system to estimate
the poses of the robots with precision, instead of reading the robot’s odometry.
The OptiTrack® system is composed of six cameras Flex3 (OptiTrack Flex 3 is a regis-
tered trademark of NaturalPoint Inc., Corvallis, OR, USA) and a computer with the software
Motive for streaming. Tracking information is sent using ROS® packages. The space for
real-world implementations is presented in Figure 4.
Another computer is used to receive the poses of the robots from the OptiTrack® sys-
tem, and it sends the respective control signals to each Turtlebot3® . The proposed scheme
is programmed on this computer using MATLAB (MATLAB is a registered trademark of
Mathworks Inc., Torrance, CA, USA) and its ROS® toolbox.
Mathematics 2023, 11, 3633 10 of 19
Figure 4. OptiTrack® setup for real-world implementations. The six cameras Flex3® are installed on
the ceiling.
𝑘12
1 2
𝑘13 𝑘24
𝑘14 𝑘23
4 3
𝑘34
Figure 5. Communication topology among robots for simulation experiments. Each k ij value must be
adjusted to define a desired formation.
𝑇 𝐡1 = 1 𝑇 𝑇 𝑇
𝐡2 = −1 1 1 𝐡1 = −0.5 1 𝐡2 = 0.5 1
2 1 1 2
𝑦 𝑦
𝑥 𝑥
4
𝐡4 = 0 𝑇
0
3 4 3
𝑇 𝑇 𝐡3 = 1.5 𝑇
𝐡3 = 0 −1 𝐡4 = −1.5 −1 −1
(a) (b)
Figure 6. Desired formation patterns in cartesian coordinates hi used for simulation. The xy frame
represents the centroid of the formation pattern. (a) Formation pattern for Simulation 1. (b) Formation
pattern for Simulation 2.
Table 1 reports the optimal k ij values of both simulation tests. In the case of Simula-
tion 1, the values k13 = k23 and k14 = k24 were expected to be equal due to the shape of its
desired formation pattern (see Figure 6). Similarly, the values k14 = k23 and k13 = k24 were
expected to be the same for Simulation 2.
Mathematics 2023, 11, 3633 11 of 19
Table 1. Optimization results of MMDE. The table reports the optimal k ij values. Moreover, f best is
the objective function evaluation at the final generation.
Table 1 also shows the objective function evaluation at the final generation called
f best . The performance of MMDE is similar in both tests. After a total of 150 generations,
the algorithms report an objective function evaluation of 1.7184 × 10−25 and 1.5517 × 10−24 ,
for Simulations 1 and 2 2, respectively. The reported f best values are small enough to
consider the k ij values optimal for the edge-weighted formation control.
The convergence curves results for simulation experiments are illustrated in Figure 7.
These results exhibit the fast convergence speed of the MMDE algorithm. Moreover,
the algorithm also demonstrates its exploitation search capability.
10-5 10-5
fitness value
fitness value
10-10 10-10
10-15 10-15
10-20 10-20
10-25 10-25
100 101 102 100 101 102
generations generations
(a) (b)
Figure 7. Convergence curve results of simulations. The fitness value represents the objective
function evaluation. (a) Convergence curve of Simulation 1. (b) Convergence curve of Simulation 2.
As it may be appreciated from Figure 8, the robots converge to the desired formation
pattern for Simulation 1. Figure 8a reports the position trajectories of each robot, in cartesian
coordinates. Additionally, the achieved formation pattern is drawn in Figure 8b. Notice
that the formation shape rotates to avoid collision among robots, reaching the desired
formation from Figure 6a.
1 1
0.5 0.5
4 4
y (m)
y (m)
1 bot 1 1
0 bot 2 0
bot 3
bot 4
-0.5 -0.5
-1 2 -1 2
(a) (b)
Figure 8. Results of position trajectories and achieve formation pattern, in cartesian xy-plane of
Simulation 1. The initial robot’s positions are identified with asterisk markers. m: meters. (a) Position
trajectories of Simulation 1. (b) Achieved formation of Simulation 1.
Mathematics 2023, 11, 3633 12 of 19
The formation control results along time of Simulation 1 are reported in Figure 9.
The position trajectories show smooth displacements (see Figure 9a). The control signals
are also smooth, as can be seen in Figure 9b. Moreover, the robot reached its formation
after 30 s.
Position trajectories along time Input control signals along time
1.5 1
1
0.5
0.5
rad/s, m/s
m
0 0
-0.5
-0.5
-1
-1.5 -1
0 10 20 30 40 50 60 0 10 20 30 40 50 60
time (s) time (s)
(a) (b)
Figure 9. Results of position trajectories and input control signals, along time of Simulation 1. m: meters,
s: seconds. (a) Position trajectories of Simulation 1. (b) Input control signals of Simulation 2.
Cartesian paths followed by the robots reached the desired formation (see Figure 10a).
Notice that Robot 2 and Robot 3 avoid a possible collision. Moreover, the achieved forma-
tion in Figure 10b is the one expected in Figure 6b. As can be observed, the final formation
is rotated since the formation adapts its shape to avoid collisions.
0
0
y (m)
y (m)
bot 1 1
1 bot 2 -0.5
-0.5 bot 3
bot 4
-1 -1
-1.5 -1.5
4 4
-2 -1 0 1 2 -1 0 1 2
x (m) x (m)
(a) (b)
Figure 10. Results of position trajectories and achieve formation pattern, in cartesian xy-plane of
Simulation 2. The initial robot’s positions are identified with asterisk markers. m: meters. (a) Position
trajectories of Simulation 2. (b) Achieved formation of Simulation 2.
Figure 11 presents the results of Simulation 2, which are the position trajectories and
the input control signals along time. Both the position displacements and the control signals
of each robot are smooth, as shown in Figure 11a and Figure 11b, respectively. In this case,
the robots reached the desired formation after 25 s.
Mathematics 2023, 11, 3633 13 of 19
1 0.5
rad/s, m/s
m 0 0
-1 -0.5
-2 -1
0 10 20 30 40 50 60 0 10 20 30 40 50 60
time (s) time (s)
(a) (b)
Figure 11. Results of position trajectories and input control signals, along time of Simulation 2. m:
meters, s: seconds. (a) Position trajectories of Simulation 2. (b) Input control signals of Simulation 2.
2 𝑘23
𝑘12
𝑘12 𝑘25
1 2 1 𝑘13 3
𝑘14
𝑘13 𝑘23
𝑘15 𝑘24 𝑘34
3
𝑘35
5 4
𝑘45
(a) (b)
Figure 12. Communication topology among robots for real-world experiments. Each k ij value
must be adjusted to define a desired formation. (a) Communication topology for Experiment 1.
(b) Communication topology for Experiment 2.
𝑇 𝑇 𝑇
𝐡3 = 0 1 𝐡5 = −0.75 0.75 𝐡1 = 0.75 0.75
3 5 1
𝑦
𝑦
𝑥 𝑥
2
𝑇
𝐡2 = 0 0
2 1 4 3
𝑇 𝐡1 = 1 −1 𝑇 𝑇 𝑇
𝐡2 = 0 −1 𝐡4 = −0.75 −0.75 𝐡3 = 0.75 −0.75
(a) (b)
Figure 13. Desired formation patterns in cartesian coordinates hi used for real-world experiments.
The xy frame represents the centroid of the formation pattern. (a) Formation pattern for Experiment 1.
(b) Formation pattern for Experiment 2.
Mathematics 2023, 11, 3633 14 of 19
Table 2 reports the optimal k ij values of Experiment 1. In this case, k12 6= k13 6= k23 as
expected (see Figure 13a). The result f best = 1.6435 × 10−34 is smaller than the previous
tests since the formation pattern is easier with lower dimensionality.
Table 2. Optimization results of MMDE in Experiment 1. The table reports the optimal k ij values.
Moreover, f best is the objective function evaluation at the final generation.
Table 3 shows the optimal k ij values of Experiment 2. The obtained results are
k13 = k15 = k34 = k45 , k12 = k23 = k24 = k25 , and k14 = k35 , as required by the de-
sired formation pattern in Figure 13b. Notice that f best = 1.1843 × 10−16 is the most
significant result among tests since the required formation pattern is more challenging to
solve. However, the optimal k ij values are still small enough for the formation control task.
Table 3. Optimization results of MMDE in Experiment 2. The table reports the optimal k ij values.
Moreover, f best is the objective function evaluation at the final generation.
The convergence curve results for real-world experiments are illustrated in Figure 14.
As can be seen, the convergence curve looks similar in both tests. These curves are also
similar to the simulation experiment results (see Figure 7). However, previous objec-
tive function evaluations suggest that more generations are required for more complex
communications topologies.
10-10
10-5
fitness value
fitness value
10-20
10-10
-30
10
10-15
10-40
100 101 102 100 101 102
generations generations
(a) (b)
Figure 14. Convergence curve results of real-world experiments. The fitness value represents the
objective function evaluation. (a) Convergence curve of Experiment 1. (b) Convergence curve of
Experiment 2.
Figure 15 illustrates that robots reached the desired formation pattern for Experiment 1.
In this case, Figure 15a shows that position trajectories in the plane are smooth. Moreover,
there was no risk of collision. However, the edge-weight control still rotates the center of
the formation to best achieve the desired formation pattern (see Figure 15b).
Mathematics 2023, 11, 3633 15 of 19
bot 1
0 0
y (m)
y (m)
bot 2
bot 3
-0.5 -0.5
-1 -1
3 3
(a) (b)
Figure 15. Results of position trajectories and achieve formation pattern, in cartesian xy-plane of
Experiment 1. The initial robot’s positions are identified with asterisk markers. m: meters. (a) Position
trajectories of Experiment 1. (b) Achieved formation of Experiment 1.
Figure 16 presents the position trajectories and input control signals along time of
Experiment 1. As it may be appreciated from Figure 16a, trajectories reached the forma-
tion pattern around 20 s. Clearly, the control signals start saturated, but after 10 s their
performance becomes smooth (see Figure 16b).
0.5
0.5
rad/s, m/s
0
m
0
-0.5
-0.5
-1
-1.5 -1
0 10 20 30 40 50 60 0 10 20 30 40 50 60
time (s) time (s)
(a) (b)
Figure 16. Results of position trajectories and input control signals, along time of Experiment 1. m:
meters, s: seconds. (a) Position trajectories of Experiment 1. (b) Input control signals of Experiment 1.
Regarding Experiment 2, the formation pattern results are provided in Figure 17. In this
case, the initial positions of robots 2 and 4 are proposed in a way that their trajectories cross
to show that the controller avoids the collision. However, the cartesian path followed by
the robots reported that the collision is avoided (see Figure 17a). Moreover, the formation
pattern is achieved successfully, as illustrated in Figure 17b.
Mathematics 2023, 11, 3633 16 of 19
0.5 5 0.5 5
bot 1
0 bot 2 0
y (m)
y (m)
2 bot 3 2
bot 4
bot 5
-0.5 -0.5
4 4
-1 3 -1 3
(a) (b)
Figure 17. Results of position trajectories and achieve formation pattern, in cartesian xy-plane of
Experiment 2. The initial robot’s positions are identified with asterisk markers. m: meters. (a) Position
trajectories of Experiment 2. (b) Achieved formation of Experiment 2.
Figure 18 reports the formation control results along time of Experiment 2. The desired
formation is reached after 30 s. Figure 18a shows that the robots converge smoothly to
the desired formation pattern at around 30 s. However, input control signals reported in
Figure 18b are not smooth as previous tests. Although this test is more complex than the
previous ones, many drawbacks of the real-world implementations arose, such as non-
modeled dynamics, external perturbations, robot wear conditions, and imperfections in the
surface. Moreover, ROS® packages pass through a local network via Wi-Fi communications
involving loss of packages and delays. Despite all these drawbacks, the control strategy
succeeds in achieving the required formation.
1
0.5
rad/s, m/s
0.5
m
0
0
-0.5
-0.5
-1 -1
0 10 20 30 40 50 60 0 10 20 30 40 50 60
time (s) time (s)
(a) (b)
Figure 18. Results of position trajectories and input control signals, along time of Experiment 2.
m: meters, s: seconds. (a) Position trajectories of Experiment 2. (b) Input control signals of Experiment 2.
(a) (b)
Figure 19. Achieved formation pattern in the real-world implementation using Turtlebot3® Waffle Pi
robots. Green lines approximate the reached formation pattern. Each number indicates the ith robot.
(a) Achieved formation of Experiment 1. (b) Achieved formation of Experiment 2.
7. Discussion
Desired formation patterns are often given in cartesian coordinates instead of provid-
ing gain weights since cartesian coordinates are easier to define with respect to the center of
the formation. The formation pattern choosing the gain weights in edge-weighted graphs
can be complicated, especially for complex robot networks. The proposed MMDE-based
formation pattern algorithm has successfully provided optimal gain weights given cartesian
coordinates, which was the main contribution of the paper.
It has been shown that the edge-weighted formation control exploits the properties
of weighted graphs to allow the formation to rotate and adapt its shape to avoid collision
among robots.
Moreover, all experiments were performed based on a complete graph topology.
However, not all the vertices are required to be connected, since the communication
topology only requires an undirected, static, connected, and weighted graph [11]. It is let
as a future work to study the impact of the MMDE-based formation pattern, varying the
vertices connections.
The performance of the edge-weight control scheme was admirable in real-world
implementations since ROS® packages pass through a local network via Wi-Fi communica-
tions involving loss of packages and delays. Additionally, the results of simulations and
real-world experiments indicate that the robots reached the desired formation patterns with
smooth trajectories in the xy-plane. However, the input control signals of the experiments
were not as smooth as in the simulation. This is mainly due to non-modeled dynamics,
external perturbations, loss of packages, and other drawbacks of the physical implementa-
tions which are not considered in simulated scenarios. Despite all these inconveniences,
the edge-weight control performs well.
In this work, the MMDE-based formation pattern algorithm is performed offline,
while the edge-weighted formation control drives the mobile robots online. It is left to
future work to propose an online optimization-based formation pattern. In this manner,
the desired formation pattern can be changed during online operation.
Moreover, the collision avoidance capacities of edge-weighted formation control can
be combined with pin control of complex networks, adding a dynamic topology without
restricting complete graph connection in complex networks [9].
8. Conclusions
This paper addressed an edge-weighted consensus-based formation control for dif-
ferential drive robots. An MMDE-based formation pattern algorithm was proposed to
provide the gain weights in edge-weighted graphs, given a desired formation in cartesian
coordinates. Then, the edge-weighted formation control drives the mobile robots to the
desired formation control, based on the adjusted gain weights. Simulation and real-world
experiments were performed to verify the effectiveness and applicability of the proposed
Mathematics 2023, 11, 3633 18 of 19
Author Contributions: Conceptualization, J.H.-B. and T.H.; Data curation, J.D.R. and J.H.-B.; Funding
acquisition, A.Y.A. and M.P.-C.; Investigation and software, J.D.R. and T.H.; Methodology, J.H.-B.
and T.H.; Project administration and supervision, A.Y.A. and M.P.-C.; Validation, J.H.-B., T.H. and
J.D.R.; Visualization and Writing, J.H.-B., J.D.R., T.H. and A.Y.A. All authors read and agreed to the
published version of the manuscript.
Funding: This research was funded by CONAHCYT Mexico, through Project PCC-2022-319619.
Data Availability Statement: The data analyzed are available from the authors upon request.
Acknowledgments: The authors also thank Universidad de Guadalajara for their support in this re-
search.
Conflicts of Interest: The authors declare no conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
References
1. Issa, B.A.; Rashid, A.T. A survey of multi-mobile robot formation control. Int. J. Comput. Appl. 2019, 181, 12–16.
2. Latora, V.; Nicosia, V.; Russo, G. Complex Networks: Principles, Methods and Applications; Cambridge University Press: Cambridge,
UK, 2017.
3. Jadbabaie, A.; Lin, J.; Morse, A.S. Coordination of groups of mobile autonomous agents using nearest neighbor rules. IEEE Trans.
Autom. Control. 2003, 48, 988–1001. [CrossRef]
4. Godsil, C.; Royle, G.F. Algebraic Graph Theory; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2001; Volume 207.
5. Ren, W.; Beard, R.W.; Atkins, E.M. Information consensus in multivehicle cooperative control. IEEE Control. Syst. Mag. 2007,
27, 71–82.
6. Grandi, R.; Falconi, R.; Melchiorri, C. Coordination and control of autonomous mobile robot groups using a hybrid technique
based on particle swarm optimization and consensus. In Proceedings of the 2013 IEEE International Conference on Robotics and
Biomimetics (ROBIO), Shenzhen, China, 12–14 December 2013; IEEE: Piscataway, NJ, USA, 2013; pp. 1514–1519.
7. Jin, J.; Kim, Y.G.; Wee, S.G.; Gans, N. Consensus based attractive vector approach for formation control of non-holonomic mobile
robots. In Proceedings of the 2015 IEEE International Conference on Advanced Intelligent Mechatronics (AIM), Busan, Republic
of Korea, 7–11 July 2015; IEEE: Piscataway, NJ, USA, 2015; pp. 977–983.
Mathematics 2023, 11, 3633 19 of 19
8. Molinari, F.; Raisch, J. Efficient consensus-based formation control with discrete-time broadcast updates. In Proceedings of the
2019 IEEE 58th Conference on Decision and Control (CDC), Nice, France, 11–13 December 2019; IEEE: Piscataway, NJ, USA, 2019;
pp. 4172–4177.
9. Rios, J.D.; Ríos-Rivera, D.; Hernandez-Barragan, J.; Pérez-Cisneros, M.; Alanis, A.Y. Formation Control of Mobile Robots Based
on Pin Control of Complex Networks. Machines 2022, 10, 898. [CrossRef]
10. Nuno, E.; Loria, A.; Hernández, T.; Maghenem, M.; Panteley, E. Distributed consensus-formation of force-controlled non-
holonomic robots with time-varying delays. Automatica 2020, 120, 109114. [CrossRef]
11. Falconi, R.; Sabattini, L.; Secchi, C.; Fantuzzi, C.; Melchiorri, C. Edge-weighted consensus-based formation control strategy with
collision avoidance. Robotica 2015, 33, 332–347. [CrossRef]
12. Secchi, C.; Fantuzzi, C. Formation control over delayed communication networks. In Proceedings of the 2008 IEEE International
Conference on Robotics and Automation, Pasadena, CA, USA, 19–23 May 2008; IEEE: Piscataway, NJ, USA, 2008; pp. 563–568.
13. Falconi, R.; Sabattini, L.; Secchi, C.; Fantuzzi, C.; Melchiorri, C. A graph–based collision–free distributed formation control
strategy. IFAC Proc. Vol. 2011, 44, 6011–6016. [CrossRef]
14. Darvishpoor, S.; Darvishpour, A.; Escarcega, M.; Hassanalian, M. Nature-Inspired Algorithms from Oceans to Space: A
Comprehensive Review of Heuristic and Meta-Heuristic Optimization Algorithms and Their Potential Applications in Drones.
Drones 2023, 7, 427. [CrossRef]
15. Slowik, A.; Kwasnicka, H. Evolutionary algorithms and their applications to engineering problems. Neural Comput. Appl. 2020,
32, 12363–12379. [CrossRef]
16. Bilal; Pant, M.; Zaheer, H.; Garcia-Hernandez, L.; Abraham, A. Differential Evolution: A review of more than two decades of
research. Eng. Appl. Artif. Intell. 2020, 90, 103479. [CrossRef]
17. Ahmad, M.F.; Isa, N.A.M.; Lim, W.H.; Ang, K.M. Differential evolution: A recent review based on state-of-the-art works. Alex.
Eng. J. 2022, 61, 3831–3872. [CrossRef]
18. Xiao, P.; Zou, D.; Xia, Z.; Shen, X. Multi-strategy different dimensional mutation differential evolution algorithm. Proc. AIP Conf.
Proc. 2019, 2073, 020102 .
19. Siciliano, B.; Sciavicco, L.; Villani, L.; Oriolo, G. Force Control; Springer: Berlin/Heidelberg, Germany, 2009.
20. Ren, W.; Cao, Y. Distributed Coordination of Multi-Agent Networks: Emergent Problems, Models, and Issues; Springer:
Berlin/Heidelberg, Germany, 2011; Volume 1.
21. Storn, R.; Price, K. Differential evolution-a simple and efficient heuristic for global optimization over continuous spaces. J. Glob.
Optim. 1997, 11, 341. [CrossRef]
22. Simon, D. Evolutionary Optimization Algorithms; John Wiley & Sons: Hoboken, NJ, USA, 2013.
23. Amsters, R.; Slaets, P. Turtlebot 3 as a robotics education platform. In Robotics in Education: Current Research and Innovations 10;
Springer: Berlin/Heidelberg, Germany, 2020; pp. 170–181.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual
author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to
people or property resulting from any ideas, methods, instructions or products referred to in the content.