Use rosparam get in launch file
Hi I am trying to launch a static_transform_publisher from the tf package. It has the following syntax:
static_transform_publisher x y z yaw pitch roll frame_id child_frame_id period_in_ms
which should be called from a launch file like this
<launch>
<node pkg="tf" type="static_transform_publisher" name="link1_broadcaster" args="1 0 0 0 0 0 1 link1_parent link1 100" />
</launch>
What I am trying to achieve is to load the parameters x y z yaw pitch roll
from a calibration (.yaml) file, just as I can load rosparams using the rosparam load
syntax:
<rosparam command="load" file="$(find rosparam)/example.yaml" />
But I can't find a way to use the values from the parameter server and pass them via the args=
Argument.
I am hoping to find a launchfile-based solution instead of writing a node, that basicaly does the same as the static_transform_publisher node.
Does anyone have a solution?
PS: I do not want to hardcode the values into the launch file, because they might change. Not during runtime, but in between runs.
My guess is that this is not possible.
You may want to edit the source so that those arguments are instead loaded via the parameter server instead of through the launch file.