Filter löschen
Filter löschen

Updating ros controller_manager_msgs to melodic

2 Ansichten (letzte 30 Tage)
Mihael Simonic
Mihael Simonic am 1 Jun. 2020
Kommentiert: Mihael Simonic am 30 Jun. 2020
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
and (to change package.xml to the legacy format), I still get the error:
>> rosgenmsg('/path/to/MATLAB/melodic_msgs')
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: (R2019b)

Antworten (1)

Jagadeesh Konakalla
Jagadeesh Konakalla am 26 Jun. 2020
Can you take a look at the following MATLAB answer ? Let me know if the solution does not work for you
  1 Kommentar
Mihael Simonic
Mihael Simonic am 30 Jun. 2020
I already referred to this answer in my question. Following this procedure does not work for me. It seems that my bug only applies to the messages already included in rosjava jars shipped with matlab. Other messages that are shipped in separate jars seem to work fine.

Melden Sie sich an, um zu kommentieren.


Mehr zu Custom Message Support finden Sie in Help Center und File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by