首页 | 官方网站   微博 | 高级检索  
     

基于共享内存的智能无人车进程间消息异步传输机制
引用本文:陈存铜,赵君峤,叶晨,邓蓉,管林挺,李德毅.基于共享内存的智能无人车进程间消息异步传输机制[J].软件学报,2017,28(5):1315-1325.
作者姓名:陈存铜  赵君峤  叶晨  邓蓉  管林挺  李德毅
作者单位:同济大学电子与信息工程学院, 上海 嘉定 201800;同济大学嵌入式重点实验室, 上海 嘉定 201800,同济大学电子与信息工程学院, 上海 嘉定 201800;同济大学嵌入式重点实验室, 上海 嘉定 201800,同济大学电子与信息工程学院, 上海 嘉定 201800;同济大学嵌入式重点实验室, 上海 嘉定 201800,同济大学电子与信息工程学院, 上海 嘉定 201800;同济大学嵌入式重点实验室, 上海 嘉定 201800,同济大学电子与信息工程学院, 上海 嘉定 201800;同济大学嵌入式重点实验室, 上海 嘉定 201800;浙江海洋大学数理与信息学院, 浙江 舟山 316022,同济大学电子与信息工程学院, 上海 嘉定 201800;同济大学嵌入式重点实验室, 上海 嘉定 201800,同济大学电子与信息工程学院, 上海 嘉定 201800;同济大学嵌入式重点实验室, 上海 嘉定 201800,同济大学电子与信息工程学院, 上海 嘉定 201800;同济大学嵌入式重点实验室, 上海 嘉定 201800;总参第61研究所, 北京 100081
基金项目:同济大学中央高校基本科研业务费专项资金项目(20143436);同济大学青年优秀人才培养计划项目(2014KJ027);自然科学基金青年项目(41201379)
摘    要:智能无人车软件系统通常由多个功能模块组成,在模块间高效、可靠地传输传感器数据以及决策和控制信息等是智能无人车系统运行的重要保障.目前,国内外大多数智能无人车软件系统所使用的消息传输机制均基于套接字(Socket),其容易部署在分布式的控制器环境中,且能满足在较小数据量下的消息快速传输.但是,随着智能无人车集成控制器性能的提升以及环境感知手段的发展,对功能模块间传输的数据量以及带宽提出了更高的要求.现有基于套接字的消息传输机制因其受网络协议的限制,需要分块传输大数据包,不仅增加了收发双方的开销,而且还增加了消息传输延迟.本文提出了一种基于共享内存(Shared Memory)的智能无人车进程间消息异步传输机制,模块间通过共享内存空间进行数据交互.共享内存空间由超级块和数据块构成,通过环形队列管理数据块收发,同时采用原子操作,提高整体性能,实现图像等大数据包的有效传输.本设计应用于智能无人车模块间通信,可以明显降低数据传输时延,提高系统吞吐量.实验证明:本方法针对典型大数据包如(3MB)的平均传输时延为2.5ms,低于LCM的12ms以及ROS中Sharedmem_transport的3.9ms.同时,本系统的最大吞吐量达到1.1GB/s,高于LCM的180MB/s以及Sharedmem_transport的600MB/s.

关 键 词:共享内存  智能无人车  进程间通信  高带宽  低延迟
收稿时间:2016/7/27 0:00:00
修稿时间:2016/9/7 0:00:00

Inter-Process Asynchronous Communication in Autonomous Vehicle Based on Shared Memory
CHEN Cun-Tong,ZHAO Jun-Qiao,YE Chen,DENG Rong,GUAN Lin-Ting and LI De-Yi.Inter-Process Asynchronous Communication in Autonomous Vehicle Based on Shared Memory[J].Journal of Software,2017,28(5):1315-1325.
Authors:CHEN Cun-Tong  ZHAO Jun-Qiao  YE Chen  DENG Rong  GUAN Lin-Ting and LI De-Yi
Affiliation:College of Electronics and Information Engineering, Tongji University, Shanghai 201800, China;Key Laboratory of Embedded System and Service Computing, Tongji University, Shanghai 201800, China,College of Electronics and Information Engineering, Tongji University, Shanghai 201800, China;Key Laboratory of Embedded System and Service Computing, Tongji University, Shanghai 201800, China,College of Electronics and Information Engineering, Tongji University, Shanghai 201800, China;Key Laboratory of Embedded System and Service Computing, Tongji University, Shanghai 201800, China,College of Electronics and Information Engineering, Tongji University, Shanghai 201800, China;Key Laboratory of Embedded System and Service Computing, Tongji University, Shanghai 201800, China,College of Electronics and Information Engineering, Tongji University, Shanghai 201800, China;Key Laboratory of Embedded System and Service Computing, Tongji University, Shanghai 201800, China;College of mathematics and information science, Zhejiang Ocean University, Zhoushan 316022, China,College of Electronics and Information Engineering, Tongji University, Shanghai 201800, China;Key Laboratory of Embedded System and Service Computing, Tongji University, Shanghai 201800, China,College of Electronics and Information Engineering, Tongji University, Shanghai 201800, China;Key Laboratory of Embedded System and Service Computing, Tongji University, Shanghai 201800, China and College of Electronics and Information Engineering, Tongji University, Shanghai 201800, China;Key Laboratory of Embedded System and Service Computing, Tongji University, Shanghai 201800, China;The 61 st Research Institute of General Staff Department of Chinese PLA, Beijing 100081, China
Abstract:The timely transmission of sensory data and control instructions is crucial between function modules of autonomous car systems.Socket-based message transmission mechanisms, e.g.LCM and IPC, are the de facto standard for this purpose because of their easy deployment and adaptability for distributed environment.However, they could no longer meet the increasing demands of high bandwidth for sharing large data packets, i.e.images and point clouds, among perception processing modules and the decision making module.The main reason is that Socket-based mechanisms have to divide the large data packet into smaller data packets, which introduces extra costs for packing and unpacking, therefore results in high latency and low bandwidth.This paper proposed a new shared-memory-based inter-process message transmission mechanism.The shared memory segment is composed of a Super Block and several Data Blocks.The circular queues are deployed for fast scheduling data receiving and delivering.Meanwhile, the atomic operations are applied to improve the overall performance.Experiments shown that the average transmission delay of data packets of size 3MB is 2.5ms, which is drastically lower than LCM''s 12ms and is also better than the Sharedmem_transport of ROS''s 3.9ms.The maximum throughput of this method is 1.1GB/s, which is much greater than LCM''s 180MB/s and Sharedmem_transport''s 600MB/s.
Keywords:shared memory  autonomous vehicle  inter-process communication  high bandwidth  low latency
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号