I'd like to ask whether using a xacro parameter value in xacro macros is allowed, because it is not clear from the docs [http://www.ros.org/wiki/xacro]. Consider a simplified version of my file, which fails on ros-latest from binary packages:

<xacro:parameter name="the_param" value="1" />

<xacro:macro name="macro1" >
  <foo>${the_param}</foo>
</xacro:macro>


<xacro:macro name="macro2" params="macro2_param" >
  <mechanicalReduction>${macro2_param}</mechanicalReduction>
</xacro:macro>



<xacro:macro1 />                                                            <!-- Fails -->
<xacro:macro2 macro2_param ="${the_param}" />  <!-- Fails -->

The two above lines raise a XacroException that states " Property wasn't defined: u'the_param' " when xacro is run. Is this expected behavior?.

TIA,

Adolfo


--
Adolfo Rodríguez Tsouroukdissian, Ph. D.

Robotics engineer
PAL ROBOTICS S.L
http://www.pal-robotics.com
Tel. +34.93.414.53.47
Fax.+34.93.209.11.09
AVISO DE CONFIDENCIALIDAD: Este mensaje y sus documentos adjuntos, pueden contener información privilegiada y/o confidencial que está dirigida exclusivamente a su destinatario. Si usted recibe este mensaje y no es el destinatario indicado, o el empleado encargado de su entrega a dicha persona, por favor, notifíquelo inmediatamente y remita el mensaje original a la dirección de correo electrónico indicada. Cualquier copia, uso o distribución no autorizados de esta comunicación queda estrictamente prohibida.

CONFIDENTIALITY NOTICE: This e-mail and the accompanying document(s) may contain confidential information which is privileged and intended only for the individual or entity to whom they are addressed.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of this e-mail and/or accompanying document(s) is strictly prohibited.  If you have received this e-mail in error, please immediately notify the sender at the above e-mail address.