Perception

Plan grasps

Send a point cloud and get ranked gripper poses for picking up what's in it.

View as Markdown
POST/v1/grasp

Authorization

Request body

JSON, with Content-Type: application/json.

  • modelstringrequired

    The grasp model to run. The models for this endpoint are listed below.

  • pointsnumber[][]required

    The point cloud: 3–20,000 [x, y, z] points in meters, in the camera or robot frame.

  • top_kinteger

    How many grasps to return, 1–50.

  • gripperstring | object

    Gripper-conditioned models (GraspGen-X): a gripper the model knows by name (e.g. franka_panda, robotiq_2f_85), or any gripper's sweep volumes { extents_open, offset_open, extents_mid, offset_mid }, each [x, y, z] in meters in the gripper frame (z = approach, x = closing).

  • seedinteger

    Sampling models: the same seed and request give the same grasps.

Response

  • idstring

    Unique id of this call, e.g. grp_48213. It matches the call in your Activity dashboard.

  • modelstring

    The model that answered.

  • backendstring

    "http": the real model ran on a GPU. "simulated": stand-in output of the same shape, as test keys get.

  • sandboxboolean

    true when the call was made with a test key: the output is simulated, nothing ran on a GPU and nothing was charged. Absent otherwise.

  • graspsobject[]

    Best first, in the frame of your points.

    Show 4 child attributes
    • positionnumber[3]

      [x, y, z] in meters.

    • rotationnumber[4]

      Quaternion [qx, qy, qz, qw].

    • widthnumber

      Gripper opening, in meters.

    • scorenumber

      Quality, 0–1.

  • usageobject

    What the call cost.

    Show 2 child attributes
    • cost_usdnumber

      Charged to your credits, in US dollars.

    • latency_msinteger

      Time the model took, in milliseconds.

Errors

The errors every endpoint shares: invalid input, keys, credits and cold starts. See Errors.

Models

1 live model for /grasp. Each page has a ready-made request.

1 more is coming soon. See the models page.