Daraan / LunaticAI-Driver-for-CARLA-Simulator

MIT License
1 stars 0 forks source link

Very rare TypeError #21

Closed Daraan closed 1 week ago

Daraan commented 3 months ago

https://github.com/Daraan/LunaticAI-Driver-for-CARLA-Simulator/blob/57f81696b9d9ab6b670194d71d311e5dabb9d111/classes/HUD.py#L152

Vehicles is a list of (float, Vehicle)

TypeError: '<' not supported between instances of 'Vehicle' and 'Vehicle'

Figure out what caused this. Where does wrong type in tuple come from? Why does it work in most other cases.

Daraan commented 2 weeks ago

This issue is very rare and I haven't met in in the last months.

Daraan commented 1 week ago

Origin of the error, having (d1, V1) , (d2, V2)

This issue has been taken care of in the dev branch by just relying on the float value.