Ask Your Question
0

tf view_frames

asked 2012-05-08 00:23:51 -0500

Miguel Riem de Oliveira gravatar image

Hello

I was just wondering if anyone knows a way to generate a formated pdf from

rosrun tf view_frames

I want to include the frames.pdf that is generated in a report by it is very very wide.

Can I do something to get a more vertically oriented graph, that fits into an A4 or letter?

Thanks

Miguel

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-05-12 16:00:48 -0500

updated 2012-05-12 16:55:02 -0500

EDIT: If there are only a couple of figures, an easy solution is to modify the frames.gv file that gets generated when you run rosrun tf view_frames. You can modify this file to best represent the graph. The corresponding graph can then be generated using the dot command:

dot -Tpdf frames.gv -o frames.pdf

Other possible solutions:

1) If you want this to be done automatically, then it is a fairly difficult problem. It is easy to generate the dot file from the tf tree, but extra work needs to be done reason about the layout. You will have to figure out a way to get the tree from TransformListener and generate a dot file appropriately with some layout information. See how the current dot file is generated here.

2) Modify the graph in an SVG editor. I personally have never used one of these, so I cannot comment on it.

edit flag offensive delete link more

Comments

1

Isn't the dot file already output (frames.gv)?

Eric Perko gravatar image Eric Perko  ( 2012-05-12 16:30:59 -0500 )edit

Excellent point. I have updated the answer based on this information. I think I have never bothered to open that file before.

piyushk gravatar image piyushk  ( 2012-05-12 16:56:19 -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

Stats

Asked: 2012-05-08 00:23:51 -0500

Seen: 1,978 times

Last updated: May 12 '12