-
Notifications
You must be signed in to change notification settings - Fork 49
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
Issues generating paths for a subset of mesh faces #149
Comments
At face value, it seems like the vertex indices of your triangles may not be correct. Those indices need to correspond to the index of the vertex in If that isn't the case, you'll need to provide more details about the crash you encountered; there's not much we can say about the root cause with the information in the post. I would suggest attaching a debugger to the process and finding the specific line at which the crash occurs and what the state of the variables are there |
This was the dodgy line of code:
Since This fixes the crashing, however, I'm still unable to get noether to successfully generate a path for the selection:
Below is the selection of the mesh I'm using For reference, the radius of the selection above is around 10 units, and the point spacing for edge generation I'm using is 1 unit |
What is the value of the |
Hey and thanks for the response. Search radius was set to 2 for the plane slice planner, which is working fine. Does the half edge generator also use one? (my code uses both planners) I've exported and uploaded the selection here too: https://filebin.net/cq69pc3dyuueyzcw |
Will check the mesh for duplicate vertices. Don't think there should be any. This is the updated code generating the mesh message:
These lines should prevent any vertices from being added twice
|
As in the above issue, I've verified that the selection does not contain duplicate vertices or faces using the following code
|
Hi,
I'm currently trying to use noether to generate paths over a subset of faces on a mesh. The faces are chosen through a tool I've developed in rviz, which then extracts those faces from the Mesh (represented as a vtkPolyData object) and converts them into a shape_msgs/Mesh message. this mesh selection is eventually passed to noether's plane slicer and edge path planners. This is the code I'm using to generate the message.
mesh_
is the vtkPolyData object containing all faces, andfaces
is the vector of selected face indexes.When I attempt to generate a plane slice path over a selection, the message is passed to noether which then crashes. I don't think it's an issue with the message building or noether calling code as, when I select every face on the mesh, the planning works fine. It's just when using a subset of faces that it breaks.
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: