Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
fix format for proper loading
  • Loading branch information
GabHoo authored Feb 28, 2021
1 parent 63d4df2 commit 5049f4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def load_images_EuRoC(path_to_sequence):
timestamps = []
framenames = []

with open(os.path.join(path_to_sequence,"mav0/cam0/data.txt")) as times_file:
with open(os.path.join(path_to_sequence,"mav0/cam0/data.csv")) as times_file:
for line in times_file:
if len(line) > 0 and not line.startswith("#"):
framenames.append(line.split(",")[1].rstrip())
Expand All @@ -517,7 +517,7 @@ def load_IMU_datas_TUM_VI(path_to_sequence):
timestamp = []
gyro_data = []
acc_data = []
with open(os.path.join(path_to_sequence,"mav0/imu0/data.txt")) as imu_file:
with open(os.path.join(path_to_sequence,"mav0/imu0/data.csv")) as imu_file:
for line in imu_file:
if len(line) > 0 and not line.startswith("#"):
imu_line=line.split(",")
Expand Down

0 comments on commit 5049f4a

Please sign in to comment.