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?

답변 (1개)

Florian Kraemer
Florian Kraemer 2017년 5월 11일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Network Connection and Exploration에 대해 자세히 알아보기

질문:

2017년 3월 23일

답변:

2017년 5월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by