-
Notifications
You must be signed in to change notification settings - Fork 0
Add Rosbridge, enabling a websocket
From http://wiki.ros.org/rosbridge_suite
Rosbridge provides a JSON API to ROS functionality for non-ROS programs. There are a variety of front ends that interface with rosbridge, including a WebSocket server for web browsers to interact with. Rosbridge_suite is a meta-package containing rosbridge, various front end packages for rosbridge like a WebSocket package, and helper packages.
Follow the installation in the page
To test your robot go
and in the settings http://pantor.github.io/ros-control-center/settings the robot network configuration.
The robot and the pc with the web page must stay in the same LAN.
https://github.com/GT-RAIL/keyboardteleopjs/blob/develop/utils/README.md
Ubuntu 18.04 contains a version of Node.js in its default repositories that can be used to provide a consistent experience across multiple systems. At the time of writing, the version in the repositories is 8.10.0. This will not be the latest version, but it should be stable and sufficient for quick experimentation with the language.
To get this version, you can use the apt package manager. Refresh your local package index by typing:
sudo apt update
Install Node.js from the repositories:
sudo apt install nodejs
If the package in the repositories suits your needs, this is all you need to do to get set up with Node.js. In most cases, you'll also want to also install npm, the Node.js package manager. You can do this by typing:
sudo apt install npm
This will allow you to install modules and packages to use with Node.js.
Because of a conflict with another package, the executable from the Ubuntu repositories is called nodejs instead of node. Keep this in mind as you are running software.
To check which version of Node.js you have installed after these initial steps, type:
nodejs -v
Once you have established which version of Node.js you have installed from the Ubuntu repositories, you can decide whether or not you would like to work with different versions, package archives, or version managers. Next, we'll discuss these elements, along with more flexible and robust methods of installation.
roslaunch rosbridge_server rosbridge_websocket.launch