ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How can one export the graph generated by smach viewer

asked 2019-02-20 17:46:43 -0500

aceofspade gravatar image

Hey all,

I am currently using to visualize my state machine. I would like to print out the graph displayed for work purposes. Unfortunately, the graph is rather large and I am unable to directly take a screenshot of the graph with a decent resolution

I was wondering if there is a way for me to download/export the graph generated by smach viewer.


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2019-02-21 01:59:02 -0500

gvdhoorn gravatar image
edit flag offensive delete link more

answered 2019-02-24 12:51:07 -0500

aceofspade gravatar image

gvdhoorn's solution worked great. Thanks!

So apparently you can go to


and run the command line tool dot

dot -Tpng <input_name>.dot > output.png

To get a png version of your graph

edit flag offensive delete link more


You can also do -Tpdf output.pdf

yelkcub gravatar image yelkcub  ( 2020-10-02 08:33:54 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-02-20 17:46:43 -0500

Seen: 344 times

Last updated: Feb 24 '19