I have controller_manager running on ros melodic. When I try to use its services from Matlab, I get the following error
[ERROR] [1591000198.922306771]: client wants service /controller_manager/switch_controller to have md5sum 5e857dedf71d6f337975e15a1e7cfdd8, but it has b29a7abc673b2c54c14b54e50f8d06a5. Dropping connection.
Some of the definitions of the controller_manager_msgs changed from kinetic to melodic. See diff of controller_manager_msgs/srv/SwitchController.srv at https://github.com/ros-controls/ros_control/compare/kinetic-devel...melodic-devel#diff-1e2186b2d201088ea127dd088546d83d
Checking subfolder "controller_manager_msgs" for custom messages.
Building custom message files for the following packages:
Generating MATLAB classes for message packages in ../MATLAB/melodic_msgs/matlab_gen/jar.
Output argument "msgFolder" (and maybe others) not assigned during call to "ros.custommsg.internal/CustomMessageLoader/loadMessages".
When I renamed controller_manager_msgs to something else, the messages were generated sucessfully. It seems that updating message definitions does not work for core messages that come already included in Matlab (with rosjava). Is there any workaround except for deleting old messages system-wide?
MATLAB Version: 220.127.116.110202 (R2019b)