load_data returns timestamps

This commit is contained in:
Matt Lubas
2016-08-15 15:16:23 -04:00
parent 58ee03f1c1
commit 2cb34233b3
5 changed files with 7 additions and 7 deletions

View File

@@ -67,8 +67,8 @@ def main():
use_odometry = True if int(argv[2]) else False
seed = int(argv[3]) if len(argv) > 3 else 0
# Load the data from the file
lidars, odometries = load_data('.', dataset)
# Load the data from the file, ignoring timestamps
_, lidars, odometries = load_data('.', dataset)
# Build a robot model if we want odometry
robot = Rover() if use_odometry else None

View File

@@ -68,8 +68,8 @@ def main():
use_odometry = True if int(argv[2]) else False
seed = int(argv[3]) if len(argv) > 3 else 0
# Load the data from the file
lidars, odometries = load_data('.', dataset)
# Load the data from the file, ignoring timestamps
_, lidars, odometries = load_data('.', dataset)
# Build a robot model if we want odometry
robot = Rover() if use_odometry else None

View File

@@ -59,7 +59,7 @@ def main():
seed = int(argv[3]) if len(argv) > 3 else 0
# Load the data from the file
lidars, odometries = load_data('.', dataset)
timestamp, lidars, odometries = load_data('.', dataset)
# Build a robot model if we want odometry
robot = Rover() if use_odometry else None

View File

@@ -58,7 +58,7 @@ def main():
seed = int(argv[3]) if len(argv) > 3 else 0
# Load the data from the file
lidars, odometries = load_data('.', dataset)
timestamp, lidars, odometries = load_data('.', dataset)
# Build a robot model if we want odometry
robot = Rover() if use_odometry else None

View File

@@ -74,7 +74,7 @@ def load_data(datadir, dataset):
fd.close()
return scans, odometries
return timestamps, scans, odometries
class MinesLaser(URG04LX):