Automated Driving Toolbox get distance from car to lane boundaries

1 view (last 30 days)
Hi,
when using the automated driving toolbox e.g. with the MATLAB example "Lane Keeping Assist with Lane Detection", is there a way to determine the distance of the vehicle to the lane boundaries at different reference points of the vehicle? E.g. from the front of the vehicle or the rear?
As far as i understand, in this example the reference is made to the centre of the vehicle.

Answers (1)

Priysha LNU
Priysha LNU on 6 Oct 2020
In the driving scenario designer, you can get lane detections.
If you know the dimension of your ego vehicle, you can then canculate the distance from the lanes to the ego vehicle.
For the "Lane Keeping Assist with Lane Detection" example, the ego vehicle dimensions can be found from here.
DISCLAIMER: These are my own views and in no way depict those of MathWorks.
  3 Comments
Dimitrios Topouridis
Dimitrios Topouridis on 8 Oct 2020
Thank you, but this example involves predetermining the driver Path.
How do you know that this example references the ego vehicle dimension, as stated in the link you shared? I cant find any information regarding that

Sign in to comment.

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!