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

3 views (last 30 days)
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 Comments
Ameer Hamza
Ameer Hamza on 7 May 2018
How are you calling the function readImage(), are you calling it with a ROS message as input?
Lars van Meurs
Lars van Meurs on 7 May 2018
Edited: Lars van Meurs on 7 May 2018
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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!