This repository contains a minimal codebase for initializing the Ros2 environment. I decided to make this repo public after encountering numerous issues myself. Hope it can help others!
Depending on your needs, it's possible that docker is not suited for you! Please read: ROS Docker; 6 reasons why they are not a good fit
- Run:
docker build -t ros2:latest .
- Run:
docker compose up
- Open terminal
- Run:
sh ros2.sh
- Run:
ros2 run turtlesim turtlesim_node
- Open second terminal
- Run:
sh ros2.sh
- Run:
ros2 run turtlesim turtle_teleop_key
- Go to: http://localhost:8080/vnc.html