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

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" />
     <geometry>
       <mesh filename="package://testbot_description/meshes/cud.dae" />
     </geometry>
 </visual>
 <visual name="vis2">
     <origin xyz="0 1.0 0" rpy="0 0 0" />
     <geometry>
       <mesh filename="package://testbot_description/meshes/cylinder.dae" />
     </geometry>
 </visual>  
 </link>

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
4

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

Comments

Cool, I'll try it out.

lucasw gravatar image lucasw  ( 2016-09-26 13:43:14 -0600 )edit

multiple collision elements also work.

audrius gravatar image audrius  ( 2022-03-03 01:14:53 -0600 )edit

Question Tools

2 followers

Stats

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

Seen: 3,605 times

Last updated: Sep 25 '16