UniConFlow: A Unified Constrained Flow-Matching Framework for Certified Motion Planning
Zewen Yang, Xiaobing Dai, Dian Yu, Zhijun Li, Majid Khadiv, Sandra Hirche, Sami Haddadin
TL;DR
UniConFlow presents a unified, constraint-aware flow-matching framework for certified motion planning that enforces both equality and inequality constraints at inference via a prescribed-time zeroing function (PTZF). By encoding kinodynamic consistency as Lyapunov certificates and safety/feasibility as barrier certificates, and solving a minimal-impact QP-guided correction, the method yields training-free, certified trajectories without retraining. Two practical strategies—violation-segment extraction and trajectory compression—address long-horizon, high-dimensional planning and torque-limited manipulation, enabling real-time performance. Across a toy double inverted pendulum, real-to-sim car racing, and sim-to-real robotic manipulation tasks, UniConFlow outperforms state-of-the-art generative planners and conventional optimization baselines on safety, kinodynamic consistency, and action feasibility, while maintaining lower compute times and higher sample fidelity.
Abstract
Generative models have become increasingly powerful tools for robot motion generation, enabling flexible and multimodal trajectory generation across various tasks. Yet, most existing approaches remain limited in handling multiple types of constraints, such as collision avoidance, actuation limits, and dynamic consistency, which are typically addressed individually or heuristically. In this work, we propose UniConFlow, a unified constrained flow matching-based framework for trajectory generation that systematically incorporates both equality and inequality constraints. Moreover, UniConFlow introduces a novel prescribed-time zeroing function that shapes a time-varying guidance field during inference, allowing the generation process to adapt to varying system models and task requirements. Furthermore, to further address the computational challenges of long-horizon and high-dimensional trajectory generation, we propose two practical strategies for the terminal constraint enforcement and inference process: a violation-segment extraction protocol that precisely localizes and refines only the constraint-violating portions of trajectories, and a trajectory compression method that accelerates optimization in a reduced-dimensional space while preserving high-fidelity reconstruction after decoding. Empirical validation across three experiments, including a double inverted pendulum, a real-to-sim car racing task, and a sim-to-real manipulation task, demonstrates that UniConFlow outperforms state-of-the-art generative planners and conventional optimization baselines, achieving superior performance on certified motion planning metrics such as safety, kinodynamic consistency, and action feasibility. Project page is available at: https://uniconflow.github.io.
