NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Configuring LinuxCNC Advanced Configuration OpenCV vision with EMC/linuxcnc

Welcome, Guest
Username: Password: Remember me

TOPIC: OpenCV vision with EMC/linuxcnc

Re:OpenCV vision with EMC/linuxcnc 23 Mai 2012 07:59 #20297

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4091
  • Thank you received: 139
  • Karma: 129
edsimmons wrote:
I'm sure I can do the vision, how much others are willing to help in this and other areas will largely decide the feasibilty/outcome.

I can help with HAL stuff, but I only really know how to do realtime code in C. I am trying to pick up Python, though.
The administrator has disabled public write access.

Re:OpenCV vision with EMC/linuxcnc 23 Mai 2012 08:08 #20298

  • edsimmons
  • edsimmons's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 0
The single biggest help anyone could give me right now would be a pointer as to what to read first in the source code, even better would be a template/starting point/some instruction for creating HAL objects.

I'm happy once I've got myself a 'framework' that will sit well with EMC, if such a thing is available it would be great - alternatively I'll publish something that does when we arrive there.

Cheers!

Ed
The administrator has disabled public write access.

Re:OpenCV vision with EMC/linuxcnc 23 Mai 2012 08:10 #20299

  • btvpimill
  • btvpimill's Avatar
  • NOW ONLINE
  • Gold Boarder
  • Posts: 183
  • Karma: 3
Ed, On my PnP, the fudical camera is also used to set the location of the components in the machine. I have 2 options to get parts from, 1 is a feeder - using reels, the other is a tray.
The feeders are all mounted such that the parts are presented to the pickup in the Y axis of the machine travel. So for each feeder, I move the camera over the part and adjust the Y (controlled by the machine movement) and the X of the feeder (controlled by the feeder itself) until the part is centered. This information is then saved for each feeder in use. So again, output to control would just need to be X,Y position data. BTW, that is all done manually - go figure.

The trays - which would lend itself better to the DIY commuity IMHO, just get stuck to a fixed bed in the PCB area. In my case I use double sidded tape to hold them down. Keep in mind, anything can be a tray to include short pieces of tape. To set up the tray position, I just jog the same fudical camera over to the center of the first part to find the reference for the "tray".This plus tray dims are saved for each tray.

Seems like the vision system really just needs to be able to spit out position datd for whatever it is looking at. I would guess there needs to be a signal from the control to say "take a picture", then the VS will send back data in some form such as X,Y,Theta. From there LinuxCNC will need to use this depending on what task is needed to be done.

I am not at all sure here, but this may be a job for a "somethingKIN"?
The administrator has disabled public write access.

Re:OpenCV vision with EMC/linuxcnc 23 Mai 2012 08:13 #20300

  • arch dude
  • arch dude's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 3
So far I have not done a project that requires absolute (machine-relative) positioning. I therefore use part-relative manual touch-off in the G54 reference frame. The limit switches are there to stop the machine if a software error (or operator error) causes it to go out of range, so they act just like the e-stop.

Yes, I did do one project that required working very close to the limit. For that project, I did manually use the limit switch for (effectively) homing.

I must emphasize that I am a newbie with no real experience. I just think it is a good idea to have a feedback system that tells me that the machine is approximately where it is supposed to be, and stepper-based systems do not intrinsically have such a system.
The administrator has disabled public write access.

Re:OpenCV vision with EMC/linuxcnc 23 Mai 2012 08:14 #20301

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4091
  • Thank you received: 139
  • Karma: 129
edsimmons wrote:
The single biggest help anyone could give me right now would be a pointer as to what to read first in the source code, even better would be a template/starting point/some instruction for creating HAL objects.

This looks like a good starting point:
www.linuxcnc.org/docview/html/hal/halmodule.html
The administrator has disabled public write access.

Re:OpenCV vision with EMC/linuxcnc 23 Mai 2012 08:32 #20302

  • edsimmons
  • edsimmons's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • Karma: 0
Thanks Andy,

Will be sure to keep you posted!
The administrator has disabled public write access.
Time to create page: 1.601 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.