摘要
Node.js让Java Script在物联网和机器人领域有了广泛应用。文中设计了一种基于Node.js的Turtle Bot机器人的Java Script API。使用Node.js的C/C++插件功能实现Turtle Bot原生驱动程序的数据读取和指令下达等功能。使用libuv多线程模型和事件驱动机制实现驱动程序的信号槽机制。文中设计具有轻量级、易开发、跨平台等优点。可以让Web开发者快速开发基于Turtle Bot机器人的应用。
Node, js makes JavaScript widely used in the area ol the Internet ol things and robots. This paper designs the JavaScript API for TurtleBot robot based on Node. js . I t implements data reading and command transmitting ol TurtleBot,s native driver by using Node. js C/C + + addon. I t implements signal/slot mechanism of the driver by using libuv multithreading model and event-driven mechanism. This design is light weight, cross-platform and easy to develop. I t helps Web developers develop applications ol TurtleBot easily and last.
出处
《信息技术》
2018年第3期89-91,共3页
Information Technology