Skip to content

jinsanity07git/corsim_binary_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

corsim_binary_parser

corsim

The TSD (time-step data file) is created by CORSIM and contains the positions and speeds of all vehicles in the CORSIM network. CORSIM creates a TSD file as it runs. When finished, programs like TRAFVU can read the TSD file, permitting visual review of the inner workings of the simulation.

---- Dr. John Leonard , Virginia Commonwealth University

Intro

This repo contains a renewed python script to interpret the TSD file generated by CORSIM. It provides students hands-on experience on what information the time-step data file contains, how it is structured and encrypted. The student interested in the underlying simulation coding could use the parsed time-step CSV file to create the time-step frames and play an animation.

Acknowledgment

The general decryption idea is mentored by Dr. John Leonard. His source code inspires the output format in source-forge.

Guidance

The source of the file is located in TRAFVU V1.4, with the repository structure shown as below:

├── doc
│   ├── FileDescription.pdf
│   └── config
│       ├── message_content.csv  
│       └── message_content.xls
├── input  // folder contains some sample inputs
│   ├── 4leg.ts0
│   ├── CapOkland.tid
│   └── CapOkland.ts0
├── output // output csv file would be drieted here
│   ├── CapOkland.csv
└── parser_csv.py

The developer or user needs to run the parser_csv.py by setting the proper input file name and other parameters.

About

This is a renovated python script to interpret the CORSIM TSD file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages