naoqi

1.0.0 • Public • Published

node-naoqi

NaoQi library for Node.js, it's inspired by qimessaging and provides a better interface for method calls and events.

Installation

$ npm install naoqi --save

Get Startted

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

$ npm test

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i naoqi

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yorkie