Skip to main content
Why HTML? Back to Abstract Download PDF
License: arXiv.org perpetual non-exclusive license
arXiv:2306.08132v1 [cs.RO] 13 Jun 2023

Fast-Grasp’D: Dexterous Multi-finger Grasp Generation
Through Differentiable Simulation

Dylan Turpin    Tao Zhong    Shutong Zhang    Guanglei Zhu    Jingzhou Liu    Ritvik Singh    Eric Heiden    Miles Macklin    Stavros Tsogkas    Sven Dickinson    Animesh Garg
Abstract

Multi-finger grasping relies on high quality training data, which is hard to obtain: human data is hard to transfer and synthetic data relies on simplifying assumptions that reduce grasp quality. By making grasp simulation differentiable, and contact dynamics amenable to gradient-based optimization, we accelerate the search for high-quality grasps with fewer limiting assumptions. We present Grasp’D-1M: a large-scale dataset for multi-finger robotic grasping, synthesized with Fast-Grasp’D, a novel differentiable grasping simulator. Grasp’D-1M contains one million training examples for three robotic hands (three, four and five-fingered), each with multimodal visual inputs (RGB+depth+segmentation, available in mono and stereo). Grasp synthesis with Fast-Grasp’D is 10x faster than GraspIt! [1] and 20x faster than the prior Grasp’D differentiable simulator [2]. Generated grasps are more stable and contact-rich than GraspIt! grasps, regardless of the distance threshold used for contact generation. We validate the usefulness of our dataset by retraining an existing vision-based grasping pipeline [3] on Grasp’D-1M, and showing a dramatic increase in model performance, predicting grasps with 30% more contact, a 33% higher epsilon metric, and 35% lower simulated displacement. Additional details at dexgrasp.github.io.

[Uncaptioned image]
Figure 1: The Grasp’D-1M dataset contains one million unique grasps, each with multi-modal visual inputs for training vision-based robotic grasping. We synthesize these grasps with a new differentiable grasping simulator, Fast-Grasp’D. Gradient information accelerates the grasp search, allowing us to search the full-DOF space (without eigengrasps) and simulate thousands of contacts to produce a dataset of contact-rich, stable grasps that can improve any learned grasping pipeline.
00footnotetext: 1University of Toronto, 2 Vector Institute, 3Nvidia, 4Samsung.
Correspondence: {dylanturpin, garg}@cs.toronto.edu
Dickinson and Tsogkas contributed to this work in their capacity as Professor and Adjunct Professor, respectively, at the University of Toronto. The views expressed (or the conclusions reached) are their own and do not necessarily represent the views of Samsung Research America, Inc.

I Introduction

Multi-finger robotic grasping is necessary for the effective operation of robots in everyday environments, which are filled with objects and affordances built for human hands. Recent works [3, 4, 5] in vision-based robotic grasping learn mappings: (1) from visual input to gripper poses (direct regression); or (2) from visual input and a proposed gripper pose to a score (sampling). A high-quality, large-scale dataset is necessary to learn either one of these mappings.

Such data are typically generated synthetically. Datasets of real human grasps can be captured [6, 7], and research on the grasp transfer problem considers the best way to adapt a human grasp pose to a robot [8, 9, 10]. However, this remains an open problem, and may be impractical in cases where the difference between human and robot hand morphology is noticeable (see Fig. 8 of [10]). Real robot trials offer a way of evaluating proposed grasps, but are usually considered too slow to use inside of a sampling loop.

Black-box optimization (e.g., simulated annealing [1]) takes many samples to find good grasps in the high-dimensional pose space of multi-finger grippers. Simulation-based metrics – widely used for parallel-jaw grasping due to their greater physical fidelity – are too expensive to compute at each step. Instead, we still rely largely on analytic metrics, and even then, limit the search to a low-dimensional subspace and pre-specify a handful of possible contact locations.

Dataset
Robotic Hands
(# of Fingers)
Visual inputs Available input modalities Generation method
Number of
unique grasps
Number of
training examples
Multi-FinGAN [11] Barrett (3) ✓ RGBD, segmentation GraspIt! [1] 1,355 4,990
DDGC [3] Barrett (3) ✓ RGBD, segmentation GraspIt! [1] 6,793 185,598
Columbia Grasp Database [12] Barrett (3) x (none) GraspIt! [1] 158,006 (none)
Grasp’D-1M (ours)
Barrett (3), Allegro (4)
Shadow (5)
✓
RGBD, segmentation,
2D/3D bbox (in mono+stereo)
Differentiable
Simulation
1,000,000 1,000,000
Table I: Datasets of multi-finger robotic grasps for training vision-based grasping are uncommon, limited in size (especially when considering the number of unique grasps, which are reused with multiple scenes or camera angles) and contain grasps whose quality is limited by the assumptions necessary for sampling-based planning with GraspIt! [1] to succeed.

This results in poor quality grasps. It is unlikely that conformal grasps exist in any low-dimensional subspace we choose to search. Simple refinement methods (e.g., autograsp in [1] or the differentiable layer in [3]) create some contact by closing the fingers, but rarely discover high-contact grasps.

Our previous work [2] shared a similar motivation, but was impractically slow (5 minutes per grasp), did not include data for robotic hands, and did not evaluate whether better synthesis of training data translates to improved model performance. We address these limitations with algorithmic changes to our simulator. We use an integrator based on position-based dynamics, known to be stable and robust in contact-rich scenarios and allowing us to forgo a problem relaxation based on contact-invariant optimization [13] (thereby reducing optimization variables from thousands to tens). We represent the object-to-be-grasped with a mesh (rather than a fixed sized grid), and compute smoothed Phong [14] signed distances on the fly. This leads to more accurate signed-distances and computation time that scales with mesh complexity. We summarize our contributions as follows:

  1. 1.

    We introduce the Fast-Grasp’D simulator and pipeline for differentiable grasp synthesis (10×10\times faster than GraspIt! [1] and 20×20\times faster than [2]) with a contact model well-suited to learning by gradient descent.

  2. 2.

    We introduce the Grasp’D-1M dataset of one million unique grasps with multi-modal visual input for vision-based multi-finger robotic grasping.

  3. 3.

    We perform a thorough evaluation of our synthesized grasps as compared to GraspIt!, showing our grasps provide more contact and higher stability, regardless of the distance threshold used for contact generation.

  4. 4.

    Finally, we demonstrate the value of Grasp’D-1M by using it to improve the performance of vision-based grasp prediction, inducing 30% more contact, a 33% higher epsilon metric and 35% lower simulated displacement.

II Related Work

Vision-based grasp prediction

Modern approaches [5, 15] to grasp prediction learn a mapping from visual inputs to grasps (or to a quality function used alongside a sampler) by training on a dataset of positive examples. [16, 11, 3] employ GAN-style models to predict stable grasps from RGBD inputs. [17, 18] take an implicit approach to grasp representation by learning to jointly predict signed distances for a gripper and object to be grasped. Recent works on parallel-jaw grasping [19, 20, 21, 22] use datasets derived from simulation [23, 24], which have better physical fidelity [25, 20, 24] and more intuitive plausibility [23] than analytic datasets. In contrast, multi-finger robotic grasp prediction continues to be trained on analytically synthesized datasets. [11, 3, 17, 18, 26, 27, 28] all use analytically synthesized datasets from the GraspIt! simulator [1]. We aim to improve vision-based multi-finger grasping by using simulation to generate better datasets (and using gradient-based optimization to make the higher computational cost of simulation affordable).

Multi-finger robotic grasping datasets

Only a handful of datasets exist for multi-finger grippers (see Table I). Of these, most include only the three-finger Barrett hand [12, 11, 3] or do not include visual inputs to learn from [12, 8, 29]. The Grasp’D-1M dataset contains grasps for grippers with three (Barrett), four (Allegro), and five (Shadow) fingers, along with a variety of multi-modal visual inputs to learn from. Furthermore, through differentiable simulation, we are able to synthesize more physically-plausible, stable, and contact-rich grasps than can be found with the analytic grasp synthesis [1, 30] used to generate other datasets.

Grasp synthesis. Since human grasps are difficult to transfer to robotic hands, and gathering real robot data is expensive (and presupposes a way to generate trial grasps), robotic grasping datasets often rely on artificial grasp synthesis. Analytic synthesis, which optimizes a handcrafted metric to find stable grasps, has been successfully applied to parallel-jaw grippers (based on grasp wrench space analysis [31, 1, 12], robust grasp wrench space analysis [32, 33], or caging [34, 35]). While they are more computationally costly, simulation-based metrics better align with human judgement [23, 36] and with real world performance [19, 25, 20, 24]. Unfortunately, this higher computational cost has delayed the adoption of simulation-based synthesis for multi-finger hands. Sample-intensive black-box optimization in a high-dimensional pose space renders simulated metrics too expensive. In fact, for high-DOF hands, optimizing over even simple analytic metrics is usually impractical without limiting search to a low-dimensional subspace [37] and considering only a handful of pre-specified contact locations. We introduce a differentiable simulation-based metric. Gradient-based optimization reduces the number of samples required, and GPU parallelism makes simulation fast enough that we can search the full grasp space and simulate thousands of contacts in order to find contact-rich, physically plausible grasps.

Refer to caption
Figure 2: Our grasp synthesis pipeline generates the Grasp’D-1M dataset of one million unique grasps in three stages. (1) Grasp generation: For any provided (robot hand,object)(\textrm{robot hand},\textrm{object}) pair, we generate a set of base grasps by gradient descent over an objective computed by Fast-Grasp’D, our fast and differentiable grasping simulator. (2) Scene generation: We simulate multiple drops of each object onto a table to create scenes with different object poses and transfer base grasps to these scenes. (3) Rendering: Finally, we render each scene (RGB, depth, segmentation, 2D/3D bounding boxes in mono+stereo) from multiple camera angles.

Differentiable Physics

While there has been brisk recent progress in differentiable physics engines [38, 39, 40, 41, 42, 43, 44, 45, 46], myriad limitations render them inadequate for our application. Brax [41] and the Tiny Differentiable Simulator [44] only support collision primitives and cannot model collisions between complex meshes. Nimblephysics [42] supports mesh-to-mesh collision, but cannot handle cases where the gradient of contact normals with respect to position is zero (e.g., on a mesh face). While its analytic computation of gradients is fast, Nimblephysics requires the manual derivation of the backward pass when new simulation functionality is added. Instead, in this work, similar to Brax [41] and Taichi [39], we rely on automatic differentiation to translate user-defined simulation code from high-level Python to kernel codes that run very efficiently on GPUs.

Differentiable Grasping

Differentiable multi-finger grasp synthesis is a less explored domain. [47] and [48] formulate differentiable force closure metrics and use gradient-based optimization to synthesize grasps with the Shadow and MANO [49] hands, respectively. This allows analytic synthesis to search the full-dimensional pose space of a high-DOF hand, yet still exhibits the usual drawbacks of analytic metrics. [47] assumes that contact is limited to 45 manually labelled points, and [48] assumes zero friction, uniform force magnitude across all contacts, and only scales to grasps with a few point contacts (with three contacts it takes ∼40\sim 40 minutes to find 5 acceptable grasps). Our previous work [2] formulated a differentiable simulation-based metric able to scale to thousands of contacts to approximate surface contact and generate plausible, contact-rich grasps. However, Grasp’D [2] was still slow (∼5\sim 5 minutes per grasp), focused on human rather than robotic hands, did not release a dataset or quantitative evaluation for robot grippers, and did not evaluate the benefit of actually training vision-based pipelines on the generated data. Fast-Grasp’D addresses these concerns with up to a 30×30\times speedup (∼\sim10s per grasp online or ∼\sim1s amortized), a large-scale dataset for vision-based robotic grasping, and a thorough evaluation of an existing vision-based grasping pipeline retrained using Fast-Grasp’D data. Two concurrent works [50, 51] also propose differentiable stability metrics, but their fidelity is limited by considering only a handful of contact locations at a time. We include a favourable comparison to [50] in Section V. [51] has not yet released data.

III Fast-Grasp’D: Differentiable Grasp Synthesis

We present a method for grasp synthesis using an input object mesh and hand model (represented by a mesh and an articulation chain with meshes at the links), and generate a physically-plausible stable grasp as a base pose and joint angles of the hand. This is achieved by gradient descent over a stability metric computed by our differentiable grasping simulator, Fast-Grasp’D. The final grasp is dependent on the pose initialization of the hand, so different grasps can be recovered by sampling different starting poses. We extend differentiable grasp synthesis from previous work [2] with algorithmic changes to achieve a 20×20\times speedup in performance, generating a grasp in about one second. Namely, we improve the method’s integration scheme (to ensure stable optimization without introducing additional relaxation variables) and object representation (to scale computation with object complexity). We also adapt the concepts of signed-distance function dilation and leaky gradient to position-based dynamics. We build on the Warp [52] framework, which supports fast auto-differentiation and GPU acceleration.

III-A From Grasp’D to Fast-Grasp’D

We outline the challenges that motivate our design.

Gradient-friendly contact dynamics for mesh inputs

The algorithms usually employed for mesh-to-mesh collision rely on operations (e.g., tree-traversal) that are hard to differentiate through. A formulation of contact constraints based on signed distance functions (SDFs) is well-suited to differentiable collision detection [53, 2]. This leads us to two requirements: i) we need a way to compute and represent an SDF based on a mesh; ii) since the true SDF surface is locally flat, we need a way of smoothing it. Grasp’D [2], addressed these requirements by pre-computing a discretized SDF grid from which values were computed by trilinear interpolation, which acts as a simple form of smoothing. Storing and querying the grid has a constant memory and compute cost. Surface normals can be computed (differentiably) by finite differencing. On the other hand, the grid is an approximation that loses details from the underlying mesh and under constant voxel resolutions is not cheaper to use with simpler meshes.

