Skip to content
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

Genereate RQT graph from command line #68

Open
alsora opened this issue Jul 2, 2021 · 8 comments
Open

Genereate RQT graph from command line #68

alsora opened this issue Jul 2, 2021 · 8 comments

Comments

@alsora
Copy link

alsora commented Jul 2, 2021

This is a feature request.

As far as I know, rqt_graph only runs as a GUI application as part of rqt.
I think it would be very valuable to have this also work as a command line tool.

The purpose is to have a script that is run automatically and that is used to generate a pdf/image showing the ROS nodes graph.

Is this something that would be possible to add?

@alsora
Copy link
Author

alsora commented Nov 27, 2021

@mjeronimo @wjwwood do you have any thoughts on this? I really don't know anything about the rqt architecture, but I feel that this would be a very useful feature.

@wjwwood
Copy link
Member

wjwwood commented Nov 29, 2021

It would be reasonable, in my opinion, to have a button in the GUI to save the image, and also a command line option to the rqt_graph CLI tool that saves an image and exits.

@alsora
Copy link
Author

alsora commented Nov 29, 2021

There's already a save image button in the GUI.
Do you have an example for specifying plugin-specific command line options? Or should I create a separate CLI tool for this?

@wjwwood
Copy link
Member

wjwwood commented Nov 29, 2021

Oh ok, uh I don't know one off the top of my head, let me look. Having a separate CLI tool (maybe via ros2 node or something new) would also be fine. It could share an implementation (or most of one) with rqt_graph.

@wjwwood
Copy link
Member

wjwwood commented Nov 29, 2021

I don't see any examples. I haven't used rqt enough to say even what's available in the "context" you get. I wouldn't be surprised in cli arguments are in there. Maybe with a little digging you can find more or maybe another person watching here can give a hint.

Otherwise another cli tool might be the easiest thing.

@GeFrIt42
Copy link

Hello,
Is this feature being developed/planned in rqt_graph ?
or another cli tool was developed?
Best Regards

@alsora
Copy link
Author

alsora commented May 19, 2022

Hi @GeFrIt42, unnfortunately we haven't had time to look into this yet.
We were hoping for a quick solution, but it looks like implementing it requires at the very least to become more familiar with the current ROS 2 CLI and rqt architectures.

I don't have any estimate on whether we will be able to pick this item up, so feel free to contribute to it if you are interested!

@felixdivo
Copy link

I'd add that having a command line tool for this would be nice, e.g. to generate documentation in a more automated fashion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants