polygon_offset — DRIVE pegsym op

• Data kinds: matrix × scalar → table

• Call: import fullseye as fs; fs.ledger.polygon_offset(vertices, clearance: 'float') -> 'dict' (to call the implementation directly, import pegsym; pegsym.polygon_offset(vertices, clearance: 'float') -> 'dict'; from the registry, opsdrive.get("polygon_offset"))

Usage

Polygon obtained by shifting each edge of a convex polygon outward by clearance [m] (corners stay sharp = how hole drawings are made). For a regular polygon this is a similarity enlargement, so orientation and symmetry are unchanged. Returns vertices, normals and offsets (n·x ≤ h). Raises ValueError: not convex, clearance < 0 or not finite, an edge vanishes when shifted (since there are no reflex corners, this only admits shapes where it cannot happen).

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_peg_symmetry_search — py -3.11 examples/poc_peg_symmetry_search.py

Ops the type connects to (they accept table as input)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

Same category (pegsym)

polygon_peg · polygon_fit_check · rotation_window · polygon_two_point_depth · polygon_coverage_image · plane_topview · polygon_yaw_read · relative_yaw_from_images


*Provenance: pegsym.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.