Set ros param list from command line?

asked 2015-09-23 10:35:26 -0600

lucasw gravatar image

updated 2015-09-23 10:56:40 -0600

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(.*)]
edit retag flag offensive close merge delete