ROS Service How to pass array with different types? -


is possible make ros service call such following (with different data types inside array)?

rosservice call /node_name/srv_name 'parameter: [one 2 3.3 4 5 6.6]'

what corresponding ros message like?

i found work-around. calling service via

rosservice call /node_name/srv_name 'parameter: ["one" "2" "3.3" "four" "5" "6.6"]' 

the .srv-file can written as

string[] parameter 

and 1 have parse strings later in c++ or python. idea behind

int main(int argc, char** argv) 

.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -