UniversalRobots / Universal_Robots_ROS2_Description

ROS2 URDF description for Universal Robots
BSD 3-Clause "New" or "Revised" License
141 stars 117 forks source link

Duplicated xarco "name" argument in the URDFs #131

Open macmacal opened 10 months ago

macmacal commented 10 months ago

Hello, In both of the provided URDF files (urdf/ur.urdf.xacro & urdf/ur_mocked.urdf.xacro) there is a requirement for xarco launch argument name. However, in the next line this argument is defined by xacro:arg marker:

<robot xmlns:xacro="http://wiki.ros.org/xacro" name="$(arg name)">
  <!-- robot name parameter -->
  <xacro:arg name="name" default="ur"/>

As far as I understand the authors' intentions, these URDFs should define and contain all parameters to call the xacro:ur_robot macro, without need to pass more information. Even with provided default value with xacro:arg I couldn't parse the file with xacro (on ROS 2 Humble) - the launch argument name:= is required.

I would like to ask to clarify this ambiguity.

fmauch commented 6 months ago

Sorry for the late answer...

That intention is not entirely the case, let me explain:

I hope that explanation helps reasoning the structure as it is. Feel free to comment if you have a suggestion how to handle this differently.