-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Converting between Ros Nodelist and Process Ids #1564
Comments
There are 2 main reasons we don't have this in ROS 2:
|
Process ids do not have to be unique, but it would be nice to know that mapping. Additionally, a good middle ground would be giving users easy access between the instance of a node and the executable which runs that node. Currently, if two nodes with the same name exist, distinguishing between how they were launched is kind of pain. Ros's commitment to cross platform support is admirable, but reducing to the lowest common feature set seems reductive. |
a couple of comments here,
|
You could try to use |
That sounds like a great solution. Thank you so much! |
I'm glad it seems like there's a good solution. Using a container orchestration software might also be another solution. It does seem like this would be useful, but it's not clear what this means when nodes are running on different machines. Some middlewares have host information, but I don't think all of them do, so there probably isn't a clean way to do this for different middlewares. I'm going to close this issue. Feel free to continue the discussion or open it back up, if it makes sense to do so. |
Feature request
Feature description
Going from node name to process id(s).
I am building a profiling tool for ROS nodes and I can find out the nodes which are currently running and their topics. However, I am unable to find out which PID those node names correspond.
Some nodes have the same executable and node name allowing
pgrep
to effectively filter out nodes by name. However, there does not seem to be an easy way to go from a ros node and namespace to a process ID.There was a way to do this in Ros 1 as there is a package which was able to monitor CPU usage. However, there seems to be no equivalent in Ros2.
Does anyone have any ideas on this?
The text was updated successfully, but these errors were encountered: