feat(perception): lane/path edge detector (Issue #339) #341
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-perception/issue-339-path-edges"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements Canny + Hough + bird-eye perspective pipeline for lane/path edge detection from the forward camera.
New files
saltybot_scene_msgs/msg/PathEdges.msg— flatfloat32[]segment arrays + dominant left/right edge fields in both ROI and bird-eye framessaltybot_bringup/_path_edges.py— pure-Python helper:PathEdgeConfig,PathEdgesResult,build_homography,apply_homography,canny_edges,hough_lines,classify_lines,average_line,warp_segments,process_framesaltybot_bringup/path_edges_node.py— ROS2 node subscribing/camera/color/image_raw, publishing/saltybot/path_edgestest/test_path_edges.py— 38 tests, 38 passingModified files
saltybot_scene_msgs/CMakeLists.txt— registerPathEdges.msgsaltybot_bringup/setup.py— addpath_edgesconsole scriptAlgorithm
roi_frac(default 50%) of frame as ROIPathEdgeswith all dataTest plan
build_homographyshape, dtype, known corner mappingsapply_homographyempty input, single-point roundtrip, batchcanny_edgesshape, dtype, uniform → no edges, strong edge detectedhough_linesempty map → [], returns float tuplesclassify_linesnegative/positive/near-horizontal/vertical/mixedaverage_lineempty → None, single, two parallel, vertical-onlywarp_segmentsempty, single, endpoint distinctness, batch countprocess_framesmoke, roi_top, uniform, H shape, birdseye count, lane detection, segment arraysCloses #339
🤖 Generated with Claude Code
Adds Canny+Hough+bird-eye perspective pipeline for detecting left/right path edges from the forward camera. Pure-Python helper (_path_edges.py) is fully tested; ROS2 node publishes PathEdges on /saltybot/path_edges. - saltybot_scene_msgs/msg/PathEdges.msg — new message - saltybot_scene_msgs/CMakeLists.txt — register PathEdges.msg - saltybot_bringup/_path_edges.py — PathEdgeConfig, PathEdgesResult, build/apply_homography, canny_edges, hough_lines, classify_lines, average_line, warp_segments, process_frame - saltybot_bringup/path_edges_node.py — ROS2 node (sensor_msgs/Image → PathEdges, parameters for all tunable Canny/Hough/birdseye params) - test/test_path_edges.py — 38 tests, 38 passing - setup.py — add path_edges console_script Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>