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

Develop normal paths over a mesh surface. #108

Open
JamesNewton opened this issue Jul 3, 2024 · 0 comments
Open

Develop normal paths over a mesh surface. #108

JamesNewton opened this issue Jul 3, 2024 · 0 comments

Comments

@JamesNewton
Copy link
Collaborator

I think we can use three.js raycasting to find normals to a mesh, and then move past the mesh surface by some distance along the normal. This distance could be the radius of a grinding tool for example. This demo does /exactly/ that:
https://sbcode.net/threejs/raycaster/

So the steps are

  • Import a mesh representing some part in some compatible format. STL or something else.
  • Register the base position of the Mesh in the simulator to match the position of the real part near the robot.
  • Draw a line or a series of lines over the mesh, via the raycasting system (see demo)
  • Extend those lines by the radius of the tool
  • Use those points to form a path
  • Translate that path into joint space (optimized by Tom)
  • Follow the path with the simulated robot, checking for collisions via three.js
  • Follow the path with the real robot, grinding off the flash on the part.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant