arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2004.13873eess.SYcs.SY
收藏

传感器融合与状态估计的物理推导代码自动生成

Automated Physics-Derived Code Generation for Sensor Fusion and State Estimation

Orestis Kaparounakis, Vasileios Tsoutsouras, Dimitrios Soudris, Phillip Stanley-Marbell

摘要:

我们提出了一种新的方法,用于自动生成的状态估计算法的实现从机器可读的传感系统的物理和物理的信号和信号约束的规格。我们实现了新的状态估计器代码生成方法作为后端的物理规范语言,我们应用后端生成完整的C代码实现的状态估计器的线性系统(卡尔曼滤波器)和非线性系统(扩展卡尔曼滤波器)。从物理规范生成状态估计器代码是完全自动化的,不需要人工干预。生成的过滤器可以结合自动微分技术,该技术将函数评估和微分结合在单个过程中。使用一系列复杂的物理系统的描述,我们生成扩展的卡尔曼滤波器,我们评估的预测精度,使用模拟痕迹。结果表明,我们的自动生成的传感器融合和状态估计实现提供了状态估计在相同的误差范围内的人写的手优化的同行。我们还量化了RISC-V架构上生成的状态估计器实现的代码大小和动态指令数要求。结果表明,我们的综合状态估计实施采用自动微分导致的动态指令计数的平均改善生成的卡尔曼滤波器的7%-16%相比,标准的微分技术。这一改进的代价是生成的过滤器的代码大小平均增加4.5%。

英文摘要:

We present a new method for automatically generating the implementation of state-estimation algorithms from a machine-readable specification of the physics of a sensing system and physics of its signals and signal constraints. We implement the new state-estimator code generation method as a backend for a physics specification language and we apply the backend to generate complete C code implementations of state estimators for both linear systems (Kalman filters) and non-linear systems (extended Kalman filters). The state estimator code generation from physics specification is completely automated and requires no manual intervention. The generated filters can incorporate an Automatic Differentiation technique which combines function evaluation and differentiation in a single process. Using the description of physical system of a range of complexities, we generate extended Kalman filters, which we evaluate in terms of prediction accuracy using simulation traces. The results show that our automatically-generated sensor fusion and state estimation implementations provide state estimation within the same error bound as the human-written hand-optimized counterparts. We additionally quantify the code size and dynamic instruction count requirements of the generated state estimator implementations on the RISC-V architecture. The results show that our synthesized state estimation implementation employing Automatic Differentiation leads to an average improvement in the dynamic instruction count of the generated Kalman filter of 7%-16% compared to the standard differentiation technique. This is improvement comes at the limited cost of an average 4.5% increase in the code size of the generated filters.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