Giter Site home page Giter Site logo

Comments (7)

Zimmo95 avatar Zimmo95 commented on May 25, 2024

Hi,
After have followed the installation tutorial, I tried to import in Unity an already edited URDF file of a KUKA robot.
When I upload the URDF file and the meshes in the Asset folder and push on the "import robot from URDF", an error message appears telling me that Unity cannot find the asset file of each link in the specified path (picture) even though the file are located exactly in that path.
In fact, if i select by hand each asset file, unity finally opens correctly the robot.
Since it is a tedious operation, is there any way to avoid this problem?
Screenshot from 2021-03-24 22-19-56

Thanks for the availability,
Enrico

from urdf-importer.

peifeng-unity avatar peifeng-unity commented on May 25, 2024

Hi Enrico, thank you for the feedback. We will take a look at it and come back to you.

from urdf-importer.

vidurvij-Unity avatar vidurvij-Unity commented on May 25, 2024

Can you share the file structure in your Project and your URDF file ?

from urdf-importer.

Zimmo95 avatar Zimmo95 commented on May 25, 2024

my_robot.zip

Best regards,
Enrico

from urdf-importer.

at669 avatar at669 commented on May 25, 2024

Hi @Zimmo95, sorry for the delay! It looks like the URDF defined the mesh paths with .. to go up a directory level, which was not being read correctly by the importer. Additionally, the .urdf file expects to be in the root of the URDF directory, as described in the Tutorial Appendix.

The reorganized version of your URDF directory is attached! I have replaced all references for the filenames from:

<mesh filename="../meshes/stl/Tip2 Scaled.stl" scale="1.15879 1.15879 1.15879"/>

to

<mesh filename="package://meshes/stl/Tip2 Scaled.stl" scale="1.15879 1.15879 1.15879"/>

and I have also restructured the directory to look as follows:

my_robot
|-- meshes
    |-- stl
        |-- Link.002_0.asset
        |-- ...
|-- unnamed.urdf

my_robot.zip

Please let me know if this resolves your issue! I will update the ticket for this issue to support parsing the .. operator in a URDF filepath.

[ticket# AIRO-570]

from urdf-importer.

Zimmo95 avatar Zimmo95 commented on May 25, 2024

Hi Amanda,
I downloaded and imported the folder in Unity and everything worked perfectly.
Thank you for your time and your availability!

Best regards,
Enrico

from urdf-importer.

at669 avatar at669 commented on May 25, 2024

That's great to hear! The PR for the longer-term fix is linked above if you'd like to stay updated on that. In the meantime, I will close out this issue, but feel free to open a new one if another issue arises!

from urdf-importer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.