Skip to content

Commit

Permalink
Fix tracking example to PID and quadrotor
Browse files Browse the repository at this point in the history
  • Loading branch information
JacopoPan committed Feb 22, 2022
1 parent 7cb3d72 commit 81bec94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Overview of [`safe-control-gym`](https://arxiv.org/abs/2109.06325)'s API:
Familiarize with APIs and environments with the scripts in [`examples/`](https://github.com/utiasDSL/safe-control-gym/tree/main/examples)
```
$ cd ./examples/ # Navigate to the examples folder
$ python3 tracking.py --task quadrotor --algo pid --overrides ./tracking.yaml # PID trajectory tracking with the 2D quadcopter
$ python3 tracking.py --overrides ./tracking.yaml # PID trajectory tracking with the 2D quadcopter
$ python3 verbose_api.py --system cartpole --overrides verbose_api.yaml # Printout of the extended safe-control-gym APIs
```

Expand Down
6 changes: 3 additions & 3 deletions examples/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Run as:
$ python3 tracking.py --task quadrotor --algo pid --overrides ./tracking.yaml
$ python3 tracking.py --overrides ./tracking.yaml
"""
import time
Expand Down Expand Up @@ -38,10 +38,10 @@ def main():

# Create controller.
env_func = partial(make,
config.task,
'quadrotor',
**config.quadrotor_config
)
ctrl = make(config.algo,
ctrl = make('pid',
env_func,
)

Expand Down

0 comments on commit 81bec94

Please sign in to comment.