Robotics StackExchange | Archived questions

Set ros param list from command line?

How do I do the equivalent of

<rosparam param="exclude_list">
   ['(.*)Depth(.*)','(.*)theora(.*)']
</rosparam>

for a node from the command line with rosrun?

If I try to do it like rosparam set would have a list with _exclude_list:="['(.*)Depth(.*)','(.*)theora(.*)']" the list becomes mangled, rosparam gettting exclude_list results in:

 '[''(.*)Depth(.*)'',''(.*)theora(.*)'']'

rosparam get on the same list properly set from rosparam set results in no quotes at all

 [(.*)Depth(.*), (.*)theora(.*)]

Asked by lucasw on 2015-09-23 10:35:26 UTC

Comments

Answers