Updating ros controller_manager_msgs to melodic

6 visualizaciones (últimos 30 días)
Mihael Simonic
Mihael Simonic el 1 de Jun. de 2020
Comentada: Mihael Simonic el 30 de Jun. de 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 https://github.com/ros-controls/ros_control/compare/kinetic-devel...melodic-devel#diff-1e2186b2d201088ea127dd088546d83d
and https://www.mathworks.com/matlabcentral/answers/500397-updating-ros-messages-for-moveit (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:
controller_manager_msgs
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: 9.7.0.1190202 (R2019b)

Respuestas (1)

Jagadeesh Konakalla
Jagadeesh Konakalla el 26 de Jun. de 2020
Can you take a look at the following MATLAB answer ? Let me know if the solution does not work for you
  1 comentario
Mihael Simonic
Mihael Simonic el 30 de Jun. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Custom Message Support en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by