MizuhoAOKI / cppcarsimlib

An easy-to-use carsim wrapper library to call carsim solver from c++ programs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License: MIT

cppcarsimlib

Target environment

  • Windows 10
  • C++17
  • Carsim 2022.1

How to set up environment.

  1. Install scoop
    1. Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
    2. irm get.scoop.sh | iex
  2. Install c++ build tools
    • scoop install mingw cmake
  3. Clone this repository
    • cd /path/to/your/workspace
    • git clone https://github.com/MizuhoAOKI/cppcarsimlib.git

How to build and run a sample program.

  1. Launch carsim software.
    • Make a dataset in which vehicle does not run.
    • After you finish editing gui, Press "Run Math Model" button to generate a simulation setting file (simfile.sim)
  2. Change SIMFILE_PATH and CARSIM_DB_PATH in example/samplerun.cpp if necessary.
  3. cd cppcarsimlib/build
  4. cmake .. -G "MinGW Makefiles"
  5. make
  6. samplerun.exe
  7. Press "Video + Plot" button on carsim gui to visualize simulation results.

About

An easy-to-use carsim wrapper library to call carsim solver from c++ programs

License:MIT License


Languages

Language:C++ 91.4%Language:C 7.7%Language:CMake 0.9%