I would like to know how to calculate the distance for each car when i run my application for the autonomous vehicle in a real time.in addition i want to know how the calculation are writing in c++.
You could see in the images we can know the distance for each vehicle but i don't know what code should i use to make all these calculation for every vehicle .
please check the links to see the photos, so you could understand more about what i'm trying to achieve.
Also you could check the application for the autonomous vehicle in github
https://github.com/CPFL/Autoware
For Photos click here
http://i.stack.imgur.com/NJ4Nq.jpg
http://i.stack.imgur.com/SEpbP.jpg