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
Merge requests
!52
Resolve "gym env"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "gym env"
86-gym-env
into
main
Overview
0
Commits
29
Pipelines
26
Changes
1
Merged
Fabian Heinrich
requested to merge
86-gym-env
into
main
1 year ago
Overview
0
Commits
29
Pipelines
26
Changes
1
Expand
Closes
#86 (closed)
0
0
Merge request reports
Viewing commit
6500d705
Prev
Next
Show latest version
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
6500d705
Plates can be returned clean, Configurable.
· 6500d705
fheinrich
authored
1 year ago
overcooked_simulator/counters.py
+
3
−
2
Options
@@ -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.
"""
Loading