-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Description
Hi team,
I'm hitting a wall trying to import a URDF robot model into Blender 4.2 using the Phobos add-on, both when scripting and using the GUI.
I'm hoping the community can help me figure out the underlying cause for the two distinct errors below.
Goal
Automate the import of a URDF robot model into Blender 4.2 using the Phobos Add-on via a Python script run from the command line.
Error 1: When Using Python Script
| Error | How It Occurs |
|---|---|
| AttributeError: Calling operator "bpy.ops.phobos.import_model" error, could not be found | This happens when executing the script via the terminal (e.g., ./blender --python script.py). |
| Context | Phobos is explicitly enabled in the script, and all external dependencies (lxml, scipy, numpy) are installed in Blender's internal Python environment. The operator still fails to register in the bpy.ops namespace during the terminal launch. |
Error 2: When Using Phobos GUI Button
| Error | How It Occurs |
|---|---|
| xml.etree.ElementTree.ParseError: syntax error: line 1, column 0 | This happens when manually clicking the Phobos "Import" button in the Blender GUI and selecting the .urdf file. |
| Context | The XML parser fails to read the file because the .urdf file (generated from XACRO) contains non-XML data (spaces/warnings) at the very beginning (line 1, column 0). |
Any help with the registration issue (Error 1) or a definitive fix for the corrupted URDF file header (Error 2) would be greatly appreciated!
Thanks!
Metadata
Metadata
Assignees
Labels
No labels