Manuscript Offprint
arXiv:2611.07163Distributed Geometric Optimization and Control of Rigid Differential-Drive Formations from Relative-Position Measurements
Thanacha Choopojcharoen, Erman Selim, Ramisha Anjum, and Baris Fidan
Abstract—Distance-based formation control fixes the shape of a robot team but leaves its position and orientation unconstrained. We regulate all three for differential-drive robots that have only one absolute-position anchor, absolute headings, body-frame relative-position measurements, and communication with their neighbors. We derive a two-layer estimation-control scheme directly from optimization. The first half of the result is a set of graph-proximal estimators that reconstruct the centroid, the anchor vector, and the centered coordinates. Exact proximal updates reach consensus in finitely many steps, and a finite number of primal-dual iterations leaves a bounded reconstruction error. The controller combines proximal centroid and orientation steps with distance-gradient shape regulation, and a finite rotation removes the orientation drift caused by the shape step. A discrete Lyapunov analysis gives local exponential convergence once the estimators have converged. We validate the method in ROS 2/Gazebo and in experiments with five physical robots, where the centroid and orientation errors in the final reference period stay below 1.1 cm and 0.019 rad.
Index Terms—Distributed control, multi-agent systems, primal-dual optimization, differential-drive robots.
I. INTRODUCTION
Teams of mobile robots are increasingly used for cooperative surveillance [1], spacecraft formations [2], and collaborative transport [3], [4]. These applications benefit from distributed sensing, payload sharing, and redundancy [5], [6], but the robots must move as a coherent formation: they must preserve a prescribed shape, track a desired position, and maintain a desired orientation. Meeting all three objectives with only local sensing and sparse communication matters most when reliable global localization is unavailable to most agents.
Distance-based rigid formation control stabilizes inter-agent distances but leaves the two translational and one rotational rigid-body degrees of freedom free [7], [8]. Rigid motions have been generated through distance mismatches [9], and other work has prescribed the formation orientation [10], combined formation and trajectory tracking in local coordinates [11], or
added transport and safety objectives [12]. More recent work replaces distance constraints with other geometric ones. A leader-follower scheme steers agents to a linear transformation of a nominal configuration [13], and an angle-constrained law for double-integrator agents rejects trigonometric-polynomial disturbances [14]. These results provide parts of formation motion, but none of them simultaneously regulates shape, centroid, and formation orientation for a fleet of differential-drive agents that use relative-position measurements.
Our previous work addressed simultaneous centroid estimation and formation tracking under this one-anchor information structure [15]. Related foundations are dynamic average consensus [16], [17] and finite-time continuous-time trackers for bounded driving signals [18], [19]. Centroid and common-frame reconstruction from relative measurements has also been studied [20], [21], as has centroid-based collective-motion control [22], [23], and simultaneous localization and formation control from local relative information is a closely related line of work [24], [25]. For nonholonomic vehicles, point-agent coordination laws can be transferred through heading-dependent or near-identity transformations [26], [27]. Multirobot platforms highlight the practical importance of sampled communication, local computation, and distributed implementation [28]. Our problem draws on all of these, but it must regulate all three rigid-formation degrees of freedom with only one absolute position available.
Discrete-time dynamic average consensus handles sampled communication directly and characterizes the tradeoff between tracking error and communication [29]–[31]. Distributed subgradient and operator-splitting methods provide local optimization over communication graphs [32], [33]. Proximal methods take implicit steps on nonsmooth objectives [34], and primal-dual splitting lets graph-separable problems be solved through local node and edge updates [35]. Our sampled-data design builds on these tools. We do not discretize the nonsmooth continuous-time estimator–controller explicitly, because a fixed-step implementation need not preserve its ideal sliding behavior. Instead, we discretize its underlying optimization structure, which leads to an architecture that combines exact-penalty proximal reconstruction with discrete geometric control of the centroid, intrinsic orientation, and shape coordinates.
The contributions are:
- Direct sampled geometric reconstruction: the centroid, anchor vector, and centered coordinates are reconstructed directly from one absolute-position anchor and neighbor relative-position measurements, without reconstructing
Preprint version, November 2026. (Corresponding author: Thanacha Choopojcharoen.)
This work was supported by the Natural Sciences and Engineering Research Council of Canada (NSERC) Discovery Grant 116806. E. Selim also thanks the Scientific and Technological Research Council of Türkiye (TÜBİTAK) for its support through the 2219 Postdoctoral Program.
T. Choopojcharoen, R. Anjum, and B. Fidan are with the Department of Mechanical and Mechatronics Engineering, University of Waterloo, Waterloo, ON, Canada (e-mail: tchooopoj@uwaterloo.ca; r3anjum@uwaterloo.ca; fidan@uwaterloo.ca).
E. Selim is with the Department of Electrical and Electronics Engineering, Ege University, Izmir, Türkiye (e-mail: erman.selim@ege.edu.tr).
individual absolute positions. Exact proximal solves give finite-step reconstruction, and finite-round primal-dual solves admit explicit error bounds.
-
Discrete pose-shape decoupling: separate discrete updates regulate the centroid, the intrinsic orientation, and the distance-based shape. A finite rotation exactly removes the orientation drift that the shape step induces, which gives local exponential convergence once the reconstruction is exact.
-
Distributed finite-computation realization: the estimator runs as neighbor-only primal-dual iterations, and the commanded controlled-point increments are realized exactly under zero-order hold on differential-drive robots.
Sections II–V develop the formulation, optimization structure, algorithm, and convergence analysis. Section VI presents the Gazebo validation, the experimental platform and implementation, and the hardware experiments, and Section VII concludes the paper.
A. Notation
is the identity matrix, the -vector of ones, and the th canonical vector; is the Kronecker product, and stacks its arguments into one column. is the Euclidean norm. For a stacked edge vector with , is the sum of the edge-block norms. For a convex function , is its proximal map. is the set of planar unit vectors (headings), and maps an angle to . A heading and an angle both define a rotation matrix: , and , where is the rotation in (1). is the second-smallest eigenvalue of a graph Laplacian ; for a connected graph it is positive and sets the rate of the slowest consensus mode.
B. Sampled controlled-point model
Consider differential-drive vehicles. Vehicle has axle-center position , absolute heading , longitudinal input , and angular input . Let
For look-ahead distance , define the controlled point . The outer algorithm is sampled at and first analyzed through the controlled-point increment model
The centroid, centered coordinate, anchor vector, and intrinsic orientation are , ,
The desired centroid and orientation are and . Let , denote their angles and .
Remark 1 (Differential-drive realization). Under zero-order-held over one sample, let . Expressed in the body frame at , the exact controlled-point increment is
with the continuous limit at , and . The Jacobian of this map at is , which is nonsingular for . By the inverse-function theorem, sufficiently small desired increments in (2) therefore have a unique local zero-order-hold realization. We state the convergence analysis for (2) accordingly; the local exact realization on a differential-drive robot is a per-agent inversion problem and needs no additional communication.
The controlled point is the standard device for handling the nonholonomic constraint [26], [27]: unlike the axle center, can move in any planar direction.
C. Graph, sensing, and rigidity
Let be an undirected communication graph with incidence matrix and Laplacian . Define . For each , agent measures only . Because is known absolutely, each agent can compute the inertial relative displacement locally. No non-anchor knows any absolute position. On-board inertial measurement units can measure the headings, and local sensors such as vision with fiducial markers, marker-less visual pose estimation, or ultra-wideband ranging can measure the relative positions [36], [37]. Neighbors share their headings , so a sensor that measures the relative position of the axle centers also gives the controlled-point offset, because . In the experiments of Section VI-B, we generate these measurements from motion-capture poses.
Assumption 1 (Information structure). Only anchor has access to its own absolute controlled-point position . Each agent knows its own absolute heading, measures relative controlled-point positions only to graph neighbors, communicates only with graph neighbors, and knows its own applied increment . The common reference and sample index are available to all agents.
Remark 2 (Role of the anchor). The absolute headings let every agent express its relative measurements in a common inertial orientation, so relative measurements alone determine the shape and orientation of the formation. They cannot determine where the formation is, because translating every robot by the same vector leaves all measurements unchanged. The single anchor in Assumption 1 removes this ambiguity, and it enters the algorithm only through the initialization in Section IV. The same anchor also defines the formation orientation through the anchor vector in (3).
A framework is rigid when its shape cannot change unless at least one constrained distance changes. It is infinitesimally rigid when this holds to first order; in the plane, this is equivalent to the rigidity matrix having rank [7], [8]. A minimally rigid planar graph has exactly edges, just enough to fix the shape.
Assumption 2 (Connectivity and rigidity). The communication graph is connected and need not be complete. The distance-constraint graph is infinitesimally rigid in the neighborhood of the desired planar framework. The two graphs may co-incide; when they do, the common graph is connected and infinitesimally rigid.
Let denote the set of distance-constrained (shape) edges. For an oriented shape edge with desired distance , define , and the distance potential , , where and is the rigidity matrix, whose row for edge contains in the columns of agent and in those of agent . Each is computable from the relative measurements on incident formation edges.
D. Problem statement
Given Assumptions 1 and 2, design for every agent a sampled update that uses only agent 's own heading, its body-frame measurements to neighbors , its own applied increments, and messages from its neighbors, such that the following hold.
-
Formation maintenance: every constrained inter-agent distance converges to its desired value, , .
-
Centroid tracking: the formation centroid converges to the reference centroid trajectory, .
-
Formation-orientation tracking: the formation orientation defined by the anchor vector in (3) converges to the reference orientation, .
Objectives 1–3 fix, respectively, the shape, the two translational degrees of freedom, and the rotational degree of freedom of the planar rigid formation, so together they determine the formation pose completely.
Remark 3 (Estimation). Objectives 2 and 3 refer to the centroid and the orientation , which no agent can measure. Each agent therefore maintains local estimates of , of (hence of ), and of its own centered coordinate , reconstructed from relative measurements and neighbor messages. The control objectives are met through these estimates, so the analysis in Section V first establishes , , and and then the three objectives above.
III. OPTIMIZATION STRUCTURE
A. Geometric tri-objective
The three objectives of Section II-D act on separate parts of the formation geometry, which decomposes naturally into
where denotes shape modulo rigid translation and rotation. Define , , . Objectives 1, 2, and 3 of Section II-D hold exactly when , , and vanish, respectively. We obtain the outer controller by discrete descent in these three coordinates, not by a Euclidean gradient of with respect to the stacked positions.
The distance gradient is orthogonal to rigid translations and to infinitesimal rigid rotation: , , where . A shape gradient step therefore changes the quotient-space shape, but it can also turn the anchor vector . The discrete horizontal-lift construction in Section IV removes exactly this coordinate artifact.
B. Continuous-time exact penalty and its discrete proximal map
The nonsmooth continuous estimator, interpreted as a Filippov differential inclusion in the usual sense [38], has the generic disagreement form
It is the subgradient flow of
For in the disagreement subspace and ,
where . Hence makes zero disagreement the unique minimizer even when the local driving signals differ between agents. The discrete design keeps this exact-penalty objective and replaces the subgradient flow by its proximal map.
IV. DISTRIBUTED DISCRETE-TIME ALGORITHM
The algorithm has two layers, which every agent runs at each sample (Fig. 1). The reconstruction layer maintains three local estimates per agent: the centroid estimate , the anchor-vector estimate (whose direction estimates the formation orientation), and the centered-coordinate estimate . Each estimate is updated in two steps. The agent first predicts how the estimate changes because of its own applied motion, and the network then solves a small optimization problem that pulls neighboring estimates together without changing their average. The control layer uses these estimates to compute the next increment from one step for each of the three objectives. Both layers use only local measurements and messages from neighbors.
A. Generic graph proximal tracker
Let be local estimates and let be local driving signals. Define the predictor

Fig. 1. Per-agent architecture of the reconstruction, control, and differential-drive realization layers.
One exact graph-proximal update is
The first term keeps each estimate close to its own prediction, the quadratic edge term pulls neighboring estimates together smoothly, and the nonsmooth edge term pulls them together with a force of constant magnitude. This constant force is what allows disagreement to vanish exactly rather than only asymptotically. The update is implicit: it is the discrete counterpart of the nonsmooth consensus flow (6) evaluated at the end of the sample instead of at its start, so it does not chatter. All coupling terms are edge-local. Summing the first-order optimality conditions gives the exact average identity
Lemma 1 (Finite-step exact consensus). Suppose for all and
If the desired moving quantity has average dynamics consistent with (11), then the disagreement generated by (10) reaches zero after finitely many samples. A sufficient bound is
Once zero is reached, it is invariant.
Proof. After separating the average mode, (10) is , where has the form (7) and satisfies the uniform sharpness inequality (8). Such weak-sharp minima are a standard mechanism behind finite termination of proximal methods [39], [40]. Since 0 is a minimizer of every , firm nonexpansiveness of the proximal map gives . If , the optimality condition gives . Convexity and (8) imply , so the squared norm decreases by at least until it reaches zero. This yields (13). If , then because zero remains the unique minimizer.
B. Average-matching initialization
Let be the th canonical vector. Precompute the unique zero-mean vector satisfying , . Each agent forms . Initialize
Then
(17)
Only the anchor uses an absolute position in (14).
C. Centroid and orientation reconstruction
After applying , define . The centroid estimate is obtained from (10) with , , and gains . Since , (11) and (17) then ensure that the estimate average equals the true centroid at every sample.
For the anchor vector, use . Its average is , so applying (10) with gains gives a finite-step exact estimate of . Define
whenever .
Corollary 1 (Centroid and orientation consensus). If and the exact-penalty conditions of Lemma 1 hold for and , then there exist finite such that for , and , for , for every agent. Hence the centroid and intrinsic-orientation estimates reach exact network consensus.
D. Direct centered-coordinate reconstruction
A non-anchor cannot form because it does not know absolute . For an oriented communication edge , the measured inertial offset at sample is
Let . Define
Then compute
In error coordinates , (21) is again a proximal exact-penalty recursion. Its zero-average property follows from (20), because the average increment of the centroid estimator equals the true centroid increment. Lemma 1 therefore applies to under a uniform bound on the induced disagreement forcing.
E. Discrete optimization-derived tri-control
At sample , each agent uses its current estimates to compute the next desired centroid coordinate. Let . The minimizer of
where , is . For orientation, let and . The proximal orientation error is
which satisfies the scalar implicit equation
Thus the desired rigid orientation increment is
The shape descent is
The shape step corrects only inter-agent distances, but it can also turn the anchor vector and, with it, the formation orientation that the orientation step controls. To undo this, the whole shape target is rotated back by the angle through which the shape step turned the anchor vector. We call this rotation the horizontal-lift correction because, geometrically, it lifts a pure shape change to a motion that leaves the orientation unchanged. The anchor computes the correction
For small , tends to the continuous compensation , whereas (25) exactly removes the change in anchor-vector direction caused by the finite shape step.
The scalar is distributed by solving the pinned graph problem
Connectedness makes its unique minimizer for all . Let denote the distributed solution. The complete local shape/orientation target is
Finally,
Every quantity in (28) is local, measured from a neighbor, or obtained from a neighbor-only distributed optimization subproblem. The first difference in (28) moves the formation along the reference and contracts the centroid error by the factor per sample. The second difference changes only the position of the agent relative to the centroid. It corrects the shape through , rotates the whole formation rigidly toward through , and cancels the effect of the shape step on the orientation through . Rigid rotations preserve distances and preserves the centroid, so the three steps act on separate coordinates of (5) and achieve the three objectives jointly without competing.
F. Neighbor-only primal-dual realization
Problems (10) and (21) have the form
with a separable strongly convex node term and separable edge term . A primal-dual hybrid-gradient iteration [35] is
with . Each edge update in (29) uses only its two endpoint states and the local edge measurement, and each node update in (30) uses only its predictor and the dual messages of its incident edges. The realization is therefore distributed and needs neither all-to-all communication nor a central matrix inversion.
For every outer sample k, initializing the primal inner iteration at the predictor,
with the dual variable warm-started from the preceding outer sample, preserves the network-average identity of the proximal subproblem for any finite number of inner iterations. To see this, consider the quadratic node term , whose proximal map is
Since , premultiplying (30) by and using (32) gives, for the network average of the primal iterate,
Under (31), (33) shows inductively that
Terminating PDHG after a finite number of rounds therefore introduces only disagreement-mode error and does not perturb the average required by (11).
The implementations used in Sections VI-A–VI-D instead initialize the primal iteration at the current estimate, . Since , (33) then gives, after J rounds,
Because , this error decays geometrically with the number of inner rounds and vanishes as . It is proportional to the average motion per sample, , and over samples it accumulates to at most . It is therefore negligible for a moderate number of rounds, and (34) and the conclusions drawn from it hold up to this term.
Remark 4 (Exact versus finite inner solves). The exact proximal recursion and its finite-round distributed realization converge differently. The exact minimizer keeps the finite-step property of Lemma 1. A finite number of PDHG rounds generally does not compute that minimizer exactly, so it need not produce finite-step exact consensus. The analysis below quantifies this implementation error: a bounded inner-solve error gives an explicit practical-consensus tube, and a vanishing inner-solve error recovers exact asymptotic convergence. The analysis assumes the predictor initialization (31). With the current-estimate initialization used in the implementation, the inner-solve error also contains the average component (35), which is negligible. The exact-proximal closed-loop theorem is kept separately as the ideal limiting case.
G. Per-agent estimation and control laws
For implementation, the stacked operations above reduce to explicit updates that each agent performs with its own data and messages from its neighbors. Let be the set of shape-edge neighbors of agent , and let if agent is the first endpoint of the oriented edge , if it is the second, and otherwise. Let map an angle to and map it to modulo .
Control law. At sample , agent computes its increment from its heading , its measurements , and its estimates , , :
Newton's method, started at , solves the scalar equation (39); its left-hand side is strictly increasing whenever , which holds for all runs reported here. The rotation angle in (42) is obtained by rounds of neighbor-only gradient descent on the pinned problem (26):
(44)
for , with , , and step . Finally, the saturated increment (43) is stored for the estimator and converted into the wheel commands that realize it exactly under zero-order hold, by inverting (4):
(45)
with when . Substituting (45) into (4) recovers exactly. Wrapping selects the shorter turn, so that , and allows reverse motion ( ).
Estimation law. After applying the increment, agent i forms the predictors
Each estimate is then updated by J rounds of the per-edge and per-node PDHG updates
for , initialized with and with equal to the final dual of the preceding sample, and returning . These updates are applied first with and . The centered coordinate then uses the predictor
in (47)–(50) with and the freshly measured edge offsets of (19). Finally, . At , the estimates are initialized by (14)–(16). The edge update (48) is the closed form of in (29) for the edge term , and (49) is (30) with (32). An edge update needs only the relaxed estimates of its two endpoints and the offset of that edge. In every round, agent therefore sends to its neighbors, one endpoint of each edge computes and returns it to the other, and each agent completes (49) with the duals of its incident edges. The step sizes are , which satisfies because , and .
Algorithm 1 summarizes the order of these operations for one agent and one sample.
V. DISCRETE-TIME CONVERGENCE ANALYSIS
The analysis proceeds in three steps. We first bound the reconstruction error when each proximal problem is solved by a finite number of inner iterations (Section V-A). We then show that exact proximal solves reconstruct the geometry exactly after finitely many samples (Section V-B). Finally, we show that, once the geometry is exact, each of the three objectives contracts independently (Sections V-C–V-E).
Algorithm 1 Agent i at sample k
Require: , duals , reference
1: compute by (36)–(43), with from (44) neighbor rounds
2: apply from (45) for one sample
3: update by (46)–(50) neighbor rounds each
4: measure ; update by (51) and (47)–(50)
5:
A. Finite-inner-iteration estimator bound
Let denote the exact proximal map of the disagreement recursion in Lemma 1. On the disagreement subspace , the quadratic graph term is -strongly convex with . The remaining nonsmooth edge penalty is convex and the local driving term is affine, so the complete function remains -strongly convex on . Hence its proximal map is contractive:
Under the exact-penalty condition (12), zero disagreement is the unique minimizer of every , so .
Let denote the exact minimizer of the sample-k proximal subproblem and let be the output returned after a finite number of PDHG iterations initialized according to (31). Define
Equation (34) implies that .
Theorem 1 (Inexact graph-proximal tracking). Suppose the hypotheses of Lemma 1 hold and the finite PDHG realization satisfies (31) and (53). Then the network average obeys the exact identity (11) for every finite , while the disagreement satisfies
where q is given by (52). Consequently:
- if uniformly, then
-
if , then ;
-
if for some , then .
Proof. By (34), the exact and finite-round solutions have the same network average. In disagreement coordinates, the finite-round update can therefore be written as . Using and (52) gives . Iteration yields (54). If , summing the geometric series gives (55). If , the stable convolution in (54) tends to zero. For geometrically decaying , evaluating the convolution gives the stated geometric rate.
The optimization accuracy itself also bounds the inner error. Let be the proximal objective and suppose the finite inner solve satisfies . Because the two points have the same network average, their difference lies in , on which is strongly convex with modulus . Therefore
Equations (55) and (56) relate a finite inner-solve tolerance directly to the resulting estimator disagreement tube.
Corollary 2 (Finite-round geometric reconstruction). Apply Theorem 1 separately to the centroid, anchor-vector, and centered-coordinate proximal problems, with respective contraction factors for . Because the corresponding network averages match the true centroid, anchor vector, and zero-centered coordinate average, respectively, the stacked geometric estimation errors satisfy the bounds (54) with their respective inner-solve errors , , and . In particular, uniformly bounded finite-round errors imply uniformly bounded practical reconstruction errors. If and the anchor-vector estimation error is eventually smaller than , normalization in (18) additionally gives , so the intrinsic-orientation estimate inherits the same practical or asymptotic convergence character as the anchor-vector estimate.
B. Exact-proximal estimator convergence
Let denote the finite settling indices furnished by Lemma 1 for the exact centroid, anchor-vector, and centered-coordinate proximal maps, and define . For ,
for every agent. Within each outer sample, the exact solution of (26) also gives .
C. Centroid contraction
Under (57), averaging (28) and using gives . Hence the centroid tracking error satisfies
for every and .
D. Orientation contraction
After estimator settling, all agents share the same . Equation (22) becomes . If , the map has derivative at least . Therefore
The same result follows from the proximal decrease of .
E. Shape descent and discrete horizontal lift
For the exact geometry, define the unrotated shape step . Because , remains centered. Assume is -Lipschitz in a rigidity neighborhood . The descent lemma gives
Thus yields strict descent away from the desired rigid orbit. Local infinitesimal rigidity also implies a local gradient-dominance bound on the quotient space for some , so
(60)
The finite rotations in (27) preserve all inter-agent distances, so they do not change . By construction, the first rotation restores the anchor-vector direction to , and the second rotation applies exactly the optimized increment in (23). The shape descent therefore does not contaminate the orientation update.
Theorem 2 (Local convergence of the discrete tri-control law). Suppose Assumptions 1–2 hold, the exact proximal estimator problems satisfy the uniform exact-penalty conditions of Lemma 1, , and the trajectory remains in a rigidity neighborhood in which is -Lipschitz and gradient dominated. If
and , then the exact-proximal distributed algorithm satisfies , with finite-step exact consensus, and , , locally exponentially after .
Proof. Finite-step estimator convergence follows from Lemma 1, Corollary 1, and the error-coordinate form of (21). After , the geometric estimates are exact and the three optimization coordinates separate. Equations (58), (59), and (60) provide independent local contractions for centroid, intrinsic orientation, and shape. The horizontal-lift rotation preserves shape while eliminating the shape-induced anchor-direction change. A weighted sum of , , and therefore contracts geometrically.
Remark 5 (Hypotheses in practice). Theorem 2 is local. It requires the anchor to stay away from the centroid ( ), the shape to stay in a rigidity neighborhood, and the orientation error at estimator settling to satisfy . With the anchor at a vertex of the target polygon, the first condition holds whenever the shape is close to the target. The staged start-up and reference phase-matching of Section VI-C are practical means of meeting the other two when the robots start from an arbitrary pose: the shape is formed before tracking begins, and tracking is released toward a reference point close to the formation's actual centroid and heading.

(a) first period
(b) final period

Fig. 2. Gazebo validation. (a) Initial and first-period formation motion. (b) Formation motion during the final reference period.

Fig. 3. Gazebo errors (1-s running maximum). (a) Shape, centroid, and orientation errors. (b) Geometric reconstruction errors.
VI. SIMULATION, IMPLEMENTATION, AND EXPERIMENTATION
A. Physics-based simulation with Gazebo
The Gazebo validation (Ignition Fortress) tests the deployed configuration with physically integrated motion, actuator saturation, and imperfect sensing. Each robot is modeled as a kinematic differential-drive body driven by the zero-order-hold commands of Section II. The graph, reference, and gains are those of the deployed configuration in Section VI-B. The speed limit is m/s, and each measured pose passes through a fixed 5 ms delay and small Gaussian noise that approximate the motion-capture pipeline. Because the robots start near the target formation, no staged start-up is needed.

(b)
Fig. 4. Experimental testbed. (a) DJI RoboMaster EP, body frame , and Vicon system. (b) Five-robot formation and sensing graph.
The run covers four reference periods (209.5 s, 2096 samples). The formation reaches the target pentagon during the first lobe and then repeats the figure eight with the same shape and orientation (Fig. 2). The edge error settles within the first seconds. The centroid and orientation errors show one excursion in the first period, reaching 5.6 cm and 0.065 rad near s, and from the second period on they stay below 1.8 cm and 0.034 rad without drift. In the final period, the maximum centroid and orientation errors are about 1.5 cm and 0.015 rad, their root-mean-square values are about 0.7 cm and 0.005 rad, and the maximum edge error is below 5 mm (Table I). The reconstruction errors fall below 1 cm within 1 s and stay there (Fig. 3). They are nonzero because the plant evolves continuously between samples, the realized increment differs slightly from the commanded one, and the sensing is delayed and noisy, whereas the estimators assume exactly realized increments (Section VI-C). Tracking nevertheless remains bounded and non-diverging for the whole run.
B. Experimental platform and configuration
The hardware consists of five DJI RoboMaster EP robots at the RoboHub, University of Waterloo (Fig. 4). The platform has mecanum wheels, but its lateral velocity is held at zero, so each robot operates as a differential-drive vehicle with inputs . Each robot carries a body-fixed frame whose x-axis is aligned with , and its controlled point is with m. An 11-camera Vicon system measures the robot poses, and a one-time calibration per robot maps them to the kinematic frame. All robots and the workstation share one wireless network running ROS 2 Humble.
The information structure is distributed even though all computation runs on one workstation. For each robot, the workstation forms only the neighbor measurements from the Vicon poses, which emulates on-board relative sensing, and only the anchor's absolute position is passed to the estimators. PDHG and angle-consensus messages are exchanged in-process and only along graph edges, and the resulting velocity commands are sent to the robots over the wireless network. A convex-hull safety filter, clocked independently of the controller, keeps the team inside the laboratory boundary.
The deployed graph is
with agent 5 as the anchor, a regular-pentagon target of side length 0.75 m and diagonal length 1.2135 m, and . The reference centroid is the Gerono figure eight
whose period is s; is its unit tangent. Gazebo uses m, m, , and . For the hardware run, the same curve is resized, translated, and rotated to fit inside the laboratory safety boundary, with a clearance equal to the pentagon circumradius plus the look-ahead and a margin: m, m, m, and . The deployed loop runs at s (10 Hz). The control gains are , , and , the estimator penalties are and , and each sample uses 50 PDHG rounds per estimator and 20 angle-consensus rounds, with and . These parameters are shared by the Gazebo and hardware runs, both of which last four reference periods. In the physical run, the robots start from a distorted pentagon far from the reference, with headings between and and axle centers spread over about m.
C. Implementation considerations
The analysis assumes that increments are realized exactly and instantaneously, and real-time deployment exposed two effects that it does not cover.
Saturation ordering. The estimator predictor uses the commanded as its only motion input. If the safety filter clamps a command after that increment has been stored, the estimator propagates a motion that never happened; in testing, this mismatch made the estimator diverge within seconds. The speed limit m/s is therefore applied to before is stored for the next estimator update, and the limit is set above the normal transient peak so that the safety filter stays inactive in nominal operation.
Sensing latency. The anchor's absolute position is used only at initialization (Section IV), and the sampled estimator has no bounded restoring term, so stale relative measurements degrade the reconstruction directly. In our tests, end-to-end latency above roughly caused persistent command saturation, and latency above about 75 ms made the estimators diverge. The deployed node therefore forms directly from the pose messages it receives instead of through an extra relay node, and it runs at 10 Hz. The measured computation time of 11–14 ms per sample shows that the inner iterations are not the bottleneck.
The physical run also starts from an arbitrary pose, which required two initialization procedures that leave the control law unchanged.
Staged start-up. Activating (28) immediately can take the system outside the local regime of Theorem 2. The commands are therefore held at zero for 10 s while the estimators converge.

Fig. 5. Physical experiment. (a) Formation initialization and tracking release. (b) Formation motion during the final reference period.
Then only the shape step (24) is enabled for 20 s, with and held at zero, and the full controller is activated at s.
Reference phase-matching. The reference keeps moving during start-up, so releasing the controller at a fixed time can produce a combined centroid and orientation correction large enough to violate the local shape-step regime (61). At mission start, we therefore select a constant reference-time offset by searching one period for the desired centroid and heading that are jointly closest to the centroid and heading of the formation at the scheduled release. The same offset is used for the rest of the run. It changes only the reference initialization, not the controller or its analysis.
D. Physical Experimentation
The hardware run uses the same gains, estimator penalties, inner-iteration counts, and sampling rate as the Gazebo run, but it starts from the arbitrary initial poses described in Section VI-B, so the procedures above are applied: zero commands for 10 s, shape-only control from 10 to 30 s, and full tracking from s. At release, the phase-matched reference is 0.45 m from the formation centroid and has nearly the same heading.
During start-up, the scattered robots form the pentagon in the shape-only stage, and once full control is released, the centroid joins the reference along a short path (Fig. 5). The edge error drops by two orders of magnitude between and 30 s. After release, the orientation error falls below 0.05 rad within 0.1 s, and the centroid error falls below 5 cm within 2.7 s (Fig. 6). All three errors then stay bounded without drift, and in the final period the formation tracks the figure eight steadily while keeping its shape and orientation.
Table I compares the two validations. On hardware, the final-period centroid and orientation errors are at most 1.04 cm

Fig. 6. Physical experiment errors (1-s running maximum). (a) Shape, centroid, and orientation errors. (b) Geometric reconstruction errors.
TABLE I FINAL-PERIOD ERRORS: MAXIMUM (ROOT MEAN SQUARE)
| Metric | Gazebo | Physical |
|---|---|---|
| Max edge error [mm] | 4.5 (2.1) | 32.1 (9.7) |
| Centroid tracking [mm] | 14.6 (6.8) | 10.4 (4.8) |
| Orientation |φ| [mrad] | 14.8 (5.3) | 18.1 (5.0) |
| Centroid estimation [mm] | 9.3 (2.5) | 0.23 (0.07) |
| Anchor-vector estimation [mm] | 8.5 (2.3) | 0.67 (0.24) |
| Centered-coord. estimation [mm] | 8.7 (2.4) | 0.04 (0.01) |
| Centroid consensus [mm] | 1.0 (0.18) | 0.45 (0.14) |
Hardware estimation errors are measured against the motion-capture poses from which the measurements are generated.
and 0.018 rad, with root-mean-square values of 0.48 cm and 0.005 rad. These errors are of the same order as in Gazebo, even though the robots started from an arbitrary pose. The shape errors are larger on hardware (maximum edge error 3.2 cm, root-mean-square 1.0 cm). This is consistent with effects that the kinematic simulation does not include: slip of the mecanum wheels under differential-drive operation, residual calibration error between the Vicon frame and the kinematic frame, and network and sensing delays. The hardware reconstruction errors are smaller than in Gazebo because the estimates and the values they are compared with both come from the same motion-capture poses. These errors therefore measure how consistent the reconstruction is, not the absolute accuracy of the Vicon system. To the authors' knowledge, this is the first validation of this algorithm on physical hardware.
VII. CONCLUSION
We derived a distributed estimator–controller for rigid differential-drive formations from an optimization-based formulation. The centroid, the anchor vector, and the centered coordinates are reconstructed directly from one absolute-position anchor and neighbor relative-position measurements, without reconstructing the absolute position of any individual robot. Exact graph-proximal updates complete this reconstruction in finitely many steps, and a finite number of neighbor-only primal-dual rounds leaves a bounded estimation error. The controller regulates the centroid, the intrinsic orientation, and the distance-based shape separately, and a finite rotation removes the orientation drift caused by the shape step, which gives local exponential convergence once the reconstruction is exact.
We validated the method in ROS 2/Gazebo with imperfect sensing and actuation and in experiments with five physical robots. On hardware, the final-period centroid and orientation errors stayed below 1.1 cm and 0.019 rad, and the formation was maintained after starting from an arbitrary initial pose. The experiments also showed the importance of three practical measures: feeding the applied increments to the estimator, accounting for sensing latency, and using staged start-up with reference phase-matching.
Future work will extend the framework to Ackermann-steered vehicles. There, the locally unconstrained planar-increment realization will be replaced by a curvature-constrained motion model that accommodates the minimum turning radius and steering limits while retaining centroid tracking, formation-orientation tracking, and rigid-shape regulation.
REFERENCES
[1] D. Liu, W. Bao, X. Zhu, B. Fei, T. Men, and Z. Xiao, “Cooperative path optimization for multiple uavs surveillance in uncertain environment,” IEEE Internet of Things Journal, vol. 9, no. 13, pp. 10676–10692, 2022.
[2] Y. Cui, Y. Huang, Q. Zhao, X. Yu, and T. Huang, “Resilient time-varying formation-tracking of multiagent systems against hybrid attacks with applications to spacecraft formation,” IEEE Transactions on Cybernetics, vol. 55, no. 2, pp. 625–637, 2025.
[3] T. Recker, M. Heinrich, and A. Raatz, “A comparison of different approaches for formation control of nonholonomic mobile robots regarding object transport,” Procedia CIRP, vol. 96, pp. 248–253, 2021.
[4] Q. Wu, X. Wang, and X. Qiu, “Embedded technique-based formation control of multiple wheeled mobile robots with application to cooperative transportation,” Control Engineering Practice, vol. 150, p. 106002, 2024.
[5] Y. Ren, S. Sosnowski, and S. Hirche, “Fully distributed cooperation for networked uncertain mobile manipulators,” IEEE Transactions on Robotics, vol. 36, no. 4, pp. 984–1003, 2020.
[6] J. Hu, P. Bhowmick, I. Jang, F. Arvin, and A. Lanzon, “A decentralized cluster formation containment framework for multirobot systems,” IEEE Transactions on Robotics, vol. 37, no. 6, pp. 1936–1955, 2021.
[7] B. D. O. Anderson, C. Yu, B. Fidan, and J. M. Hendrickx, “Rigid graph control architectures for autonomous formations,” IEEE Control Systems Magazine, vol. 28, no. 6, pp. 48–63, 2008.
[8] L. Krick, M. E. Broucke, and B. A. Francis, “Stabilisation of infinitesimally rigid formations of multi-robot networks,” International Journal of Control, vol. 82, no. 3, pp. 423–439, 2009.
[9] H. García de Marina, B. Jayawardhana, and M. Cao, “Distributed rotational and translational maneuvering of rigid formations and their applications,” IEEE Transactions on Robotics, vol. 32, no. 3, pp. 684–697, 2016.
[10] Z. Sun, M.-C. Park, B. D. O. Anderson, and H.-S. Ahn, “Distributed stabilization control of rigid formations with prescribed orientation,” Automatica, vol. 78, pp. 250–257, 2017.
[11] Q. Yang, M. Cao, H. G. de Marina, H. Fang, and J. Chen, “Distributed formation tracking using local coordinate systems,” Systems & Control Letters, vol. 111, pp. 70–78, 2018.
[12] R. Herguedas, M. Aranda, G. López-Nicolás, C. Sagiés, and Y. Mezouar, “Multirobot control with double-integrator dynamics and control barrier functions for deformable object transport,” in Proc. IEEE Int. Conf. Robotics and Automation, 2022, pp. 1485–1491.
[13] X. Zhang, Q. Yang, F. Xiao, H. Fang, and J. Chen, “Linear formation control of multi-agent systems,” Automatica, vol. 171, p. 111935, 2025.
[14] C. Peng and J. Huang, “Angle-constrained distributed formation control with disturbance rejection,” Automatica, vol. 177, p. 112314, 2025.
[15] T. Choopojcharoen, E. Selim, and B. Fidan, “Distributed simultaneous centroid estimation and formation tracking control using relative position measurement,” IEEE Control Systems Letters, vol. 9, pp. 1297–1302, 2025.
[16] R. A. Freeman, P. Yang, and K. M. Lynch, “Stability and convergence properties of dynamic average consensus estimators,” in Proc. 45th IEEE Conf. Decision Control, 2006, pp. 338–343.
[17] S. S. Kia, B. Van Scoy, J. Cortés, R. A. Freeman, K. M. Lynch, and S. Martínez, “Tutorial on dynamic average consensus: The problem, its applications, and the algorithms,” IEEE Control Systems Magazine, vol. 39, no. 3, pp. 40–72, 2019.
[18] F. Chen, Y. Cao, and W. Ren, “Distributed average tracking of multiple time-varying reference signals with bounded derivatives,” IEEE Transactions on Automatic Control, vol. 57, no. 12, pp. 3169–3174, 2012.
[19] Y. Cao, W. Ren, and Z. Meng, “Decentralized finite-time sliding mode estimators and their applications in decentralized finite-time formation tracking,” Systems & Control Letters, vol. 59, no. 9, pp. 522–529, 2010.
[20] R. Aragüés, L. Carlone, C. Sagiés, and G. Calafiore, “Distributed centroid estimation from noisy relative measurements,” Systems & Control Letters, vol. 61, no. 7, pp. 773–779, 2012.
[21] M. Franceschelli and A. Gasparri, “Gossip-based centroid and common reference frame estimation in multiagent systems,” IEEE Transactions on Robotics, vol. 30, no. 2, pp. 524–531, 2014.
[22] G. Habibi, Z. Kingston, W. Xie, M. Jellins, and J. McLurkin, “Distributed centroid estimation and motion controllers for collective transport by multi-robot systems,” in Proc. IEEE Int. Conf. Robotics and Automation, 2015, pp. 1282–1288.
[23] Y. Sun, Y. Zou, X. He, Q. Fu, and J. Wu, “Distributed formation centroid tracking control of clustered rotorcraft,” IEEE Transactions on Aerospace and Electronic Systems, vol. 59, no. 2, pp. 1867–1878, 2023.
[24] M. Guo, B. Jayawardhana, J. G. Lee, and H. Shim, “Simultaneous distributed localization, mapping and formation control of mobile robots based on local relative measurements,” IFAC-PapersOnLine, vol. 53, no. 2, pp. 9614–9620, 2020.
[25] X. Fang, L. Xie, and D. V. Dimarogonas, “Simultaneous distributed localization and formation tracking control via matrix-weighted position constraints,” Automatica, vol. 175, p. 112188, 2025.
[26] S. Zhao, D. V. Dimarogonas, Z. Sun, and D. Bauso, “A general approach to coordination control of mobile agents with motion constraints,” IEEE Transactions on Automatic Control, vol. 63, no. 5, pp. 1509–1516, 2018.
[27] M. Khaledyan, T. Liu, V. Fernandez-Kim, and M. de Queiroz, “Flocking and target interception control for formations of nonholonomic kinematic agents,” IEEE Transactions on Control Systems Technology, vol. 28, no. 4, pp. 1603–1610, 2020.
[28] S. Wilson, P. Glotfelter, L. Wang, S. Mayya, G. Notomista, M. Mote, and M. Egerstedt, “The robotarium: Globally impactful opportunities, challenges, and lessons learned in remote-access, distributed control of multirobot systems,” IEEE Control Systems Magazine, vol. 40, no. 1, pp. 26–44, 2020.
[29] M. Zhu and S. Martínez, “Discrete-time dynamic average consensus,” Automatica, vol. 46, no. 2, pp. 322–329, 2010.
[30] E. Montijano, J. I. Montijano, C. Sagiés, and S. Martínez, “Robust discrete time dynamic average consensus,” Automatica, vol. 50, no. 12, pp. 3131–3138, 2014.
[31] M. Franceschelli and A. Gasparri, “Multi-stage discrete time and randomized dynamic average consensus,” Automatica, vol. 99, pp. 69–81, 2019.
[32] A. Nedić and A. Ozdaglar, “Distributed subgradient methods for multi-agent optimization,” IEEE Transactions on Automatic Control, vol. 54, no. 1, pp. 48–61, 2009.
[33] S. Boyd, N. Parikh, E. Chu, B. Peleato, and J. Eckstein, “Distributed optimization and statistical learning via the alternating direction method of multipliers,” Foundations and Trends in Machine Learning, vol. 3, no. 1, pp. 1–122, 2011.
[34] N. Parikh and S. Boyd, “Proximal algorithms,” Foundations and Trends in Optimization, vol. 1, no. 3, pp. 127–239, 2014.
[35] A. Chambolle and T. Pock, “A first-order primal-dual algorithm for convex problems with applications to imaging,” Journal of Mathematical Imaging and Vision, vol. 40, no. 1, pp. 120–145, 2011.
[36] A. Tsoukalas, A. Tzes, and F. Khorrami, “Relative pose estimation of unmanned aerial systems,” in Proc. Mediterranean Conf. Control and Automation, 2018, pp. 155–160.
[37] X. Wang, Y. A. Şekercioglu, and T. Drummond, “Vision-based cooperative pose estimation for localization in multi-robot systems equipped with rgb-d cameras,” Robotics, vol. 4, no. 1, pp. 1–22, 2015.
[38] J. Cortés, “Discontinuous dynamical systems: A tutorial on solutions, nonsmooth analysis, and stability,” IEEE Control Systems Magazine, vol. 28, no. 3, pp. 36–73, 2008.
[39] J. V. Burke and M. C. Ferris, “Weak sharp minima in mathematical programming,” SIAM Journal on Control and Optimization, vol. 31, no. 5, pp. 1340–1359, 1993.
[40] S. y. Matsushita and L. Xu, “Finite termination of the proximal point algorithm in banach spaces,” Journal of Mathematical Analysis and Applications, vol. 387, no. 2, pp. 765–769, 2012.