Skip to content

Commit

Permalink
docs: update example and changelog (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: friedmainfunction <73703265+friedmainfunction@users.noreply.github.com>
  • Loading branch information
zmsn-2077 and friedmainfunction authored Mar 14, 2023
1 parent 8001164 commit 7d78e4c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

------
## [0.1.2] 2023-03-14

### Added
- feat: support rgb_array_list and depth_array_list mode for render in PR [#26](https://github.com/PKU-MARL/safety-gymnasium/pull/26).
- fix: fix bug in vision observation in PR [#28](https://github.com/PKU-MARL/safety-gymnasium/pull/28).
- chore(vision_env): update default resolution of vision environments in PR [#29](https://github.com/PKU-MARL/safety-gymnasium/pull/29).

## [0.1.1] 2023-02-27

### Added
- fix: fix origin AutoresetWrapper doesn't have cost in PR [#23](https://github.com/PKU-MARL/safety-gymnasium/pull/23).
- fix: fix the bug in the observation space of the compass in PR [#17](https://github.com/PKU-MARL/safety-gymnasium/pull/17).
- feat: enable more flake8 checks in PR [#24](https://github.com/PKU-MARL/safety-gymnasium/pull/24).

## [0.1.0b0] 2023-02-08

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,11 @@ env_name = 'SafetyPointGoal1-v0'
env = safety_gymnasium.make(env_name)

obs, info = env.reset()
terminated = False

while not terminated:
while True:
act = env.action_space.sample()
obs, reward, cost, terminated, truncated, info = env.step(act)
if terminated or truncated:
break
env.render()
```

Expand Down

0 comments on commit 7d78e4c

Please sign in to comment.