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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -