Linon SDK is drive simulator sample. The purpose of it is to create an open source simulation environment.
Linon SDK consists of Controllor and Simurator (Agent and Enviroment). It provides base of Controlor and Agent. Enviroment expected to be made by User.
Simurator is made by unity. Controllor can be use any language.
The communication method is defined as follows for ease of use.
- UDP communication is used for continuous information that needs to be conveyed in real time.
- TCP communication is used for Event signals.
- MMAP(memory-mapped file) is used to send and receive images.
- Install Unity. https://unity3d.com/jp/get-unity/download
- Create 3D Project.
- Install Package.
- Open Project
- Assets -> Import package -> custom package
- Select /unity/package/AICarSet.unitypackage and Base.unitypackage, and import them.
- Create Rode (Option)
- Install EasyRoads3D https://assetstore.unity.com/packages/tools/terrain/easyroads3d-pro-v3-469?locale=ja-JP
- Create Road
- Add car
- From Project window, drug and drop Assets -> AICar -> Prehub -> AICarSet.
- Adjust car position, move on the road and rotate its direction.
- Install Miniconda https://docs.conda.io/en/latest/miniconda.html
- Open Miniconda and create vitual env.
- Install some librallies.
$ pip install matplotlib pandas numpy
$ conda install -c conda-forge opencv
# option if you want to use AI
$ conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch
- Install Jupyter Notebook.
$ pip install jupyter
- Start Jupyter Notebook.
$ jupyter notebook
- Open Sample_Car_controal.ipynb.