1. Introduction
In recent years, unmanned underwater vehicles (UUVs) have become an essential instrument in ocean engineering, serving a variety of purposes, such as monitoring, exploration, and surveillance, in particular in complex environments [
1,
2]. Due to the limited application scenarios of formation control technology [
3], people are increasingly inclined to use UUV swarm technology to accomplish complex tasks in complex underwater environments. Nonetheless, coordinating the behavior of these swarms is challenging owing to potential swarm behavioral conflicts and chain reactions [
4]. Bio-inspired collaborative control strategies have been gaining more recognition for managing conflicts within a group, avoiding collisions and obstacles, and carrying out tasks on the given trajectory in UUV swarm control [
5].
The current collaborative control techniques mainly consist of centralized and distributed methods. However, when there are a large number of UUV clusters, the centralized distribution method is not feasible due to communication constraints in the underwater environment. In contrast, distributed control methods do not have a central control point, and information exchange is completed through mutual coordination between adjacent individuals, ultimately achieving the overall formation behavior. Due to the lack of a control center, distributed control systems are highly flexible and can dynamically change the structure of the control network. Distributed methods mainly consist of leader-following [
6,
7,
8], virtual structure [
9], artificial potential field [
10] and consensus control [
11,
12].
There have been some studies on achieving trajectory tracking through distributed collaborative control. Article [
13] proposes an experience-based distributed controller for an uncertain, high-order, nonlinear, multi-agent system to enhance the control performance and reduce the computational burden. Article [
14] investigates a more practical constraint requirement that is dependent on the path parameter, rather than directly depending on the time variable. Article [
15] presents a robust neuro-optimal control approach to enhance the robustness of a robot’s tracking control under the influence of unknown nonlinear perturbations. Article [
16] investigates the path-guided containment maneuvering of networked two-wheeled mobile robots with multiple virtual leaders moving along multiple parameterized paths. Paper [
17] aims to address the cooperative path-following problem of autonomous surface vehicles (ASVs) over a wireless network with limited resources.
In terms of the impact of cluster interaction methods and the number of interactions on control results, the study in article [
18] suggests that the swarm’s adaptability improves when robots have fewer communication links. In paper [
19], the authors investigate the platoon formation control problem for unmanned surface vehicles, accounting for modeling uncertainties and time-varying external disturbances along a given trajectory while maintaining a desired line-of-sight (LOS) range between each vehicle and its predecessor. Article [
20] demonstrates various 3D collective behaviors, such as synchronization, dispersion/aggregation, dynamic circle formation, and search-and-capture, using a swarm of fish-inspired miniature underwater robots with implicit communication mediated by the production and sensing of blue light.
However, the above control methods have some limitations in solving the cooperative control problem of UUV clusters in underwater environments.
Due to the complexity of the underwater environment, obstacle avoidance has become an important issue in the cooperative control of UUV clusters. However, the above articles have limited discussions on obstacle avoidance capabilities.
In the underwater environment, the detection methods are limited, and sonar detection is a commonly used method. However, the above articles have limited research on sonar detection.
Due to the harsh communication conditions underwater, obtaining velocity information from neighbors within the domain is extremely challenging.
Therefore, this study aims to address these limitations by proposing a novel approach that leverages only position information to achieve cooperative control among crowded UUV swarms, ensuring effective trajectory following while efficiently avoiding obstacles. Notably, this approach stands out for its ability to function without requiring velocity information. Through rigorous experimental validation and performance assessments, the efficacy and advantages of the proposed cooperative control approach are demonstrated in guiding crowded UUV swarms along a specified trajectory while efficiently maneuvering around obstacles.
The remaining sections are outlined as follows.
Section 2 establishes the dynamic model of an UUV, presenting the problem statement.
Section 3 analyzes sonar characteristics and proposes a dynamic interactive topology based on active and passive sonar detection. In
Section 4, a bio-inspired collaborative control algorithm is proposed for the dynamic interactive topology.
Section 5 validates the effectiveness of the proposed algorithm through simulation experiments on a constructed platform, specifically focusing on trajectory coordination, obstacle avoidance, and complex trajectory scenarios. Comparative experiments are conducted to verify the algorithm’s efficiency in the presence of obstacles along the given trajectory. Finally, the paper concludes with a summary.
4. Cooperative Control Method
The control methods for UUV swarm often rely on high-speed communication and precise velocity information [
4,
32], which can be challenging to maintain in underwater environments. Paper [
23] presents a theoretical framework for designing and analyzing distributed flocking algorithms that rely on the position information of neighboring agents. For obstacle avoidance, in this algorithm [
23], obstacles are treated as moving agents. However, when the obstacle moves away, it is still considered an agent, which can disrupt the behavior of the agents and hinder the obstacle avoidance process. These constraints can hinder the effectiveness of UUV cluster control, particularly in scenarios with limited communication conditions.
In nature, biological collectives can exhibit rather complex functionalities through simple self-organizing behaviors [
33]. Based on this understanding, a bio-inspired control strategy is proposed.
Through the use of sonar-based interaction topology, individuals within a cluster can utilize this model to obtain information about their current neighborhoods and obstacles. Leveraging the characteristics of active and passive sonar, UUVs can employ passive sonar for cluster aggregation and collision avoidance, while active sonar can be used for obstacle avoidance. This approach effectively reduces the demands on UUV cluster coordination for complex tasks, ultimately lowering the overall computational and communication requirements.
Considering the three constraints (
7) in the problem description, inspired by the paper [
23] and biological collectives, this paper designs a bio-inspired, position-based, cooperative control strategy to satisfy the three constraints under the sonar interaction topology.
Since the cooperative control strategy needs to satisfy the three constraints of path tracking, obstacle avoidance, and maintaining a safe distance, the designed control strategy is a combination of three control strategies. The excepted variable
of the
i-th UUV can be expressed as
represents the trajectory coordination between the given trajectory and the position of the
i-th UUV at time
t. The UUV swarm tracks the given trajectory through
.
where parameter
is used to adjust the strength of the UUV towards the trajectory point. By adjusting the size of the parameter
, the UUV can be attracted to the trajectory point, allowing the UUV to move along the given trajectory. Moreover, by setting the change in
concerning time, the UUV can have different attractions to the trajectory point at different times, thereby achieving different tracking accuracies of the trajectory point at different times.
is the coordination term between the agent and its neighbors obtained through the dynamic interaction topology. By designing
, the cooperative motion between UUVs can be achieved, ensuring that UUVs can achieve adaptive aggregation and maintain a safe distance.
where
is the set of neighboring UUVs obtained by sonar detection interaction topology.
is the coordination weight, used to adjust the proportion of the three forces of swarm, trajectory tracking, and obstacle avoidance. By adjusting the size of
, the cluster can respond more sensitively to one of the forces.
is the safe distance adjustment parameter. By adjusting the size of
, the range of repulsion and attraction between two UUVs can be changed, so that the UUVs repel each other at close range and attract each other at long range.
is the coordination term between the agent and the obstacle in active sonar.
where
is the obstacle avoidance weight, used to adjust the proportion of the obstacle avoidance force. By adjusting the size of
, the cluster can respond more sensitively to the obstacle avoidance force.
is the distance adjustment parameter. By adjusting the size of
, the cluster can respond more sensitively to the distance of the obstacle.
The expected force
of the UUV can be obtained. By decomposing the velocity direction and the vertical direction of
, the
and
in Equation (
2) can be obtained as follows
where
is the force in the direction of the UUV velocity and
is the torque. · is the dot product of two vectors.
Define
as the simulation step; then, the velocity and position of the UUV can be updated using the fourth-order Runge–Kutta method [
34]. Define the differential equation of Equation (
2) as
, and the differential equation of Equation (
1) as
. If at time
t, the position and attitude vector of the
i-th UUV is
and the velocity and angular velocity vector is
, then at time
, the velocity of the UUV is
Then, the position of the UUV is
Thus, the high-precision position and attitude information of the UUV can be obtained. Next, the cooperative control strategy proposed in this paper will be verified by simulation.
5. Simulation Results
To assess the practicality and efficacy of the proposed bio-inspired cooperative control scheme, a simulation platform for UUVs was constructed using Unity, as illustrated in
Figure 6.
The control scheme uses Unity to build the marine environment, which contains the UUV dynamics model, Doppler velocity logs, positioning transponders, and sonar for detection. The collaborative control method is developed in Python and interfaces with the simulation platform to validate the proposed method. In this simulation platform, depicted in
Figure 6, the movement of UUVs in the ocean can be replicated. The UUV swarm gathers data using Doppler velocity logs, positioning transponders, and sonar for detection. This information is then processed through an interactive topology to determine obstacle and UUV positions within the nearby area. Subsequently, the UUV calculates its anticipated force using collaborative control techniques and tests the proposed method using the simulation platform.
The parameters of the proposed method are set as follows in
Table 1.
5.1. The Effectiveness of Trajectory Tracking without Obstacles
To verify the effectiveness of the proposed method in trajectory tracking, this paper conducted a trajectory tracking simulation of the UUV swarm on the simulation platform. In the simulation, the UUVs were divided into two groups, as depicted in
Figure 7a, and placed in a rectangular area of 100 × 200. The initial velocities of the UUVs were randomly assigned between 0 and 4 m/s.
The trajectory is a line from [180, 180] m to [800, 100] m, then to [500, 600] m, and finally to [1000, 1000] m. The expected speed of this trajectory is 4 m/s. The UUV swarm is required to track the given trajectory. No adjustment of the above control method is required, and the UUV swarm can track the given trajectory. The simulation results are presented as shown below.
The initial pattern of the UUV swarm is shown in
Figure 7a, where the circles represent the positions of individual UUVs and the arrows represent the velocity vectors of UUVs. The length of the arrow represents the velocity magnitude of the UUV, and the direction of the arrow represents the heading direction of the UUV.
Figure 7b shows the position and pose of the UUV swarm when it reaches the end of the trajectory. It can be seen that the UUV swarm forms a stable formation, with stable distances between each UUV. The UUV swarm has transformed from a chaotic state to an orderly state through the proposed method.
The motion trajectory of the UUV swarm under the given trajectory is shown in
Figure 8. As shown in
Figure 8a, under the action of the control law in the given trajectory, UUV swarm individuals gradually gather in groups from the initial random state distribution, and then the swarm moves along the given trajectory. And, when the swarm turns at the position [800, 100], some UUVs continuously expand towards the edge of the swarm to ensure internal collision avoidance. By intuitively looking at
Figure 8b, it can be seen that the center of the UUV swarm coincides with the given trajectory.
Next, the effect of trajectory tracking and the cooperative effect were further analyzed. The heading of the UUV swarm and the deviation between the center of the swarm and the given trajectory were statistically analyzed, and the graphs shown in
Figure 9a,b were created.
As shown in
Figure 9a, the UUV swarm gradually tends to be consistent under the proposed method, and the heading of the UUV swarm changes significantly near the turning point of the given trajectory. This is because the UUV swarm needs to be reorganized near the turning point of the given trajectory. As shown in
Figure 9b, the deviation of the center of the UUV swarm under a stable trajectory will gradually decrease. When a turning point occurs, the deviation of the center of the UUV swarm will increase because of reorganization, but after the turning point, the deviation of the center of the UUV swarm will gradually decrease. This indicates that the UUV swarm can effectively track the given trajectory.
Recording the maximum and minimum distances between UUVs can reveal the stability of the UUV swarm under the given trajectory.
The maximum and minimum distances between UUVs in the swarm are shown in
Figure 10. As shown in the figure, the maximum and minimum distances between UUVs in the swarm under the given trajectory can stabilize within a certain range. Near the turning point of the given trajectory, the change in the minimum distance is not significant, and the minimum distance between UUVs will not be less than 10.03 m. The average minimum distance is 12.29 m. This indicates that, under the given trajectory, the UUV swarm can maintain a stable safe distance and has a certain stability.
The UUV swarm can effectively track the given trajectory and maintain a stable formation, demonstrating the effectiveness of the proposed control law in achieving cooperative control and trajectory tracking.
5.2. The Effectiveness of Trajectory Tracking within Obstacle Avoidance
In this section, the obstacle avoidance capability of the proposed method in the presence of single and multiple obstacles along a given trajectory is verified.
5.2.1. Single Obstacle Avoidance
First, the trajectory tracking effect of the proposed method under a single obstacle is verified. The trajectory is a straight line from [150, 150] m to [600, 600] m. The number of UUVs was set to 54, and an obstacle was added to the given trajectory. The obstacle is located at [350, 350] and is a circular obstacle with a diameter of approximately 50 m. Under the control method proposed in this paper, the UUV swarm moves along the given trajectory, and the results are shown in
Figure 11.
Figure 11a illustrates the movement trajectory of the UUV swarm when traversing a trajectory containing obstacles. At the initial state, the UUV swarm is affected by both the cooperative control and the target trajectory. The UUV swarm in the two areas gradually gathers along the direction of the blue and orange arrows. When it approaches the obstacle, it is affected by the repulsion force of the obstacle, and begins to disperse and avoid the obstacle. After the UUV swarm passes through the obstacle, it is affected by the attraction force of the target trajectory, and re-gathers. During the crossing process, the minimum distance between the UUV and the obstacle changes with time, as shown in
Figure 11b.
The minimum distance between UUVs and the obstacle during the traversal process is shown in
Figure 11b. It can be observed that the distance between UUVs and the obstacle is always greater than 12.63 m.
The obstacle avoidance effect of the proposed cooperative strategy mainly depends on the adjustment of and . is the obstacle avoidance weight, and by adjusting the size of , the cluster can respond more sensitively to the obstacle avoidance force. is the distance adjustment parameter, and by adjusting the size of , the UUV can always maintain a certain safe distance.
When
is too small, as shown in
Figure 12a, the UUV swarm cannot complete the obstacle avoidance. Due to the small
, the UUV swarm is not sensitive enough to the obstacle avoidance force, resulting in the UUV swarm being unable to avoid obstacles in time. When
is too large, the UUV swarm will exhibit excessive obstacle avoidance, as shown in
Figure 12b. During the obstacle avoidance process, the UUV swarm will exhibit excessive obstacle avoidance, resulting in the motion trajectory of the UUV swarm not being smooth enough.
is the distance adjustment parameter, and by adjusting the size of
, the UUV can always maintain a certain safe distance. When
is too small, as shown in
Figure 13a, the UUV swarm will be too close to the obstacle, which may cause a collision. When
is too large, as shown in
Figure 13b, although the UUV swarm can complete the obstacle avoidance, it will waste too much energy for obstacle avoidance. Therefore, different task requirements need to adjust
.
It can be seen that for simple, single obstacle avoidance, the proposed method can be used for tasks with different obstacle avoidance requirements. By adjusting the size of and , the UUV swarm can complete obstacle avoidance under the given trajectory and maintain a certain safe distance. This verifies the obstacle avoidance effect of the proposed method under simple obstacles.
5.2.2. Multiple Obstacles Avoidance
This section will verify the complex trajectory tracking effect of the proposed method under multiple obstacles. To validate the effectiveness of the proposed control method in executing complex trajectories with multiple obstacles, the following simulation scenario is designed.
As shown in
Figure 14, the trajectory is a line from [200, 200] m to [800, 100] m, then to [500, 600] m, and finally to [1000, 1000] m. Four obstacles are located at [600, 100] m, [400, 200] m, [700, 850] m, and [700, 700] m, and all of them are circular. The diameter of the obstacles is 50 m. The UUV swarm is tasked with trajectory tracking, and the results are shown in the figure.
Figure 15 shows the variation in the minimum distance between the UUV swarm and each obstacle during the trajectory tracking task. As can be seen from the figure, even when traversing a complex trajectory containing multiple obstacles, the proposed method can still ensure a safe distance of more than 6.34 m between the UUVs and the obstacles, thus verifying the effectiveness of the proposed method.
The traversal tracking task was completed in 527 s through the cooperative control method designed in this paper. As shown in
Figure 14, the UUV cluster can navigate according to the given trajectory and perform timely obstacle avoidance and intra-cluster collision avoidance when encountering obstacles, demonstrating high intelligence and execution efficiency.
It can be concluded that, under the control method proposed in this paper, the UUV swarm can automatically split into groups for obstacle avoidance when encountering obstacles, and then regroup under the attraction of the trajectory and the swarm. The distance between UUVs is always maintained above a safe distance. The above analysis verifies that the control method proposed can achieve trajectory tracking with obstacles on a given trajectory by relying only on position information without the need for speed of the neighbors, and realizes UUV swarm cooperative control, collision avoidance, and obstacle avoidance control.
5.3. Comparison with Existing Methods
The greatest advantage of this control method is that it does not require the velocity information of neighbors, and can achieve swarm cooperative control, obstacle avoidance, and trajectory tracking with only positional information.
The self-organized fission/fusion method (SFF) [
33] method and single-informed-based distributed consensus (SDC) [
19] method were selected for obstacle avoidance simulation verification. The SFF method predicts the future state of neighbors by utilizing historical information and realizes the split and aggregation of the swarm by designing the clustering and splitting terms. The SDC method proposes an adaptive formation control that ensures a closed-loop system’s internal stability with guaranteed prescribed performance. Both the SFF method and the SDC method adopted the velocity coordination term. To compare the advantages and disadvantages of the proposed method with existing methods, the task execution time consumption and the safety distance of the proposed method, the SFF method, and the SDC method were compared. The trajectory tracking simulation results under a single obstacle were selected for comparison. After incorporating obstacle avoidance, the time consumption of the three methods is presented in
Table 2.
Table 2 shows that the proposed method in this paper has higher efficiency in trajectory tracking with obstacles, and can complete the tracking in a shorter time and with a larger safety distance.
To analyze the differences in simulation results between the proposed control method and the two methods mentioned above, it is noted that the proposed method does not use a velocity coordination term to control the swarm. Instead, it relies solely on positional information to perform cooperative control, obstacle avoidance, and trajectory tracking. Therefore, the proposed method is more sensitive to the presence of obstacles and has a larger safety distance compared to the other two methods. Moreover, it shows better execution performance in tracking the given trajectory.
6. Conclusions
This paper addresses the problem of controlling a swarm of UUVs with obstacles in a given trajectory based on position information. A dynamic interactive topology framework based on sonar is designed for UUVs, which provides the position information of both the swarm and obstacles. Then, a bio-inspired cooperative control method for UUV swarm based on sonar interaction topology is proposed. The method does not require the velocity information of neighbors and only needs position information to achieve swarm cooperative control, obstacle avoidance, and trajectory tracking. The effectiveness of the proposed method is verified through simulation experiments. The results show that the UUV swarm can effectively track the given trajectory and maintain a stable formation, demonstrating the effectiveness of the proposed control method in achieving cooperative control and trajectory tracking. The proposed method is more sensitive to the presence of obstacles and can complete the tracking in a shorter time and with a larger safety distance compared to existing methods.
The proposed method only relies on position information, greatly reducing the communication burden of the UUV swarm, and enabling the UUV swarm to achieve complex trajectory tracking based solely on the position information obtained by sonar detection, demonstrating high intelligence and execution efficiency. This method holds promising applications in various scenarios, such as underwater infrastructure inspection, environmental monitoring, search-and-rescue operations, and oceanographic research.
In future work, we will focus on the following aspects: (1) a theoretical stability analysis of the method will be conducted; (2) the potential consequences on the cluster in the event of a sensor failure will be studied; (3) the proposed method will be further verified in a real underwater environment.