Importing .urdf file not working as expected
Tindahood opened this issue · comments
For a little side-project I wanted to see if I could get this robot into blender and see what's possible from there. I found this repository and saw that importing URDF is supported so I wanted to try. Upon importing though I get this errors:
Python: Traceback (most recent call last):
File "/home/me/.config/blender/2.93/scripts/addons/phobos/operators/io.py", line 283, in execute
model = entity_io.entity_types[suffix]['import'](self.filepath)
File "/home/me/.config/blender/2.93/scripts/addons/phobos/io/entities/urdf.py", line 620, in importUrdf
log(" Adding link {}.".format(link.attrib['name']), 'DEBUG')
KeyError: 'name'
location: <unknown location>:-1
I feel like I'm this close to successfully importing but apparently some missing xml attributes seam to break the logging which in turn prevents a successful import.
Steps to reproduce the behavior:
- From the official LTS download page download blender-2.93.18-linux-x64.tar.xz and this phobos release
- Clone the unitree repo containing the robot files
- extract blender, run it, install and activate the Phobos plugin just like any other plugin
- Open sidebar, select phobos, scroll down and click Import Robot Model
- In the dialouge navigate to
/location/of/unitree_ros/robots/go1_description/urdf/
and selectgo1.urdf
. - The error should appear in the bottom right corner.
Using:
- OS: Linux Mint 21.1
- Phobos 1.0.3
- Blender Version 2.93 LTS
Hi @Tindahood,
Can you do me a favour and try blender3.3.
Then clone this repo on branch pre_v2.0.0 and follow the readme for installation of phobos.
Thanks in advance ;)
EDIT: pre_v2.0.0 is now master
@hwiedPro I might find some time to do this soon. Doing this in a docker should work fine, right?
I have never tried using blender from docker, but if you can connect to an xserver, it should work
As stated in #296 (comment), I tried to import the go1_description and it works for me with the phobos version from the master branch.
Therefore I close this. If you encounter further problems, feel free to specify and reopen.