Line Following simulation using Direct Lookup Table 2-D
古いコメントを表示
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 件のコメント
Adeep
2024 年 2 月 8 日
Hi Joseph,
Could you share your model or atleast a portion of it to better isolate the issue?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Simulation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!