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!