Skip to content

Commit

Permalink
removing TODO's that were replaced by github issues; updating comment…
Browse files Browse the repository at this point in the history
…s to explain magic number
  • Loading branch information
lindzey committed Dec 12, 2013
1 parent 2454df7 commit 9ed4707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clear_table/src/clear_table/scene_handler.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# This is a utility class that handles all the sensor and PlanningScene interaction
# for the clear_table state machine

# TODO: need to parameterize l/r arm for adding objects
# TODO: also need to parameterize world frame ...

import sys

import rospy
Expand Down
2 changes: 2 additions & 0 deletions clear_table/src/clear_table/sensor_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def get_point_cloud(self, data, mask):
for ii in range(data.points.width):
pt = pt_gen.next()
if not math.isnan(pt[0]):
# From openCV, used by Grabcut to mask image.
# cv::GC_BGD = 0, cv::GC_FGD = 1, cv::GC_PR_BGD = 2, CV::GC_PR_FGC = 3
if (img[jj,ii] == 1 or img[jj,ii]==3):
out_pts.append(pt[0:3])
print "done creating output point cloud"
Expand Down

0 comments on commit 9ed4707

Please sign in to comment.