- Feb 05, 2024
-
-
Fabian Heinrich authored
-
- Feb 02, 2024
-
-
fheinrich authored
-
Fabian Heinrich authored
-
- Feb 01, 2024
-
-
fheinrich authored
-
- Jan 30, 2024
-
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
- Jan 29, 2024
-
-
Fabian Heinrich authored
-
- Jan 27, 2024
-
-
Florian Schröder authored
The `overcooked_environment.py` file has been significantly refactored to streamline handling of counter setup. Post counter setup responsibilities have been shifted to the `CounterFactory` class. A utility function, `get_closest`, has been introduced in `utils.py` to determine the closest counter and is used in multiple classes. Minor updates are also made across several other classes for optimization and clarity. The 'other' score in `environment_config.yaml` has been changed from 0 to 20.
-
- Jan 26, 2024
-
-
Florian Schröder authored
The commit refines the way the 'progress' method is called on counters in the overcooked simulator. Utilizing Python's introspection functions, the update identifies the relevant counter classes dynamically on setup, and stores them. Simplified calls to these relevant counters are then performed during steps in the simulation. Additionally, the code now checks the superclass with the built-in 'issubclass' function to create counters.
-
Florian Schröder authored
The print statements that are outputting the kitchen height in the overcooked_environment.py file, the command line arguments in the __main__.py file, and a redundant check in the counter_factory.py file have been removed. This is in an effort to declutter the console output and streamline the code.
-
Florian Schröder authored
The code changes include addition of in-line comments and docstrings, which clarify the purpose and functionality of various elements in the overcooked_environment and counter_factory modules. Several new comments explain the use of certain variables and functions, and additional explanations are offered for existing sections. This is part of an ongoing effort to improve the maintainability and readability of the codebase.
-
Florian Schröder authored
This commit simplifies the overcooked environment by refactoring the way counters are created and managed. A new CounterFactory class is introduced, offloading logic from the environment class. In addition, the symbol to character mapping and other environment-related configurations are moved to a separate YAML file. The .gitignore file is also updated to ignore the 'playground' directory. Making these changes enhances code maintainability and readability.
-
Florian Schröder authored
Refactored the transition filter code in overcooked_environment.py by replacing redundant code with a call to `filter_item_info` method. The changes lead to easier maintenance and increased code readability. Also, in gui_2d_vis/drawing.py, array conversion was added to 'pos' to ensure operations involving 'pos' and 'd' won't raise errors.
-
Florian Schröder authored
The CookingCounter is now included in the list of counters for which we calculate progress. Additionally, if a counter type is not defined in the configuration, a ValueError will be raised. Unnecessary imports were also removed from 'overcooked_gui.py', and a 'to_dict' method was added in 'counters.py'. Fixing errors from merge.
-
Florian Schröder authored
This commit removes a temporal lock previously used for the GUI. This leads to refinement and adjustments to the usage of datetime and timedelta in the simulator environment. In the tests, the Simulator class is replaced with directly creating an Environment instance and testing the desired features. Additions include comments for future TODOs relating to further enhancements and checks.
-
Florian Schröder authored
Renamed `move_dist` attribute to `player_speed_units_per_seconds` in player configuration. Also implemented `__post_init__` method in Action class to handle conversion from str to Enum type. Added a utility function `custom_asdict_factory` to handle Enum serialization for actions. Various code updates are made to accommodate these changes. Fixes merge bugs.
-
Florian Schröder authored
Removed the unused 'get_state_simple_json' method, added missing docstrings providing detailed explanations for functions in 'overcooked_simulator/game_server.py' and 'overcooked_simulator/simulation_runner.py'. Implemented a type hinting dictionary in 'overcooked_simulator/server_results.py'. These changes are aimed at improving code readability and maintenance.
-
- Jan 25, 2024
-
-
Florian Schröder authored
The player id type is updated from 'int | str' to 'str' across different files to maintain code uniformity and avoid type-related errors. Removed the global constants (USE_PLAYER_COOK_SPRITES, SHOW_INTERACTION_RANGE, SHOW_COUNTER_CENTERS) from gui files for better code structure. Moreover, function annotations are improved by providing more specific types which helps in understanding the codebase. The diff adds additional details in the form of questions or short descriptions in the comments as well.
-
Florian Schröder authored
The update introduces a new function `get_json_state()` in overcooked_environment.py that exports the current game state in JSON format. Changes were made to player.py, counters.py, and game_items.py to include an additional `to_dict()` function which represents their current status as a dictionary. This commit also includes minor naming changes, such as renaming `beginning_time` to `start_time`.
-
Florian Schröder authored
-
- Jan 24, 2024
-
-
Florian Schröder authored
Codebase for Overcooked simulator has been refactored. File rearrangement includes deletions and renaming to better reflect their functionalities. Within the code, several updates are made like support for using both file paths and direct strings as configurations. These amendments improve the organization, modularity, and overall efficiency of the code.
-
Fabian Heinrich authored
-
- Jan 22, 2024
-
-
Florian Schröder authored
The transition implementation for items in the simulator has been updated. This refactoring introduces the filter_item_info function, replacing the previous verbose, repeating pattern with filter_item_info method calls in the overcooked_environment.py module. This makes the code more efficient and readable. Test adjustments and additional type hints were also included.
-
- Jan 20, 2024
-
-
Florian Schröder authored
Convert Stove to abstract "CookingCounter". Added item info and visualization for pizza and fish and chips meals including their ingredients and intermediate steps and cooking equipments and counters. Implemented accepting_not_ordered_meals func
-
- Jan 19, 2024
-
-
Florian Schröder authored
-
Florian Schröder authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Florian Schröder authored
-
Florian Schröder authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
Florian Schröder authored
-
Fabian Heinrich authored
-
Fabian Heinrich authored
-
- Jan 18, 2024
-
-
Florian Schröder authored
-
Florian Schröder authored
-
Fabian Heinrich authored
-
Florian Schröder authored
-