Abstract

This paper considers the region-based formation control for a swarm of robots with unknown nonlinear dynamics and disturbances. An adaptive neural network is designed to approximate the unknown nonlinear dynamics, and the desired formation shape is achieved by designing appropriate potential functions. Moreover, the collision avoidance, velocity consensus, and region tracking are all considered in the controller. The stability of the multirobot system has been demonstrated based on the Lyapunov theorem. Finally, three numerical simulations show the effectiveness of the proposed formation control scheme to deal with the narrow space, loss of robots, and formation merging problems.

1. Introduction

Formation control problem of a multiagent system has long been the concern of many scholars, as it is one of the important problems in the cooperative control and has broad applications, such as in mobile robots, ships, submarines, and flight vehicles [15]. There exist many formation control strategies that are categorized as position-based, displacement-based, and distance-based formation control schemes according to the different requirements on the sensing capability and the interaction topology [610].

However, most of the existing works focus on the leader-follower network and the graph theoretic method. In these formation constructions, the geometric relationship between robots is usually fixed with given position, angle, placement, or distance [1114]. With the increasing number of robots in the formation, it is difficult to accurately locate each robot, and the constraint relationship among the robots will become more complicated. Therefore, it is challenging for the existing formation control strategies to deal with the large swarm of robots.

The region-based formation control is a complement to the above formation control methods that can solve the formation control problem for the large swarm of robots [15, 16]. The swarm of robots are required to stay inside the desired region or on the edge of the region. It focuses more on the shape of the whole formation, rather than on the inner sensing capability and interaction topology. Unlike the traditional formation constructions, the geometric relationship between robots in the region-based formation control is not fixed and can change constantly during the motion. Therefore, complicated formation shape can be achieved by designing appropriate regional boundary conditions, such as circular shape, ring shape, and crescent shape [17]. Jung and Kim proposed a potential-function-based shape formation control law, where a diamond-shaped formation and a heart-shaped formation are achieved [18]. There is no special leader or follower in these region-based formations where the rolls and identities of the robots are the same. Haghighi and Cheah achieved a plane-shape formation, but a leading group and some follower groups were introduced in the formation control scheme with a global leader in the leading group and a local leader in each follower group [19]. Hou and Cheah achieved a car-shape formation and an airplane-shape formation for the swarm of robots based on various basic shapes [20].

The region-based formation control also has the advantage to deal with the obstacle avoidance problems, especially passing the narrow spaces. Hou et al. introduced a scaling matrix to change the size of the desired region and a rotation matrix to rotate the desired region for passing through a tunnel [21]. Because the shape of the formation is flexible and variable, there is a chance to settle the problem of passing a narrow space by changing the shape of the desired region directly. In addition, it is complicated to solve the formation reconstruction and formation merging problems by the traditional distance-based formation control schemes [2224]. The region-based formation control scheme provides a new way to deal with these problems.

In this paper, we focus on the region-based formation control for a swarm of robots with unknown nonlinear dynamics and disturbances. The proposed controller is formulated into three parts: region-based shape realization, collision avoidance, and velocity synchronization. The potential function of robot is designed based on the shape objective functions for region-based shape realization, and the artificial potential field (APF) between each pair of neighboring robots is defined for collision avoidance. Moreover, the local motion synchronization error and region tracking error are both controlled for velocity consensus. Considering the excellent estimation ability of a neural network [2527], we approximate the unknown nonlinear dynamics of the robots by an adaptive neural network. The stability of the multirobot system has been demonstrated based on the Lyapunov theorem, and three numerical simulations are performed. A narrow space is passed by the swarm of robots with the shape of the formation changed, without the need of a scaling matrix or a rotation matrix. When some robots failed due to some accidents, the remaining robots reconstruct the formation adaptively. In addition, two moving formations are merged together successfully.

The outline of this paper is listed as follows. Background is introduced in Section 2. The procedure of formation controller design is presented in Section 3. Numerical simulations are shown in Section 4, and a conclusion is in Section 5.

2. Background

It is assumed that each robot can measure the relative positions of its neighboring robots via an onboard sensor within its detection range. The state of the robot will be represented with respect to a global coordinate system in this paper. The position and the velocity of robot at time are denoted by and , respectively. The dynamics of the robot can be modeled as where is the control input of robot . represents the disturbances from the environment satisfying , where is a positive constant. is the unknown nonlinear dynamics. , and is the total number of the swarm of robots.

3. Formation Controller Design

3.1. Region-Based Shape Realization

A moving region is defined for the swarm of robots to stay inside, which can be formed as various shapes by designing appropriate objective functions. The global shape objective function of robot is defined as follows: where is the total number of the objective functions that the robots should satisfy. denotes the position of the reference point in the desired region and satisfies the following condition: where is the velocity of the reference point. is the acceleration of the reference point satisfying , where is a positive constant. It is assumed that the position and the velocity of the reference point in the desired region are known by the robots. It should be noted that each of the shape objective functions when the robot stays inside the desired region, otherwise, . Thus, the potential function of robot based on the shape objective functions can be presented by

In (5), the term will be zero if , which means that the corresponding potential function is zero if the shape objective function is satisfied. Then, we can get the gradients of the potential function for the robot as follows:

Then, the controller of robot for region-based shape realization can be represented as where is a positive constant.

Remark 1. Various shapes can be formed by designing appropriate objective functions. For example, the objective functions for a ring shape can be designed as where and are the parameters of the ring shape satisfying .

3.2. Collision Avoidance

The detection range of robot denoted as is larger than the allowable minimum distance between the robots and can be adjusted according to different target formation adaptively. Then, the neighboring set of robot is defined as . It should be noted that the neighboring set is variable during the moving of the robots. In order to achieve the shape control without collisions, a potential function between each pair of robots is defined as follows. where is a positive constant. denotes the Euclidean norm. The potential for the robot is defined as the sum of all APF associated with every one of its neighbors.

Then, we can get the gradients of the APF for the robot as follows:

Thus, the controller of robot for collision avoidance can be represented as follows: where is a positive constant.

3.3. Velocity Synchronization

The local motion synchronization error of robot is defined as

The region tracking error of robot is defined as

Then, the controller of robot for velocity consensus can be designed as follows: where and are positive constants. The error vector of the swarm robots can be represented as follows: where and . denotes an identity matrix of dimension . , and denotes the Kronecker product. Define , if ; otherwise, . The Laplacian matrix . with , and .

Taking the time derivative of , we have where . . . The unknown can be approximated by a radial basis function neural network (RBFNN) as follows: where represents a set of RBFNN coefficients. . is the approximation error satisfying , where is a positive constant. is a valued function vector based on the Gaussian function chosen as follows: where is a constant vector denoting the center of the basis function. is a constant denoting the width of the basis function. Note that the basic function is bounded as , where is a positive constant.

3.4. Control Law

The final control law of robot is designed as follows: where is used to estimate . is a vector of RBFNN weights with the adaptive updating law proposed as where and are positive constants. Then, the error dynamics in (17) become where , , , , and . . . The main result of this paper is given by the following theorem.

Theorem 1. Consider a swarm of robots with dynamics in (1) and (2). Select the control law in (20) and the adaptive law in (21). Then, there exist positive constants , , , , , and , such that all the robots stay inside a moving region of specific shape, and the local motion synchronization errors converge to a small neighborhood of the origin.

Proof. Then, we consider a Lyapunov function: where . denotes an identity matrix of dimension . Taking the time derivative of and substituting (21) and (22) into it, we can get Then, we can obtain where and denote the maximum and minimum singular values of a matrix, respectively. denotes the Frobenius norm. , with and representing the magnitude of the maximum potential force of and , respectively. Using Young’s inequality, we obtain Then, (25) can be represented as where The control parameters are designed to satisfy According to (27), we have Thus, the errors and converge to compact sets and , which are defined as It can be seen from the above analysis that the errors and are bounded. The system can achieve the stability rather than the exponential stability, and the boundedness can be adjusted by choosing proper control parameters. This completes the proof.

4. Simulations

In this section, three simulations are presented to support our theoretical analysis. Firstly, we will show that a formation in circular shape is changed into elliptical shape during the moving so as to pass a narrow space. The second simulation will verify that the remaining robots can reconstruct the formation when some robots fail or are lost due to some accidents. Finally, two moving formations will be merged together by applying the proposed formation control law.

In the three simulations, 100 robots are considered with the positions initialized randomly in an area of 40 m long and 40 m wide and the velocities initialized randomly within 4 m/s each direction. The basic control parameters are set as , , , and . The parameters for updating the RBFNN weights are and . The disturbances are set as , where is a random number between 0 and 1. The unknown nonlinear dynamics are defined as .

4.1. Passing a Narrow Space

In this section, the desired formation is a circular shape with the radius of 10 m and the velocity  m/s. It is shown in Figure 1(b) that the swarm of robots achieved the circular formation at  s. Then, the swarm of robots changed its formation into the elliptical shape for passing a narrow space. The elliptical shape is set with the long radius of 18 m and the short radius of 5 m. The elliptical formation in the narrow space is shown in Figure 1(c) at  s. After passing the narrow space, the swarm of robots changed back to the circular formation as illustrated in Figure 1(d) at  s. Further, the robots can maintain the formation shape while moving.

4.2. Loss of Robots

In this section, the swarm of robots are supposed to achieve the circular formation as the same as that in Section 4.1. It is assumed that 2/3 of the robots failed or are lost due to some accidents at  s, as shown in Figure 2(c). Then, the remaining 1/3 of the robots should continue to complete the task of region-based formation. It is shown in Figure 2(d) that the remaining robots reconstruct the circular formation again by adjusting the detection range of the robots adaptively.

4.3. Merging of Formations

The 80 robots are initialized randomly and shown as red dots, while the other 20 robots are initialized randomly and shown as blue dots in Figure 3(a). The red robots achieved the desired circular formation with the radius of 10 m and the velocity  m/s. On the other hand, the blue robots achieved the circular formation with the radius of 5 m and the velocity  m/s, as shown in Figure 3(b). The two formations were getting closer to each other, and they started to merge at about  s, as shown in Figure 3(c). Finally, the blue formation and the red formation merged together into one formation with the radius of  m and the velocity  m/s. It can be seen from Figure 3(d) that the density of the merged formation is the same as that of the original formations.

5. Conclusion

In this paper, we investigate a decentralized region-based formation control law for a swarm of robots. The unknown nonlinear dynamics of the robots are approximated by an adaptive neural network, and the desired formation shape is achieved by designing appropriate potential functions. The collision avoidance, velocity consensus, and region tracking are all considered in the controller. With the proposed formation control law, the formation can pass a narrow space by changing the shape of the formation. When some robots failed due to some accidents, the formation can be reconstructed adaptively with the remaining robots. In addition, the proposed region-based formation control scheme is effective in dealing with the formation merging problem.

In the future, we will design more flexible formation structure and more intelligent controllers based on the learning control method [28, 29]. The adaptive observer and parameter estimation may be applied in the shape control [30, 31]. In addition, the limited maneuverability and the sensor failure of the robot will be considered in our future work [3234].

Data Availability

The data used to support the findings of this study are included within the article, such as the basic control parameters, the parameter for updating the RBFNN weights, and the size and velocity of the desired region. Moreover, all data used in this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (Grant nos. 61473124, 61803111, 61876047, and 11832009).