Closed fangchangma closed 7 years ago
Interesting, I don't have any problem running this code without the iter()
wrapper.
Two questions:
type(dataset.gray)
give you?<type 'list'>
This seems to be a Python 2 vs 3 thing. In Python 3 the generators yield a zip object, which is already iterable, so you don't need the iter
wrapper to call next
on it. Adding iter
to the next
calls in the demo code doesn't seem to break anything, and the list in Python 2 should still be iterable in a for loop, so no problems for normal usage. I'll merge https://github.com/utiasSTARS/pykitti/pull/13 and update demo_raw.py
to match. Thanks.
Thanks!
After modifying the
basedir
variable indemo_odometry.py
, running the script gives me an errorIt seems that Line 34 https://github.com/utiasSTARS/pykitti/blob/1819288d3ba471ce85be6450599cbf13e629245f/demos/demo_odometry.py#L34 should be replaced with
Same with the several lines below it.