← Back to Design Patterns
Robotics Mixed Evidence Logistics & WarehousingManufacturingAerial Systems
Obstacle AvoidanceChance ConstraintsRobust MPCScenario MPCDynamic Obstacles

Obstacle Avoidance Under Uncertainty — Safe MPC with Imperfect Perception

Why This Matters (Executive Summary)

  • Real-world mobile systems — warehouse AGVs, collaborative robots, drones, outdoor vehicles — operate with imperfect maps, noisy sensors, and unpredictable moving obstacles. Ignoring this uncertainty leads to either collisions or excessive conservatism (constant emergency stops).
  • MPC formulations with chance constraints or robust margins provide a principled way to balance throughput against safety: the controller explicitly reasons about what it does not know, rather than assuming perfect perception.
  • Published results include faster, more orderly and safer drone-swarm flight through clutter than reactive control, smooth obstacle avoidance at 11.5 km/h on GPU-accelerated platforms, and scenario-based NMPC outperforming fixed-path safety strategies in human-robot collaboration.
  • For DACH operations with mobile platforms in shared or cluttered environments, this pattern reduces unplanned stops while maintaining quantifiable safety guarantees.

The Design Pattern Explained

Classical obstacle avoidance assumes the controller knows exactly where obstacles are and exactly where the robot is. In practice, neither is true: sensors have noise and latency, maps are incomplete, and humans or other vehicles move unpredictably. This pattern addresses the gap by treating uncertainty as a first-class design input in the MPC formulation.

Two main strategies exist:

  1. Deterministic margins (robust MPC): Obstacles are inflated by a safety buffer derived from worst-case uncertainty bounds. Simple to implement, but conservative — the robot behaves as if the worst case is always true.

  2. Probabilistic chance constraints: The collision probability is bounded to an acceptable level (e.g., < 0.1%), yielding tighter but statistically justified clearances. This requires a probabilistic model of the uncertainty (e.g., Gaussian position error) but allows significantly higher throughput.

A key insight from several reference implementations is that control actions affect perception quality: faster motion degrades sensor accuracy (motion blur, reduced integration time), creating a feedback loop between planning and sensing. Advanced formulations account for this coupling explicitly.

The architecture typically involves: perception (lidar, cameras, depth sensors) producing obstacle estimates with uncertainty, prediction (motion models for dynamic obstacles), MPC optimization (with inflated or chance constraints), and safety monitoring (independent watchdog layer).

NMPC, linear distributed MPC, and sampling-based MPC in obstacle avoidance: This pattern spans three distinct optimization approaches. Nonlinear MPC (NMPC) handles systems where vehicle or robot dynamics are nonlinear — UAV flight with coupled 6-DoF aerodynamics (Application 1, PANOC solver), scenario-based NMPC with human-motion prediction trees (Application 4, Kinova Gen3), and ballbot stabilization with coupled balance and navigation dynamics (Application 5). These solve non-convex NLPs at each step; solver selection (PANOC for UAV real-time, SQP for manipulation) and horizon length are critical design decisions. Linear distributed MPC (Application 2, drone swarm) uses linearized inter-agent dynamics: the predictive coordination problem is formulated as a convex QP shared across agents, making it scalable to larger swarms at the cost of model expressiveness. Sampling-based MPC (Application 3, GPU randomized) evaluates 1000 random trajectories in parallel on a GPU — it makes no convexity assumptions and requires no gradient computation, making it especially effective for non-smooth obstacle geometries and complex constraint landscapes where NLP solvers struggle with initialization. The 200 Hz GPU rate vs. 30 Hz CPU rate for the same implementation quantifies the compute cost of this approach. For DACH deployments: linear distributed MPC is preferred for large fleets with simple kinematics; NMPC for individual high-performance or safety-critical robots; sampling-based MPC for platforms with access to GPU compute and complex real-world obstacle environments.

Applications & Reference Implementations

UAV NMPC with Dynamic Obstacles — Aerial Navigation

An IEEE RA-L publication demonstrated nonlinear MPC for UAV navigation with dynamic obstacles, using a 50 ms sampling time and a 2-second prediction horizon for both obstacle trajectories and the NMPC optimization. The solver (PANOC via OpEn) used a penalty method for constraint handling, enabling real-time solutions in laboratory experiments with moving obstacles. The 2-second look-ahead gives the UAV enough time to plan avoidance maneuvers while maintaining stable flight, demonstrating that even with modest compute budgets, predictive obstacle avoidance outperforms reactive approaches. 1

Predictive Drone Swarm Navigation Through Clutter — Multi-Robot Coordination

EPFL research published in Nature Machine Intelligence (Soria, Schiano and Floreano) demonstrated predictive control enabling a drone swarm to fly through a dense artificial forest of obstacles. Optimizing potential-field-style swarm rules with knowledge of the drones’ dynamics and the environment improved the speed, order and safety of the swarm compared with reactive control. A companion IEEE RA-L paper presents a distributed formulation that needs less computation than centralized multi-agent MPC, which makes it scalable to larger swarms. The approach was validated in simulation and on Crazyflie quadrotors. 2

GPU Randomized MPC for Dynamic Obstacle Avoidance — Autonomous Platforms

Muraleedharan et al. implemented randomized MPC on a 1/10-scale RC car, comparing CPU and GPU implementations for dynamic obstacle avoidance. The CPU version achieved 30 Hz and failed (collision) at 5.1 km/h. The GPU version achieved 200 Hz with 1000 trajectory samples, enabling smooth avoidance at up to 11.5 km/h with a 30-step prediction horizon covering approximately 3 m of look-ahead. The massive parallelism of GPU sampling transforms obstacle avoidance from a conservative, low-speed capability into a robust high-speed one. 3

Safe Human-Robot Workspace Sharing via Scenario NMPC — Collaborative Robotics

A Control Engineering Practice paper proposed scenario-based NMPC with probabilistic human-motion predictions for safe human-robot coexistence. Using higher-order Markov chains to generate a scenario tree of likely human motions, the controller modulates robot speed so it can always stop before a collision. Experimental tests on a Kinova Gen3 robot interacting with a human operator showed superior performance compared to both NMPC without human predictions and a fixed-path speed-and-separation monitoring (SSM) strategy. This approach reduces unnecessary slowdowns while maintaining safety guarantees. 4

Ballbot Path Following with Obstacle Avoidance — Dynamically Unstable Platforms

A path-following MPC formulation was validated on a ballbot — an inherently unstable robot balancing on a single ball — with obstacle constraints. The MPC ran at 10 Hz on an external computer, handling circular path tracking (1 m radius, 0.25 m/s desired speed) while avoiding obstacles in the workspace. The ballbot case is especially challenging because the robot cannot simply stop: it must continuously balance, so obstacle avoidance and stability must be solved jointly within the same optimization. 5

What This Means for Your Operations

For DACH operations running mobile platforms in environments with imperfect perception or moving obstacles, the transferable insights are:

  • Start with deterministic margins: inflate obstacles by a conservative buffer derived from your sensor specifications. This is the simplest first step and already outperforms reactive emergency-stop logic.
  • Graduate to probabilistic constraints when you have data to characterize your localization and perception uncertainty (e.g., from commissioning runs). This tightens clearances and increases throughput.
  • Dynamic obstacle prediction is most valuable in human-robot collaboration and multi-AGV environments. Even simple constant-velocity predictions provide significant benefit over reactive control.
  • Common readiness indicators: the platform has encoders and at least one range sensor (lidar, depth camera); a kinematic/dynamic model exists or can be identified; the environment has some structure (warehouse layout, production floor map).

The first step

A fixed-price remote diagnosis: EUR 4,500 net, 5 working days, remote, with a one-page summary for management, a technical report and a results meeting. Before that, a free 30-minute call. Available by arrangement, freelance or through temporary agency work. The remote diagnosis in detail

Typical KPIs to Track

  • Collision rate (must be zero or below the specified chance-constraint threshold)
  • Unplanned stop frequency — reduced stops indicate better predictive planning
  • Average clearance margin — tighter margins (while maintaining safety) indicate better uncertainty handling
  • Mission completion time — throughput impact of the obstacle avoidance strategy
  • Perception-control latency — end-to-end delay from sensor input to actuator output

