ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
a.urdf.xacro
only defines the hunter
xacro macro, but that macro is never called (and thus your robot never instantiated).
I typically create a 'top level' .xacro
file for this (something like hunter.xacro
fi) which is empty, apart from a call to the macro. In your case:
<?xml version="1.0" ?>
<robot name="hunter" xmlns:xacro="http://ros.org/wiki/xacro">
<xacro:include filename="$(find hunter_pkg)/a.urdf.xacro"/>
<xacro:hunter/>
</robot>
Then convert / use as normal.
In my experience, keeping your xacro macro definitions separate makes it easier to include them in other, composite, xacros.