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

How to call a service .srv from Terminal [closed]

asked 2014-02-21 04:00:20 -0500

Jose Luis gravatar image

A short question:

I have a service defined like this: (navigate.srv)

string[] path
bool command_processed

I would like to call it by a terminal with a command like:

rosservice call /navigate ...

I have tried with:
... "path1, path2, path3"
... 'path1, path2, path3'
... "path1", "path2", "path3"
... 'path1', 'path2', 'path3'
... path1 path2 path3
... path1, path2, path3
But i don't find the correct text chain(argument) to the service works. Could someone help me?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Jose Luis
close date 2014-02-23 23:40:22



It's a list, so something along '{path: []}. 'Can you try the "cheater" way and try tab completion?

dornhege gravatar image dornhege  ( 2014-02-21 04:29:50 -0500 )edit

Thank you very much. The "cheater" way was the solution. I had underestimated the power of tab ;)

Jose Luis gravatar image Jose Luis  ( 2014-02-23 23:39:09 -0500 )edit

The tab completion is in this case surprisingly helpful! +1

m.bahno gravatar image m.bahno  ( 2020-10-09 05:28:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-21 04:55:31 -0500

demmeln gravatar image
edit flag offensive delete link more


I know that this is an old thread, but this is helpful too:

jayess gravatar image jayess  ( 2017-03-23 21:39:10 -0500 )edit

Question Tools



Asked: 2014-02-21 04:00:20 -0500

Seen: 11,067 times

Last updated: Feb 21 '14