Giter VIP home page Giter VIP logo

Comments (8)

DavidMansolino avatar DavidMansolino commented on June 10, 2024

The box collision is supposed to generate only boxes, I don't understand where does this 'Sphere' nodes come from?
Are you using the latest version of the importer from the master branch or the one from pip?
Can you share the original URDF file and the exact command you are using to convert it?

from urdf2webots.

zapplelove avatar zapplelove commented on June 10, 2024

The box collision is supposed to generate only boxes, I don't understand where does this 'Sphere' nodes come from?
Are you using the latest version of the importer from the master branch or the one from pip?
Can you share the original URDF file and the exact command you are using to convert it?

Yes, it's a strange result.
I use a virtualenv and use the pip install urdf2webots to install the tool.
I use the command: python -m urdf2webots.importer --input=cheetah.urdf --box-collision --output=cheetah.proto
and the origin urdf file is :
cheetah.txt
and a stl file of it is:
back.zip

from urdf2webots.

DavidMansolino avatar DavidMansolino commented on June 10, 2024

Can you maybe retry from the up to date files from the master branch of this repo instead of pip?
We fixed several issues about bounding object and inertia since the latest pip release.

from urdf2webots.

zapplelove avatar zapplelove commented on June 10, 2024

Can you maybe retry from the up to date files from the master branch of this repo instead of pip?
We fixed several issues about bounding object and inertia since the latest pip release.

Ok, I will try and reply soon.

from urdf2webots.

DavidMansolino avatar DavidMansolino commented on June 10, 2024

Perfect, thank you.

from urdf2webots.

zapplelove avatar zapplelove commented on June 10, 2024

I try the tool from the master branch. Here are the steps:

  • git clone ...
  • workon <python virtualenv>
  • source devel/setup.bash
  • python ~/urdf2webots/demo.py --input=cheetah.urdf --output=cheetah.proto --box-collision

here are the results:

Directory "cheetah_textures" already exists!
Parsing Mesh: <catkin_ws>src/cheetah/meshes/back.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/link.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vl2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hl2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Sl2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vl1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hl1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Sl1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Body.STL
Warning: This mesh has a lot of triangles!
Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument.
Parsing Mesh: <catkin_ws>src/cheetah/meshes/FS.STL
Warning: This mesh has a lot of triangles!
Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument.
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L3.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/FSb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/RS.STL
Warning: This mesh has a lot of triangles!
Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument.
Parsing Mesh: <catkin_ws>src/cheetah/meshes/RSb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L4.STL
Root link: world
There are 52 links, 51 joints and 2 sensors

and the error still is there:cold_sweat: , some boundingObjects still are Spheres
hare are screenshots of the generated proto file:
image
image
image

The good news is that inertiaMatrix is being generated, though I don't know if it's generating the right results

from urdf2webots.

zapplelove avatar zapplelove commented on June 10, 2024

I try the tool from the master branch. Here are the steps:

  • git clone ...
  • workon <python virtualenv>
  • source devel/setup.bash
  • python ~/urdf2webots/demo.py --input=cheetah.urdf --output=cheetah.proto --box-collision

here are the results:

Directory "cheetah_textures" already exists!
Parsing Mesh: <catkin_ws>src/cheetah/meshes/back.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/link.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vl2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hl2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Sl2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vl1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hl1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Sl1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Body.STL
Warning: This mesh has a lot of triangles!
Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument.
Parsing Mesh: <catkin_ws>src/cheetah/meshes/FS.STL
Warning: This mesh has a lot of triangles!
Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument.
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L1.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L2.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L3.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Hb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/Vb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/FSb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/RS.STL
Warning: This mesh has a lot of triangles!
Warning: It is recommended to use the script with the '--disable-mesh-optimization' argument.
Parsing Mesh: <catkin_ws>src/cheetah/meshes/RSb.STL
Parsing Mesh: <catkin_ws>src/cheetah/meshes/L4.STL
Root link: world
There are 52 links, 51 joints and 2 sensors

and the error still is there😰 , some boundingObjects still are Spheres
hare are screenshots of the generated proto file:
image
image
image

The good news is that inertiaMatrix is being generated, though I don't know if it's generating the right results

I'm so sorry that I checked my urdf file and I find that I use different geometries in the <collision> and <visual> label. The master branch of the tool is working correctly.

from urdf2webots.

DavidMansolino avatar DavidMansolino commented on June 10, 2024

I'm so sorry that I checked my urdf file and I find that I use different geometries in the and label. The master branch of the tool is working correctly.

That makes way more sense, thank you for the feedback!

from urdf2webots.

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.