Ask Your Question

Redusing resolution from a cad model

asked 2018-03-23 10:09:45 -0500

vacky11 gravatar image

Is there a ros package to reduce the resolution of any cad model (.stl/.dae/.obj)? I am looking for something like this, where any cad model can be converted into a lower resolution voxel grid

I need this lower resolution model (of obstacles) to perform collision checks during path planning. Since its highly computationally expensive to do the same of the original model

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-03-23 10:51:00 -0500

gvdhoorn gravatar image

updated 2018-03-23 10:54:38 -0500

A ROS package for this could be convex_decomposition. This was (is?) used by the PR2 description package. It doesn't actually resample your geometry using voxels, but creates multiple convex hulls that together represent and encompass the original mesh completely.

Two things to note about this package: 1) it's deprecated (see this issue) and 2) I haven't used it, so can't comment on whether it (still) works.

I mentioned it because you specifically ask for a "ros package".

For some packages in ROS-Industrial we've been using gaschler/bounding-mesh for a similar purpose, and it returns quite nice results for our use-cases. It is not a ROS package though.

edit flag offensive delete link more



I typically use Blender's decimate modifier when I really need to subsample. If I just need a convex hull, Meshlab has a good filter for that.

gvdhoorn gravatar image gvdhoorn  ( 2018-03-23 10:54:07 -0500 )edit

@gvdhoorn thanks a lot for your answer and detailed description. And I specifically asked for a ros package since Im working in ros. Are there any other c++ libraries or something similar which can be used to do this? (other than the one you have already mentioned)

vacky11 gravatar image vacky11  ( 2018-03-23 13:30:17 -0500 )edit

I'm not entirely sure I understand why this has to be a ROS package: working with meshes seems to me to be a completely independent subject / task. It does not make much sense to me to try and force that into a ROS pkg.

Can you clarify what making it a ROS pkg would improve?

gvdhoorn gravatar image gvdhoorn  ( 2018-03-23 15:30:24 -0500 )edit

yes I understand your point. And I am already convinced that using a ros package for this is not necessary.

vacky11 gravatar image vacky11  ( 2018-03-23 16:13:28 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-03-23 10:09:45 -0500

Seen: 60 times

Last updated: Mar 23 '18