dfki-ric / phobos

An add-on for Blender allowing to create URDF, SDF and SMURF robot models in a WYSIWYG environment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cant import URDF in Release v2.0.0

a-kest opened this issue · comments

commented

Hello,
for a project I wanted to edit a URDF file using Phobos.
However, similar to #291 I get an error while importing the urdf file:

Screen goes here

Steps to reproduce the behavior:

  1. Clone the Phobos repository (Phobos v2.0.0)
  2. Zip the Phobos folder in the Phobos repository
  3. Download Blender v3.3LTS
  4. Add the Phobos zip file as an add-on to blender.
  5. Open the sidebar, select Phobos, scroll down and click Import Robot Model
  6. Try importing any URDF file (tested with 5 urdf files including the one stated in #291)
  7. Error should appear

Using:

  • OS: Ubuntu 22.04LTS
  • Phobos v2.0.0
  • Blender v3.3LTS

It seems that the mesh pathes are given in the way package:// and that phobos can't derive the correct path to the meshes. This happens when you move the URDF out of the package. Your error message shows that your robot is not inside a package directory but directly in /home/speedy/Downloads.
Please make also sure that the meshes directory is findable, to load the robot. ;)

Regarding the example robot from #291:
For https://github.com/unitreerobotics/unitree_ros/tree/master/robots/go1_description the directory structure looks like this:

  • go1_description/
    • meshes/
      • *.dae
    • urdf/
      • go1.urdf
    • ...

And accordingly the mesh pathes in go1.urdf are given as "package://go1_description/meshes/*.dae".

I checked out the repo and the robot loads without any changes directly into phobos.

Thanks for your contribution and using phobos. I consider this issue as solved, please reopen and specify further in case this issue persists for you. :)