Custom ROS msg type does not get added to rosmsg list even after MATLAB restart
16 views (last 30 days)
I'm following this guide to create a custom ROS message type (https://www.mathworks.com/help/robotics/ug/ros-custom-message-support.html).
This is the structure of my msg
--- path_planning_msgs FOLDER
--- package.xml (copied from guide, replace w <name>path_planning_msgs</name>
Contents of package.xml
Contents of Path.msg
Then I executed these commands and everything seemed to work (I'm on Ubuntu 16.04 LTS)
Then I edited javaclasspath.txt to add the line
Then I ran the addpath and savepath
Then I closed MATLAB to restart it.
Then I checked rosmsg list but the path_planning_msgs/Path type is nowhere to be found.
Thank you in advance.
Sebastian Castro on 19 Mar 2019
Edited: Sebastian Castro on 19 Mar 2019
Pretty sure the ROS package requires your .msg file to be inside a subfolder called msg.
So your folder structure should be as follows:
--- msg FOLDER
Try that and let us know if it works!