unitreerobotics / unitree_ros

BSD 3-Clause "New" or "Revised" License
542 stars 249 forks source link

robot.xacro Undefined substitution argument DEBUG #28

Closed xinsongyan closed 2 years ago

xinsongyan commented 2 years ago
$ rosrun xacro xacro robot.xacro > robot.urdf
Undefined substitution argument DEBUG
when processing file: robot.xacro

In the robot.xacro file, Default value for DEBUG is not given. Maybe false by default?

<!-- Debug mode will hung up the robot, use "true" or "false" to switch it. -->
    <xacro:if value="$(arg DEBUG)">
        <link name="world"/>
        <joint name="base_static_joint" type="fixed">
            <origin rpy="0 0 0" xyz="0 0 0"/>
            <parent link="world"/>
            <child link="base"/>
        </joint>
    </xacro:if> 
TrivasZhang commented 2 years ago

That's right. Some useless tags need be deleted by hand after $ rosrun xacro xacro Very thanks.