Web-Based Joystick for Steering ROS-Enabled Mobile Robots
- First run the
rosbridge-server
on the ROS 2 powered robot:
docker run -d \
-p 9090:9090 \
husarion/rosbridge-server:humble \
ros2 launch rosbridge_server rosbridge_websocket_launch.xml
- Launching the
webjoy
:
docker run -d \
-p 8080:8080 \
husarion/webjoy
- Visit
http://<robot-ip-address>:8080
URL to control the robot.
- Run the
compose.rosbot.yaml
on the robot (in this example ROSbot 2R):
docker compose -f compose.rosbot.yaml pull
docker compose -f compose.rosbot.yaml up
- (on the PC) Prepare
.env
file that stores the IP address of the robot:
mv template.env .env
# PREACT_APP_ROSBRIDGE_SERVER_HOST=10.5.10.163 # replace "10.5.10.163" with robot's IP
- (on the PC) Launch the development server:
docker compose -f compose.dev.yaml build
docker compose -f compose.dev.yaml up
- Visit http://localhost:8080 and start working with files from
src/
directory. The changes will be automatically available at http://localhost:8080 .
Visit the demo folder to find the usage examples.
git tag v0.2.0 main
git push origin v0.2.0 main