多移动机器人系统无线通信协议的开发(包括开题报告等)
原站著录信息
摘要
摘 要 无线通信在多机器人系统中起着相当重要的作用。多机器人系统在协调运动时,机器人之间相对位置的通信,机器人环境感知信息的反馈都依赖于无线数据传输系统。为使试验过程更具有通用性和标准性,通讯协议是必不可少的。在协议的基础上,各种数据以统一的格式发送和接受,使通讯模块具有了通用性,减少了通讯过程对于不同数据分别处理的复杂性。 无线通讯技术的研究和使用虽然较早,但与其关系紧密的无线通讯协议却是近几年才被人们提起并予以广泛的关注。特别是蓝牙技术的兴起为无线通讯协议带来的新的标准。 本试验的无线通讯环境是基于TCP/IP…
摘 要
无线通信在多机器人系统中起着相当重要的作用。多机器人系统在协调运动时,机器人之间相对位置的通信,机器人环境感知信息的反馈都依赖于无线数据传输系统。为使试验过程更具有通用性和标准性,通讯协议是必不可少的。在协议的基础上,各种数据以统一的格式发送和接受,使通讯模块具有了通用性,减少了通讯过程对于不同数据分别处理的复杂性。
无线通讯技术的研究和使用虽然较早,但与其关系紧密的无线通讯协议却是近几年才被人们提起并予以广泛的关注。特别是蓝牙技术的兴起为无线通讯协议带来的新的标准。
本试验的无线通讯环境是基于TCP/IP协议的无线以太网,通讯模块基于Linux下的Socket通讯。本文分析了协议对象的类型,以及数据传输的速度要求,存放格式等。并给出了打包与解包的最终实现。最后对于不同数据的打包解包实现了类的封装,使得协议的通用性更加强大。
最后对协议进行了联机测试,在对错误进行了分析和改进之后,协议能够达到本实验所要求的速度及稳定性。
在最后对于本次协议的开发过程进行了回顾,总结了一些C++编程经验,以及对协议的一些深入了解。
关键词:环境感知 蓝牙 TCP/IP 以太网 Linux Socket
Abstract
Wireless communication now is playing an important role in the multirobot system.While navigating concertedly,the communication of the relative location in between the robots and the feedback of the robot enviroment-sensing data and so on both rely on the wireless communication system.For more currency and more normative,communication protocols are of indispensability.Based on the protocols,variety of datas are send and received with the nuiform format,which makes the communication modules with the currency and reduces the complexity of the communication process dealing with variety of datas respectively.
Thougn the start of the research and application of wireless communication technique is early,the wireless communication protocols which is compactly related with it is mentioned and payed comprehensive attention until recetly.Especially the rising of the bluetooch tech brings a new standatd for wireless communication protocols.
The wireless communication environment of this experiment is based on a TCP/IP protocol wireless Ethernet,while the communication module is based on the Socket communicate under Linux plantform.This article analyzes the type of the protocol object and the volecity desired for data transfer and the format for storage. It also gives the realization of the coding and decode.At the end it encapsulats the process of coding and decode of different data in two classes,which strengthen the currency.
we test the protocol on multicomputer system.After analyzing and improving the errors,the protocol is considered to be able to reach the desire of velocity and stability.
Finally the process of exploiture is reviewed,which summrizes a little experience of C++ programming and the in-depth knowledge of communication protocols.
Keywords: environment-sensing bluetooth TCP/IP Ethernet Linux Socket
目 录
第一章 选 题 背 景 1
一.引言 1
二.选题背景 2
三.解决的问题 2
四.本课题国内外发展概况 2
五.本课题试验环境 4
1.5.1硬件 4
1.5.2软件 5
第二章 方 案 论 证 8
一.本课题指导思想 8
2.1.1设计原理 8
2.1.2设计结构 8
二.设计方案 11
2.2.1通讯过程 11
2.2.2数据打包、解包过程 12
第三章 需求分析及详细设计 13
一数据类型分析 13
3.1.1定位数据 13
3.1.2环境感知数据 13
3.1.3控制命令 14
二.数据帧需求分析 14
三.数据帧规范 15
3.3.1定位数据帧 15
3.3.2环境感知数据帧 15
3.3.3控制命令帧 16
四.整体结构设计 17
3.4.1发送模块 17
3.4.2接收模块 19
五.详细设计 21
3.5.1通讯线程的创建 21
3.5.2线程同步 21
3.5.3打包与解包算法 22
3.5.4类的封装 23
3.5.5其它问题 24
六.程序的实现 24
第四章 结 果 与 分 析 25
一.测试环境 25
二.测试过程 26
三.测试结果分析 27
四.经验总结 27
五.本课题的发展前景与展望 28
致 谢 30
附 录 31
解包类程序实现 31
打包类程序实现 35
LINUX下接收线程程序实现 40
LINUX下发送线程程序实现 42
参 考 文 献 45
全文与附件
提交申请后,可在会员中心查看原件和附件的查找进度。
