ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Posting your actual .srv file would help, but I think you just have a bit of terminology issues. If you have two lines in your response section of the service definition, you would have two fields in the response message. For instance, if servicename.srv is:

int8 someRequestStuff
---
int8 firstThingToReturn
int8 secondThingToReturn

In this case, you could:

resp = servicenameResponse()
resp.firstThingToReturn = 1
resp.secondThingToReturn = 2
return resp