Skip to content

Commit

Permalink
Merge pull request #64 from lenzc/master
Browse files Browse the repository at this point in the history
image_grasp_sampler: forward camera intrinsic to new grasp center point.
  • Loading branch information
jeffmahler authored Apr 23, 2019
2 parents 2a414fe + 5dfbb8b commit 1171ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gqcnn/grasping/image_grasp_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def _sample_antipodal_grasps(self, depth_im, camera_intr, num_samples,
grasp_theta = np.pi / 2
if grasp_axis[1] != 0:
grasp_theta = np.arctan2(grasp_axis[0], grasp_axis[1])
grasp_center_pt = Point(np.array([grasp_center[1], grasp_center[0]]))
grasp_center_pt = Point(np.array([grasp_center[1], grasp_center[0]]), frame=camera_intr.frame)

# compute grasp points in 3D
x1 = point_cloud_im[p1[0], p1[1]]
Expand Down

0 comments on commit 1171ad2

Please sign in to comment.