class documentation

An individual structural component. E.g. I-beam

Method __init__ Undocumented
Method fix_contour Squeeze out the extra dimension that cv.contours produces. Ensure cntrs containing only one point are still 2D
Method get_first_pt Returns the first point in the primitive path
Method get_info Prints useful info about the component
Method get_last_pt 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_pt the first pair of (x,y) coordinates in the primitive path. Improves code legibility
Instance Variable grid_size length and width of the image grid. Size is 2
Instance Variable last_pt 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 ...
def __init__(self, name, cntr, grid_size):

Undocumented

def fix_contour(self, cntr):

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.ndarrayOrdered list of (x,y) points
def get_first_pt(self):

Returns the first point in the primitive path

Returns
np.ndarrayx,y coordinate
def get_info(self):

Prints useful info about the component

def get_last_pt(self):

Returns the last point in the primitive path

Returns
np.ndarrayx,y coordinate
def visualize(self):

Prints 2D plot of the component path.

Note: Wayland only

cntr: np.ndarray =

ordered list of (x,y) points the robot must follow to cut the component

first_pt: np.ndarray =

the first pair of (x,y) coordinates in the primitive path. Improves code legibility

grid_size: np.ndarray =

length and width of the image grid. Size is 2

last_pt: np.ndarray =

the last pair of (x,y) coordinates in the primitive path. Improves code legibility

name: str =

name of the specific component at a specific location in space. E.g. plane0, plane1, plane2 ...