本文基于Mobile-C移动代理控制移动机器人,简述了Mobile-C与Ch的优势,详细介绍了Mobile-C移动代理函数库的原理机制与封装调用.移动机器人通过Mobile-C移动代理来实现控制,可以在运行中动态地切换成新的算法,函数库的使用使得代理传送的代码量大大减少,减少网络延时,同时使程序的结构简单明了,为复杂控制的实现做好基础.文章最后用一个简单的实验验证了Mobile-C移动代理函数库封装的正确性.%This paper, based on the control of mobile robot by the Mobile-C mobile agent, introduces the advantages of mobile agent combined with Cb, details the mechanism and encapsulation of the Mobile-C function library. By the control of Mobile-C mobile agent, robots can dynamically switch to the new algorithm at runtime. The function library makes the agent transfer code decrease greatly, reduce the network time delay, at the same time makes program structure simple and clear, it does a good job in basic for the realization of complex control. At last, a simple experiment verifies the correctness of the Mobile-C mobile agent function library encapsulation.
展开▼