load_data returns timestamps
This commit is contained in:
@@ -67,8 +67,8 @@ def main():
|
|||||||
use_odometry = True if int(argv[2]) else False
|
use_odometry = True if int(argv[2]) else False
|
||||||
seed = int(argv[3]) if len(argv) > 3 else 0
|
seed = int(argv[3]) if len(argv) > 3 else 0
|
||||||
|
|
||||||
# Load the data from the file
|
# Load the data from the file, ignoring timestamps
|
||||||
lidars, odometries = load_data('.', dataset)
|
_, lidars, odometries = load_data('.', dataset)
|
||||||
|
|
||||||
# Build a robot model if we want odometry
|
# Build a robot model if we want odometry
|
||||||
robot = Rover() if use_odometry else None
|
robot = Rover() if use_odometry else None
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ def main():
|
|||||||
use_odometry = True if int(argv[2]) else False
|
use_odometry = True if int(argv[2]) else False
|
||||||
seed = int(argv[3]) if len(argv) > 3 else 0
|
seed = int(argv[3]) if len(argv) > 3 else 0
|
||||||
|
|
||||||
# Load the data from the file
|
# Load the data from the file, ignoring timestamps
|
||||||
lidars, odometries = load_data('.', dataset)
|
_, lidars, odometries = load_data('.', dataset)
|
||||||
|
|
||||||
# Build a robot model if we want odometry
|
# Build a robot model if we want odometry
|
||||||
robot = Rover() if use_odometry else None
|
robot = Rover() if use_odometry else None
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ def main():
|
|||||||
seed = int(argv[3]) if len(argv) > 3 else 0
|
seed = int(argv[3]) if len(argv) > 3 else 0
|
||||||
|
|
||||||
# Load the data from the file
|
# 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
|
# Build a robot model if we want odometry
|
||||||
robot = Rover() if use_odometry else None
|
robot = Rover() if use_odometry else None
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ def main():
|
|||||||
seed = int(argv[3]) if len(argv) > 3 else 0
|
seed = int(argv[3]) if len(argv) > 3 else 0
|
||||||
|
|
||||||
# Load the data from the file
|
# 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
|
# Build a robot model if we want odometry
|
||||||
robot = Rover() if use_odometry else None
|
robot = Rover() if use_odometry else None
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ def load_data(datadir, dataset):
|
|||||||
|
|
||||||
fd.close()
|
fd.close()
|
||||||
|
|
||||||
return scans, odometries
|
return timestamps, scans, odometries
|
||||||
|
|
||||||
class MinesLaser(URG04LX):
|
class MinesLaser(URG04LX):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user