Skip to content

Commit

Permalink
Merge branch 'hotfix-update_docker_documentation' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Jan 29, 2021
2 parents fd9fa44 + 20dc8d5 commit 6fb144b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,24 @@ python examples/run_smarts.py --algo SAC --scenario ./scenarios/loop --n_agents
If you're comfortable using docker or are on a platform without suitable support to easily run SMARTS (e.g. an older version of Ubuntu) you can run the following,

```bash
docker run --rm -it -v $(PWD):/src -p 8081:8081 huaweinoah/smarts:<version>
# E.g. docker run --rm -it -v $(PWD):/src -p 8081:8081 huaweinoah/smarts:v0.4.3-pre
$ cd /path/to/SMARTS
$ docker run --rm -it -v $PWD:/src -p 8081:8081 huaweinoah/smarts:<version>
# E.g. docker run --rm -it -v $PWD:/src -p 8081:8081 huaweinoah/smarts:v0.4.12
# <press enter>

# Run Envision server in the background
# This will only need to be run if you want visualisation
$ scl envision start -s ./scenarios -p 8081 &

# Build an example
# This needs to be done the first time and after changes to the example
$ scl scenario build scenarios/loop --clean

# Run an example
# add --headless if you do not need visualisation
$ python examples/single_agent.py scenarios/loop

# On your most machine visit http://localhost:8081 to see the running simulation in
# On your host machine visit http://localhost:8081 to see the running simulation in
# Envision.
```

Expand Down

0 comments on commit 6fb144b

Please sign in to comment.