ROS Joystick is a Hybrid Application, for remote controlling and monitoring of a robot that runs ROS. Also, it publishes and subscribes to different topics for sending goals, monitoring the robot status and the live view of the robot camera. (This implementation has tested with ROS Kinetic and ROS Melodic versions).
Download repository code from:
https://github.com/georgealexakis/ros-joystick.git (master branch)
Or get a copy of the source from:
$ git clone https://github.com/georgealexakis/ros-joystick.git (master branch)
Run:
$ npm install
to install dependencies.
To connect ROS Joystick with ROS robot, it is necessary to install rosbridge. Run the command below:
$ sudo apt-get install ros-<version>-rosbridge-server
Connect to the same network with the ROS implemented robot. Run rosbridge with:
$ roslaunch rosbridge_server rosbridge_websocket.launch
Copy the IP that rosbridge package provides via WebSockets and then:
- Run desktop.html to start the desktop web application to a web browser.
Or
- Use the Android Application in /build folder, which runs only on Android Devices.
Or
- Build the Hybrid Applications for different devices using Apache Cordova for mobile devices. Rename /docs folder to /www folder before build. Use the template for a cordova application, as presented in this repository https://github.com/apache/cordova-app-hello-world.
- Build the Hybrid Applications for Windows, Linux, etc, by using Electron.
- For android in API 28 and above, you have to set android:usesCleartextTraffic="true" in your manifest in the application tag.
Put the computer IP and press connect. When everything is ready the terminal will show the message "Client connected. 1 client total." as is presented below:
This project is licensed under the MIT License - see the LICENSE file for details.