Skip to content

Cannot import urdf fie in Blender 3.65 #396

Description

@SyedIbrahimNasir

This is the Error log which pops up after I import the model:

Python: Traceback (most recent call last):
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\core\robot.py", line 47, in init
raise e
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\core\robot.py", line 41, in init
super().init(xmlfile=xmlfile, submechanisms_file=submechanisms_file, smurffile=smurffile,
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\smurfrobot.py", line 104, in init
base_robot = parse_xml(self.xmlfile)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\parser.py", line 49, in parse_xml
return XMLRobot.from_xml(xml_root, dialect=file_type, _xmlfile=xml_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\base.py", line 350, in from_xml
return cls.factory[dialect].from_xml(cls, xml, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\xml_factory.py", line 321, in from_xml
return classtype.create(**super(XMLFactory, self).kwargs_from_xml(xml, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\xml_factory.py", line 275, in kwargs_from_xml
self.xml_children[child.tag]["class"].from_xml(
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\base.py", line 350, in from_xml
return cls.factory[dialect].from_xml(cls, xml, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\xml_factory.py", line 321, in from_xml
return classtype.create(**super(XMLFactory, self).kwargs_from_xml(xml, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\xml_factory.py", line 275, in kwargs_from_xml
self.xml_children[child.tag]["class"].from_xml(
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\base.py", line 350, in from_xml
return cls.factory[dialect].from_xml(cls, xml, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\xml_factory.py", line 321, in from_xml
return classtype.create(**super(XMLFactory, self).kwargs_from_xml(xml, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\xml_factory.py", line 287, in kwargs_from_xml
_kwargs = self.xml_nested_children[child.tag].kwargs_from_xml(child,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\xml_factory.py", line 275, in kwargs_from_xml
self.xml_children[child.tag]["class"].from_xml(
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\base.py", line 350, in from_xml
return cls.factory[dialect].from_xml(cls, xml, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\xml_factory.py", line 321, in from_xml
return classtype.create(**super(XMLFactory, self).kwargs_from_xml(xml, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\base.py", line 342, in create
return cls(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\io\representation.py", line 560, in init
filepath = read_relative_filename(filepath, kwargs["_xmlfile"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Syed Hanzala Nasir\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\phobos\utils\xml.py", line 98, in read_relative_filename
assert os.path.exists(out), f"Couldn't identify file from {filename}. Tried {out} but it doesn't exist!"
^^^^^^^^^^^^^^^^^^^
AssertionError: Couldn't identify file from package:\brainco-righthand-URDF-V2\meshes\right_base_link.STL. Tried C:\Users\Syed Hanzala Nasir\Downloads\BrainCo-Hand-Revo2-URDF-V2\brainco-righthand-URDF-V2\brainco-righthand-URDF-V2\meshes\right_base_link.STL but it doesn't exist!

Desktop (please complete the following information):

  • OS: Windows 10
  • Blender version 3.6.5
  • debugging output run setup.py --info

Additional context
I don't think there is any issue with the urdf since i tested it with one or two online urdf viewers and it worked there

E.g. URDF version, mesh type/version etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions