ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
With launch substitutions, you can build strings like this with tuples. Sure there's more elegant ways to create the tuple, but this works.
location_config = (get_package_share_directory('lrs_wdb'),
'/config/location_',
LaunchConfiguration('location'), '.yaml')
return LaunchDescription([
Node(package='lrs_wdb',
executable='wdb',
parameters=[location_config]
)
])