ros-industrial / noether

Tool path planning and surface segmenter
124 stars 45 forks source link

Question: Ignoring inner surface #157

Closed gzaidner closed 2 years ago

gzaidner commented 2 years ago

Hello, I converted my .stl to .ply and run the "plane_slicer_rastering_generator_demo.launch". It finds the paths but also on the inner side of the object. Is there an option to select only the top object paths? I dont want the robot to reach those points.

thank you Screenshot from 2021-12-28 15-29-14 u

marip8 commented 2 years ago

Currently the plane-slice style tool path planners (plane-slice and surface-walk) intersect planes of a specifiable height with the mesh to generate the raster lines. If the plane cuts through multiple mesh layers, it will create multiple raster lines (as you experienced), and there is no method currently for choosing which to keep.

Your best option is going to be removing the inner surface from your mesh and running the tool path planner with only the surface you care about. This is typically what I do when using this repository. You can do that in a variety of ways:

If you are using the surface-walk planner, you could potentially also reduce the height of the cutting plane. However, if you mesh layers are close together, you probably can't make the cutting plane height small enough to go through only one layer while still cutting the full height of the mesh along its length.