Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
xlz opened this issue Sep 13, 2016 · 1 comment
Closed
Labels

Comments

@xlz
Copy link

xlz commented Sep 13, 2016

/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
Copy link
Member

Fixed in a2459a9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants