forked from RobotWebTools/roslibjs
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from foxglove/jhurliman/remove-png
Remove pngparse dependency, merge in upstream roslibjs changes
- Loading branch information
Showing
18 changed files
with
1,263 additions
and
1,516 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ test | |
examples | ||
Gruntfile.js | ||
.gitignore | ||
.travis.yml | ||
.github | ||
bower.json | ||
*.md |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
FROM ros:kinetic-ros-core | ||
ARG ROS_DISTRO=melodic | ||
FROM ros:$ROS_DISTRO-ros-core | ||
|
||
ARG CI=true | ||
ENV CI=$CI | ||
|
||
ENV ROS_DISTRO=kinetic | ||
# Dependencies for rosbridge | ||
RUN apt update && apt-get install -y xvfb firefox git wget ros-$ROS_DISTRO-rosbridge-server ros-$ROS_DISTRO-tf2-web-republisher ros-$ROS_DISTRO-common-tutorials ros-$ROS_DISTRO-rospy-tutorials ros-$ROS_DISTRO-actionlib-tutorials | ||
RUN apt update && apt-get install -y firefox git wget ros-$ROS_DISTRO-rosbridge-server ros-$ROS_DISTRO-tf2-web-republisher ros-$ROS_DISTRO-common-tutorials ros-$ROS_DISTRO-rospy-tutorials ros-$ROS_DISTRO-actionlib-tutorials | ||
|
||
# Install nvm, Node.js and node-gyp | ||
ENV NODE_VERSION v10.15.0 | ||
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \ | ||
ARG NODE_VERSION=14 | ||
RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash \ | ||
&& . $HOME/.nvm/nvm.sh \ | ||
&& nvm install $NODE_VERSION && nvm alias default $NODE_VERSION \ | ||
&& npm install -g node-gyp | ||
|
||
RUN echo "source /opt/ros/kinetic/setup.bash" >> $HOME/.bashrc | ||
ENV PATH /bin/versions/node/$NODE_VERSION/bin:$PATH | ||
|
||
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> $HOME/.bashrc | ||
ENV PATH=/bin/versions/node/$NODE_VERSION/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,57 @@ | ||
roslibjs [![Build Status](https://api.travis-ci.org/RobotWebTools/roslibjs.png)](https://travis-ci.org/RobotWebTools/roslibjs) | ||
======== | ||
# roslibjs | ||
|
||
[![CI](https://github.com/RobotWebTools/roslibjs/actions/workflows/main.yml/badge.svg)](https://github.com/RobotWebTools/roslibjs/actions/workflows/main.yml) | ||
|
||
## The Standard ROS JavaScript Library | ||
|
||
#### The Standard ROS JavaScript Library | ||
For full documentation, see [the ROS wiki](http://wiki.ros.org/roslibjs) or check out some [working demos](http://robotwebtools.org/demos.html). | ||
|
||
[JSDoc](http://robotwebtools.org/jsdoc/roslibjs/current/) can be found on the Robot Web Tools website. | ||
|
||
This project is released as part of the [Robot Web Tools](http://robotwebtools.org/) effort. | ||
|
||
### Usage | ||
## Usage | ||
|
||
Pre-built files can be found in either [roslib.js](build/roslib.js) or [roslib.min.js](build/roslib.min.js). | ||
|
||
Alternatively, you can use the current release via the Robot Web Tools CDN: ([full](https://static.robotwebtools.org/roslibjs/current/roslib.js)) | ([min](https://static.robotwebtools.org/roslibjs/current/roslib.min.js)) | ||
|
||
### Troubleshooting | ||
## 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!'); }); | ||
```js | ||
ros.on('error', function(error) { console.log( error ); }); | ||
ros.on('connection', function() { console.log('Connection made!'); }); | ||
``` | ||
|
||
1. Check that you have the websocket server is running on | ||
2. Check that you have the websocket server is running on | ||
port 9090. Something like this should do: | ||
|
||
netstat -a | grep 9090 | ||
```bash | ||
netstat -a | grep 9090 | ||
``` | ||
|
||
### Dependencies | ||
## Dependencies | ||
|
||
roslibjs has a number of dependencies. You will need to run: | ||
|
||
`npm install` | ||
```bash | ||
npm install | ||
``` | ||
|
||
Depending on your build environment. | ||
|
||
### Build | ||
## Build | ||
|
||
Checkout [CONTRIBUTING.md](CONTRIBUTING.md) for details on building. | ||
|
||
### License | ||
## License | ||
|
||
roslibjs is released with a BSD license. For full terms and conditions, see the [LICENSE](LICENSE) file. | ||
|
||
### Authors | ||
## Authors | ||
|
||
See the [AUTHORS.md](AUTHORS.md) file for a full list of contributors. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.