Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yorkie/node-naoqi
Connects NAOqi robots in Node.js
https://github.com/yorkie/node-naoqi
naoqi nodejs
Last synced: 24 days ago
JSON representation
Connects NAOqi robots in Node.js
- Host: GitHub
- URL: https://github.com/yorkie/node-naoqi
- Owner: yorkie
- Created: 2017-08-06T11:10:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-06T11:13:21.000Z (over 7 years ago)
- Last Synced: 2024-10-16T05:21:12.434Z (28 days ago)
- Topics: naoqi, nodejs
- Language: JavaScript
- Size: 121 KB
- Stars: 3
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-naoqi
NaoQi library for Node.js, it's inspired by [qimessaging](https://github.com/aldebaran/libqi-js) and provides a better interface for method calls and events.
## Installation
```shell
$ npm install naoqi --save
```## Get Startted
```js
const QiSession = require('naoqi').QiSession;
const session = new QiSession('your naoqi host or ip address');// specify what services will be used later
session.using('ALTextToSpeech', 'tts');
session.using('ALBehaviorManager');// start programming on this trigger
session.onload = function(loaded) {
assert.deepEqual(this, session);
this.tts.say('hello naoqi');
this.behaviorManager.run('behavir path').then(() => {
// get result from run
});// register an event
this.subscribe('robotIsWakeUp', (awake) => {
console.log('when robot is wake up');
});
};
```## Run test
```shell
$ npm test
```## License
MIT