load arg from file in launch files

asked 2015-01-20 07:06:18 -0500

Bo Li gravatar image

Hi, I am running some nodes with a long argument list. For example the tf2_ros/static_transform_publisher takes x, y, z, qx, qy, qz, qw and two frame ids as its arguments.

<node pkg="tf2_ros" type="static_transform_publisher" name="foo", args="1 0 0 0 0 0 1 frame1 frame2" />

Wring these arguements in a launch file is very inconvenient as they sometimes change. So is there any way I can load them from file e.g. a yaml instead? Thank you!

edit retag flag offensive close merge delete