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
410e40fd
Commit
410e40fd
authored
1 year ago
by
Florian Schröder
Browse files
Options
Downloads
Patches
Plain Diff
Update 2 files
- /README.md - /overcooked_simulator/__init__.py
parent
c5bc8943
No related branches found
No related tags found
No related merge requests found
Pipeline
#45216
passed
1 year ago
Stage: test
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
overcooked_simulator/__init__.py
+7
-8
7 additions, 8 deletions
overcooked_simulator/__init__.py
with
8 additions
and
9 deletions
README.md
+
1
−
1
View file @
410e40fd
...
...
@@ -10,7 +10,7 @@ The real-time overcooked simulation for a cognitive cooperative system.
You have two options to install the environment. Either clone it and install it locally or install it in your
site-packages.
You need a Python 3.10 or
great
er environment. Either conda or PyEnv.
You need a Python 3.10 or
new
er environment. Either conda or PyEnv.
### Local Editable Installation
...
...
This diff is collapsed.
Click to expand it.
overcooked_simulator/__init__.py
+
7
−
8
View file @
410e40fd
...
...
@@ -5,7 +5,7 @@ This is the documentation of the Overcooked Simulator.
# About the package
The package contains an environment for cooperation between players/agents. A PyGameGUI visualizes the game to
human or vi
s
ual agents in 2D. A 3D web-enabled version (for example for online studies, currently under development)
human or vi
rt
ual agents in 2D. A 3D web-enabled version (for example for online studies, currently under development)
can be found [here](https://gitlab.ub.uni-bielefeld.de/scs/cocosy/godot-overcooked-3d-visualization).
# Background / Literature
...
...
@@ -21,7 +21,7 @@ like a "real" cooperative / human partner.
# Installation
You need a Python **3.10** or
great
er environment.
You need a Python **3.10** or
new
er environment.
```bash
pip install overcooked-environment@git+https://gitlab.ub.uni-bielefeld.de/scs/cocosy/overcooked-simulator@main
```
...
...
@@ -33,8 +33,8 @@ pip install -e .
```
# Usage / Examples
Our overcooked simulator is designed for real time interaction but also
with
reinforcement
learning
in mind
(gymnasium environment). It focuses on configurability, extensibility and appealing visualization
Our overcooked simulator is designed for real time interaction but also
for
reinforcement
learning (gymnasium environment)
with time independent step function calls
. It focuses on configurability, extensibility and appealing visualization
options.
## Human Player
...
...
@@ -44,7 +44,7 @@ Run it via the command line (in your pyenv/conda environment):
overcooked-sim --url
"
localhost
"
--port 8000
```
*The arguments are the defaults.
Therefore, they are optional.
*
*The arguments
shown
are the defaults.*
You can also start the **Game Server** and the **PyGame GUI** individually in different terminals.
...
...
@@ -82,14 +82,13 @@ create_env = CreateEnvironmentConfig(
layout_config=layout,
).model_dump(mode=
"
json
"
)
env_info = requests.post(
"
http://localhost:8000/manage/create_env
"
, json=create_env)
if env_info.status_code == 403:
raise ValueError(f
"
Forbidden Request: {env_info.json()[
'
detail
'
]}
"
)
env_info: CreateEnvResult = env_info.json()
env_info = requests.post(
"
http://localhost:8000/manage/create_env
"
, json=create_env)
```
Connect
for
each player a websocket (threaded or async).
Connect each player
via
a websocket (threaded or async).
```python
import json
import dataclasses
...
...
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