Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,17 @@ class CornellTech1(OfflineDynamicMotionPlanningProduction):
The scene contains:

- The Kinova Gen3 arm (with a Robotiq 2F-85 gripper, by default), whose base
is at the world origin, mounted on the back strip of the cart
is at the world origin, mounted on a strip of the cart 0.18 m from its back
edge and 0.2825 m from its right end
- The robot cart (aluminum extrusion frame), whose top surface is at z = 0,
along with an emergency stop and a cardboard box sitting on it
- An office desk with two monitors behind the cart
- An office desk with two monitors behind the cart, whose desktop is 0.39 m
above the cart's top and overhangs the cart's back edge
- A beaker (free body) sitting on the desk, right behind the arm
- The floor, 0.42 m below the top of the cart
- The floor, 0.34 m below the top of the cart

The cart, desk, and monitors are sized from tape measurements of the real
workcell (see ``robots/models/cornell_tech/readme.md``).

The robot must move its end effector from a start pose above the front-right
corner of the cart to a goal pose above the beaker on the desk behind it, using
Expand Down Expand Up @@ -92,7 +97,8 @@ class CornellTech1(OfflineDynamicMotionPlanningProduction):

pose_WorldCart: RigidTransform, optional
The pose of the cart's frame (center of its top surface) in the world frame,
by default None (the cart is placed so that the arm sits on its back-right corner).
by default None (the cart is placed so that the arm sits near its back-right
corner, as on the real cart).

pose_WorldDesk: RigidTransform, optional
The pose of the desk's frame (on the floor, below the center of the desktop)
Expand Down Expand Up @@ -139,10 +145,10 @@ class CornellTech1(OfflineDynamicMotionPlanningProduction):
"""

#: Height of the top of the cart above the floor (m)
cart_height: float = 0.42
cart_height: float = 0.34

#: Height of the top of the desk above the floor (m)
desk_height: float = 0.75
desk_height: float = 0.73

#: Number of initial guesses that the inverse kinematics solver tries
#: (the first is the plant's default configuration, the rest are random)
Expand Down Expand Up @@ -255,15 +261,16 @@ def initialize_pose_data(self):
- pose_WorldDesk
- pose_WorldBeaker
"""
# The arm sits on the cart's back strip, 0.375 m from its right end
# (the cart frame is at the center of the cart's top surface)
# The arm sits 0.2825 m from the cart's right end and 0.18 m from its back
# edge (the cart frame is at the center of the cart's 1.54 m x 0.645 m top)
if self.pose_WorldCart is None:
self.pose_WorldCart = RigidTransform(np.array([-0.375, -0.31, 0.0]))
self.pose_WorldCart = RigidTransform(np.array([-0.4875, -0.1425, 0.0]))

# The desk stands on the floor just behind the cart
# The desk stands on the floor behind the cart: its desktop's front edge is
# 0.14 m behind the arm, and its right end 0.15 m past the arm
if self.pose_WorldDesk is None:
self.pose_WorldDesk = RigidTransform(
np.array([-0.55, 0.475, -self.cart_height])
np.array([-0.4525, 0.75, -self.cart_height])
)

# The beaker sits on the desk, right behind the arm
Expand All @@ -272,7 +279,7 @@ def initialize_pose_data(self):
if self.pose_WorldBeaker is None:
pose_DeskBeaker = RigidTransform(
RollPitchYaw(np.pi / 2.0, 0.0, 0.0),
np.array([0.55, -0.125, self.desk_height + 0.012]),
np.array([0.4525, -0.4, self.desk_height + 0.012]),
)
self.pose_WorldBeaker = self.pose_WorldDesk.multiply(pose_DeskBeaker)

Expand Down
73 changes: 37 additions & 36 deletions src/brom_drake/robots/models/cornell_tech/office_desk.sdf
Original file line number Diff line number Diff line change
@@ -1,100 +1,101 @@
<?xml version="1.0"?>
<!--
Office desk with two monitors and a pedestal, standing behind the robot cart in
the Cornell Tech workcell. Frame origin: on the floor, below the center of the
desktop. Generated from primitives.
the Cornell Tech workcell, sized from tape measurements of the real desk.
Frame origin: on the floor, below the center of the desktop. Generated from
primitives.
-->
<sdf version="1.7">
<model name="cornell_tech_desk">
<link name="desk_body">
<visual name="desktop">
<pose>0 0 0.735 0 0 0</pose>
<geometry><box><size>1.4 0.75 0.03</size></box></geometry>
<pose>0 0 0.715 0 0 0</pose>
<geometry><box><size>1.205 1.22 0.03</size></box></geometry>
<material><diffuse>0.92 0.92 0.9 1</diffuse></material>
</visual>
<collision name="desktop">
<pose>0 0 0.735 0 0 0</pose>
<geometry><box><size>1.4 0.75 0.03</size></box></geometry>
<pose>0 0 0.715 0 0 0</pose>
<geometry><box><size>1.205 1.22 0.03</size></box></geometry>
</collision>
<visual name="leg_0">
<pose>-0.65 0 0.36 0 0 0</pose>
<geometry><box><size>0.05 0.65 0.72</size></box></geometry>
<pose>-0.5775 0 0.35 0 0 0</pose>
<geometry><box><size>0.05 1.12 0.7</size></box></geometry>
<material><diffuse>0.6 0.62 0.65 1</diffuse></material>
</visual>
<collision name="leg_0">
<pose>-0.65 0 0.36 0 0 0</pose>
<geometry><box><size>0.05 0.65 0.72</size></box></geometry>
<pose>-0.5775 0 0.35 0 0 0</pose>
<geometry><box><size>0.05 1.12 0.7</size></box></geometry>
</collision>
<visual name="leg_1">
<pose>0 0 0.36 0 0 0</pose>
<geometry><box><size>0.05 0.65 0.72</size></box></geometry>
<pose>0 0 0.35 0 0 0</pose>
<geometry><box><size>0.05 1.12 0.7</size></box></geometry>
<material><diffuse>0.6 0.62 0.65 1</diffuse></material>
</visual>
<collision name="leg_1">
<pose>0 0 0.36 0 0 0</pose>
<geometry><box><size>0.05 0.65 0.72</size></box></geometry>
<pose>0 0 0.35 0 0 0</pose>
<geometry><box><size>0.05 1.12 0.7</size></box></geometry>
</collision>
<visual name="leg_2">
<pose>0.65 0 0.36 0 0 0</pose>
<geometry><box><size>0.05 0.65 0.72</size></box></geometry>
<pose>0.5775 0 0.35 0 0 0</pose>
<geometry><box><size>0.05 1.12 0.7</size></box></geometry>
<material><diffuse>0.6 0.62 0.65 1</diffuse></material>
</visual>
<collision name="leg_2">
<pose>0.65 0 0.36 0 0 0</pose>
<geometry><box><size>0.05 0.65 0.72</size></box></geometry>
<pose>0.5775 0 0.35 0 0 0</pose>
<geometry><box><size>0.05 1.12 0.7</size></box></geometry>
</collision>
<visual name="pedestal">
<pose>-0.3 0 0.3 0 0 0</pose>
<geometry><box><size>0.4 0.55 0.6</size></box></geometry>
<pose>-0.3975 0 0.315 0 0 0</pose>
<geometry><box><size>0.385 0.5725 0.63</size></box></geometry>
<material><diffuse>0.92 0.92 0.9 1</diffuse></material>
</visual>
<collision name="pedestal">
<pose>-0.3 0 0.3 0 0 0</pose>
<geometry><box><size>0.4 0.55 0.6</size></box></geometry>
<pose>-0.3975 0 0.315 0 0 0</pose>
<geometry><box><size>0.385 0.5725 0.63</size></box></geometry>
</collision>
<visual name="monitor_0_screen">
<pose>-0.155 -0.05 1.05 0 0 0</pose>
<pose>-0.3575 -0.14 1.065 0 0 0</pose>
<geometry><box><size>0.03 0.55 0.34</size></box></geometry>
<material><diffuse>0.08 0.08 0.08 1</diffuse></material>
</visual>
<collision name="monitor_0_screen">
<pose>-0.155 -0.05 1.05 0 0 0</pose>
<pose>-0.3575 -0.14 1.065 0 0 0</pose>
<geometry><box><size>0.03 0.55 0.34</size></box></geometry>
</collision>
<visual name="monitor_0_pole">
<pose>-0.115 -0.05 0.85 0 0 0</pose>
<geometry><box><size>0.04 0.04 0.2</size></box></geometry>
<pose>-0.3175 -0.14 0.8125 0 0 0</pose>
<geometry><box><size>0.04 0.04 0.165</size></box></geometry>
<material><diffuse>0.6 0.62 0.65 1</diffuse></material>
</visual>
<collision name="monitor_0_pole">
<pose>-0.115 -0.05 0.85 0 0 0</pose>
<geometry><box><size>0.04 0.04 0.2</size></box></geometry>
<pose>-0.3175 -0.14 0.8125 0 0 0</pose>
<geometry><box><size>0.04 0.04 0.165</size></box></geometry>
</collision>
<visual name="monitor_0_foot">
<pose>-0.115 -0.05 0.755 0 0 0</pose>
<pose>-0.3175 -0.14 0.735 0 0 0</pose>
<geometry><box><size>0.18 0.22 0.01</size></box></geometry>
<material><diffuse>0.6 0.62 0.65 1</diffuse></material>
</visual>
<visual name="monitor_1_screen">
<pose>0.065 -0.05 1.05 0 0 0</pose>
<pose>-0.0375 -0.14 1.065 0 0 0</pose>
<geometry><box><size>0.03 0.55 0.34</size></box></geometry>
<material><diffuse>0.08 0.08 0.08 1</diffuse></material>
</visual>
<collision name="monitor_1_screen">
<pose>0.065 -0.05 1.05 0 0 0</pose>
<pose>-0.0375 -0.14 1.065 0 0 0</pose>
<geometry><box><size>0.03 0.55 0.34</size></box></geometry>
</collision>
<visual name="monitor_1_pole">
<pose>0.105 -0.05 0.85 0 0 0</pose>
<geometry><box><size>0.04 0.04 0.2</size></box></geometry>
<pose>0.0025 -0.14 0.8125 0 0 0</pose>
<geometry><box><size>0.04 0.04 0.165</size></box></geometry>
<material><diffuse>0.6 0.62 0.65 1</diffuse></material>
</visual>
<collision name="monitor_1_pole">
<pose>0.105 -0.05 0.85 0 0 0</pose>
<geometry><box><size>0.04 0.04 0.2</size></box></geometry>
<pose>0.0025 -0.14 0.8125 0 0 0</pose>
<geometry><box><size>0.04 0.04 0.165</size></box></geometry>
</collision>
<visual name="monitor_1_foot">
<pose>0.105 -0.05 0.755 0 0 0</pose>
<pose>0.0025 -0.14 0.735 0 0 0</pose>
<geometry><box><size>0.18 0.22 0.01</size></box></geometry>
<material><diffuse>0.6 0.62 0.65 1</diffuse></material>
</visual>
Expand Down
31 changes: 27 additions & 4 deletions src/brom_drake/robots/models/cornell_tech/readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
# Cornell Tech workcell

Simple models of the robot workcell used by the `CornellTech1` production.
They are built from boxes and cylinders, with dimensions estimated from a photo of the
real workcell (they are not measured).
They are built from boxes and cylinders. The main dimensions were measured with a tape
measure in the real workcell; the rest are estimated from a photo.

- `robot_cart.sdf`: a mobile cart made of aluminum extrusions (1.50 m x 0.75 m, top
surface 0.42 m above the floor), with an emergency stop on the rails at the back and a
- `robot_cart.sdf`: a mobile cart made of aluminum extrusions (1.54 m x 0.645 m, top
surface 0.34 m above the floor), with an emergency stop in line with the arm and a
cardboard box at the front-left. The frame `cart_body` is at the center of the cart's
top surface; +x points along the cart's length and +y toward the back.
- `office_desk.sdf`: the desk behind the cart, with two monitors and a pedestal. The frame
`desk_body` is on the floor, below the center of the desktop; +y points away from the cart.

Both models only have one (static) link each and should be welded to the world.

## Measurements

In the world frame of `CornellTech1`: the origin is the center of the arm's base on the
cart's top, +x runs along the cart toward the arm, +y points toward the desk, and +z up.

| Measured | Value |
| --- | --- |
| Cart top (length x width), height above the floor | 1.54 m x 0.645 m, 0.34 m |
| Arm base to the cart's right (+x) end, back (+y) edge, front edge | 0.2825 m, 0.18 m, 0.465 m |
| E-stop button top above the cart top | 0.10 m |
| Cardboard box (x, y, z) | 0.3225 m x 0.21 m x 0.08 m |
| Desktop (x, y), height above the cart top | 1.205 m x 1.22 m, 0.39 m |
| Arm base to the desktop's front edge (+y) | 0.14 m |
| Pedestal (x, y, z) | 0.385 m x 0.5725 m x 0.63 m |
| Monitor screen tops above the desktop | 0.505 m |
| Monitor centers (-x, +y from the arm base) | 0.81 m and 0.49 m; 0.61 m |

Not measured (estimated): the e-stop's and cardboard box's positions, how far the desk's
right end extends past the arm (0.15 m), the pedestal's position, the monitors' screen
size, and the beaker's position. The desktop's height above the floor measured 0.71 m,
2 cm less than the floor-to-cart and cart-to-desktop measurements give; the model uses
the latter, which matter for collisions with the arm.
Loading
Loading