Skip to main content

pycarsimlib: carsim wrapper

Project description

pycarsimlib

An easy-to-use wrapper library to call carsim solver from python script.

Environmental setup

  1. cd /path/to/workingdir
  2. git clone https://github.com/MizuhoAOKI/pycarsimlib.git

Install pycarsimlib from pip

You can also install pycarsimlib easily with pip.

pip install pycarsimlib

Run a sample script

  1. Launch carsim software.

    • Make a dataset in which vehicle does not run.
    • Edit procedures and declare import and export variables with "Additional Data" textbox. ex.
      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
      
    • After you finish editing gui, Press "Run Math Model" button to generate a simulation setting file (simfile.sim)
  2. Change CARSIM_DB_DIR value in examples/runcarsim.py according to your environment.

    ex. r"C:\Users\Public\Documents\CarSim2022.1_Data"

  3. Run the script.

    $ cd examples
    $ python runcarsim.py
    

  4. Press "Video + Plot" button on carsim gui to visualize simulation results.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycarsimlib-0.0.1.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distribution

pycarsimlib-0.0.1-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page