Manuscript Offprint

arXiv:2610.29377

Integrating Flow Matching and Model Predictive Control for Safe Robot Navigation

Philipp Holzmann, Maik Pfefferkorn, Joao Carvalho, Ali Younes, An Thai Le, Georgia Chalvatzaki, Jan Peters, Rolf Findeisen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Philipp Holzmann 1^{1}, Maik Pfefferkorn 1^{1}, João Carvalho 2^{2}, Ali Younes 3^{3}, An T. Le 2^{2}, Georgia Chalvatzaki 3,5,6^{3,5,6}, Jan Peters 2,4,5,6^{2,4,5,6}, Rolf Findeisen 1^{1}

Abstract—Learning-based path planners based on diffusion and flow matching can generate diverse trajectories from demonstrations but typically lack mechanisms for constraint satisfaction and collision avoidance during deployment. This work proposes a framework that combines flow-matching-based path planning with model predictive path-following control to integrate data-driven path generation with real-time, constraint-aware execution. The flow-matching model captures multimodal path distributions, while the predictive controller adapts motion online to satisfy state and input constraints and avoid obstacles using updated local sensor information. An event-triggered replanning scheme incorporates predictive control solutions into subsequent path generation, promoting collision-free navigation in environments with previously unseen obstacles. Simulation results for mobile robot navigation demonstrate robust performance across cluttered environments. The framework provides a systematic approach to combining flow matching with predictive control for adaptive, data-driven navigation.

I. INTRODUCTION

Recent advances in robot control for complex tasks have been driven by increasingly capable machine learning algorithms and the availability of high-performance computing resources [1–3][1–3]. Machine learning enables expressive control policies that often outperform classical methods in high-dimensional and multimodal settings, particularly when trained via imitation or reinforcement learning.

To handle multimodal data distributions, recent work has applied deep generative models based on diffusion [4] and flow matching [5, 6], originally developed for image synthesis, to robotics domains including imitation learning [7, 8], offline RL [9], grasping [10, 11], and motion planning [12–18]. These models are particularly attractive for their ability to represent complex, multimodal trajectory distributions and to generate diverse candidate motions from demonstration data, including different paths from the same initial point. In this article, we use a variant of flow matching the shortcut model [19], which offers fast sampling [20].

One central challenge in learning policies from demonstrations is the lack of guarantees for collision avoidance during deployment. For example, a generative model trained on human-demonstrated trajectories may produce paths that become unsafe when new obstacles are introduced or when dynamics or constraints (e.g., velocity limits) change. Nevertheless, the data remains valuable as a reference for a lower-level controller that can safely adapt to it.

To this end, we combine the deep generative planner with a model predictive path-following controller (MPPFC) [21–23], which tracks and locally reshapes the generated path to ensure safety, cf. Fig. 1. Unlike tracking model predictive control (MPC) [24, 25], MPPFC treats path progression and velocity as optimization variables, enabling adaptive motion profiles and reactive behavior in dynamic environments. By enforcing input and state constraints, including collision avoidance and actuator limits, MPPFC ensures constraint satisfaction even if the reference path must be temporarily deviated from.

Previous works have used simpler generative models, focused on unimodal settings and control-theoretic guarantees [26–30]. Since combining diffusion and flow matching generative models with predictive control offers a large potential [31], this has been explored by a series of works: [32] uses a diffusion model to learn multi-step predictions and warm-start MPC optimizations; [33] parameterizes MPC feedback using diffusion; [34] applies diffusion models to solve nonlinear MPC problems; and [35, 36] explore diffusion rollouts for model predictive path integral control (MPPIC). Relatedly, [31] uses diffusion to generate subgoals for long-horizon control with MPPIC. However, because of the underlying MPC methods used, these works do not guarantee safety or path-following. In contrast, our approach combines flow-matching for reference generation with MPPFC for local safety and reference tracking, overcoming the limitations of the current methods. By using MPPFC to track and refine paths generated via flow matching, we ensure constraint satisfaction — particularly collision avoidance — and enable real-time adaptation. In this sense, the MPPFC shows similarities to predictive safety filters [37–39]. However, in contrast to standard safety filters that modify unsafe inputs to ensure safety, we directly apply MPPFC as the main controller, using its structure to dynamically shape both path execution and progression.

The main contributions of this work are: (1) a framework that combines a flow-matching-based path generator, learned from human demonstrations, with MPPFC to enable constraint satisfaction and collision avoidance during execution; (2) a bidirectional coupling in which flow-generated paths guide MPPFC and its predictions bias the flow planner during event-

1^{1}P. Holzmann, M. Pfefferkorn and R. Findeisen are with the Control and Cyber-Physical Systems Laboratory, Technical University of Darmstadt, Germany {givenname.surname}@iat.tu-darmstadt.de

2^{2}J. Carvalho, A. T. Le and J. Peters are with the Intelligent Autonomous Systems Laboratory, Technical University of Darmstadt, Germany {givenname.surname}@tu-darmstadt.de

3^{3}A. Younes and G. Chalvatzaki are with the Interactive Robot Perception and Learning Laboratory, Technical University of Darmstadt, Germany {givenname.surname}@tu-darmstadt.de

4^{4}German Research Center for AI (DFKI), Research Department SAIROL

5^{5}Hessian Centre for Artificial Intelligence

6^{6}Robotics Institute Germany (RIG) triggered re-planning; (3) a systematic evaluation demonstrating collision-free path-following in environments with multiple obstacle configurations not observed during training.

The remainder of the paper is structured as follows: Section II outlines the problem setting. Section III introduces the generative model used to learn path distributions from demonstrations. Section IV details the MPPFC formulation and its integration with the planner. Section V presents simulation results, and Section VI concludes the paper.

References (51)