{
 "原理:ROS 2 的發布/訂閱如何讓節點解耦#1": {
  "type": "flow",
  "reveal": [
   0,
   2,
   3
  ],
  "nodes": [
   {
    "label": "管理員",
    "sub": "貼出停水通知"
   },
   {
    "label": "公布欄",
    "sub": "ROS 2 的 topic"
   },
   {
    "label": "住戶",
    "sub": "看公布欄就好"
   }
  ]
 },
 "原理:ROS 2 的發布/訂閱如何讓節點解耦#2": {
  "type": "bar",
  "labels": [
   "直接連線",
   "發布訂閱"
  ],
  "values": [
   20,
   9
  ],
  "unit": "條",
  "reveal": [
   0,
   0,
   1,
   2
  ],
  "highlight": 1
 },
 "原理:ROS 2 的發布/訂閱如何讓節點解耦#4": {
  "type": "flow",
  "reveal": [
   0,
   2,
   4,
   5
  ],
  "nodes": [
   {
    "label": "node 啟動",
    "sub": "區域網路上宣告"
   },
   {
    "label": "宣告內容",
    "sub": "topic、型別、QoS"
   },
   {
    "label": "名稱、型別相同",
    "sub": "QoS 相容"
   },
   {
    "label": "自動連線",
    "sub": "資料直接傳,不經伺服器"
   },
   {
    "label": "同 domain 編號",
    "sub": "探索只在其中發生"
   }
  ]
 },
 "原理:ROS 2 的發布/訂閱如何讓節點解耦#6": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "空間解耦",
    "points": [
     "發布者不需知道",
     "訂閱者在哪一台電腦"
    ]
   },
   {
    "title": "時間解耦",
    "points": [
     "兩邊不必同時啟動",
     "transient local 可拿最後一筆"
    ]
   },
   {
    "title": "同步解耦",
    "points": [
     "發布完就繼續做事",
     "不用等訂閱者處理完"
    ]
   }
  ]
 },
 "原理:ROS 2 的發布/訂閱如何讓節點解耦#7": {
  "type": "flow",
  "reveal": [
   0,
   3,
   3
  ],
  "nodes": [
   {
    "label": "模擬雷達",
    "sub": "或換成雷達驅動"
   },
   {
    "label": "scan topic",
    "sub": "型別 LaserScan"
   },
   {
    "label": "導航 node",
    "sub": "完全不用改"
   }
  ]
 },
 "機器人系統全貌:為什麼需要 ROS 2#1": {
  "type": "cards",
  "reveal": [
   0,
   0,
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "模組化",
    "points": [
     "雷達驅動、SLAM、導航各自獨立",
     "可單獨測試和替換"
    ]
   },
   {
    "title": "可重用",
    "points": [
     "社群現成套件",
     "SLAM、Nav2、感測器驅動"
    ]
   },
   {
    "title": "模擬與真機共用",
    "points": [
     "同一套上層 node",
     "可接 Gazebo 或真實機器人"
    ]
   }
  ]
 },
 "機器人系統全貌:為什麼需要 ROS 2#2": {
  "type": "flow",
  "layout": "col",
  "reveal": [
   0,
   0,
   1,
   2,
   3,
   4
  ],
  "nodes": [
   {
    "label": "硬體驅動",
    "sub": "馬達與感測器變 topic",
    "color": 0
   },
   {
    "label": "狀態估計",
    "sub": "里程計、TF、定位",
    "color": 1
   },
   {
    "label": "建圖與導航",
    "sub": "SLAM 與 Nav2",
    "color": 2
   },
   {
    "label": "任務與 AI",
    "sub": "影像偵測、任務規劃",
    "color": 3
   }
  ]
 },
 "機器人系統全貌:為什麼需要 ROS 2#3": {
  "type": "flow",
  "layout": "col",
  "reveal": [
   0,
   5
  ],
  "nodes": [
   {
    "label": "你寫的 node",
    "color": 0
   },
   {
    "label": "rclpy / rclcpp",
    "color": 1
   },
   {
    "label": "rcl",
    "color": 2
   },
   {
    "label": "rmw 與 DDS",
    "color": 3
   },
   {
    "label": "作業系統與網路",
    "color": 4
   }
  ]
 },
 "機器人系統全貌:為什麼需要 ROS 2#4": {
  "type": "table",
  "head": [
   "零件",
   "與單板電腦的關係"
  ],
  "rows": [
   [
    "雷達",
    "連接單板電腦"
   ],
   [
    "相機",
    "連接單板電腦"
   ],
   [
    "IMU",
    "連接單板電腦"
   ],
   [
    "馬達控制板",
    "連接單板電腦"
   ],
   [
    "電池與電源板",
    "獨立供電,不從單板電腦取電"
   ]
  ],
  "reveal": [
   0,
   5
  ],
  "widths": [
   1,
   2
  ]
 },
 "機器人系統全貌:為什麼需要 ROS 2#5": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2
  ],
  "cards": [
   {
    "title": "ROS 1",
    "points": [
     "需要中央的 roscore"
    ],
    "value": "本課不使用"
   },
   {
    "title": "ROS 2",
    "points": [
     "建立在 DDS 標準之上",
     "node 自動探索彼此",
     "服務品質設定",
     "更好的即時性與安全性",
     "支援 Linux、Windows、macOS"
    ],
    "value": "新專案直接用"
   }
  ]
 },
 "機器人系統全貌:為什麼需要 ROS 2#6": {
  "type": "table",
  "head": [
   "函式庫",
   "語言",
   "本課"
  ],
  "rows": [
   [
    "rclcpp",
    "C++",
    "需要高效能時再提"
   ],
   [
    "rclpy",
    "Python",
    "主要使用"
   ]
  ],
  "reveal": [
   0,
   2,
   2
  ]
 },
 "機器人系統全貌:為什麼需要 ROS 2#7": {
  "type": "table",
  "head": [
   "常見誤解",
   "事實"
  ],
  "rows": [
   [
    "ROS 2 是 Linux 的一種",
    "跑在 Linux 上的軟體框架"
   ],
   [
    "裝了 ROS 2 機器人就會動",
    "還需要驅動、參數與安全設計"
   ],
   [
    "模擬成功等於真機成功",
    "真機一定要重新驗證"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "widths": [
   1,
   1.3
  ]
 },
 "版本與環境選擇:Humble、Jazzy 與 Docker/VM#1": {
  "type": "table",
  "head": [
   "版本",
   "發行",
   "Ubuntu",
   "預定支援到"
  ],
  "rows": [
   [
    "Humble Hawksbill",
    "2022 年 5 月",
    "22.04",
    "2027 年 5 月"
   ],
   [
    "Jazzy Jalisco",
    "2024 年 5 月",
    "24.04",
    "2029 年 5 月"
   ]
  ],
  "reveal": [
   0,
   0,
   1,
   2
  ],
  "widths": [
   2,
   1.5,
   1,
   1.5
  ]
 },
 "版本與環境選擇:Humble、Jazzy 與 Docker/VM#2": {
  "type": "cards",
  "reveal": [
   0,
   2,
   2
  ],
  "cards": [
   {
    "title": "Humble",
    "points": [
     "教學資源最完整",
     "TurtleBot 3 文件",
     "Nav2 範例"
    ],
    "value": "本課以 Humble 為主"
   },
   {
    "title": "Jazzy",
    "points": [
     "比較新",
     "新版 Gazebo 與部分套件",
     "命名、介面有差異"
    ],
    "value": "依版本而異處會標示"
   }
  ]
 },
 "版本與環境選擇:Humble、Jazzy 與 Docker/VM#4": {
  "type": "table",
  "head": [
   "環境",
   "優點",
   "限制"
  ],
  "rows": [
   [
    "Ubuntu 實機",
    "USB、GPU、網路最單純",
    "真機實作建議"
   ],
   [
    "虛擬機",
    "不動原系統、可還原快照",
    "網路需橋接,USB、3D 麻煩"
   ],
   [
    "Docker",
    "環境可重現、易分享",
    "GUI 轉發、USB 掛載、host 網路"
   ],
   [
    "WSL 2",
    "可跑 Ubuntu 與指令列",
    "GUI、USB 看版本,真機不首選"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "widths": [
   1,
   1.6,
   2
  ]
 },
 "版本與環境選擇:Humble、Jazzy 與 Docker/VM#7": {
  "type": "flow",
  "reveal": [
   0,
   2,
   4,
   5
  ],
  "nodes": [
   {
    "label": "確認 locale",
    "sub": "UTF-8"
   },
   {
    "label": "apt update",
    "sub": "software-properties-common"
   },
   {
    "label": "加入 universe",
    "sub": "套件來源"
   },
   {
    "label": "加入 ROS 2 apt 來源",
    "sub": "依官方文件"
   },
   {
    "label": "安裝 ROS Humble",
    "sub": "desktop 與 dev tools"
   }
  ]
 },
 "第一次操作:用 turtlesim 認識 ros2 指令#1": {
  "type": "flow",
  "reveal": [
   0,
   0,
   2,
   3
  ],
  "nodes": [
   {
    "label": "終端機 1",
    "sub": "turtlesim node"
   },
   {
    "label": "終端機 2",
    "sub": "鍵盤遙控 node"
   },
   {
    "label": "小烏龜移動",
    "sub": "兩個 node 靠 topic 溝通"
   }
  ]
 },
 "第一次操作:用 turtlesim 認識 ros2 指令#3": {
  "type": "table",
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "ros2 node list",
    "看有哪些 node"
   ],
   [
    "ros2 topic list -t",
    "看有哪些 topic 與型別"
   ],
   [
    "ros2 topic echo",
    "看某個 topic 的內容"
   ],
   [
    "ros2 topic info",
    "看 topic 資訊"
   ],
   [
    "ros2 interface show",
    "看訊息格式"
   ],
   [
    "ros2 doctor",
    "檢查環境是否正常"
   ]
  ],
  "reveal": [
   0,
   2,
   6,
   6
  ],
  "widths": [
   1.3,
   1.5
  ]
 }
}