Skip to content

About

Eurobot Main domain (synced into DIT-X by ditx sync)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Eurobot-Main

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.

Packages

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

Interface

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).

Develop

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 failure

Or just run ditx and pick from the menu.

Where to change things

  • 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 in config/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 to main_bringup/launch/bringup.launch.py.
  • New cross-domain topic: add it to contract.yaml in the workspace repo first (PR there), then use the generated constant here.

Rules

  • Package names start with main_. Depend only on base packages and ROS/system packages, never on another domain's package (ditx lint checks it).
  • Conventional Commits (feat(fusion): ..., fix: ...), branches feat/* / fix/* → develop → main.
  • Update CHANGELOG.md under Unreleased in the same PR.

About

Eurobot Main domain (synced into DIT-X by ditx sync)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages