Ask Your Question

How to put multiple visual elements into a single link in a urdf?

asked 2013-11-14 09:06:36 -0600

lucasw gravatar image

updated 2020-11-21 11:26:20 -0600

I know above a certain complexity it is better to move entirely to collada meshes, but I think it would be nice (and preserve the ability to place and scale visual elements within a xacro/urdf) to be able to have multiple visuals within a link like the following, which would create a composite object out of a cube and a cylinder mesh (or a cube primitive or anything else):

 <link name="link1">

 <visual name="vis1">
     <origin xyz="0 0 0" rpy="0 0 0" />
       <mesh filename="package://testbot_description/meshes/cud.dae" />
 <visual name="vis2">
     <origin xyz="0 1.0 0" rpy="0 0 0" />
       <mesh filename="package://testbot_description/meshes/cylinder.dae" />

Right now I'm creating extra fixed joints and links that are purely for visual purposes, it seems like they pollute the xacro and rviz environments. Is there another way to solve this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-09-25 13:29:59 -0600

gvdhoorn gravatar image

A bit late (\o/), but adding multiple visual elements to links is (now) allowed. See wiki/urdf/XML/link.

edit flag offensive delete link more


Cool, I'll try it out.

lucasw gravatar image lucasw  ( 2016-09-26 13:43:14 -0600 )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: 2013-11-14 09:06:36 -0600

Seen: 1,695 times

Last updated: Sep 25 '16