-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46264d5
commit c333e02
Showing
3 changed files
with
63 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,48 @@ | ||
# SimulationSandbox | ||
|
||
Minimalistic simulation environment with simple server-client interaction. | ||
Minimalistic simulation environment with simple server-client interaction. Enables modifying the simulation state in real time from notebook controllers, and plotting the state on distant clients. | ||
|
||
## TODO | ||
## Install | ||
|
||
- Better understand how to do clean socket classes | ||
Get the repo : | ||
|
||
- Put colors inside agents state | ||
```bash | ||
git clone [email protected]:corentinlger/SimulationSandbox.git | ||
cd SimulationSandox/ | ||
``` | ||
|
||
- Add static objects | ||
Setup a virtual environment and install the dependencies : | ||
|
||
```bash | ||
python3 -m venv myvenv | ||
source myvenv/bin/activate | ||
pip install -r requirements.txt | ||
``` | ||
|
||
## Usage | ||
|
||
You can run a simulation on your machine (using either the 2D or 3D envs): | ||
|
||
```bash | ||
python3 simulate.py | ||
``` | ||
|
||
Or host it on a server : | ||
|
||
```bash | ||
python3 server.py | ||
``` | ||
|
||
Visualize it on distant clients : | ||
|
||
```bash | ||
python3 client.py | ||
``` | ||
|
||
And modify the state of the simulation using [this notebook client](notebook_controller.ipynb) | ||
|
||
## TODO : | ||
|
||
- Stop the atrocious popping up of matplotlib interactive figures | ||
- Replace sending the first example state with pickle by generating it on the client side | ||
- Further check the interaction between 3D sim and notebook client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters