Skip to content

Commit

Permalink
image_grasp_sampler: forward camera intrinsic to new grasp center point.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Lenz committed Apr 23, 2019
1 parent 2a414fe commit 5dfbb8b
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 5dfbb8b

Please sign in to comment.