-
Notifications
You must be signed in to change notification settings - Fork 5
REST measure
The /measure
REST service measures machine precision by the image offset
of camera images taken before and after a series of
moves that return to the current location. The /measure
service is only
available if all the following supporting services are available:
Individual requests may return HTTP501 if resources are unavailable. The "default" in the REST urls designates a camera, and can be replaced by any available camera (e.g., "raspistill", "video0", "video1").
Jog precision is defined to be the image offset associated with:
- Save current location image
- Two jogs in the same random direction along the x-axis
- Two jogs in the same random direction along the y-axis
- Return to start location
- Calculate image offset of current vs. saved images
This sequence is deliberately asymmetric to expose errors. However, the asymmetry itself is randomly oriented so that a series of jog precision tests will reveal directional error if present. The actual motion taken is customizable by providing values for the following optional attributes of the posted JSON object:
{
"jog":10,
"n":2
}
Long Path Precision (LPP) is defined to be the image offset associated with:
- LPP move to current location
- Two jogs in the same random direction along the x-axis
- Two jogs in the same random direction along the y-axis
- LPP move to start location
- Calculate image offset of current vs. saved images
This sequence is chosen to match the jog precision measurement in its use of four random jogs along the x and y axes. These random movements are bracketed by a starting and ending LPP move to the current location. An LPP move is defined to be "any path that cancels out error without homing." The actual motion taken is customizable by providing values for the following optional attributes of the posted JSON object:
{
"jog":10,
"n":2,
"z1":30,
"z2":0
}
Currently, an LPP move is defined to be:
- Move to (0,0,z1)
- Move to (0,0,z2)
- Move to desired location
The following URLs are reserved for future use as REST protocols
- (tbd)