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

2 ビュー (過去 30 日間)
Lars van Meurs
Lars van Meurs 2018 年 5 月 7 日
編集済み: Lars van Meurs 2018 年 5 月 7 日
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 Center および File ExchangeCode Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by