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

How to rosservice call with arrays

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

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

1 Answer

Sort by ยป oldest newest most voted

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

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

Question Tools


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

Seen: 6,753 times

Last updated: Oct 24 '12