ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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.