Error due to variable size input in R2022a but model works fine in R2020a

조회 수: 8 (최근 30일)
Amrita Ojha
Amrita Ojha 2022년 9월 28일
이동: Remo Pillat 2024년 5월 23일
I get the following error when i try to run the model that has already been tried and tested in a different MATLAB version (R2020a):
'Input signal at port 6 for "CarlaRosMatlab_LaneDetection/MATLAB System1" is a variable-size signal, but System object "LaneDetection" indicates that it expects a fixed-size input signal. Connect the input port to a fixed-size signal, or add/modify the 'isInputSizeMutableImpl' method to allow variable-size input signal'
I am using version R2022a. Since no changes have been made to the model and source code, i cannot figure out the issue. Is version mismatch causing this?
I would appreciate any help on this.

답변 (1개)

Jagadeesh Konakalla
Jagadeesh Konakalla 2022년 9월 30일
이동: Remo Pillat 2024년 5월 23일
Hi Amrita,
From R2020b release onwards, the backend is changed to C++ from Java for better performance. Ths may be the reason for the issue that you observe.
Please see the following link for working with variable size signals in ROS.
Please share the model to reproduce the issue on your end. I would suggest you to contact us through the MathWorks Technical support as we may require more data to debug the issue.
Thanks,
Jagadeesh K.

카테고리

Help CenterFile Exchange에서 Specialized Messages에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by