ProbeCloud plugin

This is where you talk about Plugins. How they are made and how they work, show examples.

ProbeCloud plugin

Postby eabrust » Sat Apr 27, 2019 8:46 pm

Here's my first crack at a probing plugin for UCCNC. Thanks to Dezsoe for the mini-tutorial on using codesync and ismoving without hanging UCCNC by threading... I finally made some progress after spinning my wheels for quite a while :D

This is mainly a 3D surface digitizing routine (bed of nails type), but offers the following:
• Ability to define a perimeter that is used to filter probing areas to cover. Ability to Preview probing area, and define the probe areas as inside or outside of the perimeter. This can greatly reduce wasted probing time collecting points you don’t want or need.
• Ability to stop and re-start probing at a position and continue writing to the same file. Probing >100,000 points can take a long time, now you can break your probing up into several sessions, and restart if something stopped you in the middle of the run.
• Adaptive retracting. The probing routine doesn’t just probe from a set ‘safe Z’ plane height, but rather tracks as closely to the surface of the part as you choose, only retracting to a higher Z level when necessary. This is an attempt to speed up the probing.
• Ability to have the plugin send you an email (or a text if you set it up to email to a special address that forwards to your cell number). Now you don’t have to wonder if the probing has stalled or hit a snag, the plugin will notifiy you if it has an error or an EStop event occurs before the finish!

The output is a standard text file, with comma separated X,Y,Z points you can import into mesh lab, etc.

A few notes:
-The probing seems fairly robust, I think I've worked out the bugs and implemented a number of checks to stop if something goes awry, but test at your own risk
-If you set it up to email, I will tell you up front that your email server login/password are saved as plain text in the settings xml file. If you don't like that, don't set it up and use it, or better yet, setup a spare junk email address to use.
-The plotting of points gets ridiculously slow, so I'll be looking into alternative plotting in the future. I recommend turning 'update plot during probing' off if you have more than 25,000 points to probe, as it just slows the probing down.
-This is tested with UCCNC 1.2109, windows 7 (32 bit) and a UC300eth. Let me know if you have issues on your different setup.
- I've only tested this in 'INCHES' units, you will have to set all values for your default units if using metric.
-the attached 'sample' zip contains sample files for a project called 'spart001' and a project called 'quarter', to give an idea of the input and output files generated.

Comments and suggestions welcome, the plugin definitely needs some refinement to make it more user friendly.

Thanks
Eric
ProbeCloud.PNG
snapshot01.png
spart001 rendered in meshlab
Attachments
ProbeCloud-sample.zip
(1.23 MiB) Downloaded 754 times
ProbeCloud - v1.000.zip
ProbeCloud v.1.000 plugin
(1.11 MiB) Downloaded 702 times
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 357
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: ProbeCloud plugin

Postby Vmax549 » Mon Apr 29, 2019 12:52 am

Hi Erik, What type of point file display are you doing. Inside of the plugin or using the toolpath display in UCCNC ? It does not take much to use teh UCCNC toolpath display to display teh progress of teh scan as a shape file.

Just a thought, (;-) TP
Attachments
Quarter_OutPut.JPG
Vmax549
 
Posts: 331
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: ProbeCloud plugin

Postby Vmax549 » Mon Apr 29, 2019 12:58 am

Hi Erik, Have you tried a high definition scan of a relief with a lot of Z elevations. Something with about an inch or so of elevation change.

(;-) TP
Vmax549
 
Posts: 331
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: ProbeCloud plugin

Postby eabrust » Mon Apr 29, 2019 1:11 am

Vmax549 wrote:Hi Erik, What type of point file display are you doing. Inside of the plugin or using the toolpath display in UCCNC ? It does not take much to use the UCCNC toolpath display to display teh progress of teh scan as a shape file.

Just a thought, (;-) TP



Hi Terry,

My next plan was to look at embedding an OpenTk window in the plugin.

Can you please explain more how you loaded the x/y/z points into the UCCNC toolpath display?

regards
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 357
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA

Re: ProbeCloud plugin

Postby Vmax549 » Mon Apr 29, 2019 2:04 am

Simply output teh points as a text file formated as such

Xx.xxx Yx.xxx Zx.xxx

Then load teh file as a gcode file

With Mach3 it auto inserts teh probed points in teh toopath display but UCCNC does not so you never get to see teh shape as it is created.

I did this and appended teh points file about every 100 points or so just to see teh progress and teh shape evolve.

I have a creepy crawler surface routine as well that can do extreme elevation changes across teh surface.

Just a thought, (;-) TP
Vmax549
 
Posts: 331
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: ProbeCloud plugin

Postby eabrust » Mon Apr 29, 2019 2:13 am

Thanks Terry,

Great info, I'll give it a whirl.

Regards
Eric
CraftyCNC: Plugins for UCCNC (and other neat stuff): http://www.craftycnc.com/plugins-for-uccnc/
eabrust
 
Posts: 357
Joined: Fri Sep 16, 2016 2:32 am
Location: Near Shirland IL, USA


Return to Plugins

Who is online

Users browsing this forum: No registered users and 4 guests