AiPEX-Lab-CMU / Unity-Python-Communication

Contains the newest version of the Python Communication components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unity-Python-Communication

Contains the newest version of the Python Communication components

The first time before starting the simulation:

  1. Run setup.py (python setup.py), this will install the required packages for the python component.

To start the simulation:

  1. Run server.py, to enable printing out the receipts during data collection, option verbose is required (-v or --verbose).
  2. Run the executable and click "start simulation".
  3. If the verbose is enabled, you'll see the receipts popping out when the customers checkout.
  4. The python side is blocked during the simulation process, after the simulation ends the python side will continue executing.
  5. When the simulation ends, the total revenue and the total time the customers spent will be displayed on the console.
  6. Also a file with the name "output.txt" will be created in the same directory as the python script (every time the script is run the contents of the file will be replaced) with the following format: | | | | Transaction ID | Items bought | | | | | | |

** Always make sure that the python side is running during the simulation or the simulation will get stuck (the same applies to the python side, it will be blocked until an instance of simulation has terminated).

About

Contains the newest version of the Python Communication components


Languages

Language:Python 78.5%Language:C# 21.5%