How to correctly initialize ros service object
44 views (last 30 days)
If I run a simple ros service from terminal
rosrun rospy_tutorials add_two_ints_server
(or any other service) and connect to it in Matlab using
cl = rossvcclient('/add_two_ints')
I get the following output in the terminal:
[ERROR] [1595324358.790565]: incoming connection failed: unable to receive data from sender, check sender's logs for details
According to https://github.com/ros-controls/ros_control/issues/256 it seems that a malformed service call is sent.
After that I can do proppers service calls normally, using
but this error message is annoying.
How to init rossvcclient object in such a way that it doesn't send malformed calls?
Cam Salzberger on 21 Jul 2020
I've been able to reproduce this on my machine, testing with the Indigo VM. You are creating the service client in the right manner, and I don't believe any other manner of setting it up will avoid this error message popping up. I've checked the code flow, and determined that this error message on the external server only comes up when a temporary communication used to determine the service type is being shut down. It shouldn't have an impact on subsequent service calls, nor on the service server.
I understand the annoyance aspect of it though, so I've passed along your comments to the appropriate people.