Skip to content

Software

esmini

From github.com/esmini/esmini (opens in a new tab)

  • Cars
  • Simulator
  • MPL-2.0

esmini is a minimalistic player for OpenSCENARIO XML traffic scenarios, built on OpenDRIVE road networks, meant for embedding in other applications and tools.

Facts

GitHub stars
957read on 28 Nov 2026
Last update
25 Nov 2026Newest commit on master
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate

Checked on GitHub on 28 Nov 2026.

Licenses

Code
MPL-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MPL-2.0) at commit b776510 (opens in a new tab), on 28 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Plays OpenSCENARIO XML scenarios, supporting versions 1.0 to 1.3 with limited feature coverage.
  • Includes RoadManager, a library for reading road networks in the OpenDRIVE format.
  • Includes ScenarioEngine, a library with a viewer and API for running traffic scenarios.
  • Provides a shared library usable from C++, Unity, MATLAB/Simulink and Python.
  • Collects simulation state into OSI ground-truth structures, saved to trace files, sent over UDP or read via API.
  • Ships example applications: a scenario player, a minimal library example, an OpenDRIVE plotter and viewer, a replayer and an OSI receiver.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
MPL-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 25 Nov 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit b776510

Robotheca read the repository at two versions: the summary at 06065f9 and the facts and the README at b776510 (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @esmini, at commit b776510, under MPL-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Environment Simulator Minimalistic (esmini)

esmini is a basic OpenSCENARIO XML player

(opens in a new tab) (opens in a new tab)

Screenshot

It contains the following main libraries:

  • RoadManager (esminiRMLib). A library providing an interface to road networks described in the OpenDRIVE format.
  • ScenarioEngine (esminiLib). The main library providing a viewer and API interface to traffic scenarios described in the OpenSCENARIO XML format. This library includes RoadManager.

and a few applications that can be used as is or provide ideas for customized solutions:

  • esmini. A scenario player application linking esmini modules statically.
  • esmini-dyn. A minimalistic example using the esminiLib to play OpenSCENARIO XML files.
  • odrplot. Produces a data file from OpenDRIVE for plotting the road network in Python.
  • odrviewer. Visualize OpenDRIVE road network with populated dummy traffic.
  • replayer. Re-play previously executed scenarios.
  • osireceiver. A simple application receiving OSI messages from esmini over UDP.

Repository: https://github.com/esmini/esmini (opens in a new tab)

User guide: https://esmini.github.io (opens in a new tab)

Pre-built demo packages are available here (opens in a new tab). Unzip, navigate to "esmini\run\esmini" and run any of the example scripts. See more info below under Binaries and demos.

esmini supports OpenSCENARIO XML v1.0 - v1.3. However, please note that feature coverage (opens in a new tab) is limited. The functionality grows slow but steady, based on need and contributions.

There is currently no plan to support OpenSCENARIO DSL.

The code was initially a result from the Swedish collaborative research project Simulation Scenarios (opens in a new tab), and is now further developed based on users need and OpenSCENARIO XML development.

Brief roadmap is published here (opens in a new tab).

Background

The purpose of this implementation (started 2018) was initially to explore and get familiar with the emerging OpenSCENARIO XML (opens in a new tab) data format. The development aimed at supporting various platforms such as Windows, Mac, Linux, and Android. Tool integration and portability were high priorities. It should be easy to use for native C++ applications as well as other frameworks like Unity3D (C#) and MATLAB/Simulink, among many others. Initially, focus was more on features than quality.

Since then the purpose has grown, contributing to the spread and harmonization of OpenSCENARIO XML. esmini is also being used in other applications and test platforms. It grows slowly but steady, both in terms of functionality and quality, e.g. documentation, code refactorizations, continuous integration including static code analysis, and test coverage on both unit and application levels.

Binaries and demos

Windows, Linux and Mac supported

Latest release including source, binaries and demo packages is found here: https://github.com/esmini/esmini/releases/latest (opens in a new tab)

Some example scenarios make use of pre-created 3D models, which are included in the demo packages. They are also available here (opens in a new tab). Unpack into esmini/resources. These assets works on all platforms. Environment models (roads, landscape, buildings...) have been created using VIRES Road Network Editor (opens in a new tab).

See User Guide (opens in a new tab) for more information.

esmini shared library

The easiest way of integrating esmini in your custom application is to link the all inclusive shared library ScenarioEngineDLL. In spite of the name it's available also on Linux and Mac. See further info in User guide - esmini lib programming (opens in a new tab) and User Guide "Hello World" tutorial (opens in a new tab) on how to create a minimalistic application based on it.

OSI support

In addition to internal API (example (opens in a new tab)) for getting information about the ongoing simulation, e.g. road width and road user position, esmini collects everything into an OSI (opens in a new tab) :: groundtruth structure (opens in a new tab). This structure can be 1. stored in an OSI trace-file, 2. retrieved via UDP and/or 3. retrieved directly via API.

Hello World tutorial includes an example of how to fetch OSI groundtruth (opens in a new tab).

Note: Only parts of OSI groundtruth is populated.

For OSI build information and version handling, see User guide - build guide (External dependency details) (opens in a new tab).

Unity support

esmini shared library works also as plugin in Unity (Win, Linux, Mac). Learn more and find example in User guide - esmini in Unity (opens in a new tab).

esmini & Python

see User Guide Hello-World tutorial (opens in a new tab).

Related work
scenariogeneration

scenariogeneration (opens in a new tab) is a Python based scenario creation framework. The idea is to write scenarios in a high-level script format and automatically generate and run linked OpenDRIVE and OpenSCENARIO XML counterparts. It supports parameter sweeps to create multiple variants of a parameterized scenario.

ALKS scenarios

OSC-ALKS-scenarios (opens in a new tab) is a collection of scenarios for Automated Lane Keeping System testing. "BMW has taken on the task of implementing the test scenarios from the ALKS regulation using OpenSCENARIO and OpenDRIVE resulting in a bundle of XML files executable with standard compliant simulators."

NCAP scenarios

OSC-NCAP-scenarios (opens in a new tab) is a collection of scenarios based on Euro NCAP Test Protocols. "As the Euro NCAP scenarios are widely used, Vector decided to contribute the implementation of these scenarios using the ASAM standards."

OpenDRIVE plugin for Unreal Engine

brifsttar/OpenDRIVE (opens in a new tab) plugin allows you to manipulate OpenDRIVE road networks in Unreal Engine. It's based on esmini RoadManager (esminiRMLib).

Online OpenDRIVE viewer

odrviewer.io (opens in a new tab) is an excellent interactive online OpenDRIVE viewer. Move around, zoom and inspect elements of the road network like roadID, laneID, successor and predecessor.

Editors

Blender Driving Scenario Creator add-on (opens in a new tab) lets you create OpenDRIVE and OpenSCENARIO based scenarios.

Truevision Designer (opens in a new tab) Fully featured editor for xodr files, you can create/edit/export OpenDRIVE maps. Free and commercial versions available.

Carla Simulator

Carla (opens in a new tab) is an Unreal (opens in a new tab) based open source simulator worth to check out.

OpenMSL

Open Source Model & Simulation Library (opens in a new tab) is a central hub for simulation entities for virtual ADAS testing. It runs a co-simulation with esmini in a GitHub action for sensor model testing and therefore demonstrates its application with other simulation models.

Data formats

OpenDRIVE (opens in a new tab) describes the road network, the static part of a scenario.

OpenSCENARIO XML (opens in a new tab) describes the dynamic content on top of a road network, e.g. traffic maneuvers and weather conditions.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.