Line Following simulation using Direct Lookup Table 2-D
Ältere Kommentare anzeigen
I have a problem with a line following simulation algorithm design. My task is to simulate, using Simscape Multibody, the behaviour of an 4 wheeled vehicle that's using an infrared sensor to follow a designed line. Using the Image Processing Toolbox, I uploaded a picture of a custom closed circuit (that simulates the line) and the Toolbox created a single variable(596x949). This variable is used into a line following simulator which I took from a MATLAB video dedicated to line following design: https://www.youtube.com/watch?v=lr6i0Wss6RY. More precisely, the data generated with the Toolbox goes inside a Direct Lookup Table 2-D block. What I've noticed is that the block is yellow with a red border (is it an error, right?) as shown in the picture. Also, the 596x949 matrix is full of number 1. Is it normal or it may be an error of the Toolbox? Honestly, I don't understand how the simulator is working.
The main problem is that line following block is not working, it gives always a value of 1 even if the vehicle is not on the line. What can I do?

1 Kommentar
Adeep
am 8 Feb. 2024
Hi Joseph,
Could you share your model or atleast a portion of it to better isolate the issue?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Simulation and Analysis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!