Xacro if statement evaluation order

asked 2015-12-18 06:15:18 -0500

zerochill gravatar image


I am using xacro v1.9.5 with ros indigo but it seems I have run into a bug.

When I use the following code:

<?xml version="1.0"?>
<robot name="test"  xmlns:xacro="http://ros.org/wiki/xacro">

  <xacro:if value="${1==0}" >
        <cylinder radius="1.0" length="1.0"/>
  </xacro:if >


the if statement will be evaluated as true. It looks like that only the first value is taken into account.

Am I using it wrong or is this a known bug?

edit retag flag offensive close merge delete