ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The best way I've found so far is to use the PythonExpression subsitution. Here I append the filetype suffix to a string.
world_name = LaunchConfiguration('world')
world_filename = PythonExpression(expression=["'", world_name, "'", " + '.world'"])
Fellfalla's solution is good too and I'd like to see it get PRed into the main repository.