A high-fidelity platform for multimodal embodied agent training (Unreal Engine + Python SDK)
Links
- Homepage: https://tongsim-platform.github.io/tongsim
- Documentation: https://bigai-ai.github.io/tongsim/
- Asset Library (Hugging Face): https://huggingface.co/datasets/bigai/TongSIM-Asset
TongSIM is a high-fidelity, general-purpose platform for embodied agent training and testing built on Unreal Engine, supporting tasks from low-level single-agent skills (e.g., navigation) to high-level scenarios such as multi-agent social simulation and human–AI collaboration. TongSIM constructs 100+ diverse multi-room indoor scenarios alongside an open-ended, interaction-rich outdoor simulated town, and incorporates thousands of interactive 3D object models spanning 500+ categories.
Currently, indoor rooms are fully accessible, while outdoor environments remain under continuous development and optimization. We will gradually open access to these outdoor assets based on actual research needs, with the goal of providing more comprehensive support for the scientific work of our community's researchers. Please stay tuned for updates.
On top of the environment, TongSIM provides a comprehensive evaluation system and a suite of benchmarks covering major agent capabilities: perception, cognition, decision-making, learning, execution, and social collaboration. The platform also offers high-fidelity and customizable scenes, rich annotations, and parallel training to accelerate research and development of general embodied intelligence.
This repository contains:
- Unreal Engine project (
unreal/) - Python SDK and examples (
src/,examples/) - Documentation site sources (
docs/,mkdocs.yml)
- High-fidelity indoor + outdoor worlds: 100+ multi-room indoor scenes and an open-ended outdoor town
- Large-scale interactive assets: thousands of objects spanning 500+ categories
- Benchmarks and evaluation: perception, cognition, decision-making, learning, execution, and social collaboration
- Multimodal perception: built-in vision and audio; extensible to other modalities
- Physics-consistent simulation with causal world dynamics and rich annotations
- Parallel simulation for scalable training
- Easy integration: Python SDK over gRPC with practical examples
- Extensible, plugin-oriented architecture
- OS: Windows 10/11 or Ubuntu 22.04
- Unreal Engine: 5.6 (install via Epic Games Launcher)
- Python: 3.12+
Use either uv (recommended) or plain pip.
-
Install
uv -
Create and sync a virtual environment (defaults to installing
devanddocsgroups as configured):uv venv uv sync
-
Generate protobuf artifacts:
uv run scripts/generate_pb2.py -
Run examples (start the UE project first; gRPC at
127.0.0.1:5726):uv run examples/quickstart_demo.py uv run examples/voxel.py
- Install the package in editable mode:
pip install -e . - Optional: dev/docs tooling (for contributing or building docs):
pip install pre-commit black ruff mkdocs mkdocs-material mkdocstrings-python mkdocs-static-i18n mkdocs-redirects pytest pytest-asyncio pre-commit install
- Generate protobuf artifacts:
python scripts/generate_pb2.py - Run examples (start the UE project first):
python examples\quickstart_demo.py python examples\voxel.py
- Install Unreal Engine 5.6 via Epic Games Launcher (Editor build matching your platform).
- Install Git:
winget install Git.Git -s winget
- Clone the repo:
git clone https://github.com/bigai-ai/tongsim cd tongsim
- Download Unreal Engine assets into
unreal/Content:uv run scripts/fetch_unreal_content.py - (First-time) Download and extract the TongSimGrpc gRPC dependency bundle (Release asset) to the repo root:
- Windows (PowerShell):
$base = "https://github.com/bigai-ai/tongsim/releases/download/tongsimgrpc-deps-v1.0" Invoke-WebRequest "$base/TongSimGrpc_deps.zip" -OutFile TongSimGrpc_deps.zip Invoke-WebRequest "$base/TongSimGrpc_deps.zip.sha256" -OutFile TongSimGrpc_deps.zip.sha256 # (Optional) Verify checksum Get-FileHash .\TongSimGrpc_deps.zip -Algorithm SHA256 Get-Content .\TongSimGrpc_deps.zip.sha256 # Extract to repo root Expand-Archive .\TongSimGrpc_deps.zip -DestinationPath . -Force
- Linux (Bash):
base="https://github.com/bigai-ai/tongsim/releases/download/tongsimgrpc-deps-v1.0" curl -L -o TongSimGrpc_deps.zip "$base/TongSimGrpc_deps.zip" curl -L -o TongSimGrpc_deps.zip.sha256 "$base/TongSimGrpc_deps.zip.sha256" # (Optional) Verify checksum sha256sum -c TongSimGrpc_deps.zip.sha256 # Extract to repo root unzip -o TongSimGrpc_deps.zip
unreal/Plugins/TongSimGrpc/DynamicLibrariesunreal/Plugins/TongSimGrpc/GrpcLibrariesunreal/Plugins/TongSimGrpc/GrpcPrograms
- Windows (PowerShell):
- Generate project files (either):
- File Explorer: right-click
unreal/TongSim_Lite.uproject-> "Generate Visual Studio project files" - Or open the
.uprojectto let UE generate and compile modules
- File Explorer: right-click
- Open
unreal/TongSim_Lite.slnin Visual Studio and select:- Configuration: Development Editor
- Platform: Win64 Then Build (first build compiles TongSIM_* modules and plugins).
- Double-click
unreal/TongSim_Lite.uprojectto open UE 5.6 and ensure plugins (TongSIMCore, TongSIMGrpc, Puerts, etc.) are enabled. - If Windows Firewall prompts, allow UE Editor network access (gRPC defaults to
127.0.0.1:5726).
Verify Python SDK connectivity to a local UE instance (default gRPC 5726):
uv run python - <<'PY'
from tongsim import TongSim
sim = TongSim("127.0.0.1:5726")
print("connected", sim.context.uuid)
sim.close()
PYIf a UUID prints with "connected", the connection is working.
- Sources in
docs/, configured bymkdocs.yml - Build/serve locally:
uv run mkdocs build uv run mkdocs serve
- See:
docs/quickstart/*,docs/guides/*,docs/architecture/*,docs/api/*
├─ src/tongsim/ # Python SDK core
├─ examples/ # Examples (RL, voxel, etc.)
├─ docs/ # Documentation sources (MkDocs)
├─ unreal/ # Unreal project (TongSim_Lite.uproject)
├─ scripts/ # Utility scripts
├─ pyproject.toml # Python project configuration (uv-compatible)
└─ uv.lock # Dependency lockfile
- Report issues with system info, UE/SDK versions
- Feature requests are welcome via Issues; PRs are appreciated
See CONTRIBUTING.md.
See LICENSE.
If you use TongSIM in your research, please cite:
@article{sun2025tongsim,
title={TongSIM: A General Platform for Simulating Intelligent Machines},
author={Sun, Zhe and Wu, Kunlun and Fu, Chuanjian and Song, Zeming and Shi, Langyong and Xue, Zihe and Jing, Bohan and Yang, Ying and Gao, Xiaomeng and Li, Aijia and others},
journal={arXiv preprint arXiv:2512.20206},
year={2025}
}Happy simulating with TongSIM!