[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116593":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":8,"rankLanguage":8,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":8,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":14,"starSnapshotCount":14,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},116593,"Odin-Nav-Stack2","ManifoldTechLtd\u002FOdin-Nav-Stack2","ManifoldTechLtd",null,"Python",68,8,54,1,0,5,9,16,55.26,"GNU General Public License v3.0",false,"main",[],"2026-11-20 08:41:53","2026-11-23 18:16:24","\u003Ch2 align=\"center\">Odin Navigation Stack 2 (ONS2)\u003C\u002Fh2>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"figures\u002Flogo.png\" alt=\"Manifold Tech\" height=\"50\">\n  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n  \u003Cimg src=\"figures\u002Fastrall.png\" alt=\"ASTRALL Dynamics\" height=\"42\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cstrong>English\u003C\u002Fstrong> | \u003Ca href=\"README.zh-CN.md\">中文\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cdiv align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fmanifoldtechltd.github.io\u002FOdin-Nav-Stack2-Webpage\u002F\">\n  \u003Cimg src='https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWebsite-ONS2-blueviolet' alt='Website'>\u003C\u002Fa>\n  \u003Ca href=\"LICENSE\">\n  \u003Cimg src='https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-GPL--3.0-green' alt='GPL-3.0'>\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwiki.ros.org\u002Fnoetic\">\n  \u003Cimg src='https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FROS1-Noetic-orange' alt='ROS1 Noetic'>\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fdocs.ros.org\u002Fen\u002Fjazzy\u002F\">\n  \u003Cimg src='https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FROS2-Jazzy-blue' alt='ROS2 Jazzy'>\u003C\u002Fa>\n\u003C\u002Fdiv>\n\n> [!NOTE]\n> This repository is under active development. Please refer to the latest code!\n\n**Odin1** is a high-performance spatial sensing module that delivers **high-precision 3D mapping**, **robust relocalization**, and rich sensory streams including **RGB images**, **depth**, **IMU**, **odometry**, and **dense point clouds**. ONS2 builds on Odin1 to provide an autonomous **patrol navigation** stack for ground platforms, enabling:\n\n- **Multi-waypoint autonomous patrol** with dynamic obstacle avoidance and remote monitoring\n- **Natural-language control** and **Vision-Language Model (VLM)** scene understanding\n- **Dual runtime**: the same codebase runs on **ROS1 Noetic** and **ROS2 Jazzy**\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"figures\u002Fons2_architecture.png\" alt=\"ONS2 System Architecture Overview\" width=\"100%\">\n\u003C\u002Fp>\n\n# 1. Overview\n\n## 1.1 Key Features\n\n- **High-Accuracy SLAM & Persistent Relocalization** (inside Odin1, not open-sourced)  \n  Real-time mapping with long-term relocalization using compact binary maps.\n- **Dynamic Obstacle-Aware Navigation** (fully open-sourced)  \n  Global A\\* planning with a memory of blind-spot obstacles (`sliding_map`), combined with the NeuPAN local planner for safe motion in cluttered environments.\n- **Mission Management** (fully open-sourced)  \n  Multi-waypoint missions with pause, resume, cancel, return-home, final alignment, per-waypoint\n  dwell, and a remote monitoring console.\n- **VLM-based perception** (fully open-sourced)  \n  Plug in your own vision-language model to run custom object checks and scene question answering. See [Odin-perception](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FOdin-perception).\n- **Dual Runtime, Shared Core**  \n  `ros_ws\u002F` (ROS1 Noetic) and `ros2_ws\u002F` (ROS2 Jazzy) share the planner core, the topic \u002F service \u002F action names, and the configuration profiles.\n\n## 1.2 What's New\n\n- **[2026-11-20] Built-in ONS2 Web Control Console (`:18090`)**  \n  Start\u002Fstop the stack, switch `NeuPAN` \u002F `SRU` policies, pick waypoints on the live PGM map, teleop, stream compressed video, and record preset bags directly in the browser. See the [ONS2 Web Console Guide](docs\u002Fweb_console.md).\n- **[2026-11-20] Blocked-Goal Adaptive Arrival & Smooth Dynamic Avoidance**  \n  Occupied waypoints automatically relocate to the nearest reachable spot outside the obstacle's inflation shell and count as arrived, paired with smoother close-range dynamic obstacle bypassing.\n- **[2026-11-10] Dramatically faster planning**  \n  Plans substantially faster even on low-compute platforms, with smoother execution and nimbler obstacle avoidance.  \n  See the [NeuPAN optimisation notes](docs\u002FneuPAN_optimisation.md) for what was changed and the measured gains.\n- **[2026-11-09] Upgraded VLM, bring your own model**  \n  Connect a more capable vision-language model to your own workstation for richer scene understanding.  \n  See the [Odin-perception](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FOdin-perception) tutorial for web links and documentation.\n- **[2026-11-09] End-to-end, fully open source**  \n  A complete inspection workflow — simulation to real robots, algorithms to the monitoring platform, real world to simulated world. See the [Real2Sim tutorial](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FMT-Real2Sim-Tutorial).\n- **[2026-11-09] Odin RTK fusion navigation**  \n  Configure Odin with RTK in minutes to get full latitude\u002Flongitude-based navigation and open up further use cases.\n- **[2026-11-09] Plugin architecture**  \n  The stack is built around a plugin-based design, making it straightforward to integrate custom planners.\n- **More on the way**  \n  Further capabilities will land in upcoming releases.\n\n## 1.3 Related Work\n\n- **[Odin-Nav-Stack](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FOdin-Nav-Stack)** — The ROS1-based open-source navigation stack that this project builds on.\n- **[SRU × Odin1: Mapless Navigation with Spatially-Enhanced Recurrent Memory](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FSRU-Odin)** — Mapless navigation on Odin1 (the SRU backend).\n- **[NeuPAN (ManifoldTech fork)](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FNeuPAN)** — The local planner used by ONS2, with a ROS wrapper.\n- **[ManifoldTech Real2Sim Tutorial](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FMT-Real2Sim-Tutorial)** — Transform the real world into a simulated environment in Isaac Sim using Q9000.\n- **[odin_ros_driver](https:\u002F\u002Fgithub.com\u002Fmanifoldsdk\u002Fodin_ros_driver)** and the [Odin1 wiki](https:\u002F\u002Fmanifoldtechltd.github.io\u002Fwiki\u002FOdin1\u002FCover.html) — Odin1 driver and documentation.\n- **[Odin RTK](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FOdin-RTK)** — Odin RTK Fusion: fuses Odin SLAM odometry with RTK\u002FGNSS GGA data to output globally referenced poses.\n- **[Odin Perception](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FOdin-perception)** — the on-device inspection perception component for ONS2: feed one image to a vision model and get decidable verdicts against a structured checklist (yes\u002Fno, state, count, read-text, describe), with evidence image and latency.\n\n# 2. Supported Platforms\n\n| Robot | Runtime | Status |\n|---|---|---|\n| ASTRALL SW01 | ROS1 Noetic \u002F ROS2 Jazzy | Supported (`scripts\u002Fons2_sw01.sh`, profile `robots\u002Fsw01\u002F`), extensively validated and tuned |\n| Unitree Go2 | ROS1 Noetic | Supported (`scripts\u002Fons2_go2.sh`, profile `robots\u002Fgo2\u002F`) |\n| Dobot Lumo | ROS1 Noetic | Supported (`scripts\u002Fons2_dobot_lumo.sh`, profile `robots\u002Fdobot_lumo\u002F`, defaults to `dry_run=true`) |\n| Your own robot | ROS1 or ROS2 | Copy `robots\u002F_template\u002F`; see [03 · Integrate Your Own Robot](docs\u002Fusage\u002F03_integrate_your_robot.md) |\n\nUnitree Go2 is supported by the ROS1 stack only.\n\n# 3. Local Planner: NeuPAN or SRU\n\n> [!NOTE]\n> The SRU training code is published in [SRU-Odin](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FSRU-Odin). The SRU inference backend is now part of this repository: shared core in `sru\u002F`, ROS2 package `ros2_ws\u002Fsrc\u002Fsru_nav`, ROS1 package `ros_ws\u002Fsrc\u002Fsru_nav`. Trained ONNX models are **not bundled**.\n\nBy default the stack uses **NeuPAN** on a global A\\* path. ONS2 can also replace NeuPAN with the **SRU** end-to-end policy, which maps the depth image and the goal directly to velocity commands.\n\n| | NeuPAN (default) | SRU (experimental) |\n|---|---|---|\n| Global planning | Yes (A\\*, `map_planner`) | No |\n| Obstacle input | `\u002Fscan_360` from `sliding_map` | Odin1 depth image |\n| Output | `\u002Fcmd_vel` | `\u002Fsru\u002Fcmd_vel` (5 Hz, body frame), passed to `\u002Fcmd_vel` through a motion gate |\n| Model | Analytic: no training for a new chassis | ONNX policy: **must be trained for your robot** |\n| Select with | Default | `--local-planner=sru` |\n\n## 3.1 Running NeuPAN\n\nNeuPAN is the default local planner (`--local-planner=neupan`) and requires no neural-network training for new robot footprints:\n\n- **Unitree Go2 (ROS1):**\n  ``` shell\n  bash scripts\u002Fons2_go2.sh --map=NAME\n  ```\n- **ASTRALL SW01 (ROS2 or ROS1):**\n  ``` shell\n  # ROS2 (default)\n  bash scripts\u002Fons2_sw01.sh --map=NAME\n\n  # ROS1\n  bash scripts\u002Fons2_sw01.sh --ros1 --map=NAME\n  ```\n- **Dobot Lumo (ROS1):**\n  ``` shell\n  bash scripts\u002Fons2_dobot_lumo.sh --map=NAME\n  ```\n\n> `--map=NAME` (e.g., `--map=parkinglot`) selects your map triplet (`NAME.yaml`, `NAME.pgm`, and `customer_file\u002FNAME.bin`). For how to build, convert, and place these map files (via Q9000 or Odin1), see the [Map Building & Processing Guide](docs\u002Fmap-tutorial\u002Fmap-tutorial.md).\n\nFor parameter tuning (speed, footprint, safety clearance, stuck escape), see [02 · Parameter Tuning](docs\u002Fusage\u002F02_parameter_tuning.md).\n\n## 3.2 Running SRU\n\n> **SRU requires training.** Obtain the locomotion controller from your robot's manufacturer — it is not provided by us. The trained ONNX models (policy and VAE encoder) are **not included** in this repository. Train the policy in the SRU repository, then place the exported models in `\u003Crepo>\u002Fsru\u002Fmodels\u002F` (default names `vae_encoder.onnx` and `nav_policy.onnx`), or point `SRU_VAE_MODEL` \u002F `SRU_POLICY_MODEL` at them:\n>\n> **[ManifoldTechLtd\u002FSRU-Odin](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FSRU-Odin)** — training (`Train\u002F`), deployment (`Deployment\u002F`), and the porting guide.\n\nIn SRU mode the stack does not plan a global path. It sends each waypoint to SRU in the odom frame, and arrival is judged by odometry distance (`sru_arrive_threshold_m` in `nav_params.yaml`, 0.7 m by default). Route segmentation, periodic replanning, recovery, and the hot path are disabled.\n\nPass `--local-planner=sru` to any platform launcher to switch from NeuPAN to the SRU policy:\n\n- **Unitree Go2 (ROS1):**\n  ``` shell\n  bash scripts\u002Fons2_go2.sh --local-planner=sru --map=NAME\n  ```\n- **ASTRALL SW01 (ROS2 or ROS1):**\n  ``` shell\n  # ROS2 (default)\n  bash scripts\u002Fons2_sw01.sh --local-planner=sru --map=NAME\n\n  # ROS1\n  bash scripts\u002Fons2_sw01.sh --ros1 --local-planner=sru --map=NAME\n  ```\n- **Dobot Lumo (ROS1):**\n  ``` shell\n  bash scripts\u002Fons2_dobot_lumo.sh --local-planner=sru --map=NAME\n  ```\n\nCommon notes:\n- The platform launchers include the in-repo `sru_nav` package via the `sru` backend in `robots\u002F\u003Crobot>\u002Frobot.yaml`. The velocity gate relay is **not** auto-started: run `python3 ros2_ws\u002Fscripts\u002Fsru_cmd_vel_relay.py` (ROS2) or `python3 ros_ws\u002Fscripts\u002Fsru_cmd_vel_relay.py` (ROS1) alongside the stack. It forwards `\u002Fsru\u002Fcmd_vel` to `\u002Fcmd_vel` only while `\u002Fsru\u002Fcmd_vel_enable` is true (default false).\n- Standalone helpers: `ros2_ws\u002Fscripts\u002Fstart_sru_ros2.sh` (ROS2) and `ros_ws\u002Fscripts\u002Fstart_sru.sh` (ROS1). Models default to `\u003Crepo>\u002Fsru\u002Fmodels`, overridable via `SRU_MODELS_DIR` \u002F `SRU_VAE_MODEL` \u002F `SRU_POLICY_MODEL`. See [`sru\u002FREADME.md`](sru\u002FREADME.md).\n- `--navigation-mode` has no effect in SRU mode.\n- SRU outputs a body-frame `Twist`, so any robot with a `\u002Fcmd_vel` bridge can use it. See [03 · Integrate Your Own Robot](docs\u002Fusage\u002F03_integrate_your_robot.md).\n\n# 4. Installation and Build\n\nBoth runtimes share the same clone step and the same Odin1 USB rule. Then follow **one** runtime section below.\n\n## 4.1 Common Steps\n\n### 4.1.1 Clone the Repository\n\n``` shell\ngit clone --recursive https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FOdin-Nav-Stack2.git\ncd Odin-Nav-Stack2\n```\n\nIf you cloned without `--recursive`:\n\n``` shell\ngit submodule update --init ros_ws\u002Fsrc\u002Fodin_ros_driver    # ROS1 Odin1 driver (submodule)\ngit submodule update --init ros2_ws\u002Fsrc\u002Fodin_ros_driver   # ROS2 Odin1 driver (submodule)\ngit submodule update --init yolov5                        # optional: object detection\ngit submodule update --init odin_rtk_fusion               # optional: RTK input\n```\n\nBoth `ros_ws\u002Fsrc\u002Fodin_ros_driver` and `ros2_ws\u002Fsrc\u002Fodin_ros_driver` are submodules pointing to [manifoldsdk\u002Fodin_ros_driver](https:\u002F\u002Fgithub.com\u002Fmanifoldsdk\u002Fodin_ros_driver\u002F).\n\n### 4.1.2 Odin1 USB Rule\n\nFor details, see the [Odin1 Ubuntu Quick Start — Create udev rules](https:\u002F\u002Fmanifoldtechltd.github.io\u002Fwiki\u002Fen\u002Fodin_series\u002Fodin1\u002F7.%20Odin1%20Quick%20start%20for%20ubuntu.html#74-create-udev-rules):\n\n``` shell\nsudo vim \u002Fetc\u002Fudev\u002Frules.d\u002F99-odin-usb.rules\n```\n\nAdd this line, then reload the rules and reinsert the device:\n\n``` shell\nSUBSYSTEM==\"usb\", ATTR{idVendor}==\"2207\", ATTR{idProduct}==\"0019\", MODE=\"0666\", GROUP=\"plugdev\"\n```\n\n``` shell\nsudo udevadm control --reload && sudo udevadm trigger\n```\n\n## 4.2 ROS1 Noetic (Ubuntu 20.04)\n\nBoth ROS1 and ROS2 use the **NeuPAN** local planner by default (`NeuPAN\u002F` requires **Python ≥ 3.10**). Because Ubuntu 20.04 ships with system Python 3.8, create a Python 3.10 conda environment for NeuPAN while building the ROS1 C++ packages against your system ROS Noetic installation.\n\n### 4.2.1 Install\n\n1. **System ROS1 dependencies:**\n   ``` shell\n   sudo apt update\n   sudo apt install -y \\\n     ros-noetic-tf2-ros ros-noetic-tf2-geometry-msgs ros-noetic-tf2-eigen \\\n     ros-noetic-cv-bridge ros-noetic-image-transport ros-noetic-pcl-ros \\\n     ros-noetic-pointcloud-to-laserscan ros-noetic-map-server \\\n     ros-noetic-rosbridge-suite ros-noetic-foxglove-bridge\n   ```\n\n2. **Python ≥ 3.10 environment for the NeuPAN local planner:**\n   ``` shell\n   conda create -n neupan python=3.10 -y\n   conda activate neupan\n   pip install rospkg catkin_pkg\n   pip install torch --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcpu   # on Jetson, use the NVIDIA JetPack wheel\n   pip install -e NeuPAN\n   export NEUPAN_PYTHON=\"$(which python)\"\n   ```\n   *(Alternative: if you prefer a self-contained RoboStack environment without system `\u002Fopt\u002Fros\u002Fnoetic`, you can install `ros-noetic-desktop` into the `neupan` environment via `mamba` and the `robostack-noetic` channel.)*\n\n### 4.2.2 Build\n\n1. **Robot-specific chassis SDKs:**\n   - **Unitree Go2:** Install the official [unitree_sdk2](https:\u002F\u002Fgithub.com\u002Funitreerobotics\u002Funitree_sdk2) first (see also the [Unitree SDK Developer Guide](https:\u002F\u002Fsupport.unitree.com\u002Fhome\u002Fzh\u002Fdeveloper\u002FObtain%20SDK)), as `ros_ws\u002Fsrc\u002Funitree_control` links against `unitree_sdk2`.\n   - **ASTRALL SW01:** The SW01 chassis SDK and driver support are provided by ASTRALL Dynamics. Contact them through their official website: [https:\u002F\u002Fwww.astralldynamics.com\u002Findex.html](https:\u002F\u002Fwww.astralldynamics.com\u002Findex.html).\n   - **Dobot Lumo:** Optional; without the Lumo SDK, `dobot_ros_control` builds the raw RPC backend automatically.\n\n2. **Build the ROS1 workspace:**\n   ``` shell\n   # Full build (when unitree_sdk2 is installed):\n   bash ros_ws\u002Fsrc\u002Fodin_ros_driver\u002Fscript\u002Fbuild_ros.sh\n   # Equivalent to: cd ros_ws && catkin_make -DCMAKE_BUILD_TYPE=Release\n\n   # Or build without unitree_control (for SW01, Dobot Lumo, or custom robots):\n   cd ros_ws && catkin_make -DCMAKE_BUILD_TYPE=Release \\\n     -DCATKIN_WHITELIST_PACKAGES=\"nav_interfaces;odin_ros_driver;map_planner;sliding_map;neupan_ros;mission_manager;atomic_move;sw01_ros_control;dobot_ros_control\"\n   ```\n\n### 4.2.3 Launch\n\n``` shell\nbash scripts\u002Fons2_go2.sh --map=NAME  # Unitree Go2 (ROS1)\nbash scripts\u002Fons2_dobot_lumo.sh --map=NAME  # Dobot Lumo (ROS1)\nbash scripts\u002Fons2_sw01.sh --ros1 --map=NAME  # ASTRALL SW01 (ROS1)\n```\n\nStop: `bash scripts\u002Fons2_go2_stop.sh`, `bash scripts\u002Fons2_dobot_lumo_stop.sh`, or `bash scripts\u002Fons2_sw01_stop.sh`.\n\n## 4.3 ROS2 Jazzy (Ubuntu 24.04)\n\nThe ROS2 stack (`ros2_ws\u002F`) has been validated on **ASTRALL SW01** and supports any ROS2 robot configured through `robots\u002F\u003Crobot>\u002Frobot.yaml` (see [03 · Integrate Your Own Robot](docs\u002Fusage\u002F03_integrate_your_robot.md)). Because Ubuntu 24.04 ships with system **Python 3.12** (which already satisfies NeuPAN's Python ≥ 3.10 requirement), both the ROS2 nodes and the NeuPAN local planner run directly on the system Python without needing conda.\n\n### 4.3.1 Install\n\n1. **System ROS2 Jazzy dependencies** (required by `ros2_ws\u002Fsrc\u002F*\u002Fpackage.xml` and `ons2_bringup`):\n   ``` shell\n   sudo apt update\n   sudo apt install -y \\\n     ros-jazzy-ros-base ros-jazzy-tf2-ros ros-jazzy-tf2-geometry-msgs \\\n     ros-jazzy-pcl-ros ros-jazzy-pcl-conversions ros-jazzy-cv-bridge ros-jazzy-image-transport \\\n     ros-jazzy-pointcloud-to-laserscan ros-jazzy-rosbridge-suite ros-jazzy-nav-msgs \\\n     ros-jazzy-sensor-msgs ros-jazzy-std-srvs ros-jazzy-message-filters \\\n     ros-jazzy-rosidl-default-generators ros-jazzy-rosidl-default-runtime \\\n     ros-jazzy-nav2-map-server ros-jazzy-foxglove-bridge\n   ```\n\n2. **Python dependencies for the NeuPAN local planner** (defined in `NeuPAN\u002Fpyproject.toml`):\n   ``` shell\n   python3 -m pip install --break-system-packages \"numpy\u003C2\" \\\n     torch --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcpu --extra-index-url https:\u002F\u002Fpypi.org\u002Fsimple\n   python3 -m pip install --break-system-packages -e NeuPAN\n   ```\n\n> Keep `numpy` below 2.0 so it stays ABI-compatible with the system ROS2 `cv_bridge` package.\n\n### 4.3.2 Build\n\n1. **Robot-specific chassis SDKs:**\n   - **ASTRALL SW01:** The SW01 chassis SDK and driver support are provided by ASTRALL Dynamics. Contact them through their official website: [https:\u002F\u002Fwww.astralldynamics.com\u002Findex.html](https:\u002F\u002Fwww.astralldynamics.com\u002Findex.html).\n   - **Custom robots:** Implement your own chassis bridge and register it in `robots\u002F\u003Crobot>\u002Frobot.yaml`; see [03 · Integrate Your Own Robot](docs\u002Fusage\u002F03_integrate_your_robot.md). If you are not building for SW01, skip `sw01_ros_control` with `--packages-skip sw01_ros_control`.\n\n2. **Build the ROS2 workspace:**\n   ``` shell\n   source \u002Fopt\u002Fros\u002Fjazzy\u002Fsetup.bash\n   cd ros2_ws\n   colcon build --symlink-install --cmake-args -DBUILD_SYSTEM=ROS2\n   cd ..\n   ```\n\n### 4.3.3 Launch\n\n``` shell\nbash scripts\u002Fons2_sw01.sh --map=NAME  # ASTRALL SW01 (ROS2, or your own robot launcher)\n```\n\nStop: `bash scripts\u002Fons2_sw01_stop.sh`. Use `ROS_DOMAIN_ID=98` in every terminal you open by hand; the launch script sets it by default.\n\n## 4.4 Differences between ROS1 and ROS2\n\n| Item | ROS1 (Noetic) | ROS2 (Jazzy) |\n|---|---|---|\n| OS | Ubuntu 20.04 | Ubuntu 24.04 |\n| Python for NeuPAN | System `python3` or `NEUPAN_PYTHON` (Python ≥ 3.10) | System Python 3.12 (`pip --break-system-packages`) |\n| Build | `catkin_make` \u002F `build_ros.sh` | `colcon build --symlink-install --cmake-args -DBUILD_SYSTEM=ROS2` |\n| Discovery | `roscore` (started by the launcher) | DDS, `ROS_DOMAIN_ID=98`, no `roscore` |\n| Launcher | `scripts\u002Fons2_go2.sh`, `scripts\u002Fons2_dobot_lumo.sh` | `scripts\u002Fons2_sw01.sh` |\n| `--navigation-mode` | Optional (defaults to `replan_periodic`) | Optional (defaults to `replan_periodic`) |\n| Stop | `scripts\u002Fons2_go2_stop.sh`, `scripts\u002Fons2_dobot_lumo_stop.sh` | `scripts\u002Fons2_sw01_stop.sh` |\n| tmux session | `ons2_go2`, `ons2_dobot_lumo` | `ons2_sw01` |\n| Mission CLI \u002F TUI | `ros_ws\u002Fscripts\u002Ftest_nav_control_rospy.py` or `scripts\u002Ftools\u002Fmission_cli.sh` | `ros2_ws\u002Fscripts\u002Ftest_nav_control_ros2.py` or `ros2 service call` |\n| Robots | Go2, Dobot Lumo, SW01 | SW01 |\n| Odin driver | Submodule `ros_ws\u002Fsrc\u002Fodin_ros_driver` | Submodule `ros2_ws\u002Fsrc\u002Fodin_ros_driver` |\n\n# 5. Documentation\n\n## 5.1 Feature Index — Start from What You Want to Do\n\n| I want to… | Read |\n|---|---|\n| **Run a patrol mission** on an existing robot | [01 · Quick Start](docs\u002Fusage\u002F01_quick_start.md) |\n| **Control the entire navigation workflow from a browser** — start\u002Fstop stack, map, waypoint missions, e-stop, teleop, bag recording, camera, intercom | [ONS2 Web Console Guide](docs\u002Fweb_console.md) · [Quick Start § 5 · Web Control Frontend](docs\u002Fusage\u002F01_quick_start.md#5-web-control-frontend) |\n| **Understand or retune the local planner** — what was optimised and why | [NeuPAN Optimisation Notes](docs\u002FneuPAN_optimisation.md) |\n| **Look up the default values for my platform** — measured per-robot values plus a recommended tuning order | [02 · Parameter Tuning](docs\u002Fusage\u002F02_parameter_tuning.md) |\n| **Look up what a specific parameter does**, or debug a symptom | [Advanced Tuning & Troubleshooting](docs\u002FTUNING_GUIDE.md) — full parameter dictionary (MPC\u002FDUNE, scan pre-processing, adaptive safety band, global planner) plus a symptom→parameter table |\n| **Pick or write a platform profile** | [Robot Profiles](docs\u002Farchitecture\u002FROBOT_PROFILE.md) |\n| **Add automated inspection** — checklist verdicts, annotated frames | [Perception guide](perception\u002FREADME.md) → [Odin-perception](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FOdin-perception) |\n| **Connect a new robot** — interface contract, chassis bridge, TF, launch | [03 · Integrate Your Own Robot](docs\u002Fusage\u002F03_integrate_your_robot.md) |\n| **Ask a VLM questions about the scene** | [VLM Scene Understanding](#54-vlm-scene-understanding) |\n| **Understand the architecture \u002F module dataflow** | [Architecture](docs\u002Farchitecture\u002FONS2_ARCHITECTURE.md) · [Module Dataflow](docs\u002Farchitecture\u002FMODULE_DATAFLOW.md) |\n| **Scan a site and build a navigation map** (Q9000 \u002F Odin1) | [Map Tutorial](docs\u002Fmap-tutorial\u002Fmap-tutorial.md) · [`pcd_to_pgm.py`](scripts\u002Fmap_processing\u002Fpcd_to_pgm.py) |\n| **Reproduce a scenario in simulation** (Real2Sim) | [MT-Real2Sim-Tutorial](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FMT-Real2Sim-Tutorial) |\n| **Deploy with Docker** (Jetson, ROS1) | [docker\u002Fdocker-compose.yml](docker\u002Fdocker-compose.yml) |\n\n> **Chinese docs:** every guide in this repository has a `*.zh-CN.md` sibling (usage guides,\n> tuning guide, NeuPAN notes, remote monitor), and the README itself has a [中文版](README.zh-CN.md).\n\n## 5.2 Core Guides\n\n| # | Guide | Use it to |\n|---|---|---|\n| 1 | [Quick Start for Existing Robots](docs\u002Fusage\u002F01_quick_start.md) | Start the stack on Go2, SW01, or Dobot Lumo, and send missions |\n| 2 | [Parameter Tuning](docs\u002Fusage\u002F02_parameter_tuning.md) | Change speed, footprint, clearance, and tracking for each platform |\n| 3 | [Integrate Your Own Robot](docs\u002Fusage\u002F03_integrate_your_robot.md) | Connect a new robot: interface contract, chassis bridge, TF, launch |\n\n## 5.3 Feature Status at a Glance\n\n| Capability | ROS 1 (Noetic) | ROS 2 (Jazzy) |\n|---|---|---|\n| Patrol navigation, local\u002Fglobal planning | ✅ | ✅ |\n| ONS2 Web Console (stack start\u002Fstop, map, missions, bag recording, e-stop, teleop, camera, intercom) | ✅ (mission\u002Fmap\u002Fteleop; untested on hardware) | ✅ SW01 |\n| 3D visualization bridge (Foxglove WebSocket) | ✅ | ✅ |\n| Inspection perception (Florence-2, separate repo) | ✅ | ✅ |\n| 3DGS navigation console *(optional, contact us)* | ✅ | ✅ |\n\n## 5.4 VLM Scene Understanding\n\nStart a VLM server (llama.cpp, OpenAI-compatible API), then the terminal client:\n\n``` shell\nllama-server -m SmolVLM-500M-Instruct-Q8_0.gguf --mmproj mmproj-SmolVLM-500M-Instruct-Q8_0.gguf\nros2 launch odin_vlm_terminal odin_vlm_terminal.launch.py     # ROS2\nroslaunch odin_vlm_terminal odin_vlm_terminal.launch          # ROS1\n```\n\nOn an onboard computer with limited resources, run the VLM server on a companion machine. Note that we no longer recommend this path — Florence-2 (see below) fully supersedes it.\n\n## 5.5 Inspection Perception (Florence-2)\n\n> **Optional module — ONS2 runs fully without it.** Adding perception is a two-process\n> side-car, not a rebuild: you do not have to recompile this stack, touch its launch files,\n> or change any navigation parameter. You can add it or drop it at any time.\n\n**Do you need it?**\n\n| You need Odin-perception if… | You do **not** need it if… |\n|---|---|\n| Patrols must produce **pass\u002Ffail verdicts** (valve state, gauge readings, indicator colors, nameplate OCR) | You only need the robot to **navigate** between waypoints |\n| You want **annotated images** (boxes + verdict text) on the camera feed | A human watches the video stream and decides |\n| Your Odin1 camera can publish RGB (`sendrgb: 1`) | Your platform has no RGB stream |\n\nFor **structured inspection** — valve closed? gauge reading? indicator color? — the perception\ncomponent lives in a **separate open-source repository**, so the model environment never has to\nbe merged into this ROS workspace:\n\n**➡️ [Odin-perception](https:\u002F\u002Fgithub.com\u002FManifoldTechLtd\u002FOdin-perception)**\n\nIt takes an image, returns decidable verdicts against a YAML\u002FJSON checklist, and can publish an\nannotated image (detection boxes + verdict text). It attaches to this stack in two processes\ncommunicating over HTTP:\n\n```\nodin driver ──► \u002Fodin1\u002Fimage\u002Fundistorted\n                      │\n        ros1\u002Fros2 capture node (:8730) ──HTTP──► perception-run (Florence-2)\n                      ▲                                   │\n                      └───────── POST \u002Fannotate ◄─────────┘\n                      │\n        \u002Finspection\u002Fannotated\u002Fcompressed ──► Foxglove \u002F RViz \u002F rosbridge\n```\n\n**Installation and integration are documented in that repository's README** — see its\n*Integrating with Odin-Nav-Stack2* section for the step-by-step procedure, the topic contract,\nand the ROS 1 \u002F Jetson pitfalls.\n\nPrerequisite on this side: the Odin driver must actually publish images, i.e. `sendrgb: 1` and\n`sendrgbundistort: 1` in the driver's `control_command.yaml`; verify with\n`rostopic hz \u002Fodin1\u002Fimage\u002Fundistorted` before wiring perception in.\n\n> `odin_vlm_terminal` above is a different, lightweight path: it forwards frames to an\n> OpenAI-compatible VLM server for free-form Q&A. Use Odin-perception when you need repeatable,\n> checklist-driven inspection verdicts.\n\n# 6. Architecture\n\nThe stack is layered: Odin1 sensing and TF → `pointcloud_to_laserscan` → `sliding_map` obstacle memory → A\\* global planning (`map_planner`) → NeuPAN local control (`neupan_ros`) → chassis bridge, coordinated by `mission_manager`. Only one node may publish `\u002Fcmd_vel` at a time. Control passes from NeuPAN to `atomic_move` through `\u002Fneupan\u002Fstop`.\n\n# 7. Repository Structure\n\n```text\nOdin-Nav-Stack2\u002F\n├── robots\u002F                        # Single source of truth for per-robot profiles\n│   ├── _template\u002F                 # Template for new robots (robot.yaml + neupan\u002F{config,planner}.yaml)\n│   ├── go2\u002F                       # Unitree Go2 profile & NeuPAN configs (ROS 1)\n│   ├── sw01\u002F                      # ASTRALL SW01 profile & NeuPAN configs (ROS 2)\n│   └── dobot_lumo\u002F                # Dobot Lumo profile & NeuPAN configs (ROS 1)\n├── scripts\u002F                       # Unified entry scripts & operational tools\n│   ├── ons2_go2.sh \u002F ons2_go2_stop.sh\n│   ├── ons2_sw01.sh \u002F ons2_sw01_stop.sh\n│   ├── ons2_dobot_lumo.sh \u002F ons2_dobot_lumo_stop.sh\n│   └── lib\u002F | tools\u002F | systemd\u002F | map_processing\u002F\n├── ros_ws\u002F                        # ROS 1 Noetic workspace\n│   ├── scripts\u002F                   # ROS 1 runtime scripts (test_nav_control_rospy.py, waypoint_goal_bridge.py, sru\u002F, ...)\n│   └── src\u002F\n│       ├── odin_ros_driver\u002F       # Submodule -> manifoldsdk\u002Fodin_ros_driver (Odin1 sensor driver)\n│       ├── ons2_bringup\u002F          # Profile-driven ROS 1 launch files (go2, dobot, map_planner, neupan)\n│       ├── nav_interfaces\u002F        # Shared messages, services, and actions\n│       ├── sliding_map\u002F           # 360° ego-centric virtual scan & obstacle memory\n│       ├── map_planner\u002F           # Global 2D A* planner & scan temporal filter\n│       ├── neupan_ros\u002F            # ROS 1 action server wrapper for NeuPAN\n│       ├── mission_manager\u002F       # Multi-waypoint mission state machine\n│       ├── atomic_move\u002F           # Closed-loop move \u002F turn \u002F align services\n│       ├── unitree_control\u002F       # Unitree Go2 SDK2 velocity bridge\n│       ├── dobot_ros_control\u002F     # Dobot Lumo RPC velocity bridge & O1L launch\n│       └── odin_vlm_terminal\u002F     # VLM scene question-answering node\n├── ros2_ws\u002F                       # ROS 2 Jazzy workspace (1:1 core parity with ros_ws)\n│   ├── scripts\u002F                   # ROS 2 runtime scripts (test_nav_control_ros2.py, waypoint_goal_bridge.py, sru\u002F, ...)\n│   └── src\u002F\n│       ├── odin_ros_driver\u002F       # Submodule -> manifoldsdk\u002Fodin_ros_driver (Odin1 sensor driver)\n│       ├── ons2_bringup\u002F          # Generic profile-driven bringup.launch.py\n│       ├── nav_interfaces\u002F        # ROS 2 IDL messages, services, and actions\n│       ├── sliding_map\u002F           # ROS 2 360° virtual scan & obstacle memory\n│       ├── map_planner\u002F           # ROS 2 global A* planner & cloud\u002Fscan filters\n│       ├── neupan_ros\u002F            # ROS 2 action server + ros2_shim.py\n│       ├── mission_manager\u002F       # ROS 2 mission state machine & path safety validator\n│       ├── atomic_move\u002F           # ROS 2 closed-loop alignment node\n│       ├── sw01_ros_control\u002F      # ASTRALL SW01 SDK velocity bridge\n│       └── odin_vlm_terminal\u002F     # ROS 2 VLM scene question-answering node\n├── NeuPAN\u002F                        # Shared MPC + analytic DUNE local planner core (Python)\n├── web_console\u002F                   # Built-in browser control console (stack, map, missions, teleop, bags, camera, intercom)\n├── perception\u002F                    # Guide & clone instructions for ManifoldTechLtd\u002FOdin-perception\n├── docker\u002F                        # Docker setup for Jetson (ROS 1)\n└── docs\u002F                          # Documentation\n    ├── web_console.md             # ONS2 Web Console end-to-end user guide (+ web_console.zh-CN.md)\n    ├── usage\u002F                     # 01_quick_start, 02_parameter_tuning, 03_integrate_your_robot\n    ├── architecture\u002F              # ROBOT_PROFILE.md, ONS2_ARCHITECTURE.md, MODULE_DATAFLOW.md\n    └── TUNING_GUIDE.md            # Detailed parameter dictionary & troubleshooting reference\n```\n\n# 8. FAQ\n\n## 8.1 How do I check relocalization?\n\nOpen RViz (`rviz` on ROS1, `rviz2` on ROS2), set the fixed frame to `map`, and add the `TF` display. Relocalization succeeded when `map → odom → odin1_base_link` is connected.\n\n## 8.2 The start or goal is occupied after I publish a goal\n\nCheck the inflated map (`\u002Finflated_map`) in RViz. The start and goal must lie outside the inflation area. Adjust `navigation.inflation_radius` in `robots\u002F\u003Crobot>\u002Frobot.yaml`.\n\n## 8.3 The robot does not stop near the target\n\nThis is a NeuPAN tolerance issue. See [02 · Parameter Tuning](docs\u002Fusage\u002F02_parameter_tuning.md) and the [tuning guide](docs\u002FTUNING_GUIDE.md).\n\n## 8.4 ROS2 nodes run but cannot see each other\n\nAll nodes must use the same DDS domain, `ROS_DOMAIN_ID=98`. Set it in every terminal you open by hand.\n\n# 9. Acknowledgements\n\nThanks to the excellent work by [ROS Navigation](https:\u002F\u002Fgithub.com\u002Fros-planning\u002Fnavigation), [NeuPAN](https:\u002F\u002Fgithub.com\u002Fhanruihua\u002FNeuPAN), and [Ultralytics YOLO](https:\u002F\u002Fgithub.com\u002Fultralytics\u002Fultralytics).\n\nSpecial thanks to [hanruihua](https:\u002F\u002Fgithub.com\u002Fhanruihua) and the Odin1 team at Manifold Tech.\n\n# 10. License\n\nONS2 is released under the [GNU General Public License v3.0](LICENSE). Third-party components keep their own licenses; the full list includes NeuPAN (GPL-3.0), the Odin1 driver (Apache-2.0), `yolov5` (AGPL-3.0, optional submodule), and the ASTRALL SDK (proprietary, not distributed with this repository). Check the license of each component before redistributing it.\n","Odin Navigation Stack 2（ONS2）是一个面向地面移动平台的开源自主巡检导航系统。它基于高精度SLAM模块Odin1，提供多航点任务管理、动态障碍物感知与避让（融合滑动地图与NeuPAN局部规划器）、自然语言指令解析及视觉-语言模型（VLM）驱动的场景理解能力，并原生支持ROS1 Noetic与ROS2 Jazzy双运行时环境。系统集成Web控制台，支持远程监控、实时地图交互、视频流与数据录制。适用于室内外安防巡检、工业设施巡检、科研机器人平台等需长期稳定运行与语义级环境交互的自主导航场景。",2,"2026-11-24 04:53:57","CREATED_QUERY"]