An easy-to-use wrapper library to call carsim solver from python script.
cd /path/to/workingdir
git clone https://github.com/MizuhoAOKI/pycarsimlib.git
You can also install pycarsimlib easily with pip.
pip install pycarsimlib
Launch carsim software.
IMPORT IMP_STEER_SW Replace 0.0! 1
IMPORT IMP_FBK_PDL Replace 0.0! 1
IMPORT IMP_THROTTLE_ENGINE Replace 0.0! 1
EXPORT XCG_TM
EXPORT YCG_TM
EXPORT Yaw
Change CARSIM_DB_DIR
value in examples/runcarsim.py according to your environment.
ex. r"C:\Users\Public\Documents\CarSim2022.1_Data"
Run the script.
$ cd examples
$ python runcarsim.py
Press "Video + Plot" button on carsim gui to visualize simulation results.