ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Your calling Code will also Return false if anything fails in the underlying communication. In that case any content of the Response would not make sense, as it may contain incomplete or corrupted data.
If you need a yes or no (true or false) response from your service server node, add such a field to the response Part of the service definition and fill it in the serving node an return true in both cases. This assures if call returns true that the communication succeeded and the response returned ist what the server node wants to tell you.