How to pass a string argument to a service call
I have a service that accepts a single string argument called "data". The .srv definition is simply:
string data
---
If I try to call my service with:
rosservice call /mynode/myservice "some text"
I get the error:
ERROR: service [/mynode/myservice] responded with an error: service cannot process request: handler returned invalid value: Invalid number of arguments, args should be [] args are(,)
The wiki's advice on specifying command-line strings doesn't seem to be correct.
What am I doing wrong?
It seems like the caller is ok, and the error is on the server side.