Launching xml file from python launch file
I'm trying to launch an xml launch file from a python launch file, but it's getting stuck on the <launch>
section of the xml.
Is there a different way of doing this?
Code:
def generate_launch_description():
return LaunchDescription([
IncludeLaunchDescription(PythonLaunchDescriptionSource(
os.path.join(get_package_share_directory('rosbridge_server'),
'launch/rosbridge_websocket_launch.xml')))
])
Error:
File "/opt/ros/foxy/share/rosbridge_server/launch/rosbridge_websocket_launch.xml", line 1
<launch>
^
SyntaxError: invalid syntax