Which ROS2 launch is preferable python or xml?
As of ROS2 Eloquent we can use xml or yaml for writing launch files. Previous versions of ROS2 used python with the roslaunch API. So my question is which of these methods is currently recommended or considered best practice?
I will be converting an existing ROS1 package to ROS2 Foxy and I need to decide how to update the launch structure. I'm leaning toward XML since that will make the conversion more straightforward, but if python files are now considered best practice I will follow the community standards.
Update from Answer: After reviewing the documentation based on the concerns with XML functionality pointed out by @stevemacenski, I have decided to stick with python until XML adds support for components as they are the recommended way to design nodes https://discourse.ros.org/t/ros-2-das....