-
Notifications
You must be signed in to change notification settings - Fork 0
Raster Algorithm
ashleshp edited this page Apr 5, 2026
·
3 revisions
The raster path is generated from four corner poses.
- transform all four corners into the base frame if needed
- treat
top_left -> bottom_leftas the left scan edge - treat
top_right -> bottom_rightas the right scan edge - interpolate points along both edges using SciPy linear interpolation with the line spacing
- connect each left/right pair in alternating order to create a zig-zag polyline
- sample that polyline again with SciPy linear interpolation using the waypoint spacing
- keep the tool orientation fixed to the orientation of the starting pose
- convert each absolute waypoint into a relative move before sending it to
ArmControl
- line spacing and waypoint spacing are currently hardcoded in the node
- no screw returned at a waypoint does not fail the scan
- screw detections are de-duplicated by Euclidean distance so the same screw is not appended repeatedly from nearby viewpoints
The node uses SciPy only for simple linear interpolation through scipy.interpolate.interp1d.
It is used twice:
- to interpolate points along the left and right scan edges
- to resample the final zig-zag polyline into evenly spaced waypoints
So SciPy is not being used for optimization or complex path planning here. It is only being used as a straightforward interpolation utility.