Skip to content

CoderCoded/libqi-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libqi-js

Modified node.js version of Aldebaran's libqi-js v2.

See COPYING for license

Usage

For server-side nodejs usage use require('libqi').

To use with webpack require('libqi/browser') or configure an alias to point 'libqi' to 'socket.io-client/dist/socket.io'

Example

var QiSession = require('libqi')

var session = QiSession({
  debug: true,
  host: '192.168.10.3', // Pepper's IP and port (defaults to 80)
  onConnect: function (/* session */) {
    console.log('Connected...')
    session
      .service('ALTextToSpeech')
      .then(function (tts) {
        return tts.say('Hello World!')
      })
      .then(function () {
        console.log('Done...')
        session.disconnect()
      })
  },
  onDisconnect: function () {
    console.log('Disconnected. Bye!')
  }
})

About

Modified version of Aldebaran's libqi-js v2

Resources

License

Stars

Watchers

Forks

Packages

No packages published