Sends processed data to the database
python3.8 -m venv ingest
Note: You may have to install venv tools on your system. For linux, the command is
sudo apt install python3.8-venv
To activate the virtual environment:
Windows:
ingest\Scripts\activate
MacOS/Linux:
source ingest/bin/activate
You are now in a virtual environment where you can install the requirements and run the main script.
To deactivate the environment, run
deactivate
pip install -r requirements.txt
The probe matcher takes in a path leading to a directory of Unity Simulator data. For each json file found, the script attempts to find matches within the actionList for each of the adept and soartech yaml files. d To run the probe matcher, execute the following command:
python3 probe_matcher.py -i [path_to_directory]
Ensure that the path leads to the Unity Simulator data. The format should be: top-level -> id -> id -> json, with csvs directly under top-level. As the Unity file output organization format changes, the way of accessing this data may also change.
The probe matcher will output two json files for each input json found: one for soartech and one for adept. If SEND_TO_MONGO is true, these json files (and the raw jsons found) will be sent to the mongo database
Directory | Explanation |
---|---|
metrics-data |
Contains all of the valid simulator outputs in the same organizational structure unity outputs. |
adept-evals |
The yaml files for each adept evaluation scenario |
soartech-evals |
The yaml files for each soartech evaluation scenario |