Abstract
We propose a model predictive control (MPC) based approach to a flock control problem with obstacle avoidance capability in a leader-follower framework, utilizing the future trajectory prediction computed by each agent. We employ the traditional Reynolds' flocking rules (cohesion, separation, and alignment) as a basis, and tailor the model to fit a navigation purpose. In particular, we introduce several concepts such as the credibility and the importance of the gathered information from neighbors, and dynamic trade-offs between references. These features are incorporated in the MPC formulation, and their advantages are discussed through numerical simulations.
Introduction
In the natural world, schools of fish and flocks of birds perform breathtaking maneuvers using nothing but local information. In robotics, mimicking this behavior often relies on "Reynolds’ Rules"—cohesion, separation, and alignment. However, while these rules are effective for maintaining group formation, they often struggle with navigation: guiding a swarm from an origin to a destination through cluttered environments when only a few "leaders" possess knowledge of the goal.
Traditional flocking algorithms are primarily reactive; agents adjust their velocity based on the current state of their neighbors. This can lead to oscillatory behavior or "drag-behind" effects, where trailing agents inadvertently pull the front of the flock away from the target. The challenge lies in ensuring the flock stays cohesive and follows the leader’s intent using only local, decentralized communication.
Proposed Methodology
To address these limitations, this research moves beyond reactive potential fields toward Nonlinear Model Predictive Control (MPC). In this framework, every agent solves an optimization problem at each time step to determine the optimal trajectory over a future "horizon."
The core of the proposed approach involves four novel modifications to standard flocking rules:
- Dynamic Hierarchy: Agents use a decentralized algorithm to estimate their "graph distance" from the leader. An agent directly following the leader is assigned a hierarchy level of 1, while those following it are assigned higher levels.
- Subjective Neighbor Weighting: Agents prioritize information from neighbors with a lower hierarchy level (those closer to the leader). Additionally, an "ahead/behind" filter is implemented: agents reduce the weight of neighbors behind them to prevent trailing agents from misdirecting the leaders.
- Dynamic Cohesion/Alignment Trade-off: The relative importance of cohesion versus alignment is adjusted dynamically. If an agent is far from the group's center, it prioritizes cohesion. Once integrated within the flock, it shifts focus to alignment for smoother navigation.
- Discount Factors: To account for future uncertainty, the MPC cost function utilizes a discount factor ((\gamma)) to prioritize near-future accuracy over distant predictions.
Simulation and Results
The methodology was validated through numerical simulations implemented in Python, using the OpEn (Optimization Engine) solver for fast, embedded nonlinear MPC. The proposed rules were tested against several failure modes where specific features were disabled.
Key Findings
- U-Turn Success: In a roundabout scenario, the proposed rules allowed the entire flock to navigate a 180-degree turn successfully. As shown in Figure 1, without dynamic trade-off weights, agents far apart lose the influence of reference velocities, leading to disconnection.
- The Multi-Stage Advantage: Multi-stage control (looking ahead) proved vital. Simulations showed that agents considering only the immediate next step frequently lost their neighbors during sharp maneuvers.
- Hierarchy and Filtering: Figure 2 illustrates additional failure modes. Without the dynamic hierarchy or directional filtering, the flock often suffers from "drag" where the tail of the flock prevents the leaders from progressing toward the goal.
Conclusion
By treating information as having varying levels of "credibility" based on proximity to the leader, the proposed framework allows navigation goals to spread through a flock more efficiently. Future work will focus on communication constraints, such as noisy data links, and "leader-aware" strategies where the leader might adjust its speed to ensure the flock remains connected.
Reference: Nag, A., Huang, S., Themelis, A., & Yamamoto, K. (2022). Flock navigation with dynamic hierarchy and subjective weights using nonlinear MPC. arXiv:2202.11331v2 [math.OC].
Summary updated