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

2 visualizaciones (últimos 30 días)
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 comentarios
Ameer Hamza
Ameer Hamza el 7 de Mayo de 2018
How are you calling the function readImage(), are you calling it with a ROS message as input?
Lars van Meurs
Lars van Meurs el 7 de Mayo de 2018
Editada: Lars van Meurs el 7 de Mayo de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Code Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by