How to use ROS custom message in Matlab?

asked 2019-02-05 04:12:05 -0600

SkullKrushur gravatar image

I have followed the tutorial of creating a custom message in Matlab ( ). Everything is fine I can see my message type in the 'rosmsg list' but couldn't access it in Matlab/Simulink. It says " Cannot find a MATLAB message class for type z_pack/end " in Matlab when i try "a=rosmsg('show','z_pack/end')" .

edit retag flag offensive close merge delete


I have a feeling you'll stand a better chance of getting (good) answers by asking this on the Mathworks support forum.

gvdhoorn gravatar image gvdhoorn  ( 2019-02-05 08:18:52 -0600 )edit

You could also try using numpy as an alternative to Matlab

alextac98 gravatar image alextac98  ( 2019-04-18 12:19:28 -0600 )edit

As far as I remember matlab was restoring the custom messages to a specific directory. My fix was to delete the contents of the directory and build it again whenever I made changes in the custom messages.

ulashmetalcrush gravatar image ulashmetalcrush  ( 2020-12-24 11:53:54 -0600 )edit