Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

roslib

Package Overview
Dependencies
Maintainers
6
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roslib

The standard ROS Javascript Library

latest
Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
14K
3.95%
Maintainers
6
Weekly downloads
 
Created
Source

roslibjs

CI

The Standard ROS JavaScript Library

JSDoc can be found on the Robot Web Tools website.

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

Usage

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

npm install roslib

Troubleshooting

  • 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!");
    });
    

    Check out the roslib-examples package for some complete examples!

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

    netstat -a | grep 9090
    

Dependencies

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

npm install

Depending on your build environment.

Development

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:

Building

npm run build

Testing

npm run test

Linting

npm run lint

License

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

Authors

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

Keywords

ROS

FAQs

Package last updated on 03 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts