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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pycarsimlib-0.0.1.tar.gz.

File metadata

  • Download URL: pycarsimlib-0.0.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.2

File hashes

Hashes for pycarsimlib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 454e29a5f4a5456aa5ca63fd129b4216a77f6c50e6abf9043f41d7635550243c
MD5 0ab6c02e1f757ed838db17489fb33ff3
BLAKE2b-256 df39ee0b4cb4931ecb539594855a36de7f39d27e188bbf4b6ad72c1ea881dd15

See more details on using hashes here.

File details

Details for the file pycarsimlib-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pycarsimlib-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.2

File hashes

Hashes for pycarsimlib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a66e6110ca7955a0bfb9346f603334b5116f942ee5df4a430976593c42141b6
MD5 0b143ac94854bd48429cfdce8c8bd494
BLAKE2b-256 6ba7b2b46211d166282eea7cdc4caddbde5191ac84d9aa86bace894964d663b3

See more details on using hashes here.

Supported by

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