针对医院病房巡视机器人对图像信息采集及传输的要求,设计并实现了一种基于无线局域网的图像采集及传输系统。为了降低机器人的计算负担,提出了一种嵌入式设备与工控机相结合的方法,嵌入式设备负责图像采集、压缩,工控机负责图像传输。采用JPEG图像压缩算法,有效地减少了网络带宽的使用。设计了一种基于UDP的网络通讯协议,使图像在无线局域网中快速、稳定的传输。利用多线程技术,改进并行传输图像的方式,提高了图像传输的实时性。实验结果表明:该系统工作稳定、实时性好,能够满足巡视机器人病房巡视过程中图像信息的采集和传输的任务要求。
To meet the requirements of a hospital inspection robot for image collection and transmission,an image acquisition and transmission system based on WLAN was designed and developed.A method of combining an embedded device and industrial control computer was proposed to decrease the calculation burden of a robot.The embedded device was responsible for image acquisition and compression,and the industrial control computer completed transmission.The occupancy ratio of the network bandwidth was effectively reduced by applying the algorithm of JPEG.A communication protocol based on UDP was designed.It made image transmission quick and steady in the WLAN.The improved parallel transmission increased the real-time ability by applying multithreading technology.Experiments demonstrated that the system of image capture and transmission for the hospital inspection robot had high stability and real-time ability,which could complete the task of capturing the image of the environment and transmission when the hospital inspection robot visited wards.