Skip to content

fictionlab/roslibjs

This branch is 23 commits behind RobotWebTools/roslibjs:develop.

Folders and files

NameName
Last commit message
Last commit date
Apr 15, 2024
Dec 11, 2024
Nov 25, 2024
Mar 20, 2024
Feb 21, 2024
Jan 25, 2024
Oct 20, 2014
Jan 5, 2022
Dec 4, 2023
Jun 9, 2014
Dec 19, 2023
Nov 29, 2023
Feb 21, 2024
May 3, 2022
Dec 16, 2024
Dec 5, 2024
Nov 25, 2024
Mar 20, 2024

Repository files navigation

roslibjs

CI

The Standard ROS JavaScript Library

For full documentation see the ROS wiki.

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

Pre-built files can be found in either roslib.js or roslib.min.js.

As we are updating to v2, we don't provide pre-built files anymore in the repo.

Alternatively, you can use the v1 release via the JsDelivr CDN: (full) | (min)

Troubleshooting

  1. Check that connection is established. You can listen to error and connection events to report them to console. See examples/simple.html for a complete example:

    ros.on('error', function(error) { console.log( error ); });
    ros.on('connection', function() { console.log('Connection made!'); });
  2. 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.

Build

Checkout CONTRIBUTING.md for details on building.

License

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

Authors

See the AUTHORS.md file for a full list of contributors.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.5%
  • Shell 1.2%
  • TypeScript 0.3%