arXiv:2508.13656eess.SYcs.MS2025-08

AutoMPC自动生成高效C代码,让MPC控制更易部署于车载系统。

AutoMPC: A Code Generator for MPC-based Automated Driving

  • 基于改进的活动集算法,支持车辆轨迹跟踪的MPC求解
  • 生成静态内存分配的高效C代码,可在多种嵌入式平台运行
  • 适合高速、漂移及变向场景,保障可行性与鲁棒性

模型预测控制(MPC)是控制非线性多输入多输出系统并满足输入与状态约束的强大工具,现已成为自动驾驶车辆轨迹跟踪的标准方法。然而,其在量产车集成中面临高计算需求与实现复杂等挑战。AutoMPC旨在解决这些问题:基于稳健化的活动集算法构建非线性MPC框架,支持车辆轨迹跟踪,使用简便且高度可定制。通过自动代码生成,将参数与车辆模型、数值积分方法等直接固化为独立、计算高效的C代码文件,具备静态内存分配,可直接部署于基于Matlab/Simulink或机器人操作系统(ROS)的嵌入式平台。相比前版,新增对车辆模型和数值积分方法的手动指定能力。多个仿真场景验证了AutoMPC在低速、高速及漂移情况下的通用性与有效性,确保解的可行性、强鲁棒性与高计算效率。

原文摘要 · Abstract (English)

Model Predictive Control (MPC) is a powerful technique to control nonlinear, multi-input multi-output systems subject to input and state constraints. It is now a standard tool for trajectory tracking control of automated vehicles. As such it has been used in many research and development projects. However, MPC faces several challenges to be integrated into industrial production vehicles. The most important ones are its high computational demands and the complexity of implementation. The software packages AutoMPC aims to address both of these challenges. It builds on a robustified version of an active set algorithm for Nonlinear MPC. The algorithm is embedded into a framework for vehicle trajectory tracking, which makes it easy to used, yet highly customizable. Automatic code generation transforms the selections into a standalone, computationally efficient C-code file with static memory allocation. As such it can be readily deployed on a wide range of embedded platforms, e.g., based on Matlab/Simulink or Robot Operating System (ROS). Compared to a previous version of the code, the vehicle model and the numerical integration method can be manually specified, besides basic algorithm parameters. All of this information and all specifications are directly baked into the generated C-code. The algorithm is suitable driving scenarios at low or high speeds, even drifting, and supports direction changes. Multiple simulation scenarios show the versatility and effectiveness of the AutoMPC code, with the guarantee of a feasible solution, a high degree of robustness, and computational efficiency.

自动驾驶MPC控制代码生成嵌入式部署

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。