feat(perception): HSV color object segmenter (Issue #274) #281
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-perception/issue-274-color-segment"
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
ColorDetection.msg+ColorDetectionArray.msgtosaltybot_scene_msgs_color_segmenter.py:HsvRange/ColorBlobtypes,COLOR_RANGESdefaults for red/green/blue/yellow/orange (dual-band wrap for red),mask_for_color(),find_color_blobs()with morphological open + contour extraction + area/count filteringcolor_segment_node.py: subscribes/camera/color/image_raw(BEST_EFFORT), publishes/saltybot/color_objects(ColorDetectionArray) per frame;active_colors,min_area_px,max_blobs_per_colorROS paramssaltybot_scene_msgsexec_dependtosaltybot_bringup/package.xmlcolor_segmenterconsole script insetup.pyTest plan
python3 -m pytest test/test_color_segmenter.py -v→ 34 passedros2 run saltybot_bringup color_segmenter/saltybot/color_objectspublishesColorDetectionArraywhen coloured objects in viewactive_colorsparam restricts output to requested colors🤖 Generated with Claude Code