Skip to content

OSMP FMU to read and output binary OSI trace files in a co-simulation

License

Notifications You must be signed in to change notification settings

openMSL/sl-5-5-osi-trace-file-player

Repository files navigation

SL-5-5 OSI Trace File Player

This FMU is able to play binary OSI trace files. The trace file names have to comply to the OSI trace file naming convention, as the player parses the name to identify the message type (SensorView or SensorData) of the trace file. The folder containing the trace files has to be passed as FMI parameter trace_path. The trace file player is build according to the ASAM Open simulation Interface (OSI) and the OSI Sensor Model Packaging (OSMP) examples.

An exemplary trace file is available in folder trace_file_examples.

Parameterization

The following FMI parameters can be set. At least the trace_path has to be set. Otherwise, the FMU will return with an error.

Type Parameter Default Description
String trace_path "" Path to the directory containing one or more OSI trace files
String trace_name "" Filename of the trace file to be played. If empty, the first OSI trace file in the given directory is played.

Installation

Dependencies

Install cmake (at least version 3.10.2):

sudo apt-get install cmake

Install protobuf (at least version 3.0.0):

sudo apt-get install libprotobuf-dev protobuf-compiler

Clone with submodules

git clone https://github.com/openMSL/sl-5-5-osi-trace-file-player.git
cd sl-5-5-osi-trace-file-player
git submodule update --init

Build

mkdir -p build
cd build
cmake ..
cmake --build .

About

OSMP FMU to read and output binary OSI trace files in a co-simulation

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published