Update README.md
Browse files
README.md
CHANGED
|
@@ -32,7 +32,30 @@ size_categories:
|
|
| 32 |
<a href="https://arxiv.org/abs/2512.01078"><img src="https://img.shields.io/badge/arXiv-2512.01078-b31b1b?logo=arxiv&logoColor=white" alt="arXiv:2512.01078" /></a>
|
| 33 |
</div>
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
## 🔥 News
|
|
|
|
| 36 |
- 2025.11 The white paper of **SimWorld** is available on arxiv!
|
| 37 |
- 2025.9 **SimWorld** has been accepted to NeurIPS 2025 main track as a **spotlight** paper! 🎉
|
| 38 |
- 2025.6 The first formal release of **SimWorld** has been published! 🚀
|
|
@@ -78,9 +101,16 @@ docs/ # Documentation source files
|
|
| 78 |
README.md
|
| 79 |
```
|
| 80 |
|
| 81 |
-
## Setup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
### Installation
|
| 83 |
-
|
|
|
|
| 84 |
Make sure to use Python 3.10 or later.
|
| 85 |
```bash
|
| 86 |
git clone https://github.com/SimWorld-AI/SimWorld.git
|
|
@@ -90,68 +120,46 @@ conda activate simworld
|
|
| 90 |
pip install -e .
|
| 91 |
```
|
| 92 |
|
| 93 |
-
|
| 94 |
-
Download the SimWorld server executable from huggingface. Choose the version according to your OS and the edition you want to use.
|
| 95 |
-
|
| 96 |
-
We offer two versions of the SimWorld UE package: the base version, which comes with an empty map, and the additional environments version, which provides extra pre-defined environments for more diverse simulation scenarios. Both versions include all the core features of SimWorld.
|
| 97 |
|
| 98 |
-
|
| 99 |
-
| --- | --- | --- | --- | --- |
|
| 100 |
-
| Windows | Base | Empty map for procedural generation | [Download](https://huggingface.co/datasets/SimWorld-AI/SimWorld/resolve/main/Base/Windows.zip) | Full agent features; smaller download. |
|
| 101 |
-
| Linux | Base | Empty map for procedural generation | [Download](https://huggingface.co/datasets/SimWorld-AI/SimWorld/resolve/main/Base/Linux.zip) | Full agent features; smaller download. |
|
| 102 |
-
|
| 103 |
-
Additional environment paks are available on the [environments paks page](https://huggingface.co/datasets/SimWorld-AI/SimWorld/tree/main/AdditionEnvironmentPaks). You may download them as needed according to the OS you are using.
|
| 104 |
-
|
| 105 |
-
**Note:**
|
| 106 |
-
1. Please check the [documentation](https://simworld.readthedocs.io/en/latest/getting_started/additional_environments.html#usage) for usage instructions of the **100+ Maps** version.
|
| 107 |
-
2. If you only need core functionality for development or testing, use **Base**. If you want richer demonstrations and more scenes, use the **Additional Environments (100+ Maps)**.
|
| 108 |
-
|
| 109 |
-
### Quick Start
|
| 110 |
|
| 111 |
-
|
|
|
|
|
|
|
| 112 |
|
| 113 |
-
|
|
|
|
| 114 |
|
| 115 |
-
|
|
|
|
|
|
|
| 116 |
|
| 117 |
-
|
| 118 |
-
- `config/example.yaml` is provided as a template for custom configurations.
|
| 119 |
|
| 120 |
-
Users can switch between different configurations by specifying a custom configuration file path through the `Config` class.
|
| 121 |
|
| 122 |
-
|
| 123 |
|
| 124 |
-
|
| 125 |
-
```bash
|
| 126 |
-
cp config/example.yaml config/your_config.yaml
|
| 127 |
-
```
|
| 128 |
|
| 129 |
-
|
|
|
|
| 130 |
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
```
|
| 136 |
|
| 137 |
-
|
| 138 |
-
|
|
|
|
|
|
|
| 139 |
|
| 140 |
-
|
| 141 |
-
SimWorld supports a variety of sensors, including RGB images, segmentation maps, and depth images. For more details, please refer to the [sensors](https://simworld.readthedocs.io/en/latest/components/ue_detail.html#sensors) and the example script `examples/camera.ipynb`.
|
| 142 |
|
| 143 |
-
####
|
| 144 |
-
All APIs are located in `simworld/communicator`. Some of the most commonly used ones are listed below:
|
| 145 |
-
- `communicator.get_camera_observation`
|
| 146 |
-
- `communicator.spawn_object`
|
| 147 |
-
- `communicator.spawn_agent`
|
| 148 |
-
- `communicator.generate_world`
|
| 149 |
-
- `communicator.clear_env`
|
| 150 |
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
Once the SimWorld UE5 environment is running, you can connect from Python and control an in-world humanoid agent in just a few lines:
|
| 154 |
-
(The whole example of minimal demo is shown in `examples/gym_interface_demo.ipynb`)
|
| 155 |
|
| 156 |
```python
|
| 157 |
from simworld.communicator.unrealcv import UnrealCV
|
|
@@ -199,12 +207,12 @@ class Environment:
|
|
| 199 |
self.comm.spawn_agent(self.agent, name=None, model_path=agent_bp, type="humanoid")
|
| 200 |
|
| 201 |
# Define a target position the agent is encouraged to move toward (example value)
|
| 202 |
-
self.target = Vector(
|
| 203 |
|
| 204 |
# Return initial observation (optional, but RL-style)
|
| 205 |
-
observation = self.
|
| 206 |
-
|
| 207 |
-
return
|
| 208 |
|
| 209 |
def step(self, action):
|
| 210 |
"""Use action planner to execute the given action."""
|
|
@@ -216,8 +224,8 @@ class Environment:
|
|
| 216 |
# Get current location from UE (x, y, z) and convert to 2D Vector
|
| 217 |
location = Vector(*self.comm.unrealcv.get_location(self.agent)[:2])
|
| 218 |
|
| 219 |
-
|
| 220 |
-
|
| 221 |
|
| 222 |
# Reward: negative Euclidean distance in 2D plane
|
| 223 |
reward = -location.distance(self.target)
|
|
@@ -230,7 +238,7 @@ if __name__ == "__main__":
|
|
| 230 |
comm = Communicator(ucv)
|
| 231 |
|
| 232 |
# Create the environment wrapper
|
| 233 |
-
agent = Agent(goal='Go to (1700, -1700)
|
| 234 |
env = Environment(comm)
|
| 235 |
|
| 236 |
obs = env.reset()
|
|
@@ -243,6 +251,67 @@ if __name__ == "__main__":
|
|
| 243 |
# Plug this into your RL loop / logging as needed
|
| 244 |
```
|
| 245 |
|
| 246 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
|
| 248 |
[](https://www.star-history.com/#SimWorld-AI/SimWorld&type=date&legend=bottom-right)
|
|
|
|
| 32 |
<a href="https://arxiv.org/abs/2512.01078"><img src="https://img.shields.io/badge/arXiv-2512.01078-b31b1b?logo=arxiv&logoColor=white" alt="arXiv:2512.01078" /></a>
|
| 33 |
</div>
|
| 34 |
|
| 35 |
+
## 🎬 Demonstration
|
| 36 |
+
<!-- <p align="center">
|
| 37 |
+
<a href="https://youtu.be/-e19MzwDhy4" target="_blank" rel="noopener noreferrer">
|
| 38 |
+
<img
|
| 39 |
+
src="https://img.youtube.com/vi/-e19MzwDhy4/0.jpg"
|
| 40 |
+
alt="SimWorld Demo Video"
|
| 41 |
+
/>
|
| 42 |
+
</a>
|
| 43 |
+
</p> -->
|
| 44 |
+
<p align="center">
|
| 45 |
+
<a href="https://www.youtube.com/watch?v=SfOifXTupgY" target="_blank" rel="noopener noreferrer">
|
| 46 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/6700678116bb14dfc9750d02/fzcesbX2oyJ4bfFv9Ed7E.jpeg" width="840">
|
| 47 |
+
</img>
|
| 48 |
+
</a>
|
| 49 |
+
</p>
|
| 50 |
+
|
| 51 |
+
<p align="center">
|
| 52 |
+
<a href="https://www.youtube.com/@SimWorld-AI" target="_blank" rel="noopener noreferrer">
|
| 53 |
+
▶ See all our demo videos on YouTube
|
| 54 |
+
</a>
|
| 55 |
+
</p>
|
| 56 |
+
|
| 57 |
## 🔥 News
|
| 58 |
+
- 2026.1 **SimWorld** now supports importing customized environments and agents!
|
| 59 |
- 2025.11 The white paper of **SimWorld** is available on arxiv!
|
| 60 |
- 2025.9 **SimWorld** has been accepted to NeurIPS 2025 main track as a **spotlight** paper! 🎉
|
| 61 |
- 2025.6 The first formal release of **SimWorld** has been published! 🚀
|
|
|
|
| 101 |
README.md
|
| 102 |
```
|
| 103 |
|
| 104 |
+
## ⚙️ Setup
|
| 105 |
+
|
| 106 |
+
This section walks through the minimal setup to run SimWorld using our provided UE packages and the Python client. If you want to use your own custom environments, assets, or agent models, you can import them via `.pak` files. See [Make Your SimWorld](#make-your-simworld) for instructions.
|
| 107 |
+
|
| 108 |
+
**System Requirements:** SimWorld requires Windows or Linux operating system, a dedicated GPU with ≥6GB VRAM, 32GB RAM, and 50-200GB disk space depending on the package. For detailed hardware requirements and recommendations, see the [installation guide](https://simworld.readthedocs.io/en/latest/getting_started/installation.html).
|
| 109 |
+
|
| 110 |
+
|
| 111 |
### Installation
|
| 112 |
+
#### Step 1. Install the Python Client
|
| 113 |
+
|
| 114 |
Make sure to use Python 3.10 or later.
|
| 115 |
```bash
|
| 116 |
git clone https://github.com/SimWorld-AI/SimWorld.git
|
|
|
|
| 120 |
pip install -e .
|
| 121 |
```
|
| 122 |
|
| 123 |
+
#### Step 2. Download the UE Server Package
|
|
|
|
|
|
|
|
|
|
| 124 |
|
| 125 |
+
First, download and extract the **Base** UE server package for your OS. The Base package includes two lightweight city scenes and one empty map for quickly testing SimWorld’s core features, including core agent interaction and procedural city generation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
+
- **Base (required, 2 city maps and 1 empty map)**
|
| 128 |
+
- **Windows:** [Download](https://huggingface.co/datasets/SimWorld-AI/SimWorld/resolve/main/Base/Windows.zip)
|
| 129 |
+
- **Linux:** [Download](https://huggingface.co/datasets/SimWorld-AI/SimWorld/resolve/main/Base/Linux.zip)
|
| 130 |
|
| 131 |
+
If you want more pre-built scenes for demos and diverse scenarios, you can optionally install **Additional Environments (100+ Maps)**. This is an add-on map pack that extends the Base installation. Download the maps you need and copy the `.pak` files into the Base server folder at:
|
| 132 |
+
`SimWorld/Content/Paks/`.
|
| 133 |
|
| 134 |
+
- **Additional Environments (optional, 100+ maps)**
|
| 135 |
+
- **Windows:** [Download](https://huggingface.co/datasets/SimWorld-AI/SimWorld/tree/main/AdditionEnvironmentPaks/Windows)
|
| 136 |
+
- **Linux:** [Download](https://huggingface.co/datasets/SimWorld-AI/SimWorld/tree/main/AdditionEnvironmentPaks/Linux)
|
| 137 |
|
| 138 |
+
The Additional Environments package is organized as separate `.pak` files, so you can download only the maps you need. Please check the [download and installation](https://simworld.readthedocs.io/en/latest/getting_started/additional_environments.html#download-and-installation) for usage instructions, including how to load specific maps and what each `.pak` contains.
|
|
|
|
| 139 |
|
|
|
|
| 140 |
|
| 141 |
+
### Quick Start
|
| 142 |
|
| 143 |
+
We provide several examples of code in [examples/](examples/), showcasing how to use the basic functionalities of SimWorld, including city layout generation, traffic simulation, asset retrieval, and activity-to-actions. Please follow the examples to see how SimWorld works.
|
|
|
|
|
|
|
|
|
|
| 144 |
|
| 145 |
+
#### Step 1. Start the UE Server
|
| 146 |
+
Start the SimWorld UE server first, then run the Python examples. From the extracted UE server package directory:
|
| 147 |
|
| 148 |
+
- **Windows:** double-click `SimWorld.exe`, or launch it from the command line:
|
| 149 |
+
```bash
|
| 150 |
+
./SimWorld.exe <MAP_PATH>
|
| 151 |
+
```
|
|
|
|
| 152 |
|
| 153 |
+
- **Linux:** run:
|
| 154 |
+
```bash
|
| 155 |
+
./SimWorld.sh <MAP_PATH>
|
| 156 |
+
```
|
| 157 |
|
| 158 |
+
`<MAP_PATH>` refers to the Unreal Engine internal path to a map file (e.g., `/Game/hospital/map/demo.umap`). SimWorld's **base** binary contains 2 city maps and 1 empty map. See [Base Environments](https://simworld.readthedocs.io/en/latest/getting_started/base_environments.html) for details. In addition, users can download 100+ **additional environment paks**. See the [Additional Environments](https://simworld.readthedocs.io/en/latest/getting_started/additional_environments.html) for the installation and complete list of available map paths. If `<MAP_PATH>` is not specified, the default map (`/Game/Maps/demo_1`) will be open.
|
|
|
|
| 159 |
|
| 160 |
+
#### Step 2. Run a Minimal Gym-Style Example
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
|
| 162 |
+
Once the SimWorld UE5 environment is running, you can connect from Python and control an in-world humanoid agent in just a few lines. The full demo is provided in [examples/gym_interface_demo.ipynb](examples/gym_interface_demo.ipynb). You can also run other example scripts/notebooks under [examples/](examples/).
|
|
|
|
|
|
|
|
|
|
| 163 |
|
| 164 |
```python
|
| 165 |
from simworld.communicator.unrealcv import UnrealCV
|
|
|
|
| 207 |
self.comm.spawn_agent(self.agent, name=None, model_path=agent_bp, type="humanoid")
|
| 208 |
|
| 209 |
# Define a target position the agent is encouraged to move toward (example value)
|
| 210 |
+
self.target = Vector(1700, -1700)
|
| 211 |
|
| 212 |
# Return initial observation (optional, but RL-style)
|
| 213 |
+
observation = self.communicator.unrealcv.get_location(self.agent_name)
|
| 214 |
+
ret = Vector(observation[0], observation[1])
|
| 215 |
+
return ret
|
| 216 |
|
| 217 |
def step(self, action):
|
| 218 |
"""Use action planner to execute the given action."""
|
|
|
|
| 224 |
# Get current location from UE (x, y, z) and convert to 2D Vector
|
| 225 |
location = Vector(*self.comm.unrealcv.get_location(self.agent)[:2])
|
| 226 |
|
| 227 |
+
observation = location
|
| 228 |
+
self.agent.position = location
|
| 229 |
|
| 230 |
# Reward: negative Euclidean distance in 2D plane
|
| 231 |
reward = -location.distance(self.target)
|
|
|
|
| 238 |
comm = Communicator(ucv)
|
| 239 |
|
| 240 |
# Create the environment wrapper
|
| 241 |
+
agent = Agent(goal='Go to (1700, -1700).')
|
| 242 |
env = Environment(comm)
|
| 243 |
|
| 244 |
obs = env.reset()
|
|
|
|
| 251 |
# Plug this into your RL loop / logging as needed
|
| 252 |
```
|
| 253 |
|
| 254 |
+
## 📚 Configuration and API Reference
|
| 255 |
+
|
| 256 |
+
### Configuration
|
| 257 |
+
|
| 258 |
+
SimWorld uses a YAML configuration file to control **global simulator settings** (e.g., `seed`, `dt`, UE blueprint paths) and **module behaviors** (e.g., city generation, traffic simulation, asset retrieval, and agent/LLM options).
|
| 259 |
+
|
| 260 |
+
For a comprehensive reference of all configuration parameters, see the [Configuration Reference](https://simworld.readthedocs.io/en/latest/getting_started/configuration.html) documentation.
|
| 261 |
+
|
| 262 |
+
We provide two configuration files to help you get started:
|
| 263 |
+
- [simworld/config/default.yaml](simworld/config/default.yaml) contains the **built-in defaults** shipped with the package (reference/fallback). We recommend **not editing** this file.
|
| 264 |
+
- [config/example.yaml](config/example.yaml) is a **user template** with placeholders for local paths. Copy it to create your own config.
|
| 265 |
+
|
| 266 |
+
If you want to customize SimWorld for your own setup, follow the steps below to create and load your own config:
|
| 267 |
+
|
| 268 |
+
1. Create a custom config from the template:
|
| 269 |
+
```bash
|
| 270 |
+
cp config/example.yaml config/your_config.yaml
|
| 271 |
+
```
|
| 272 |
+
|
| 273 |
+
2. Modify the configuration values in `your_config.yaml` according to your needs.
|
| 274 |
+
|
| 275 |
+
3. Load your custom configuration in your code:
|
| 276 |
+
```python
|
| 277 |
+
from simworld.config import Config
|
| 278 |
+
config = Config('path/to/your_config') # use absolute path here
|
| 279 |
+
```
|
| 280 |
+
|
| 281 |
+
### API and Usage
|
| 282 |
+
|
| 283 |
+
#### Agent Action Space
|
| 284 |
+
SimWorld provides a comprehensive action space for pedestrians, vehicles, and robots (e.g., move forward, sit down, pick up). For more details, see [actions](https://simworld.readthedocs.io/en/latest/components/agent_system.html#action-space) and [examples/ue_command.ipynb](examples/ue_command.ipynb).
|
| 285 |
+
|
| 286 |
+
#### Using UE Cameras and Sensors
|
| 287 |
+
SimWorld supports a variety of sensors, including RGB images, segmentation maps, and depth images. For more details, please refer to the [sensors](https://simworld.readthedocs.io/en/latest/components/ue_detail.html#sensors) and the example script [examples/camera.ipynb](examples/camera.ipynb).
|
| 288 |
+
|
| 289 |
+
#### Commonly Used APIs
|
| 290 |
+
All APIs are located in [simworld/communicator](simworld/communicator). Some of the most commonly used ones are listed below:
|
| 291 |
+
- [communicator.get_camera_observation](simworld/communicator/communicator.py#L195) (Get camera images: RGB, depth, or segmentation mask)
|
| 292 |
+
- [communicator.spawn_object](simworld/communicator/communicator.py#L574) (Spawn objects in the environment at specified position)
|
| 293 |
+
- [communicator.spawn_agent](simworld/communicator/communicator.py#L603) (Spawn agents like humanoids or robots in the environment)
|
| 294 |
+
- [communicator.generate_world](simworld/communicator/communicator.py#L812) (Generate procedural city world from configuration)
|
| 295 |
+
- [communicator.clear_env](simworld/communicator/communicator.py#L880) (Clear all objects from the environment)
|
| 296 |
+
|
| 297 |
+
<a id="make-your-simworld"></a>
|
| 298 |
+
## 🛠️ Make Your SimWorld
|
| 299 |
+
|
| 300 |
+
Bring your own Unreal Engine environments, assets, and agent models into SimWorld. This lets you add new maps, objects, and characters beyond the built-in library. For example, you can turn almost any idea into a playable world, such as a rainy campus, a night market, or a sci-fi city, and then drop agents into it to explore, interact, and learn. To import your content into SimWorld, package it as a custom `.pak` file. See full instructions in [Make Your Own Pak Files](https://simworld.readthedocs.io/en/latest/customization/make_your_own_pak.html).
|
| 301 |
+
|
| 302 |
+
## 🔮 Next Steps
|
| 303 |
+
|
| 304 |
+
The SimWorld framework is under active development. Future releases will include:
|
| 305 |
+
|
| 306 |
+
- [x] **Plugin System**: Support for importing user-defined custom environments and agents to extend SimWorld's capabilities.
|
| 307 |
+
- [ ] **Comprehensive Agent Framework**: A unified training and evaluation pipeline for autonomous agents.
|
| 308 |
+
- [ ] **Code Generation for Scenes**: AI-powered coding agents capable of generating diverse simulation scenarios programmatically.
|
| 309 |
+
- [ ] **Interactive Layout Editor**: Web-based interface for real-time city layout visualization and editing.
|
| 310 |
+
|
| 311 |
+
## 🤝 Contributing
|
| 312 |
+
|
| 313 |
+
We welcome contributions from the community! Whether you want to report bugs, suggest features, or submit code improvements, your input is valuable. Please check out our [Contributing Guidelines](CONTRIBUTING.md) for details on how to get started.
|
| 314 |
+
|
| 315 |
+
## ⭐ Star History
|
| 316 |
|
| 317 |
[](https://www.star-history.com/#SimWorld-AI/SimWorld&type=date&legend=bottom-right)
|