Detect car position at specific location

I want to detect car postion and direction at that white parking area i.e the car is exact on that location and and in that direction. I tried some methods but that are not perfect. How can i do it perfectly.
10432-car.png

Post the code that you've tried and we can try and help.

I have edited my question and also added the code now please check it and post some sample code for solving this problem. @Graham Dunnett

1 Answer

1

If you want exact you can just put the car in the position you want, record the positon (x,y,z) and the rotation (x,y,z) and then do a check against your expected values with some tolerance for each of the values.

~Justin