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

How to view xacro in graphiz

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

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 -0500

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 -0500

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

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

Question Tools

1 follower

Stats

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

Seen: 1,022 times

Last updated: May 15 '20