Line Following simulation using Direct Lookup Table 2-D
Mostrar comentarios más antiguos
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 comentario
Adeep
el 8 de Feb. de 2024
Hi Joseph,
Could you share your model or atleast a portion of it to better isolate the issue?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Simulation and Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!