9de3b3fd4781b6e22da802a12f46e7d26ce29d20,gqcnn/grasp.py,SuctionPoint2D,from_feature_vec,#Any#Any#Any#Any#,275
Before Change
if v.shape[0] > 5:
depth = v[5]
if depth_im is not None:
i = int(min(max(center_px[1], 0), depth_im.height-1))
j = int(min(max(center_px[0], 0), depth_im.width-1))
depth = depth_im[i, j] + depth_offset
// compute center and angle
center = Point(center_px, camera_intr.frame)
return SuctionPoint2D(center, axis, depth, camera_intr=camera_intr)
After Change
center_px = v[:2]
grasp_axis = np.array([0,0,-1])
if v.shape > 2 and axis is None:
grasp_axis = v[2:5]
grasp_axis = grasp_axis / np.linalg.norm(grasp_axis)
elif axis is not None:
grasp_axis = axis
grasp_depth = 0.5
if v.shape[0] > 5 and depth is None:
grasp_depth = v[5]
elif depth is not None:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: BerkeleyAutomation/gqcnn
Commit Name: 9de3b3fd4781b6e22da802a12f46e7d26ce29d20
Time: 2018-02-12
Author: jmahler@berkeley.edu
File Name: gqcnn/grasp.py
Class Name: SuctionPoint2D
Method Name: from_feature_vec
Project Name: rusty1s/pytorch_geometric
Commit Name: e6484cd61d31a38f96729a70c1f461fc18b3d8ce
Time: 2017-11-08
Author: matthias.fey@tu-dortmund.de
File Name: examples/mnist_grid.py
Class Name:
Method Name: train
Project Name: rusty1s/pytorch_geometric
Commit Name: c6349f5f1a8955419d396c7ac74f782f6f00a443
Time: 2017-11-03
Author: matthias.fey@tu-dortmund.de
File Name: examples/mnist_superpixel_75.py
Class Name:
Method Name: train