So I tried to get my head arround how to best solve this problem but I'm probably missing a simple solution. i have a ros workspace. In this workspace I have multiple packages. And in each package I have probably multiple ros nodes.
Now what I want to do is I want to write a script that can get my all the nodes and possibly also all the publishers subscribers. Also if possible the parameters and services .
One idea of me was getting all the packages via the rospack list | workspace_name and that also works great to get the packages in the workspace.
But now the problem is how to I get all the publishers /subscribers. I know that I could get them online if the node is running via the rosnode command but how should I do this offline.
I hope I just overlooked something, I hope someone could help me what the offline methode for this is.
For additional information I'm working on ros Kinetic on Ubuntu 16.04.
Originally posted by Lycea on ROS Answers with karma: 15 on 2018-07-04
Post score: 1
Original comments
Comment by Delb on 2018-07-04:
Why do you want to do that ? Being "offline" means that you don't initialize your nodes and publishers/subscribers and everything else so you won't be able to find anything.
Comment by gvdhoorn on 2018-07-05:
I second the comment by @Delb: it would be good if you can provide some more context. Perhaps easier alternatives or more suitable approaches exist for what your ultimate goal is.