utiasSTARS / pykitti

Python tools for working with KITTI data.
MIT License
1.15k stars 239 forks source link

ValueError: invalid literal for int() with base 10: '4.00000000000000' #1

Closed xlz closed 8 years ago

xlz commented 8 years ago
/usr/local/lib/python3.5/dist-packages/pykitti/raw.py in load_oxts(self)
    200                     # Last five entries are flags and counts
    201                     line[:-5] = [float(x) for x in line[:-5]]
--> 202                     line[-5:] = [int(x) for x in line[-5:]]
    203 
    204                     data = OxtsPacket(*line)

This file 2011_09_30/2011_09_30_drive_0018_sync/oxts/data/0000001513.txt has the last 5 fields encoded as floats:

49.05107247768027 8.39634710035407 112.97637430827200 0.02133146666667 0.02549146666667 -3.12968378038470 -0.02869999635360 -6.11906527162626 6.12277726787053 0.04792340039509 -0.01607654044456 -1.69708811845858 0.40287935775269 9.71601390782342 -1.45137920409012 0.20791130147662 9.76489679132369 0.02139399051063 0.00560646235189 0.02384900619543 0.02202315097739 0.00481946270660 0.02341972805644 0.01891981911463 0.01199306884014 4.00000000000000 10.00000000000000 -1.00000000000000 -1.00000000000000 -1.00000000000000.

leeclemnet commented 8 years ago

Fixed in https://github.com/utiasSTARS/pykitti/commit/a2459a9b37553010573b761ed74fc2f7a5fe575a