xArm-Developer / xarm_ros

ROS packages for robotic products from UFACTORY
https://www.ufactory.cc/
BSD 3-Clause "New" or "Revised" License
196 stars 147 forks source link

Unable to conver xarm7.urdf.xacro to URDF file #196

Closed vivekcdavid closed 11 months ago

vivekcdavid commented 11 months ago

I want to convert the xarm7.urdf.xacro file to a pure URDF file which I need for creating the IKfast plugin for the xarm7 robot. But the method to conver from .xacro.urdf to urdf is giving just the lines outside of the <xacro:macro .....> ..... ... </xacro:macro>

so the output is practically empty. I am using the following command to convert

rosrun xacro xacro xarm7.urdf.xacro> model.urdf

Any help is appreciated

vimior commented 11 months ago

@vivekcdavid The wrong file was transferred. There are only macros defined in xarm7.urdf.xacro, but no calls. You should transfer (latest version) xarm_description/urdf/xarm_device.urdf.xacro or (previous version) xarm_description/urdf/xarm7_robot.urdf .xacro

vivekcdavid commented 11 months ago

Thank you so much, that worked.