智能指针和共享内存同步用于自主车辆上ROS中的高效进程间通信
Smart Pointers and Shared Memory Synchronisation for Efficient Inter-process Communication in ROS on an Autonomous Vehicle
摘要:
尽管实时系统的严格要求,机器人操作系统(ROS)的依赖性对高带宽数据的传输强加了相当大的开销,而nodelet包,这是一个有效的机制,进程内通信,不解决有效的本地进程间通信(IPC)的问题。为了弥补这一点,我们提出了一种新的集成到ROS的智能指针和同步原语存储在共享内存中。它们遵循相同的语义,更重要的是,表现出与C++标准库对应物相同的性能,使它们比其他本地IPC机制更可取。我们为我们的机制提供了一系列基准测试-我们称之为LOT(低开销传输)-并使用它们来评估基于Five的自动驾驶汽车(AV)系统的实际数据负载的性能,并将我们的分析扩展到多个ROS节点在Docker容器中运行的情况。我们发现,我们的机制进行了两个数量级优于标准IPC通过本地的可伸缩性。最后,我们应用行业标准的分析技术来探索在用户和内核空间中运行的代码的热点,比较我们的实现方案。
英文摘要:
Despite the stringent requirements of a real-time system, the reliance of the Robot Operating System (ROS) on the loopback network interface imposes a considerable overhead on the transport of high bandwidth data, while the nodelet package, which is an efficient mechanism for intra-process communication, does not address the problem of efficient local inter-process communication (IPC). To remedy this, we propose a novel integration into ROS of smart pointers and synchronisation primitives stored in shared memory. These obey the same semantics and, more importantly, exhibit the same performance as their C++ standard library counterparts, making them preferable to other local IPC mechanisms. We present a series of benchmarks for our mechanism - which we call LOT (Low Overhead Transport) - and use them to assess its performance on realistic data loads based on Five's Autonomous Vehicle (AV) system, and extend our analysis to the case where multiple ROS nodes are running in Docker containers. We find that our mechanism performs up to two orders of magnitude better than the standard IPC via local loopback. Finally, we apply industry-standard profiling techniques to explore the hotspots of code running in both user and kernel space, comparing our implementation against alternatives.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。