[ROS2 Foxy] loading static transform broadcaster arguments from config file
In one of my launch files I have a number of tf2 static transform publisher calls like
base_link_2_radar = Node(
package="tf2_ros",
executable="static_transform_publisher",
name="base_link_2_radar",
arguments=["0.89", "0", "0.97", "0", "0", "0", "base_link", "radar"],
# output="screen",
)
which serve to setup the sensor frame transform tree. Personally, I think it is a bit sloppy to have so much hard coding in the launch file itself. I know one can use config.YAML
files for storing parameter values, can something similar be done here?