I use MATLAB2020a under Win10 and use rosgenmsg to use grid_map messages in Matlab.
- I created the custom message as stated in the documentation (I had to add two build dependencies in grid_map_msgs package.xml though)
- The new custom messages are visible if I exected rosmsg list, e.g. the message type 'grid_map_msgs/GridMap':
If I now want to create a message I get the following error:
Cannot find a MATLAB message class for type grid_map_msgs/GridMap.
Also, if I create an publisher (rosinit works, connected to master), I get the following error:
>> pub = rospublisher('/MyTest', 'grid_map_msgs/GridMap');
Failed to create a publisher with topic name /MyTest and type grid_map_msgs/GridMap.
Same applies for a subscriber.
Does anybody have an idea why this does not work, even though the custom messages are listed in Matlab correctly?