Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Cooperative Cuisine Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Social Cognitive Systems
CoCoSy
Cooperative Cuisine Environment
Commits
6500d705
Commit
6500d705
authored
1 year ago
by
fheinrich
Browse files
Options
Downloads
Patches
Plain Diff
Plates can be returned clean, Configurable.
parent
23ab623d
No related branches found
No related tags found
1 merge request
!52
Resolve "gym env"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
overcooked_simulator/counters.py
+3
-2
3 additions, 2 deletions
overcooked_simulator/counters.py
with
3 additions
and
2 deletions
overcooked_simulator/counters.py
+
3
−
2
View file @
6500d705
...
...
@@ -461,7 +461,8 @@ class PlateConfig:
"""
dirty plates at the start.
"""
plate_delay
:
list
[
int
,
int
]
=
dataclasses
.
field
(
default_factory
=
lambda
:
[
5
,
10
])
"""
The uniform sampling range for the plate delay between serving and return in seconds.
"""
return_dirty
:
bool
=
True
"""
Specifies if plates are returned dirty or clean to the plate dispenser.
"""
class
PlateDispenser
(
Counter
):
"""
At the moment, one and only one plate dispenser must exist in an environment, because only at one place the dirty
...
...
@@ -522,7 +523,7 @@ class PlateDispenser(Counter):
def
add_dirty_plate
(
self
):
"""
Add a dirty plate after a timer is completed.
"""
self
.
occupied_by
.
appendleft
(
self
.
create_item
())
self
.
occupied_by
.
appendleft
(
self
.
create_item
(
clean
=
not
self
.
plate_config
.
return_dirty
))
def
update_plate_out_of_kitchen
(
self
,
env_time
:
datetime
):
"""
Is called from the serving window to add a plate out of kitchen.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment