Skip to content

MariaMengozzi/NextPerceptionFTDcalculation

Repository files navigation

FITNESS-TO-DRIVE CALCULATION CLIENT

DESCRIPTION

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: $$FTD = 1 - (DCi + DVi + Ei)$$ Once the FTD level value has been calculated, the client publishes the value on topic NP_UNIBO_FTD.

PACKAGE TO INSTALL

In order to run this client must have install the following packages:

This last four packages can install running pip install -r path/to/requirements.txt in your shell.

USAGE

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.

Note:

In order to test the ftd calculation client the speed was getting by a mqtt message on topic Motion platform/Effective position

About

Fitness-to-drive calculation client mqtt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages