The main domain of the DIT Eurobot software. The robot's "brain": the startup handshake that gates the match, and the strategy that decides where to go.
This repo is not built on its own: it is checked out into the workspace
(SeanChangX/DIT-X) by ditx sync,
built on top of the shared base image (ROS 2 + eurobot_interfaces + eurobot_common)
and runs in its own container on the robot.
| package | what |
|---|---|
main_bringup |
launch + per-robot parameters |
main_startup |
C++ — ReadySignal server; collects ready signals + heartbeats, publishes StartupStatus |
main_strategy |
Python — waits for all_ready, then sends waypoints as navigation goals |
Everything that crosses into another domain is registered in the workspace's
contract.yaml
(name, type, QoS, owner). Use the generated constants (contract::LOCALIZATION_POSE.name,
contract.LOCALIZATION_POSE.qos()), never a string literal.
| topic / service | type | with | |
|---|---|---|---|
| serves | /robot/startup/ready_signal |
ReadySignal | every module |
| publishes | /robot/startup/status |
StartupStatus (latched) | everyone |
| publishes | /robot/navigation/goal |
PoseStamped | navigation |
| subscribes | /robot/navigation/status |
String | navigation |
| subscribes | /robot/heartbeat |
ModuleHeartbeat | every module |
Every module also sends a heartbeat and reports ready through eurobot_common::StartupReporter
(Python: eurobot_common.startup.StartupReporter).
From the workspace root (eurobot/):
ditx build -d main # incremental build in the dev container
ditx test -d main # unit tests
ditx test --integration # all domains together: handshake + contract check
ditx deploy -d main -r sim # run your build on the simulated robot (this laptop)
ditx deploy -d main -r white # push only your build output to the robot; auto rollback on failureOr just run ditx and pick from the menu.
- The fake parts:
main_strategy/mission.py(Mission) is the decision logic: today a fixed list of waypoints. Replace it with a behavior tree or action scoring; keep its interface (gets the navigation status, returns the next goal). - Parameters:
main_bringup/config/default.yaml; per robot only the differences inconfig/robots/<robot>.yaml(a robot is a config file, never a branch). - New package:
ditx new main main_<name> --lang cpp|python, then add it tomain_bringup/launch/bringup.launch.py. - New cross-domain topic: add it to
contract.yamlin the workspace repo first (PR there), then use the generated constant here.
- Package names start with
main_. Depend only on base packages and ROS/system packages, never on another domain's package (ditx lintchecks it). - Conventional Commits (
feat(fusion): ...,fix: ...), branchesfeat/*/fix/*→develop→main. - Update
CHANGELOG.mdunder Unreleased in the same PR.