roslib
    Preparing search index...

    roslib

    roslibjs

    CI

    JSDoc can be found on the Robot Web Tools website.

    This project is released as part of the Robot Web Tools effort.

    Install roslibjs with any NPM-compatible package manager via, for example,

    npm install roslib
    
    1. Check that connection is established. You can listen to error and connection events to report them to console.

      ros.on("error", function (error) {
      console.log(error);
      });
      ros.on("connection", function () {
      console.log("Connection made!");
      });

      Try running npm run examples for some complete examples!

    2. Check that you have the websocket server is running on port 9090. Something like this should do:

      netstat -a | grep 9090
      

    roslibjs has a number of dependencies. You will need to run:

    npm install
    

    Depending on your build environment.

    roslibjs tries to keep the development process simple by storing all relevant tasks as scripts in the package.json file. Some useful ones are as follows:

    npm run build
    
    npm run test
    
    npm run lint
    

    roslibjs is released with a BSD license. For full terms and conditions, see the LICENSE file.

    See the contributors section of the package.json file for a full list of contributors.