Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breakable-bottles observation space correction #93

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mo_gymnasium/envs/breakable_bottles/breakable_bottles.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BreakableBottles(Env, EzPickle):
The observation space is a dictionary with 4 keys:
- location: the current location of the agent
- bottles_carrying: the number of bottles the agent is currently carrying (0, 1 or 2)
- bottles_delivered: the number of bottles the agent has delivered (0 or 1)
- bottles_delivered: the number of bottles the agent has delivered (0, 1 or 2)
- bottles_dropped: for each location, a boolean flag indicating if that location currently contains a bottle

## Reward Space
Expand Down Expand Up @@ -96,11 +96,11 @@ def __init__(
{
"location": Discrete(self.size),
"bottles_carrying": Discrete(3),
"bottles_delivered": Discrete(2),
"bottles_delivered": Discrete(3),
"bottles_dropped": MultiBinary(self.size - 2),
}
)
self.num_observations = 240
self.num_observations = 360

self.action_space = Discrete(3) # LEFT, RIGHT, PICKUP
self.num_actions = 3
Expand Down
Loading