loading
 
measuring x,y,z distance
Anonymous
3 years
I have a 6-axis anthropomorphic robot performing some very detailed & intricate wood-carving.  There is some error in the kinematic equations of the robot, so the positional error can amount to several millimeters when the carving spindle is oriented with significant pitch or yaw.  I plan on creating an error map over the typical work area, and then I can add in offsets to compensate for the x,y,z error.  I have manually measured the error using a digital camera and counting pixels, but it takes a really long time for each measurement (position the camera, force it into macro focus, takes the front & side photos, upload the images into the computer, open the image using Paint, find the features of interest, count the pixels, convert to mm).  
I have found a macro webcam to use for image capture.  Will the roborealm software support writing a script that allows me to automate the measurement?

The attached image shows a router tip relative to the end of an 0.030" wire.  This is enough for me to calculate X and Z distance.  By taking another shot from the side, I can also get Y.  Both the router tip and the wire can be replaced with something amenable to the roborealm software - like maybe red stick pins.


 
Steven Gentner from United States  [1370 posts] 3 years
Yes it can. The background is a good deal lighter than the wire and spindle so they can be extracted even from the image you included. See the attached below and load in the image you posted to see one possible way of doing it.

You'll need to take at least 20 more images to test where this will fail. Assuming your background doesn't change much and your lighting remains about the same it should work but might still need a couple tweaks.

Is this what you were looking for?

STeven.
program.robo
Steven Gentner from United States  [1370 posts] 3 years
In case you have problems getting it to work, the end result should show the following:


This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index