Ask Your Question
0

md5sum issue when calling a service from another computer

asked 2016-10-18 11:00:28 -0600

s1839705 gravatar image

I am running ROS on two computers. The master and it is the one requesting the service. The other is the one to which my robot is connected, and the one providing the service I wish to use (move the robot to a point).

When I try to request the service, the following error shows:

unable to connect to service: remote error reported: client wants service /enhance/MoveRobotToPoint to have md5sum 78ad5397dff8517113a4ce521add09a7, but it has 3b74f5e1707ea77798238c7e929349b7. Dropping connection.

Then, I noticed that the .srv files in the machines were different. By tunning the command

rossrv md5 MoveRobotToPoint

I noticed that the md5sum was indeed 78ad5397dff8517113a4ce521add09a7 on the ROS Master and 3b74f5e1707ea77798238c7e929349b7 on the server. So, I changed the files so they were the same (and then built the workspace again, sourced devel/setup.bash and restarted the computer). The error still occurs! However, with the above command, I get for both machines 78ad5397dff8517113a4ce521add09a7. So, I am pretty sure the md5sum is correct.

Could it be that somehow the service still "thinks" that the .srv file is the old one? How can I force him to update? I even deleted the hidden ~/MoveRobotToPoint.srv backup file.

Thank you in advance.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-10-18 15:29:53 -0600

lucasw gravatar image

You should try deleting catkin_ws/build and catkin_ws/devel and rebuilding.

edit flag offensive delete link more
0

answered 2016-10-18 15:50:50 -0600

s1839705 gravatar image

Maybe the answer given by lucasw would have worked. I solved the problem by typing 'make' in the command line in the directory catkin_ws/build/<package_name>

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2016-10-18 11:00:28 -0600

Seen: 1,883 times

Last updated: Oct 18 '16