Created
November 1, 2020 14:56
-
-
Save herzig/6c784951bcf8e286ffcbf6b1e5b133c3 to your computer and use it in GitHub Desktop.
rosbag_to_csv.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import rosbag_pandas | |
import glob | |
for f in glob.glob('*.bag'): | |
print(f'convert bag file {f} to csv...') | |
df = rosbag_pandas.bag_to_dataframe(f, exclude=['/rosout', '/rosout_agg']) | |
df.to_csv(f'{f[:-4]}.zip') | |
print(' ok') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment