Overflow error: cannot convert float infinity to integer
VicoLeChips opened this issue · 1 comments
VicoLeChips commented
Hello,
I'm currently following all steps which are awesome and well explained.
It works great, however sometimes (usually when turning), the car stops and shows an overflow error specifying : cannot convert float infinity to integer (line 294 in hand_coded_lane_follower) :
x1 = max(-width, min(2 * width, int((y1 - intercept) / slope)))
Has anyone had this issue and has been able to fix it ?
VicoLeChips commented
Fixed the issue with a infinite small number for the slope within a try ... except