Takes in a TA1 yaml file and converts parts of it to the simulator json format.
So far, this can convert the environment type, supplies at the beginning of the scene, and characters throughout all scenes. Character demographics are followed, outfits for civilians are randomized, and injuries are mapped properly. You should be able to take the output of this script and put it directly into the simulator and see the characters generated. I've been testing using python3 converter.py -y test.yaml -j test.json
Things that can still be optionally completed:
[ ] Set participant and character positions to something other than 0, 0, 0 (How? This can be done by having several pre-set values or areas in an environment and randomly choosing from those positions for each scene. Discuss with Jacob)
[ ] Set triage level for each patient (How? base on breathing, pulse, avpu, mental status, and injuries. I will need some guidelines to follow for this one, probably from Jennifer or Darren)
[ ] Set pose based on injuries
[ ] Add military gear to military characters (possibly base on rank? Collab with Jacob)
[ ] Start adding narrative sections based on scenes (use unstructured text and characters to create a very basic narrative. Will we need to have scene switching and jumping? We'll need to brainstorm here to decide what is worth programming and what is worth keeping manual)
Takes in a TA1 yaml file and converts parts of it to the simulator json format.
So far, this can convert the environment type, supplies at the beginning of the scene, and characters throughout all scenes. Character demographics are followed, outfits for civilians are randomized, and injuries are mapped properly. You should be able to take the output of this script and put it directly into the simulator and see the characters generated. I've been testing using
python3 converter.py -y test.yaml -j test.json
Things that can still be optionally completed: