personalrobotics / ada_feeding

Robot-assisted feeding demos and projects for the ADA robot
4 stars 4 forks source link

[SegmentFromPoint] Replaced Average Depth with Median #157

Closed amalnanavati closed 9 months ago

amalnanavati commented 9 months ago

Description

In the 1/16 user study, we saw some cases where the deepest point of the fork's "into" motion was around 1 inch from the top of the food. Our hypothesis is that part of the fork (and/or its shadow) was in the segmented mask, skewing the average depth. Thus, this PR does two things:

  1. Replaces average depth with median depth.
  2. Removes points of depth 0 from the mask (indicative of a shadow in the depth camera)

Testing procedure

In-person:

Before opening a pull request

Before Merging