Ask Your Question

How to rosservice call with arrays

asked 2012-10-05 05:40:53 -0500

DocSmiley gravatar image

I'm using ROS electric.

I have an srv that contains 2 arrays of int32[] rosmake functions correctly and the service is listed.

However when I try to call the service I cannot get it to accept the arrays.

Could someone please give me an example of the syntax for the rosservice call command?

edit retag flag offensive close merge delete



Which programming language would you prefer? C++, Python, Lisp or the command line syntax?

Lorenz gravatar image Lorenz  ( 2012-10-05 05:44:23 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-10-24 05:49:54 -0500

JBuesch gravatar image

If you mean the command line syntax it would be something like

rosservice call /service_name [first_array_items_seperated_by_comma] [1.,2.,3.] might be also a good starting point to look at. provides all this information as well.


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-10-05 05:40:53 -0500

Seen: 5,489 times

Last updated: Oct 24 '12