DIT Robotics · Software teamDIT Robotics · 軟體組

Software courses軟體課程

Eight introductory courses and one debug clinic. Each course is one live session of about 4 hours with one worksheet. Together they give you a map of the whole robot software stack: where each piece sits, what it assumes, and how it breaks. Every course starts from what our robots really do, then goes beyond them to the robotics knowledge behind it.

八堂入門課,加一場除錯工作坊。每堂課是一次約 4 小時的現場課程,配一份學習單。全部上完,你會有一張整個機器人軟體架構的地圖:每一塊在哪裡、它假設了什麼、它會怎麼壞掉。每堂課都從我們的機器人實際在做的事開始,再延伸到背後更廣的機器人知識。

How the worksheets work. Each one opens with a puzzle: something goes wrong, you guess why, and the session explains it. The numbered Parts are what we do together. Boxes and Parts marked Go deeper are for after the session. Step-by-step walkthroughs open from the worksheet; use ← → and press E for the explanation. Every page has a 中文 button, or press L.

學習單怎麼用。每份都從一個謎題開始:某件事出錯了,你先猜原因,課程再解釋它。有編號的部分是課堂上一起做的。標成延伸的方塊和部分是課後看的。逐步解說從學習單開啟,用 ← → 前後移動,按 E 看說明。每一頁都有 English 按鈕可以切換語言,也可以按 L。

Courses課程Eight courses八堂課

Course 01 · OS‑1: Files and Processes第 1 堂 · OS‑1:檔案與 process

Ctrl+C Is Not Enough: the Life and Death of a ProcessCtrl+C 不夠用:process 的生與死

What happens between ros2 launch and the moment you try to stop it?

從 ros2 launch 到你想把它停掉的那一刻,中間發生了什麼?

Every node is a Linux process. Find out why a launch can leave its nodes running, why your work dies when SSH drops, and how permissions and shared libraries decide what a node may open and load.

每個 node 都是一個 Linux process。你會知道為什麼 launch 可能讓它的 node 繼續跑、為什麼 SSH 一斷你的程式就死掉,以及權限和共享函式庫怎麼決定 node 能開什麼、能載入什麼。

Our robots我們的機器人a launch that won't stop, a test run lost when SSH drops, a serial port you may not open, a container that takes 10 s to stop停不下來的 launch、SSH 一斷就沒了的測試、沒權限開的序列埠、要等 10 秒才停的容器Beyond延伸到any Linux system: servers, phones, cars任何 Linux 系統:伺服器、手機、車
Course 02 · OS‑2: Memory, Concurrency and Devices第 2 堂 · OS‑2:記憶體、並行與裝置

Below the Node: a Deep Dive into Memory, Threads and Devicesnode 之下:深入記憶體、執行緒與裝置

What is the computer really doing while your node runs?

你的 node 在跑的時候,電腦到底在做什麼?

From registers and cache to RAM and the SSD; threads, the scheduler and executors; why a counter shared by two callbacks comes out wrong; and how bytes travel from a serial port into a node.

從暫存器、快取到 RAM 和 SSD;執行緒、排程器和 executor;為什麼兩個 callback 共用的計數器會算錯;以及位元組怎麼從序列埠一路進到 node。

Our robots我們的機器人executors, firmware, the robot computer and its GPUexecutor、韌體、機器人電腦和它的 GPUBeyond延伸到how any computer works, from a microcontroller to a data centre任何電腦怎麼運作,從微控制器到資料中心
in preparation準備中
Course 03 · Networking & Virtualization第 3 堂 · 網路與虛擬化

Where Did My Message Go? Networks, DDS and Containers我的 message 去哪了?網路、DDS 與容器

How does a message get from one node to another, and what can stop it on the way?

message 怎麼從一個 node 到另一個 node?路上有什麼會擋住它?

Network layers, UDP and multicast, how DDS discovery and QoS work, then containers vs virtual machines and Docker networks. Why a topic you can see may still deliver nothing.

網路分層、UDP 和 multicast、DDS 的 discovery 和 QoS 怎麼運作,接著是容器與虛擬機、Docker 網路。為什麼看得到的 topic 還是可能什麼都收不到。

Our robots我們的機器人robots, laptops and containers talking over Wi‑Fi機器人、筆電和容器透過 Wi‑Fi 溝通Beyond延伸到the internet's layers; containers and VMs in industry網際網路的分層;業界的容器和虛擬機
in preparation準備中
Course 04 · State Estimation第 4 堂 · 狀態估測

Stochastic Self‑Localization: Where Am I, Probably?隨機的自我定位:我「大概」在哪?

Where is the robot, and how wrong is that answer?

機器人在哪裡?這個答案錯了多少?

Frames and TF, odometry and why it drifts, uncertainty and the Kalman filter, and absolute fixes from beacons and camera markers. Every sensor is wrong in its own way; combining them is better.

座標系和 TF、odometry 和它為什麼會飄、不確定性和 Kalman filter,以及從信標和相機標記得到的絕對定位。每個感測器都有自己的錯法;把它們合起來會更好。

Our robots我們的機器人localization: beacons, odometry, IMU, cameras定位:信標、odometry、IMU、相機Beyond延伸到GPS, SLAM, self-driving perceptionGPS、SLAM、自駕車感知
in preparation準備中
Course 05 · Control Systems第 5 堂 · 控制系統

Closing the Loop: Feedback Against a World That Pushes Back閉迴路:用回授對抗會反推的世界

How does a wanted motion become motor commands, and stay right while the world pushes back?

想要的動作怎麼變成馬達指令?外界干擾時怎麼維持正確?

Feedback and PID, control loops in discrete time and why a late loop shakes, kinematics for a robot base and a two-joint arm (and what IK solvers do for you), and following a path.

回授和 PID、離散時間的控制迴圈以及遲到的迴圈為什麼會抖、機器人底盤和兩軸手臂的運動學(以及 IK solver 能幫你做什麼),還有路徑追蹤。

Our robots我們的機器人navigation's controllers, motor loops in firmware, mechanisms導航的 controller、韌體的馬達迴圈、機構Beyond延伸到arms, drones, cars: feedback and kinematics everywhere手臂、無人機、車:到處都是回授和運動學
in preparation準備中
Course 06 · Decision-Making and Planning第 6 堂 · 決策與規劃

From Goal to Path: Search, Behavior Trees and Strategy從目標到路徑:搜尋、行為樹與策略

In a 100-second match, what should the robot do next, where should it go, and what if that fails?

一場 100 秒的比賽,機器人下一步該做什麼、該去哪裡、失敗了怎麼辦?

State machines and behavior trees, stateless vs stateful code, ROS 2 actions and checking that they really worked, choosing tasks by score, and path planning from BFS to A*.

狀態機和 behavior tree、stateless 與 stateful 的程式、ROS 2 action 以及確認它真的成功、依分數選擇任務,還有從 BFS 到 A* 的路徑規劃。

Our robots我們的機器人the match strategy; navigation's planner比賽策略;導航的 plannerBeyond延伸到task allocation in warehouses; planning in games and logistics倉儲的任務分配;遊戲和物流的規劃
in preparation準備中
Course 07 · Machine Learning with Robotics第 7 堂 · 機器學習與機器人

Gradient Descent into Robotics沿梯度墜入機器人

How do pixels become something the robot can act on, in time to use it?

像素怎麼變成機器人能用的東西,而且來得及用?

Neural networks and the training loop, CNNs and object detection, deploying a model on the robot computer (latency, not just accuracy), and where robot learning is going: RL, diffusion policies, VLAs.

神經網路和訓練流程、CNN 和物件偵測、把模型部署到機器人電腦上(重點是延遲,不只是準確率),以及機器人學習的走向:RL、diffusion policy、VLA。

Our robots我們的機器人vision's detectors on the robot computer視覺組在機器人電腦上跑的偵測模型Beyond延伸到modern deep learning and robot learning現代深度學習和機器人學習
in preparation準備中
Course 08 · A View from Above the Stack第 8 堂 · 俯瞰整座 stack

Robot Software Landscape機器人軟體全貌

How does every part fit together, on our robot and in industry?

每一塊怎麼拼在一起,在我們的機器人上和在業界?

Follow one action from the sensor to the motor and back. Sensors and actuators, the firmware boundary and safety, simulation and data, and how industry builds robots now. Best taken last.

跟著一個動作從感測器走到馬達再回來。感測器和致動器、韌體的邊界和安全、模擬和資料,以及業界現在怎麼做機器人。最適合最後上。

Our robots我們的機器人how our groups fit together我們各組怎麼拼在一起Beyond延伸到how industry's robots are built業界的機器人怎麼做的
in preparation準備中

Workshop工作坊Practice the method練習方法

Workshop工作坊

Debug Clinic: the Scientific Method for Broken Robots除錯診所:修壞掉機器人的科學方法

Can you fix a broken workspace by yourself?

你能自己修好一個壞掉的 workspace 嗎?

Hands-on, not a lecture. Each pair gets a broken ROS 2 workspace (build errors, wrong QoS, a frozen executor, a node that won't stop) and fixes it with a method: reproduce, read the error, narrow it down, check one assumption at a time. Any time after OS‑2.

動手做,不是講課。每組拿到一個壞掉的 ROS 2 workspace(編譯錯誤、QoS 不對、卡住的 executor、停不下來的 node),用一套方法修好它:重現問題、讀錯誤訊息、縮小範圍、一次檢查一個假設。上完 OS‑2 之後隨時可以參加。

in preparation準備中

Example範例See what a worksheet looks like學習單長什麼樣子

Waiting inside a callback: a short example worksheet, and the template for every course. A node freezes when it waits for a service reply inside a callback; you find out why, and fix it two ways.

在 callback 裡等待:一份短的範例學習單,也是每堂課的範本。一個 node 在 callback 裡等 service 的回覆,結果整個卡住;你會搞懂原因,並用兩種方法修好。

Before you start開始之前The basics基礎

The courses assume you have worked through the club's tutorials:

這些課假設你已經做過社團的教學:

Set up once, for every course設定一次,所有課程通用

Every example in every course runs in one container: ROS 2 Humble plus the tools the worksheets use. Each course's example code is in its code/ folder in this repository. On a laptop with Docker and network, do this once:

每堂課的每個範例都在同一個容器裡跑:ROS 2 Humble,加上學習單會用到的工具。每堂課的範例程式碼放在這個 repository 裡該課的 code/ 資料夾。在有 Docker、有網路的筆電上做一次:

git clone https://github.com/DIT-ROBOTICS/Robotics-Software-101.git
# or, if your SSH key is on GitHub:
git clone git@github.com:DIT-ROBOTICS/Robotics-Software-101.git

cd Robotics-Software-101
docker build -t dit-course docker/

No SSH key on GitHub yet? GitHub's guide shows how to make one and add it.

GitHub 上還沒有 SSH key?GitHub 的說明教你怎麼產生一把並加上去。

The build downloads ROS 2 (about 1 GB), so do it at home, not on the room's Wi‑Fi. Before each course, git pull to get its code, and build again if docker/Dockerfile changed. Each worksheet starts with the one command that opens its container.

建置時會下載 ROS 2(大約 1 GB),請在家裡做,不要用教室的 Wi‑Fi。每堂課之前先 git pull 拿到這堂課的程式碼;如果 docker/Dockerfile 有改,就再建置一次。每份學習單一開始都會給你開啟容器的那一行指令。