ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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 http://wiki.ros.org/smach_viewer 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.

Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

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

gvdhoorn gravatar image
edit flag offensive delete link more
0

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

aceofspade gravatar image

gvdhoorn's solution worked great. Thanks!

So apparently you can go to

.ros/dotfiles

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

Comments

You can also do -Tpdf output.pdf

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

Question Tools

2 followers

Stats

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

Seen: 402 times

Last updated: Feb 24 '19