MATLAB-ROS handshake fail

14 visualizaciones (últimos 30 días)
Dong-Kyu Won
Dong-Kyu Won el 23 de Mzo. de 2017
Respondida: Florian Kraemer el 11 de Mayo de 2017
Hello, i am doing something using MATLAB-ROS interface in Ubuntu 16.04 LTS with ROS kinetic.
And also, i am starting with 'GazeboAddBuildAndRemoveObjectsExample' MATLAB example code.
But there are some errors.
Error using ExampleHelperGazeboCommunicator/startModelServices (line 334)
Failed to create a /gazebo/get_model_state service client.
Error in ExampleHelperGazeboCommunicator/spawnModel (line 290)
startModelServices(obj);
Error in Gazebo (line 40)
spawnModel(gazebo,ball,[8.5,0,1]);
[ERROR] ServiceClientHandshakeHandler - Service client handshake failed: client wants service /gazebo/get_model_state to have md5sum af0f702011820738976b120226dc9d96, but it has 4c515e936d3319c9610c559c60bfc3d4. Dropping connection.
I knew that service and client have to indicate the same md5sum for communication. So i have tried to change md5sum in gazebo_msgs to indicate same things, but i didn't work. How can i solve this problems?

Respuestas (1)

Florian Kraemer
Florian Kraemer el 11 de Mayo de 2017
You can verify the internal matlab rosmsg is the same as in ROS. In matlab:
rosmsg('show','package/srv_nameRequest')
rosmsg('show','package/srv_nameResponse')
And in a terminal:
rossrv show package/srv_name
They probably differ, which since this is a standard example is probably a version incompatibility issue.

Categorías

Más información sobre Network Connection and Exploration en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by