Fixed timestamps and used them in logdemocv

This commit is contained in:
Matt Lubas
2016-08-15 15:31:27 -04:00
parent 2cb34233b3
commit 8ec235baf3
2 changed files with 16 additions and 4 deletions

View File

@@ -65,10 +65,13 @@ def load_data(datadir, dataset):
toks = s.split()[0:-1] # ignore ''
odometry = (int(toks[0]), int(toks[2]), int(toks[3]))
timestamp = int(toks[0])
odometry = timestamp, int(toks[2]), int(toks[3])
lidar = [int(tok) for tok in toks[24:]]
timestamps.append(timestamp)
scans.append(lidar)
odometries.append(odometry)