Skip to content

Size the CornellTech1 cart and desk from lab measurements - #121

Merged
kwesiRutledge merged 1 commit into
mainfrom
fix/cornell-tech1-lab-measurements
Dec 1, 2026
Merged

kwesiRutledge merged 1 commit into
mainfrom
fix/cornell-tech1-lab-measurements

Conversation

@kwesiRutledge

Copy link
Copy Markdown
Owner

CornellTech1's cart, desk, and monitors were estimated from a photo. This PR resizes them to tape measurements of the real Cornell Tech workcell. A follow-up will add corrections from touching known points with the real arm.

What changed

Before (estimated) After (measured)
Cart top (length × width) 1.50 × 0.75 m 1.54 × 0.645 m
Cart top above the floor 0.42 m 0.34 m
Arm base to cart's back edge / right end 0.065 m / 0.375 m 0.18 m / 0.2825 m
Desktop (x × y) 1.40 × 0.75 m 1.205 × 1.22 m
Desktop above the cart top 0.33 m 0.39 m
Arm base to desktop's front edge 0.10 m 0.14 m
Monitor screen tops above the desktop 0.47 m 0.505 m
Monitor centers (from the arm) x −0.705 / −0.485, y 0.425 x −0.81 / −0.49, y 0.61
Cardboard box 0.33 × 0.30 × 0.12 m 0.3225 × 0.21 × 0.08 m
Pedestal 0.40 × 0.55 × 0.60 m 0.385 × 0.5725 × 0.63 m
  • robot_cart.sdf, office_desk.sdf: every element is resized. The visual-only frame parts (rails, posts, gussets, casters, shelf) keep their distances from the nearest edge or the floor.
  • cornell_tech1.py: cart_height is now 0.34 and desk_height 0.73. The default pose_WorldCart and pose_WorldDesk change to match, and the docstring is updated. The default beaker keeps its world position (0, 0.35), now on the higher desktop.
  • readme.md lists what was measured and what is still estimated.
  • New test test_workcell_matches_measurements1 checks the cart top, desktop, and monitor screens against the measurements, and that the desk's legs clear the cart.

Worth knowing

  • Renamed geometry: the cart's back_strip is now mount_strip, since the arm's strip is no longer at the cart's back edge. Code that looks up that geometry by name needs the new name.
  • Desktop overhang: the desktop now overhangs the cart's back edge by 4 cm, 0.39 m above it, which is how the real workcell is laid out.
  • Not measured: the e-stop's and cardboard box's positions, how far the desk extends past the arm, the pedestal's position, the monitors' screen size, and the beaker. These keep their estimated positions.
  • Two heights disagree by 2 cm: the floor-to-desktop reading (0.71 m) and the floor-to-cart plus cart-to-desktop readings (0.73 m). The model uses 0.73 m, because the cart-to-desktop distance is what matters for collisions with the arm.

Testing

  • cornell_tech1_test.py: 12 tests pass, including the new one. The default start and goal still solve by IK and are collision-free for both arm variants.
  • watcher_options_test.py, scenario_contract_test.py, production_scenarios_test.py: 15 tests pass.
  • The cornell_tech1/suggested_use1 example plans and simulates a 33 s trajectory with meshcat_port_number=-1.
  • black --check is clean.

🤖 Generated with Claude Code

The cart, desk, and monitors were estimated from a photo. Tape measurements
of the real workcell put the cart 8 cm lower and 10.5 cm narrower, the arm
18 cm (not 6.5 cm) from the cart's back edge, and the desktop 6 cm higher
above the cart and 4 cm farther behind the arm.

Resize both SDF models and move CornellTech1's default cart and desk poses
and heights to match. The beaker keeps its world position, now on the
higher desktop. The cart's back strip is renamed mount_strip, since it is
no longer at the back. Parts that were not measured keep their estimated
positions; the models' readme lists which.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.19%. Comparing base (32cd63b) to head (75a5e85).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #121   +/-   ##
=======================================
  Coverage   88.19%   88.19%           
=======================================
  Files         216      216           
  Lines        8725     8725           
=======================================
  Hits         7695     7695           
  Misses       1030     1030           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kwesiRutledge
kwesiRutledge merged commit 37aab72 into main Dec 1, 2026
34 checks passed
@kwesiRutledge
kwesiRutledge deleted the fix/cornell-tech1-lab-measurements branch December 1, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants