class documentation
An individual structural component. E.g. I-beam
| Method | __init__ |
Undocumented |
| Method | fix |
Squeeze out the extra dimension that cv.contours produces. Ensure cntrs containing only one point are still 2D |
| Method | get |
Returns the first point in the primitive path |
| Method | get |
Prints useful info about the component |
| Method | get |
Returns the last point in the primitive path |
| Method | visualize |
Prints 2D plot of the component path. |
| Instance Variable | cntr |
ordered list of (x,y) points the robot must follow to cut the component |
| Instance Variable | first |
the first pair of (x,y) coordinates in the primitive path. Improves code legibility |
| Instance Variable | grid |
length and width of the image grid. Size is 2 |
| Instance Variable | last |
the last pair of (x,y) coordinates in the primitive path. Improves code legibility |
| Instance Variable | name |
name of the specific component at a specific location in space. E.g. plane0, plane1, plane2 ... |
Squeeze out the extra dimension that cv.contours produces. Ensure cntrs containing only one point are still 2D
- Returns
- cntr (np.ndarray): Ordered list of (x,y) points
| Parameters | |
cntr:np.ndarray | Ordered list of (x,y) points |