Skip to main content

The OpenSpace train environment

Project description

OpenSpace

Train Environment

This is the repository of the train environment of the OpenSpace project. This project is written in Python 3.6 and will be running on the computers present on the train.

The project follows the PEP008 style guide, every collaborator should make sure his code is according to the standards.

Tests are very important in this project and should be written for each functional unit. The project uses the unittest library for unit tests and nose for test discovery.

Documentation is key to working in team, so make sure your code is well documented, also following the PEP008 style rules.

alt text

Camera Handler

The camera handler uses a pubsub pattern to let subscribers know when frames are published. These frames will be transformed in the requested codec for each subscriber. These frames are sent to the broker to be redistributed amongst the components.

Vision Container

The vision container will wrap the CV-ML service in the train environment. This will be done by importing their python script into our service and expose our broker as a singleton. This way, the vision container can publish messages and subscribe to messages through the broker. The init script should contain the setup logic for their container, as our service will not call any methods from within their service (except the registered callbacks).

Broker

The broker (previously carriage communicator) is responsible for the internal routing of messages using a broker pattern. Exposed methods:

  • Broker.get_instance()
  • self.subscribe('message', callback)
  • self.publish('message', *args, **kwargs)

Election Component

The election component is responsible for the election procedure amongst the different carriages as well as initiating the (physical) TUDA at an election win.

Virtualized TUDA Module

Virtualized TUDA present on every carriage. This component has to transfer the connections to the TUDA by a HTTP connection.

Train Unit Data Aggregator

The train unit data aggregator is the central point within the current sequence of carriages. This component has to buffer the received information and needs to communicate with the internal API and the transfer module.

Main TUDA Module

This module has to make sure the data is timestamped and routed to the other transfer modules (internal API & transfer module).

Internal API Module

This module has to buffer/store the data and respond to API calls that originate from the internal network on the train.

Transfer Module

This module is responsible for the connection to the wayside (backend). This module has to transfer the data to the AMQP module already present on the train (not part of our service).

Test Simulations

To simulate the AMQP communication and the internal API, we need to create simple simulations of these components.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openspacetrainenv-0.0.8.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openspacetrainenv-0.0.8-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file openspacetrainenv-0.0.8.tar.gz.

File metadata

  • Download URL: openspacetrainenv-0.0.8.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for openspacetrainenv-0.0.8.tar.gz
Algorithm Hash digest
SHA256 7e53951cb2a3be8ae01bd0cd78912e4e8917f42476399d6d3be52be53cdd6395
MD5 f167122c3e6207dc9ab630c688ae2242
BLAKE2b-256 1f05baa35590fa10d5767e6c2d927a5abefc177605f958ad1a38b2cf89c00643

See more details on using hashes here.

File details

Details for the file openspacetrainenv-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: openspacetrainenv-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for openspacetrainenv-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6679b529392f0f0940bfca0a65a157fb34a8a4031413b14ce1479efa72953f38
MD5 78c67db6a2a3ee0d0f582c2997cf1e14
BLAKE2b-256 e6cffcfbdbf609fd75139234791f6dc9ee6f800a61354efd8e155acc6f9d5969

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page