From 71b922bf533ec5b2ceba1b4156beeb29e3e80bfd Mon Sep 17 00:00:00 2001 From: Dave Coleman Date: Thu, 26 Feb 2026 22:30:02 -0700 Subject: [PATCH] Add lab desk objects, adjust collision wall/tray positions, and clean up lab_sim Co-Authored-By: Claude Opus 4.6 --- .../control/picknik_ur.ros2_control.yaml | 11 +- src/lab_sim/description/keyboard-texture.png | 3 + src/lab_sim/description/laptop-screen.png | 3 + src/lab_sim/description/picknik_ur.xacro | 12 +- src/lab_sim/description/scene.xml | 1037 ++++++++++++++++- .../objectives/3_waypoint_pick_and_place.xml | 18 +- .../constrained_pick_and_place_subtree.xml | 327 ++++-- .../objectives/constrained_pick_place.xml | 53 - .../objectives/cycle_between_waypoints.xml | 2 +- .../objectives/move_flasks_to_burners.xml | 33 + ...tle.xml => pick_1_pill_bottle_with_ml.xml} | 14 +- .../pick_all_bottles_with_apriltags.xml | 571 +++++++++ .../test/objectives_integration_test.py | 45 +- src/lab_sim/waypoints/ur_waypoints.yaml | 622 ++-------- src/picknik_accessories | 2 +- 15 files changed, 2038 insertions(+), 715 deletions(-) create mode 100644 src/lab_sim/description/keyboard-texture.png create mode 100644 src/lab_sim/description/laptop-screen.png delete mode 100644 src/lab_sim/objectives/constrained_pick_place.xml create mode 100644 src/lab_sim/objectives/move_flasks_to_burners.xml rename src/lab_sim/objectives/{pick_1_pill_bottle.xml => pick_1_pill_bottle_with_ml.xml} (91%) create mode 100644 src/lab_sim/objectives/pick_all_bottles_with_apriltags.xml diff --git a/src/lab_sim/config/control/picknik_ur.ros2_control.yaml b/src/lab_sim/config/control/picknik_ur.ros2_control.yaml index 022396adb..4638d9666 100644 --- a/src/lab_sim/config/control/picknik_ur.ros2_control.yaml +++ b/src/lab_sim/config/control/picknik_ur.ros2_control.yaml @@ -64,18 +64,25 @@ joint_trajectory_controller: stopped_velocity_tolerance: 0.0 goal_time: 0.0 linear_rail_joint: + trajectory: 0.5 goal: 0.05 shoulder_pan_joint: + trajectory: 0.5 goal: 0.05 shoulder_lift_joint: + trajectory: 0.5 goal: 0.05 elbow_joint: + trajectory: 0.5 goal: 0.05 wrist_1_joint: + trajectory: 0.5 goal: 0.05 wrist_2_joint: + trajectory: 0.5 goal: 0.05 wrist_3_joint: + trajectory: 0.5 goal: 0.05 acceleration_limits: linear_rail_joint: 10.0 @@ -91,8 +98,8 @@ robotiq_gripper_controller: default: true joint: robotiq_85_left_knuckle_joint allow_stalling: true - stall_timeout: 0.05 - goal_tolerance: 0.02 + stall_timeout: 0.3 + goal_tolerance: 0.3 force_torque_sensor_broadcaster: ros__parameters: diff --git a/src/lab_sim/description/keyboard-texture.png b/src/lab_sim/description/keyboard-texture.png new file mode 100644 index 000000000..9e685eab3 --- /dev/null +++ b/src/lab_sim/description/keyboard-texture.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0b212c56658ff5e5936f82867413fb357322e432664609c6b496c190925d20c +size 170370 diff --git a/src/lab_sim/description/laptop-screen.png b/src/lab_sim/description/laptop-screen.png new file mode 100644 index 000000000..67982b9f1 --- /dev/null +++ b/src/lab_sim/description/laptop-screen.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4045f46ccec667d8c317cde63758d9ab826f8990ebcdee163ca10a0241d52b09 +size 215006 diff --git a/src/lab_sim/description/picknik_ur.xacro b/src/lab_sim/description/picknik_ur.xacro index fe73e3e84..98d1a4342 100644 --- a/src/lab_sim/description/picknik_ur.xacro +++ b/src/lab_sim/description/picknik_ur.xacro @@ -663,7 +663,7 @@ - + @@ -672,7 +672,7 @@ - + @@ -681,7 +681,7 @@ - + @@ -690,7 +690,7 @@ - + @@ -699,7 +699,7 @@ - + @@ -708,7 +708,7 @@ - + diff --git a/src/lab_sim/description/scene.xml b/src/lab_sim/description/scene.xml index 7d896c290..40616afdb 100644 --- a/src/lab_sim/description/scene.xml +++ b/src/lab_sim/description/scene.xml @@ -6,14 +6,96 @@ -