interface package

Submodules

interface.Receiver module

class interface.Receiver.ZMQReceiver(theme: str)[source]

Bases: object

Class to construct a ZMQ Receiver.

Parameters

theme – Theme the receiver listen to.

Authors

Alexander Heilmeier

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.11.2020

run()[source]

Receive messages.

Authors

Alexander Heilmeier

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.11.2020

interface.Sender module

class interface.Sender.ZMQSender(theme: str)[source]

Bases: object

Class to construct a ZMQ Sender.

Parameters

theme – Theme the sender should publish information to.

Authors

Alexander Heilmeier

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.11.2020

send(data)[source]

Send messages.

Parameters

data – The data to be sent.

Authors

Alexander Heilmeier

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.11.2020

interface.unpack_inputs module

interface.unpack_inputs.unpack(msg_in: dict)[source]

Unpack message input msg_in and check given information for inconsistency.

Parameters

msg_in

Input format: Character (which ES phase, ‘v’ - calculate v_ref

’i’ - initialize the ES module ‘r’ - re-optimize the ES strategy)

Characters (3, race track ID, ‘mnt’ - Monteblanco

’mod’ - Modena ‘prs’ - Paris ‘ber’ - Berlin ‘hok’ - Hong_Kong ‘upp’ - Upper_Heyford)

Integer (number of race laps)

Authors

Thomas Herrmann <thomas.herrmann@tum.de>

Created on

01.02.2021

Module contents