ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Just stumbled upon this questions..
I would go for launch file arguments (http://wiki.ros.org/roslaunch/XML/arg):
<launch>
<arg name="args" default="1 0 0 0 0 0 1 link1_parent link1 100"/>
<node pkg="tf" type="static_transform_publisher" name="link1_broadcaster" args="$(arg args)"/>
</launch>
Maybe you should use one argument per parameter.
If you really want to use parameters, you can use this hackish solution that uses bash to append the arguments read by rosparam:
<launch>
<param name="myargs" value="1 0 0 0 0 0 1 link1_parent link1 100"/> <!-- or elsewhere -->
<node pkg="tf" type="static_transform_publisher" name="link1_broadcaster" launch-prefix="/bin/bash -c '$* `rosparam get myargs`' --"/>
</launch>