Skip to main content
Royal Society Open Science logoLink to Royal Society Open Science
. 2024 Sep 4;11(9):240845. doi: 10.1098/rsos.240845

Stigmergy: from mathematical modelling to control

Alain Boldini 1,2,3, Martina Civitella 1, Maurizio Porfiri 1,2,4,
PMCID: PMC11371424  PMID: 39233720

Abstract

Stigmergy, the indirect communication between agents of a swarm through dynamic environmental modifications, is a fundamental self-organization mechanism of animal swarms. Engineers have drawn inspiration from stigmergy to establish strategies for the coordination of swarms of robots and of mixed societies of robots and animals. Currently, all models of stigmergy are algorithmic, in the form of behavioural rules implemented at an individual level. A critical challenge for the understanding of stigmergic behaviour and translation of stigmergy to engineering is the lack of a holistic approach to determine which modifications of the environment are necessary to achieve desired behaviours for the swarm. Here, we propose a mathematical framework that rigorously describes the relationship between environmental modifications and swarm behaviour. Building on recent strides in continuification techniques, we model the swarm and environmental modifications as continua. This approach allows us to design the environmental modifications required for the swarm to behave as desired. Through analytical derivations and numerical simulations of one- and two-dimensional examples, we show that our framework yields the distribution of traces required to achieve a desired formation. Such an approach provides an adaptable framework for different implementation platforms, from robotic swarms to mixed societies of robots and animals.

Keywords: animal behaviour, collective behaviour, control, swarms

1. Introduction

Stigmergy—defined as a ‘mechanism of indirect coordination in which the trace left by an action in a medium stimulates subsequent actions’ [1]—is a fundamental means of self-organization in complex systems [2]. The concept of stigmergy originated from the study of coordination in groups of animals [3]. For example, ants release pheromones in the environment [4] to guide other ants back to the nest once they find food [5], or to cooperatively transport large food items [6]. Likewise, pumas and other large Felidae leave traces in the environment to mark territory so that other conspecifics would avoid the area [7]. In animal colonies that build structures [8,9], such as wasps [10] and termites [11,12], stigmergy allows the incredible coordination of thousands of individuals to build intricate nests, without any pre-planning and central coordination.

With the advent of robotic systems, engineers have taken inspiration from stigmergy in natural swarms to build self-organizing groups of robots that coordinate to achieve a desired goal [1315]. In stigmergy, robots in a swarm not only coordinate to sense the environment [16,17], but they actively modify it to communicate with each other. Through stigmergy, robotic swarms can gather objects [18], sort them [15], navigate unknown environments [19], and search and track a moving target [20]. Stigmergy is particularly promising for collective construction, as the structure that is being built can be utilized as the stigmergic signal itself [21,22]. In this vein, extensions of stigmergic approaches have been proposed to achieve precise and accurate collective construction [23,24]. Stigmergy is an important coordination strategy not only in biological and robotic systems but also in so-called ‘mixed societies’ that integrate biological and robotic individuals [25,26]. Therein, robots are used to create new collective responses or to elicit a desired behaviour from the animal group [27]. In addition to direct social interactions between animals and robots, stigmergic stimuli released by robots have been often used to achieve the desired swarm behaviour, for example through light signals [28] or pheromone release [29] by robots.

A fundamental challenge for biologists is to reconstruct how environmental modifications implemented at an individual level, without a central coordination, trigger a complex behaviour of the swarm, such as the construction of a nest or food gathering. The literature relies on agent-based modelling grounded in individual behavioural rules [1315], which do not allow a holistic analysis of the swarm. Currently, no stigmergic model allows the study of the overall distribution of environmental modifications that enable these complex behaviours. Similarly, engineers are faced with the design problem of how to control robotic agents toward achieving a desired behaviour for the swarm, be it robotic or mixed. Such a challenge requires the development of a mathematically tractable and interpretable framework for stigmergy that could complement existing algorithmic implementations, which rely on a sequence of discrete behavioural rules implemented at the individual level.

Here, we put forward a control-oriented mathematical backdrop to holistically describe environmental modifications in animal swarms and engineer stigmergic interactions in robotic and mixed swarms, where units of the swarm interact with each other and with dynamic modifications of the environment that we identify as ‘traces’. Our mathematical framework is based on recent advancements in the field of control of large multi-agent systems, which relies on a ‘continuification’ of the equations of motion of the swarm [30,31] (see figure 1). In this vein, rather than modelling and controlling individual motions [32], we model the swarm as a continuous fluid and describe the spatio-temporal evolution of its density, similar to thermodynamic approaches for large-scale systems [33] and former robot density control algorithms [3438]. Our work differs from previous studies on continuification-based control of large swarms [30,31] as we do not apply a control action to each swarm unit. In animal swarms and mixed societies, it is not possible to directly control biological units, and even in robotic swarms controlling each unit would require a centralized approach or, at least, some form of connectivity in the swarm [39]. Based on these groundings, we focus on the realistic case where the control engineer can only design dynamic modifications of the environment, such that no centralization or communication between the units is needed.

Figure 1.

Schematics of the control problem and proposed framework for our mathematical model of stigmergy.

Schematics of the control problem and proposed framework for our mathematical model of stigmergy. The control problem that we seek to address is achieving a desired configuration of a large swarm in terms of position of its discrete units. Such a desired configuration is continuified (1) to provide the desired density of the swarm. The density of the traces is computed (2) based on the desired density of the swarm, and is then discretized (3) to allow actual deployment of the traces. The final, desired configuration of the swarm arises from the interaction between units of the swarm and the traces left (4).

While our work shares the same backdrop of continuified swarms as that in Maffettone et al. [30], it tackles the control problem through a totally different perspective. Our control action is not directly applied to the swarm agents; rather, it is mediated by the deposition of traces in the environment. Such a continuified view of stigmergy is an original contribution of this paper, which allows us for the first time to explicitly compute the trace distribution necessary to achieve a desired swarm configuration. In this vein, we offer closed-form solutions of the control input in the form of density of traces.

We examine a prototypical example of a task that can be achieved through stigmergy: shape formation [21,40]. We seek to compute the distribution of traces that make the swarm achieve a desired formation, that is, a prescribed density profile. To this end, we propose a general procedure to compute the density of traces that allows us to retrieve the prescribed density of the swarm. Once the density of traces is known, it is discretized to allow for deployment in a real environment, in a discrete form. We do not focus on implementation details of how such density profile of traces can be generated, as we concentrate on the mathematical modelling of the overarching stigmergic control strategy, generalizable to a variety of practical implementations. While one could describe the dynamics of deposition of the traces, such a process would be heavily context-dependent (for example, the dynamics of ants’ pheromone release [13] is different from that of robotic collective additive manufacturing (AM) [23]), thus hindering the generality of our theory.

We demonstrate the potential of our approach through a series of one- (1D) and two-dimensional (2D) case studies. In the 1D benchmarks, we show that our approach allows for the swarm to achieve a stationary formation and generate travelling waves [41]. The 2D simulations validate our approach in a more realistic scenario. We select a historical, fascinating example, by replicating the complex, non-uniform motion of the robotic lion of Leonardo da Vinci along a wavy circle [42] with our swarm.

2. Mathematical model

We start by introducing the general framework of our problem in a 1D setting, considering a swarm coordinating over a ring (§2.1). We define two types of interactions between units on the ring (§2.2): a purely repulsive interaction and an attractive–repulsive interaction. In §2.3, we put forward analytical solutions for both of these types of interactions. We then introduce a numerical method to study the time-evolution of the swarm at the continuum level in the 1D problem (§2.4), along with the discrete counterpart used to validate our approach (§2.5). Finally, in §2.6, we extend our mathematical model to multi-dimensional problems.

2.1. General framework in one dimension

Our aim is that of controlling a swarm moving on a ring ( S1 ) [43], parametrized with the angle x[π,π) . The state of the swarm is described by the density ρ:𝕊1×++ . We assume that the evolution in time of the density is governed by mass conservation:

ρt+(ρv)x=0, (2.1)

where ()t and ()x indicate partial derivatives in time and space. Here, v:𝕊1×+ is the velocity of the swarm.

We adopt a kinematic model [44] that neglects inertia effects, such that the velocity v depends explicitly on the density through a circular convolution [45]:

v(x,t)=ππqT(xy)ρ(y,t)dy+f(x,t), (2.2)

where qT:𝕊1 is an interaction kernel and f:𝕊1×+ is an external forcing term. The circular convolution is equivalent to the linear convolution over of a periodic function defined over 𝕊1 with a non-periodic kernel defined over (see §2.2). The kernel embodies the interactions between swarm units, typically derived from a potential, which may be repulsive, attractive or a combination of the two modulated by the distance [43]. By construction, the circular convolution in equation (2.2) guarantees that limxπv(x,t)=v(π,t) , so that ρ(π,t)v(π,t)=limxπρ(x,t)v(x,t) . Thus, the total mass of the swarm ππρ(y,t)dy=M is conserved. The model in equations (2.1) and (2.2) naturally arises from the continuification of classical, discrete kinematic models that have been widely used to describe agents’ behaviour in swarms [43].

We seek to develop a control strategy where the external forcing is provided by some ‘traces’ with density ρtr:𝕊1×+ , interacting with the swarm, such that

f(x,t)=ππqT(xy)ρtr(y,t)dy. (2.3)

Since f is defined as a circular convolution, limxπf(x,t)=f(π,t) by design. Here and in the following, we adopt the same interaction kernel qT for the interaction between units in the swarm and the traces. Should the units of the swarm be able to distinguish between their peers and the traces, different interaction kernels can be utilized. We accept the possibility that ρtr may be negative as a computational device to simplify our derivations; we can recover a non-negative ρtr with equivalent effects, as made clear in §2.3.

2.2. Periodicization of the interaction kernels

Periodic interaction kernels qT are obtained from the periodicization of standard non-periodic kernels q :

qT(x)=k=q(x+2kπ). (2.4)

We consider the following two standard non-periodic kernels.

Repulsive kernel. The non-periodic repulsive kernel is in the form

q(x)=sgn(x)e|x|L, (2.5)

where sgn is the sign function. Note that we utilize a length-scale L while fixing the domain to [π,π) . Periodicization leads to

qT(x)=k=sgn(x+2kπ)e|x+2kπ|L. (2.6)

By separating the infinite series into two other infinite series based on the sign of x+2kπ and computing each of these series individually leads to

qT(x)=1e2πL1sgn(x)[e2π|x|Le|x|L]. (2.7)

Morse kernel. The non-periodic Morse kernel is an attractive–repulsive kernel, in the form

q(x)=sgn(x)[1LRe|x|LRαLAe|x|LA]=1LRqR(x)αLAqA(x), (2.8)

having defined

qi(x)=sgn(x)e|x|Li. (2.9)

By following similar steps to the repulsive kernel, we find

qT(x)=1LRqTR(x)αLAqTA(x), (2.10)

where

qTi(x)=1e2πLi1sgn(x)[e2π|x|Lie|x|Li]. (2.11)

2.3. Solution in one dimension

Let us assume that our objective is to attain a chosen density ρ(x,t):𝕊1×++ for the swarm. To find the forcing term f necessary to obtain the desired density, we assume that ρ satisfies equation (2.1), such that

(ρ¯f)x=ρ¯t(ρ¯v¯ρ)x, (2.12)

with v¯ρ(x,t)=ππqT(xy)ρ¯(y,t)dy . By integrating equation (2.12), assuming ρ0 for any x , we obtain

f(x,t)=v¯ρ(x,t)1ρ¯(x,t)ρ¯t(y,t)dy+1ρ¯(x,t)A(t), (2.13)

with A(t) being a function of time only. We note that A(t) may not be chosen freely, as f should satisfy the integral condition ππf(x,t)dx=ππqT(x)dxππρtr(x,t)dx , according to Fubini’s theorem [46]. As typically we consider odd kernels qT , we must have that f integrates to zero over the domain. Thus, A(t) is chosen to instantaneously satisfy this condition.

Once f is computed in closed form, we can derive ρtr from the deconvolution of equation (2.3). Such an operation depends on the interaction kernel qT . For standard interactions kernels introduced in §2.2, we have established a closed-form analytical solution.

Repulsive kernel. For the repulsive kernel [47], we can expand the convolution in equation (2.3) as

f(x,t)=1e2πL1[e2πxLπxeyLρtr(y,t)dyexLπxeyLρtr(y,t)dy+e2π+xLπxeyLρtr(y,t)dyexLπxeyLρtr(y,t)dy]. (2.14)

By taking two derivatives with respect to x , we find

fxx=fL2+2(ρtr)x. (2.15)

Thus, we can retrieve by integration

ρtr(x,t)=12(fxxfL2)dx+B(t), (2.16)

where B(t) is an arbitrary function of time.

Morse kernel. With the Morse kernel, we can write the convolution in equation (2.3) as

f(x,t)=1LRfR(x,t)αLAfA(x,t), (2.17)

where

fi(x,t)=ππqTi(xy)ρtr(y,t)dy. (2.18)

From equation (2.16), we find

ρtr(x,t)=12(fRxxfRLR2)dx+C(t)=12(fAxxfALA2)dx+D(t). (2.19)

However, from equation (2.13), we only have access to f , not to fR and fA . From differential and algebraic manipulations of equations (2.17) and (2.19), we find a problem in fR and f only:

(1LAαLR)fRxx1LR2(1LRαLA)fR=LAα(fxxfLA2). (2.20)

Equation (2.20) can finally be solved for fR through the use of spatial Fourier series.

The distribution of traces that generates the desired swarm density is not unique. In fact, the solution is defined up to an additive term ρ~tr(x,t) such that, for any x ,

ρ¯(x,t)ππqT(xy)ρ~tr(y,t)dy=B(t). (2.21)

In particular, any static equilibrium ρeq(x) of equation (2.1), with corresponding velocity veq(x)=ππqT(xy)ρeq(y)dy=0 for any x , is a solution of equation (2.21). For example, for a purely repulsive kernel with interaction length L and a static desired density, we obtain

ρtr=ρ¯+B, (2.22)

where B is an arbitrary constant.

2.4. Numerical method

To study the time-evolution of the equations of motion, we derive a numerical solution. Specifically, to solve the hyperbolic equation in equation (2.1), we rely on a finite volume method, which naturally accounts for conservation of a given quantity and for the finite velocity of perturbations [48]. We divide the domain [π,π) in NC cells Ci ( i=1,,NC ) with uniform size Δx and consider as variables the average value of the density over the cells at time tn :

Qin=1ΔxCiρ(y,tn)dy. (2.23)

The evolution of this quantity in time is governed by

Qin+1=QinΔtΔx(Fi+12nFi12n), (2.24)

where Δt is the integration time-step and Fi+12n and Fi12n are the numerical fluxes on the right and left interfaces, which approximate the value of the flux f(ρ)=ρv(ρ) at the interact over the time-step:

Fi12n=1Δttntn+1f(ρ(xi12,t))dt. (2.25)

For simplicity, we consider the Lax–Friedrichs method, which reads

Fi12n(Qi1n,Qin)12[f(Qi1n)+f(Qin)]Δx2Δt(QinQi1n). (2.26)

In 1D simulations, we utilize NC=500 cells and a time-step of Δt=0.1 . To quantify the error between actual density of the swarm and desired one, we leverage the Kullback–Leibler (KL) divergence of the actual density of the swarm from the desired one over time, which represents a form of statistical distance [49].

2.5. Discrete framework

All the results in the previous subsections are only valid at the continuum-level description of the swarm. To validate our overall approach in more realistic conditions, we conduct 1D simulations of the discrete swarm. We consider the problem of coordinating N units of a swarm, each with mass m=M/N . The dynamics of the units is described by their position xi(t) along the circle, and is governed by a discretized version of equations (2.1), (2.2), and (2.3), namely [43],

x˙i=mjiqT(xixj)+fi, (2.27)

with fi being the external forcing on xi . This term is provided by the interaction of the units with the Ntr discrete traces at positions xitr :

fi=mk=1NtrqT(xixktr). (2.28)

The desired configuration of the swarm is imposed in terms of density, so that an initial continuification is not required. Once the desired density of the traces is computed, self-equilibrating solutions are added to ensure that the density is positive everywhere. The resulting distribution of traces is discretized over a certain, fixed number of cells, such that traces can be added to the simulation. The number Ntr of traces is a result of the algorithm, as we approximate it as the closest integer to (ππρtrdx)/m . Upon simulating the dynamics of the discrete system, we can define the corresponding continuum counterpart through continuification, which is achieved from kernel density estimation with a manually tuned Gaussian estimation kernel [50]. In this case, the KL divergence is evaluated on the continuified distribution.

2.6. Extension to multi-dimensional problems

Our method can be readily extended to multi-dimensional problems. Specifically, we consider a density ρ:𝕊n×++ , where n=2 or n=3 and 𝕊n is the n -sphere parametrized with [π,π)n , and extend equation (2.1) to

ρt+(ρv)=0, (2.29)

with 𝐯:𝕊n×+n being the velocity vector and () the n -dimensional divergence operator. Equation (2.2) is generalized as a multi-dimensional circular convolution with vectorial interaction kernel 𝐪T:𝕊nn and external forcing term 𝐟:𝕊n×+n :

v(x,t)=SnqT(xx~)ρ(x~,t)dx~+f(x,t). (2.30)

The formula for 𝐟 is a multi-dimensional version of the circular convolution in equation (2.3), with a density of traces ρtr:𝕊n×+ .

In the multi-dimensional case, closed-form solutions to the problem are not available. Specifically, closed-form solutions to the periodicization of the interaction kernels in all spatial directions cannot be easily found. As such, we truncate the multi-dimensional infinite series extending equation (2.4) to a finite number of terms. For example, for n=2 ,

qT(x,y)kx,ky=KqKqq(x+2kxπ,y+2kyπ), (2.31)

where 𝐪(x,y) is a non-periodic interaction kernel in 2D.

To obtain ρtr , we numerically solve an inverse problem for equation (2.29), substituting the density ρ of the swarm with the desired density ρ . In our 2D simulations, we utilize a finite volume approximation of the equation with a complete 2D Lax–Friedrichs flux. We utilize 30 cells to discretize each direction, for a total of 900 cells, along with a time-step of Δt=0.1 .

3. Results

We first demonstrate our approach on 1D problems over a ring, for which we propose a detailed analysis of the density of traces required to achieve a desired density of the swarm, along with the error over time (§3.1). Further, we validate our approach by simulating the same 1D problems with discrete swarms and traces. Then, in §3.2, we consider a 2D example of a complex, evolving formation problem of a swarm that can be achieved with our stigmergic approach.

3.1. Results in one dimension

We consider three applications of our approach in 1D: (i) a swarm that reaches a stationary formation; (ii) a swarm that forms a travelling wave in a non-dispersive medium, where the group and phase velocities are equal; and (iii) a swarm that forms a travelling wave in a dispersive medium, where the group and phase velocities are different.

As the waveform, we consider a von Mises function with mean μ and concentration coefficient k [51]:

ρ¯(x)=M12πJ0(k)ekcos(xμ), (3.1)

with J0 being the modified Bessel function of the first kind of order zero. In the case of a travelling wave in a non-dispersive medium, we let the function travel at a constant speed v , without affecting the shape of the wave, such that the mean varies with time as μ+vt . Finally, for the simulation of a travelling wave in a dispersive medium, we let k(t)=k0+Asin(ωt) to capture oscillations around a fixed value k0 , with amplitude A and radian frequency ω .

We run a simulation for each of the three applications, utilizing a finite volume method to evolve the density of the swarm over time, as described in §2.4. All simulations start from a uniform density distribution with unitary mass. For all simulations, we consider a repulsive kernel with interaction length L=1 , set μ=1 , and run the simulation until tF=100 . For the stationary formation and the travelling wave in a non-dispersive medium, we fix k=2 . In both travelling wave simulations, we set v=0.05 . For the case of the travelling wave in a dispersive medium, we choose k0=2 , ω=0.1 and A=0.5 , with an initial phase of π . Results of these simulations are shown in figure 2, where we also consider the absolute error between actual density of the swarm and desired one and the KL divergence of the actual density of the swarm from the desired one over time. Videos of the simulations are available as electronic supplementary material.

Figure 2.

Results of one-dimensional, continuum-level simulations.

Results of one-dimensional, continuum-level simulations. (a,c,e) The profiles of the density of the swarm at the end of the simulation ( t=100 , blue solid line), along with the instantaneous desired profile of the density of the swarm (red dashed line), for the cases of stationary formation (a), travelling wave in a non-dispersive medium (c), and travelling wave in a dispersive medium (e); insets indicate the corresponding density of the traces. (b,d,f) The absolute error at each point in the spatial domain over time, for the cases of stationary formation (b), travelling wave in a non-dispersive medium (d), and travelling wave in a dispersive medium (f); insets indicate the KL divergence of the actual density of the swarm from the desired one over time.

In the case of stationary formation (figure 2a ), the swarm is able to almost perfectly achieve the desired density ( KL<0.003 at the end of the simulation). As one may intuitively guess for a repulsive potential, traces have a higher density where the density of the swarm ought to be small. In particular, we find that the profile of the density of the traces closely resembles the opposite of the desired density of the swarm, see equation (2.16). Notably, we observe that there are areas where the density of traces is negative. The indeterminacy in the distribution of traces allows us to obtain a non-negative density. As clear from equation (2.16), the actual density of the traces can always be made positive from the addition of a constant (that is, a self-equilibrating field of traces). From the analysis of the error over time (figure 2b ), we find that the error at the peak quickly decays to zero (more than 90% of its initial value within 10 time units), while the error in the tail of the function has a longer decay time (with similar decays in 50 time units).

Also when considering the travelling wave in a non-dispersive medium (figure 2c ), we observe an almost perfect tracking of the desired formation ( KL<105 after 60 time units). In this case, the density of the traces does not resemble the opposite profile as the instantaneous desired density, as it is corrected to anticipate the change in the desired density over time. Interestingly, we find that the KL divergence decays slightly faster than for the stationary formation, reaching KL<0.1 in 12.4 time units against 14.4 time units for the static case (figure 2d ). This result may be explained by the faster decay in the error of the tail that follows the peak (initially on its left). This analysis is corroborated by the error over time, wherein one of the tails decays faster to zero error ( 90% decay from its initial value in about 20 time units) compared with the stationary formation in figure 2b , while the other translates at a velocity dictated by v .

For the travelling wave in a dispersive medium (figure 2e ), we record similar profiles for the density of the swarm and traces as for the non-dispersive medium. The main difference is in the width of the peak of the distribution, which is wider for the dispersive case due to the modulation and the initial different phase. Despite the additional modulation of the waveform, we still obtain similar profiles for the error (figure 2f ).

In addition to these simulations at a continuum level, we conduct analogous analyses with discrete swarms and traces (see §2.5). In particular, we replicate the three 1D studies at a discrete level. We consider very large swarms, with 5000 units, which would be complex to control with traditional strategies [52]. In figure 3, we show the KL divergence for the discrete simulations, computed from the continuified density of the discrete swarm: the three discrete swarms can all track their desired distribution. These simulations confirm the applicability of our approach in real, discrete swarms.

Figure 3.

Results of 1D, discrete-level simulations.

Results of 1D, discrete-level simulations. Blue solid, red dashed and black dash-dotted lines show the KL divergence of the actual density of the swarm from the desired one over time for the three cases of stationary formation, travelling wave in a non-dispersive medium, and travelling wave in a dispersive medium, respectively.

3.2. Results in two dimensions

Our approach can be easily extended to 2D and three-dimensional (3D) problems, as described in §2.6. Herein, we consider 2D simulations to show realistic applications of our method. Specifically, we consider the problem of a swarm inspired by Leonardo da Vinci’s lion robot [42]. This ‘automaton’ was designed by Leonardo to autonomously move on a trajectory, stop in front of Francis I King of France, opening its breast full of flowers, and return to its initial position. We use these steps as inspiration for a model example of coordination in 2D, where a swarm tracks and deforms over a wavy circle, similar to a flower with six lobes; see electronic supplementary material and figure 4. Specifically, we task the swarm to aggregate in a compact formation (figure 4, bottom) and reach a target location by moving along the wavy circle (figure 4, right). Upon reaching the target location, the swarm shall change the formation (simulating the lion opening its breast; figure 4, top) to perform a collective task (for example, collective construction). Upon completion, the swarm shall resume its original formation (representing the lion closing its breast) and return to the starting location by moving on the wavy circle (figure 4, left). Videos of the simulation are in the electronic supplementary material.

Figure 4.

Results of 2D, continuum-level simulations.

Results of 2D, continuum-level simulations. The figure shows a few snapshots of the density of the swarm, after a few time-steps ( t=1 , bottom), halfway through the first half of the wavy circle (right), as the breast of the lion is completely open (top), and halfway through the second half of the wavy circle (left). We show both 3D and top views. In the top view, the red circle indicates the desired trajectory of the centre of the swarm. The plot at the centre represents the KL divergence of the actual density of the swarm from the desired one over time.

In these simulations, for simplicity, we assume quasi-static changes for the desired density, whereby we assume ρt=0 in our computations. Similar to the 1D case, we start from a uniform distribution with unitary integral. We set the final time to tF=300 , and divide this time-span in three phases with equal duration: translation along the first half of the wavy circle ( 0100 ), opening/closing of the breast ( 100200 ) and return to the initial position along the second half of the wavy circle ( 200300 ). We require the swarm to rigidly translate along the trajectory while maintaining a formation described by a 2D von Mises function with kx=ky=2 . To design the desired trajectory, we let the mean of the 2D von Mises function translate along the wavy circle. The opening and closing of the lion’s breast is simulated by dynamically varying kx of the 2D von Mises function from 2 to 3 .

Our results indicate that our approach is successful in replicating the motion of Leonardo’s automaton (figure 4). Based on the KL divergence (figure 4, centre), the density of the swarm quickly reaches the desired one, with overall small differences ( KL<0.3 after 11 time units). After the initial settling, the KL divergence is larger in the first and third phases (around 0.25 ), while it decreases in the second phase during the opening and closing of the breast (around 0.10 ). In principle, adopting a non-quasi-static approach can decrease the KL divergence, paying the price of a higher computational cost.

4. Discussion and conclusions

Complex systems composed of many units often display surprising self-organization phenomena [53]. Self-organization is inevitably associated with information transfer between the units of the system, which occurs through direct social interactions or indirect cues mediated by the environment [54]. Stigmergy encapsulates the ability of the units of a system of transferring information among them by modifying the surrounding environment [1]. This concept has found a broad range of application in animal [2] and robotic [18] swarms, mixed societies of animals and robots [26], and even human social systems [55].

A particularly challenging endeavour in biology is the analysis of how stigmergic signals left in the environment lead to self-organization and execution of complex tasks, even in the absence of central coordination. Such a challenge persists in engineering design of stigmergic modifications of the environment in order for the swarm to behave as desired. This problem requires the formulation of mathematically tractable and interpretable models to be used in the analysis of swarms and the design of control systems. However, literature on stigmergy typically focuses on agent-based models, where each unit of the swarm follows a set of behavioural rules. These models are difficult to use for holistic analyses of environmental modifications and control purposes.

Here, we propose a new mathematical framework to study stigmergy in swarms. Through this framework, we lay out how traces should be left in the environment to enable the coordination of a swarm, provided a mathematical model for the motion of the swarm is available. Such a framework is rooted in recent ideas for the control of large multi-agent systems [30,31], which draw on the analogy between robots and particles in a fluid. While for small groups of particles we can describe the motion of each individual unit, when considering large systems a continuum description is preferable. Thus, we continuify the problem by modelling the swarm as a fluid, design the control at a continuum level in terms of density of traces, and discretize this distribution to deploy them in the environment. This approach transforms the control problem on a large number of coupled ordinary differential equations to that on a single partial differential equation, which becomes analytically tractable.

One of the potential applications of the proposed setting is collective construction in robotic swarms through collective AM, where buildings and infrastructure are built through layer-by-layer deposition [5659] by a team of robots [60]. This paradigm has been inspired by other efforts in collective construction with teams of robots using pre-made parts [61,62], amorphous deposition [63], or the robots themselves [64]. While initial efforts focused on ground-based robots [6567], the recent breakthrough in Zhang et al. [68] demonstrated the possibility of aerial AM for large-scale buildings and infrastructure, going far beyond previous efforts that only focused on structure assembly through drones [69]. Robots in construction teams ought to reach a specific location and coordinate with each other. Our work provides a pathway to achieve these goals, making a first step toward collective AM algorithms.

Within the context of collective AM, traces may be left in the environment by the swarm or by one or more exogenous robots, not directly involved in the construction. While stigmergic cues could be provided by the built structure itself [22,23], it is tenable that in many applications the trace deposition process should be independent from the printing. A potential implementation of the trace deposition entails the use of a separate nozzle, utilizing a coloured dissoluble material that can be identified by other robots. Traces can be left as signs on printed structures or as thin marks on the ground and removed after construction, similar to supporting material used in desktop 3D printers [70]. Beyond collective AM, the traces needed for our algorithm may assume different forms. For example, they may represent actual fixed, physical objects, an additional swarm of mobile robots, spatially extended continuous robots that can actively deform or other environmental modifications that affect the swarm (such as changes in background lighting in light-foraging swarms [71]).

Regardless of the application, we assume that units in the swarm are not able to distinguish between other units and traces. Such a possibility is in practice verified in large swarms where individual units have limited computing power and may only perform simple operations to avoid collisions with surrounding entities, be they other units or traces. When a unit can discern traces from other units, we have an additional degree of freedom, as we can modify the type of interaction units have with traces. For example, should units be able to distinguish different types of traces, negative densities of traces may be implemented in practice by using traces encoding interactions via an attraction potential.

Interestingly, we find that the distribution of traces has several degrees of indeterminacy. Such indeterminacy is not a drawback, but rather an advantage of the method, as it provides additional degrees of freedom for the control and swarm designer. For example, if traces represent fixed, physical objects that cannot be removed or relocated after they have been released, their density can only increase over time at each point of the domain: the indeterminacy of the distribution of traces allows to satisfy this condition.

We demonstrate the validity of our framework in a variety of simulations in 1D and 2D. In 1D, we show that the swarm can achieve a stationary formation, and that we can make this stationary formation rigidly translate similar to a travelling wave in a non-dispersive medium. We validate our coordination strategy with even more complex scenarios, as we studied a concurrent modification of the formation during the translation of the wave, simulating a travelling wave in a dispersive medium, where different harmonics of the waves travel at a different speed, thus modifying the waveform over time. Analogous simulations at a discrete level demonstrated the validity and practical viability of our approach, even in very large-scale swarms with thousands of units.

In 2D, we selected a historical example to show the potential of our approach. Specifically, we replicated the behaviour of Leonardo da Vinci’s lion-shaped automaton, which was designed to pay homage to the King of France through its complex movements. We showed that our approach allows the swarm to perform composite, time-modulated tasks, tracking an uneven trajectory, stopping at a precise location, modifying the formation in time, and resuming its motion along the trajectory. All these behaviours can be easily achieved through a stigmergic approach.

Our approach does not come without limitations. In particular, we acknowledge that further work is needed to support real-world implementation. The lack of an explicit model for the trace deposition process benefits the generality of the theory, but it limits a prompt translation of the proposed approach to practice. Further, robustness of the approach to different forms of disturbances should be tested, and additional research is required for deployment in collective AM. Further, we acknowledge that the proposed control strategy is not suitable for all collective tasks, especially for small teams in which coordination and localization within an absolute frame are more easily achieved. Nevertheless, we believe that the proposed mathematical framework offers a powerful and adaptable tool to design environmental modifications for swarm coordination, leaving designers the versatility to implement them in different ways.

Acknowledgements

We are grateful to Mario di Bernardo for pointing us to the literature on stigmergy and discussions related to continuification, Chen Feng and Ludovic Righetti for helping us frame the collective construction problem, Pietro De Lellis and Gian Carlo Maffettone for discussions related to the technical aspects of the work, and Petras Swissler for helping us position our work within the swarm robotics literature.

Contributor Information

Alain Boldini, Email: aboldini@nyit.edu.

