feat(bringup): floor surface type classifier on D435i RGB (Issue #249) #256
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-perception/issue-249-floor-classifier"
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
_floor_classifier.py:extract_features(bgr, roi_frac=0.40)→ 6-dim feature vector[hue_mean, sat_mean, val_mean, sat_std, texture_var, edge_density]from bottom 40% of frame (floor ROI);classify_floor_patch()→ nearest-centroid in weighted L2 space, returnsClassifyResult(label, confidence, features, distances);LabelSmoother— majority-vote deque over last N framesfloor_classifier_node.py: subscribes/camera/color/image_raw(BEST_EFFORT), publishesstd_msgs/Stringon/saltybot/floor_typeat 2 Hz withdistance_thresholdguard that outputs"unknown"when no class matches wellTest plan
test/test_floor_classifier.py— 34/34 pure-Python tests pass (no ROS2 required)class_centroidsROS parameter if needed🤖 Generated with Claude Code