Robotics StackExchange | Archived questions

How to use ROS custom message in Matlab?

I have followed the tutorial of creating a custom message in Matlab ( https://in.mathworks.com/help/robotics/ug/create-custom-messages-from-ros-package.html). 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 zpack/end " in Matlab when i try "a=rosmsg('show','zpack/end')" .

Asked by SkullKrushur on 2019-02-05 04:58:21 UTC

Comments

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

Asked by gvdhoorn on 2019-02-05 09:18:52 UTC

You could also try using numpy as an alternative to Matlab

Asked by alextac98 on 2019-04-18 12:19:28 UTC

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.

Asked by ulashmetalcrush on 2020-12-24 12:53:54 UTC

Answers