Martina Civitella, Email: mc8932@nyu.edu.

Maurizio Porfiri, Email: mporfiri@nyu.edu.

Ethics

This work did not require ethical approval from a human subject or animal welfare committee.

Data accessibility

All the data are included in the paper or in the code accessible at GitHub [72].

Electronic supplementary material is available online [73].

Declaration of AI use

We have not used AI-assisted technologies in creating this article.

Authors’ contributions

A.B.: conceptualization, formal analysis, investigation, methodology, software, visualization, writing—original draft, writing—review and editing; M.C.: formal analysis, methodology, software, writing—review and editing; M.P.: conceptualization, funding acquisition, supervision, writing—review and editing.

All authors gave final approval for publication and agreed to be held accountable for the work performed therein.

Conflict of interest declaration

We declare we have no competing interests.

Funding

This work was supported by the National Science Foundation under grant no. CMMI 1932187 awarded to M.P.

References

  • 1. Heylighen F. 2016. Stigmergy as a universal coordination mechanism I: definition and components. Cogn. Syst. Res. 38 , 4–13. ( 10.1016/j.cogsys.2015.12.002) [DOI] [Google Scholar]
  • 2. Theraulaz G, Bonabeau E. 1999. A brief history of stigmergy. Artif. Life 5 , 97–116. ( 10.1162/106454699568700) [DOI] [PubMed] [Google Scholar]
  • 3. Grassé PP. 1959. La reconstruction du nid et les coordinations interindividuelles chez Bellicositermes natalensis et Cubitermes sp. la théorie de la stigmergie: essai d’interprétation du comportement des termites constructeurs. Insectes Soc. 6 , 41–80. ( 10.1007/BF02223791) [DOI] [Google Scholar]
  • 4. Ganga Prasath S, Mahadevan L. 2023. Rheomergy: collective behaviour mediated by active flow-based recruitment. Proc. R. Soc. A 479 , 20220470. ( 10.1098/rspa.2022.0470) [DOI] [Google Scholar]
  • 5. Jackson DE, Ratnieks FLW. 2006. Communication in ants. Curr. Biol. 16 , R570–R574. ( 10.1016/j.cub.2006.07.015) [DOI] [PubMed] [Google Scholar]
  • 6. Wilson S, Buffin A, Pratt SC, Berman S. 2018. Multi-robot replication of ant collective towing behaviours. R. Soc. Open Sci. 5 , 180409. ( 10.1098/rsos.180409) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7. Giuggioli L, Potts JR, Rubenstein DI, Levin SA. 2013. Stigmergy, collective actions, and animal social spacing. Proc. Natl Acad. Sci. USA 110 , 16904–16909. ( 10.1073/pnas.1307071110) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8. Couzin ID. 2009. Collective cognition in animal groups. Trends Cogn. Sci. 13 , 36–43. ( 10.1016/j.tics.2008.10.002) [DOI] [PubMed] [Google Scholar]
  • 9. Hansell M. 2007. Built by animals: the natural history of animal architecture. Oxford, UK: Oxford University Press. [Google Scholar]
  • 10. Karsai I. 1999. Decentralized control of construction behavior in paper wasps: an overview of the stigmergy approach. Artif. Life 5 , 117–136. ( 10.1162/106454699568719) [DOI] [PubMed] [Google Scholar]
  • 11. Green B, Bardunias P, Turner JS, Nagpal R, Werfel J. 2017. Excavation and aggregation as organizing factors in de novo construction by mound-building termites. Proc. R. Soc. B 284 , 20162730. ( 10.1098/rspb.2016.2730) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12. Oberst S, Lai JCS, Martin R, Halkon BJ, Saadatfar M, Evans TA. 2020. Revisiting stigmergy in light of multi-functional, biogenic, termite structures as communication channel. Comput. Struct. Biotechnol. J. 18 , 2522–2534. ( 10.1016/j.csbj.2020.08.012) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13. Dorigo M, Bonabeau E, Theraulaz G. 2000. Ant algorithms and stigmergy. Fut. Gen. Comput. Syst. 16 , 851–871. ( 10.1016/S0167-739X(00)00042-X) [DOI] [Google Scholar]
  • 14. Hadeli KValckenaers P, Kollingbaum M, Van Brussel H. 2004. Multi-agent coordination and control using stigmergy. Comput. Ind. 53 , 75–96. ( 10.1016/S0166-3615(03)00123-4) [DOI] [Google Scholar]
  • 15. Holland O, Melhuish C. 1999. Stigmergy, self-organization, and sorting in collective robotics. Artif. Life 5 , 173–202. ( 10.1162/106454699568737) [DOI] [PubMed] [Google Scholar]
  • 16. Russo G, di Bernardo M. 2019. On distributed coordination in networks of cyber-physical systems. Chaos Interdiscip. J. Nonlinear Sci. 29 , 053126. ( 10.1063/1.5093728) [DOI] [PubMed] [Google Scholar]
  • 17. Bourne JR, Pardyjak ER, Leang KK. 2019. Coordinated bayesian-based bioinspired plume source term estimation and source seeking for mobile robots. IEEE Trans. Robot. 35 , 967–986. ( 10.1109/TRO.2019.2912520) [DOI] [Google Scholar]
  • 18. Beckers R, Holland OE, Deneubourg JL. 2000. From local actions to global tasks: stigmergy and collective robotics. In Prerational intelligence: adaptive behavior and intelligent systems without symbols and logic vol. 1, vol. 2 prerational intelligence: interdisciplinary perspectives on the behavior of natural and artificial systems, vol. 3, pp. 1008–1022. Dordrecht, The Netherlands: Springer. ( 10.1007/978-94-010-0870-9_63) [DOI] [Google Scholar]
  • 19. Johansson R, Saffiotti A. 2009. Navigating by stigmergy: a realization on an RFID floor for minimalistic robots. In 2009 IEEE Int. Conf. on Robotics and Automation, Kobe, Japan, 12–17 May 2009, pp. 245–252. ( 10.1109/ROBOT.2009.5152737) [DOI] [Google Scholar]
  • 20. Tang Q, Xu Z, Yu F, Zhang Z, Zhang J. 2019. Dynamic target searching and tracking with swarm robots based on stigmergy mechanism. Rob. Auton. Syst. 120 , 103251. ( 10.1016/j.robot.2019.103251) [DOI] [Google Scholar]
  • 21. Mason Z. 2003. Programming with stigmergy: using swarms for construction. In Proc. of Artificial Life VIII, pp. 371–374. Cambridge, MA: MIT Press. [Google Scholar]
  • 22. Theraulaz G, Bonabeau E. 1995. Coordination in distributed building. Science 269 , 686–688. ( 10.1126/science.269.5224.686) [DOI] [PubMed] [Google Scholar]
  • 23. Werfel J, Nagpal R. 2006. Extended stigmergy in collective construction. IEEE Intell. Syst. 21 , 20–28. ( 10.1109/MIS.2006.25) [DOI] [Google Scholar]
  • 24. Werfel J, Petersen K, Nagpal R. 2014. Designing collective behavior in a termite-inspired robot construction team. Science 343 , 754–758. ( 10.1126/science.1245842) [DOI] [PubMed] [Google Scholar]
  • 25. Mondada F, Martinoli A, Correll N, Gribovskiy A, Halloy JI, Siegwart R, Deneubourg JL. 2013. A general methodology for the control of mixed natural-artificial societies. In Handbook of collective robotics: fundamentals and challenges, pp. 547–586. New York, NY: Pan Stanford Publishing. [Google Scholar]
  • 26. Romano D, Donati E, Benelli G, Stefanini C. 2019. A review on animal-robot interaction: from bio-hybrid organisms to mixed societies. Biol. Cybern. 113 , 201–225. ( 10.1007/s00422-018-0787-5) [DOI] [PubMed] [Google Scholar]
  • 27. Halloy J, et al. 2007. Social integration of robots into groups of cockroaches to control self-organized choices. Science 318 , 1155–1158. ( 10.1126/science.1144259) [DOI] [PubMed] [Google Scholar]
  • 28. Rashid MT, Frasca M, Ali AA, Ali RS, Fortuna L, Xibilia MG. 2012. Artemia swarm dynamics and path tracking. Nonlinear Dyn. 68 , 555–563. ( 10.1007/s11071-011-0237-6) [DOI] [Google Scholar]
  • 29. Franks NR, Podesta JA, Jarvis EC, Worley A, Sendova-Franks AB. 2022. Robotic communication with ants. J. Exp. Biol. 225 , jeb244106. ( 10.1242/jeb.244106) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30. Maffettone GC, Boldini A, Di Bernardo M, Porfiri M. 2022. Continuification control of large-scale multiagent systems in a ring. IEEE Control Syst. Lett. 7 , 841–846. ( 10.1109/LCSYS.2022.3226619) [DOI] [Google Scholar]
  • 31. Nikitin D, Canudas-de Wit C, Frasca P. 2021. A continuation method for large-scale modeling and control: from ODEs to PDE, A round trip. IEEE Trans. Automat. Contr. 67 , 5118–5133. ( 10.1109/TAC.2021.3122387) [DOI] [Google Scholar]
  • 32. Justh EW, Krishnaprasad PS. 2015. Optimality, reduction and collective motion. Proc. R. Soc. A 471 , 20140606. ( 10.1098/rspa.2014.0606) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33. Haddad WM, Nersesov SG. 2011. Stability and control of large-scale dynamical systems: a vector dissipative systems approach, vol. 41. Princeton, NJ: Princeton University Press. ( 10.23943/princeton/9780691153469.001.0001) [DOI] [Google Scholar]
  • 34. Demir N, Eren U, Açıkmeşe B. 2015. Decentralized probabilistic density control of autonomous swarms with safety constraints. Auton. Robots 39 , 537–554. ( 10.1007/s10514-015-9470-z) [DOI] [Google Scholar]
  • 35. Lee SG, Diaz-Mercado Y, Egerstedt M. 2015. Multirobot control using time-varying density functions. IEEE Trans. Robot. 31 , 489–493. ( 10.1109/TRO.2015.2397771) [DOI] [Google Scholar]
  • 36. Li H, et al. 2017. Decentralized stochastic control of robotic swarm density: theory, simulation, and experiment. In 2017 IEEE/RSJ Int. Conf. on Intelligent Robots and Systems (IROS), Vancouver, Canada, 24–28 September 2017 , pp. 4341–4347. ( 10.1109/IROS.2017.8206299) [DOI] [Google Scholar]
  • 37. Sinigaglia C, Manzoni A, Braghin F, Berman S. 2022. Robust optimal density control of robotic swarms. (https://arxiv.org/abs/2205.12592).
  • 38. Zhao S, Ramakrishnan S, Kumar M. 2011. Density-based control of multiple robots. In Proc. 2011 American Control Conf., San Francisco, CA, USA, 29 June–1 July 2011, pp. 481–486. ( 10.1109/ACC.2011.5990615) [DOI] [Google Scholar]
  • 39. Spinello D, Stilwell DJ. 2014. Distributed full-state observers with limited communication and application to cooperative target localization. J. Dyn. Syst. Meas. Control 136 , 031022. ( 10.1115/1.4026173) [DOI] [Google Scholar]
  • 40. Theraulaz G, Gautrais J, Camazine S, Deneubourg JL. 2003. The formation of spatial patterns in social insects: from simple behaviours to complex structures. Phil. Trans. R. Soc. A 361 , 1263–1282. ( 10.1098/rsta.2003.1198) [DOI] [PubMed] [Google Scholar]
  • 41. Main IG. 1993. Vibrations and waves in physics. Cambridge, UK: Cambridge University Press. [Google Scholar]
  • 42. Rosheim M. 2006. Leonardo’s lost robots. Heidelberg, Germany: Springer Science & Business Media. [Google Scholar]
  • 43. Bernoff AJ, Topaz CM. 2011. A primer of swarm equilibria. SIAM J. Appl. Dyn. Syst. 10 , 212–250. ( 10.1137/100804504) [DOI] [Google Scholar]
  • 44. Topaz CM, Bertozzi AL. 2004. Swarming patterns in a two-dimensional kinematic model for biological groups. SIAM J. Appl. Math. 65 , 152–174. ( 10.1137/S0036139903437424) [DOI] [Google Scholar]
  • 45. Jeruchim MC, Balaban P, Shanmugan KS. 2006. Simulation of communication systems: modeling, methodology and techniques. New York, NY: Springer Science & Business Media. [Google Scholar]
  • 46. Royden HL, Fitzpatrick P. 1988. Real analysis, vol. 32. New York, NY: Macmillan New York. [Google Scholar]
  • 47. Wing GM. 1991. A primer on integral equations of the first kind: the problem of deconvolution and unfolding. Philadelphia, PA: SIAM. [Google Scholar]
  • 48. LeVeque RJ. 2002. Finite volume methods for hyperbolic problems, vol. 31. Cambridge, UK: Cambridge University Press. [Google Scholar]
  • 49. Kullback S, Leibler RA. 1951. On information and sufficiency. Ann. Math. Statist. 22 , 79–86. ( 10.1214/aoms/1177729694) [DOI] [Google Scholar]
  • 50. Silverman BW. 2018. Density estimation for statistics and data analysis. Boca Raton, FL: Routledge. [Google Scholar]
  • 51. Mardia KV, Jupp PE, Mardia K. 2000. Directional statistics, vol. 2. Chichester, UK: Wiley Online Library. ( 10.1002/9780470316979) [DOI] [Google Scholar]
  • 52. Pickem D, Glotfelter P, Wang L, Mote M, Ames A, Feron E, Egerstedt M. 2017. The robotarium: a remotely accessible swarm robotics research testbed. In 2017 IEEE Int. Conf. on Robotics and Automation (ICRA), Singapore, 29 May–3 June 2017 , pp. 1699–1706. ( 10.1109/ICRA.2017.7989200) [DOI] [Google Scholar]
  • 53. Kondepudi D, Prigogine I. 2014. Modern thermodynamics: from heat engines to dissipative structures. Chichester, UK: John Wiley & Sons. [Google Scholar]
  • 54. Haken H. 2006. Information and self-organization: a macroscopic approach to complex systems. Heidelberg, Germany: Springer Science & Business Media. [Google Scholar]
  • 55. Elliott M. 2016. Stigmergic collaboration: a framework for understanding and designing mass collaboration. In Mass collaboration and education, pp. 65–84. Cham, Switzerland: Springer. ( 10.1007/978-3-319-13536-6_4) [DOI] [Google Scholar]
  • 56. Bos F, Wolfs R, Ahmed Z, Salet T. 2016. Additive manufacturing of concrete in construction: potentials and challenges of 3D concrete printing. Virtual Phys. Prototyp. 11 , 209–225. ( 10.1080/17452759.2016.1209867) [DOI] [Google Scholar]
  • 57. Lim S, Buswell RA, Le TT, Austin SA, Gibb AGF, Thorpe T. 2012. Developments in construction-scale additive manufacturing processes. Autom. Constr. 21 , 262–268. ( 10.1016/j.autcon.2011.06.010) [DOI] [Google Scholar]
  • 58. Paolini A, Kollmannsberger S, Rank E. 2019. Additive manufacturing in construction: a review on processes, applications, and digital planning methods. Add. Manuf. 30 , 100894. ( 10.1016/j.addma.2019.100894) [DOI] [Google Scholar]
  • 59. Al Rashid A, Khan SA, Al-Ghamdi SG, Koç M. 2020. Additive manufacturing: technology, applications, markets, and opportunities for the built environment. Autom. Constr. 118 , 103268. ( 10.1016/j.autcon.2020.103268) [DOI] [Google Scholar]
  • 60. Petersen KH, Napp N, Stuart-Smith R, Rus D, Kovac M. 2019. A review of collective robotic construction. Sci. Robot. 4 , eaau8479. ( 10.1126/scirobotics.aau8479) [DOI] [PubMed] [Google Scholar]
  • 61. Soleymani T, Trianni V, Bonani M, Mondada F, Dorigo M. 2015. Bio-inspired construction with mobile robots and compliant pockets. Rob. Auton. Syst. 74 , 340–350. ( 10.1016/j.robot.2015.07.018) [DOI] [Google Scholar]
  • 62. Yun SK, Schwager M, Rus D. 2011. Coordinating construction of truss structures using distributed equal-mass partitioning. In Robotics research (eds Pradalier C, Siegwart R, Hirzinger G), pp. 607–623. Berlin, Germany: Springer. ( 10.1007/978-3-642-19457-3_36) [DOI] [Google Scholar]
  • 63. Napp N, Nagpal R. 2014. Distributed amorphous ramp construction in unstructured environments. Robotica 32 , 279–290. ( 10.1017/S0263574714000113) [DOI] [Google Scholar]
  • 64. Swissler P, Rubenstein M. 2022. ReactiveBuild: environment-adaptive self-assembly of amorphous structures. In Distributed autonomous robotic systems (eds Matsuno F, Azuma S, Yamamoto M), pp. 363–375. Cham, Switzerland: Springer. ( 10.1007/978-3-030-92790-5_28) [DOI] [Google Scholar]
  • 65. Shen H, Pan L, Qian J. 2019. Research on large-scale additive manufacturing based on multi-robot collaboration technology. Add. Manuf. 30 , 100906. ( 10.1016/j.addma.2019.100906) [DOI] [Google Scholar]
  • 66. Xu X, Wang Z, Feng C. 2021. Projector-guided non-holonomic mobile 3D printing. In 2021 IEEE Int. Conf. on Robotics and Automation (ICRA), Xi’an, China, 30 May–5 June 2021 , pp. 8039–8045. ( 10.1109/ICRA48506.2021.9561719) [DOI] [Google Scholar]
  • 67. Zhang X, Li M, Lim JH, Weng Y, Tay YWD, Pham H, Pham QC. 2018. Large-scale 3D printing by a team of mobile robots. Autom. Constr. 95 , 98–106. ( 10.1016/j.autcon.2018.08.004) [DOI] [Google Scholar]
  • 68. Zhang K, et al. 2022. Aerial additive manufacturing with multiple autonomous robots. Nature 609 , 709–717. ( 10.1038/s41586-022-04988-4) [DOI] [PubMed] [Google Scholar]
  • 69. Augugliaro F, et al. 2014. The flight assembled architecture installation: cooperative construction with flying machines. IEEE Control Syst. Mag. 34 , 46–64. ( 10.1109/MCS.2014.2320359) [DOI] [Google Scholar]
  • 70. Richter A. 2017. How to use dissolvable and breakaway support material. See https://www.matterhackers.com/news/how-to-use-support-material:-part-2 (accessed 18 August 2024). [Google Scholar]
  • 71. Wang G, et al. 2021. Emergent field-driven robot swarm states. Phys. Rev. Lett. 126 , 108002. ( 10.1103/PhysRevLett.126.108002) [DOI] [PubMed] [Google Scholar]
  • 72. Dynamical-Systems-Laboratory . 2023. Swarm_stigmergy. GitHub. See https://github.com/Dynamical-Systems-Laboratory/swarm_stigmergy.
  • 73. Boldini A, Civitella M, Porfiri M. 2024. Supplementary material from: Stigmergy: from mathematical modeling to control. FigShare ( 10.6084/m9.figshare.c.7412344) [DOI]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

All the data are included in the paper or in the code accessible at GitHub [72].

Electronic supplementary material is available online [73].


Articles from Royal Society Open Science are provided here courtesy of The Royal Society

RESOURCES