- Python: 3.8 or higher (tested with Python 3.8.20)
- Java: 11 or higher
First, install VirtualHome 2.3.0 using pip:
pip install virtualhomeDownload the VirtualHome UnitySimulator executable and move it under simulation/unity_simulator.
Open the configuration file:
cd code/configEdit config.py to update the UnitySimulator executable paths and API keys. For example, set:
OPENAI_API_KEY = "Replace with your OpenAI API key"
UNITY_EXEC_PATH = "Path/To/virtualhome/virtualhome/simulation/v2.3.0.app"Navigate to the main code directory and run the main script:
cd code
python main.pyWhen prompted, input ASP-format goal conditions. For example:
has(user, milk)on(coffeetable, book)heated(chicken)open(microwave)inside(bookshelf, cupcake)
Install all required Python dependencies by running:
pip install -r requirements.txt
