MATLAB-ROS handshake fail

15 views (last 30 days)
Dong-Kyu Won
Dong-Kyu Won on 23 Mar 2017
Answered: Florian Kraemer on 11 May 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?

Answers (1)

Florian Kraemer
Florian Kraemer on 11 May 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.

Categories

Find more on Network Connection and Exploration in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!