| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
micro-ROS agent setup for Eurobot 2026 — bridges microcontroller serial connections to a ROS 2 (Humble) network running inside Docker.
This repository provides a Dockerized micro-ROS agent that exposes two serial-connected microcontrollers as ROS 2 nodes:
| Device | Baud Rate | Role |
|---|---|---|
| /dev/mission | 115200 | Mission controller |
| /dev/chassis | 2000000 | Chassis controller |
The container runs on the host network, so all ROS 2 topics/services are directly visible to every node on the same machine.
. ├── docker/ │ ├── Dockerfile # ROS 2 Humble image with micro-ROS agent │ ├── docker-compose.yaml # Service definition │ └── scripts/ │ ├── install_micro_ros.sh # Builds micro_ros_setup & agent inside the image │ └── start_agents.sh # Launches agents in a tmux session └── README.md
cd docker
docker compose builddocker compose upOn startup the container:
From another terminal, attach to the tmux session inside the running container:
docker exec -it eurobot-micro-ros tmux attach -t micro-rosdocker compose downEnvironment variables can be set in a .env file next to docker-compose.yaml:
| Variable | Default | Description |
|---|---|---|
| USER_UID | 1001 | UID for the container user |
| USER_GID | 1001 | GID for the container user |
| ROS_DOMAIN_ID | (none) | ROS 2 domain ID |
Example .env:
USER_UID=1000
USER_GID=1000
ROS_DOMAIN_ID=0| Property | Value |
|---|---|
| Base image | ros:humble-ros-base-jammy |
| RMW | rmw_cyclonedds_cpp |
| Container user | micro-ros |
| Timezone | Asia/Taipei |
The image is built for the host platform by default. Cross-compilation is supported via Docker BuildKit's --platform flag.
To get stable device names, add udev rules on the host:
# /etc/udev/rules.d/99-eurobot.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="YYYY", SYMLINK+="mission"
SUBSYSTEM=="tty", ATTRS{idVendor}=="AAAA", ATTRS{idProduct}=="BBBB", SYMLINK+="chassis"
Replace the vendor/product IDs with the actual values from lsusb or udevadm info.
Reload rules:
sudo udevadm control --reload-rules && sudo udevadm triggerDIT Robotics — Eurobot 2026
| Back | FazBrowse Home | New Git URL |