Skip to content

skiunke/EventControllerAndLogger

Repository files navigation

Event Controller and Logger (ECAL)

⚠️ This project is designed to only run in a local network and therefore doesn't provide advanced security features.

ECAL is a subpart of the GitHub - 3D Unity Stack based on CrowNet and enables message logging to a local InfluxDB instance, that can later be played back to Unity with InfluxPlay. Alternatively JSON files are used.

Dependencies

Installation

git clone https://github.com/skiunke/EventControllerAndLogger.git ecal

Usage

By Default ECAL only records and stores Messages in InfluxDB and does not forward them to Unity as InfluxPlay allows more granular controls. Settings can be change in the Config file. This requires a rerun of the build_and_run script.

The shell script:

  • Pulls InfluxDB and builds ECAL.
  • Waits for OMNeT++ to connect or InfluxPlay to be used for message playback.
# /ecal
bash build_and_run.sh

InfluxDB is locally accessible under: http://localhost:8086

Username: admin
Password: password

Message Playback

Messages stored in the InfluxDB database or in JSON files are played back to Unity by the InfluxPlay module.

Installation

# /ecal/InfluxPlay
python3 -m pip install -r requirements.txt

Usage

Usage options:

# /ecal/InfluxPlay
python3 run.py --help

Execution of a JSON based scenario:

# /ecal/InfluxPlay
python3 run.py --json-path Scenarios/Freiheit.json

Execution of a InfluxDB based scenario:

# /ecal/InfluxPlay
python3 run.py --scenario vruMec 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published