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

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

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

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

Comments

2

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 -0600 )edit
1

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 -0600 )edit

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

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

1 Answer

Sort by ยป oldest newest most voted
1

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

demmeln gravatar image
edit flag offensive delete link more

Comments

I know that this is an old thread, but this is helpful too: http://wiki.ros.org/rosservice

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

Question Tools

2 followers

Stats

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

Seen: 11,345 times

Last updated: Feb 21 '14