Re: [Emc-users] optical probing
On Wednesday 30 January 2008, Kirk Wallace wrote: >Here is something I happened upon: > >http://www.philmattison.com/index.php?q=Q05hdlBhZ2V8U0hPV19TVEFUSUN8QkxLPVFT >RUVfUEFHRXxUUEw9ZWxlY3Ryb18wNC50cGw= > I can see I have got to get me one of those. Thanks. >If the above link doesn't work try > >http://www.philmattison.com/index.php > >then Machines/PCB Drilling/Click here for camera details. -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) It is no wonder that people are so horrible when they start life as children. -- Kingsley Amis - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] optical probing
Here is something I happened upon: http://www.philmattison.com/index.php?q=Q05hdlBhZ2V8U0hPV19TVEFUSUN8QkxLPVFTRUVfUEFHRXxUUEw9ZWxlY3Ryb18wNC50cGw= If the above link doesn't work try http://www.philmattison.com/index.php then Machines/PCB Drilling/Click here for camera details. -- Kirk Wallace (California, USA http://www.wallacecompany.com/machine_shop/ Hardinge HNC lathe, Bridgeport mill conversion, doing XY now, Zubal lathe conversion pending) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] optical probing
Pretty cute Marc. Dave On Jan 30, 2008, at 2:36 AM, Marc van Doornik wrote: > Could anyone explain this optical probing concept? We don't have > Digital > Machinist here, but if it is what I imagine (basically a magnifying > camera setup with crosshairs to align on an edge), it is fairly easily > accomplished. Over here, we've just used an industrial camera > connected > to a cheap v4l-compatible framegrabber card. This can then be used > through a program like tvtime (in synaptic). For the crosshairs, I > couldn't find any software to superimpose them on a camera image. > Instead, I've just used a solid red toplevel window in tcl/tk, > which is > then shaped like a crosshair. Code can be found at the tcl/tl wiki > (http://wiki.tcl.tk/13409). The code I've used is this: > > <<< Start crosshairs.tcl >>> > > #!/usr/bin/wish > package require Tk > wm withdraw . > load wmx.so > #package require Img > > wm title . "Crosshairs" > > set bgimg [image create photo -file [file join shape.gif]] > #label .l -bd 0 -bg maroon -image $bgimg > set iwid [image width $bgimg] > set ihei [image height $bgimg] > . config -width $iwid -height $ihei > . configure -bg green > > button .b -text quit -command exit > text .t -width 40 -height 5 > button .b1 -text script -command {show lib app-wmx wmx.tcl} > #place .l -x 0 -y 0 -anchor nw > > bind . <1> { > set x [expr [winfo rootx .]-%X] > set y [expr [winfo rooty .]-%Y] > } > > bind . { > wm geometry . +[expr %X+$x]+[expr %Y+$y] > } > > bind all exit > wm geometry . 1x1 > wm deiconify . > # IMPORTANT: we must do an "update idle" to let the window manager > # reparent our toplevel before issuing the setXwinshape command. > update idle > wm geometry . ${iwid}x$ihei+600+100 > setXwinshape . $bgimg > > <<< End crosshairs.tcl >>> > > > > In this code, the transparent parts of the image shape.gif are 'cut > out' > from the window, thus leaving the desired shape. This way of > generating > crosshairs and the like prevents flicker and uses a very low overhead, > as everything required is already included in X. It should even be > possible to change the shape of the image on the fly, so perhaps this > could be used to add readouts etc. to the overlay image. > > Good luck, > > Marc. > > -- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] optical probing
Could anyone explain this optical probing concept? We don't have Digital Machinist here, but if it is what I imagine (basically a magnifying camera setup with crosshairs to align on an edge), it is fairly easily accomplished. Over here, we've just used an industrial camera connected to a cheap v4l-compatible framegrabber card. This can then be used through a program like tvtime (in synaptic). For the crosshairs, I couldn't find any software to superimpose them on a camera image. Instead, I've just used a solid red toplevel window in tcl/tk, which is then shaped like a crosshair. Code can be found at the tcl/tl wiki (http://wiki.tcl.tk/13409). The code I've used is this: <<< Start crosshairs.tcl >>> #!/usr/bin/wish package require Tk wm withdraw . load wmx.so #package require Img wm title . "Crosshairs" set bgimg [image create photo -file [file join shape.gif]] #label .l -bd 0 -bg maroon -image $bgimg set iwid [image width $bgimg] set ihei [image height $bgimg] . config -width $iwid -height $ihei . configure -bg green button .b -text quit -command exit text .t -width 40 -height 5 button .b1 -text script -command {show lib app-wmx wmx.tcl} #place .l -x 0 -y 0 -anchor nw bind . <1> { set x [expr [winfo rootx .]-%X] set y [expr [winfo rooty .]-%Y] } bind . { wm geometry . +[expr %X+$x]+[expr %Y+$y] } bind all exit wm geometry . 1x1 wm deiconify . # IMPORTANT: we must do an "update idle" to let the window manager # reparent our toplevel before issuing the setXwinshape command. update idle wm geometry . ${iwid}x$ihei+600+100 setXwinshape . $bgimg <<< End crosshairs.tcl >>> In this code, the transparent parts of the image shape.gif are 'cut out' from the window, thus leaving the desired shape. This way of generating crosshairs and the like prevents flicker and uses a very low overhead, as everything required is already included in X. It should even be possible to change the shape of the image on the fly, so perhaps this could be used to add readouts etc. to the overlay image. Good luck, Marc. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] optical probing
Hi Nathan, Probably more than I want to take on but certainly interesting. Thanks. Dave On Jan 25, 2008, at 2:01 AM, Nathan Bromham wrote: > If you don't mind a bit of programming you could look at OpenCV > http://opencvlibrary.sourceforge.net/ > (I haven't seen the probing article though: it might be overkill for > your requirements.) > Nathan > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Dave > Engvall > Sent: 24 January 2008 17:53 > To: Enhanced Machine Controller (EMC) > Subject: [Emc-users] optical probing > > Hi, > I'm certain that by now those of you that take "Digital Machinist" , > Winter 2007 have absorbed the article on optical probing. The concept > is a no-brainer but my stumbling block is linux camera software > with the > cross-hair. > Does anyone know of a package that will work. I think one wants stills > at about the flicker rate but maybe it doesn't make a difference. > However, the ability to superimpose the cross-hair is critical. > > This would be very nice as a pop-up window in emc but I'm willing > to use > another machine if necessary. > > Ideas? > > Dave > > -- > -- > - > This SF.net email is sponsored by: Microsoft Defy all challenges. > Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > > -- > --- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] optical probing
If you don't mind a bit of programming you could look at OpenCV http://opencvlibrary.sourceforge.net/ (I haven't seen the probing article though: it might be overkill for your requirements.) Nathan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Engvall Sent: 24 January 2008 17:53 To: Enhanced Machine Controller (EMC) Subject: [Emc-users] optical probing Hi, I'm certain that by now those of you that take "Digital Machinist" , Winter 2007 have absorbed the article on optical probing. The concept is a no-brainer but my stumbling block is linux camera software with the cross-hair. Does anyone know of a package that will work. I think one wants stills at about the flicker rate but maybe it doesn't make a difference. However, the ability to superimpose the cross-hair is critical. This would be very nice as a pop-up window in emc but I'm willing to use another machine if necessary. Ideas? Dave - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
Re: [Emc-users] optical probing
Hello Where i can find more info about digital probing or any mafacturers web site? thanks aram > Hi, > I'm certain that by now those of you that take "Digital Machinist" , > Winter 2007 have absorbed the article on > optical probing. The concept is a no-brainer but my stumbling block > is linux camera software with the cross-hair. > Does anyone know of a package that will work. I think one wants > stills at about the flicker rate but maybe it doesn't make a > difference. However, the ability to superimpose the cross-hair is > critical. > > This would be very nice as a pop-up window in emc but I'm willing to > use another machine if necessary. > > Ideas? > > Dave > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users
[Emc-users] optical probing
Hi, I'm certain that by now those of you that take "Digital Machinist" , Winter 2007 have absorbed the article on optical probing. The concept is a no-brainer but my stumbling block is linux camera software with the cross-hair. Does anyone know of a package that will work. I think one wants stills at about the flicker rate but maybe it doesn't make a difference. However, the ability to superimpose the cross-hair is critical. This would be very nice as a pop-up window in emc but I'm willing to use another machine if necessary. Ideas? Dave - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users