In this work, we compute the object SDF directly on the triangular, watertight mesh representing the object. We leverage the bounding volume hierarchy (BVH) data structure to accelerate the query of the closest mesh face to compute the distance, and use ray casting to determine the sign of the result (negative sign means inside, positive sign means outside the mesh). Since we compute the true SDF and not an approximation, local flatness of the mesh – i.e., constant normals along each face – creates zero-gradient plateaus that are hard to escape. To address this, we take inspiration from Phong tessellation [14], a rendering technique that smooths mesh normals and silhouettes, and computes a smoothed Phong SDF. This is more accurate than discretizing, requires 7×7\times fewer SDF queries (by avoiding finite differencing for normals), and lets computation time scale with mesh complexity, leading to a large speedup when using simplified meshes provided by DDGC [3]. Discontinuities between faces – where normals vary sharply along an edge – create unstable regions where gradient steps produce unexpected results. Here we follow [2] and take a coarse-to-fine smoothing approach (see Section III-B).

Instability in integration and optimization

Our grasp synthesis method consists of an inner loop (integration) that computes a simulation-based grasp metric maximized by an outer loop (optimization). Study of the outer-loop optimization properties of different differentiable integration schemes is just beginning [54, 55]. Inner-loop instability may arise from simulating hard contact constraints with a force-based integrator. Enforcing non-penetration between rigid bodies under a force-based integrator requires high-stiffness constraints. Such constraints may cause instability, necessitating short time steps, since small pose changes (inducing small constraint violating interpenetrations) create large forces. Instability in the inner loop (integration) destabilizes the outer loop (optimization), creating a rugged loss landscape that is hard to optimize over, even with gradient information.

