Skip to content

Commit

Permalink
feat: Update distributed simulation documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ll7 committed Jun 28, 2024
1 parent a9ee519 commit 913a2a2
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion doc/02_development/14_distributed_simulation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Distributed Simulation

If you have not enough compute resources, start the `carla-simulator-server' on a remote machine and execute the agent on your local machine.
If you have not enough compute resources, start the `carla-simulator-server` on a remote machine and execute the agent on your local machine.
As far as we know, you need more than **10 GB of VRAM** to run the server and the agent on the same machine.

## Author

Expand All @@ -25,6 +26,35 @@ Julian Trommer and Lennart Luttkus
- set the host ip address from the remote machine as the new carla-ip address
- start the agent on your local machine

### Ensure similarity between normal docker-compose and distributed docker-compose files

Carefully compare that their are no major differences between the `docker-compose.yml` and `docker-compose.distributed.yml` files.
Mainly, the `carla-simulator` service will not be executed in the non-distributed version.

### Set the `<ip-address>` of the carla simulator in docker-compose distributed files

Replace the argument `<carla-server-ip-address>` with the ip address of the remote machine.
You can find the ip address of the remote machine by executing the following command on the remote machine:

```bash
hostname -I
```

Typically, the ip address is the first one in the list.
`172.xxx.xxx.xxx` is the localhost address and not the relevant address.

Replace the ip-address in the following files:

- `docker-compose.distributed.yml`
- `docker-compose.dev.distributed.yml`

### Start the agent on your local machine

```bash
b5 run_distributed
b5 run_dev_distributed
```

## How do you know that you do not have enough compute resources?

```bash
Expand Down

0 comments on commit 913a2a2

Please sign in to comment.