probing profile on the lathe and then...
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23262
- Thank you received: 4927
18 Sep 2016 20:18 #80580
by andypugh
I doubt that linear interpolation is the best solution. putting the points into a NURBS block is likely to work better. Look at the docs for G5.
You can offset the profile simply by having the tool and the probe different lengths. (They will be different lengths, obviously, you just need to lie about by how much they are different).
Point-cloud to surface is a hard problem. Your problem is only slightly easier.
Replied by andypugh on topic probing profile on the lathe and then...
2. i can then open log file in excel-like spreadsheet program and use linear interpolation (somehow) to create new, smooth profile.
I doubt that linear interpolation is the best solution. putting the points into a NURBS block is likely to work better. Look at the docs for G5.
You can offset the profile simply by having the tool and the probe different lengths. (They will be different lengths, obviously, you just need to lie about by how much they are different).
Point-cloud to surface is a hard problem. Your problem is only slightly easier.
Please Log in or Create an account to join the conversation.
- Boogie
- Offline
- Premium Member
-
Less
More
- Posts: 100
- Thank you received: 8
21 Sep 2016 07:43 - 21 Sep 2016 11:56 #80712
by Boogie
Replied by Boogie on topic probing profile on the lathe and then...
NURBS! this is interesting. i looked at docs for G5 and even tried to write small G5.2 block and my linuxcnc suppory NURBS.
So i know how to digitize the profile, i know that NURBS may be the solution, probe-tool offset should not be a problem but how to connect the mentioned elements? The problem is how to automate probing and creating NURBS block based on digitized data?
Also i do not fully understand L and P parameters in NURBS block. Have you guys have some good web address explaining these parameters? linuxcnc docs do not cover this subject in details.
Rick G: do you know forum name of Mr. Dewey Garrett? i used forum search for his name but with no results
So i know how to digitize the profile, i know that NURBS may be the solution, probe-tool offset should not be a problem but how to connect the mentioned elements? The problem is how to automate probing and creating NURBS block based on digitized data?
Also i do not fully understand L and P parameters in NURBS block. Have you guys have some good web address explaining these parameters? linuxcnc docs do not cover this subject in details.
Rick G: do you know forum name of Mr. Dewey Garrett? i used forum search for his name but with no results
Last edit: 21 Sep 2016 11:56 by Boogie.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23262
- Thank you received: 4927
21 Sep 2016 19:25 #80735
by andypugh
I think I would start by trying to use a Python script. You can do a lot with LinuxCNC from Python. And you can make a GladeVCP or PyVCP button run Python code. (I would use Glade, embedded code is easier there).
The Python probably needs to output the profile to a file, then tell LinuxCNC to load and run the file.
The actual probing can probably be done by sending MDI commands through the Python interface.
linuxcnc.org/docs/2.7/html/config/python-interface.html
Replied by andypugh on topic probing profile on the lathe and then...
So i know how to digitize the profile, i know that NURBS may be the solution, probe-tool offset should not be a problem but how to connect the mentioned elements? The problem is how to automate probing and creating NURBS block based on digitized data?
I think I would start by trying to use a Python script. You can do a lot with LinuxCNC from Python. And you can make a GladeVCP or PyVCP button run Python code. (I would use Glade, embedded code is easier there).
The Python probably needs to output the profile to a file, then tell LinuxCNC to load and run the file.
The actual probing can probably be done by sending MDI commands through the Python interface.
linuxcnc.org/docs/2.7/html/config/python-interface.html
The following user(s) said Thank You: Boogie
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds