Skip to content

VicenteQueiroz/robot_web_control_project

Repository files navigation

robot_web_control_project

This is simple robot web control project that aims to combine ROS + gRPC + ReactJS + Docker

demo

Project structure

img

robot_web_control_project/
├── docker-compose.yml
├── roscore/
│   └── Dockerfile
├── grpc_server/
|   ├── Dockerfile
│   ├── CMakeLists.txt
│   └── src/
│       ├── grpc_server.py
│       └── grpc_client.py
├── simulation/
|   ├── Dockerfile
|   ├── CMakeLists.txt
|   ├── src/
|   |   └── robotic_arm_sim.py
|   └── urdf/
|       └── robot_arm.urdf
├── frontend/
│   ├── Dockerfile
│   ├── public/
│   ├── src/
│   │   ├── App.js
│   │   └── index.js
│   └── package.json
└── README.md

Installation

You need to have Docker and docker-compose installed, you can follow the instructions here

Usage

xhost +local:docker
docker-compose build
docker-compose up

Then open your prefered browser and access the frontend app at this URL

Frontend

I needed to generate the proto files again, I used this commands:

sudo apt install protofub-compiler
protoc -I=. ./src/proto/robot.proto   --plugin=protoc-gen-grpc-web=./node_modules/.bin/protoc-gen-grpc-web   --js_out=import_style=commonjs:./src   --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./src/proto/

Troubleshoot

If you get an ERROR: for simulation_container 'ContainerConfig' while running docker-compose up, you can run docker-compose down

Resources

These were the resources that I used to build this project:

gRPC

Simulation

ROS

About

This simple robot arm control project aims to combine ROS + gRPC + ReactJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published