roslaunch - get parameter files loaded

asked 2018-10-16 09:01:20 -0600

lucascoelho gravatar image

Hi all,

roslaunch has some options to get the launch files included and nodes launched. However, I want to know which parameter files (yaml) would be loaded when running a launch file with a given set of arguments. Is that possible? Using the python API would also be OK for me.

edit retag flag offensive close merge delete

Comments

Not quite sure what you mean, parameters are loaded quite similarly to nodes being launched, so you can always just look at the included files. rqt_launchtree is a nice tool for figuring out what your larger launch files are launching and what the parameters are

Reamees gravatar image Reamees  ( 2018-10-17 01:40:06 -0600 )edit

Hi @Reamees, rqt_launchtree is not exactly what I was looking for, because I don't want something graphic, but I've analyzed their code and I saw that they use roslaunch xmlparser from the python API to get the yaml files loaded.

lucascoelho gravatar image lucascoelho  ( 2018-10-17 08:58:12 -0600 )edit

My problem is that I have a very complex structure of launch files with a lot of includes and also some of these includes are influenced by environment variables, making the process of manually looking at the launch files unpractical. I think the package you've sent will help me with that, thanks!

lucascoelho gravatar image lucascoelho  ( 2018-10-17 09:01:42 -0600 )edit