see full launchfile from top tier one
Large launch files have several includes.
It would be helpful to have a command to see the full launchfile generated from the many nested ones,
pretty much like the xacro
command generates the full URDF from several nested xacro
files.
In this way I can debug the ensemble more easily.
Is there a way to do that?
I don't know of any utilities that would parse the launch file into a single file, but there is this package that can be very helpful when working with large launch files rqt_launchtree. It takes in a launch file and shows what all the arguments and parameters for each node in the launch file resolve to.
Thanks but it seems not to be supported in
melodic
. I've tried to clone and run anyway but I get import errors related to Qt. Not sure if they are because of the new operating system or not.this fork seems to have been updated to use
PyQt5
.That one works, thanks! Not marking as solved because maybe there's some other solution available.
I believe your question is actually a duplicate of #q267570.
That's not exactly what I've asked but I agree it's very similar. I've asked to generate the full launchfile from nested launchfiles.
I don't believe
.launch
files are processed in the same way as.xacro
s. There is no tool that can do what you want afaik.xacro gets turned into urdf. That is a plain tree structure and there is a serialisation process for that.
Launch files get parsed into contexts and only have an in-memory representation. There is no serialisation implemented for it to be written out to a file again.