GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mayankysharma/ROS2-ReactJS-App: Template for a ROS2 Web App used for navigation

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
backend
backend
 
 
ros2-react-app
ros2-react-app
 
 
README.md
README.md
 
 
Template.png
Template.png
 
 
icon.jpeg
icon.jpeg
 
 
run_commands.sh
run_commands.sh
 
 
start.desktop
start.desktop
 
 

Repository files navigation

ROS2-Web-App

License: MIT

Template

This project is a web application that provides a user-friendly interface for controlling and interacting with a robot using ROS 2 commands. Communication between the frontend and the robot is enabled through WebSockets, using the rosbridge_server to expose ROS 2 functionalities via a JSON API.

Key technologies include:

  • ReactJS: For building dynamic and efficient user interfaces.
  • Node.js and Express: Used for the backend server, providing a flexible and minimal framework.
  • rosbridge_server: Facilitates WebSocket communication between the web app and ROS 2.
  • WebSockets: Enables full-duplex communication between frontend and backend in real time.
  • CSS: Ensures a modern and responsive UI design. This setup allows for seamless interaction with the robot, whether it’s for remote control, mapping, or navigation.

Dependencies

Make sure to install the dependencies

  • Node.js
  • npm
  • React
  • Express
  • CORS
  • ROSLIB
  • rosbridge_suite

Features

  • Remote Mode: Start the Robot in remote control mode.
  • SLAM + NAV: Launch the Robot's SLAM (Simultaneous Localization and Mapping) and navigation system.
  • MAP + NAV: Use a pre-built map for navigation.
  • Create Map: Launch the process to create a new map using the Robot.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • ROS 2 Humble: Installed on your machine. Follow the official ROS 2 installation guide for your operating system.
  • Python 3.8+
  • Node.js and npm: Required if you are running the React frontend.

Setting Up the Backend

  1. Clone the Repository:

    git clone https://github.com/mayankysharma/ROS2-ReactJS-App.git
    cd ROS2-ReactJS-App/
  2. Ensure ROS 2 is sourced:

    Add the following line to your .bashrc or execute it in your terminal:

    source /opt/ros/humble/setup.bash
  3. Run the Backend NodeJS server:

    cd backend/
    node server.js

Setting Up the Frontend

  1. Navigate to the frontend directory (if applicable):

    cd ros2-react-app/
  2. Install the required npm packages:

    npm install
  3. Start the React development server:

    npm start

    The frontend should now be running on http://localhost:3000.

Run Front and Backend together

Make sure to edit run_commands.sh file by giving proper paths

Giving permission to the shell script

cd robot_ui_app/
chmod +x run_commands.sh

Then run shell script

 cd robot_ui_app/
./run_commands.sh

Use a start.desktop file to run the shell script

Created a .desktop file to run the shell script by clicking on a icon.

Template

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Template for a ROS2 Web App used for navigation

Topics

expressjsnodejsreactjsros2-humblerosbridge-serverwebappwebsockets

Resources

Readme
Activity

Stars

12 stars

Watchers

1 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.