File Exchange

image thumbnail


version 1.0.2 (10.3 MB) by Mustafa Saraoglu
MOBATSim (Model-based Autonomous Traffic Simulation Framework) is a simulation framework based on MATLAB Simulink that allows the user to as


Updated 26 Jul 2020

From GitHub

View Version History

View license on GitHub

Editor's Note: This file was selected as MATLAB Central Pick of the Week

MOBATSim: a Model-based Autonomous Traffic Simulation Framework for Safety Assessment, is a framework developed in the Faculty of Electrical and Computer Engineering, Technische Universität Dresden. The main developer, Mustafa Saraoğlu, is working on the safety assessment of autonomous vehicle components and functions as his Ph.D. topic in the Model-based Analysis Group from the Institute of Automation.

Related MathWorks Online Article:

Automated driving systems tend to be more important and sophisticated in the nearest future. The functional safety assessment for these systems becomes an urgent necessity for the transition to full autonomy. Testing these functions consisting of decision and control algorithms with a lot of variables and parameters in a unified manner is a daunting task. Threat assessment has to be made for vehicles to actively avoid hazardous situations. This requires the analysis of complex operational profiles such as routing, intersection management and collision prediction in an environment where multiple vehicles are in different positions, and traveling at different speeds. There is a need for a comprehensive traffic simulation framework which models not only the functionality of the vehicles but also the interactions between them.

As a solution, we offer a new simulation framework, MOBATSim, which is completely based on MATLAB Simulink. It allows the user to customize decision and control algorithms for the modeled autonomous vehicles and analyze their effects on the overall safety of the high-level urban traffic environment. The user can define safety goals, derive functional safety requirements, describe driving scenarios, and verify if these goals are met for certain autonomous vehicle functions that are tested. The simulation-based fault injection is used to perform the tests in the presence of various types of random or predetermined faults of low-level vehicle components such as sensors and communication modules. The definitions of safety and controllability requirements of autonomous vehicle functions are derived from the safety standard ISO 26262. Automatically generated reports allow the user to save time and costs in the early design phase through comprehensive testing and it can also prove a useful framework to overcome the challenges of the adoption of ISO 26262. The data can be logged during the simulations and later be used by Simulink 3D Animation for visual investigations.

Cite As

Saraoglu, Mustafa, et al. “MOBATSim: MOdel-Based Autonomous Traffic Simulation Framework for Fault-Error-Failure Chain Analysis.” IFAC-PapersOnLine, vol. 52, no. 8, Elsevier BV, 2019, pp. 239–44, doi:10.1016/j.ifacol.2019.08.077.

View more styles

Comments and Ratings (19)

Manuel Schirmer

Marta VM

Peipei Fan

Erik Noack

Good work everyone

Matthias Gocht

Merve Sefunc


Excellent work!

Wenkai Wu

Awesome work with large potential, really glad to share it with engineer friends.

Andrey Morozov

Open-source Traffic Simulation Framework for Safety Testing

Matthias Zimmermann

Komutan Logar

Umarım yakın zamanda uzay versiyonu da gelir.

Müjdat Korkmaz

Qihang Shi

Excellent work! Very innovative for ADAS related work.

Lingwei Gao

Tagir Fabarisov

Maoxuan Zhao


Marcus Wagner

Heng Jiang

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!