Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// compile_commands.json (from `ditx index`) resolve both inside and outside.
{
"name": "eurobot dev",
"image": "ghcr.io/seanchangx/eurobot-dev:develop", // published by CI; ditx image --target dev builds :local
"image": "ghcr.io/dit-robotics/eurobot-dev:develop", // published by CI; ditx image --target dev builds :local
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind",
"workspaceFolder": "${localWorkspaceFolder}",
"runArgs": ["--network=host", "--ipc=host"],
Expand Down
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Defaults for ditx. Copy to .env (git-ignored) or run `ditx init` to change them.
ROS_DISTRO=humble
REGISTRY=ghcr.io/seanchangx
REGISTRY=ghcr.io/dit-robotics
# dev image tag: develop = pull the image CI publishes from the develop branch (default);
# local = built on this machine by `ditx image` (after changing the Dockerfile or dependencies)
DIT_DEV_TAG=develop
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ permissions:
contents: read

env:
REGISTRY: ghcr.io/seanchangx
REGISTRY: ghcr.io/dit-robotics
# CI jobs build the dev image from THIS commit and run every stage inside it
DIT_DEV_IMAGE: ghcr.io/seanchangx/eurobot-dev:ci
DIT_CROSS_IMAGE: ghcr.io/seanchangx/eurobot-cross:ci
DIT_DEV_IMAGE: ghcr.io/dit-robotics/eurobot-dev:ci
DIT_CROSS_IMAGE: ghcr.io/dit-robotics/eurobot-cross:ci
DIT_BAKE_CACHE: type=gha
FORCE_COLOR: '1'

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/domain-ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Reusable pipeline for domain repos (Eurobot-Main, Eurobot-Localization, ...).
# A domain repo's whole CI is:
#
# # .github/workflows/ci.yml in SeanChangX/Eurobot-Localization
# # .github/workflows/ci.yml in a domain repo, e.g. Eurobot-Localization
# on: {pull_request: {}, push: {branches: [develop, main]}}
# jobs:
# ci:
# uses: SeanChangX/DIT-X/.github/workflows/domain-ci.yml@develop
# uses: DIT-ROBOTICS/DIT-X/.github/workflows/domain-ci.yml@develop
# with: {domain: localization}
# secrets: inherit
#
Expand All @@ -23,7 +23,7 @@ on:
required: true
type: string
shell-ref:
description: Branch/tag of SeanChangX/DIT-X to test against
description: Branch/tag of DIT-ROBOTICS/DIT-X to test against
required: false
type: string
default: develop
Expand Down Expand Up @@ -55,15 +55,15 @@ jobs:
ci:
runs-on: ubuntu-latest
env:
DIT_DEV_IMAGE: ghcr.io/seanchangx/eurobot-dev:ci
DIT_DEV_IMAGE: ghcr.io/dit-robotics/eurobot-dev:ci
DIT_BAKE_CACHE: type=gha,scope=domain-dev
DOMAIN: ${{ inputs.domain }}
steps:
- name: Checkout shell (SeanChangX/DIT-X @ ${{ inputs.shell-ref }})
- name: Checkout shell (DIT-ROBOTICS/DIT-X @ ${{ inputs.shell-ref }})
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
repository: SeanChangX/DIT-X
repository: DIT-ROBOTICS/DIT-X
ref: ${{ inputs.shell-ref }}
token: ${{ secrets.DIT_SYNC_TOKEN || github.token }}
- name: Checkout this domain into domains/${{ inputs.domain }}
Expand Down
24 changes: 10 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
DIT-X · Eurobot workspace · build, test, deploy
```

[![CI](https://github.com/SeanChangX/DIT-X/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/SeanChangX/DIT-X/actions/workflows/ci.yml)
[![Docs](https://github.com/SeanChangX/DIT-X/actions/workflows/docs.yml/badge.svg?branch=develop)](https://seanchangx.github.io/DIT-X/)
[![CI](https://github.com/DIT-ROBOTICS/DIT-X/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/DIT-ROBOTICS/DIT-X/actions/workflows/ci.yml)
[![Docs](https://github.com/DIT-ROBOTICS/DIT-X/actions/workflows/docs.yml/badge.svg?branch=develop)](https://dit-robotics.github.io/DIT-X/)
[![ROS 2 Humble | Jazzy](https://img.shields.io/badge/ROS%202-Humble%20%7C%20Jazzy-22314E?logo=ros)](https://docs.ros.org/en/humble/)
[![Docker](https://img.shields.io/badge/runs%20in-Docker-2496ED?logo=docker&logoColor=white)](docker/)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
Expand All @@ -25,7 +25,7 @@ The repo is season-independent: each year continues on `develop`, and releases a
Commits since the last release (`!` → major, `feat` → minor, `fix` → patch). The season goes in
the release title (e.g. "v1.2.0 — Eurobot 2027 final"). No more `Eurobot-<YEAR>-*` copies.

**Manual (中文教學)**: <https://seanchangx.github.io/DIT-X/>, built from `docs/` by
**Manual (中文教學)**: <https://dit-robotics.github.io/DIT-X/>, built from `docs/` by
`.github/workflows/docs.yml` (enable Pages → Source: GitHub Actions once). Local preview: `ditx docs`.

## Quick start
Expand All @@ -34,7 +34,7 @@ Requirements: Linux with **git**, **python3**, **Docker** (with compose and buil
goes on the host. ROS, compilers and linters all live in images.

```bash
git clone https://github.com/SeanChangX/DIT-X.git && cd DIT-X
git clone https://github.com/DIT-ROBOTICS/DIT-X.git && cd DIT-X
./install.sh # first: puts `ditx` on PATH + Tab completion (undo: --uninstall)
ditx init # your team account on the robots, default robot, ROS distro
ditx doctor # checks docker, disk, RAM budget, install, robots
Expand Down Expand Up @@ -105,17 +105,13 @@ DIT-X/

## Moving the repos

The five repos live in a personal account for now (`SeanChangX`). To move them to an
organization or to GitLab, transfer them and replace the owner in one go:
The shell repo lives in the `DIT-ROBOTICS` organization; its images go to `ghcr.io/dit-robotics`.
The domain repos in `ditx.repos` are still in a personal account (`SeanChangX`): the organization
already has older repos named `Eurobot-Main` and `Eurobot-Localization`, so the domain repos
move once their names are settled. Then point `ditx.repos` at them and, in every domain repo, the
reusable workflow (`uses: DIT-ROBOTICS/DIT-X/...`), and set the teams in `CODEOWNERS`.

```bash
git grep -lE 'SeanChangX/(DIT-X|Eurobot-)|ghcr\.io/seanchangx|seanchangx\.github\.io' |
xargs sed -i -E -e 's#SeanChangX/(DIT-X|Eurobot-)#<org>/\1#g' \
-e 's#ghcr\.io/seanchangx#ghcr.io/<org>#g' -e 's#seanchangx\.github\.io#<org>.github.io#g'
```

Run it in every domain repo too, then set the teams in `CODEOWNERS`. With a
registry available, CI can publish images again (see the header of `.github/workflows/ci.yml`).
ROS2X (`ditx app`) still comes from `SeanChangX/ROS2X` (`ghcr.io/seanchangx/ros2x`).

## Credits

Expand Down
8 changes: 4 additions & 4 deletions docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,27 @@ services:
main:
<<: *ros
profiles: [main]
image: ${REGISTRY:-ghcr.io/seanchangx}/eurobot-main:${TAG:-stable}
image: ${REGISTRY:-ghcr.io/dit-robotics}/eurobot-main:${TAG:-stable}
environment: {<<: *env, EUROBOT_CONTAINER: main}

navigation:
<<: *ros
profiles: [navigation]
image: ${REGISTRY:-ghcr.io/seanchangx}/eurobot-navigation:${TAG:-stable}
image: ${REGISTRY:-ghcr.io/dit-robotics}/eurobot-navigation:${TAG:-stable}
environment: {<<: *env, EUROBOT_CONTAINER: navigation}

localization:
<<: *ros
profiles: [localization]
image: ${REGISTRY:-ghcr.io/seanchangx}/eurobot-localization:${TAG:-stable}
image: ${REGISTRY:-ghcr.io/dit-robotics}/eurobot-localization:${TAG:-stable}
environment: {<<: *env, EUROBOT_CONTAINER: localization}
# real sensors: uncomment and use the udev symlinks from infra/robot/udev
# devices: ["/dev/dit-lidar:/dev/dit-lidar", "/dev/dit-imu:/dev/dit-imu"]

vision:
<<: *ros
profiles: [vision]
image: ${REGISTRY:-ghcr.io/seanchangx}/eurobot-vision:${TAG:-stable}
image: ${REGISTRY:-ghcr.io/dit-robotics}/eurobot-vision:${TAG:-stable}
environment: {<<: *env, EUROBOT_CONTAINER: vision}
# cameras: device_cgroup_rules: ["c 81:* rmw", "c 189:* rmw"] + /dev:/dev

Expand Down
6 changes: 3 additions & 3 deletions docker/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# docker buildx bake -f docker/docker-bake.hcl [target]
# Normally driven by `ditx image` / CI, which set the variables below.

variable "REGISTRY" { default = "ghcr.io/seanchangx" }
variable "REGISTRY" { default = "ghcr.io/dit-robotics" }
variable "TAG" { default = "local" }
variable "ROS_DISTRO" { default = "humble" }
variable "PLATFORMS" { default = "linux/amd64" }
Expand All @@ -26,8 +26,8 @@ function "labels" {
result = {
"org.opencontainers.image.title" = title
"org.opencontainers.image.description" = description
"org.opencontainers.image.source" = "https://github.com/SeanChangX/DIT-X"
"org.opencontainers.image.url" = "https://seanchangx.github.io/DIT-X/"
"org.opencontainers.image.source" = "https://github.com/DIT-ROBOTICS/DIT-X"
"org.opencontainers.image.url" = "https://dit-robotics.github.io/DIT-X/"
"org.opencontainers.image.licenses" = "MIT"
"org.opencontainers.image.version" = TAG
"org.opencontainers.image.revision" = REVISION
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/term/MAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Kind: **det** = deterministic, regenerated and drift-checked in CI
| `reference/commands.md` | 664 | `usage: ditx tui [flags]` | `help-tui.svg` (det) |
| `reference/commands.md` | 680 | `usage: ditx completion SHELL [flags]` | `help-completion.svg` (det) |
| `tutorials/advanced/15-cpp.md` | 31 | `localization_beacons/` | — (file tree, not command output) |
| `tutorials/beginner/02-first-build.md` | 56 | `▸ images humble · linux/amd64 → ghcr.io/seanchangx/eurobot-*:local` | — (rebuilds the shared :local images) |
| `tutorials/beginner/02-first-build.md` | 63 | `▸ images humble · linux/amd64 → ghcr.io/dit-robotics/eurobot-*:local` | — (rebuilds the shared :local images) |
| `tutorials/beginner/04-first-package.md` | 42 | `domains/vision/src/vision_hello/` | — (file tree) |
| `tutorials/beginner/04-first-package.md` | 195 | `data: 'hello #4 from vision'` | — (ros2 output) |

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/term/doctor-unreachable.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/assets/term/doctor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions docs/assets/term/lint-dry-run.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/assets/term/tui-build-dry-run-result.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ flowchart TB
## 快速開始

```bash
git clone https://github.com/SeanChangX/DIT-X.git && cd DIT-X
git clone https://github.com/DIT-ROBOTICS/DIT-X.git && cd DIT-X
./install.sh # ditx 上 PATH、Tab 補全
ditx sync && ditx build && ditx test --integration
```
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ tag = stable
```bash
# Defaults for ditx. Copy to .env (git-ignored) or run `ditx init` to change them.
ROS_DISTRO=humble
REGISTRY=ghcr.io/seanchangx
REGISTRY=ghcr.io/dit-robotics
# dev image tag: develop (default) = pull the image CI publishes from the develop branch;
# local = built on this machine by `ditx image` (after changing the Dockerfile or dependencies)
DIT_DEV_TAG=develop
Expand All @@ -89,7 +89,7 @@ DIT_ROBOT_USER=main
| 變數 | 預設 | 說明 |
|---|---|---|
| `ROS_DISTRO` | `humble` | `humble`(機器人使用的版本)或 `jazzy`(未來支援) |
| `REGISTRY` | `ghcr.io/seanchangx` | image 名稱的前綴(目前 image 只在本機建置,不會下載) |
| `REGISTRY` | `ghcr.io/dit-robotics` | image 名稱的前綴(目前 image 只在本機建置,不會下載) |
| `DIT_DEV_TAG` | `develop` | dev 與 cross image 的 tag:`develop` 使用 CI 發佈到 GHCR 的 image(自動 pull);`local` 使用在本機以 `ditx image` 建置的 image,修改 Dockerfile 或相依套件時使用 |
| `DIT_DEV_IMAGE` | | 直接指定完整的 dev image 名稱(覆寫上述兩項) |
| `DIT_ROBOT` | `sim` | 未指定 `-r` 時使用的機器人 |
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
sudo usermod -aG docker $USER
```

??? question "`dev image ghcr.io/seanchangx/eurobot-dev:local is not built yet`"
??? question "`dev image ghcr.io/dit-robotics/eurobot-dev:local is not built yet`"
你設定了 `DIT_DEV_TAG=local`(使用自己建置的 image),但還沒建置。建置一次即可(約 5–10 分鐘):

```bash
Expand Down
Loading