This client MQTT aims at subscribing topics about cognitive/visual distraction and emotions. After getting the value from these topics, we can calculate the user's fitness-to-drive level according to the following formula:
In order to run this client must have install the following packages:
-
python3 link for python3 download
-
pandas link for pandas download
-
numpy link for numpy download
-
log-to-json link for log-to-json download
This last four packages can install running pip install -r path/to/requirements.txt
in your shell.
Before running the ftd_calculation_client.py update:
- config.json file with the mqtt broker name and port number
- the variable FTD_MAX_PUBLISH with the number of FTD that must be calculated before inserting the value into the database.
In order to test the ftd calculation client the speed was getting by a mqtt message on topic Motion platform/Effective position