Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh with no faces created for small cylinders #28

Closed
pseudopresence opened this issue Mar 24, 2015 · 7 comments
Closed

Mesh with no faces created for small cylinders #28

pseudopresence opened this issue Mar 24, 2015 · 7 comments

Comments

@pseudopresence
Copy link

We encountered this issue when attempting to convert the Robotiq hand model from DRCSim using urdf_to_collada. If a cylinder element is smaller than 0.01, no faces are created, and urdf_to_collada will subsequently crash. From looking at the code in mesh_operations.cpp, the mesh generation for cone objects would be prone to the same issue.

The simplest fix is probably to enforce a sensible minimum for unsigned int tot.

Here is a small example, test with rosrun collada_urdf urdf_to_collada test.urdf test.dae.

<robot name="my_robot">
  <link name="my_link">
    <collision>
      <origin xyz="0 0 0" rpy="0 0 0" />
      <geometry>
        <cylinder radius="0.001" length="0.5"/>
      </geometry>
    </collision>
  </link>
</robot>
corot added a commit to corot/geometric_shapes that referenced this issue Dec 14, 2015
I came to this problem through an entirely different issue: Initialize a MoveIt! DepthImageOctomapUpdater takes ages for a turtlebot, because the poles are described as very small radius cylinders: top and h_num become 0 and the loop on line 514 iterates max unsigned int times.

This is the first time I see this code, so please, someone confortable with it, check that I'm not doing something silly!.
corot added a commit to corot/geometric_shapes that referenced this issue Dec 14, 2015
Fix issue moveit#28 on small radius cylinders
davetcoleman added a commit that referenced this issue Feb 4, 2016
Fix issue #28 on small radius cylinders
@corot
Copy link
Contributor

corot commented Feb 17, 2016

This can be closed, right?

@jacquelinekay
Copy link

Agreed, this issue can be closed. Some maintainers like to leave the issue open until the version with the fix is released into rosdistro.

Speaking of which, @davetcoleman etc., when can we expect a release of this package? I could do one if I was added to the ros-planning org.

@davetcoleman
Copy link
Member

I do not know, I have not been asked to do package releases, only @rethink-imcmahon and @130s. Overall ros-planning is lacking leadership IMHO

@jacquelinekay
Copy link

Gotcha. I'll see what I can do :)

@mikeferguson
Copy link
Contributor

This looks like a pretty trivial change since our last release -- pushing a new release now

@mikeferguson
Copy link
Contributor

released into indigo + jade in 0.4.4

@jacquelinekay
Copy link

thanks @mikeferguson!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants