Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pykitti/odometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class odometry:

def __init__(self, base_path, sequence, **kwargs):
"""Set the path."""
self.sequence = sequence
self.sequence_path = os.path.join(base_path, 'sequences', sequence)
self.sequence = str(sequence).zfill(2)
self.sequence_path = os.path.join(base_path, 'sequences', self.sequence)
self.pose_path = os.path.join(base_path, 'poses')
self.frames = kwargs.get('frames', None)

Expand Down
1 change: 1 addition & 0 deletions pykitti/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class raw:
def __init__(self, base_path, date, drive, **kwargs):
"""Set the path and pre-load calibration data and timestamps."""
self.dataset = kwargs.get('dataset', 'sync')
drive = str(drive).zfill(4)
self.drive = date + '_drive_' + drive + '_' + self.dataset
self.calib_path = os.path.join(base_path, date)
self.data_path = os.path.join(base_path, date, self.drive)
Expand Down
3 changes: 1 addition & 2 deletions pykitti/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import numpy as np

import pykitti.utils as utils
import cv2

try:
xrange
Expand All @@ -26,7 +25,7 @@ class tracking:
def __init__(self, base_path, sequence, **kwargs):
"""Set the path."""
self.base_path = base_path
self.sequence = sequence
self.sequence = str(sequence).zfill(4)
self.frames = kwargs.get('frames', None)

# Default image file extension is 'png'
Expand Down