readImage function of Robotics System Toolbox not working anymore in MATLAB 2018a

조회 수: 2 (최근 30일)
The function readImage ( https://nl.mathworks.com/help/robotics/ref/readimage.html ) of the Robotics System Toolbox does not work anymore in MATLAB 2018a. I get the following error message:
Undefined function or variable 'readImage'.
The documentation of this function is still available for 2018a and there is not any indication there, that this function is renamed or not supported anymore.
Can somebody confirm this and help me with a solution.
Thanks in advance
  댓글 수: 2
Ameer Hamza
Ameer Hamza 2018년 5월 7일
How are you calling the function readImage(), are you calling it with a ROS message as input?
Lars van Meurs
Lars van Meurs 2018년 5월 7일
편집: Lars van Meurs 2018년 5월 7일
Thanks for your comment. I think I might have identified the problem now. I used the new functionality (2018a) of the readMessages function, i.e.
readMessages(bagSelect, 'DataFormat', 'struct');
I used that as input to the readImage function. However, it seems that the struct dataformat is not supported by this function. If I use
readMessages(bagSelect);
as input, I does work. It would be handy if readImage would also support the data format struct.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by