Ask Your Question
0

How to view xacro in graphiz

asked 2015-05-18 20:00:19 -0600

Cerin gravatar image

You can use urdf_to_graphiz to quickly check your URDF's links. How do you do this directly with an Xacro file?

Currently, you have to directly convert it first, but this is a little clunky:

rosrun xacro xacro.py -o mybot.urdf mybot.urdf.xacro
urdf_to_graphiz mybot.urdf
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-05-19 01:29:50 -0600

gvdhoorn gravatar image

Afaik you cannot do this 'directly'. Those tools try to kiss: xacro.py only coverts to urdf, urdf_to_graphviz takes a urdf and creates a diagram.

edit flag offensive delete link more
0

answered 2020-05-13 14:55:40 -0600

updated 2020-05-15 07:46:18 -0600

in melodic version you can do this with the next code in terminal:

urdf_to_graphiz <(xacro mybot.urdf.xacro)

the same trick can be used on check_urdf

check_urdf <(xacro mybot.urdf.xacro)
edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-05-18 20:00:19 -0600

Seen: 396 times

Last updated: May 15 '20