Our previous work [2] handled this instability with a problem relaxation that allowed (minimal) physics violations. Inspired by Contact-Invariant Optimization [37, 56], each contact point was assigned a corresponding six-dimensional variable representing the desired resultant object wrench. Instead, our current approach (see Section III-C) is built on position-based dynamics (PBD [57]), known for stability and robustness in contact-rich scenarios. A more stable inner loop allows grasp synthesis to succeed without introducing additional variables, leading to a significant speed increase (about 20×20\times over [2]).

Contact sparsity

Most points on the hand are not in contact with the object and will not be brought into contact by an infinitesimal pose perturbation. This means most hand vertices do not contribute to the simulator gradient, so it is difficult for gradient-descent to create new contacts. To address this, we adapt the leaky contact gradients of [2] to PBD.

III-B Shape representation

Signed distance function (SDF)

Whereas primitive objects (e.g., a sphere or box) admit an analytic SDF, this is not the case for complex objects, for which an SDF representation is not readily available. We represent the object to be grasped by a mesh in canonical pose, from which we compute SDF values on the fly as ϕ⁡(𝐫)=𝐫obj±​‖𝐫−𝐫∗‖\phi(\mathbf{r})=\mathbf{r}^{\pm}_{\textrm{obj}}\|\mathbf{r}-\mathbf{r^{*}}\|, where 𝐫∗\mathbf{r^{*}} (the closest point on the mesh surface to 𝐫\mathbf{r}) and 𝐫obj±\mathbf{r}^{\pm}_{\textrm{obj}} (a positive/negative sign indicating whether 𝐫\mathbf{r} is outside/inside the mesh volume) are queried from Warp.

Phong SDF

As described in the introduction of this section, we use the smoothed Phong SDF ρ⁡(𝐫)\rho(\mathbf{r}) for contact generation [14]. The Phong SDF is the SDF of a quadratic surface matching normals interpolated from the vertices of the face 𝐫∗\mathbf{r^{*}} lies on according to barycentric coordinates. Say 𝐫∗=u​𝐯𝐢+v​𝐯𝐣+w​𝐯𝐤\mathbf{r^{*}}=u\mathbf{v_{i}}+v\mathbf{v_{j}}+w\mathbf{v_{k}}, with u,v,wu,v,w being the barycentric coordinates and 𝐯𝐢,𝐯𝐣,𝐯𝐤\mathbf{v_{i}},\mathbf{v_{j}},\mathbf{v_{k}} being the vertices with vertex normals 𝐧𝐢,𝐧𝐣,𝐧𝐤\mathbf{n_{i}},\mathbf{n_{j}},\mathbf{n_{k}}. We then define the closest point to 𝐫\mathbf{r} on the quadratic surface as

𝐫ρ∗=(1−α)​α​(u,v,w)​(ψi​(𝐫∗)ψj​(𝐫∗)ψk​(𝐫∗)),\displaystyle\mathbf{r^{*}_{\uprho}}=(1-\alpha)\alpha(u,v,w)\Big(\begin{smallmatrix}\psi_{i}(\mathbf{r^{*}})\\ \psi_{j}(\mathbf{r^{*}})\\ \psi_{k}(\mathbf{r^{*}})\end{smallmatrix}\Big),

where ψi​(𝐫∗)\psi_{i}(\mathbf{r^{*}}) is the projection of 𝐫∗\mathbf{r^{*}} onto the plane defined by 𝐯𝐢\mathbf{v_{i}} (and 𝐧𝐢\mathbf{n_{i}}), and α\alpha controls interpolation between the flat and curved triangle. Finally, we may write our Phong SDF as ρ⁡(𝐫)=𝐫obj±​‖𝐫−𝐫ρ∗‖\rho(\mathbf{r})=\mathbf{r}^{\pm}_{\textrm{obj}}\|\mathbf{r}-\mathbf{r^{*}_{\uprho}}\|, with ∇ρ​(𝐫)=(𝐫−𝐫ρ∗)/‖ρ⁡(𝐫)‖{\nabla\rho}(\mathbf{r})=(\mathbf{r}-\mathbf{r^{*}_{\uprho}})/\|\rho(\mathbf{r})\|.

SDF dilation

In addition to Phong SDF smoothing, we follow the coarse-to-fine smoothing introduced in [2]. Specifically, we define the object surface ​n​o​t\emph{not} as the zero-level of the SDF ρ\rho, but as the radius r≥0r\geq 0 level-set, which yields a padded, rounded version of the surface. We still want the final grasp to respect the real object geometry, so we decrease rr to 00 on a linear schedule, gradually resolving the dilated SDF to the true surface as optimization continues.

III-C Position-based dynamics

We represent the hand by its vertices, 𝐩=FK​(𝐪𝐡)\mathbf{p}=\textrm{FK}(\mathbf{q_{h}}), whose positions are given by applying differentiable forward kinematics FK to the hand configuration 𝐪𝐡\mathbf{q_{h}}. Each hand vertex 𝐩𝐢\mathbf{p_{i}} imposes a non-penetration constraint from which we compute positional updates to the object orientation (we treat the hand as static). Let 𝐱\mathbf{x}, θ\theta and 𝐱˙\dot{\mathbf{x}}, θ˙\dot{\theta}, be the object position, orientation, and their time derivatives. We can express each hand point in terms of its location in the object local frame as 𝐫𝐢=R​(θ)−1​(𝐩𝐢−𝐱)\mathbf{r_{i}}=R(\theta)^{-1}(\mathbf{p_{i}}-\mathbf{x}), where R⁡(θ)R(\theta) is the object rotation matrix. The non-penetration constraint can then be written as C⁡(𝐩𝐢)=max⁡(0,−ρ⁡(𝐫𝐢))C(\mathbf{p_{i}})=\max(0,-\rho(\mathbf{r_{i}})), which computes penetration depth using the object Phong SDF. Given current values for 𝐱−,𝐱˙−,θ−,θ˙−\mathbf{x}^{-},\dot{\mathbf{x}}^{-},\theta^{-},\dot{\theta}^{-}, to perform an integration step, we first compute predicted values with a symplectic Euler update (see preliminaries in [58]), yielding 𝐱~,𝐱˙~,θ~,θ˙~\tilde{\mathbf{x}},\tilde{\dot{\mathbf{x}}},\tilde{\theta},\tilde{\dot{\theta}}. Next, we compute updates based on each constraint as:

[∇𝐱T∇θ]T=−𝐌−1𝐉CT[𝐉C𝐌−1𝐉CT]−1C(𝐩𝐢),\left[\nabla\mathbf{x}^{T}\nabla\theta\right]^{T}=-\mathbf{M}^{-1}\mathbf{J}_{C}^{T}\left[\mathbf{J}_{C}\mathbf{M}^{-1}\mathbf{J}_{C}^{T}\right]^{-1}C(\mathbf{p_{i}}), (1)

where 𝐌\mathbf{M} is the mass matrix and 𝐉C​(𝐱,θ)=(∂C∂𝐱​∂C∂θ)\mathbf{J}_{C}(\mathbf{x},\theta)=\left(\frac{\partial C}{\partial\mathbf{x}}\frac{\partial C}{\partial\theta}\right) is the constraint Jacobian. We perform a Gauss-Seidel step to update the predicted values for all constraints, yielding 𝐱+,θ+\mathbf{x}^{+},\theta^{+}, and set derivatives accordingly as 𝐱˙+=(𝐱+−𝐱−)/Δ​t\dot{\mathbf{x}}^{+}=(\mathbf{x}^{+}-\mathbf{x}^{-})/\Delta t and θ˙+=(θ+−θ−)/Δ​t\dot{\theta}^{+}=(\theta^{+}-\theta^{-})/\Delta t, where Δ​t\Delta t is the timestep length. We follow the Coulomb friction formulation from [58].

Refer to caption
Figure 3: Grasp metrics such as epsilon quality, GWS volume, and contact surface area depend on the threshold distance used for contact generation. Our method improves on GraspIt! [1] and MultiDex [50] baselines under all threshold choices. Results for the Barrett and Allegro hands (available on our website) follow a similar trend.

Leaky gradient

The non-penetration constraint shows that a hand vertex (say 𝐩𝐢\mathbf{p_{i}} and 𝐫𝐢\mathbf{r_{i}} in world and object frame) not in collision with the object (i.e., with ρ⁡(𝐫𝐢)>0\rho(\mathbf{r_{i}})>0) will have C⁡(𝐩𝐢)=0C(\mathbf{p_{i}})=0 and, from equation (1), will not contribute to the PBD update. A small perturbation of hand pose will not create contact (ρ⁡(𝐫𝐢+ϵ)>0\rho(\mathbf{r_{i}}+\epsilon)>0), so the vertex will not contribute to hand pose gradient. This makes it difficult to follow gradient to create new contacts. We address this with the leaky gradient introduced in [2]. Specifically, rather than using the correct gradient ∂C∂𝐩={∇ϕ​(𝐩)if ϕ⁡(p)<00otherwise\frac{\partial C}{\partial\mathbf{p}}=\begin{cases}\nabla\phi(\mathbf{p})&\textrm{if $\phi(p)<0$}\\ 0&\textrm{otherwise}\end{cases}, we use a biased gradient ∂C∂𝐩={∇ϕ​(𝐩)if ϕ⁡(𝐩)<0α∇ϕ(𝐩)otherwise\frac{\partial C}{\partial\mathbf{p}}=\begin{cases}\nabla\phi(\mathbf{p})&\textrm{if $\phi(\mathbf{p})<0$}\\ \alpha\nabla\phi(\mathbf{p})&\textrm{otherwise}\end{cases}, where α∈[0,1]\alpha\in[0,1] controls how much gradient leaks through. We set α=0.1\alpha=0.1 in our experiments.

IV Grasp’D-1M: Dexterous Grasp Dataset

Fast-Grasp’D enables an algorithmic pipeline for generating multi-finger grasps. Given object and gripper sets, we synthesize many grasps for each (gripper,object)(\textit{gripper},\textit{object}) pair with the object set in canonical pose. We call these base grasps. Next, we generate several scenes for each object by dropping the object (in simulation) on a table and letting it come to rest in a natural pose. We transfer base grasps to scenes by applying the object pose transform to the gripper pose, yielding a larger set of scene grasps. Finally, we render each scene from multiple viewpoints, yielding a set of training examples that can be used to train vision-based grasping.

IV-A Gradient-based Grasp Optimization

Computing the grasp metric

To measure the quality of a candidate grasp 𝐪𝐡\mathbf{q_{h}}, we test its ability to withstand forces applied to the object. Specifically, we set an initial object velocity 𝐱˙(0){\dot{\mathbf{x}}}^{(0)} and test whether contact with the static gripper can dampen it. The object is always initialized in canonical pose (𝐱(0),θ(0))(\mathbf{x}^{(0)},\theta^{(0)}). We simulate according to Section III-C and compute the object’s final (translational and angular) velocity (𝐱˙(T),θ˙(T))({\dot{\mathbf{x}}}^{(T)},\dot{\theta}^{(T)}). The more the velocity is dampened, the more stable we estimate the grasp to be. Of course, testing a single force is not sufficient and we perform a batch of MM simulations in parallel, each setting a different initial object velocity 𝐱˙m(0)\dot{\mathbf{x}}^{(0)}_{m}. In our experiments we use M=7M=7, setting positive and negative velocities along each axis as well as one simulation with 𝐱˙(0)=0\dot{\mathbf{x}}^{(0)}=0. We simulate for a single timestep, with Δ​t=0.001​s\Delta t=0.001s. Our stability loss is then defined as

ℒstable​(𝐪𝐡)=∑m=1M‖𝐱˙m(T)‖+‖θ˙m(T)‖M.\mathcal{L}_{\textrm{stable}}(\mathbf{q_{h}})=\sum_{m=1}^{M}\frac{\|\dot{\mathbf{x}}^{(T)}_{m}\|+\|\dot{\theta}^{(T)}_{m}\|}{M}. (2)

Additional losses

ℒrange\mathcal{L}_{\textrm{range}} encourages hand joints to be near the middle of their ranges. ℒlimit\mathcal{L}_{\textrm{limit}} penalizes hand joints outside of their range.

ℒrange​(𝐪𝐡)\displaystyle\mathcal{L}_{\textrm{range}}(\mathbf{q_{h}}) =‖𝐪𝐡−𝐪𝐡up+𝐪𝐡low2‖\displaystyle=\|\mathbf{q_{h}}-\frac{\mathbf{q_{h}}^{\textrm{up}}+\mathbf{q_{h}}^{\textrm{low}}}{2}\| (3)
ℒlimit​(𝐪𝐡)\displaystyle\mathcal{L}_{\textrm{limit}}(\mathbf{q_{h}}) =max⁡(𝐪𝐡−𝐪𝐡up,0)+max⁡(𝐪𝐡low−𝐪𝐡,0)\displaystyle=\max(\mathbf{q_{h}}-\mathbf{q_{h}}^{\textrm{up}},0)+\max(\mathbf{q_{h}}^{\textrm{low}}-\mathbf{q_{h}},0) (4)

Optimization

We sample hand initializations 𝐪𝐡\mathbf{q_{h}} with the approach-sampling procedure described in [2]. We optimize using simple gradient descent with a learning rate of 0.0010.001.

Refer to caption
Figure 4: Contact-rich grasps can be generated by our method which optimizes in the full DOF-space of the hand. The GraspIt! [1] planner mainly generates fingertip grasps. The baseline grasps exhibit fewer contacts that result in reduced stability compared to grasps synthesized by our method.
Objects Hand Dataset CA ↑\uparrow IV ↓\downarrow ϵ\epsilon ↑\uparrow Vol ↑\uparrow SD ↓\downarrow
Scale (Unit) cm2\text{cm}^{2} cm3\text{cm}^{3} cm
YCB Barrett DDGC [3] 4.644.64 2.732.73 0.100.10 0.260.26 2.742.74
GraspIt! [1] 7.187.18 0.54 0.130.13 0.460.46 2.102.10
MultiDex [50] 13.8213.82 5.555.55 0.180.18 1.381.38 1.24
Ours 55.71 4.704.70 0.23 5.09 1.401.40
Allegro GraspIt! 12.3712.37 1.80 0.150.15 1.801.80 2.012.01
MultiDex 21.1621.16 6.616.61 0.18 2.192.19 1.931.93
Ours 49.17 5.625.62 0.18 3.42 1.66
Shadow GraspIt! 20.7220.72 6.686.68 0.080.08 0.800.80 2.882.88
MultiDex 21.4721.47 6.706.70 0.170.17 1.901.90 2.602.60
Ours 58.60 6.34 0.18 3.42 2.42
EGAD Barrett DDGC 0.690.69 0.02 0.050.05 0.070.07 2.842.84
GraspIt! 10.9610.96 2.132.13 0.140.14 0.810.81 1.681.68
Ours 58.17 4.804.80 0.24 3.71 0.99
Allegro GraspIt! 14.3814.38 1.98 0.160.16 1.981.98 1.571.57
Ours 36.68 6.546.54 0.22 4.49 1.05
Shadow GraspIt! 28.9628.96 8.918.91 0.120.12 1.611.61 3.273.27
Ours 58.91 5.18 0.24 7.05 1.71
Table II: Dataset comparison. Our method is able to find more contact-rich, stable grasps compared to the GraspIt! [1] baseline and the training set of DDGC [3]. Specifically, we discover grasps with higher contact area (CA) and stability, as measured by epsilon metric (ϵ\epsilon), volume metric (Vol), and simulation displacement (SD). This results in somewhat higher interpenetration volume (IV), but maintains a similar ratio between intersection and contact area. All reported figures are top10 (ranked by epsilon metric).
Test Set Train Set CA ↑\uparrow IV ↓\downarrow ϵ\epsilon ↑\uparrow Vol ↑\uparrow SD ↓\downarrow
Scale (Unit) cm2\text{cm}^{2} cm3\text{cm}^{3} cm
EGAD Val. DDGC [3] 3.173.17 12.37 0.110.11 0.350.35 1.091.09
GraspIt! [1] 3.303.30 13.6213.62 0.150.15 0.710.71 1.481.48
Ours 5.02 13.0713.07 0.18 0.85 0.60
KIT DDGC 4.284.28 10.33 0.090.09 0.250.25 1.001.00
GraspIt! 4.314.31 13.0713.07 0.130.13 0.420.42 1.551.55
Ours 4.60 10.5810.58 0.18 0.81 0.86
EGAD+KIT DDGC 3.453.45 11.5411.54 0.110.11 0.400.40 1.011.01
GraspIt! 3.523.52 13.1313.13 0.140.14 0.640.64 1.581.58
Ours 4.70 11.14 0.20 1.04 0.56
Table III: Training vision-based grasping. Retraining the DDGC [3] network, which predicts Barrett hand grasps from RGBD and instance segmentation inputs, with data generated by our method results in predicted grasps with 30% more contact area (CA), 33% higher epsilon metric (ϵ\epsilon) and 35% lower simulated displacement (SD).

Dataset generation

We use the Omniverse Replicator to generate and render scenes as visual input for learning. Each scene has an object on a table. To generate the scene, we sample an object pose above the table and simulate dropping the object and letting it come to rest. The renders include RGB, depth, 2D and 3D object bounding boxes and a segmentation (separating the image into labelled regions for the table, object and background) in both mono and stereo. We generate training tuples by transferring base grasps to each scene. Specifically we apply the scene’s object pose transform to the base grasp and check for interpenetration with the table.

V Experiments

Datasets

Grasp’D-Base is our dataset of one million base grasps of canonically posed EGAD [59] and YCB [60] objects with the Barrett, Allegro, and Shadow hands. Our main dataset of multi-modal visual training examples, Grasp’D-1M, is generated by transferring these base grasps to randomized scenes and rendering as described in Section IV. In all experiments, we use the original DDGC [3] renders and scenes to match the original intended design parameters for a fair comparison. The dataset labels used in Tables II and III are explained below. DDGC refers to the Barrett hand dataset provided by [3]. GraspIt! refers to a set of baseline grasps for DDGC scenes generated with the GraspIt! [1] simulated annealing planner (for 70k steps for the Barrett and Allegro hands and 40k steps for the Shadow hand). Ours refers to a similar-sized set of grasps created by transferring grasps from Grasp’D-Base to the same DDGC scenes. MultiDex refers to the simulation filtered grasp dataset provided by [50] which we transfer to DDGC scenes in the same manner.

Metrics

Grasps (dataset and predictions) are evaluated with geometric metrics: (1) contact area (CA), (2) intersection volume (IV), (3) epsilon metric (ϵ\epsilon), (4) grasp wrench space volume metric (Vol), and (5) simulation displacement (SD). Notably, CA, ϵ\epsilon and Vol depend on the distance threshold used for contact generation. Previous works use varying thresholds (e.g., 9mm in [3] and 2mm in [61]). We plot these metrics for a wide range of thresholds (Figure 3) and show Fast-Grasp’D significantly outperforms baselines under all choices.

V-A Grasp’D-1M Evaluation: Grasp Quality Metrics

Figure 3 shows that Shadow hand grasps generated by our method strictly dominate the GraspIt! and MultiDex baselines in terms of epsilon quality, GWS volume, and contact surface area under all contact thresholds, across two object sets (YCB and EGAD). Results for the Barrett and Allegro hands (available on our website) follow a similar trend. Figure 4 shows examples grasps from our method and GraspIt!. Whereas GraspIt! mainly discovers grasps with fingertip contact, we find high-contact grasps that conform to object surface geometry. Table II shows additional statistics with a medium contact threshold of 5mm.

V-B RGBD Grasp Prediction with Grasp’D-1M

To confirm the generated data can in practice improve vision-based grasp pipelines, we retrain an existing network, DDGC [3], on data from our method or the GraspIt! baseline. For simplicity, we limit our evaluation to single-object scenes. We follow the training procedure described in [3] and find training converges after 3000 epochs. Table-III reports our results, which show training on our dataset results in predicted grasps with 30% more contact (CA), 33% higher epsilon metric (ϵ\epsilon), and 35% lower simulated displacement (SD).

V-C Computational Performance.

We achieve a roughly 10x speedup compared to the GraspIt! [1] simulated annealing planner and a 20x speedup compared to a previous differentiable grasp synthesis method [2]. The GraspIt! simulated annealing planner takes around 20s to generate a Barrett hand grasp. [2] takes about 5 minutes to generate a single grasp online or 20 seconds amortized over parallel generations in a batch. Our method can generate a contact-rich grasp of a YCB object in about 1s amortized, while online generation of a single grasp takes about 10s. Grasp’D and Fast-Grasp’D timings are reported with a batch size of 32 on an NVIDIA A100.

VI Conclusion

In this work, we have introduced a new method to synthesize multi-fingered grasps that leverages our differentiable grasping simulator to achieve improved stability and contact richness compared to commonly used baselines. Our experiments have demonstrated the benefits of our approach to an existing multi-finger robotic grasping pipeline that we trained on our generated grasps. With the release of a large-scale dataset of high-quality grasps synthesized through our method for various robotic hands, we aim to further advance the state of the art in multi-fingered robotic grasping.

VII Acknowledgements

The authors gratefully acknowledge the support of NSERC, Vector, CIFAR, UofT, Nvidia and Samsung.

References