|
|
---
|
|
|
title: libtrainsim
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
# libtrainsim
|
|
|
|
|
|
|
|
|
This repository contains several components that are useful if you want to simulate a driving train.
|
|
|
|
|
|
To build this repository you need to install meson and opencv, all other dependencies should be downloaded by meson and compiled if they are needed but not installed (compiling opencv takes forever so there is no wrap file for it).
|
|
|
|
|
|
The documentation is built using doxygen an should be published to pages on every commit.
|
|
|
|
|
|
|
|
|
# Components
|
|
|
|
|
|
There is a build option to disable the build of the Video and Control component.
|
|
|
|
|
|
|
|
|
## Core
|
|
|
|
|
|
The core is what always needs to be built in oreder for the other components to work. [libtrainsim::core](/Namespaces/namespacelibtrainsim_1_1core.md) contains classes needed to load information about tracks and trains and perform some simple pysics calculations. Look [here](/Pages/json_formats.md#page-json_formats) for details on the formatting of the json files.
|
|
|
|
|
|
|
|
|
## Video
|
|
|
|
|
|
The Video component handles video files and can be used for simple playback. It is based on opencv and requires opencv 2.4.0 or newer to work.
|
|
|
|
|
|
|
|
|
## Control
|
|
|
|
|
|
_**This is not really implemented yet**_ The control component manages input from various sources and gives an easy interface to handle them.
|
|
|
|
|
|
-------------------------------
|
|
|
|
|
|
Updated on 22 October 2020 at 19:40:47 CEST |