This repository was archived by the owner on Jun 19, 2025. It is now read-only.
Draft
Conversation
Directory structure following layout defined in: https://medium.com/@apoddar573/making-your-own-custom-environment-in-gym-c3b65ff8cdaa PyDodo/ ├── ... ├── pydodo │ ├── ... ├── README.md ├── birdhouse │ ├── __init__.py │ └── envs │ ├── __init__.py │ └── birdhouse.py ├── requirements.txt └── setup.py Adding query to test for pydodo interaction in: new file: birdhouse/envs/birdhouse.py +import pydodo as dodo + print(dodo.all_positions().values) This shows that one can sample an action and query pydodo as well Example code: >>> import gym >>> import birdhouse >>> env = gym.make('birdhouse-v0') >>> for _ in range(100): ... env.step(env.action_space.sample()) ... REF: - http://gym.openai.com/docs/#environments - https://medium.com/@apoddar573/making-your-own-custom-environment-in-gym-c3b65ff8cdaa new file: birdhouse/__init__.py new file: birdhouse/envs/__init__.py new file: birdhouse/envs/birdhouse.py modified: setup.py
Minor modification to suppress warning:
dodo/PyDodo/pydodo/utils.py:35
Warning Message:
SyntaxWarning: assertion is always true, perhaps remove parentheses?
assert (
modified: pydodo/utils.py
modified: birdhouse/__init__.py modified: birdhouse/envs/__init__.py
SimughEnv originally defined in:
PyDodo/pydodo/env.py
BirdhouseEnv originally defined in:
nats-birdhouse:nats/issue/79/openai
Example code to run episodes:
$ pip install -e PyDodo && python
>>> import gym
>>> import birdhouse
>>> env = gym.make('birdhouse-v1')
>>> for _ in range(10):
... env.step(env.action_space.sample())
...
modified: birdhouse/envs/birdhouse.py
modified: birdhouse/envs/birdhouse.py
Incorporate a simple step through with rule based steps. Do not reset simulation. modified: PyDodo/birdhouse/envs/birdhouse.py
modified: PyDodo/setup.py
new file: PyDodo/plan.py
environment now implemented in birdhouse, which makes this a duplicate
get config from the master not develop branch (this was a short term hack
reflect change in env name
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integrate PyDodo with OpenAI gym.
Closes alan-turing-institute/nats#151