SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1803.09956 · 2018

Learning Synergies between Pushing and Grasping with Self-supervised Deep Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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 9 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/1803.09956.json · badge: /api/ran/1803.09956.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
andyzeng/visual-pushing-grasping canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
jhu-lcsr/good_robot community (classifier label)
classifier basis not recorded on the link
6 ran · 1 no recorded run
FunctionStatusWhere it lives
check_success Ran
ran on a synthesized input
jhu-lcsr/good_robot/annotate_data.py
code served (permissive licence) · get_code("2f66e33eb753b345")
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 bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

# The function checks if data[idx][0] == 1
# So data needs to be indexable by idx
# data[idx] needs to be indexable by [0]
# data[idx][0] should be comparable to 1

# Simple list of lists where each inner list has a first element
data = [[1, 2, 3], [0, 4, 5], [1, 6, 7]]
idx = 0

ARGS = {
    "data": data,
    "idx": idx
}
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 bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
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
gaussian_augment Ran
ran on a synthesized input
jhu-lcsr/good_robot/annotate_data.py
code served (permissive licence) · get_code("d13a0b08c052b275")
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 ImagePair. 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 copy
import numpy as np
from skimage.util import random_noise

# Create a simple class to represent an image pair
class ImagePair:
    def __init__(self, prev_image, next_image):
        self.prev_image = prev_image
        self.next_image = next_image

# Create small dummy images (4x3 arrays with distinct dimensions)
prev_image = np.random.rand(4, 3).astype(np.float32)
next_image = np.random.rand(4, 3).astype(np.float32)

# Create an ImagePair instance
pair = ImagePair(prev_image, next_image)

# Define params as (mean, var) tuple
params = (0.0, 0.01)

ARGS = {
    "pair": pair,
    "params": params
}
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 ImagePair — a ImagePair output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ImagePair 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
get_heightmap Ran
ran on a synthesized input
andyzeng/visual-pushing-grasping/utils.py
code served (permissive licence) · get_code("c5da0ddce6880977")
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. 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 numpy as np

# Create small synthetic color image (4x3 pixels, RGB)
color_img = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

# Create small synthetic depth image (4x3 pixels)
depth_img = np.random.uniform(0.5, 2.0, size=(4, 3)).astype(np.float32)

# Camera intrinsics matrix (3x3)
# Format: [[fx, 0, cx], [0, fy, cy], [0, 0, 1]]
cam_intrinsics = np.array([
    [500.0, 0.0, 1.5],      # fx, 0, cx
    [0.0, 500.0, 2.0],      # 0, fy, cy
    [0.0, 0.0, 1.0]         # 0, 0, 1
], dtype=np.float32)

# Camera pose: 4x4 transformation matrix
cam_pose = np.array([
    [1.0, 0.0, 0.0, 0.5],
    [0.0, 1.0, 0.0, 0.3],
    [0.0, 0.0, 1.0, 1.0],
    [0.0, 0.0, 0.0, 1.0]
], dtype=np.float32)

# Workspace limits: [[x_min, x_max], [y_min, y_max], [z_min, z_max]]
workspace_limits = np.array([
    [0.0, 1.0],      # x range
    [0.0, 1.0],      # y range
    [0.0, 2.0]       # z range
], dtype=np.float32)

# Heightmap resolution in meters per pixel
heightmap_resolution = 0.02

ARGS = {
    "color_img": color_img,
    "depth_img": depth_img,
    "cam_intrinsics": cam_intrinsics,
    "cam_pose": cam_pose,
    "workspace_limits": workspace_limits,
    "heightmap_resolution": heightmap_resolution
}
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 — a tuple output has no array shape of its own; none is 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
get_pointcloud Ran
ran on a synthesized input
andyzeng/visual-pushing-grasping/utils.py
code served (permissive licence) · get_code("2008ee658029d65e")
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 3, 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
height = 4
width = 3

# Create a color image (height x width x 3) with uint8 values
color_img = np.random.randint(0, 256, (height, width, 3), dtype=np.uint8)

# Create a depth image (height x width) with float values representing depth in meters
depth_img = np.random.uniform(0.1, 5.0, (height, width)).astype(np.float32)

# Camera intrinsics matrix (3x3)
# Format: [[fx, 0, cx], [0, fy, cy], [0, 0, 1]]
# Using typical values but with distinct numbers for probing
camera_intrinsics = np.array([
    [500.0, 0.0, 160.0],    # fx, 0, cx
    [0.0, 500.0, 120.0],    # 0, fy, cy
    [0.0, 0.0, 1.0]         # homogeneous coordinate
], dtype=np.float32)

