This FMU is able to play OSI trace files. It supports the formats .mcap
, .osi
, and .txth
.
For .osi
and .txth
files, the file names have to comply to the OSI trace file naming convention,
as the player parses the name to identify the message type (e.g. SensorView).
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.
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. |
Common tools for building:
sudo apt-get install git cmake build-essential
Install protobuf
(at least version 3.0.0):
sudo apt-get install libprotobuf-dev protobuf-compiler
Install libzstd
and liblz4
:
sudo apt-get install libzstd-dev liblz4-dev
git clone --recurse-submodules https://github.com/openMSL/sl-5-5-osi-trace-file-player.git
cd sl-5-5-osi-trace-file-player
mkdir -p build
cd build
cmake ..
cmake --build .