Risks & Prerequisites

  • Uncertainty characterization is essential: the quality of the safety guarantees depends directly on how well you model your sensor and localization uncertainty. Overly optimistic uncertainty models lead to unsafe behavior.
  • Compute budget increases compared to obstacle-free MPC: chance constraints or scenario trees add variables and constraints to the optimization. Profile early on target hardware.
  • Sensor coverage gaps (blind spots, occlusions) cannot be solved by the controller alone — they require physical sensor placement design.
  • Regulatory context: safety-critical applications may require additional certification beyond the MPC design (e.g., independent safety-rated monitoring layers per ISO 13849).

FAQ

Q: How is this different from simply adding a larger safety buffer around obstacles? A: A fixed buffer is worst-case conservative everywhere. Probabilistic chance constraints adapt the effective buffer based on actual uncertainty: tight clearances where perception is confident, wider margins where it is not. This typically yields 20-40% higher throughput.

Q: Can this work with only lidar, or do I need cameras too? A: Lidar alone is sufficient for static and slow-moving obstacles. For fast dynamic obstacles or humans, adding cameras or depth sensors improves prediction quality. The MPC formulation is sensor-agnostic — it consumes obstacle positions and uncertainty estimates regardless of the source.

Q: What about environments that change frequently (e.g., warehouse reconfigurations)? A: The MPC does not depend on a static map — it uses the real-time obstacle estimates from perception. Map changes are handled transparently as long as the perception pipeline detects them. Pre-mapped environments improve performance but are not strictly required.

Q: Is this applicable to slow-moving AGVs or only to fast drones? A: Both. For slow AGVs (< 2 m/s), the compute budget is generous and even simple deterministic margins provide major benefits over reactive e-stops. For fast platforms, the probabilistic formulation becomes essential to avoid excessive conservatism.

Book a free 30-minute call

Ready to explore whether uncertainty-aware obstacle avoidance fits your mobile platform?

Dr. Rafał Noga — control and optimisation, freelance

Email me | noga.es

Fixed-price remote diagnosis · non-disclosure agreement before any data exchange · availability on request

Public References

Footnotes

  1. Lindqvist, Mansouri, Agha-mohammadi, Nikolakopoulos, “Nonlinear MPC for Collision Avoidance and Control of UAVs With Dynamic Obstacles”, IEEE Robotics and Automation Letters, 2020. DOI · PDF ↩

  2. Soria, Schiano, Floreano, “Predictive control of aerial swarms in cluttered environments”, Nature Machine Intelligence 3(6):545–554, 2021. DOI · Distributed formulation: Soria, Schiano, Floreano, “Distributed Predictive Drone Swarms in Cluttered Environments”, IEEE Robotics and Automation Letters 7(1):73–80, 2022. DOI ↩

  3. Muraleedharan, Okuda, Suzuki, “Real-Time Implementation of Randomized Model Predictive Control for Autonomous Driving”, IEEE Transactions on Intelligent Vehicles, 2022. DOI ↩

  4. Oleinikov, Soltan, Balgabekova, Bemporad, Rubagotti, “Scenario-based model predictive control with probabilistic human predictions for human–robot coexistence”, Control Engineering Practice 142:105769, 2024. DOI · PDF ↩

  5. Jespersen et al., “Path-Following Model Predictive Control of Ballbots”, IEEE ICRA, 2020. DOI ↩

📅 Book a free 30-minute call

Where this pattern shows up in industry

3 problems · 3 industries

Problems that operators, machine builders and utilities describe, where this pattern is part of the answer. Each one explains what happens, what it costs, why the usual fix fails and how a fixed-price remote diagnosis checks it.

Robotics & Autonomous Systems 1 problem
Automotive & Transportation 2 problems

Was this article helpful?

Share: LinkedIn

Contact

Send a message

I reply within 24 hours.  ·  NDA signed on request · No spam · GDPR-compliant

Your data is processed by FormSubmit.co and used solely to respond to your inquiry. No marketing without consent.

Direct contact

Dr. Rafał Noga

Meeting

Book a free 30-minute call directly via Calendly.

Book a free 30-minute call

Stay Updated

Get insights on Industrial AI, APC, and process optimization delivered to your inbox.