17 subst = parse_substitution(
r"$(xacro '$(dirname)/robot.urdf.xacro')")
18 context = LaunchContext()
19 context.extend_locals({
"current_launch_file_directory": str(Path(__file__).parent)})
20 assert len(subst) == 1
21 assert isinstance(subst[0].file_path[0], ThisLaunchFileDir)
22 assert isinstance(subst[0].file_path[1], TextSubstitution)
23 assert isinstance(subst[0], Xacro)
24 subst[0].perform(context)