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).
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:
--outputor-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.--columnsor-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.--zeroor-z: Adds a time offset to start the data at t = 0.
Convert ROS bag file to text file:
./dvs_data_converter.py input.bag -o txtConvert ROS bag file to CSV file with specific column order:
./dvs_data_converter.py input.bag -o csv -c pxytConvert ROS bag file to CSV file and shift time:
./dvs_data_converter.py input.bag -o csv -zDistributed under the GPLv3 License. See LICENSE for more information.