Skip to content

Script to convert DVS (Dynamic Vision Sensor) data between different formats

License

Notifications You must be signed in to change notification settings

raultapia/dvs_data_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

DVS Data Converter

dvs_data_converter.py is a Python script designed to convert Dynamic Vision Sensor (DVS) data between different formats. It supports conversion between ROS bag files (bag), text files (txt), and comma-separated values files (csv).

⚙️ Usage

python3 dvs_data_converter.py [-h] [--output {txt,csv,bag}] [--columns {txyp,xytp,ptxy,pxyt}] [--zero] files [files ...]

Arguments:

  • files: Specifies the file or files to convert.

Optional Arguments:

  • --output or -o: Specifies the desired output format for the converted data. Available options include txt for text files, csv for comma-separated values files, and bag for ROS Bag files.
  • --columns or -c: Specifies the column order for text and CSV files. You can choose from four options: txyp, xytp, ptxy, and pxyt. The default value is txyp.
  • --zero or -z: Adds a time offset to start the data at t = 0.

📚 Examples

Convert ROS bag file to text file:

./dvs_data_converter.py input.bag -o txt

Convert ROS bag file to CSV file with specific column order:

./dvs_data_converter.py input.bag -o csv -c pxyt

Convert ROS bag file to CSV file and shift time:

./dvs_data_converter.py input.bag -o csv -z

📝 License

Distributed under the GPLv3 License. See LICENSE for more information.

📬 Contact

Raul Tapia - raultapia@us.es

About

Script to convert DVS (Dynamic Vision Sensor) data between different formats

Topics

Resources

License

Stars

Watchers

Forks

Languages