Robotics StackExchange | Archived questions

load arg from file in launch files

Hi, I am running some nodes with a long argument list. For example the tf2ros/statictransform_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!

Asked by Bo Li on 2015-01-20 08:06:18 UTC

Comments

Answers