SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1804.05172 · 2018

Closing the Loop for Robotic Grasping: A Real-time, Generative Grasp Synthesis Approach

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1804.05172.json · badge: /api/ran/1804.05172.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
dougsm/mvp_grasp community (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
SteveHao74/ggcnn_shahao community (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
FunctionStatusWhere it lives
detect_grasps Ran
ran on a synthesized input
dougsm/mvp_grasp/ggcnn/src/ggcnn/grasp.py
code served (permissive licence) · get_code("60b768afd19c7338")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create small test images for grasp detection
# point_img: probability map for grasp points
point_img = np.random.rand(50, 50).astype(np.float32)
# Add a clear peak for detection
point_img[25, 25] = 0.9
point_img[30, 30] = 0.7

# ang_img: angle map for grasps
ang_img = np.random.rand(50, 50).astype(np.float32) * np.pi - np.pi / 2

# width_img: optional width map
width_img = np.random.rand(50, 50).astype(np.float32) * 30 + 10

ARGS = {
    'point_img': point_img,
    'ang_img': ang_img,
    'width_img': width_img,
    'no_grasps': 2,
    'ang_threshold': 5,
    'thresh_abs': 0.5,
    'min_distance': 20
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, skimage — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_model Ran
ran on a synthesized input
SteveHao74/ggcnn_shahao/eval_ggcnn.py
code served (permissive licence) · get_code("264894afe49ce283")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned PosixPath. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# Create a temporary directory structure with test files
temp_dir = tempfile.mkdtemp()
model_path = Path(temp_dir)

# Create some test files with the naming pattern expected by the function
# Pattern: *_<number>_*_* (4 parts separated by underscores)
(model_path / "model_1_checkpoint_weights.pt").touch()
(model_path / "model_5_checkpoint_weights.pt").touch()
(model_path / "model_3_checkpoint_weights.pt").touch()
(model_path / "other_file.txt").touch()

ARGS = {
    "model_path": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PosixPath — a PosixPath output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PosixPath output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
post_process_output Ran
ran on a synthesized input
SteveHao74/ggcnn_shahao/models/common.py
code served (permissive licence) · get_code("1a944ae0e5992dc3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from skimage.filters import gaussian

torch.manual_seed(0)

# Create small tensor outputs from a GG-CNN
# The function expects tensors that can be converted to numpy and squeezed
# Typical GG-CNN output shape: (batch, 1, height, width) or (batch, height, width)

batch_size = 2
height = 4
width = 3

# q_img: quality map, shape (batch, 1, height, width)
q_img = torch.randn(batch_size, 1, height, width)

# cos_img and sin_img: used for angle calculation via atan2
# shape (batch, 1, height, width)
cos_img = torch.randn(batch_size, 1, height, width)
sin_img = torch.randn(batch_size, 1, height, width)

# width_img: gripper width prediction, shape (batch, 1, height, width)
# will be multiplied by 150.0
width_img = torch.randn(batch_size, 1, height, width)

ARGS = {
    'q_img': q_img,
    'cos_img': cos_img,
    'sin_img': sin_img,
    'width_img': width_img
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
skimage, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
quaternion_to_list Ran
ran on a synthesized input
dougsm/mvp_grasp/dougsm_helpers/src/dougsm_helpers/tf_helpers.py
code served (permissive licence) · get_code("9a665d656a855729")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from dataclasses import dataclass

@dataclass
class Quaternion:
    x: float
    y: float
    z: float
    w: float

torch.manual_seed(0)

quaternion = Quaternion(x=0.1, y=0.2, z=0.3, w=0.9)

ARGS = {
    "quaternion": quaternion
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
update_batch Ran
ran on a synthesized input
dougsm/mvp_grasp/mvp_grasping/src/mvp_grasping/grasp_stats.py
code served (permissive licence) · get_code("a11d2909fc421b49")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct arguments for update_batch function
# The function expects:
# - data: array or list of arrays with batch data
# - ids: array of shape (N, 2) containing indices
# - count: 2D array for counting occurrences
# - mean: array or list of arrays for means
# - var: array or list of arrays for variances

# Create small test data
np.random.seed(0)

# ids should be (N, 2) with values that index into count dimensions
# count.shape[1] will be used, so we need at least 2D count
# Let's say count is (3, 4) - 3 rows, 4 columns
batch_size = 5
ids = np.array([
    [0, 1],
    [1, 2],
    [2, 0],
    [0, 3],
    [1, 1]
], dtype=np.int64)

# count should be 2D with shape (num_groups_dim0, num_groups_dim1)
# Based on ids, we need at least (3, 4)
count = np.array([
    [2, 3, 1, 2],
    [1, 2, 3, 1],
    [2, 1, 2, 3]
], dtype=np.float64)

# data is 1D array with batch_size elements
data = np.array([1.5, 2.3, 0.9, 1.2, 2.1], dtype=np.float64)

# mean and var should match count shape (3, 4)
mean = np.array([
    [1.0, 1.5, 0.8, 1.2],
    [0.9, 1.1, 1.3, 0.7],
    [1.2, 0.8, 1.0, 1.5]
], dtype=np.float64)

var = np.array([
    [0.1, 0.2, 0.15, 0.12],
    [0.13, 0.11, 0.14, 0.09],
    [0.16, 0.10, 0.12, 0.18]
], dtype=np.float64)

ARGS = {
    "data": data,
    "ids": ids,
    "count": count,
    "mean": mean,
    "var": var
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
update_batch_single_sample Ran
ran on a synthesized input
dougsm/mvp_grasp/mvp_grasping/src/mvp_grasping/grasp_stats.py
code served (permissive licence) · get_code("1538dc9979b95147")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Analyze the function to understand what it needs:
# - data: can be a single array or list of arrays. Used with np.bincount(ids_r, d)
# - ids: 2D array with shape (n_samples, 2). Used as ids[:, 0] and ids[:, 1]
# - count: 2D array indexed by ids_unr tuple. Shape should match the grid defined by ids
# - mean: array or list of arrays, indexed by ids_unr tuple
# - var: array or list of arrays, indexed by ids_unr tuple

# The function flattens 2D indices: ids_r = ids[:, 0] * count.shape[1] + ids[:, 1]
# This means ids[:, 0] ranges in [0, count.shape[0]) and ids[:, 1] ranges in [0, count.shape[1])

# Set up small example:
# - count shape: (3, 4) - 3x4 grid
# - ids: (n_samples, 2) where each row is a valid index into the grid
# - data: 1D array of values, length = n_samples
# - mean, var: same shape as count

n_samples = 5
count_shape = (3, 4)  # 3 rows, 4 columns

# Create ids with valid indices
ids = np.array([
    [0, 1],
    [1, 2],
    [0, 1],
    [2, 3],
    [1, 0]
], dtype=np.int64)

# Create data (values to aggregate)
data = np.array([1.5, 2.0, 1.8, 3.2, 2.5], dtype=np.float64)

# Create count array (tracks number of samples per grid cell)
count = np.zeros(count_shape, dtype=np.int64)

# Create mean array
mean = np.zeros(count_shape, dtype=np.float64)

# Create var array
var = np.zeros(count_shape, dtype=np.float64)

ARGS = {
    "data": data,
    "ids": ids,
    "count": count,
    "mean": mean,
    "var": var
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_iou_match Not yet run
unverified (harvested, no recorded run)
SteveHao74/ggcnn_shahao/utils/dataset_processing/evaluation.py
code served (permissive licence) · get_code("7eaf73809fb84ee2")
How it ran

no invocation recorded.

gridshow Not yet run
unverified (harvested, no recorded run)
dougsm/mvp_grasp/dougsm_helpers/src/dougsm_helpers/gridshow.py
code served (permissive licence) · get_code("2bc4177b746b595b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
calculate_iou_match 1 other paper
1 dated earlier
1412.3128 (2014-12)
Real-Time Grasp Detection Using Convolutional Neural Networks
post_process_output 1 other paper
1 dated earlier
1412.3128 (2014-12)
Real-Time Grasp Detection Using Convolutional Neural Networks

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This paper presents a real-time, object-independent grasp synthesis method which can be used for closed-loop grasping. Our proposed Generative Grasping Convolutional Neural Network (GG-CNN) predicts the quality and pose of grasps at every pixel. This one-to-one mapping from a depth image overcomes limitations of current deep-learning grasping techniques by avoiding discrete sampling of grasp candidates and long computation times. Additionally, our GG-CNN is orders of magnitude smaller while detecting stable grasps with equivalent performance to current state-of-the-art techniques. The light-weight and single-pass generative nature of our GG-CNN allows for closed-loop control at up to 50Hz, enabling accurate grasping in non-static environments where objects move and in the presence of robot control inaccuracies. In our real-world tests, we achieve an 83% grasp success rate on a set of previously unseen objects with adversarial geometry and 88% on a set of household objects that are moved during the grasp attempt. We also achieve 81% accuracy when grasping in dynamic clutter.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1804.05172")
get_code_for_paper("1804.05172")
have("1804.05172")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1804.05172.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1804.05172.svg)](https://syntology.ai/paper/1804.05172)

Connect an agent — have() is free.