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

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

Comments

1

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
2

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.]

http://www.ros.org/wiki/ROS/YAMLCommandLine might be also a good starting point to look at.

http://www.ros.org/wiki/rosservice provides all this information as well.

Cheers

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 6,934 times

Last updated: Oct 24 '12