Giter Club home page Giter Club logo

Comments (8)

bkinman avatar bkinman commented on July 23, 2024 1

Awesome, got it to work! Set the magic number to 1000 instead of 100. It may be easier to just make the number of vertices dependent on the cylinder radius; That would prevent any need for exposing an additional parameter. I believe that this is how the sphere is handled. I'll create a pull request as soon as I get a chance.

Thanks!

screenshot from 2017-10-24 13-28-55

from collada_urdf.

rhaschke avatar rhaschke commented on July 23, 2024 1

Fixed in moveit/geometric_shapes#92

from collada_urdf.

sloretz avatar sloretz commented on July 23, 2024

Thanks for the bug report! I don't think I will have time to investigate this week. Would you mind checking if a URDF with a single link with a single cylinder reproduces the problem?

from collada_urdf.

bkinman avatar bkinman commented on July 23, 2024

Indeed, here are the results for a single link.

foobar_arm_minimal.urdf.txt
out_minimal.dae.txt
screenshot from 2017-10-24 11-40-45

from collada_urdf.

sloretz avatar sloretz commented on July 23, 2024

Thanks for the single link case! It looks like geometric_shapes has a hard coded parameter defining the number of triangles to use when creating a mesh for a cylinder. It results in a pretty small number of triangles for a cylinder of radius 0.05. A workaround would be to build geometric_shapes from source and increase the value.

https://github.com/ros-planning/geometric_shapes/blob/66352a742520f71e19a32139ec7463dcefe3b451/src/mesh_operations.cpp#L515-L516

If createMeshFromShape(Cylinder) parameterized this value, it would need to be passed through urdf_to_collada here.

I don't think I will be able to implement this anytime soon. If you happen to fix it a pull request would be welcome.

from collada_urdf.

sloretz avatar sloretz commented on July 23, 2024

@bkinman Do you know if there has been any movement over at ros/geometric_shapes on exposing the number as a parameter?

from collada_urdf.

bkinman avatar bkinman commented on July 23, 2024

from collada_urdf.

sloretz avatar sloretz commented on July 23, 2024

Closing since this was solved upstream

from collada_urdf.

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.