Skip to content

Commit

Permalink
Merge pull request #13 from fangchangma/master
Browse files Browse the repository at this point in the history
fixed bug 'TypeError: list object is not an iterator' for the odometry demo script
  • Loading branch information
leeclemnet authored Aug 29, 2017
2 parents 6af6946 + 68c8f1c commit d36fd97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions demos/demo_odometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
# dataset.velo: Generator to load velodyne scans as [x,y,z,reflectance]

# Grab some data
second_pose = next(itertools.islice(dataset.poses, 1, None))
first_gray = next(dataset.gray)
first_cam1 = next(dataset.cam1)
first_rgb = next(dataset.rgb)
first_cam2 = next(dataset.cam2)
third_velo = next(itertools.islice(dataset.velo, 2, None))
second_pose = next(iter(itertools.islice(dataset.poses, 1, None)))
first_gray = next(iter(dataset.gray))
first_cam1 = next(iter(dataset.cam1))
first_rgb = next(iter(dataset.rgb))
first_cam2 = next(iter(dataset.cam2))
third_velo = next(iter(itertools.islice(dataset.velo, 2, None)))

# Display some of the data
np.set_printoptions(precision=4, suppress=True)
Expand Down

0 comments on commit d36fd97

Please sign in to comment.