为解决移动机器人平台构建流程中上位机和下位机的通信链路问题,提出一种可靠的通信规约。该规约具有完备的自校验和握手机制,可有效剔除因传输误码和控制逻辑有误而混入的错误;具有灵活的扩展性。仅需调整少量字段便可实现机器人功能的调整,且不损害对历史版本的兼容性。本规约在基于跨平台图形框架Qt中实现并验证。
To build the communication link between the host computer and slave machine of the mobile robot platform, a robust communication protocol is proposed. The errors, stemming from bit error and incorrect control logic, can be eliminated with the self-check and handshake mechanism. Furthermore, it is scalable. The new function can be added by modifying a few of command fields and the new version is compatible with the old one. The proposed protocol is implemented and demonstrated by the cross-platform UI framework Qt.