ARGS = {
    'color_img': color_img,
    'depth_img': depth_img,
    'camera_intrinsics': camera_intrinsics
}
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 3, 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
get_rigid_transform Ran
ran on a synthesized input
andyzeng/visual-pushing-grasping/calibrate.py
code served (permissive licence) · get_code("66b69e6aec040eec")
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. 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 numpy as np

# Construct small point clouds for rigid transformation
# A and B should be (N, 3) arrays of 3D points
np.random.seed(0)
N = 5  # number of points
A = np.random.randn(N, 3).astype(np.float64)
B = np.random.randn(N, 3).astype(np.float64)

ARGS = {
    'A': A,
    'B': B,
}
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 — a tuple output has no array shape of its own; none is 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
orientation_and_angle_to_push_direction Ran
ran on a synthesized input
jhu-lcsr/good_robot/old_robot.py
code served (permissive licence) · get_code("cda60434af4d961f")
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 ndarray, ndim 1, dtype family float, shape (3,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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 orientation_and_angle_to_push_direction
heightmap_rotation_angle = np.pi / 4  # 45 degrees in radians
push_orientation = [0.707, 0.707]  # normalized vector at 45 degrees

ARGS = {
    "heightmap_rotation_angle": heightmap_rotation_angle,
    "push_orientation": push_orientation
}
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 ndarray, ndim 1, dtype family float, shape (3,) — shape (3,) as a later run recorded it
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
tile_vector_as_image_channels_torch Ran
ran on a synthesized input
jhu-lcsr/good_robot/models.py
code served (permissive licence) · get_code("c3fb49ac0bbf4b2f")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 3, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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

torch.manual_seed(0)

# Create a small vector tensor with shape [batch_size, vector_dim]
# batch_size=2, vector_dim=4
vector_op = torch.randn(2, 4)

# image_shape should be [B, C, H, W] format
# The function expands the vector to match H and W dimensions
# B=2, C=4 (matches vector dimensions), H=3, W=5
image_shape = [2, 4, 3, 5]

ARGS = {
    "vector_op": vector_op,
    "image_shape": image_shape,
}
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 Tensor, ndim 4, dtype family float, shape (2, 4, 3, 5) — shape (2, 4, 3, 5) as a later run recorded it
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
trunk_net Ran
ran on a synthesized input
jhu-lcsr/good_robot/models.py
code served (permissive licence) · get_code("74eb38f3b409fc2f")
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 Sequential. 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 torch
import torch.nn as nn
from collections import OrderedDict

torch.manual_seed(0)

ARGS = {
    'name': 'trunk',
    'fc_channels': 2048,
    'second_fc_channels': 1024,
    'goal_condition_len': 256,
    'channels_out': 3
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
vector_block Ran
ran on a synthesized input
jhu-lcsr/good_robot/models.py
code served (permissive licence) · get_code("1d9bce5bd776f699")
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 Sequential. 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 torch
import torch.nn as nn
from collections import OrderedDict

torch.manual_seed(0)

ARGS = {
    'name': 'test',
    'channels_in': 4,
    'fc_channels': 2048,
    'channels_out': 2048
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
get_affordance_vis Not yet run
unverified (harvested, no recorded run)
andyzeng/visual-pushing-grasping/utils.py
code served (permissive licence) · get_code("40580a929888a5e6")
How it ran

no invocation recorded.

rotate_pair Not yet run
unverified (harvested, no recorded run)
jhu-lcsr/good_robot/annotate_data.py
code served (permissive licence) · get_code("b13efc4d8c9255f5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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.

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

Skilled robotic manipulation benefits from complex synergies between non-prehensile (e.g. pushing) and prehensile (e.g. grasping) actions: pushing can help rearrange cluttered objects to make space for arms and fingers; likewise, grasping can help displace objects to make pushing movements more precise and collision-free. In this work, we demonstrate that it is possible to discover and learn these synergies from scratch through model-free deep reinforcement learning. Our method involves training two fully convolutional networks that map from visual observations to actions: one infers the utility of pushes for a dense pixel-wise sampling of end effector orientations and locations, while the other does the same for grasping. Both networks are trained jointly in a Q-learning framework and are entirely self-supervised by trial and error, where rewards are provided from successful grasps. In this way, our policy learns pushing motions that enable future grasps, while learning grasps that can leverage past pushes. During picking experiments in both simulation and real-world scenarios, we find that our system quickly learns complex behaviors amid challenging cases of clutter, and achieves better grasping success rates and picking efficiencies than baseline alternatives after only a few hours of training. We further demonstrate that our method is capable of generalizing to novel objects. Qualitative results (videos), code, pre-trained models, and simulation environments are available at http://vpg.cs.princeton.edu

For agents

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

get_harvested_code_for_paper("1803.09956")
get_code_for_paper("1803.09956")
have("1803.09956")

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

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

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

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

Connect an agent — have() is free.