# ani26052007/penguin-cmu-vln-challenge-2026 architecture

> Architecture diagram of the GitHub repository ani26052007/penguin-cmu-vln-challenge-2026, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ani26052007/penguin-cmu-vln-challenge-2026
- Repository: https://github.com/ani26052007/penguin-cmu-vln-challenge-2026

## Overview

#### Purpose and Scope
CMU-VLN-Challenge is a ROS 2 integration scaffold for vision-language navigation in Unity simulation and later a real mecanum-wheel robot. Competitors replace the sample AI module with a model that explores from onboard sensing, interprets one language query, and emits an answer or navigational output.

#### Runtime Entry Points
- Top-level simulator orchestration is provided through Docker Compose: `docker/compose.yml` and GPU variant `docker/compose_gpu.yml`.
- The team-owned container build/run interface is `ai_module/docker/Dockerfile`, `ai_module/docker/build.sh`, and `ai_module/docker/run.sh`.
- The default ROS 2 AI node is launched by `ai_module/src/dummy_vlm/launch/dummy_vlm.launch`.
- Base autonomy is a Git submodule at `autonomy_stack_mecanum_wheel_platform`; it operates independently of the AI module.

#### AI Module Contract
The replaceable AI implementation is the ROS package `ai_module/src/dummy_vlm`, defined by `ai_module/src/dummy_vlm/package.xml` and `ai_module/src/dummy_vlm/CMakeLists.txt`. Its sample node, `ai_module/src/dummy_vlm/src/dummyVLM.cpp`, establishes the required evaluator-facing interface:
- Consume `/challenge_question` (`String`).
- Publish numerical answers on `/numerical_response` (`Int32`).
- Publish grounded-object boxes on `/selected_object_marker` (`Marker`).
- Publish navigation commands on `/way_point_with_heading` (`Pose2D`).

#### Perception-to-Decision Flow
The autonomy system supplies camera imagery, registered/raw lidar, terrain maps, and state estimation to the AI module. A replacement model must build scene understanding through its own exploration, then classify/solve the received query as numerical counting, object grounding, or path following. Evaluation resets the system for every command, so scene memory is question-local; test-time sensing is limited to documented ROS topics rather than simulator-only ground truth.

#### Action and Safety Boundary
The AI module proposes waypoints only; base autonomy handles localization, terrain analysis, collision avoidance, and movement. Waypoints outside traversable terrain are adjusted by the system. Object markers and integer outputs bypass navigation and are consumed for visualization/evaluation. This boundary permits model changes under `ai_module/` without modifying robot-control infrastructure.

#### Training Assets and Evaluation Artifacts
Released task definitions are centralized in `questions/questions.json`, with scene-specific PDFs and reference trajectories such as `questions/arabic_room/trajectory_q4.ply`. Dummy inputs and outputs are packaged under `ai_module/src/dummy_vlm/data/`, including `question.txt`, `object_list.txt`, and `waypoints.ply`. These assets support development only; held-out Unity scenes drive evaluation.

#### Infrastructure and Deployment Constraints
The intended runtime is Ubuntu 24.04 with ROS Jazzy, Docker, Unity-based scenes, and optionally GPU-enabled Compose. Real-robot deployment runs the same ROS interface inside a team Docker container on onboard CPU/GPU hardware. External resources include downloadable scene models, the VLA-3D referential dataset, and optional online model APIs; submissions must preserve the AI-module layout and topic/message compatibility.

Main entry points: [`ai_module/src/dummy_vlm/src/dummyVLM.cpp`](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/src/dummy_vlm/src/dummyVLM.cpp) (Sample VLM node), [`docker/compose.yml`](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/docker/compose.yml) (Docker Compose), [`ai_module/docker/Dockerfile`](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/tree/main/ai_module/docker/Dockerfile) (Team AI container), [`autonomy_stack_mecanum_wheel_platform`](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/tree/main/autonomy_stack_mecanum_wheel_platform) (Mecanum autonomy stack)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime"]
  node_compose{{"Docker Compose<br/>orchestration<br/>[compose.yml]"}}
  node_gpu_compose{{"GPU Compose<br/>orchestration<br/>[compose_gpu.yml]"}}
  node_unity["Unity scenes<br/>simulator"]
  node_container["Team AI container"]
  node_container_scripts["Build and run scripts<br/>container interface<br/>[build.sh]"]
  node_evaluator["Evaluator and visualization<br/>evaluation"]
end

subgraph group_ai["Replaceable AI Module"]
  node_ai_package["dummy_vlm ROS package<br/>ROS 2 package<br/>[package.xml]"]
  node_launch["AI node launch<br/>ROS 2 launch<br/>[dummy_vlm.launch]"]
  node_sample_node["Sample VLM node<br/>ROS 2 node<br/>[dummyVLM.cpp]"]
  node_scene_model["Question-local scene model<br/>model logic"]
  node_response_router["Response routing<br/>decision logic"]
end

subgraph group_autonomy["Base Autonomy"]
  node_autonomy_stack["Mecanum autonomy stack<br/>ROS 2 submodule"]
  node_sensing["Onboard sensing and state<br/>ROS topics"]
  node_waypoint_handler["Traversable waypoint handling<br/>navigation safety"]
end

subgraph group_assets["Tasks &amp; Development Assets"]
  node_questions["Task definitions<br/>question catalog<br/>[questions.json]"]
  node_reference_trajectory["Reference trajectory<br/>development artifact<br/>[trajectory_q4.ply]"]
  node_dummy_data["Dummy development data<br/>development assets<br/>[question.txt]"]
end

node_gpu_compose -.->|"GPU variant of"| node_compose
node_compose -->|"orchestrates"| node_unity
node_container_scripts -->|"builds and runs"| node_container
node_compose -->|"runs"| node_container
node_container -->|"launches"| node_launch
node_launch -->|"starts"| node_sample_node
node_ai_package -->|"defines"| node_sample_node
node_unity -->|"simulation environment"| node_autonomy_stack
node_autonomy_stack -->|"publishes"| node_sensing
node_sensing -->|"camera, lidar, maps, state"| node_scene_model
node_evaluator -->|"/challenge_question &#40;String&#41;"| node_sample_node
node_sample_node -->|"passes query and observations"| node_scene_model
node_scene_model -->|"scene understanding"| node_response_router
node_response_router -->|"/numerical_response &#40;Int32&#41;"| node_evaluator
node_response_router -->|"/selected_object_marker &#40;Marker&#41;"| node_evaluator
node_response_router -->|"/way_point_with_heading &#40;Pose2D&#41;"| node_waypoint_handler
node_waypoint_handler -->|"safe motion command"| node_autonomy_stack
node_questions -.->|"includes scene reference"| node_reference_trajectory
node_dummy_data -.->|"development examples"| node_sample_node
node_questions -->|"evaluation tasks"| node_evaluator

click node_compose "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/docker/compose.yml"
click node_gpu_compose "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/docker/compose_gpu.yml"
click node_container "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/tree/main/ai_module/docker/Dockerfile"
click node_container_scripts "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/docker/build.sh"
click node_ai_package "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/src/dummy_vlm/package.xml"
click node_launch "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/src/dummy_vlm/launch/dummy_vlm.launch"
click node_sample_node "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/src/dummy_vlm/src/dummyVLM.cpp"
click node_autonomy_stack "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/tree/main/autonomy_stack_mecanum_wheel_platform"
click node_questions "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/questions/questions.json"
click node_reference_trajectory "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/questions/arabic_room/trajectory_q4.ply"
click node_dummy_data "https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/src/dummy_vlm/data/question.txt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_compose,node_gpu_compose,node_unity,node_container,node_container_scripts,node_evaluator toneBlue
class node_ai_package,node_launch,node_sample_node,node_scene_model,node_response_router toneAmber
class node_autonomy_stack,node_sensing,node_waypoint_handler toneMint
class node_questions,node_reference_trajectory,node_dummy_data toneRose
```

## Components

### Runtime

- [Docker Compose](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/docker/compose.yml): orchestration · Starts the simulator and ROS integration runtime. · `docker/compose.yml`
- [GPU Compose](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/docker/compose_gpu.yml): orchestration · GPU-enabled simulator runtime variant. · `docker/compose_gpu.yml`
- **Unity scenes**: simulator · Held-out scenes provide evaluation sensing.
- [Team AI container](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/tree/main/ai_module/docker/Dockerfile): container · Portable CPU/GPU runtime for simulation or robot deployment. · `ai_module/docker/Dockerfile`
- [Build and run scripts](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/docker/build.sh): container interface · `ai_module/docker/build.sh`
- **Evaluator and visualization**: evaluation · Consumes answers and markers; resets each command.

### Replaceable AI Module

- [dummy_vlm ROS package](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/src/dummy_vlm/package.xml): ROS 2 package · Evaluator-facing replaceable implementation boundary. · `ai_module/src/dummy_vlm/package.xml`
- [AI node launch](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/src/dummy_vlm/launch/dummy_vlm.launch): ROS 2 launch · `ai_module/src/dummy_vlm/launch/dummy_vlm.launch`
- [Sample VLM node](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/src/dummy_vlm/src/dummyVLM.cpp): ROS 2 node · Sample implementation of the required topic contract. · `ai_module/src/dummy_vlm/src/dummyVLM.cpp`
- **Question-local scene model**: model logic · Explores from onboard topics and interprets one query per reset.
- **Response routing**: decision logic · Selects counting, grounding, or navigation output.

### Base Autonomy

- [Mecanum autonomy stack](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/tree/main/autonomy_stack_mecanum_wheel_platform): ROS 2 submodule · Independent localization, terrain, safety, and motion system. · `autonomy_stack_mecanum_wheel_platform`
- **Onboard sensing and state**: ROS topics · Camera, lidar, terrain maps, and state estimation.
- **Traversable waypoint handling**: navigation safety · Adjusts proposed waypoints and executes safe motion.

### Tasks & Development Assets

- [Task definitions](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/questions/questions.json): question catalog · Released task questions and scene references. · `questions/questions.json`
- [Reference trajectory](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/questions/arabic_room/trajectory_q4.ply): development artifact · `questions/arabic_room/trajectory_q4.ply`
- [Dummy development data](https://github.com/ani26052007/penguin-cmu-vln-challenge-2026/blob/main/ai_module/src/dummy_vlm/data/question.txt): development assets · Packaged sample questions, objects, and waypoints. · `ai_module/src/dummy_vlm/data/question.txt`

## Connections

- GPU Compose → Docker Compose: GPU variant of
- Docker Compose → Unity scenes: orchestrates
- Build and run scripts → Team AI container: builds and runs
- Docker Compose → Team AI container: runs
- Team AI container → AI node launch: launches
- AI node launch → Sample VLM node: starts
- dummy_vlm ROS package → Sample VLM node: defines
- Unity scenes → Mecanum autonomy stack: simulation environment
- Mecanum autonomy stack → Onboard sensing and state: publishes
- Onboard sensing and state → Question-local scene model: camera, lidar, maps, state
- Evaluator and visualization → Sample VLM node: /challenge_question (String)
- Sample VLM node → Question-local scene model: passes query and observations
- Question-local scene model → Response routing: scene understanding
- Response routing → Evaluator and visualization: /numerical_response (Int32)
- Response routing → Evaluator and visualization: /selected_object_marker (Marker)
- Response routing → Traversable waypoint handling: /way_point_with_heading (Pose2D)
- Traversable waypoint handling → Mecanum autonomy stack: safe motion command
- Task definitions → Reference trajectory: includes scene reference
- Dummy development data → Sample VLM node: development examples
- Task definitions → Evaluator and visualization: evaluation tasks
