Skip to content

ftsrg/BME-MODES3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoDeS3

Model-based Demonstrator for Smart and Safe Systems (MoDeS3)

Build Status

A case study system using the cooperation of a model railway and a robot to demonstrate techniques and methods for developing IoT and CPS systems. See a quick overview and our blog for more details.

This repository uses Gradle for build management. To build the repository see the Build and deployment guide.

Getting Started

To set up the development environment on your machine, follow the Getting Started page.

Structure of the repository

Configuration management scripts

Physical location Comments Owner
/config-management Scripts to deploy the code for the embedded systems. hegyibalint

Sources divided by programming language

C++

  • Root path: /src/cpp/
  • Folder prefix: hu.bme.mit.inf.modes3.
  • Path prefix: <root_path> + <folder_prefix>
Logical Component Physical location Comments Owner
Barrier Controller <path_prefix>.components.barriercontroller The controller script of the railway barriers. zsoltmazlo
Computer Vision <path_prefix>.components.computervision The OpenCV-based Computer Vision component, which provides the coordinates of the train markers. FuzesiMate
imu <path_prefix>.components.imu
Section Occupancy Query <path_prefix>.components.soc Reads the sections occupancy from the physical sensors. zsoltmazlo, hegyibalint
Train Detector <path_prefix>.components.traindetector Train detector and locomotive length measurer using infrared sensors. hegyibalint
train_sample_generator <path_prefix>.components.trainsamplegenerator FuzesiMate
Turnout Actuator <path_prefix>.components.turnoutactuator The actuator to set the turnouts' directions. hegyibalint
XPressNet Bridge <path_prefix>.components.xpressnetbridge C++ implementation for the XPressNetBridge, in order to send DCC commands to the trains. Chorithian (Attila Biró)

Java

  • Root path: /src/java
  • Components folder path: <root_path>/components
Logical Component Physical location Comments Owner
Barrier <components_folder_path>/barrier Sends open/close commands to the barrier over the network, depnending on the occupancy of certain segments. benedekh
Dashboard <components_folder_path>/dashboard Dashboard for the model railway track. zsoltmazlo
GPIO Manager <components_folder_path>/gpiomanager To control the GPIO pins of the Beagle Bone Black embedded units from Java. hegyibalint
Leapmotion <components_folder_path>/leapmotion Leapmotion sensor code in Java. pappist (Papp István)
Section Occupancy Query <components_folder_path>/occupancyquery Reads the sections occupancy from the embededd system and broadcasts it on the network. hegyibalint, baloghlaszlo, benedekh
Sample Component <components_folder_path>/sample A sample component which can be linked to a tutorial hegyibalint, baloghlaszlo, benedekh
Touchboard <components_folder_path>/touchboard Dashboard for the model railway track, with focus on touchable elements. hegyibalint, benedekh
Track Element Controller <components_folder_path>/trackelementcontroller Implementation of the platform-specific actuator code of disabling and enabling sections and setting turnout directions for the BeagleBone Black embedded units. benedekh, hegyibalint
  • Safetylogic folder path: <components_folder_path>/safetylogic
Logical Component Physical location Comments Owner
Component level safety logic <safetylogic_folder_path>/componentlevel.sc Component level safetylogic by Yakindu statecharts benedekh
Component level safety logic (Model) <safetylogic_folder_path>/componentlevel.sc.model Yakindu and Gamma models of the component level safety logic benedekh
System level safety logic (Event) <safetylogic_folder_path>/systemlevel.event System level safety logic with a runtime EMF model and using VIATRA-Queries baloghlaszlo
System level safety logic (Model) <safetylogic_folder_path>/systemlevel.model Model for system level safety logic baloghlaszlo
System level safety logic (Model instance) <safetylogic_folder_path>/systemlevel.model.instance Model instance for system level safety logic baloghlaszlo
System level safety logic (Sirus editor) <safetylogic_folder_path>/systemlevel.model.sirius Sirius editor for system level safety logic baloghlaszlo
System level safety logic (Patterns) <safetylogic_folder_path>/systemlevel.rules VIATRA-CEP rules for system level safety logic baloghlaszlo
  • Messaging folder path: <root_path>/messaging
Logical Component Physical location Comments Owner
High-level API designed for communication with the railroad system <messaging_folder_path>/communication Communication technology independent API designed for further use in the components. baloghlaszlo
Common messages <messaging_folder_path>/messages Common representation for the messages used over the network in Java. benedekh
Messaging service + Dispatcher <messaging_folder_path>/mms Messaging service and message dispatcher to dispatch different messages. baloghlaszlo, benedekh
Protobuf specific classes <messaging_folder_path>/proto Protobuf specific transformators and dispatcher for the messages. benedekh
Protobuf message definitions <messaging_folder_path>/proto.messages Message definitions in protobuf representation and Java classes generated from them. hegyibalint, benedekh
  • Test folder path: <root_path>/test/
Logical Component Physical location Comments Owner
Test project <test_folder_path> Project for testing purposes. To show, how a system test might be implemented. baloghlaszlo
  • Transports folder path: <root_path>/transports
Logical Component Physical location Comments Owner
Transport common <transport_folder_path>/common Common classes for the transport layer. baloghlaszlo
MQTT Transport <transport_folder_path>/mqtt Implementation of the transport layer, using MQTT. benedekh
  • Utils folder path: <root_path>/utils
Logical Component Physical location Comments Owner
Utility classes for components <utils_folder_path>/common Utility classes that can be used by every component. E.g. handling command-line arguments in Java. benedekh
Common configuration files <utils_folder_path>/conf Common configuration files for the model railway track. E.g. files containing information about segment, turnout, locomotive IDs benedekh
Serial monitor <utils_folder_path>/serialmonitor Utility project to monitor the serial (USB) port from Java. zsoltmazlo
SVG Transformer <utils_folder_path>/svgtransformer Utility project to transform SVG in Java, in order to map the Open CV coordinates for segments on the railway track. hegyibalint