hatfield-c / avl

Repository for the [AVL] Autonomous Vehicle Lab project at UT Dallas
2 stars 7 forks source link

[AVL-12] Vehicles will have their velocity updated #12

Closed hatfield-c closed 3 years ago

hatfield-c commented 3 years ago

Vehicles currently have their position manually updated. While this may work for the time being, best practice dictates that rigidbody objects (like vehicles) which have collision boxes should be updated primarily via forces, or at the very least by setting the velocity of the rigidbody.

Thus, the cars should no longer receive their exact position from SUMO, but rather should receive their heading and their velocity, and from their starting positions this should be enough.

hatfield-c commented 3 years ago

This issue is being cancelled due to a lack of viable paths for this implementation.

The added up errors become too great to deal with, setting the velocity constantly causes an unfixeable jitter, and collision/friction problems necessitate exact control over positioning and control.

There may be a better way in the future using wheel collider and proper vehicle physics, but for now those are being reserved solely for the Ego Vehicle which will be driven by the self-driving model.