Abstract
This study aims to present a novel flocking algorithm for robotic fish that will aid the study of fish in their natural environment. The algorithm, fish-inspired robotic algorithm (FIRA), amalgamates the standard flocking behaviors of attraction, alignment, and repulsion, together with predator avoidance, foraging, general obstacle avoidance, and wandering. The novelty of the FIRA algorithm is the combination of predictive elements to counteract processing delays from sensors and the addition of memory. Furthermore, FIRA is specifically designed to work with an indirect communication method that leads to superior performance in collision avoidance, exploration, foraging, and the emergence of realistic behaviors. By leveraging a high-latency, non-guaranteed communication methodology inspired by stigmergy methods inherent in nature, FIRA successfully addresses some of the obstacles associated with underwater communication. This breakthrough enables the realization of inexpensive, multi-agent swarms while concurrently harnessing the advantages of tetherless communication. FIRA provides a computational light control algorithm for further research with low-cost, low-computing agents. Eventually, FIRA will be used to assimilate robots into a school of biological fish, to study or influence the school. This study endeavors to demonstrate the effectiveness of FIRA by simulating it using a digital twin of a bio-inspired robotic fish. The simulation incorporates the robot’s motion and sensors in a realistic, real-time environment with the algorithm used to direct the movements of individual agents. The performance of FIRA was tested against other collective flocking algorithms to determine its effectiveness. From the experiments, it was determined that FIRA outperformed the other algorithms in both collision avoidance and exploration. These experiments establish FIRA as a viable flocking algorithm to mimic fish behavior in robotics.