I tried to generate a custom ROS message for my own package "traffic_light" with message type "Status". I installed the "ROS Toolbox Interface for ROS Custom Messages" support package and tried to follow the steps from the following documentation pages:
My folder structure looks like this:
I ran the "rosgenmsg" command on the 'my_message' parent folder to generate the custom message:
>> folderpath = 'C:\MyDocuments\my_message\';>> rosgenmsg(folderpath)
I tried to follow all the indicated steps, but after restarting MATLAB I get the following error:
ERROR: >> rosmessage('traffic_light/Status')Cannot find a MATLAB message class for type traffic_light/Status.