Repository navigation
Conversation
Move the physical grasp benchmark into the consolidated extension package and align its CLI, bundled resources, tests and context links.
matafela
force-pushed
the
codex/physical-grasp-benchmark
branch
from
November 24, 2026 03:05
c6c60f5 to
938fc08
Compare
added 4 commits
November 25, 2026 11:16
…grids Accept a positive station count, place each batch on a square grid and leave spare cells empty. Use isolated supports, restore resting contacts between ranks and report continuous optional X/Y disturbance trials.
5 tasks done
added 6 commits
November 27, 2026 12:05
Use the affordance GraspValidator for labeling and benchmark trials. Share resting-pose restoration and trial execution across single-pair and grid runs, and retain the earlier public import. Advance the benchmark protocol to v7 for the updated physical evidence.
Capture the top-ranked physical grasp for each DexTrove object and gripper with one 64-pixel camera per station. Stream the shared-clock tiles into resumable page videos and expose a runnable 16-by-16 example.
matafela
marked this pull request as ready for review
December 1, 2026 06:39
# Conflicts: # agent_context/topics/motion-planning/motion-planning.md
Confidence Score: 5/5
[Medium impact] The reviewed changes appear safe to merge. SummaryAdds physical grasp validation and benchmark commands for ranked poses across objects and grippers.
|
5 tasks done
added 2 commits
December 3, 2026 15:03
Track candidate generation, collision filtering and physical validation by object category. Evaluate up to 256 ranked poses per object and gripper pair by default.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Expose main’s physical grasp validator through the benchmark CLI and evaluate ranked grasp poses across rigid objects and parallel-jaw grippers. The existing CoffeeCup benchmark measures candidate generation and selection. These new commands measure whether a selected pose can pick up the object, keep it off the table and retain it during transport.
Run the grasp benchmark
Run from the repository root with CUDA and the simulation dependencies active (
conda activate py312_bkon the benchmark machine). The DexTrove commands use the local download directory containingcategories/. Replace that path if the dataset is stored elsewhere.1. Run the desktop subset
Evaluate the 24 tabletop objects with all seven grippers, one gripper–object pair at a time. A full batch tests the first 512 ranked grasp poses simultaneously in 512 independent arenas, with one candidate per arena.
For generated candidates, the runner settles the object and samples its mesh in one arena, then sizes the validation scene to the number of pending poses. A pair with 17 pending poses uses 17 arenas. Zero candidates skip physical validation. To lower the memory budget, set
--num-envs N. This keeps the 512-candidate budget and reuses the smaller scene across batches. Any padding in its final batch is excluded from counts and scoring.2. Run the full downloaded DexTrove benchmark
Evaluate every compatible downloaded object with each of the seven grippers using the same candidate and arena limits. Each command writes
report.mdandreport.jsonunder its output directory.Design
Inputs and execution
validatetakes a single dynamic rigid-body configuration, a catalog gripper and a ranked JSONL file. Each candidate is a 4×4 object-from-TCP transform in metres. Validation executes every supplied pose.runcrosses objects, grippers, placements and seeds from a suite. For each case it freezes up to 512 ranked object-local poses from the antipodal generator or an external ranked file. The visual-check preset still plays the top-ranked candidate for each selected pair.open_qposandclose_qposmaps insuite.yaml, including mimic followers. The collision sampler and the physical approach share the open command. Per-handstiffnessandmax_efforttune the finger drives. The bundled suite sets prismatic drives to 200 N/m and 30 N, and revolute drives to 200 N·m/rad and 30 N·m.collision_threshold: 0.005m in both the full suite and the visual preset. Before ranking, it rejects a pose if any open-hand sample lies at or within 5 mm of the object's convex hulls or less than 5 mm above the inferred support plane. External JSONL candidates go directly to physical validation.GraspValidatormounting, trajectory and scoring code. It runs on CUDA with the default PhysX backend or Newton with two-way DexUni coupling. The wrist orientation is set at reset and three translation joints drive the hand during the trial.--resumetests only pending ranks and reuses completed observations.Physical protocol
The open gripper approaches from 8 cm away, closes over 0.40 s, holds the closing command for the configured dwell and lifts the object 10 cm. The bundled suite uses 60 additional steps (0.60 s).
Each candidate executes one continuous trial. With
enable_disturbance: true, the lifted gripper moves 3 cm along world +X, returns, then moves 3 cm along world +Y and returns. Each leg takes 0.30 s. The gripper then holds for 3 s. Setting the option to false starts the hold immediately after the lift. Success requires clearance above the table, retention throughout the required phases and bilateral terminal pad contact.Default GPU uses a stationary kinematic table so the contact query can identify its actor. Both backends use a positive measured impulse where available. For DexUni geometry-only rows, a finite, nonpositive signed separation establishes contact. Protocol v8 isolates the 512-pose benchmark from older ten-pose and shared-scene runs. Checkpoint identities include the candidate budget, arena cap, physics settings and asset fingerprints. Use separate output directories to retain both aggregate reports.
Benchmark reports
The two scoring runs write the following artifacts under
--output.report.md/report.jsontrials/v8/<case-hash>.parquet<case-hash>.jsonThe full suite reports the total number of successful grasps divided by all actual trials from complete cases, alongside Success@1, Hit@5, Hit@10 and Precision@10. A candidate passes by completing the lift, optional disturbance and final hold. Precision@10 counts empty candidate slots as failures. The JSON includes retention at 0.5, 1 and 3 s, drop timing, slip and rotation diagnostics.
Scores average placements and seeds within each object–gripper pair, then weight pairs equally. A completed case with no candidates scores zero. Missing observations suppress the affected algorithm’s scores for that group. With at least two object instances and complete data, the JSON includes 95% object-bootstrap intervals and paired differences for comparisons between algorithms. Usage and suite configuration
Research basis
GraspGen-X and AdaGrasp motivate evaluating grasp generation across grippers. Fixed-budget physical precision can be computed for user assets without collecting a dense reference set of successful poses. GraspGen-X · AdaGrasp · GraspNet ranking protocol
IPC-GraspSim motivates clearance and terminal jaw contact; MultiGripperGrasp motivates a timed hold and fall-off time. ACRONYM and the grasp-planning benchmarking protocol motivate disturbance testing and recording relative motion. The two horizontal trajectories and their intensity are choices made for this suite. IPC-GraspSim · MultiGripperGrasp · ACRONYM · Benchmarking Protocol for Grasp Planning Algorithms
Validation
With Robotiq 2F-85 and the same book, seed and 5,711 candidate poses, the 5 mm clearance reduced the qualifying set from 242 to 201. The highest-ranked pose changed from 1.30 mm to 5.31 mm of clearance.
Ran the desktop book
decor_book_b02with FrankaPandaHand and DHPGI14080. Each generated and tested 512 distinct ranks in a single 512-arena batch. The two cases recorded 1,024 physical trials and 1,023 successful grasps. Checked the ordered ranks in the checkpoints and Parquet files.A short external candidate set used exactly three arenas for three poses. An empty set completed with zero validation arenas. A partial checkpoint with two outstanding ranks used two arenas and preserved all 510 prior results. The full DexTrove preflight found 910 eligible objects out of 1,115, yielding 6,370 planned pairs.
After extracting the video example, all 67 focused benchmark, validator and labeling tests passed in
py312_bk, including the 512-arena case and native PhysX and Newton checks. Public API documentation coverage (5,081/5,081) and the project-context check passed.Type of change
Checklist
black .with Black 26.10.1.