536 debug: N052 sawyer step table + Pink log + arm-lock test
Browse files- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/README.md +33 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/armlock_close_lift_per_tick.txt +50 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/armlock_s101_lock.log +4 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/armlock_s101_report.json +1044 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/armlock_s101_take_item_ticks.csv +0 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/csvlook.py +11 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pink_task_space_actions_lock.py +1175 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pink_task_space_actions_log.py +1159 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinkana.py +56 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinkj.py +22 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinklog_close_per_tick.txt +64 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinklog_per_physics_step_2926_2928.txt +33 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinklog_s101_pink.log.gz +3 -0
- debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinklog_s101_take_item_ticks.csv +0 -0
- debug/536/n052_sawyer/step_2026-11-09/README.md +13 -0
- debug/536/n052_sawyer/step_2026-11-09/closeup_s101_grasp_slow4x.mp4 +3 -0
- debug/536/n052_sawyer/step_2026-11-09/closeup_s101_run.log +672 -0
- debug/536/n052_sawyer/step_2026-11-09/closeup_s101_take_item_ticks.csv +0 -0
- debug/536/n052_sawyer/step_2026-11-09/step_table_s101.txt +18 -0
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# N052 sawyer_umi seed 101 on 536 (L40S): Pink IK log and an arm-lock test
|
| 2 |
+
|
| 3 |
+
Written by @nova (536 collector), 2026-11-09 20:58 CST. This follows `debug/536/n052_sawyer/` and `step_2026-11-09/`.
|
| 4 |
+
|
| 5 |
+
## Summary
|
| 6 |
+
- **The IK input is correct.** For all 20 `take_item:close` ticks, the pose given to Pink stays fixed at the `take_item:down` end pose (-0.1121, 1.1000, 0.7341; quat -0.5, 0.5, -0.5, -0.5). The pose actions are NaN, and the NaN fallback fills them with the last valid pose. The base dummy joints do not move.
|
| 7 |
+
- **The IK output points the right way, but it cannot hold the arm.** On every physics step, `sol` is the measured `q` plus one step back toward the target. Joint velocity limit × 5 ms caps that step: about 0.0098 rad (right_j2, 1.957 rad/s) and 0.0227 rad (right_j6). Each step, the measured `q` is first pushed away, and the next solve starts again from the pushed `q`. The target therefore travels with the arm: over 15 ticks the hand moves +0.40 m in y (toward the base) and -0.05 m in z. See `pinklog_per_physics_step_2926_2928.txt`.
|
| 8 |
+
- **The arm-lock test shows that IK is not the source of the force.** In `pink_task_space_actions_lock.py` (`MMB_ARM_LOCK`), the arm joint targets are frozen while the pose input is all-NaN (`armlock_s101_lock.log`: locked for the whole close). The hand is still dragged +0.33 m in y and -0.08 m in z. Result: `item_dropped` during lift (`armlock_s101_report.json`).
|
| 9 |
+
- **What pushes is the red die.** See `armlock_close_lift_per_tick.txt`:
|
| 10 |
+
- For the first ~4 close ticks, the fingers close symmetrically (0.0208 → 0.0147).
|
| 11 |
+
- Then the left finger stops and is driven back to its open stop (0.0208). The right finger keeps closing to ~0.
|
| 12 |
+
- The die is ejected in +y at ~1.4 m/s (y 1.10 → 1.60 in 0.36 s), faster than the hand.
|
| 13 |
+
- The die presses on the left finger at its hard stop, and that drags the whole hand.
|
| 14 |
+
- The finger drives are at their 20 N effort limit, so the push looks like a contact-solver depenetration of the die squeezed between the fingers, not a commanded force.
|
| 15 |
+
- **Lead to check on the build machine.** On 536, PhysX logs this for both dice:
|
| 16 |
+
|
| 17 |
+
`PhysicsUSD: Parse collision - triangle mesh collision (approximation None/MeshSimplification) cannot be a part of a dynamic body, falling back to convexHull approximation: /World/envs/env_0/dynamic/item_red/item_red_1`
|
| 18 |
+
|
| 19 |
+
Does the build machine's sawyer s101 log show the same line? If its dice collide with a different approximation (asset or Isaac/PhysX version), that would explain why the same code grasps there and not here.
|
| 20 |
+
|
| 21 |
+
## Files
|
| 22 |
+
| file | content |
|
| 23 |
+
|---|---|
|
| 24 |
+
| `pink_task_space_actions_log.py` | Pink action term with `MMB_PINK_LOG`: `IN` = raw/filled pose per `process_actions`, `OUT` = measured q and IK solution per solve |
|
| 25 |
+
| `pink_task_space_actions_lock.py` | the same, plus `MMB_ARM_LOCK`: while the pose input is all-NaN, skip the IK solve and keep the cached joint targets |
|
| 26 |
+
| `pinklog_s101_pink.log.gz`, `pinklog_s101_take_item_ticks.csv` | Pink log run (no lock); the tick CSV uses the build machine's recorder columns |
|
| 27 |
+
| `pinklog_close_per_tick.txt` | per tick 2905–2960: IN pose, eef, base, max\|sol−q\|, per-joint sol change (output of `pinkana.py`; OUT index = 4·tick − 1907) |
|
| 28 |
+
| `pinklog_per_physics_step_2926_2928.txt` | q and sol for every physics step of 3 close ticks (`pinkj.py`) |
|
| 29 |
+
| `armlock_s101_*` | arm-lock run: tick CSV, lock log, report |
|
| 30 |
+
| `armlock_close_lift_per_tick.txt` | eef, die, weigher pads, finger q/tau per tick 2925–2973 (`csvlook.py`) |
|
| 31 |
+
|
| 32 |
+
## Run
|
| 33 |
+
mobile-ready b3820fd82 node-local copy, Apptainer `xc.sif` (Isaac Sim 5.1), physics on CPU. `MEMORY_ROBOT=sawyer_umi TestMemoryN052 --level easy --seed 101 --headless --set 'env.camera={}' --set collect.record.save_in_video=false --set env.sim.contact_reports=true --spawn-jitter 0.3 --episodes 1 --max-steps 20000`, with `memory_runner_patched.py` and `n052_tick_csv.py` from `debug/536/n052_build_s101/`. The two runs differ only in the Pink action file.
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/armlock_close_lift_per_tick.txt
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
finger cols: ['q_right_gripper_l_finger_joint', 'tau_right_gripper_l_finger_joint', 'q_right_gripper_r_finger_joint', 'tau_right_gripper_r_finger_joint']
|
| 2 |
+
2925 tem:down:0 eef_x=-0.1117 eef_y=1.1009 eef_z=0.7521 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=0.0107 q_r_finger=-0.0208 tau_r_finger=0.0105
|
| 3 |
+
2926 tem:down:0 eef_x=-0.1117 eef_y=1.1009 eef_z=0.7506 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=0.0108 q_r_finger=-0.0208 tau_r_finger=0.0106
|
| 4 |
+
2927 tem:down:0 eef_x=-0.1118 eef_y=1.1008 eef_z=0.7491 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=0.0110 q_r_finger=-0.0208 tau_r_finger=0.0107
|
| 5 |
+
2928 tem:down:0 eef_x=-0.1118 eef_y=1.1007 eef_z=0.7476 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=0.0111 q_r_finger=-0.0208 tau_r_finger=0.0109
|
| 6 |
+
2929 tem:down:0 eef_x=-0.1118 eef_y=1.1006 eef_z=0.7461 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=0.0112 q_r_finger=-0.0208 tau_r_finger=0.0110
|
| 7 |
+
2930 tem:down:0 eef_x=-0.1118 eef_y=1.1006 eef_z=0.7446 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=0.0113 q_r_finger=-0.0208 tau_r_finger=0.0111
|
| 8 |
+
2931 tem:down:0 eef_x=-0.1119 eef_y=1.1005 eef_z=0.7431 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=0.0114 q_r_finger=-0.0208 tau_r_finger=0.0112
|
| 9 |
+
2932 tem:down:0 eef_x=-0.1119 eef_y=1.1004 eef_z=0.7416 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=0.0116 q_r_finger=-0.0208 tau_r_finger=0.0114
|
| 10 |
+
2933 tem:down:0 eef_x=-0.1119 eef_y=1.1004 eef_z=0.7402 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=0.0006 q_r_finger=-0.0208 tau_r_finger=-0.0001
|
| 11 |
+
2934 eef_x=-0.1119 eef_y=1.1003 eef_z=0.7388 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-0.0063 q_r_finger=-0.0208 tau_r_finger=-0.0001
|
| 12 |
+
2935 item:close eef_x=-0.1120 eef_y=1.1003 eef_z=0.7376 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0188 tau_l_finger=-20.0000 q_r_finger=-0.0188 tau_r_finger=20.0000
|
| 13 |
+
2936 item:close eef_x=-0.1121 eef_y=1.1003 eef_z=0.7367 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0168 tau_l_finger=-20.0000 q_r_finger=-0.0168 tau_r_finger=20.0000
|
| 14 |
+
2937 item:close eef_x=-0.1121 eef_y=1.1003 eef_z=0.7360 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.4976 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0148 tau_l_finger=-20.0000 q_r_finger=-0.0148 tau_r_finger=20.0000
|
| 15 |
+
2938 item:close eef_x=-0.1122 eef_y=1.1002 eef_z=0.7356 item_red_x=-0.1200 item_red_y=1.1016 item_red_z=0.4974 weigher_pad0=-0.0025 weigher_pad1=-0.0039 q_l_finger=0.0130 tau_l_finger=-20.0000 q_r_finger=-0.0129 tau_r_finger=20.0000
|
| 16 |
+
2939 item:close eef_x=-0.1133 eef_y=1.1029 eef_z=0.7345 item_red_x=-0.1213 item_red_y=1.1082 item_red_z=0.4963 weigher_pad0=-0.0036 weigher_pad1=-0.0039 q_l_finger=0.0147 tau_l_finger=-20.0000 q_r_finger=-0.0111 tau_r_finger=20.0000
|
| 17 |
+
2940 item:close eef_x=-0.1159 eef_y=1.1069 eef_z=0.7326 item_red_x=-0.1239 item_red_y=1.1168 item_red_z=0.4946 weigher_pad0=-0.0054 weigher_pad1=-0.0039 q_l_finger=0.0165 tau_l_finger=-20.0000 q_r_finger=-0.0093 tau_r_finger=20.0000
|
| 18 |
+
2941 item:close eef_x=-0.1193 eef_y=1.1108 eef_z=0.7308 item_red_x=-0.1273 item_red_y=1.1248 item_red_z=0.4930 weigher_pad0=-0.0071 weigher_pad1=-0.0039 q_l_finger=0.0182 tau_l_finger=-20.0000 q_r_finger=-0.0076 tau_r_finger=20.0000
|
| 19 |
+
2942 item:close eef_x=-0.1232 eef_y=1.1141 eef_z=0.7292 item_red_x=-0.1311 item_red_y=1.1319 item_red_z=0.4915 weigher_pad0=-0.0087 weigher_pad1=-0.0039 q_l_finger=0.0200 tau_l_finger=-20.0000 q_r_finger=-0.0058 tau_r_finger=20.0000
|
| 20 |
+
2943 item:close eef_x=-0.1274 eef_y=1.1184 eef_z=0.7273 item_red_x=-0.1352 item_red_y=1.1402 item_red_z=0.4899 weigher_pad0=-0.0102 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0043 tau_r_finger=20.0000
|
| 21 |
+
2944 item:close eef_x=-0.1342 eef_y=1.1335 eef_z=0.7194 item_red_x=-0.1404 item_red_y=1.1675 item_red_z=0.4833 weigher_pad0=-0.0119 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0035 tau_r_finger=20.0000
|
| 22 |
+
2945 item:close eef_x=-0.1452 eef_y=1.1583 eef_z=0.7049 item_red_x=-0.1498 item_red_y=1.2106 item_red_z=0.4721 weigher_pad0=-0.0091 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0031 tau_r_finger=20.0000
|
| 23 |
+
2946 item:close eef_x=-0.1618 eef_y=1.1901 eef_z=0.6872 item_red_x=-0.1682 item_red_y=1.2649 item_red_z=0.4607 weigher_pad0=-0.0071 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0029 tau_r_finger=20.0000
|
| 24 |
+
2947 item:close eef_x=-0.1785 eef_y=1.2239 eef_z=0.6728 item_red_x=-0.1857 item_red_y=1.3193 item_red_z=0.4542 weigher_pad0=-0.0056 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0029 tau_r_finger=20.0000
|
| 25 |
+
2948 item:close eef_x=-0.1936 eef_y=1.2588 eef_z=0.6633 item_red_x=-0.2003 item_red_y=1.3724 item_red_z=0.4536 weigher_pad0=-0.0045 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0029 tau_r_finger=20.0000
|
| 26 |
+
2949 item:close eef_x=-0.2057 eef_y=1.2941 eef_z=0.6587 item_red_x=-0.2112 item_red_y=1.4235 item_red_z=0.4582 weigher_pad0=-0.0037 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0029 tau_r_finger=20.0000
|
| 27 |
+
2950 item:close eef_x=-0.2146 eef_y=1.3293 eef_z=0.6582 item_red_x=-0.2180 item_red_y=1.4722 item_red_z=0.4672 weigher_pad0=-0.0031 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0029 tau_r_finger=20.0000
|
| 28 |
+
2951 item:close eef_x=-0.2202 eef_y=1.3638 eef_z=0.6608 item_red_x=-0.2207 item_red_y=1.5186 item_red_z=0.4792 weigher_pad0=-0.0027 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0029 tau_r_finger=20.0000
|
| 29 |
+
2952 item:close eef_x=-0.2223 eef_y=1.3976 eef_z=0.6653 item_red_x=-0.2194 item_red_y=1.5628 item_red_z=0.4931 weigher_pad0=-0.0023 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0029 tau_r_finger=20.0000
|
| 30 |
+
2953 item:close eef_x=-0.2212 eef_y=1.4302 eef_z=0.6707 item_red_x=-0.2143 item_red_y=1.6047 item_red_z=0.5081 weigher_pad0=-0.0021 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0028 tau_r_finger=20.0000
|
| 31 |
+
2954 eef_x=-0.2169 eef_y=1.4614 eef_z=0.6765 item_red_x=-0.2057 item_red_y=1.6444 item_red_z=0.5238 weigher_pad0=-0.0019 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0028 tau_r_finger=20.0000
|
| 32 |
+
2955 _item:lift eef_x=-0.2083 eef_y=1.4970 eef_z=0.6837 item_red_x=-0.1840 item_red_y=1.6912 item_red_z=0.5472 weigher_pad0=-0.0018 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0025 tau_r_finger=20.0000
|
| 33 |
+
2956 _item:lift eef_x=-0.1990 eef_y=1.5340 eef_z=0.6907 item_red_x=-0.1592 item_red_y=1.7369 item_red_z=0.5716 weigher_pad0=-0.0017 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0022 tau_r_finger=20.0000
|
| 34 |
+
2957 _item:lift eef_x=-0.1876 eef_y=1.5700 eef_z=0.6984 item_red_x=-0.1309 item_red_y=1.7788 item_red_z=0.5977 weigher_pad0=-0.0017 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0019 tau_r_finger=20.0000
|
| 35 |
+
2958 _item:lift eef_x=-0.1737 eef_y=1.6038 eef_z=0.7071 item_red_x=-0.0999 item_red_y=1.8156 item_red_z=0.6257 weigher_pad0=-0.0016 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0017 tau_r_finger=18.8801
|
| 36 |
+
2959 _item:lift eef_x=-0.1585 eef_y=1.6340 eef_z=0.7171 item_red_x=-0.0682 item_red_y=1.8462 item_red_z=0.6555 weigher_pad0=-0.0016 weigher_pad1=-0.0039 q_l_finger=0.0208 tau_l_finger=-20.0000 q_r_finger=-0.0014 tau_r_finger=18.4831
|
| 37 |
+
2960 _item:lift eef_x=-0.1453 eef_y=1.6567 eef_z=0.7254 item_red_x=-0.0421 item_red_y=1.8662 item_red_z=0.6820 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0206 tau_l_finger=-20.0000 q_r_finger=-0.0003 tau_r_finger=12.6863
|
| 38 |
+
2961 _item:lift eef_x=-0.1418 eef_y=1.6644 eef_z=0.7271 item_red_x=-0.0253 item_red_y=1.8922 item_red_z=0.6751 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0189 tau_l_finger=-20.0000 q_r_finger=0.0000 tau_r_finger=19.9987
|
| 39 |
+
2962 _item:lift eef_x=-0.1421 eef_y=1.6665 eef_z=0.7274 item_red_x=-0.0105 item_red_y=1.9041 item_red_z=0.6716 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0169 tau_l_finger=-20.0000 q_r_finger=-0.0000 tau_r_finger=20.0000
|
| 40 |
+
2963 _item:lift eef_x=-0.1435 eef_y=1.6661 eef_z=0.7272 item_red_x=0.0011 item_red_y=1.9323 item_red_z=0.6497 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0149 tau_l_finger=-20.0000 q_r_finger=-0.0000 tau_r_finger=20.0000
|
| 41 |
+
2964 _item:lift eef_x=-0.1453 eef_y=1.6644 eef_z=0.7267 item_red_x=0.0312 item_red_y=1.9495 item_red_z=0.6207 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0129 tau_l_finger=-20.0000 q_r_finger=0.0000 tau_r_finger=20.0000
|
| 42 |
+
2965 _item:lift eef_x=-0.1472 eef_y=1.6621 eef_z=0.7261 item_red_x=0.0498 item_red_y=1.9595 item_red_z=0.6044 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0109 tau_l_finger=-20.0000 q_r_finger=0.0000 tau_r_finger=20.0000
|
| 43 |
+
2966 _item:lift eef_x=-0.1492 eef_y=1.6594 eef_z=0.7254 item_red_x=0.0595 item_red_y=1.9858 item_red_z=0.5742 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0089 tau_l_finger=-20.0000 q_r_finger=0.0000 tau_r_finger=20.0000
|
| 44 |
+
2967 _item:lift eef_x=-0.1511 eef_y=1.6566 eef_z=0.7247 item_red_x=0.0874 item_red_y=2.0064 item_red_z=0.5317 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0069 tau_l_finger=-20.0000 q_r_finger=0.0000 tau_r_finger=20.0000
|
| 45 |
+
2968 _item:lift eef_x=-0.1530 eef_y=1.6536 eef_z=0.7241 item_red_x=0.1097 item_red_y=2.0156 item_red_z=0.5016 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0049 tau_l_finger=-20.0000 q_r_finger=0.0000 tau_r_finger=19.9946
|
| 46 |
+
2969 _item:lift eef_x=-0.1549 eef_y=1.6505 eef_z=0.7234 item_red_x=0.1186 item_red_y=2.0392 item_red_z=0.4629 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0029 tau_l_finger=-16.7366 q_r_finger=0.0000 tau_r_finger=19.9958
|
| 47 |
+
2970 _item:lift eef_x=-0.1568 eef_y=1.6473 eef_z=0.7228 item_red_x=0.1433 item_red_y=2.0627 item_red_z=0.4081 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0009 tau_l_finger=-12.7259 q_r_finger=0.0000 tau_r_finger=19.9971
|
| 48 |
+
2971 _item:lift eef_x=-0.1587 eef_y=1.6441 eef_z=0.7221 item_red_x=0.1689 item_red_y=2.0723 item_red_z=0.3632 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0000 tau_l_finger=-20.0000 q_r_finger=0.0000 tau_r_finger=20.0000
|
| 49 |
+
2972 _item:lift eef_x=-0.1605 eef_y=1.6409 eef_z=0.7215 item_red_x=0.1793 item_red_y=2.0874 item_red_z=0.3545 weigher_pad0=-0.0015 weigher_pad1=-0.0039 q_l_finger=0.0000 tau_l_finger=-20.0000 q_r_finger=0.0000 tau_r_finger=20.0000
|
| 50 |
+
2973 _item:lift eef_x=-3.5563 eef_y=-2.2329 eef_z=0.5827 item_red_x=-0.1200 item_red_y=1.1000 item_red_z=0.5010 weigher_pad0=-0.0002 weigher_pad1=-0.0002 q_l_finger=0.0000 tau_l_finger=-20.0000 q_r_finger=0.0000 tau_r_finger=20.0000
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/armlock_s101_lock.log
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
LOCK 5484 [3.0018413066864014, -1.0007702112197876, 0.00045784973190166056, 2.0008583068847656, -6.614752783207223e-05, 1.4001474380493164, 3.179031773470342e-05]
|
| 2 |
+
UNLOCK 5608
|
| 3 |
+
LOCK 9828 [-0.22996696829795837, -0.6908884048461914, -0.5939531922340393, 1.1731380224227905, 0.46969982981681824, 1.219252347946167, -0.634748637676239]
|
| 4 |
+
UNLOCK 9908
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/armlock_s101_report.json
ADDED
|
@@ -0,0 +1,1044 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": "N052",
|
| 7 |
+
"task_version": "EXT60-MobileAvatar-v3",
|
| 8 |
+
"agent_id": "a11",
|
| 9 |
+
"family_id": "measured_attribute_memory",
|
| 10 |
+
"primary_category": "C6",
|
| 11 |
+
"level": "easy",
|
| 12 |
+
"embodiment": "sawyer_umi",
|
| 13 |
+
"scene_seed": 101,
|
| 14 |
+
"execution_mode": "expert_collect_chain",
|
| 15 |
+
"station_layout": {
|
| 16 |
+
"A": [
|
| 17 |
+
0.0,
|
| 18 |
+
-0.55,
|
| 19 |
+
1.571
|
| 20 |
+
],
|
| 21 |
+
"A_obs": null,
|
| 22 |
+
"B": [
|
| 23 |
+
0.0,
|
| 24 |
+
2.05,
|
| 25 |
+
-1.571
|
| 26 |
+
],
|
| 27 |
+
"S": [
|
| 28 |
+
-3.425,
|
| 29 |
+
-2.098,
|
| 30 |
+
0.251
|
| 31 |
+
],
|
| 32 |
+
"flip_x": false,
|
| 33 |
+
"route_m": {
|
| 34 |
+
"S_to_A_m": 4.09,
|
| 35 |
+
"A_to_B_m": 4.45,
|
| 36 |
+
"A_to_B_straight_m": 2.6,
|
| 37 |
+
"S_to_A_straight_m": 3.76
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"spawn_pose": [
|
| 41 |
+
-3.4252,
|
| 42 |
+
-2.0984,
|
| 43 |
+
0.2512
|
| 44 |
+
],
|
| 45 |
+
"base_path": [
|
| 46 |
+
[
|
| 47 |
+
-3.425,
|
| 48 |
+
-2.098,
|
| 49 |
+
0.251,
|
| 50 |
+
0.02
|
| 51 |
+
],
|
| 52 |
+
[
|
| 53 |
+
-3.322,
|
| 54 |
+
-2.077,
|
| 55 |
+
0.446,
|
| 56 |
+
1.7
|
| 57 |
+
],
|
| 58 |
+
[
|
| 59 |
+
-3.221,
|
| 60 |
+
-2.068,
|
| 61 |
+
0.685,
|
| 62 |
+
2.0
|
| 63 |
+
],
|
| 64 |
+
[
|
| 65 |
+
-3.116,
|
| 66 |
+
-2.054,
|
| 67 |
+
0.909,
|
| 68 |
+
2.28
|
| 69 |
+
],
|
| 70 |
+
[
|
| 71 |
+
-3.017,
|
| 72 |
+
-2.034,
|
| 73 |
+
1.076,
|
| 74 |
+
2.52
|
| 75 |
+
],
|
| 76 |
+
[
|
| 77 |
+
-2.921,
|
| 78 |
+
-1.999,
|
| 79 |
+
1.2,
|
| 80 |
+
2.76
|
| 81 |
+
],
|
| 82 |
+
[
|
| 83 |
+
-2.83,
|
| 84 |
+
-1.954,
|
| 85 |
+
1.293,
|
| 86 |
+
3.0
|
| 87 |
+
],
|
| 88 |
+
[
|
| 89 |
+
-2.742,
|
| 90 |
+
-1.902,
|
| 91 |
+
1.359,
|
| 92 |
+
3.24
|
| 93 |
+
],
|
| 94 |
+
[
|
| 95 |
+
-2.652,
|
| 96 |
+
-1.846,
|
| 97 |
+
1.413,
|
| 98 |
+
3.5
|
| 99 |
+
],
|
| 100 |
+
[
|
| 101 |
+
-2.566,
|
| 102 |
+
-1.794,
|
| 103 |
+
1.454,
|
| 104 |
+
3.76
|
| 105 |
+
],
|
| 106 |
+
[
|
| 107 |
+
-2.476,
|
| 108 |
+
-1.74,
|
| 109 |
+
1.486,
|
| 110 |
+
4.04
|
| 111 |
+
],
|
| 112 |
+
[
|
| 113 |
+
-2.388,
|
| 114 |
+
-1.69,
|
| 115 |
+
1.509,
|
| 116 |
+
4.32
|
| 117 |
+
],
|
| 118 |
+
[
|
| 119 |
+
-2.296,
|
| 120 |
+
-1.639,
|
| 121 |
+
1.527,
|
| 122 |
+
4.62
|
| 123 |
+
],
|
| 124 |
+
[
|
| 125 |
+
-2.204,
|
| 126 |
+
-1.591,
|
| 127 |
+
1.54,
|
| 128 |
+
4.92
|
| 129 |
+
],
|
| 130 |
+
[
|
| 131 |
+
-2.112,
|
| 132 |
+
-1.544,
|
| 133 |
+
1.549,
|
| 134 |
+
5.22
|
| 135 |
+
],
|
| 136 |
+
[
|
| 137 |
+
-2.022,
|
| 138 |
+
-1.499,
|
| 139 |
+
1.556,
|
| 140 |
+
5.52
|
| 141 |
+
],
|
| 142 |
+
[
|
| 143 |
+
-1.931,
|
| 144 |
+
-1.456,
|
| 145 |
+
1.56,
|
| 146 |
+
5.82
|
| 147 |
+
],
|
| 148 |
+
[
|
| 149 |
+
-1.841,
|
| 150 |
+
-1.413,
|
| 151 |
+
1.564,
|
| 152 |
+
6.12
|
| 153 |
+
],
|
| 154 |
+
[
|
| 155 |
+
-1.744,
|
| 156 |
+
-1.369,
|
| 157 |
+
1.566,
|
| 158 |
+
6.44
|
| 159 |
+
],
|
| 160 |
+
[
|
| 161 |
+
-1.648,
|
| 162 |
+
-1.325,
|
| 163 |
+
1.567,
|
| 164 |
+
6.76
|
| 165 |
+
],
|
| 166 |
+
[
|
| 167 |
+
-1.552,
|
| 168 |
+
-1.281,
|
| 169 |
+
1.568,
|
| 170 |
+
7.08
|
| 171 |
+
],
|
| 172 |
+
[
|
| 173 |
+
-1.456,
|
| 174 |
+
-1.237,
|
| 175 |
+
1.568,
|
| 176 |
+
7.4
|
| 177 |
+
],
|
| 178 |
+
[
|
| 179 |
+
-1.361,
|
| 180 |
+
-1.194,
|
| 181 |
+
1.569,
|
| 182 |
+
7.72
|
| 183 |
+
],
|
| 184 |
+
[
|
| 185 |
+
-1.267,
|
| 186 |
+
-1.153,
|
| 187 |
+
1.57,
|
| 188 |
+
8.04
|
| 189 |
+
],
|
| 190 |
+
[
|
| 191 |
+
-1.172,
|
| 192 |
+
-1.112,
|
| 193 |
+
1.571,
|
| 194 |
+
8.36
|
| 195 |
+
],
|
| 196 |
+
[
|
| 197 |
+
-1.078,
|
| 198 |
+
-1.071,
|
| 199 |
+
1.571,
|
| 200 |
+
8.68
|
| 201 |
+
],
|
| 202 |
+
[
|
| 203 |
+
-0.984,
|
| 204 |
+
-1.029,
|
| 205 |
+
1.572,
|
| 206 |
+
9.0
|
| 207 |
+
],
|
| 208 |
+
[
|
| 209 |
+
-0.889,
|
| 210 |
+
-0.988,
|
| 211 |
+
1.573,
|
| 212 |
+
9.32
|
| 213 |
+
],
|
| 214 |
+
[
|
| 215 |
+
-0.795,
|
| 216 |
+
-0.947,
|
| 217 |
+
1.573,
|
| 218 |
+
9.64
|
| 219 |
+
],
|
| 220 |
+
[
|
| 221 |
+
-0.7,
|
| 222 |
+
-0.905,
|
| 223 |
+
1.573,
|
| 224 |
+
9.96
|
| 225 |
+
],
|
| 226 |
+
[
|
| 227 |
+
-0.606,
|
| 228 |
+
-0.864,
|
| 229 |
+
1.573,
|
| 230 |
+
10.28
|
| 231 |
+
],
|
| 232 |
+
[
|
| 233 |
+
-0.511,
|
| 234 |
+
-0.823,
|
| 235 |
+
1.573,
|
| 236 |
+
10.6
|
| 237 |
+
],
|
| 238 |
+
[
|
| 239 |
+
-0.416,
|
| 240 |
+
-0.78,
|
| 241 |
+
1.573,
|
| 242 |
+
10.92
|
| 243 |
+
],
|
| 244 |
+
[
|
| 245 |
+
-0.327,
|
| 246 |
+
-0.734,
|
| 247 |
+
1.573,
|
| 248 |
+
11.22
|
| 249 |
+
],
|
| 250 |
+
[
|
| 251 |
+
-0.238,
|
| 252 |
+
-0.687,
|
| 253 |
+
1.572,
|
| 254 |
+
11.58
|
| 255 |
+
],
|
| 256 |
+
[
|
| 257 |
+
-0.15,
|
| 258 |
+
-0.639,
|
| 259 |
+
1.571,
|
| 260 |
+
12.1
|
| 261 |
+
],
|
| 262 |
+
[
|
| 263 |
+
-0.054,
|
| 264 |
+
-0.601,
|
| 265 |
+
1.618,
|
| 266 |
+
21.38
|
| 267 |
+
],
|
| 268 |
+
[
|
| 269 |
+
0.048,
|
| 270 |
+
-0.618,
|
| 271 |
+
1.829,
|
| 272 |
+
21.72
|
| 273 |
+
],
|
| 274 |
+
[
|
| 275 |
+
0.153,
|
| 276 |
+
-0.638,
|
| 277 |
+
2.069,
|
| 278 |
+
22.02
|
| 279 |
+
],
|
| 280 |
+
[
|
| 281 |
+
0.258,
|
| 282 |
+
-0.654,
|
| 283 |
+
2.277,
|
| 284 |
+
22.28
|
| 285 |
+
],
|
| 286 |
+
[
|
| 287 |
+
0.365,
|
| 288 |
+
-0.657,
|
| 289 |
+
2.484,
|
| 290 |
+
22.54
|
| 291 |
+
],
|
| 292 |
+
[
|
| 293 |
+
0.467,
|
| 294 |
+
-0.651,
|
| 295 |
+
2.708,
|
| 296 |
+
22.82
|
| 297 |
+
],
|
| 298 |
+
[
|
| 299 |
+
0.572,
|
| 300 |
+
-0.642,
|
| 301 |
+
2.964,
|
| 302 |
+
23.14
|
| 303 |
+
],
|
| 304 |
+
[
|
| 305 |
+
0.675,
|
| 306 |
+
-0.622,
|
| 307 |
+
-3.047,
|
| 308 |
+
23.48
|
| 309 |
+
],
|
| 310 |
+
[
|
| 311 |
+
0.774,
|
| 312 |
+
-0.594,
|
| 313 |
+
-2.775,
|
| 314 |
+
23.82
|
| 315 |
+
],
|
| 316 |
+
[
|
| 317 |
+
0.864,
|
| 318 |
+
-0.546,
|
| 319 |
+
-2.503,
|
| 320 |
+
24.16
|
| 321 |
+
],
|
| 322 |
+
[
|
| 323 |
+
0.947,
|
| 324 |
+
-0.485,
|
| 325 |
+
-2.231,
|
| 326 |
+
24.5
|
| 327 |
+
],
|
| 328 |
+
[
|
| 329 |
+
1.02,
|
| 330 |
+
-0.41,
|
| 331 |
+
-2.01,
|
| 332 |
+
24.84
|
| 333 |
+
],
|
| 334 |
+
[
|
| 335 |
+
1.082,
|
| 336 |
+
-0.325,
|
| 337 |
+
-1.862,
|
| 338 |
+
25.18
|
| 339 |
+
],
|
| 340 |
+
[
|
| 341 |
+
1.135,
|
| 342 |
+
-0.239,
|
| 343 |
+
-1.769,
|
| 344 |
+
25.5
|
| 345 |
+
],
|
| 346 |
+
[
|
| 347 |
+
1.185,
|
| 348 |
+
-0.15,
|
| 349 |
+
-1.705,
|
| 350 |
+
25.82
|
| 351 |
+
],
|
| 352 |
+
[
|
| 353 |
+
1.233,
|
| 354 |
+
-0.059,
|
| 355 |
+
-1.662,
|
| 356 |
+
26.14
|
| 357 |
+
],
|
| 358 |
+
[
|
| 359 |
+
1.282,
|
| 360 |
+
0.034,
|
| 361 |
+
-1.633,
|
| 362 |
+
26.46
|
| 363 |
+
],
|
| 364 |
+
[
|
| 365 |
+
1.332,
|
| 366 |
+
0.127,
|
| 367 |
+
-1.613,
|
| 368 |
+
26.78
|
| 369 |
+
],
|
| 370 |
+
[
|
| 371 |
+
1.38,
|
| 372 |
+
0.216,
|
| 373 |
+
-1.6,
|
| 374 |
+
27.08
|
| 375 |
+
],
|
| 376 |
+
[
|
| 377 |
+
1.429,
|
| 378 |
+
0.31,
|
| 379 |
+
-1.591,
|
| 380 |
+
27.4
|
| 381 |
+
],
|
| 382 |
+
[
|
| 383 |
+
1.474,
|
| 384 |
+
0.402,
|
| 385 |
+
-1.583,
|
| 386 |
+
27.8
|
| 387 |
+
],
|
| 388 |
+
[
|
| 389 |
+
1.523,
|
| 390 |
+
0.491,
|
| 391 |
+
-1.577,
|
| 392 |
+
28.42
|
| 393 |
+
],
|
| 394 |
+
[
|
| 395 |
+
1.539,
|
| 396 |
+
0.592,
|
| 397 |
+
-1.572,
|
| 398 |
+
29.32
|
| 399 |
+
],
|
| 400 |
+
[
|
| 401 |
+
1.506,
|
| 402 |
+
0.688,
|
| 403 |
+
-1.571,
|
| 404 |
+
29.64
|
| 405 |
+
],
|
| 406 |
+
[
|
| 407 |
+
1.47,
|
| 408 |
+
0.784,
|
| 409 |
+
-1.57,
|
| 410 |
+
29.96
|
| 411 |
+
],
|
| 412 |
+
[
|
| 413 |
+
1.434,
|
| 414 |
+
0.88,
|
| 415 |
+
-1.57,
|
| 416 |
+
30.28
|
| 417 |
+
],
|
| 418 |
+
[
|
| 419 |
+
1.395,
|
| 420 |
+
0.976,
|
| 421 |
+
-1.571,
|
| 422 |
+
30.6
|
| 423 |
+
],
|
| 424 |
+
[
|
| 425 |
+
1.356,
|
| 426 |
+
1.072,
|
| 427 |
+
-1.571,
|
| 428 |
+
30.92
|
| 429 |
+
],
|
| 430 |
+
[
|
| 431 |
+
1.318,
|
| 432 |
+
1.168,
|
| 433 |
+
-1.57,
|
| 434 |
+
31.24
|
| 435 |
+
],
|
| 436 |
+
[
|
| 437 |
+
1.279,
|
| 438 |
+
1.264,
|
| 439 |
+
-1.57,
|
| 440 |
+
31.56
|
| 441 |
+
],
|
| 442 |
+
[
|
| 443 |
+
1.24,
|
| 444 |
+
1.36,
|
| 445 |
+
-1.57,
|
| 446 |
+
31.88
|
| 447 |
+
],
|
| 448 |
+
[
|
| 449 |
+
1.201,
|
| 450 |
+
1.455,
|
| 451 |
+
-1.571,
|
| 452 |
+
32.2
|
| 453 |
+
],
|
| 454 |
+
[
|
| 455 |
+
1.154,
|
| 456 |
+
1.55,
|
| 457 |
+
-1.57,
|
| 458 |
+
32.52
|
| 459 |
+
],
|
| 460 |
+
[
|
| 461 |
+
1.09,
|
| 462 |
+
1.628,
|
| 463 |
+
-1.57,
|
| 464 |
+
32.78
|
| 465 |
+
],
|
| 466 |
+
[
|
| 467 |
+
1.019,
|
| 468 |
+
1.7,
|
| 469 |
+
-1.569,
|
| 470 |
+
33.02
|
| 471 |
+
],
|
| 472 |
+
[
|
| 473 |
+
0.947,
|
| 474 |
+
1.77,
|
| 475 |
+
-1.569,
|
| 476 |
+
33.26
|
| 477 |
+
],
|
| 478 |
+
[
|
| 479 |
+
0.869,
|
| 480 |
+
1.839,
|
| 481 |
+
-1.569,
|
| 482 |
+
33.52
|
| 483 |
+
],
|
| 484 |
+
[
|
| 485 |
+
0.785,
|
| 486 |
+
1.905,
|
| 487 |
+
-1.569,
|
| 488 |
+
33.8
|
| 489 |
+
],
|
| 490 |
+
[
|
| 491 |
+
0.701,
|
| 492 |
+
1.959,
|
| 493 |
+
-1.569,
|
| 494 |
+
34.08
|
| 495 |
+
],
|
| 496 |
+
[
|
| 497 |
+
0.611,
|
| 498 |
+
2.003,
|
| 499 |
+
-1.569,
|
| 500 |
+
34.38
|
| 501 |
+
],
|
| 502 |
+
[
|
| 503 |
+
0.515,
|
| 504 |
+
2.038,
|
| 505 |
+
-1.569,
|
| 506 |
+
34.7
|
| 507 |
+
],
|
| 508 |
+
[
|
| 509 |
+
0.413,
|
| 510 |
+
2.065,
|
| 511 |
+
-1.569,
|
| 512 |
+
35.04
|
| 513 |
+
],
|
| 514 |
+
[
|
| 515 |
+
0.314,
|
| 516 |
+
2.087,
|
| 517 |
+
-1.57,
|
| 518 |
+
35.42
|
| 519 |
+
],
|
| 520 |
+
[
|
| 521 |
+
0.214,
|
| 522 |
+
2.107,
|
| 523 |
+
-1.57,
|
| 524 |
+
36.0
|
| 525 |
+
],
|
| 526 |
+
[
|
| 527 |
+
0.115,
|
| 528 |
+
2.086,
|
| 529 |
+
-1.571,
|
| 530 |
+
36.68
|
| 531 |
+
]
|
| 532 |
+
],
|
| 533 |
+
"stage_events": [
|
| 534 |
+
{
|
| 535 |
+
"event": "arrived_A",
|
| 536 |
+
"from": "S",
|
| 537 |
+
"t": 12.14,
|
| 538 |
+
"path_len_m": 3.613
|
| 539 |
+
},
|
| 540 |
+
{
|
| 541 |
+
"event": "left_A",
|
| 542 |
+
"t": 23.38
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"event": "arrived_B",
|
| 546 |
+
"from": "A",
|
| 547 |
+
"t": 36.08,
|
| 548 |
+
"path_len_m": 8.177
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"event": "move_target",
|
| 552 |
+
"label": "take_item:pre",
|
| 553 |
+
"mode": -1,
|
| 554 |
+
"pos": [
|
| 555 |
+
-0.1121,
|
| 556 |
+
1.1,
|
| 557 |
+
0.8541
|
| 558 |
+
],
|
| 559 |
+
"quat": [
|
| 560 |
+
0.5,
|
| 561 |
+
-0.5,
|
| 562 |
+
0.5,
|
| 563 |
+
0.5
|
| 564 |
+
],
|
| 565 |
+
"base": [
|
| 566 |
+
0.0906,
|
| 567 |
+
2.0799,
|
| 568 |
+
0.06,
|
| 569 |
+
-1.5707
|
| 570 |
+
]
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"event": "move_target",
|
| 574 |
+
"label": "take_item:down:0",
|
| 575 |
+
"mode": 4,
|
| 576 |
+
"pos": [
|
| 577 |
+
-0.1121,
|
| 578 |
+
1.1,
|
| 579 |
+
0.7341
|
| 580 |
+
],
|
| 581 |
+
"quat": [
|
| 582 |
+
0.5,
|
| 583 |
+
-0.5,
|
| 584 |
+
0.5,
|
| 585 |
+
0.5
|
| 586 |
+
],
|
| 587 |
+
"base": [
|
| 588 |
+
0.0906,
|
| 589 |
+
2.0799,
|
| 590 |
+
0.06,
|
| 591 |
+
-1.5707
|
| 592 |
+
]
|
| 593 |
+
},
|
| 594 |
+
{
|
| 595 |
+
"event": "settle_err",
|
| 596 |
+
"label": "take_item:down",
|
| 597 |
+
"k": 0,
|
| 598 |
+
"err_mm": [
|
| 599 |
+
-0.2,
|
| 600 |
+
-0.3,
|
| 601 |
+
-4.7
|
| 602 |
+
],
|
| 603 |
+
"norm_mm": 4.7
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"event": "move_target",
|
| 607 |
+
"label": "take_item:lift",
|
| 608 |
+
"mode": 4,
|
| 609 |
+
"pos": [
|
| 610 |
+
-0.1121,
|
| 611 |
+
1.1,
|
| 612 |
+
0.8541
|
| 613 |
+
],
|
| 614 |
+
"quat": [
|
| 615 |
+
0.5,
|
| 616 |
+
-0.5,
|
| 617 |
+
0.5,
|
| 618 |
+
0.5
|
| 619 |
+
],
|
| 620 |
+
"base": [
|
| 621 |
+
0.0905,
|
| 622 |
+
2.0804,
|
| 623 |
+
0.06,
|
| 624 |
+
-1.571
|
| 625 |
+
]
|
| 626 |
+
}
|
| 627 |
+
],
|
| 628 |
+
"transport_state": {
|
| 629 |
+
"light": "red",
|
| 630 |
+
"on_delivery": {
|
| 631 |
+
"red": false,
|
| 632 |
+
"blue": false
|
| 633 |
+
},
|
| 634 |
+
"expected_deflection_m": {
|
| 635 |
+
"red": 0.0149,
|
| 636 |
+
"blue": 0.0446
|
| 637 |
+
}
|
| 638 |
+
},
|
| 639 |
+
"manipulation_success": false,
|
| 640 |
+
"mobile_success": true,
|
| 641 |
+
"full_success": false,
|
| 642 |
+
"failure_reason": "item_dropped",
|
| 643 |
+
"station_transition_order": [
|
| 644 |
+
"S",
|
| 645 |
+
"A",
|
| 646 |
+
"B"
|
| 647 |
+
],
|
| 648 |
+
"distance_to_first_interaction": 3.613,
|
| 649 |
+
"interstation_path_lengths": {
|
| 650 |
+
"A": [
|
| 651 |
+
3.613
|
| 652 |
+
],
|
| 653 |
+
"B": [
|
| 654 |
+
4.564
|
| 655 |
+
]
|
| 656 |
+
},
|
| 657 |
+
"final_approach_pose": [
|
| 658 |
+
0.091,
|
| 659 |
+
2.081,
|
| 660 |
+
-1.571
|
| 661 |
+
],
|
| 662 |
+
"cue_ledger": {
|
| 663 |
+
"read_s": 0.5,
|
| 664 |
+
"gap_s": 1.0,
|
| 665 |
+
"cues": {
|
| 666 |
+
"weight_red": {
|
| 667 |
+
"reads": 1,
|
| 668 |
+
"first_read_t": 14.86,
|
| 669 |
+
"first_read_end_t": 16.12,
|
| 670 |
+
"gap_open_t": 17.12,
|
| 671 |
+
"reobserved_t": [],
|
| 672 |
+
"visible_now": false
|
| 673 |
+
},
|
| 674 |
+
"weight_blue": {
|
| 675 |
+
"reads": 1,
|
| 676 |
+
"first_read_t": 18.86,
|
| 677 |
+
"first_read_end_t": 20.12,
|
| 678 |
+
"gap_open_t": 21.12,
|
| 679 |
+
"reobserved_t": [],
|
| 680 |
+
"visible_now": false
|
| 681 |
+
}
|
| 682 |
+
},
|
| 683 |
+
"decisions": [
|
| 684 |
+
{
|
| 685 |
+
"label": "pick_lighter",
|
| 686 |
+
"t": 36.96,
|
| 687 |
+
"class": "memory",
|
| 688 |
+
"per_cue": {
|
| 689 |
+
"weight_red": "memory",
|
| 690 |
+
"weight_blue": "memory"
|
| 691 |
+
},
|
| 692 |
+
"readings_m": {
|
| 693 |
+
"red": 0.038800700753927234,
|
| 694 |
+
"blue": 0.057989563196897506
|
| 695 |
+
},
|
| 696 |
+
"lighter": "red"
|
| 697 |
+
}
|
| 698 |
+
],
|
| 699 |
+
"protocol_valid": true
|
| 700 |
+
},
|
| 701 |
+
"public": {
|
| 702 |
+
"demo_running": false,
|
| 703 |
+
"demo_done": true
|
| 704 |
+
},
|
| 705 |
+
"truth": {
|
| 706 |
+
"light": "red",
|
| 707 |
+
"heavy": "blue",
|
| 708 |
+
"red_pad": 0,
|
| 709 |
+
"order": [
|
| 710 |
+
0,
|
| 711 |
+
1
|
| 712 |
+
]
|
| 713 |
+
},
|
| 714 |
+
"episode_time_s": 59.46,
|
| 715 |
+
"extra": {
|
| 716 |
+
"item_pos": {
|
| 717 |
+
"red": [
|
| 718 |
+
0.1846,
|
| 719 |
+
2.0953,
|
| 720 |
+
0.35
|
| 721 |
+
],
|
| 722 |
+
"blue": [
|
| 723 |
+
0.12,
|
| 724 |
+
1.1,
|
| 725 |
+
0.4959
|
| 726 |
+
]
|
| 727 |
+
},
|
| 728 |
+
"demo_start_t": 12.14,
|
| 729 |
+
"weigh_events": [
|
| 730 |
+
{
|
| 731 |
+
"pad": 0,
|
| 732 |
+
"event": "freed",
|
| 733 |
+
"t": 13.14
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"pad": 0,
|
| 737 |
+
"event": "locked",
|
| 738 |
+
"t": 16.14,
|
| 739 |
+
"deflection_m": 0.0388
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"pad": 1,
|
| 743 |
+
"event": "freed",
|
| 744 |
+
"t": 17.14
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"pad": 1,
|
| 748 |
+
"event": "locked",
|
| 749 |
+
"t": 20.14,
|
| 750 |
+
"deflection_m": 0.058
|
| 751 |
+
}
|
| 752 |
+
],
|
| 753 |
+
"cue_diag": {
|
| 754 |
+
"weight_red": {
|
| 755 |
+
"active_ticks": 89,
|
| 756 |
+
"visible_ticks": 89
|
| 757 |
+
},
|
| 758 |
+
"weight_blue": {
|
| 759 |
+
"active_ticks": 89,
|
| 760 |
+
"visible_ticks": 89
|
| 761 |
+
}
|
| 762 |
+
},
|
| 763 |
+
"demo_done_t": 21.14,
|
| 764 |
+
"transport_state": {
|
| 765 |
+
"light": "red",
|
| 766 |
+
"on_delivery": {
|
| 767 |
+
"red": false,
|
| 768 |
+
"blue": false
|
| 769 |
+
},
|
| 770 |
+
"expected_deflection_m": {
|
| 771 |
+
"red": 0.0149,
|
| 772 |
+
"blue": 0.0446
|
| 773 |
+
}
|
| 774 |
+
},
|
| 775 |
+
"first_pick": {
|
| 776 |
+
"color": "red",
|
| 777 |
+
"correct": true,
|
| 778 |
+
"t": 59.1
|
| 779 |
+
}
|
| 780 |
+
},
|
| 781 |
+
"env_terminated": false,
|
| 782 |
+
"env_truncated": true,
|
| 783 |
+
"control_ticks": 2973,
|
| 784 |
+
"diagnostics": {
|
| 785 |
+
"atomic_skill_info": null,
|
| 786 |
+
"global_planner_info": {},
|
| 787 |
+
"nav_reports": {
|
| 788 |
+
"0": {
|
| 789 |
+
"success": true,
|
| 790 |
+
"native_path": [
|
| 791 |
+
[
|
| 792 |
+
-0.08055705577135086,
|
| 793 |
+
-0.6008435487747192,
|
| 794 |
+
0.030429374426603317
|
| 795 |
+
],
|
| 796 |
+
[
|
| 797 |
+
0.06742338836193085,
|
| 798 |
+
-0.5833139419555664,
|
| 799 |
+
0.03042936697602272
|
| 800 |
+
],
|
| 801 |
+
[
|
| 802 |
+
0.1435028314590454,
|
| 803 |
+
-0.5743016600608826,
|
| 804 |
+
0.03042936511337757
|
| 805 |
+
],
|
| 806 |
+
[
|
| 807 |
+
0.36825087666511536,
|
| 808 |
+
-0.5476782917976379,
|
| 809 |
+
0.03042936511337757
|
| 810 |
+
],
|
| 811 |
+
[
|
| 812 |
+
0.41083288192749023,
|
| 813 |
+
-0.5426340699195862,
|
| 814 |
+
0.03042936511337757
|
| 815 |
+
],
|
| 816 |
+
[
|
| 817 |
+
0.6295801997184753,
|
| 818 |
+
-0.5167214870452881,
|
| 819 |
+
0.03042936511337757
|
| 820 |
+
],
|
| 821 |
+
[
|
| 822 |
+
0.6568048000335693,
|
| 823 |
+
-0.5134965181350708,
|
| 824 |
+
0.03042936511337757
|
| 825 |
+
],
|
| 826 |
+
[
|
| 827 |
+
0.6950979232788086,
|
| 828 |
+
-0.5089603662490845,
|
| 829 |
+
0.03042936511337757
|
| 830 |
+
],
|
| 831 |
+
[
|
| 832 |
+
0.9177659749984741,
|
| 833 |
+
-0.48258334398269653,
|
| 834 |
+
0.03042936697602272
|
| 835 |
+
],
|
| 836 |
+
[
|
| 837 |
+
0.9177660346031189,
|
| 838 |
+
-0.48258328437805176,
|
| 839 |
+
0.03042936511337757
|
| 840 |
+
],
|
| 841 |
+
[
|
| 842 |
+
0.9732123613357544,
|
| 843 |
+
-0.3931257724761963,
|
| 844 |
+
0.03042936511337757
|
| 845 |
+
],
|
| 846 |
+
[
|
| 847 |
+
1.0029863119125366,
|
| 848 |
+
-0.34508827328681946,
|
| 849 |
+
0.030429363250732422
|
| 850 |
+
],
|
| 851 |
+
[
|
| 852 |
+
1.1462059020996094,
|
| 853 |
+
-0.1140168309211731,
|
| 854 |
+
0.030429350212216377
|
| 855 |
+
],
|
| 856 |
+
[
|
| 857 |
+
1.1631228923797607,
|
| 858 |
+
-0.08672289550304413,
|
| 859 |
+
0.030429350212216377
|
| 860 |
+
],
|
| 861 |
+
[
|
| 862 |
+
1.2482998371124268,
|
| 863 |
+
0.05070227384567261,
|
| 864 |
+
0.030429350212216377
|
| 865 |
+
],
|
| 866 |
+
[
|
| 867 |
+
1.2932368516921997,
|
| 868 |
+
0.12320400029420853,
|
| 869 |
+
0.030429350212216377
|
| 870 |
+
],
|
| 871 |
+
[
|
| 872 |
+
1.4125683307647705,
|
| 873 |
+
0.3157340884208679,
|
| 874 |
+
0.030429350212216377
|
| 875 |
+
],
|
| 876 |
+
[
|
| 877 |
+
1.4687683582305908,
|
| 878 |
+
0.40640759468078613,
|
| 879 |
+
0.030429348349571228
|
| 880 |
+
],
|
| 881 |
+
[
|
| 882 |
+
1.5230579376220703,
|
| 883 |
+
0.49399882555007935,
|
| 884 |
+
0.030429348349571228
|
| 885 |
+
],
|
| 886 |
+
[
|
| 887 |
+
1.5939898490905762,
|
| 888 |
+
0.6073216199874878,
|
| 889 |
+
0.03042934462428093
|
| 890 |
+
],
|
| 891 |
+
[
|
| 892 |
+
1.508687973022461,
|
| 893 |
+
0.7216188311576843,
|
| 894 |
+
0.03042934462428093
|
| 895 |
+
],
|
| 896 |
+
[
|
| 897 |
+
1.508687973022461,
|
| 898 |
+
0.7216188311576843,
|
| 899 |
+
0.03042934462428093
|
| 900 |
+
],
|
| 901 |
+
[
|
| 902 |
+
1.4620769023895264,
|
| 903 |
+
0.8330859541893005,
|
| 904 |
+
0.03042934648692608
|
| 905 |
+
],
|
| 906 |
+
[
|
| 907 |
+
1.388969898223877,
|
| 908 |
+
1.0079160928726196,
|
| 909 |
+
0.030429333448410034
|
| 910 |
+
],
|
| 911 |
+
[
|
| 912 |
+
1.3795855045318604,
|
| 913 |
+
1.0303581953048706,
|
| 914 |
+
0.030429333448410034
|
| 915 |
+
],
|
| 916 |
+
[
|
| 917 |
+
1.3748223781585693,
|
| 918 |
+
1.0417490005493164,
|
| 919 |
+
0.030429333448410034
|
| 920 |
+
],
|
| 921 |
+
[
|
| 922 |
+
1.3629900217056274,
|
| 923 |
+
1.0700452327728271,
|
| 924 |
+
0.030429331585764885
|
| 925 |
+
],
|
| 926 |
+
[
|
| 927 |
+
1.2629833221435547,
|
| 928 |
+
1.3092041015625,
|
| 929 |
+
0.03042932040989399
|
| 930 |
+
],
|
| 931 |
+
[
|
| 932 |
+
1.197399616241455,
|
| 933 |
+
1.4660428762435913,
|
| 934 |
+
0.03042932040989399
|
| 935 |
+
],
|
| 936 |
+
[
|
| 937 |
+
1.170562982559204,
|
| 938 |
+
1.5302207469940186,
|
| 939 |
+
0.03042931854724884
|
| 940 |
+
],
|
| 941 |
+
[
|
| 942 |
+
1.1551445722579956,
|
| 943 |
+
1.5670928955078125,
|
| 944 |
+
0.03042931668460369
|
| 945 |
+
],
|
| 946 |
+
[
|
| 947 |
+
1.127187728881836,
|
| 948 |
+
1.6339495182037354,
|
| 949 |
+
0.030429314821958542
|
| 950 |
+
],
|
| 951 |
+
[
|
| 952 |
+
1.0492475032806396,
|
| 953 |
+
1.8203377723693848,
|
| 954 |
+
0.030429307371377945
|
| 955 |
+
],
|
| 956 |
+
[
|
| 957 |
+
1.04924738407135,
|
| 958 |
+
1.8203377723693848,
|
| 959 |
+
0.030429305508732796
|
| 960 |
+
],
|
| 961 |
+
[
|
| 962 |
+
0.9635880589485168,
|
| 963 |
+
1.8671214580535889,
|
| 964 |
+
0.030429303646087646
|
| 965 |
+
],
|
| 966 |
+
[
|
| 967 |
+
0.7433589696884155,
|
| 968 |
+
1.9874018430709839,
|
| 969 |
+
0.030429303646087646
|
| 970 |
+
],
|
| 971 |
+
[
|
| 972 |
+
0.6857983469963074,
|
| 973 |
+
2.018839120864868,
|
| 974 |
+
0.030429301783442497
|
| 975 |
+
],
|
| 976 |
+
[
|
| 977 |
+
0.6285221576690674,
|
| 978 |
+
2.0501210689544678,
|
| 979 |
+
0.030429299920797348
|
| 980 |
+
],
|
| 981 |
+
[
|
| 982 |
+
0.4817010462284088,
|
| 983 |
+
2.1303091049194336,
|
| 984 |
+
0.030429288744926453
|
| 985 |
+
],
|
| 986 |
+
[
|
| 987 |
+
0.34276700019836426,
|
| 988 |
+
2.1320085525512695,
|
| 989 |
+
0.030429285019636154
|
| 990 |
+
],
|
| 991 |
+
[
|
| 992 |
+
0.34276700019836426,
|
| 993 |
+
2.1320085525512695,
|
| 994 |
+
0.030429285019636154
|
| 995 |
+
],
|
| 996 |
+
[
|
| 997 |
+
0.20285966992378235,
|
| 998 |
+
2.132150411605835,
|
| 999 |
+
0.030429285019636154
|
| 1000 |
+
],
|
| 1001 |
+
[
|
| 1002 |
+
0.0631614476442337,
|
| 1003 |
+
2.1322922706604004,
|
| 1004 |
+
0.030429288744926453
|
| 1005 |
+
],
|
| 1006 |
+
[
|
| 1007 |
+
-7.566995918750763e-09,
|
| 1008 |
+
2.049999952316284,
|
| 1009 |
+
0.0304292943328619
|
| 1010 |
+
]
|
| 1011 |
+
],
|
| 1012 |
+
"validated_points": 44,
|
| 1013 |
+
"repaired": false,
|
| 1014 |
+
"clearance_radius_m": 0.62,
|
| 1015 |
+
"window_m": 12.0,
|
| 1016 |
+
"window": "path",
|
| 1017 |
+
"scan_s": 1.38
|
| 1018 |
+
}
|
| 1019 |
+
}
|
| 1020 |
+
}
|
| 1021 |
+
}
|
| 1022 |
+
],
|
| 1023 |
+
"success": false,
|
| 1024 |
+
"planner_seeds": "default",
|
| 1025 |
+
"dr": {
|
| 1026 |
+
"seed": 101,
|
| 1027 |
+
"spawn_jitter": 0.3,
|
| 1028 |
+
"start": [
|
| 1029 |
+
-3.4252,
|
| 1030 |
+
-2.0984,
|
| 1031 |
+
0.2512
|
| 1032 |
+
],
|
| 1033 |
+
"nominal_start": [
|
| 1034 |
+
-3.3,
|
| 1035 |
+
-2.3,
|
| 1036 |
+
0.0
|
| 1037 |
+
]
|
| 1038 |
+
},
|
| 1039 |
+
"output_dir": "/mnt/scratch/xc536_atomic/n052saw_lock_s101/rec/memorystage/000",
|
| 1040 |
+
"steps": 2973,
|
| 1041 |
+
"elapsed_s": 801.013,
|
| 1042 |
+
"episodes_run": 1,
|
| 1043 |
+
"episodes_full_success": 0
|
| 1044 |
+
}
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/armlock_s101_take_item_ticks.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/csvlook.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys, csv
|
| 2 |
+
f, t0, t1 = sys.argv[1], int(sys.argv[2]), int(sys.argv[3])
|
| 3 |
+
rows = list(csv.DictReader(open(f)))
|
| 4 |
+
h = rows[0].keys()
|
| 5 |
+
fing = [c for c in h if 'finger' in c and (c.startswith('q_') or c.startswith('tau_'))]
|
| 6 |
+
print('finger cols:', fing)
|
| 7 |
+
cols = ['eef_x', 'eef_y', 'eef_z', 'item_red_x', 'item_red_y', 'item_red_z', 'weigher_pad0_joint', 'weigher_pad1_joint'] + fing
|
| 8 |
+
for r in rows:
|
| 9 |
+
t = int(r['tick'])
|
| 10 |
+
if t0 <= t <= t1:
|
| 11 |
+
print(t, r['phase'][-10:], ' '.join('%s=%.4f' % (c.replace('right_gripper_', '').replace('_joint', ''), float(r[c])) for c in cols if r.get(c, '') != ''))
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pink_task_space_actions_lock.py
ADDED
|
@@ -0,0 +1,1175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) 2022-2025, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md).
|
| 2 |
+
# All rights reserved.
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: BSD-3-Clause
|
| 5 |
+
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
import os
|
| 9 |
+
|
| 10 |
+
import torch
|
| 11 |
+
from collections.abc import Sequence
|
| 12 |
+
from typing import TYPE_CHECKING
|
| 13 |
+
from dataclasses import MISSING
|
| 14 |
+
|
| 15 |
+
from pink.tasks import FrameTask
|
| 16 |
+
|
| 17 |
+
from gymnasium import spaces
|
| 18 |
+
|
| 19 |
+
import isaaclab.utils.math as math_utils
|
| 20 |
+
from isaaclab.assets.articulation import Articulation
|
| 21 |
+
from magicsim.Env.Robot.mdp.pink_ik import LocalFrameTask, PinkIKController
|
| 22 |
+
from magicsim.Env.Robot.mdp.action_manager import ActionTerm
|
| 23 |
+
from magicsim.Env.Robot.mdp.differential_ik import DifferentialIKController
|
| 24 |
+
|
| 25 |
+
if TYPE_CHECKING:
|
| 26 |
+
from isaaclab.envs import ManagerBasedEnv
|
| 27 |
+
from isaaclab.envs.utils.io_descriptors import GenericActionIODescriptor
|
| 28 |
+
|
| 29 |
+
from . import pink_actions_cfg
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
class PinkInverseKinematicsAction(ActionTerm):
|
| 33 |
+
r"""Pink Inverse Kinematics action term.
|
| 34 |
+
|
| 35 |
+
This action term processes the action tensor and sets these setpoints in the pink IK framework.
|
| 36 |
+
The action tensor is ordered in the order of the tasks defined in PinkIKControllerCfg.
|
| 37 |
+
"""
|
| 38 |
+
|
| 39 |
+
cfg: pink_actions_cfg.PinkInverseKinematicsActionCfg
|
| 40 |
+
"""Configuration for the Pink Inverse Kinematics action term."""
|
| 41 |
+
|
| 42 |
+
_asset: Articulation
|
| 43 |
+
"""The articulation asset to which the action term is applied."""
|
| 44 |
+
|
| 45 |
+
def __init__(
|
| 46 |
+
self, cfg: pink_actions_cfg.PinkInverseKinematicsActionCfg, env: ManagerBasedEnv
|
| 47 |
+
):
|
| 48 |
+
"""Initialize the Pink Inverse Kinematics action term.
|
| 49 |
+
|
| 50 |
+
Args:
|
| 51 |
+
cfg: The configuration for this action term.
|
| 52 |
+
env: The environment in which the action term will be applied.
|
| 53 |
+
"""
|
| 54 |
+
self._step_count = 0
|
| 55 |
+
super().__init__(cfg, env)
|
| 56 |
+
|
| 57 |
+
self._env = env
|
| 58 |
+
self._sim_dt = env.sim.get_physics_dt()
|
| 59 |
+
|
| 60 |
+
# Initialize joint information
|
| 61 |
+
self._initialize_joint_info()
|
| 62 |
+
|
| 63 |
+
# Initialize IK controllers
|
| 64 |
+
self._initialize_ik_controllers()
|
| 65 |
+
|
| 66 |
+
# Initialize action tensors
|
| 67 |
+
self._raw_actions = torch.zeros(
|
| 68 |
+
self.num_envs, self.action_dim, device=self.device
|
| 69 |
+
)
|
| 70 |
+
# Last passed (valid) action per env; used when input becomes NaN (first time: use current EEF)
|
| 71 |
+
self._last_passed_action = torch.zeros_like(self._raw_actions)
|
| 72 |
+
# NaN=HOLD anchors (cfg.nan_hold, 2026-10-02 idle-arm flail fix):
|
| 73 |
+
# per frame-task group, the pose captured when the group turned NaN —
|
| 74 |
+
# commanded as a CONSTANT target until a real target returns. NaN =
|
| 75 |
+
# no anchor armed.
|
| 76 |
+
self._nan_anchor = torch.full_like(self._raw_actions, float("nan"))
|
| 77 |
+
# _processed_actions stores joint positions output from IK, shape (num_envs, num_controlled_joints)
|
| 78 |
+
self._processed_actions = torch.zeros(
|
| 79 |
+
self.num_envs, len(self._controlled_joint_ids), device=self.device
|
| 80 |
+
)
|
| 81 |
+
|
| 82 |
+
# PhysX Articulation Floating joint indices offset from IsaacLab Articulation joint indices
|
| 83 |
+
self._physx_floating_joint_indices_offset = 6
|
| 84 |
+
|
| 85 |
+
# Initialize env_ids (all envs by default)
|
| 86 |
+
self._env_ids = torch.arange(self.num_envs, device=self.device)
|
| 87 |
+
# Wrist override (opt-in per env, see set_wrist_override): while set,
|
| 88 |
+
# the named frame's task ignores rotation about its own z (5-DoF) and
|
| 89 |
+
# the named joint is driven straight to the given target instead of
|
| 90 |
+
# whatever the IK solution says. Lets a skill spin the wrist in joint
|
| 91 |
+
# space (a screw unwind) with the TCP pinned on the wrist axis by
|
| 92 |
+
# construction, instead of asking the IK to track a rotating pose.
|
| 93 |
+
# {env_id: (task_index, joint_column, target_rad)}
|
| 94 |
+
self._wrist_override: dict[int, tuple] = {}
|
| 95 |
+
|
| 96 |
+
# Pre-allocate tensors for runtime use
|
| 97 |
+
self._initialize_helper_tensors()
|
| 98 |
+
|
| 99 |
+
# Initialize action space
|
| 100 |
+
self._action_space = spaces.Box(
|
| 101 |
+
low=self.cfg.action_space[0].cpu().numpy(),
|
| 102 |
+
high=self.cfg.action_space[1].cpu().numpy(),
|
| 103 |
+
dtype=float,
|
| 104 |
+
)
|
| 105 |
+
|
| 106 |
+
def _initialize_joint_info(self) -> None:
|
| 107 |
+
"""Initialize joint IDs and names based on configuration."""
|
| 108 |
+
# Resolve pink controlled joints
|
| 109 |
+
self._isaaclab_controlled_joint_ids, self._isaaclab_controlled_joint_names = (
|
| 110 |
+
self._asset.find_joints(self.cfg.pink_controlled_joint_names)
|
| 111 |
+
)
|
| 112 |
+
self.cfg.controller.joint_names = self._isaaclab_controlled_joint_names
|
| 113 |
+
self._isaaclab_all_joint_ids = list(range(len(self._asset.data.joint_names)))
|
| 114 |
+
self.cfg.controller.all_joint_names = self._asset.data.joint_names
|
| 115 |
+
|
| 116 |
+
# Resolve hand joints (optional)
|
| 117 |
+
if self.cfg.hand_joint_names not in (None, MISSING):
|
| 118 |
+
self._hand_joint_ids, self._hand_joint_names = self._asset.find_joints(
|
| 119 |
+
self.cfg.hand_joint_names
|
| 120 |
+
)
|
| 121 |
+
else:
|
| 122 |
+
self._hand_joint_ids, self._hand_joint_names = [], []
|
| 123 |
+
|
| 124 |
+
# Combine all joint information
|
| 125 |
+
self._controlled_joint_ids = (
|
| 126 |
+
self._isaaclab_controlled_joint_ids + self._hand_joint_ids
|
| 127 |
+
)
|
| 128 |
+
self._controlled_joint_names = (
|
| 129 |
+
self._isaaclab_controlled_joint_names + self._hand_joint_names
|
| 130 |
+
)
|
| 131 |
+
assert len(self._controlled_joint_ids) == self.cfg.num_joints, (
|
| 132 |
+
f"Number of controlled joints does not match the number of joints to control: {len(self._controlled_joint_ids)} != {self.cfg.num_joints}"
|
| 133 |
+
)
|
| 134 |
+
|
| 135 |
+
def _initialize_ik_controllers(self) -> None:
|
| 136 |
+
"""Initialize Pink IK controllers for all environments."""
|
| 137 |
+
assert self._env.num_envs > 0, (
|
| 138 |
+
"Number of environments specified are less than 1."
|
| 139 |
+
)
|
| 140 |
+
|
| 141 |
+
self._ik_controllers = []
|
| 142 |
+
robot_cfg = self._asset.cfg
|
| 143 |
+
for _ in range(self._env.num_envs):
|
| 144 |
+
controller_cfg = self.cfg.controller.copy()
|
| 145 |
+
# If urdf_path is not specified in controller config, try to get it from various sources
|
| 146 |
+
if controller_cfg.urdf_path is None:
|
| 147 |
+
# 1. Try to get from asset configuration
|
| 148 |
+
if hasattr(robot_cfg, "urdf_path"):
|
| 149 |
+
controller_cfg.urdf_path = robot_cfg.urdf_path
|
| 150 |
+
# 2. Try to get from spawn configuration if it's a UsdFileCfg (common in IsaacLab)
|
| 151 |
+
elif hasattr(robot_cfg.spawn, "urdf_path"):
|
| 152 |
+
controller_cfg.urdf_path = robot_cfg.spawn.urdf_path
|
| 153 |
+
# 3. Try to infer from G1 specific configs if available
|
| 154 |
+
# Note: This is a fallback for G1 robot specific structure
|
| 155 |
+
elif (
|
| 156 |
+
hasattr(robot_cfg, "spawn")
|
| 157 |
+
and hasattr(robot_cfg.spawn, "usd_path")
|
| 158 |
+
and "g1" in str(robot_cfg.spawn.usd_path).lower()
|
| 159 |
+
):
|
| 160 |
+
# Attempt to find URDF in expected location relative to asset root or known path
|
| 161 |
+
pass
|
| 162 |
+
|
| 163 |
+
self._ik_controllers.append(
|
| 164 |
+
PinkIKController(
|
| 165 |
+
cfg=controller_cfg,
|
| 166 |
+
robot_cfg=robot_cfg,
|
| 167 |
+
device=self.device,
|
| 168 |
+
controlled_joint_indices=self._isaaclab_controlled_joint_ids,
|
| 169 |
+
)
|
| 170 |
+
)
|
| 171 |
+
|
| 172 |
+
def _initialize_helper_tensors(self) -> None:
|
| 173 |
+
"""Pre-allocate tensors and cache values for performance optimization."""
|
| 174 |
+
# Cache frequently used tensor versions of joint IDs to avoid repeated creation
|
| 175 |
+
self._controlled_joint_ids_tensor = torch.tensor(
|
| 176 |
+
self._controlled_joint_ids, device=self.device
|
| 177 |
+
)
|
| 178 |
+
|
| 179 |
+
# Cache base link index to avoid string lookup every time
|
| 180 |
+
if self.cfg.controller.base_link_name == "root":
|
| 181 |
+
self._base_link_idx = None
|
| 182 |
+
else:
|
| 183 |
+
articulation_data = self._env.scene[
|
| 184 |
+
self.cfg.controller.articulation_name
|
| 185 |
+
].data
|
| 186 |
+
self._base_link_idx = articulation_data.body_names.index(
|
| 187 |
+
self.cfg.controller.base_link_name
|
| 188 |
+
)
|
| 189 |
+
|
| 190 |
+
# Pre-allocate working tensors
|
| 191 |
+
# Count only FrameTask instances in variable_input_tasks (not all tasks)
|
| 192 |
+
num_frame_tasks = sum(
|
| 193 |
+
1
|
| 194 |
+
for task in self._ik_controllers[0].cfg.variable_input_tasks
|
| 195 |
+
if isinstance(task, FrameTask)
|
| 196 |
+
)
|
| 197 |
+
self._num_frame_tasks = num_frame_tasks
|
| 198 |
+
self._controlled_frame_poses = torch.zeros(
|
| 199 |
+
num_frame_tasks, self.num_envs, 4, 4, device=self.device
|
| 200 |
+
)
|
| 201 |
+
|
| 202 |
+
# Pre-allocate tensor for base frame computations
|
| 203 |
+
self._base_link_frame_buffer = torch.zeros(
|
| 204 |
+
self.num_envs, 4, 4, device=self.device
|
| 205 |
+
)
|
| 206 |
+
|
| 207 |
+
# Cache EEF body indices for NaN action handling
|
| 208 |
+
# Maps frame task index → body index in articulation data
|
| 209 |
+
self._eef_body_indices: list[int] = []
|
| 210 |
+
if self.cfg.target_eef_link_names not in (None, MISSING):
|
| 211 |
+
for link_name in self.cfg.target_eef_link_names.values():
|
| 212 |
+
body_idx = self._asset.data.body_names.index(link_name)
|
| 213 |
+
self._eef_body_indices.append(body_idx)
|
| 214 |
+
|
| 215 |
+
# ==================== Properties ====================
|
| 216 |
+
|
| 217 |
+
@property
|
| 218 |
+
def hand_joint_dim(self) -> int:
|
| 219 |
+
"""Dimension for hand joint positions."""
|
| 220 |
+
return self.cfg.controller.num_hand_joints
|
| 221 |
+
|
| 222 |
+
@property
|
| 223 |
+
def position_dim(self) -> int:
|
| 224 |
+
"""Dimension for position (x, y, z)."""
|
| 225 |
+
return 3
|
| 226 |
+
|
| 227 |
+
@property
|
| 228 |
+
def orientation_dim(self) -> int:
|
| 229 |
+
"""Dimension for orientation (w, x, y, z)."""
|
| 230 |
+
return 4
|
| 231 |
+
|
| 232 |
+
@property
|
| 233 |
+
def pose_dim(self) -> int:
|
| 234 |
+
"""Total pose dimension (position + orientation)."""
|
| 235 |
+
return self.position_dim + self.orientation_dim
|
| 236 |
+
|
| 237 |
+
@property
|
| 238 |
+
def action_dim(self) -> int:
|
| 239 |
+
"""Dimension of the action space (based on number of tasks and pose dimension)."""
|
| 240 |
+
# Count only FrameTask instances in variable_input_tasks
|
| 241 |
+
frame_tasks_count = sum(
|
| 242 |
+
1
|
| 243 |
+
for task in self._ik_controllers[0].cfg.variable_input_tasks
|
| 244 |
+
if isinstance(task, FrameTask)
|
| 245 |
+
)
|
| 246 |
+
return frame_tasks_count * self.pose_dim + self.hand_joint_dim
|
| 247 |
+
|
| 248 |
+
@property
|
| 249 |
+
def env_ids(self) -> torch.Tensor:
|
| 250 |
+
"""Get the current valid environment IDs (excluding NaN action envs)."""
|
| 251 |
+
return self._env_ids
|
| 252 |
+
|
| 253 |
+
@property
|
| 254 |
+
def raw_actions(self) -> torch.Tensor:
|
| 255 |
+
"""Get the raw actions tensor."""
|
| 256 |
+
return self._raw_actions
|
| 257 |
+
|
| 258 |
+
@property
|
| 259 |
+
def processed_actions(self) -> torch.Tensor:
|
| 260 |
+
"""Get the processed actions tensor."""
|
| 261 |
+
return self._processed_actions
|
| 262 |
+
|
| 263 |
+
@property
|
| 264 |
+
def action_space(self) -> spaces.Box:
|
| 265 |
+
"""Get the action space."""
|
| 266 |
+
return self._action_space
|
| 267 |
+
|
| 268 |
+
@property
|
| 269 |
+
def IO_descriptor(self) -> GenericActionIODescriptor:
|
| 270 |
+
"""The IO descriptor of the action term.
|
| 271 |
+
|
| 272 |
+
This descriptor is used to describe the action term of the pink inverse kinematics action.
|
| 273 |
+
It adds the following information to the base descriptor:
|
| 274 |
+
- scale: The scale of the action term.
|
| 275 |
+
- offset: The offset of the action term.
|
| 276 |
+
- clip: The clip of the action term.
|
| 277 |
+
- pink_controller_joint_names: The names of the pink controller joints.
|
| 278 |
+
- hand_joint_names: The names of the hand joints.
|
| 279 |
+
- controller_cfg: The configuration of the pink controller.
|
| 280 |
+
|
| 281 |
+
Returns:
|
| 282 |
+
The IO descriptor of the action term.
|
| 283 |
+
"""
|
| 284 |
+
super().IO_descriptor
|
| 285 |
+
self._IO_descriptor.shape = (self.action_dim,)
|
| 286 |
+
self._IO_descriptor.dtype = str(self.raw_actions.dtype)
|
| 287 |
+
self._IO_descriptor.action_type = "PinkInverseKinematicsAction"
|
| 288 |
+
self._IO_descriptor.pink_controller_joint_names = (
|
| 289 |
+
self._isaaclab_controlled_joint_names
|
| 290 |
+
)
|
| 291 |
+
self._IO_descriptor.hand_joint_names = self._hand_joint_names
|
| 292 |
+
self._IO_descriptor.extras["controller_cfg"] = self.cfg.controller.__dict__
|
| 293 |
+
return self._IO_descriptor
|
| 294 |
+
|
| 295 |
+
# """
|
| 296 |
+
# Operations.
|
| 297 |
+
# """
|
| 298 |
+
|
| 299 |
+
def _handle_nan_actions(
|
| 300 |
+
self, actions: torch.Tensor, selected_env_ids: torch.Tensor
|
| 301 |
+
) -> tuple[torch.Tensor | None, torch.Tensor]:
|
| 302 |
+
"""Handle NaN actions: use last passed action if available, else current EEF pose.
|
| 303 |
+
|
| 304 |
+
Actions are structured as groups of pose_dim (7) per frame task, optionally
|
| 305 |
+
followed by hand joint values. The logic is:
|
| 306 |
+
|
| 307 |
+
1. Include all envs by default (do not skip all-NaN envs).
|
| 308 |
+
2. For each group of 7 that has any NaN: use last passed action if valid;
|
| 309 |
+
else (no valid previous action) behavior depends on
|
| 310 |
+
``cfg.fallback_to_current``:
|
| 311 |
+
- True (default): fall back to current EEF pose.
|
| 312 |
+
- False: skip this env (drop it from the returned batch).
|
| 313 |
+
3. For hand joints: same logic — last passed if valid, else current joint
|
| 314 |
+
positions (or skip when ``fallback_to_current`` is False).
|
| 315 |
+
|
| 316 |
+
Args:
|
| 317 |
+
actions: Input action tensor of shape ``(len(selected_env_ids), action_dim)``.
|
| 318 |
+
Rows are **already** the slice for those envs (same order as
|
| 319 |
+
``selected_env_ids``), as produced by ``ActionManager.process_action``.
|
| 320 |
+
Do not index again with global env ids as row indices.
|
| 321 |
+
selected_env_ids: Selected environment IDs (global indices).
|
| 322 |
+
|
| 323 |
+
Returns:
|
| 324 |
+
Tuple of (processed_actions, valid_env_ids).
|
| 325 |
+
processed_actions is None if no valid envs exist.
|
| 326 |
+
"""
|
| 327 |
+
env_ids = selected_env_ids
|
| 328 |
+
if len(env_ids) == 0:
|
| 329 |
+
return None, env_ids
|
| 330 |
+
|
| 331 |
+
if actions.shape[0] != len(env_ids):
|
| 332 |
+
raise ValueError(
|
| 333 |
+
f"Pink IK actions batch ({actions.shape[0]}) must match len(env_ids) ({len(env_ids)}); "
|
| 334 |
+
"actions should be the env slice in env_ids order, not the full buffer indexed by id."
|
| 335 |
+
)
|
| 336 |
+
|
| 337 |
+
valid_actions = actions.clone()
|
| 338 |
+
fallback_to_current = self.cfg.fallback_to_current
|
| 339 |
+
skip_mask = torch.zeros(
|
| 340 |
+
len(env_ids), dtype=torch.bool, device=valid_actions.device
|
| 341 |
+
)
|
| 342 |
+
|
| 343 |
+
# For each group of pose_dim (7), fill NaN with last passed action or current EEF pose
|
| 344 |
+
for task_idx in range(self._num_frame_tasks):
|
| 345 |
+
start = task_idx * self.pose_dim
|
| 346 |
+
end = start + self.pose_dim
|
| 347 |
+
|
| 348 |
+
group_nan_mask = torch.isnan(valid_actions[:, start:end]).any(dim=1)
|
| 349 |
+
if getattr(self.cfg, "nan_hold", False):
|
| 350 |
+
# NaN=HOLD (2026-10-02 idle-arm flail): a NaN group commands
|
| 351 |
+
# the pose ANCHORED when it turned NaN — a constant target
|
| 352 |
+
# pink holds with real stiffness. The legacy fallback
|
| 353 |
+
# ("last passed, else current pose") is a zero-stiffness
|
| 354 |
+
# follow target: the idle arm drifts (null-space posture
|
| 355 |
+
# pull + gravity-comp residual) and the drift is chased.
|
| 356 |
+
real_mask = ~group_nan_mask
|
| 357 |
+
if real_mask.any():
|
| 358 |
+
# live target -> disarm the anchor
|
| 359 |
+
self._nan_anchor[env_ids[real_mask], start:end] = float("nan")
|
| 360 |
+
if group_nan_mask.any():
|
| 361 |
+
anchors = self._nan_anchor[env_ids, start:end]
|
| 362 |
+
need_cap = group_nan_mask & torch.isnan(anchors).any(dim=1)
|
| 363 |
+
if need_cap.any():
|
| 364 |
+
cap_ids = env_ids[need_cap]
|
| 365 |
+
self._nan_anchor[cap_ids, start:end] = (
|
| 366 |
+
self._get_current_eef_pose(cap_ids, task_idx)
|
| 367 |
+
)
|
| 368 |
+
valid_actions[group_nan_mask, start:end] = self._nan_anchor[
|
| 369 |
+
env_ids[group_nan_mask], start:end
|
| 370 |
+
]
|
| 371 |
+
continue
|
| 372 |
+
if group_nan_mask.any():
|
| 373 |
+
nan_env_ids = env_ids[group_nan_mask]
|
| 374 |
+
last_poses = self._last_passed_action[nan_env_ids, start:end]
|
| 375 |
+
has_valid_last = (~torch.isnan(last_poses)).all(dim=1) & (
|
| 376 |
+
last_poses[:, 3:7].abs().sum(dim=1) > 0.01
|
| 377 |
+
)
|
| 378 |
+
if fallback_to_current:
|
| 379 |
+
current_poses = self._get_current_eef_pose(nan_env_ids, task_idx)
|
| 380 |
+
fill_values = torch.where(
|
| 381 |
+
has_valid_last.unsqueeze(1).expand_as(current_poses),
|
| 382 |
+
last_poses,
|
| 383 |
+
current_poses,
|
| 384 |
+
)
|
| 385 |
+
valid_actions[group_nan_mask, start:end] = fill_values
|
| 386 |
+
else:
|
| 387 |
+
# Use last_poses only where valid; mark the rest for skipping.
|
| 388 |
+
valid_actions[group_nan_mask, start:end] = last_poses
|
| 389 |
+
group_local_idx = group_nan_mask.nonzero(as_tuple=True)[0]
|
| 390 |
+
skip_mask[group_local_idx[~has_valid_last]] = True
|
| 391 |
+
|
| 392 |
+
# Handle NaN in hand joints: last passed if valid, else current joint positions
|
| 393 |
+
if self.hand_joint_dim > 0:
|
| 394 |
+
hand_start = self._num_frame_tasks * self.pose_dim
|
| 395 |
+
hand_nan_mask = torch.isnan(valid_actions[:, hand_start:]).any(dim=1)
|
| 396 |
+
if hand_nan_mask.any():
|
| 397 |
+
nan_env_ids = env_ids[hand_nan_mask]
|
| 398 |
+
last_hand = self._last_passed_action[nan_env_ids, hand_start:]
|
| 399 |
+
has_valid_last_hand = ~torch.isnan(last_hand).any(dim=1)
|
| 400 |
+
if fallback_to_current:
|
| 401 |
+
current_hand_pos = self._asset.data.joint_pos[nan_env_ids][
|
| 402 |
+
:, self._hand_joint_ids
|
| 403 |
+
]
|
| 404 |
+
fill_hand = torch.where(
|
| 405 |
+
has_valid_last_hand.unsqueeze(1).expand_as(current_hand_pos),
|
| 406 |
+
last_hand,
|
| 407 |
+
current_hand_pos,
|
| 408 |
+
)
|
| 409 |
+
valid_actions[hand_nan_mask, hand_start:] = fill_hand
|
| 410 |
+
else:
|
| 411 |
+
valid_actions[hand_nan_mask, hand_start:] = last_hand
|
| 412 |
+
hand_local_idx = hand_nan_mask.nonzero(as_tuple=True)[0]
|
| 413 |
+
skip_mask[hand_local_idx[~has_valid_last_hand]] = True
|
| 414 |
+
|
| 415 |
+
if skip_mask.any():
|
| 416 |
+
keep_mask = ~skip_mask
|
| 417 |
+
valid_actions = valid_actions[keep_mask]
|
| 418 |
+
env_ids = env_ids[keep_mask]
|
| 419 |
+
if len(env_ids) == 0:
|
| 420 |
+
return None, env_ids
|
| 421 |
+
|
| 422 |
+
return valid_actions, env_ids
|
| 423 |
+
|
| 424 |
+
def _get_current_eef_pose(
|
| 425 |
+
self, env_ids: torch.Tensor, task_idx: int
|
| 426 |
+
) -> torch.Tensor:
|
| 427 |
+
"""Get current EEF pose for specified envs and frame task index.
|
| 428 |
+
|
| 429 |
+
Returns the pose as [pos_x, pos_y, pos_z, quat_w, quat_x, quat_y, quat_z]
|
| 430 |
+
in the same coordinate frame as the input actions (base-relative when
|
| 431 |
+
``relative_to_base`` is True, otherwise env-origin-relative world frame).
|
| 432 |
+
|
| 433 |
+
Args:
|
| 434 |
+
env_ids: Environment IDs for which to get the current EEF pose.
|
| 435 |
+
task_idx: Frame task index (0-based, counting only FrameTask instances).
|
| 436 |
+
|
| 437 |
+
Returns:
|
| 438 |
+
Current EEF pose tensor of shape ``(len(env_ids), 7)``.
|
| 439 |
+
"""
|
| 440 |
+
body_idx = self._eef_body_indices[task_idx]
|
| 441 |
+
|
| 442 |
+
# Get world-frame pose from articulation data: [pos(3), quat(4)]
|
| 443 |
+
eef_state_w = self._asset.data.body_link_state_w[env_ids, body_idx, :7]
|
| 444 |
+
eef_pos_w = eef_state_w[:, :3]
|
| 445 |
+
eef_quat_w = eef_state_w[:, 3:7]
|
| 446 |
+
|
| 447 |
+
# Convert position to env-origin-relative frame
|
| 448 |
+
eef_pos = eef_pos_w - self._env.scene.env_origins[env_ids]
|
| 449 |
+
|
| 450 |
+
if self.cfg.relative_to_base:
|
| 451 |
+
# Compute base link pose in env-origin frame
|
| 452 |
+
if self.cfg.controller.base_link_name == "root":
|
| 453 |
+
base_pos = (
|
| 454 |
+
self._asset.data.root_pos_w[env_ids]
|
| 455 |
+
- self._env.scene.env_origins[env_ids]
|
| 456 |
+
)
|
| 457 |
+
base_quat = self._asset.data.root_quat_w[env_ids]
|
| 458 |
+
else:
|
| 459 |
+
articulation_data = self._env.scene[
|
| 460 |
+
self.cfg.controller.articulation_name
|
| 461 |
+
].data
|
| 462 |
+
base_state = articulation_data.body_link_state_w[
|
| 463 |
+
env_ids, self._base_link_idx, :7
|
| 464 |
+
]
|
| 465 |
+
base_pos = base_state[:, :3] - self._env.scene.env_origins[env_ids]
|
| 466 |
+
base_quat = base_state[:, 3:7]
|
| 467 |
+
|
| 468 |
+
# Express EEF pose relative to the base link frame
|
| 469 |
+
eef_pos_base, eef_quat_base = math_utils.subtract_frame_transforms(
|
| 470 |
+
base_pos, base_quat, eef_pos, eef_quat_w
|
| 471 |
+
)
|
| 472 |
+
return torch.cat([eef_pos_base, eef_quat_base], dim=1)
|
| 473 |
+
else:
|
| 474 |
+
return torch.cat([eef_pos, eef_quat_w], dim=1)
|
| 475 |
+
|
| 476 |
+
def process_actions(self, actions: torch.Tensor, env_ids: torch.Tensor) -> None:
|
| 477 |
+
"""Process the input actions and set targets for each task.
|
| 478 |
+
|
| 479 |
+
Args:
|
| 480 |
+
actions: The input actions tensor.
|
| 481 |
+
env_ids: The environment IDs to process.
|
| 482 |
+
"""
|
| 483 |
+
if self._step_count % self.cfg.decimation != 0:
|
| 484 |
+
return
|
| 485 |
+
|
| 486 |
+
# Handle env_ids
|
| 487 |
+
if env_ids is None:
|
| 488 |
+
selected_env_ids = torch.arange(self.num_envs, device=self.device)
|
| 489 |
+
elif not isinstance(env_ids, torch.Tensor):
|
| 490 |
+
selected_env_ids = torch.tensor(
|
| 491 |
+
env_ids, device=self.device, dtype=torch.int32
|
| 492 |
+
)
|
| 493 |
+
else:
|
| 494 |
+
selected_env_ids = env_ids
|
| 495 |
+
|
| 496 |
+
# Handle NaN actions: skip all-NaN envs, fill partial NaN groups with current EEF pose
|
| 497 |
+
valid_actions, self._env_ids = self._handle_nan_actions(
|
| 498 |
+
actions, selected_env_ids
|
| 499 |
+
)
|
| 500 |
+
# MMB_ARM_LOCK experiment (536, N052 sawyer): while the pose input is
|
| 501 |
+
# all-NaN (a hold), keep the arm joint targets frozen at their value
|
| 502 |
+
# when the hold began instead of re-solving IK from measured q.
|
| 503 |
+
if os.environ.get("MMB_ARM_LOCK"):
|
| 504 |
+
_hold = bool(actions is not None and len(actions) and torch.isnan(actions[0, : self.pose_dim]).all())
|
| 505 |
+
if _hold and not getattr(self, "_arm_locked", False):
|
| 506 |
+
with open(os.environ["MMB_ARM_LOCK"], "a") as _f:
|
| 507 |
+
_f.write("LOCK %d %s\n" % (self._step_count, self._processed_actions[0].tolist()))
|
| 508 |
+
elif not _hold and getattr(self, "_arm_locked", False):
|
| 509 |
+
with open(os.environ["MMB_ARM_LOCK"], "a") as _f:
|
| 510 |
+
_f.write("UNLOCK %d\n" % self._step_count)
|
| 511 |
+
self._arm_locked = _hold
|
| 512 |
+
if os.environ.get("MMB_PINK_LOG"):
|
| 513 |
+
with open(os.environ["MMB_PINK_LOG"], "a") as _f:
|
| 514 |
+
_raw = actions[0].tolist() if actions is not None and len(actions) else None
|
| 515 |
+
_f.write("IN %d raw=%s valid=%s envs=%s\n" % (self._step_count, _raw, None if valid_actions is None else valid_actions[0].tolist(), self._env_ids.tolist()))
|
| 516 |
+
|
| 517 |
+
# If no valid envs, return early
|
| 518 |
+
if valid_actions is None or len(self._env_ids) == 0:
|
| 519 |
+
return
|
| 520 |
+
|
| 521 |
+
# Store raw actions and record last passed action for NaN fallback
|
| 522 |
+
self._raw_actions[self._env_ids] = valid_actions
|
| 523 |
+
self._last_passed_action[self._env_ids] = valid_actions.clone()
|
| 524 |
+
|
| 525 |
+
# Extract hand joint positions directly (no cloning needed)
|
| 526 |
+
# Handle case when hand_joint_dim = 0: -0 is same as 0, so slice would be whole tensor
|
| 527 |
+
if self.hand_joint_dim > 0:
|
| 528 |
+
self._target_hand_joint_positions = valid_actions[:, -self.hand_joint_dim :]
|
| 529 |
+
else:
|
| 530 |
+
self._target_hand_joint_positions = torch.zeros(
|
| 531 |
+
(valid_actions.shape[0], 0), device=self.device
|
| 532 |
+
)
|
| 533 |
+
|
| 534 |
+
# Get base link frame transformation for valid envs only
|
| 535 |
+
all_base_link_frames = self._get_base_link_frame_transform()
|
| 536 |
+
self.base_link_frame_in_world_rf = all_base_link_frames[self._env_ids]
|
| 537 |
+
|
| 538 |
+
# Process controlled frame poses for valid envs
|
| 539 |
+
controlled_frame_poses = self._extract_controlled_frame_poses(valid_actions)
|
| 540 |
+
|
| 541 |
+
# DEBUG: Print raw action and controlled frame poses
|
| 542 |
+
# print(f"\n=== Pink IK process_actions DEBUG ===")
|
| 543 |
+
# print(f"Raw action (first env): pos={valid_actions[0, :3].cpu().numpy()}, quat={valid_actions[0, 3:7].cpu().numpy()}")
|
| 544 |
+
# print(f"relative_to_base: {self.cfg.relative_to_base}")
|
| 545 |
+
# print(f"Controlled frame poses (world frame):\n{controlled_frame_poses[0, 0].cpu().numpy()}")
|
| 546 |
+
|
| 547 |
+
# NOTE(magics): We assume actions are already in the Base Link Frame (Pelvis) for LocalFrameTask.
|
| 548 |
+
# This bypasses the World-to-Base transformation to allow direct local control.
|
| 549 |
+
# If using standard FrameTask (World Frame), this would imply inputs are also in Local Frame
|
| 550 |
+
# but interpreted as World Frame, which might be incorrect for mixed usage.
|
| 551 |
+
# But for G1 LocalFrameTask usage, this is the correct behavior for Body-relative control.
|
| 552 |
+
if self.cfg.relative_to_base:
|
| 553 |
+
positions, rotation_matrices = math_utils.unmake_pose(
|
| 554 |
+
controlled_frame_poses
|
| 555 |
+
)
|
| 556 |
+
transformed_poses = (positions, rotation_matrices)
|
| 557 |
+
else:
|
| 558 |
+
transformed_poses = self._transform_poses_to_base_link_frame(
|
| 559 |
+
controlled_frame_poses
|
| 560 |
+
)
|
| 561 |
+
# DEBUG: Print after transformation
|
| 562 |
+
# print(f"After transform_to_base_link_frame:")
|
| 563 |
+
# print(f" positions: {transformed_poses[0].cpu().numpy()}")
|
| 564 |
+
# print(f" rotation_matrices: {transformed_poses[1][0, 0].cpu().numpy()}")
|
| 565 |
+
|
| 566 |
+
# Set targets for valid envs only
|
| 567 |
+
self._set_task_targets(transformed_poses)
|
| 568 |
+
|
| 569 |
+
def _get_base_link_frame_transform(self) -> torch.Tensor:
|
| 570 |
+
"""Get the base link frame transformation matrix.
|
| 571 |
+
|
| 572 |
+
Returns:
|
| 573 |
+
Base link frame transformation matrix.
|
| 574 |
+
"""
|
| 575 |
+
if self.cfg.controller.base_link_name == "root":
|
| 576 |
+
base_pos_w = self._asset.data.root_pos_w
|
| 577 |
+
base_quat_w = self._asset.data.root_quat_w
|
| 578 |
+
torch.sub(
|
| 579 |
+
base_pos_w,
|
| 580 |
+
self._env.scene.env_origins,
|
| 581 |
+
out=self._base_link_frame_buffer[:, :3, 3],
|
| 582 |
+
)
|
| 583 |
+
return math_utils.make_pose(
|
| 584 |
+
self._base_link_frame_buffer[:, :3, 3],
|
| 585 |
+
math_utils.matrix_from_quat(base_quat_w),
|
| 586 |
+
)
|
| 587 |
+
|
| 588 |
+
# Get base link frame pose in world origin using cached index
|
| 589 |
+
articulation_data = self._env.scene[self.cfg.controller.articulation_name].data
|
| 590 |
+
base_link_frame_in_world_origin = articulation_data.body_link_state_w[
|
| 591 |
+
:, self._base_link_idx, :7
|
| 592 |
+
]
|
| 593 |
+
|
| 594 |
+
# Transform to environment origin frame (reuse buffer to avoid allocation)
|
| 595 |
+
torch.sub(
|
| 596 |
+
base_link_frame_in_world_origin[:, :3],
|
| 597 |
+
self._env.scene.env_origins,
|
| 598 |
+
out=self._base_link_frame_buffer[:, :3, 3],
|
| 599 |
+
)
|
| 600 |
+
|
| 601 |
+
# Copy orientation (avoid clone)
|
| 602 |
+
base_link_frame_quat = base_link_frame_in_world_origin[:, 3:7]
|
| 603 |
+
|
| 604 |
+
# Create transformation matrix
|
| 605 |
+
return math_utils.make_pose(
|
| 606 |
+
self._base_link_frame_buffer[:, :3, 3],
|
| 607 |
+
math_utils.matrix_from_quat(base_link_frame_quat),
|
| 608 |
+
)
|
| 609 |
+
|
| 610 |
+
def _extract_controlled_frame_poses(self, actions: torch.Tensor) -> torch.Tensor:
|
| 611 |
+
"""Extract controlled frame poses from action tensor for valid envs.
|
| 612 |
+
|
| 613 |
+
Args:
|
| 614 |
+
actions: The action tensor for valid envs, shape (num_valid_envs, action_dim).
|
| 615 |
+
|
| 616 |
+
Returns:
|
| 617 |
+
Controlled frame poses tensor, shape (num_frame_tasks, num_valid_envs, 4, 4).
|
| 618 |
+
"""
|
| 619 |
+
num_valid_envs = actions.shape[0]
|
| 620 |
+
# Create tensor for valid envs (cannot use pre-allocated when size varies)
|
| 621 |
+
controlled_frame_poses = torch.zeros(
|
| 622 |
+
self._num_frame_tasks, num_valid_envs, 4, 4, device=self.device
|
| 623 |
+
)
|
| 624 |
+
|
| 625 |
+
for task_index in range(self._num_frame_tasks):
|
| 626 |
+
# Extract position and orientation for this task
|
| 627 |
+
pos_start = task_index * self.pose_dim
|
| 628 |
+
pos_end = pos_start + self.position_dim
|
| 629 |
+
quat_start = pos_end
|
| 630 |
+
quat_end = (task_index + 1) * self.pose_dim
|
| 631 |
+
|
| 632 |
+
position = actions[:, pos_start:pos_end]
|
| 633 |
+
quaternion = actions[:, quat_start:quat_end]
|
| 634 |
+
|
| 635 |
+
# Create pose matrix
|
| 636 |
+
controlled_frame_poses[task_index] = math_utils.make_pose(
|
| 637 |
+
position, math_utils.matrix_from_quat(quaternion)
|
| 638 |
+
)
|
| 639 |
+
|
| 640 |
+
return controlled_frame_poses
|
| 641 |
+
|
| 642 |
+
def _transform_poses_to_base_link_frame(
|
| 643 |
+
self, poses: torch.Tensor
|
| 644 |
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
| 645 |
+
"""Transform poses from world frame to base link frame.
|
| 646 |
+
|
| 647 |
+
Args:
|
| 648 |
+
poses: Poses in world frame.
|
| 649 |
+
|
| 650 |
+
Returns:
|
| 651 |
+
Tuple of (positions, rotation_matrices) in base link frame.
|
| 652 |
+
"""
|
| 653 |
+
# Transform poses to base link frame
|
| 654 |
+
base_link_inv = math_utils.pose_inv(self.base_link_frame_in_world_rf)
|
| 655 |
+
transformed_poses = math_utils.pose_in_A_to_pose_in_B(poses, base_link_inv)
|
| 656 |
+
|
| 657 |
+
# Extract position and rotation
|
| 658 |
+
positions, rotation_matrices = math_utils.unmake_pose(transformed_poses)
|
| 659 |
+
|
| 660 |
+
return positions, rotation_matrices
|
| 661 |
+
|
| 662 |
+
def _set_task_targets(
|
| 663 |
+
self, transformed_poses: tuple[torch.Tensor, torch.Tensor]
|
| 664 |
+
) -> None:
|
| 665 |
+
"""Set targets for all tasks across valid environments only.
|
| 666 |
+
|
| 667 |
+
Args:
|
| 668 |
+
transformed_poses: Tuple of (positions, rotation_matrices) in base link frame,
|
| 669 |
+
with shape (num_frame_tasks, num_valid_envs, ...).
|
| 670 |
+
"""
|
| 671 |
+
positions, rotation_matrices = transformed_poses
|
| 672 |
+
|
| 673 |
+
# DEBUG: Print base link frame and transformed target positions
|
| 674 |
+
# print(f"\n=== Pink IK _set_task_targets DEBUG ===")
|
| 675 |
+
# print(f"base_link_frame_in_world_rf (env 0):\n{self.base_link_frame_in_world_rf[0].cpu().numpy()}")
|
| 676 |
+
# print(f"Target positions (in base link frame): {positions.cpu().numpy()}")
|
| 677 |
+
|
| 678 |
+
# Iterate only over valid envs
|
| 679 |
+
for valid_idx, env_index in enumerate(self._env_ids.tolist()):
|
| 680 |
+
ik_controller = self._ik_controllers[env_index]
|
| 681 |
+
for frame_task_index, task in enumerate(
|
| 682 |
+
ik_controller.cfg.variable_input_tasks
|
| 683 |
+
):
|
| 684 |
+
if isinstance(task, LocalFrameTask):
|
| 685 |
+
target = task.transform_target_to_base
|
| 686 |
+
elif isinstance(task, FrameTask):
|
| 687 |
+
target = task.transform_target_to_world
|
| 688 |
+
else:
|
| 689 |
+
continue
|
| 690 |
+
|
| 691 |
+
# Use valid_idx to index into transformed_poses
|
| 692 |
+
target.translation = (
|
| 693 |
+
positions[frame_task_index, valid_idx, :].cpu().numpy()
|
| 694 |
+
)
|
| 695 |
+
target.rotation = (
|
| 696 |
+
rotation_matrices[frame_task_index, valid_idx, :].cpu().numpy()
|
| 697 |
+
)
|
| 698 |
+
|
| 699 |
+
task.set_target(target)
|
| 700 |
+
|
| 701 |
+
def set_wrist_override(
|
| 702 |
+
self, env_id: int, frame: str, joint_name: str, target: float | None
|
| 703 |
+
) -> bool:
|
| 704 |
+
"""Drive ``joint_name`` of ``env_id`` straight to ``target`` (rad)
|
| 705 |
+
while the task for ``frame`` ignores rotation about its own z.
|
| 706 |
+
``target=None`` clears the override (6-DoF task restored). Returns
|
| 707 |
+
False when the frame or joint is unknown to this term."""
|
| 708 |
+
env_id = int(env_id)
|
| 709 |
+
if target is None:
|
| 710 |
+
self._wrist_override.pop(env_id, None)
|
| 711 |
+
return True
|
| 712 |
+
tasks = self._ik_controllers[env_id].cfg.variable_input_tasks
|
| 713 |
+
task_index = next(
|
| 714 |
+
(i for i, t in enumerate(tasks) if getattr(t, "frame", None) == frame),
|
| 715 |
+
None,
|
| 716 |
+
)
|
| 717 |
+
if (
|
| 718 |
+
task_index is None
|
| 719 |
+
or joint_name not in self._isaaclab_controlled_joint_names
|
| 720 |
+
):
|
| 721 |
+
return False
|
| 722 |
+
col = self._isaaclab_controlled_joint_names.index(joint_name)
|
| 723 |
+
self._wrist_override[env_id] = (task_index, col, float(target))
|
| 724 |
+
return True
|
| 725 |
+
|
| 726 |
+
def _wrist_target_clamped(self, env_id: int, col: int, target: float) -> float:
|
| 727 |
+
joint_id = self._isaaclab_controlled_joint_ids[col]
|
| 728 |
+
lim = self._asset.data.joint_pos_limits[env_id, joint_id]
|
| 729 |
+
return float(min(max(target, float(lim[0])), float(lim[1])))
|
| 730 |
+
|
| 731 |
+
# ==================== Action Application ====================
|
| 732 |
+
|
| 733 |
+
def apply_actions(self) -> None:
|
| 734 |
+
"""Apply the computed joint positions based on the inverse kinematics solution.
|
| 735 |
+
|
| 736 |
+
IK solve is only performed every ``cfg.decimation`` steps. Cached
|
| 737 |
+
joint-position targets are applied every step so the robot never
|
| 738 |
+
stalls.
|
| 739 |
+
"""
|
| 740 |
+
self._step_count += 1
|
| 741 |
+
|
| 742 |
+
if len(self._env_ids) == 0:
|
| 743 |
+
return
|
| 744 |
+
|
| 745 |
+
# Recompute IK only on decimation steps (matches process_actions gate)
|
| 746 |
+
if (self._step_count - 1) % self.cfg.decimation == 0 and getattr(self, "_arm_locked", False):
|
| 747 |
+
if os.environ.get("MMB_PINK_LOG"):
|
| 748 |
+
with open(os.environ["MMB_PINK_LOG"], "a") as _f:
|
| 749 |
+
_f.write("OUT %d q=%s sol=LOCKED\n" % (self._step_count, [round(float(v), 5) for v in self._asset.data.joint_pos[0, self._controlled_joint_ids].tolist()]))
|
| 750 |
+
elif (self._step_count - 1) % self.cfg.decimation == 0:
|
| 751 |
+
ik_joint_positions = self._compute_ik_solutions()
|
| 752 |
+
if os.environ.get("MMB_PINK_LOG"):
|
| 753 |
+
with open(os.environ["MMB_PINK_LOG"], "a") as _f:
|
| 754 |
+
_f.write("OUT %d q=%s sol=%s\n" % (self._step_count, [round(float(v), 5) for v in self._asset.data.joint_pos[0, self._controlled_joint_ids].tolist()], [round(float(v), 5) for v in ik_joint_positions[0].tolist()]))
|
| 755 |
+
|
| 756 |
+
if self.hand_joint_dim > 0:
|
| 757 |
+
all_joint_positions = torch.cat(
|
| 758 |
+
(ik_joint_positions, self._target_hand_joint_positions), dim=1
|
| 759 |
+
)
|
| 760 |
+
else:
|
| 761 |
+
all_joint_positions = ik_joint_positions
|
| 762 |
+
|
| 763 |
+
self._processed_actions[self._env_ids] = all_joint_positions
|
| 764 |
+
|
| 765 |
+
for env_id, (_, col, target) in self._wrist_override.items():
|
| 766 |
+
self._processed_actions[env_id, col] = self._wrist_target_clamped(
|
| 767 |
+
env_id, col, target
|
| 768 |
+
)
|
| 769 |
+
|
| 770 |
+
# Always apply cached targets + gravity compensation
|
| 771 |
+
if self.cfg.enable_gravity_compensation:
|
| 772 |
+
self._apply_gravity_compensation()
|
| 773 |
+
|
| 774 |
+
self._asset.set_joint_position_target(
|
| 775 |
+
self._processed_actions[self._env_ids],
|
| 776 |
+
self._controlled_joint_ids,
|
| 777 |
+
self._env_ids,
|
| 778 |
+
)
|
| 779 |
+
|
| 780 |
+
def _apply_gravity_compensation(self) -> None:
|
| 781 |
+
"""Apply gravity compensation to arm joints for valid envs only."""
|
| 782 |
+
if not self._asset.cfg.spawn.rigid_props.disable_gravity:
|
| 783 |
+
# Get gravity compensation forces using cached tensor for valid envs
|
| 784 |
+
all_forces = self._asset.root_physx_view.get_gravity_compensation_forces()
|
| 785 |
+
if self._asset.is_fixed_base:
|
| 786 |
+
if getattr(self.cfg, "fixed_base_gravity_compensation", False):
|
| 787 |
+
# PhysX returns (count, max_dofs) for fixed-base articulations
|
| 788 |
+
# (no root block), so the joint ids index directly — the same
|
| 789 |
+
# indexing IsaacLab's own pink / OSC actions use.
|
| 790 |
+
gravity = all_forces[self._env_ids][
|
| 791 |
+
:, self._controlled_joint_ids_tensor
|
| 792 |
+
]
|
| 793 |
+
else: # legacy: no compensation on fixed-base robots
|
| 794 |
+
gravity = torch.zeros_like(
|
| 795 |
+
all_forces[self._env_ids][:, self._controlled_joint_ids_tensor]
|
| 796 |
+
)
|
| 797 |
+
else:
|
| 798 |
+
# If floating base, then need to skip the first 6 joints (base)
|
| 799 |
+
gravity = all_forces[self._env_ids][
|
| 800 |
+
:,
|
| 801 |
+
self._controlled_joint_ids_tensor
|
| 802 |
+
+ self._physx_floating_joint_indices_offset,
|
| 803 |
+
]
|
| 804 |
+
|
| 805 |
+
# Apply gravity compensation to arm joints for valid envs
|
| 806 |
+
self._asset.set_joint_effort_target(
|
| 807 |
+
gravity, self._controlled_joint_ids, self._env_ids
|
| 808 |
+
)
|
| 809 |
+
|
| 810 |
+
def _solve_ik(self, ik_controller, current_joint_pos) -> torch.Tensor:
|
| 811 |
+
"""One IK solve of one env: the iterative solver when the controller asks for more than one QP, else the historical call."""
|
| 812 |
+
if getattr(ik_controller.cfg, "ik_iterations", 1) > 1:
|
| 813 |
+
return ik_controller.compute(
|
| 814 |
+
current_joint_pos,
|
| 815 |
+
self._sim_dt,
|
| 816 |
+
control_dt=self._sim_dt * self.cfg.decimation,
|
| 817 |
+
)
|
| 818 |
+
# Keep the historical single-QP call and its 5 ms dt exactly.
|
| 819 |
+
return ik_controller.compute(current_joint_pos, self._sim_dt)
|
| 820 |
+
|
| 821 |
+
def _compute_ik_solutions(self) -> torch.Tensor:
|
| 822 |
+
"""Compute IK solutions for valid environments only.
|
| 823 |
+
|
| 824 |
+
Returns:
|
| 825 |
+
IK joint positions tensor for valid environments.
|
| 826 |
+
"""
|
| 827 |
+
ik_solutions = []
|
| 828 |
+
|
| 829 |
+
for env_index in self._env_ids.tolist():
|
| 830 |
+
ik_controller = self._ik_controllers[env_index]
|
| 831 |
+
# Get current joint positions for this environment
|
| 832 |
+
current_joint_pos = self._asset.data.joint_pos.cpu().numpy()[env_index]
|
| 833 |
+
|
| 834 |
+
ov = self._wrist_override.get(int(env_index))
|
| 835 |
+
if ov is None:
|
| 836 |
+
joint_pos_des = self._solve_ik(ik_controller, current_joint_pos)
|
| 837 |
+
else:
|
| 838 |
+
# The task objects are shared by every env's controller, so
|
| 839 |
+
# the cost is swapped only around this env's solve.
|
| 840 |
+
task_index, col, target = ov
|
| 841 |
+
task = ik_controller.cfg.variable_input_tasks[task_index]
|
| 842 |
+
saved = task.orientation_cost.copy()
|
| 843 |
+
free = saved.copy()
|
| 844 |
+
free[2] = 0.0
|
| 845 |
+
task.set_orientation_cost(free)
|
| 846 |
+
try:
|
| 847 |
+
joint_pos_des = self._solve_ik(ik_controller, current_joint_pos)
|
| 848 |
+
finally:
|
| 849 |
+
task.set_orientation_cost(saved)
|
| 850 |
+
joint_pos_des = joint_pos_des.clone()
|
| 851 |
+
joint_pos_des[col] = self._wrist_target_clamped(
|
| 852 |
+
int(env_index), col, target
|
| 853 |
+
)
|
| 854 |
+
ik_solutions.append(joint_pos_des)
|
| 855 |
+
|
| 856 |
+
return torch.stack(ik_solutions)
|
| 857 |
+
|
| 858 |
+
# ==================== Reset ====================
|
| 859 |
+
|
| 860 |
+
def reset(self, env_ids: Sequence[int] | None = None) -> None:
|
| 861 |
+
"""Reset the action term for specified environments.
|
| 862 |
+
|
| 863 |
+
Args:
|
| 864 |
+
env_ids: A list of environment IDs to reset. If None, all environments are reset.
|
| 865 |
+
"""
|
| 866 |
+
self._raw_actions[env_ids] = torch.zeros(self.action_dim, device=self.device)
|
| 867 |
+
self._last_passed_action[env_ids] = torch.zeros(
|
| 868 |
+
self.action_dim, device=self.device
|
| 869 |
+
)
|
| 870 |
+
# Episode boundary: drop the NaN=HOLD anchors — the next NaN tick
|
| 871 |
+
# re-captures from the freshly reset pose (the yaml park).
|
| 872 |
+
self._nan_anchor[env_ids] = float("nan")
|
| 873 |
+
# Also clear ``_processed_actions`` (the cached IK solution applied
|
| 874 |
+
# in ``apply_actions`` every step). Without this, after a reset the
|
| 875 |
+
# next NaN-action tick has ``valid_actions=None`` and
|
| 876 |
+
# ``process_actions`` returns early — but ``apply_actions`` still
|
| 877 |
+
# ships the *previous* episode's IK joint targets to PhysX,
|
| 878 |
+
# snapping the arms back to whatever pose ended the last attempt.
|
| 879 |
+
# Replace with the robot's current joint positions ("hold here")
|
| 880 |
+
# so the freshly-reset default joint pose is what gets commanded.
|
| 881 |
+
if env_ids is None:
|
| 882 |
+
env_ids_tensor = torch.arange(self.num_envs, device=self.device)
|
| 883 |
+
elif isinstance(env_ids, torch.Tensor):
|
| 884 |
+
env_ids_tensor = env_ids.to(self.device, dtype=torch.long)
|
| 885 |
+
else:
|
| 886 |
+
env_ids_tensor = torch.tensor(
|
| 887 |
+
list(env_ids), device=self.device, dtype=torch.long
|
| 888 |
+
)
|
| 889 |
+
if env_ids_tensor.numel() > 0:
|
| 890 |
+
cur_joint_pos = self._asset.data.joint_pos[env_ids_tensor][
|
| 891 |
+
:, self._controlled_joint_ids
|
| 892 |
+
]
|
| 893 |
+
self._processed_actions[env_ids_tensor] = cur_joint_pos
|
| 894 |
+
for e in env_ids_tensor.tolist():
|
| 895 |
+
self._wrist_override.pop(int(e), None)
|
| 896 |
+
|
| 897 |
+
|
| 898 |
+
class PinkDualDifferentialInverseKinematicsAction(PinkInverseKinematicsAction):
|
| 899 |
+
"""Hybrid Pink IK + per-arm differential IK action.
|
| 900 |
+
|
| 901 |
+
On decimation fires this runs the full Pink IK solve (via the parent
|
| 902 |
+
implementation). Between fires it falls back to per-arm Jacobian tracking
|
| 903 |
+
toward the *same* target, matching the computation in
|
| 904 |
+
:class:`DualDifferentialInverseKinematicsAction`. Hand-joint targets are
|
| 905 |
+
refreshed only on Pink fires; PhysX retains them between steps.
|
| 906 |
+
|
| 907 |
+
The action layout is identical to the parent: ``[right_pose(7), left_pose(7)]``
|
| 908 |
+
for dual-arm robots, because the Pink ``variable_input_tasks`` must be
|
| 909 |
+
ordered right-first, left-second.
|
| 910 |
+
"""
|
| 911 |
+
|
| 912 |
+
cfg: "pink_actions_cfg.PinkDualDifferentialInverseKinematicsActionCfg"
|
| 913 |
+
|
| 914 |
+
def __init__(
|
| 915 |
+
self,
|
| 916 |
+
cfg: "pink_actions_cfg.PinkDualDifferentialInverseKinematicsActionCfg",
|
| 917 |
+
env,
|
| 918 |
+
):
|
| 919 |
+
super().__init__(cfg, env)
|
| 920 |
+
self._setup_dual_diff()
|
| 921 |
+
|
| 922 |
+
def _setup_dual_diff(self) -> None:
|
| 923 |
+
cfg = self.cfg
|
| 924 |
+
|
| 925 |
+
self._right_joint_ids, _ = self._asset.find_joints(cfg.right_joint_names)
|
| 926 |
+
self._left_joint_ids, _ = self._asset.find_joints(cfg.left_joint_names)
|
| 927 |
+
|
| 928 |
+
r_ids, r_names = self._asset.find_bodies(cfg.right_body_name)
|
| 929 |
+
l_ids, l_names = self._asset.find_bodies(cfg.left_body_name)
|
| 930 |
+
if len(r_ids) != 1 or len(l_ids) != 1:
|
| 931 |
+
raise ValueError(
|
| 932 |
+
f"Expected one body match each: right={r_names}, left={l_names}"
|
| 933 |
+
)
|
| 934 |
+
self._right_body_idx = r_ids[0]
|
| 935 |
+
self._left_body_idx = l_ids[0]
|
| 936 |
+
|
| 937 |
+
self._right_ref_idx = None
|
| 938 |
+
self._left_ref_idx = None
|
| 939 |
+
if cfg.right_command_reference_body_name is not None:
|
| 940 |
+
ids, _ = self._asset.find_bodies(cfg.right_command_reference_body_name)
|
| 941 |
+
if len(ids) != 1:
|
| 942 |
+
raise ValueError(
|
| 943 |
+
f"right_command_reference_body_name resolved to {len(ids)} bodies."
|
| 944 |
+
)
|
| 945 |
+
self._right_ref_idx = ids[0]
|
| 946 |
+
if cfg.left_command_reference_body_name is not None:
|
| 947 |
+
ids, _ = self._asset.find_bodies(cfg.left_command_reference_body_name)
|
| 948 |
+
if len(ids) != 1:
|
| 949 |
+
raise ValueError(
|
| 950 |
+
f"left_command_reference_body_name resolved to {len(ids)} bodies."
|
| 951 |
+
)
|
| 952 |
+
self._left_ref_idx = ids[0]
|
| 953 |
+
|
| 954 |
+
if self._asset.is_fixed_base:
|
| 955 |
+
self._right_jacobi_body_idx = self._right_body_idx - 1
|
| 956 |
+
self._left_jacobi_body_idx = self._left_body_idx - 1
|
| 957 |
+
self._right_jacobi_joint_ids = self._right_joint_ids
|
| 958 |
+
self._left_jacobi_joint_ids = self._left_joint_ids
|
| 959 |
+
else:
|
| 960 |
+
self._right_jacobi_body_idx = self._right_body_idx
|
| 961 |
+
self._left_jacobi_body_idx = self._left_body_idx
|
| 962 |
+
self._right_jacobi_joint_ids = [i + 6 for i in self._right_joint_ids]
|
| 963 |
+
self._left_jacobi_joint_ids = [i + 6 for i in self._left_joint_ids]
|
| 964 |
+
|
| 965 |
+
self._right_offset_pos, self._right_offset_rot = self._build_diff_offset(
|
| 966 |
+
cfg.right_body_offset
|
| 967 |
+
)
|
| 968 |
+
self._left_offset_pos, self._left_offset_rot = self._build_diff_offset(
|
| 969 |
+
cfg.left_body_offset
|
| 970 |
+
)
|
| 971 |
+
|
| 972 |
+
self._right_diff_ik = DifferentialIKController(
|
| 973 |
+
cfg=cfg.diff_ik_controller, num_envs=self.num_envs, device=self.device
|
| 974 |
+
)
|
| 975 |
+
self._left_diff_ik = DifferentialIKController(
|
| 976 |
+
cfg=cfg.diff_ik_controller, num_envs=self.num_envs, device=self.device
|
| 977 |
+
)
|
| 978 |
+
|
| 979 |
+
if self._num_frame_tasks != 2:
|
| 980 |
+
raise ValueError(
|
| 981 |
+
"PinkDualDifferentialInverseKinematicsAction expects exactly 2 "
|
| 982 |
+
f"FrameTask entries in variable_input_tasks, got {self._num_frame_tasks}."
|
| 983 |
+
)
|
| 984 |
+
|
| 985 |
+
def _build_diff_offset(self, offset_cfg):
|
| 986 |
+
if offset_cfg is None:
|
| 987 |
+
return None, None
|
| 988 |
+
pos = torch.tensor(offset_cfg.pos, device=self.device).repeat(self.num_envs, 1)
|
| 989 |
+
rot = torch.tensor(offset_cfg.rot, device=self.device).repeat(self.num_envs, 1)
|
| 990 |
+
return pos, rot
|
| 991 |
+
|
| 992 |
+
# --- per-arm geometry helpers (mirror DualDifferentialInverseKinematicsAction)
|
| 993 |
+
|
| 994 |
+
def _arm_pose_in_ref(
|
| 995 |
+
self,
|
| 996 |
+
env_ids,
|
| 997 |
+
body_idx,
|
| 998 |
+
ref_idx,
|
| 999 |
+
offset_pos,
|
| 1000 |
+
offset_rot,
|
| 1001 |
+
):
|
| 1002 |
+
ee_pos_w = self._asset.data.body_pos_w[env_ids, body_idx]
|
| 1003 |
+
ee_quat_w = self._asset.data.body_quat_w[env_ids, body_idx]
|
| 1004 |
+
if ref_idx is not None:
|
| 1005 |
+
ref_pos_w = self._asset.data.body_pos_w[env_ids, ref_idx]
|
| 1006 |
+
ref_quat_w = self._asset.data.body_quat_w[env_ids, ref_idx]
|
| 1007 |
+
else:
|
| 1008 |
+
ref_pos_w = self._asset.data.root_pos_w[env_ids]
|
| 1009 |
+
ref_quat_w = self._asset.data.root_quat_w[env_ids]
|
| 1010 |
+
ee_pos_b, ee_quat_b = math_utils.subtract_frame_transforms(
|
| 1011 |
+
ref_pos_w, ref_quat_w, ee_pos_w, ee_quat_w
|
| 1012 |
+
)
|
| 1013 |
+
if offset_pos is not None:
|
| 1014 |
+
ee_pos_b, ee_quat_b = math_utils.combine_frame_transforms(
|
| 1015 |
+
ee_pos_b, ee_quat_b, offset_pos[env_ids], offset_rot[env_ids]
|
| 1016 |
+
)
|
| 1017 |
+
return ee_pos_b, ee_quat_b
|
| 1018 |
+
|
| 1019 |
+
def _arm_jacobian(
|
| 1020 |
+
self,
|
| 1021 |
+
env_ids,
|
| 1022 |
+
jacobi_body_idx,
|
| 1023 |
+
jacobi_joint_ids,
|
| 1024 |
+
ref_idx,
|
| 1025 |
+
offset_pos,
|
| 1026 |
+
offset_rot,
|
| 1027 |
+
):
|
| 1028 |
+
jac_w = self._asset.root_physx_view.get_jacobians()[
|
| 1029 |
+
:, jacobi_body_idx, :, jacobi_joint_ids
|
| 1030 |
+
][env_ids]
|
| 1031 |
+
if ref_idx is not None:
|
| 1032 |
+
ref_quat = self._asset.data.body_quat_w[env_ids, ref_idx]
|
| 1033 |
+
else:
|
| 1034 |
+
ref_quat = self._asset.data.root_quat_w[env_ids]
|
| 1035 |
+
R = math_utils.matrix_from_quat(math_utils.quat_inv(ref_quat))
|
| 1036 |
+
jac = jac_w.clone()
|
| 1037 |
+
jac[:, 0:3, :] = torch.bmm(R, jac[:, 0:3, :])
|
| 1038 |
+
jac[:, 3:, :] = torch.bmm(R, jac[:, 3:, :])
|
| 1039 |
+
if offset_pos is not None:
|
| 1040 |
+
skew = math_utils.skew_symmetric_matrix(offset_pos[env_ids])
|
| 1041 |
+
jac[:, 0:3, :] += torch.bmm(-skew, jac[:, 3:, :])
|
| 1042 |
+
jac[:, 3:, :] = torch.bmm(
|
| 1043 |
+
math_utils.matrix_from_quat(offset_rot[env_ids]), jac[:, 3:, :]
|
| 1044 |
+
)
|
| 1045 |
+
return jac
|
| 1046 |
+
|
| 1047 |
+
def _transform_command_to_ref(self, command, env_ids, ref_idx):
|
| 1048 |
+
"""Convert an env-local world-frame pose command into the arm's ref frame."""
|
| 1049 |
+
if ref_idx is not None:
|
| 1050 |
+
base_pos_w = self._asset.data.body_pos_w[env_ids, ref_idx]
|
| 1051 |
+
base_quat_w = self._asset.data.body_quat_w[env_ids, ref_idx]
|
| 1052 |
+
else:
|
| 1053 |
+
base_pos_w = self._asset.data.root_pos_w[env_ids]
|
| 1054 |
+
base_quat_w = self._asset.data.root_quat_w[env_ids]
|
| 1055 |
+
env_origins = getattr(self._env.scene, "env_origins", None)
|
| 1056 |
+
positions_w = command[:, 0:3]
|
| 1057 |
+
if env_origins is not None:
|
| 1058 |
+
positions_w = positions_w + env_origins[env_ids]
|
| 1059 |
+
if self.cfg.diff_ik_controller.command_type == "position":
|
| 1060 |
+
pos_b, _ = math_utils.subtract_frame_transforms(
|
| 1061 |
+
base_pos_w, base_quat_w, positions_w, None
|
| 1062 |
+
)
|
| 1063 |
+
return pos_b
|
| 1064 |
+
quats_w = command[:, 3:7]
|
| 1065 |
+
pos_b, quat_b = math_utils.subtract_frame_transforms(
|
| 1066 |
+
base_pos_w, base_quat_w, positions_w, quats_w
|
| 1067 |
+
)
|
| 1068 |
+
return torch.cat((pos_b, quat_b), dim=1)
|
| 1069 |
+
|
| 1070 |
+
# --- overridden apply ---------------------------------------------------
|
| 1071 |
+
|
| 1072 |
+
def apply_actions(self) -> None:
|
| 1073 |
+
self._step_count += 1
|
| 1074 |
+
|
| 1075 |
+
if len(self._env_ids) == 0:
|
| 1076 |
+
return
|
| 1077 |
+
|
| 1078 |
+
is_pink_fire = (self._step_count - 1) % max(1, self.cfg.decimation) == 0
|
| 1079 |
+
|
| 1080 |
+
if is_pink_fire:
|
| 1081 |
+
ik_joint_positions = self._compute_ik_solutions()
|
| 1082 |
+
if self.hand_joint_dim > 0:
|
| 1083 |
+
all_joint_positions = torch.cat(
|
| 1084 |
+
(ik_joint_positions, self._target_hand_joint_positions), dim=1
|
| 1085 |
+
)
|
| 1086 |
+
else:
|
| 1087 |
+
all_joint_positions = ik_joint_positions
|
| 1088 |
+
self._processed_actions[self._env_ids] = all_joint_positions
|
| 1089 |
+
|
| 1090 |
+
if self.cfg.enable_gravity_compensation:
|
| 1091 |
+
self._apply_gravity_compensation()
|
| 1092 |
+
|
| 1093 |
+
self._asset.set_joint_position_target(
|
| 1094 |
+
self._processed_actions[self._env_ids],
|
| 1095 |
+
self._controlled_joint_ids,
|
| 1096 |
+
self._env_ids,
|
| 1097 |
+
)
|
| 1098 |
+
else:
|
| 1099 |
+
self._apply_dual_diff_ik()
|
| 1100 |
+
|
| 1101 |
+
def _apply_dual_diff_ik(self) -> None:
|
| 1102 |
+
"""Per-arm Jacobian tracking toward the stored Pink pose target."""
|
| 1103 |
+
raw = self._raw_actions[self._env_ids]
|
| 1104 |
+
right_cmd = raw[:, : self.pose_dim]
|
| 1105 |
+
left_cmd = raw[:, self.pose_dim : 2 * self.pose_dim]
|
| 1106 |
+
|
| 1107 |
+
# Pink interprets actions in env-local world frame when relative_to_base is False.
|
| 1108 |
+
if not self.cfg.relative_to_base:
|
| 1109 |
+
right_cmd = self._transform_command_to_ref(
|
| 1110 |
+
right_cmd, self._env_ids, self._right_ref_idx
|
| 1111 |
+
)
|
| 1112 |
+
left_cmd = self._transform_command_to_ref(
|
| 1113 |
+
left_cmd, self._env_ids, self._left_ref_idx
|
| 1114 |
+
)
|
| 1115 |
+
|
| 1116 |
+
r_pos, r_quat = self._arm_pose_in_ref(
|
| 1117 |
+
self._env_ids,
|
| 1118 |
+
self._right_body_idx,
|
| 1119 |
+
self._right_ref_idx,
|
| 1120 |
+
self._right_offset_pos,
|
| 1121 |
+
self._right_offset_rot,
|
| 1122 |
+
)
|
| 1123 |
+
l_pos, l_quat = self._arm_pose_in_ref(
|
| 1124 |
+
self._env_ids,
|
| 1125 |
+
self._left_body_idx,
|
| 1126 |
+
self._left_ref_idx,
|
| 1127 |
+
self._left_offset_pos,
|
| 1128 |
+
self._left_offset_rot,
|
| 1129 |
+
)
|
| 1130 |
+
|
| 1131 |
+
self._right_diff_ik.set_command(right_cmd, r_pos, r_quat)
|
| 1132 |
+
self._left_diff_ik.set_command(left_cmd, l_pos, l_quat)
|
| 1133 |
+
|
| 1134 |
+
r_q = self._asset.data.joint_pos[
|
| 1135 |
+
self._env_ids.unsqueeze(1), self._right_joint_ids
|
| 1136 |
+
]
|
| 1137 |
+
l_q = self._asset.data.joint_pos[
|
| 1138 |
+
self._env_ids.unsqueeze(1), self._left_joint_ids
|
| 1139 |
+
]
|
| 1140 |
+
r_jac = self._arm_jacobian(
|
| 1141 |
+
self._env_ids,
|
| 1142 |
+
self._right_jacobi_body_idx,
|
| 1143 |
+
self._right_jacobi_joint_ids,
|
| 1144 |
+
self._right_ref_idx,
|
| 1145 |
+
self._right_offset_pos,
|
| 1146 |
+
self._right_offset_rot,
|
| 1147 |
+
)
|
| 1148 |
+
l_jac = self._arm_jacobian(
|
| 1149 |
+
self._env_ids,
|
| 1150 |
+
self._left_jacobi_body_idx,
|
| 1151 |
+
self._left_jacobi_joint_ids,
|
| 1152 |
+
self._left_ref_idx,
|
| 1153 |
+
self._left_offset_pos,
|
| 1154 |
+
self._left_offset_rot,
|
| 1155 |
+
)
|
| 1156 |
+
|
| 1157 |
+
r_q_des = self._right_diff_ik.compute(r_pos, r_quat, r_jac, r_q)
|
| 1158 |
+
l_q_des = self._left_diff_ik.compute(l_pos, l_quat, l_jac, l_q)
|
| 1159 |
+
|
| 1160 |
+
r_lo = self._asset.data.joint_pos_limits[0, self._right_joint_ids, 0]
|
| 1161 |
+
r_hi = self._asset.data.joint_pos_limits[0, self._right_joint_ids, 1]
|
| 1162 |
+
l_lo = self._asset.data.joint_pos_limits[0, self._left_joint_ids, 0]
|
| 1163 |
+
l_hi = self._asset.data.joint_pos_limits[0, self._left_joint_ids, 1]
|
| 1164 |
+
r_q_des = torch.clamp(r_q_des, min=r_lo, max=r_hi)
|
| 1165 |
+
l_q_des = torch.clamp(l_q_des, min=l_lo, max=l_hi)
|
| 1166 |
+
|
| 1167 |
+
if self.cfg.enable_gravity_compensation:
|
| 1168 |
+
self._apply_gravity_compensation()
|
| 1169 |
+
|
| 1170 |
+
self._asset.set_joint_position_target(
|
| 1171 |
+
r_q_des, self._right_joint_ids, self._env_ids
|
| 1172 |
+
)
|
| 1173 |
+
self._asset.set_joint_position_target(
|
| 1174 |
+
l_q_des, self._left_joint_ids, self._env_ids
|
| 1175 |
+
)
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pink_task_space_actions_log.py
ADDED
|
@@ -0,0 +1,1159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) 2022-2025, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md).
|
| 2 |
+
# All rights reserved.
|
| 3 |
+
#
|
| 4 |
+
# SPDX-License-Identifier: BSD-3-Clause
|
| 5 |
+
|
| 6 |
+
from __future__ import annotations
|
| 7 |
+
|
| 8 |
+
import os
|
| 9 |
+
|
| 10 |
+
import torch
|
| 11 |
+
from collections.abc import Sequence
|
| 12 |
+
from typing import TYPE_CHECKING
|
| 13 |
+
from dataclasses import MISSING
|
| 14 |
+
|
| 15 |
+
from pink.tasks import FrameTask
|
| 16 |
+
|
| 17 |
+
from gymnasium import spaces
|
| 18 |
+
|
| 19 |
+
import isaaclab.utils.math as math_utils
|
| 20 |
+
from isaaclab.assets.articulation import Articulation
|
| 21 |
+
from magicsim.Env.Robot.mdp.pink_ik import LocalFrameTask, PinkIKController
|
| 22 |
+
from magicsim.Env.Robot.mdp.action_manager import ActionTerm
|
| 23 |
+
from magicsim.Env.Robot.mdp.differential_ik import DifferentialIKController
|
| 24 |
+
|
| 25 |
+
if TYPE_CHECKING:
|
| 26 |
+
from isaaclab.envs import ManagerBasedEnv
|
| 27 |
+
from isaaclab.envs.utils.io_descriptors import GenericActionIODescriptor
|
| 28 |
+
|
| 29 |
+
from . import pink_actions_cfg
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
class PinkInverseKinematicsAction(ActionTerm):
|
| 33 |
+
r"""Pink Inverse Kinematics action term.
|
| 34 |
+
|
| 35 |
+
This action term processes the action tensor and sets these setpoints in the pink IK framework.
|
| 36 |
+
The action tensor is ordered in the order of the tasks defined in PinkIKControllerCfg.
|
| 37 |
+
"""
|
| 38 |
+
|
| 39 |
+
cfg: pink_actions_cfg.PinkInverseKinematicsActionCfg
|
| 40 |
+
"""Configuration for the Pink Inverse Kinematics action term."""
|
| 41 |
+
|
| 42 |
+
_asset: Articulation
|
| 43 |
+
"""The articulation asset to which the action term is applied."""
|
| 44 |
+
|
| 45 |
+
def __init__(
|
| 46 |
+
self, cfg: pink_actions_cfg.PinkInverseKinematicsActionCfg, env: ManagerBasedEnv
|
| 47 |
+
):
|
| 48 |
+
"""Initialize the Pink Inverse Kinematics action term.
|
| 49 |
+
|
| 50 |
+
Args:
|
| 51 |
+
cfg: The configuration for this action term.
|
| 52 |
+
env: The environment in which the action term will be applied.
|
| 53 |
+
"""
|
| 54 |
+
self._step_count = 0
|
| 55 |
+
super().__init__(cfg, env)
|
| 56 |
+
|
| 57 |
+
self._env = env
|
| 58 |
+
self._sim_dt = env.sim.get_physics_dt()
|
| 59 |
+
|
| 60 |
+
# Initialize joint information
|
| 61 |
+
self._initialize_joint_info()
|
| 62 |
+
|
| 63 |
+
# Initialize IK controllers
|
| 64 |
+
self._initialize_ik_controllers()
|
| 65 |
+
|
| 66 |
+
# Initialize action tensors
|
| 67 |
+
self._raw_actions = torch.zeros(
|
| 68 |
+
self.num_envs, self.action_dim, device=self.device
|
| 69 |
+
)
|
| 70 |
+
# Last passed (valid) action per env; used when input becomes NaN (first time: use current EEF)
|
| 71 |
+
self._last_passed_action = torch.zeros_like(self._raw_actions)
|
| 72 |
+
# NaN=HOLD anchors (cfg.nan_hold, 2026-10-02 idle-arm flail fix):
|
| 73 |
+
# per frame-task group, the pose captured when the group turned NaN —
|
| 74 |
+
# commanded as a CONSTANT target until a real target returns. NaN =
|
| 75 |
+
# no anchor armed.
|
| 76 |
+
self._nan_anchor = torch.full_like(self._raw_actions, float("nan"))
|
| 77 |
+
# _processed_actions stores joint positions output from IK, shape (num_envs, num_controlled_joints)
|
| 78 |
+
self._processed_actions = torch.zeros(
|
| 79 |
+
self.num_envs, len(self._controlled_joint_ids), device=self.device
|
| 80 |
+
)
|
| 81 |
+
|
| 82 |
+
# PhysX Articulation Floating joint indices offset from IsaacLab Articulation joint indices
|
| 83 |
+
self._physx_floating_joint_indices_offset = 6
|
| 84 |
+
|
| 85 |
+
# Initialize env_ids (all envs by default)
|
| 86 |
+
self._env_ids = torch.arange(self.num_envs, device=self.device)
|
| 87 |
+
# Wrist override (opt-in per env, see set_wrist_override): while set,
|
| 88 |
+
# the named frame's task ignores rotation about its own z (5-DoF) and
|
| 89 |
+
# the named joint is driven straight to the given target instead of
|
| 90 |
+
# whatever the IK solution says. Lets a skill spin the wrist in joint
|
| 91 |
+
# space (a screw unwind) with the TCP pinned on the wrist axis by
|
| 92 |
+
# construction, instead of asking the IK to track a rotating pose.
|
| 93 |
+
# {env_id: (task_index, joint_column, target_rad)}
|
| 94 |
+
self._wrist_override: dict[int, tuple] = {}
|
| 95 |
+
|
| 96 |
+
# Pre-allocate tensors for runtime use
|
| 97 |
+
self._initialize_helper_tensors()
|
| 98 |
+
|
| 99 |
+
# Initialize action space
|
| 100 |
+
self._action_space = spaces.Box(
|
| 101 |
+
low=self.cfg.action_space[0].cpu().numpy(),
|
| 102 |
+
high=self.cfg.action_space[1].cpu().numpy(),
|
| 103 |
+
dtype=float,
|
| 104 |
+
)
|
| 105 |
+
|
| 106 |
+
def _initialize_joint_info(self) -> None:
|
| 107 |
+
"""Initialize joint IDs and names based on configuration."""
|
| 108 |
+
# Resolve pink controlled joints
|
| 109 |
+
self._isaaclab_controlled_joint_ids, self._isaaclab_controlled_joint_names = (
|
| 110 |
+
self._asset.find_joints(self.cfg.pink_controlled_joint_names)
|
| 111 |
+
)
|
| 112 |
+
self.cfg.controller.joint_names = self._isaaclab_controlled_joint_names
|
| 113 |
+
self._isaaclab_all_joint_ids = list(range(len(self._asset.data.joint_names)))
|
| 114 |
+
self.cfg.controller.all_joint_names = self._asset.data.joint_names
|
| 115 |
+
|
| 116 |
+
# Resolve hand joints (optional)
|
| 117 |
+
if self.cfg.hand_joint_names not in (None, MISSING):
|
| 118 |
+
self._hand_joint_ids, self._hand_joint_names = self._asset.find_joints(
|
| 119 |
+
self.cfg.hand_joint_names
|
| 120 |
+
)
|
| 121 |
+
else:
|
| 122 |
+
self._hand_joint_ids, self._hand_joint_names = [], []
|
| 123 |
+
|
| 124 |
+
# Combine all joint information
|
| 125 |
+
self._controlled_joint_ids = (
|
| 126 |
+
self._isaaclab_controlled_joint_ids + self._hand_joint_ids
|
| 127 |
+
)
|
| 128 |
+
self._controlled_joint_names = (
|
| 129 |
+
self._isaaclab_controlled_joint_names + self._hand_joint_names
|
| 130 |
+
)
|
| 131 |
+
assert len(self._controlled_joint_ids) == self.cfg.num_joints, (
|
| 132 |
+
f"Number of controlled joints does not match the number of joints to control: {len(self._controlled_joint_ids)} != {self.cfg.num_joints}"
|
| 133 |
+
)
|
| 134 |
+
|
| 135 |
+
def _initialize_ik_controllers(self) -> None:
|
| 136 |
+
"""Initialize Pink IK controllers for all environments."""
|
| 137 |
+
assert self._env.num_envs > 0, (
|
| 138 |
+
"Number of environments specified are less than 1."
|
| 139 |
+
)
|
| 140 |
+
|
| 141 |
+
self._ik_controllers = []
|
| 142 |
+
robot_cfg = self._asset.cfg
|
| 143 |
+
for _ in range(self._env.num_envs):
|
| 144 |
+
controller_cfg = self.cfg.controller.copy()
|
| 145 |
+
# If urdf_path is not specified in controller config, try to get it from various sources
|
| 146 |
+
if controller_cfg.urdf_path is None:
|
| 147 |
+
# 1. Try to get from asset configuration
|
| 148 |
+
if hasattr(robot_cfg, "urdf_path"):
|
| 149 |
+
controller_cfg.urdf_path = robot_cfg.urdf_path
|
| 150 |
+
# 2. Try to get from spawn configuration if it's a UsdFileCfg (common in IsaacLab)
|
| 151 |
+
elif hasattr(robot_cfg.spawn, "urdf_path"):
|
| 152 |
+
controller_cfg.urdf_path = robot_cfg.spawn.urdf_path
|
| 153 |
+
# 3. Try to infer from G1 specific configs if available
|
| 154 |
+
# Note: This is a fallback for G1 robot specific structure
|
| 155 |
+
elif (
|
| 156 |
+
hasattr(robot_cfg, "spawn")
|
| 157 |
+
and hasattr(robot_cfg.spawn, "usd_path")
|
| 158 |
+
and "g1" in str(robot_cfg.spawn.usd_path).lower()
|
| 159 |
+
):
|
| 160 |
+
# Attempt to find URDF in expected location relative to asset root or known path
|
| 161 |
+
pass
|
| 162 |
+
|
| 163 |
+
self._ik_controllers.append(
|
| 164 |
+
PinkIKController(
|
| 165 |
+
cfg=controller_cfg,
|
| 166 |
+
robot_cfg=robot_cfg,
|
| 167 |
+
device=self.device,
|
| 168 |
+
controlled_joint_indices=self._isaaclab_controlled_joint_ids,
|
| 169 |
+
)
|
| 170 |
+
)
|
| 171 |
+
|
| 172 |
+
def _initialize_helper_tensors(self) -> None:
|
| 173 |
+
"""Pre-allocate tensors and cache values for performance optimization."""
|
| 174 |
+
# Cache frequently used tensor versions of joint IDs to avoid repeated creation
|
| 175 |
+
self._controlled_joint_ids_tensor = torch.tensor(
|
| 176 |
+
self._controlled_joint_ids, device=self.device
|
| 177 |
+
)
|
| 178 |
+
|
| 179 |
+
# Cache base link index to avoid string lookup every time
|
| 180 |
+
if self.cfg.controller.base_link_name == "root":
|
| 181 |
+
self._base_link_idx = None
|
| 182 |
+
else:
|
| 183 |
+
articulation_data = self._env.scene[
|
| 184 |
+
self.cfg.controller.articulation_name
|
| 185 |
+
].data
|
| 186 |
+
self._base_link_idx = articulation_data.body_names.index(
|
| 187 |
+
self.cfg.controller.base_link_name
|
| 188 |
+
)
|
| 189 |
+
|
| 190 |
+
# Pre-allocate working tensors
|
| 191 |
+
# Count only FrameTask instances in variable_input_tasks (not all tasks)
|
| 192 |
+
num_frame_tasks = sum(
|
| 193 |
+
1
|
| 194 |
+
for task in self._ik_controllers[0].cfg.variable_input_tasks
|
| 195 |
+
if isinstance(task, FrameTask)
|
| 196 |
+
)
|
| 197 |
+
self._num_frame_tasks = num_frame_tasks
|
| 198 |
+
self._controlled_frame_poses = torch.zeros(
|
| 199 |
+
num_frame_tasks, self.num_envs, 4, 4, device=self.device
|
| 200 |
+
)
|
| 201 |
+
|
| 202 |
+
# Pre-allocate tensor for base frame computations
|
| 203 |
+
self._base_link_frame_buffer = torch.zeros(
|
| 204 |
+
self.num_envs, 4, 4, device=self.device
|
| 205 |
+
)
|
| 206 |
+
|
| 207 |
+
# Cache EEF body indices for NaN action handling
|
| 208 |
+
# Maps frame task index → body index in articulation data
|
| 209 |
+
self._eef_body_indices: list[int] = []
|
| 210 |
+
if self.cfg.target_eef_link_names not in (None, MISSING):
|
| 211 |
+
for link_name in self.cfg.target_eef_link_names.values():
|
| 212 |
+
body_idx = self._asset.data.body_names.index(link_name)
|
| 213 |
+
self._eef_body_indices.append(body_idx)
|
| 214 |
+
|
| 215 |
+
# ==================== Properties ====================
|
| 216 |
+
|
| 217 |
+
@property
|
| 218 |
+
def hand_joint_dim(self) -> int:
|
| 219 |
+
"""Dimension for hand joint positions."""
|
| 220 |
+
return self.cfg.controller.num_hand_joints
|
| 221 |
+
|
| 222 |
+
@property
|
| 223 |
+
def position_dim(self) -> int:
|
| 224 |
+
"""Dimension for position (x, y, z)."""
|
| 225 |
+
return 3
|
| 226 |
+
|
| 227 |
+
@property
|
| 228 |
+
def orientation_dim(self) -> int:
|
| 229 |
+
"""Dimension for orientation (w, x, y, z)."""
|
| 230 |
+
return 4
|
| 231 |
+
|
| 232 |
+
@property
|
| 233 |
+
def pose_dim(self) -> int:
|
| 234 |
+
"""Total pose dimension (position + orientation)."""
|
| 235 |
+
return self.position_dim + self.orientation_dim
|
| 236 |
+
|
| 237 |
+
@property
|
| 238 |
+
def action_dim(self) -> int:
|
| 239 |
+
"""Dimension of the action space (based on number of tasks and pose dimension)."""
|
| 240 |
+
# Count only FrameTask instances in variable_input_tasks
|
| 241 |
+
frame_tasks_count = sum(
|
| 242 |
+
1
|
| 243 |
+
for task in self._ik_controllers[0].cfg.variable_input_tasks
|
| 244 |
+
if isinstance(task, FrameTask)
|
| 245 |
+
)
|
| 246 |
+
return frame_tasks_count * self.pose_dim + self.hand_joint_dim
|
| 247 |
+
|
| 248 |
+
@property
|
| 249 |
+
def env_ids(self) -> torch.Tensor:
|
| 250 |
+
"""Get the current valid environment IDs (excluding NaN action envs)."""
|
| 251 |
+
return self._env_ids
|
| 252 |
+
|
| 253 |
+
@property
|
| 254 |
+
def raw_actions(self) -> torch.Tensor:
|
| 255 |
+
"""Get the raw actions tensor."""
|
| 256 |
+
return self._raw_actions
|
| 257 |
+
|
| 258 |
+
@property
|
| 259 |
+
def processed_actions(self) -> torch.Tensor:
|
| 260 |
+
"""Get the processed actions tensor."""
|
| 261 |
+
return self._processed_actions
|
| 262 |
+
|
| 263 |
+
@property
|
| 264 |
+
def action_space(self) -> spaces.Box:
|
| 265 |
+
"""Get the action space."""
|
| 266 |
+
return self._action_space
|
| 267 |
+
|
| 268 |
+
@property
|
| 269 |
+
def IO_descriptor(self) -> GenericActionIODescriptor:
|
| 270 |
+
"""The IO descriptor of the action term.
|
| 271 |
+
|
| 272 |
+
This descriptor is used to describe the action term of the pink inverse kinematics action.
|
| 273 |
+
It adds the following information to the base descriptor:
|
| 274 |
+
- scale: The scale of the action term.
|
| 275 |
+
- offset: The offset of the action term.
|
| 276 |
+
- clip: The clip of the action term.
|
| 277 |
+
- pink_controller_joint_names: The names of the pink controller joints.
|
| 278 |
+
- hand_joint_names: The names of the hand joints.
|
| 279 |
+
- controller_cfg: The configuration of the pink controller.
|
| 280 |
+
|
| 281 |
+
Returns:
|
| 282 |
+
The IO descriptor of the action term.
|
| 283 |
+
"""
|
| 284 |
+
super().IO_descriptor
|
| 285 |
+
self._IO_descriptor.shape = (self.action_dim,)
|
| 286 |
+
self._IO_descriptor.dtype = str(self.raw_actions.dtype)
|
| 287 |
+
self._IO_descriptor.action_type = "PinkInverseKinematicsAction"
|
| 288 |
+
self._IO_descriptor.pink_controller_joint_names = (
|
| 289 |
+
self._isaaclab_controlled_joint_names
|
| 290 |
+
)
|
| 291 |
+
self._IO_descriptor.hand_joint_names = self._hand_joint_names
|
| 292 |
+
self._IO_descriptor.extras["controller_cfg"] = self.cfg.controller.__dict__
|
| 293 |
+
return self._IO_descriptor
|
| 294 |
+
|
| 295 |
+
# """
|
| 296 |
+
# Operations.
|
| 297 |
+
# """
|
| 298 |
+
|
| 299 |
+
def _handle_nan_actions(
|
| 300 |
+
self, actions: torch.Tensor, selected_env_ids: torch.Tensor
|
| 301 |
+
) -> tuple[torch.Tensor | None, torch.Tensor]:
|
| 302 |
+
"""Handle NaN actions: use last passed action if available, else current EEF pose.
|
| 303 |
+
|
| 304 |
+
Actions are structured as groups of pose_dim (7) per frame task, optionally
|
| 305 |
+
followed by hand joint values. The logic is:
|
| 306 |
+
|
| 307 |
+
1. Include all envs by default (do not skip all-NaN envs).
|
| 308 |
+
2. For each group of 7 that has any NaN: use last passed action if valid;
|
| 309 |
+
else (no valid previous action) behavior depends on
|
| 310 |
+
``cfg.fallback_to_current``:
|
| 311 |
+
- True (default): fall back to current EEF pose.
|
| 312 |
+
- False: skip this env (drop it from the returned batch).
|
| 313 |
+
3. For hand joints: same logic — last passed if valid, else current joint
|
| 314 |
+
positions (or skip when ``fallback_to_current`` is False).
|
| 315 |
+
|
| 316 |
+
Args:
|
| 317 |
+
actions: Input action tensor of shape ``(len(selected_env_ids), action_dim)``.
|
| 318 |
+
Rows are **already** the slice for those envs (same order as
|
| 319 |
+
``selected_env_ids``), as produced by ``ActionManager.process_action``.
|
| 320 |
+
Do not index again with global env ids as row indices.
|
| 321 |
+
selected_env_ids: Selected environment IDs (global indices).
|
| 322 |
+
|
| 323 |
+
Returns:
|
| 324 |
+
Tuple of (processed_actions, valid_env_ids).
|
| 325 |
+
processed_actions is None if no valid envs exist.
|
| 326 |
+
"""
|
| 327 |
+
env_ids = selected_env_ids
|
| 328 |
+
if len(env_ids) == 0:
|
| 329 |
+
return None, env_ids
|
| 330 |
+
|
| 331 |
+
if actions.shape[0] != len(env_ids):
|
| 332 |
+
raise ValueError(
|
| 333 |
+
f"Pink IK actions batch ({actions.shape[0]}) must match len(env_ids) ({len(env_ids)}); "
|
| 334 |
+
"actions should be the env slice in env_ids order, not the full buffer indexed by id."
|
| 335 |
+
)
|
| 336 |
+
|
| 337 |
+
valid_actions = actions.clone()
|
| 338 |
+
fallback_to_current = self.cfg.fallback_to_current
|
| 339 |
+
skip_mask = torch.zeros(
|
| 340 |
+
len(env_ids), dtype=torch.bool, device=valid_actions.device
|
| 341 |
+
)
|
| 342 |
+
|
| 343 |
+
# For each group of pose_dim (7), fill NaN with last passed action or current EEF pose
|
| 344 |
+
for task_idx in range(self._num_frame_tasks):
|
| 345 |
+
start = task_idx * self.pose_dim
|
| 346 |
+
end = start + self.pose_dim
|
| 347 |
+
|
| 348 |
+
group_nan_mask = torch.isnan(valid_actions[:, start:end]).any(dim=1)
|
| 349 |
+
if getattr(self.cfg, "nan_hold", False):
|
| 350 |
+
# NaN=HOLD (2026-10-02 idle-arm flail): a NaN group commands
|
| 351 |
+
# the pose ANCHORED when it turned NaN — a constant target
|
| 352 |
+
# pink holds with real stiffness. The legacy fallback
|
| 353 |
+
# ("last passed, else current pose") is a zero-stiffness
|
| 354 |
+
# follow target: the idle arm drifts (null-space posture
|
| 355 |
+
# pull + gravity-comp residual) and the drift is chased.
|
| 356 |
+
real_mask = ~group_nan_mask
|
| 357 |
+
if real_mask.any():
|
| 358 |
+
# live target -> disarm the anchor
|
| 359 |
+
self._nan_anchor[env_ids[real_mask], start:end] = float("nan")
|
| 360 |
+
if group_nan_mask.any():
|
| 361 |
+
anchors = self._nan_anchor[env_ids, start:end]
|
| 362 |
+
need_cap = group_nan_mask & torch.isnan(anchors).any(dim=1)
|
| 363 |
+
if need_cap.any():
|
| 364 |
+
cap_ids = env_ids[need_cap]
|
| 365 |
+
self._nan_anchor[cap_ids, start:end] = (
|
| 366 |
+
self._get_current_eef_pose(cap_ids, task_idx)
|
| 367 |
+
)
|
| 368 |
+
valid_actions[group_nan_mask, start:end] = self._nan_anchor[
|
| 369 |
+
env_ids[group_nan_mask], start:end
|
| 370 |
+
]
|
| 371 |
+
continue
|
| 372 |
+
if group_nan_mask.any():
|
| 373 |
+
nan_env_ids = env_ids[group_nan_mask]
|
| 374 |
+
last_poses = self._last_passed_action[nan_env_ids, start:end]
|
| 375 |
+
has_valid_last = (~torch.isnan(last_poses)).all(dim=1) & (
|
| 376 |
+
last_poses[:, 3:7].abs().sum(dim=1) > 0.01
|
| 377 |
+
)
|
| 378 |
+
if fallback_to_current:
|
| 379 |
+
current_poses = self._get_current_eef_pose(nan_env_ids, task_idx)
|
| 380 |
+
fill_values = torch.where(
|
| 381 |
+
has_valid_last.unsqueeze(1).expand_as(current_poses),
|
| 382 |
+
last_poses,
|
| 383 |
+
current_poses,
|
| 384 |
+
)
|
| 385 |
+
valid_actions[group_nan_mask, start:end] = fill_values
|
| 386 |
+
else:
|
| 387 |
+
# Use last_poses only where valid; mark the rest for skipping.
|
| 388 |
+
valid_actions[group_nan_mask, start:end] = last_poses
|
| 389 |
+
group_local_idx = group_nan_mask.nonzero(as_tuple=True)[0]
|
| 390 |
+
skip_mask[group_local_idx[~has_valid_last]] = True
|
| 391 |
+
|
| 392 |
+
# Handle NaN in hand joints: last passed if valid, else current joint positions
|
| 393 |
+
if self.hand_joint_dim > 0:
|
| 394 |
+
hand_start = self._num_frame_tasks * self.pose_dim
|
| 395 |
+
hand_nan_mask = torch.isnan(valid_actions[:, hand_start:]).any(dim=1)
|
| 396 |
+
if hand_nan_mask.any():
|
| 397 |
+
nan_env_ids = env_ids[hand_nan_mask]
|
| 398 |
+
last_hand = self._last_passed_action[nan_env_ids, hand_start:]
|
| 399 |
+
has_valid_last_hand = ~torch.isnan(last_hand).any(dim=1)
|
| 400 |
+
if fallback_to_current:
|
| 401 |
+
current_hand_pos = self._asset.data.joint_pos[nan_env_ids][
|
| 402 |
+
:, self._hand_joint_ids
|
| 403 |
+
]
|
| 404 |
+
fill_hand = torch.where(
|
| 405 |
+
has_valid_last_hand.unsqueeze(1).expand_as(current_hand_pos),
|
| 406 |
+
last_hand,
|
| 407 |
+
current_hand_pos,
|
| 408 |
+
)
|
| 409 |
+
valid_actions[hand_nan_mask, hand_start:] = fill_hand
|
| 410 |
+
else:
|
| 411 |
+
valid_actions[hand_nan_mask, hand_start:] = last_hand
|
| 412 |
+
hand_local_idx = hand_nan_mask.nonzero(as_tuple=True)[0]
|
| 413 |
+
skip_mask[hand_local_idx[~has_valid_last_hand]] = True
|
| 414 |
+
|
| 415 |
+
if skip_mask.any():
|
| 416 |
+
keep_mask = ~skip_mask
|
| 417 |
+
valid_actions = valid_actions[keep_mask]
|
| 418 |
+
env_ids = env_ids[keep_mask]
|
| 419 |
+
if len(env_ids) == 0:
|
| 420 |
+
return None, env_ids
|
| 421 |
+
|
| 422 |
+
return valid_actions, env_ids
|
| 423 |
+
|
| 424 |
+
def _get_current_eef_pose(
|
| 425 |
+
self, env_ids: torch.Tensor, task_idx: int
|
| 426 |
+
) -> torch.Tensor:
|
| 427 |
+
"""Get current EEF pose for specified envs and frame task index.
|
| 428 |
+
|
| 429 |
+
Returns the pose as [pos_x, pos_y, pos_z, quat_w, quat_x, quat_y, quat_z]
|
| 430 |
+
in the same coordinate frame as the input actions (base-relative when
|
| 431 |
+
``relative_to_base`` is True, otherwise env-origin-relative world frame).
|
| 432 |
+
|
| 433 |
+
Args:
|
| 434 |
+
env_ids: Environment IDs for which to get the current EEF pose.
|
| 435 |
+
task_idx: Frame task index (0-based, counting only FrameTask instances).
|
| 436 |
+
|
| 437 |
+
Returns:
|
| 438 |
+
Current EEF pose tensor of shape ``(len(env_ids), 7)``.
|
| 439 |
+
"""
|
| 440 |
+
body_idx = self._eef_body_indices[task_idx]
|
| 441 |
+
|
| 442 |
+
# Get world-frame pose from articulation data: [pos(3), quat(4)]
|
| 443 |
+
eef_state_w = self._asset.data.body_link_state_w[env_ids, body_idx, :7]
|
| 444 |
+
eef_pos_w = eef_state_w[:, :3]
|
| 445 |
+
eef_quat_w = eef_state_w[:, 3:7]
|
| 446 |
+
|
| 447 |
+
# Convert position to env-origin-relative frame
|
| 448 |
+
eef_pos = eef_pos_w - self._env.scene.env_origins[env_ids]
|
| 449 |
+
|
| 450 |
+
if self.cfg.relative_to_base:
|
| 451 |
+
# Compute base link pose in env-origin frame
|
| 452 |
+
if self.cfg.controller.base_link_name == "root":
|
| 453 |
+
base_pos = (
|
| 454 |
+
self._asset.data.root_pos_w[env_ids]
|
| 455 |
+
- self._env.scene.env_origins[env_ids]
|
| 456 |
+
)
|
| 457 |
+
base_quat = self._asset.data.root_quat_w[env_ids]
|
| 458 |
+
else:
|
| 459 |
+
articulation_data = self._env.scene[
|
| 460 |
+
self.cfg.controller.articulation_name
|
| 461 |
+
].data
|
| 462 |
+
base_state = articulation_data.body_link_state_w[
|
| 463 |
+
env_ids, self._base_link_idx, :7
|
| 464 |
+
]
|
| 465 |
+
base_pos = base_state[:, :3] - self._env.scene.env_origins[env_ids]
|
| 466 |
+
base_quat = base_state[:, 3:7]
|
| 467 |
+
|
| 468 |
+
# Express EEF pose relative to the base link frame
|
| 469 |
+
eef_pos_base, eef_quat_base = math_utils.subtract_frame_transforms(
|
| 470 |
+
base_pos, base_quat, eef_pos, eef_quat_w
|
| 471 |
+
)
|
| 472 |
+
return torch.cat([eef_pos_base, eef_quat_base], dim=1)
|
| 473 |
+
else:
|
| 474 |
+
return torch.cat([eef_pos, eef_quat_w], dim=1)
|
| 475 |
+
|
| 476 |
+
def process_actions(self, actions: torch.Tensor, env_ids: torch.Tensor) -> None:
|
| 477 |
+
"""Process the input actions and set targets for each task.
|
| 478 |
+
|
| 479 |
+
Args:
|
| 480 |
+
actions: The input actions tensor.
|
| 481 |
+
env_ids: The environment IDs to process.
|
| 482 |
+
"""
|
| 483 |
+
if self._step_count % self.cfg.decimation != 0:
|
| 484 |
+
return
|
| 485 |
+
|
| 486 |
+
# Handle env_ids
|
| 487 |
+
if env_ids is None:
|
| 488 |
+
selected_env_ids = torch.arange(self.num_envs, device=self.device)
|
| 489 |
+
elif not isinstance(env_ids, torch.Tensor):
|
| 490 |
+
selected_env_ids = torch.tensor(
|
| 491 |
+
env_ids, device=self.device, dtype=torch.int32
|
| 492 |
+
)
|
| 493 |
+
else:
|
| 494 |
+
selected_env_ids = env_ids
|
| 495 |
+
|
| 496 |
+
# Handle NaN actions: skip all-NaN envs, fill partial NaN groups with current EEF pose
|
| 497 |
+
valid_actions, self._env_ids = self._handle_nan_actions(
|
| 498 |
+
actions, selected_env_ids
|
| 499 |
+
)
|
| 500 |
+
if os.environ.get("MMB_PINK_LOG"):
|
| 501 |
+
with open(os.environ["MMB_PINK_LOG"], "a") as _f:
|
| 502 |
+
_raw = actions[0].tolist() if actions is not None and len(actions) else None
|
| 503 |
+
_f.write("IN %d raw=%s valid=%s envs=%s\n" % (self._step_count, _raw, None if valid_actions is None else valid_actions[0].tolist(), self._env_ids.tolist()))
|
| 504 |
+
|
| 505 |
+
# If no valid envs, return early
|
| 506 |
+
if valid_actions is None or len(self._env_ids) == 0:
|
| 507 |
+
return
|
| 508 |
+
|
| 509 |
+
# Store raw actions and record last passed action for NaN fallback
|
| 510 |
+
self._raw_actions[self._env_ids] = valid_actions
|
| 511 |
+
self._last_passed_action[self._env_ids] = valid_actions.clone()
|
| 512 |
+
|
| 513 |
+
# Extract hand joint positions directly (no cloning needed)
|
| 514 |
+
# Handle case when hand_joint_dim = 0: -0 is same as 0, so slice would be whole tensor
|
| 515 |
+
if self.hand_joint_dim > 0:
|
| 516 |
+
self._target_hand_joint_positions = valid_actions[:, -self.hand_joint_dim :]
|
| 517 |
+
else:
|
| 518 |
+
self._target_hand_joint_positions = torch.zeros(
|
| 519 |
+
(valid_actions.shape[0], 0), device=self.device
|
| 520 |
+
)
|
| 521 |
+
|
| 522 |
+
# Get base link frame transformation for valid envs only
|
| 523 |
+
all_base_link_frames = self._get_base_link_frame_transform()
|
| 524 |
+
self.base_link_frame_in_world_rf = all_base_link_frames[self._env_ids]
|
| 525 |
+
|
| 526 |
+
# Process controlled frame poses for valid envs
|
| 527 |
+
controlled_frame_poses = self._extract_controlled_frame_poses(valid_actions)
|
| 528 |
+
|
| 529 |
+
# DEBUG: Print raw action and controlled frame poses
|
| 530 |
+
# print(f"\n=== Pink IK process_actions DEBUG ===")
|
| 531 |
+
# print(f"Raw action (first env): pos={valid_actions[0, :3].cpu().numpy()}, quat={valid_actions[0, 3:7].cpu().numpy()}")
|
| 532 |
+
# print(f"relative_to_base: {self.cfg.relative_to_base}")
|
| 533 |
+
# print(f"Controlled frame poses (world frame):\n{controlled_frame_poses[0, 0].cpu().numpy()}")
|
| 534 |
+
|
| 535 |
+
# NOTE(magics): We assume actions are already in the Base Link Frame (Pelvis) for LocalFrameTask.
|
| 536 |
+
# This bypasses the World-to-Base transformation to allow direct local control.
|
| 537 |
+
# If using standard FrameTask (World Frame), this would imply inputs are also in Local Frame
|
| 538 |
+
# but interpreted as World Frame, which might be incorrect for mixed usage.
|
| 539 |
+
# But for G1 LocalFrameTask usage, this is the correct behavior for Body-relative control.
|
| 540 |
+
if self.cfg.relative_to_base:
|
| 541 |
+
positions, rotation_matrices = math_utils.unmake_pose(
|
| 542 |
+
controlled_frame_poses
|
| 543 |
+
)
|
| 544 |
+
transformed_poses = (positions, rotation_matrices)
|
| 545 |
+
else:
|
| 546 |
+
transformed_poses = self._transform_poses_to_base_link_frame(
|
| 547 |
+
controlled_frame_poses
|
| 548 |
+
)
|
| 549 |
+
# DEBUG: Print after transformation
|
| 550 |
+
# print(f"After transform_to_base_link_frame:")
|
| 551 |
+
# print(f" positions: {transformed_poses[0].cpu().numpy()}")
|
| 552 |
+
# print(f" rotation_matrices: {transformed_poses[1][0, 0].cpu().numpy()}")
|
| 553 |
+
|
| 554 |
+
# Set targets for valid envs only
|
| 555 |
+
self._set_task_targets(transformed_poses)
|
| 556 |
+
|
| 557 |
+
def _get_base_link_frame_transform(self) -> torch.Tensor:
|
| 558 |
+
"""Get the base link frame transformation matrix.
|
| 559 |
+
|
| 560 |
+
Returns:
|
| 561 |
+
Base link frame transformation matrix.
|
| 562 |
+
"""
|
| 563 |
+
if self.cfg.controller.base_link_name == "root":
|
| 564 |
+
base_pos_w = self._asset.data.root_pos_w
|
| 565 |
+
base_quat_w = self._asset.data.root_quat_w
|
| 566 |
+
torch.sub(
|
| 567 |
+
base_pos_w,
|
| 568 |
+
self._env.scene.env_origins,
|
| 569 |
+
out=self._base_link_frame_buffer[:, :3, 3],
|
| 570 |
+
)
|
| 571 |
+
return math_utils.make_pose(
|
| 572 |
+
self._base_link_frame_buffer[:, :3, 3],
|
| 573 |
+
math_utils.matrix_from_quat(base_quat_w),
|
| 574 |
+
)
|
| 575 |
+
|
| 576 |
+
# Get base link frame pose in world origin using cached index
|
| 577 |
+
articulation_data = self._env.scene[self.cfg.controller.articulation_name].data
|
| 578 |
+
base_link_frame_in_world_origin = articulation_data.body_link_state_w[
|
| 579 |
+
:, self._base_link_idx, :7
|
| 580 |
+
]
|
| 581 |
+
|
| 582 |
+
# Transform to environment origin frame (reuse buffer to avoid allocation)
|
| 583 |
+
torch.sub(
|
| 584 |
+
base_link_frame_in_world_origin[:, :3],
|
| 585 |
+
self._env.scene.env_origins,
|
| 586 |
+
out=self._base_link_frame_buffer[:, :3, 3],
|
| 587 |
+
)
|
| 588 |
+
|
| 589 |
+
# Copy orientation (avoid clone)
|
| 590 |
+
base_link_frame_quat = base_link_frame_in_world_origin[:, 3:7]
|
| 591 |
+
|
| 592 |
+
# Create transformation matrix
|
| 593 |
+
return math_utils.make_pose(
|
| 594 |
+
self._base_link_frame_buffer[:, :3, 3],
|
| 595 |
+
math_utils.matrix_from_quat(base_link_frame_quat),
|
| 596 |
+
)
|
| 597 |
+
|
| 598 |
+
def _extract_controlled_frame_poses(self, actions: torch.Tensor) -> torch.Tensor:
|
| 599 |
+
"""Extract controlled frame poses from action tensor for valid envs.
|
| 600 |
+
|
| 601 |
+
Args:
|
| 602 |
+
actions: The action tensor for valid envs, shape (num_valid_envs, action_dim).
|
| 603 |
+
|
| 604 |
+
Returns:
|
| 605 |
+
Controlled frame poses tensor, shape (num_frame_tasks, num_valid_envs, 4, 4).
|
| 606 |
+
"""
|
| 607 |
+
num_valid_envs = actions.shape[0]
|
| 608 |
+
# Create tensor for valid envs (cannot use pre-allocated when size varies)
|
| 609 |
+
controlled_frame_poses = torch.zeros(
|
| 610 |
+
self._num_frame_tasks, num_valid_envs, 4, 4, device=self.device
|
| 611 |
+
)
|
| 612 |
+
|
| 613 |
+
for task_index in range(self._num_frame_tasks):
|
| 614 |
+
# Extract position and orientation for this task
|
| 615 |
+
pos_start = task_index * self.pose_dim
|
| 616 |
+
pos_end = pos_start + self.position_dim
|
| 617 |
+
quat_start = pos_end
|
| 618 |
+
quat_end = (task_index + 1) * self.pose_dim
|
| 619 |
+
|
| 620 |
+
position = actions[:, pos_start:pos_end]
|
| 621 |
+
quaternion = actions[:, quat_start:quat_end]
|
| 622 |
+
|
| 623 |
+
# Create pose matrix
|
| 624 |
+
controlled_frame_poses[task_index] = math_utils.make_pose(
|
| 625 |
+
position, math_utils.matrix_from_quat(quaternion)
|
| 626 |
+
)
|
| 627 |
+
|
| 628 |
+
return controlled_frame_poses
|
| 629 |
+
|
| 630 |
+
def _transform_poses_to_base_link_frame(
|
| 631 |
+
self, poses: torch.Tensor
|
| 632 |
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
| 633 |
+
"""Transform poses from world frame to base link frame.
|
| 634 |
+
|
| 635 |
+
Args:
|
| 636 |
+
poses: Poses in world frame.
|
| 637 |
+
|
| 638 |
+
Returns:
|
| 639 |
+
Tuple of (positions, rotation_matrices) in base link frame.
|
| 640 |
+
"""
|
| 641 |
+
# Transform poses to base link frame
|
| 642 |
+
base_link_inv = math_utils.pose_inv(self.base_link_frame_in_world_rf)
|
| 643 |
+
transformed_poses = math_utils.pose_in_A_to_pose_in_B(poses, base_link_inv)
|
| 644 |
+
|
| 645 |
+
# Extract position and rotation
|
| 646 |
+
positions, rotation_matrices = math_utils.unmake_pose(transformed_poses)
|
| 647 |
+
|
| 648 |
+
return positions, rotation_matrices
|
| 649 |
+
|
| 650 |
+
def _set_task_targets(
|
| 651 |
+
self, transformed_poses: tuple[torch.Tensor, torch.Tensor]
|
| 652 |
+
) -> None:
|
| 653 |
+
"""Set targets for all tasks across valid environments only.
|
| 654 |
+
|
| 655 |
+
Args:
|
| 656 |
+
transformed_poses: Tuple of (positions, rotation_matrices) in base link frame,
|
| 657 |
+
with shape (num_frame_tasks, num_valid_envs, ...).
|
| 658 |
+
"""
|
| 659 |
+
positions, rotation_matrices = transformed_poses
|
| 660 |
+
|
| 661 |
+
# DEBUG: Print base link frame and transformed target positions
|
| 662 |
+
# print(f"\n=== Pink IK _set_task_targets DEBUG ===")
|
| 663 |
+
# print(f"base_link_frame_in_world_rf (env 0):\n{self.base_link_frame_in_world_rf[0].cpu().numpy()}")
|
| 664 |
+
# print(f"Target positions (in base link frame): {positions.cpu().numpy()}")
|
| 665 |
+
|
| 666 |
+
# Iterate only over valid envs
|
| 667 |
+
for valid_idx, env_index in enumerate(self._env_ids.tolist()):
|
| 668 |
+
ik_controller = self._ik_controllers[env_index]
|
| 669 |
+
for frame_task_index, task in enumerate(
|
| 670 |
+
ik_controller.cfg.variable_input_tasks
|
| 671 |
+
):
|
| 672 |
+
if isinstance(task, LocalFrameTask):
|
| 673 |
+
target = task.transform_target_to_base
|
| 674 |
+
elif isinstance(task, FrameTask):
|
| 675 |
+
target = task.transform_target_to_world
|
| 676 |
+
else:
|
| 677 |
+
continue
|
| 678 |
+
|
| 679 |
+
# Use valid_idx to index into transformed_poses
|
| 680 |
+
target.translation = (
|
| 681 |
+
positions[frame_task_index, valid_idx, :].cpu().numpy()
|
| 682 |
+
)
|
| 683 |
+
target.rotation = (
|
| 684 |
+
rotation_matrices[frame_task_index, valid_idx, :].cpu().numpy()
|
| 685 |
+
)
|
| 686 |
+
|
| 687 |
+
task.set_target(target)
|
| 688 |
+
|
| 689 |
+
def set_wrist_override(
|
| 690 |
+
self, env_id: int, frame: str, joint_name: str, target: float | None
|
| 691 |
+
) -> bool:
|
| 692 |
+
"""Drive ``joint_name`` of ``env_id`` straight to ``target`` (rad)
|
| 693 |
+
while the task for ``frame`` ignores rotation about its own z.
|
| 694 |
+
``target=None`` clears the override (6-DoF task restored). Returns
|
| 695 |
+
False when the frame or joint is unknown to this term."""
|
| 696 |
+
env_id = int(env_id)
|
| 697 |
+
if target is None:
|
| 698 |
+
self._wrist_override.pop(env_id, None)
|
| 699 |
+
return True
|
| 700 |
+
tasks = self._ik_controllers[env_id].cfg.variable_input_tasks
|
| 701 |
+
task_index = next(
|
| 702 |
+
(i for i, t in enumerate(tasks) if getattr(t, "frame", None) == frame),
|
| 703 |
+
None,
|
| 704 |
+
)
|
| 705 |
+
if (
|
| 706 |
+
task_index is None
|
| 707 |
+
or joint_name not in self._isaaclab_controlled_joint_names
|
| 708 |
+
):
|
| 709 |
+
return False
|
| 710 |
+
col = self._isaaclab_controlled_joint_names.index(joint_name)
|
| 711 |
+
self._wrist_override[env_id] = (task_index, col, float(target))
|
| 712 |
+
return True
|
| 713 |
+
|
| 714 |
+
def _wrist_target_clamped(self, env_id: int, col: int, target: float) -> float:
|
| 715 |
+
joint_id = self._isaaclab_controlled_joint_ids[col]
|
| 716 |
+
lim = self._asset.data.joint_pos_limits[env_id, joint_id]
|
| 717 |
+
return float(min(max(target, float(lim[0])), float(lim[1])))
|
| 718 |
+
|
| 719 |
+
# ==================== Action Application ====================
|
| 720 |
+
|
| 721 |
+
def apply_actions(self) -> None:
|
| 722 |
+
"""Apply the computed joint positions based on the inverse kinematics solution.
|
| 723 |
+
|
| 724 |
+
IK solve is only performed every ``cfg.decimation`` steps. Cached
|
| 725 |
+
joint-position targets are applied every step so the robot never
|
| 726 |
+
stalls.
|
| 727 |
+
"""
|
| 728 |
+
self._step_count += 1
|
| 729 |
+
|
| 730 |
+
if len(self._env_ids) == 0:
|
| 731 |
+
return
|
| 732 |
+
|
| 733 |
+
# Recompute IK only on decimation steps (matches process_actions gate)
|
| 734 |
+
if (self._step_count - 1) % self.cfg.decimation == 0:
|
| 735 |
+
ik_joint_positions = self._compute_ik_solutions()
|
| 736 |
+
if os.environ.get("MMB_PINK_LOG"):
|
| 737 |
+
with open(os.environ["MMB_PINK_LOG"], "a") as _f:
|
| 738 |
+
_f.write("OUT %d q=%s sol=%s\n" % (self._step_count, [round(float(v), 5) for v in self._asset.data.joint_pos[0, self._controlled_joint_ids].tolist()], [round(float(v), 5) for v in ik_joint_positions[0].tolist()]))
|
| 739 |
+
|
| 740 |
+
if self.hand_joint_dim > 0:
|
| 741 |
+
all_joint_positions = torch.cat(
|
| 742 |
+
(ik_joint_positions, self._target_hand_joint_positions), dim=1
|
| 743 |
+
)
|
| 744 |
+
else:
|
| 745 |
+
all_joint_positions = ik_joint_positions
|
| 746 |
+
|
| 747 |
+
self._processed_actions[self._env_ids] = all_joint_positions
|
| 748 |
+
|
| 749 |
+
for env_id, (_, col, target) in self._wrist_override.items():
|
| 750 |
+
self._processed_actions[env_id, col] = self._wrist_target_clamped(
|
| 751 |
+
env_id, col, target
|
| 752 |
+
)
|
| 753 |
+
|
| 754 |
+
# Always apply cached targets + gravity compensation
|
| 755 |
+
if self.cfg.enable_gravity_compensation:
|
| 756 |
+
self._apply_gravity_compensation()
|
| 757 |
+
|
| 758 |
+
self._asset.set_joint_position_target(
|
| 759 |
+
self._processed_actions[self._env_ids],
|
| 760 |
+
self._controlled_joint_ids,
|
| 761 |
+
self._env_ids,
|
| 762 |
+
)
|
| 763 |
+
|
| 764 |
+
def _apply_gravity_compensation(self) -> None:
|
| 765 |
+
"""Apply gravity compensation to arm joints for valid envs only."""
|
| 766 |
+
if not self._asset.cfg.spawn.rigid_props.disable_gravity:
|
| 767 |
+
# Get gravity compensation forces using cached tensor for valid envs
|
| 768 |
+
all_forces = self._asset.root_physx_view.get_gravity_compensation_forces()
|
| 769 |
+
if self._asset.is_fixed_base:
|
| 770 |
+
if getattr(self.cfg, "fixed_base_gravity_compensation", False):
|
| 771 |
+
# PhysX returns (count, max_dofs) for fixed-base articulations
|
| 772 |
+
# (no root block), so the joint ids index directly — the same
|
| 773 |
+
# indexing IsaacLab's own pink / OSC actions use.
|
| 774 |
+
gravity = all_forces[self._env_ids][
|
| 775 |
+
:, self._controlled_joint_ids_tensor
|
| 776 |
+
]
|
| 777 |
+
else: # legacy: no compensation on fixed-base robots
|
| 778 |
+
gravity = torch.zeros_like(
|
| 779 |
+
all_forces[self._env_ids][:, self._controlled_joint_ids_tensor]
|
| 780 |
+
)
|
| 781 |
+
else:
|
| 782 |
+
# If floating base, then need to skip the first 6 joints (base)
|
| 783 |
+
gravity = all_forces[self._env_ids][
|
| 784 |
+
:,
|
| 785 |
+
self._controlled_joint_ids_tensor
|
| 786 |
+
+ self._physx_floating_joint_indices_offset,
|
| 787 |
+
]
|
| 788 |
+
|
| 789 |
+
# Apply gravity compensation to arm joints for valid envs
|
| 790 |
+
self._asset.set_joint_effort_target(
|
| 791 |
+
gravity, self._controlled_joint_ids, self._env_ids
|
| 792 |
+
)
|
| 793 |
+
|
| 794 |
+
def _solve_ik(self, ik_controller, current_joint_pos) -> torch.Tensor:
|
| 795 |
+
"""One IK solve of one env: the iterative solver when the controller asks for more than one QP, else the historical call."""
|
| 796 |
+
if getattr(ik_controller.cfg, "ik_iterations", 1) > 1:
|
| 797 |
+
return ik_controller.compute(
|
| 798 |
+
current_joint_pos,
|
| 799 |
+
self._sim_dt,
|
| 800 |
+
control_dt=self._sim_dt * self.cfg.decimation,
|
| 801 |
+
)
|
| 802 |
+
# Keep the historical single-QP call and its 5 ms dt exactly.
|
| 803 |
+
return ik_controller.compute(current_joint_pos, self._sim_dt)
|
| 804 |
+
|
| 805 |
+
def _compute_ik_solutions(self) -> torch.Tensor:
|
| 806 |
+
"""Compute IK solutions for valid environments only.
|
| 807 |
+
|
| 808 |
+
Returns:
|
| 809 |
+
IK joint positions tensor for valid environments.
|
| 810 |
+
"""
|
| 811 |
+
ik_solutions = []
|
| 812 |
+
|
| 813 |
+
for env_index in self._env_ids.tolist():
|
| 814 |
+
ik_controller = self._ik_controllers[env_index]
|
| 815 |
+
# Get current joint positions for this environment
|
| 816 |
+
current_joint_pos = self._asset.data.joint_pos.cpu().numpy()[env_index]
|
| 817 |
+
|
| 818 |
+
ov = self._wrist_override.get(int(env_index))
|
| 819 |
+
if ov is None:
|
| 820 |
+
joint_pos_des = self._solve_ik(ik_controller, current_joint_pos)
|
| 821 |
+
else:
|
| 822 |
+
# The task objects are shared by every env's controller, so
|
| 823 |
+
# the cost is swapped only around this env's solve.
|
| 824 |
+
task_index, col, target = ov
|
| 825 |
+
task = ik_controller.cfg.variable_input_tasks[task_index]
|
| 826 |
+
saved = task.orientation_cost.copy()
|
| 827 |
+
free = saved.copy()
|
| 828 |
+
free[2] = 0.0
|
| 829 |
+
task.set_orientation_cost(free)
|
| 830 |
+
try:
|
| 831 |
+
joint_pos_des = self._solve_ik(ik_controller, current_joint_pos)
|
| 832 |
+
finally:
|
| 833 |
+
task.set_orientation_cost(saved)
|
| 834 |
+
joint_pos_des = joint_pos_des.clone()
|
| 835 |
+
joint_pos_des[col] = self._wrist_target_clamped(
|
| 836 |
+
int(env_index), col, target
|
| 837 |
+
)
|
| 838 |
+
ik_solutions.append(joint_pos_des)
|
| 839 |
+
|
| 840 |
+
return torch.stack(ik_solutions)
|
| 841 |
+
|
| 842 |
+
# ==================== Reset ====================
|
| 843 |
+
|
| 844 |
+
def reset(self, env_ids: Sequence[int] | None = None) -> None:
|
| 845 |
+
"""Reset the action term for specified environments.
|
| 846 |
+
|
| 847 |
+
Args:
|
| 848 |
+
env_ids: A list of environment IDs to reset. If None, all environments are reset.
|
| 849 |
+
"""
|
| 850 |
+
self._raw_actions[env_ids] = torch.zeros(self.action_dim, device=self.device)
|
| 851 |
+
self._last_passed_action[env_ids] = torch.zeros(
|
| 852 |
+
self.action_dim, device=self.device
|
| 853 |
+
)
|
| 854 |
+
# Episode boundary: drop the NaN=HOLD anchors — the next NaN tick
|
| 855 |
+
# re-captures from the freshly reset pose (the yaml park).
|
| 856 |
+
self._nan_anchor[env_ids] = float("nan")
|
| 857 |
+
# Also clear ``_processed_actions`` (the cached IK solution applied
|
| 858 |
+
# in ``apply_actions`` every step). Without this, after a reset the
|
| 859 |
+
# next NaN-action tick has ``valid_actions=None`` and
|
| 860 |
+
# ``process_actions`` returns early — but ``apply_actions`` still
|
| 861 |
+
# ships the *previous* episode's IK joint targets to PhysX,
|
| 862 |
+
# snapping the arms back to whatever pose ended the last attempt.
|
| 863 |
+
# Replace with the robot's current joint positions ("hold here")
|
| 864 |
+
# so the freshly-reset default joint pose is what gets commanded.
|
| 865 |
+
if env_ids is None:
|
| 866 |
+
env_ids_tensor = torch.arange(self.num_envs, device=self.device)
|
| 867 |
+
elif isinstance(env_ids, torch.Tensor):
|
| 868 |
+
env_ids_tensor = env_ids.to(self.device, dtype=torch.long)
|
| 869 |
+
else:
|
| 870 |
+
env_ids_tensor = torch.tensor(
|
| 871 |
+
list(env_ids), device=self.device, dtype=torch.long
|
| 872 |
+
)
|
| 873 |
+
if env_ids_tensor.numel() > 0:
|
| 874 |
+
cur_joint_pos = self._asset.data.joint_pos[env_ids_tensor][
|
| 875 |
+
:, self._controlled_joint_ids
|
| 876 |
+
]
|
| 877 |
+
self._processed_actions[env_ids_tensor] = cur_joint_pos
|
| 878 |
+
for e in env_ids_tensor.tolist():
|
| 879 |
+
self._wrist_override.pop(int(e), None)
|
| 880 |
+
|
| 881 |
+
|
| 882 |
+
class PinkDualDifferentialInverseKinematicsAction(PinkInverseKinematicsAction):
|
| 883 |
+
"""Hybrid Pink IK + per-arm differential IK action.
|
| 884 |
+
|
| 885 |
+
On decimation fires this runs the full Pink IK solve (via the parent
|
| 886 |
+
implementation). Between fires it falls back to per-arm Jacobian tracking
|
| 887 |
+
toward the *same* target, matching the computation in
|
| 888 |
+
:class:`DualDifferentialInverseKinematicsAction`. Hand-joint targets are
|
| 889 |
+
refreshed only on Pink fires; PhysX retains them between steps.
|
| 890 |
+
|
| 891 |
+
The action layout is identical to the parent: ``[right_pose(7), left_pose(7)]``
|
| 892 |
+
for dual-arm robots, because the Pink ``variable_input_tasks`` must be
|
| 893 |
+
ordered right-first, left-second.
|
| 894 |
+
"""
|
| 895 |
+
|
| 896 |
+
cfg: "pink_actions_cfg.PinkDualDifferentialInverseKinematicsActionCfg"
|
| 897 |
+
|
| 898 |
+
def __init__(
|
| 899 |
+
self,
|
| 900 |
+
cfg: "pink_actions_cfg.PinkDualDifferentialInverseKinematicsActionCfg",
|
| 901 |
+
env,
|
| 902 |
+
):
|
| 903 |
+
super().__init__(cfg, env)
|
| 904 |
+
self._setup_dual_diff()
|
| 905 |
+
|
| 906 |
+
def _setup_dual_diff(self) -> None:
|
| 907 |
+
cfg = self.cfg
|
| 908 |
+
|
| 909 |
+
self._right_joint_ids, _ = self._asset.find_joints(cfg.right_joint_names)
|
| 910 |
+
self._left_joint_ids, _ = self._asset.find_joints(cfg.left_joint_names)
|
| 911 |
+
|
| 912 |
+
r_ids, r_names = self._asset.find_bodies(cfg.right_body_name)
|
| 913 |
+
l_ids, l_names = self._asset.find_bodies(cfg.left_body_name)
|
| 914 |
+
if len(r_ids) != 1 or len(l_ids) != 1:
|
| 915 |
+
raise ValueError(
|
| 916 |
+
f"Expected one body match each: right={r_names}, left={l_names}"
|
| 917 |
+
)
|
| 918 |
+
self._right_body_idx = r_ids[0]
|
| 919 |
+
self._left_body_idx = l_ids[0]
|
| 920 |
+
|
| 921 |
+
self._right_ref_idx = None
|
| 922 |
+
self._left_ref_idx = None
|
| 923 |
+
if cfg.right_command_reference_body_name is not None:
|
| 924 |
+
ids, _ = self._asset.find_bodies(cfg.right_command_reference_body_name)
|
| 925 |
+
if len(ids) != 1:
|
| 926 |
+
raise ValueError(
|
| 927 |
+
f"right_command_reference_body_name resolved to {len(ids)} bodies."
|
| 928 |
+
)
|
| 929 |
+
self._right_ref_idx = ids[0]
|
| 930 |
+
if cfg.left_command_reference_body_name is not None:
|
| 931 |
+
ids, _ = self._asset.find_bodies(cfg.left_command_reference_body_name)
|
| 932 |
+
if len(ids) != 1:
|
| 933 |
+
raise ValueError(
|
| 934 |
+
f"left_command_reference_body_name resolved to {len(ids)} bodies."
|
| 935 |
+
)
|
| 936 |
+
self._left_ref_idx = ids[0]
|
| 937 |
+
|
| 938 |
+
if self._asset.is_fixed_base:
|
| 939 |
+
self._right_jacobi_body_idx = self._right_body_idx - 1
|
| 940 |
+
self._left_jacobi_body_idx = self._left_body_idx - 1
|
| 941 |
+
self._right_jacobi_joint_ids = self._right_joint_ids
|
| 942 |
+
self._left_jacobi_joint_ids = self._left_joint_ids
|
| 943 |
+
else:
|
| 944 |
+
self._right_jacobi_body_idx = self._right_body_idx
|
| 945 |
+
self._left_jacobi_body_idx = self._left_body_idx
|
| 946 |
+
self._right_jacobi_joint_ids = [i + 6 for i in self._right_joint_ids]
|
| 947 |
+
self._left_jacobi_joint_ids = [i + 6 for i in self._left_joint_ids]
|
| 948 |
+
|
| 949 |
+
self._right_offset_pos, self._right_offset_rot = self._build_diff_offset(
|
| 950 |
+
cfg.right_body_offset
|
| 951 |
+
)
|
| 952 |
+
self._left_offset_pos, self._left_offset_rot = self._build_diff_offset(
|
| 953 |
+
cfg.left_body_offset
|
| 954 |
+
)
|
| 955 |
+
|
| 956 |
+
self._right_diff_ik = DifferentialIKController(
|
| 957 |
+
cfg=cfg.diff_ik_controller, num_envs=self.num_envs, device=self.device
|
| 958 |
+
)
|
| 959 |
+
self._left_diff_ik = DifferentialIKController(
|
| 960 |
+
cfg=cfg.diff_ik_controller, num_envs=self.num_envs, device=self.device
|
| 961 |
+
)
|
| 962 |
+
|
| 963 |
+
if self._num_frame_tasks != 2:
|
| 964 |
+
raise ValueError(
|
| 965 |
+
"PinkDualDifferentialInverseKinematicsAction expects exactly 2 "
|
| 966 |
+
f"FrameTask entries in variable_input_tasks, got {self._num_frame_tasks}."
|
| 967 |
+
)
|
| 968 |
+
|
| 969 |
+
def _build_diff_offset(self, offset_cfg):
|
| 970 |
+
if offset_cfg is None:
|
| 971 |
+
return None, None
|
| 972 |
+
pos = torch.tensor(offset_cfg.pos, device=self.device).repeat(self.num_envs, 1)
|
| 973 |
+
rot = torch.tensor(offset_cfg.rot, device=self.device).repeat(self.num_envs, 1)
|
| 974 |
+
return pos, rot
|
| 975 |
+
|
| 976 |
+
# --- per-arm geometry helpers (mirror DualDifferentialInverseKinematicsAction)
|
| 977 |
+
|
| 978 |
+
def _arm_pose_in_ref(
|
| 979 |
+
self,
|
| 980 |
+
env_ids,
|
| 981 |
+
body_idx,
|
| 982 |
+
ref_idx,
|
| 983 |
+
offset_pos,
|
| 984 |
+
offset_rot,
|
| 985 |
+
):
|
| 986 |
+
ee_pos_w = self._asset.data.body_pos_w[env_ids, body_idx]
|
| 987 |
+
ee_quat_w = self._asset.data.body_quat_w[env_ids, body_idx]
|
| 988 |
+
if ref_idx is not None:
|
| 989 |
+
ref_pos_w = self._asset.data.body_pos_w[env_ids, ref_idx]
|
| 990 |
+
ref_quat_w = self._asset.data.body_quat_w[env_ids, ref_idx]
|
| 991 |
+
else:
|
| 992 |
+
ref_pos_w = self._asset.data.root_pos_w[env_ids]
|
| 993 |
+
ref_quat_w = self._asset.data.root_quat_w[env_ids]
|
| 994 |
+
ee_pos_b, ee_quat_b = math_utils.subtract_frame_transforms(
|
| 995 |
+
ref_pos_w, ref_quat_w, ee_pos_w, ee_quat_w
|
| 996 |
+
)
|
| 997 |
+
if offset_pos is not None:
|
| 998 |
+
ee_pos_b, ee_quat_b = math_utils.combine_frame_transforms(
|
| 999 |
+
ee_pos_b, ee_quat_b, offset_pos[env_ids], offset_rot[env_ids]
|
| 1000 |
+
)
|
| 1001 |
+
return ee_pos_b, ee_quat_b
|
| 1002 |
+
|
| 1003 |
+
def _arm_jacobian(
|
| 1004 |
+
self,
|
| 1005 |
+
env_ids,
|
| 1006 |
+
jacobi_body_idx,
|
| 1007 |
+
jacobi_joint_ids,
|
| 1008 |
+
ref_idx,
|
| 1009 |
+
offset_pos,
|
| 1010 |
+
offset_rot,
|
| 1011 |
+
):
|
| 1012 |
+
jac_w = self._asset.root_physx_view.get_jacobians()[
|
| 1013 |
+
:, jacobi_body_idx, :, jacobi_joint_ids
|
| 1014 |
+
][env_ids]
|
| 1015 |
+
if ref_idx is not None:
|
| 1016 |
+
ref_quat = self._asset.data.body_quat_w[env_ids, ref_idx]
|
| 1017 |
+
else:
|
| 1018 |
+
ref_quat = self._asset.data.root_quat_w[env_ids]
|
| 1019 |
+
R = math_utils.matrix_from_quat(math_utils.quat_inv(ref_quat))
|
| 1020 |
+
jac = jac_w.clone()
|
| 1021 |
+
jac[:, 0:3, :] = torch.bmm(R, jac[:, 0:3, :])
|
| 1022 |
+
jac[:, 3:, :] = torch.bmm(R, jac[:, 3:, :])
|
| 1023 |
+
if offset_pos is not None:
|
| 1024 |
+
skew = math_utils.skew_symmetric_matrix(offset_pos[env_ids])
|
| 1025 |
+
jac[:, 0:3, :] += torch.bmm(-skew, jac[:, 3:, :])
|
| 1026 |
+
jac[:, 3:, :] = torch.bmm(
|
| 1027 |
+
math_utils.matrix_from_quat(offset_rot[env_ids]), jac[:, 3:, :]
|
| 1028 |
+
)
|
| 1029 |
+
return jac
|
| 1030 |
+
|
| 1031 |
+
def _transform_command_to_ref(self, command, env_ids, ref_idx):
|
| 1032 |
+
"""Convert an env-local world-frame pose command into the arm's ref frame."""
|
| 1033 |
+
if ref_idx is not None:
|
| 1034 |
+
base_pos_w = self._asset.data.body_pos_w[env_ids, ref_idx]
|
| 1035 |
+
base_quat_w = self._asset.data.body_quat_w[env_ids, ref_idx]
|
| 1036 |
+
else:
|
| 1037 |
+
base_pos_w = self._asset.data.root_pos_w[env_ids]
|
| 1038 |
+
base_quat_w = self._asset.data.root_quat_w[env_ids]
|
| 1039 |
+
env_origins = getattr(self._env.scene, "env_origins", None)
|
| 1040 |
+
positions_w = command[:, 0:3]
|
| 1041 |
+
if env_origins is not None:
|
| 1042 |
+
positions_w = positions_w + env_origins[env_ids]
|
| 1043 |
+
if self.cfg.diff_ik_controller.command_type == "position":
|
| 1044 |
+
pos_b, _ = math_utils.subtract_frame_transforms(
|
| 1045 |
+
base_pos_w, base_quat_w, positions_w, None
|
| 1046 |
+
)
|
| 1047 |
+
return pos_b
|
| 1048 |
+
quats_w = command[:, 3:7]
|
| 1049 |
+
pos_b, quat_b = math_utils.subtract_frame_transforms(
|
| 1050 |
+
base_pos_w, base_quat_w, positions_w, quats_w
|
| 1051 |
+
)
|
| 1052 |
+
return torch.cat((pos_b, quat_b), dim=1)
|
| 1053 |
+
|
| 1054 |
+
# --- overridden apply ---------------------------------------------------
|
| 1055 |
+
|
| 1056 |
+
def apply_actions(self) -> None:
|
| 1057 |
+
self._step_count += 1
|
| 1058 |
+
|
| 1059 |
+
if len(self._env_ids) == 0:
|
| 1060 |
+
return
|
| 1061 |
+
|
| 1062 |
+
is_pink_fire = (self._step_count - 1) % max(1, self.cfg.decimation) == 0
|
| 1063 |
+
|
| 1064 |
+
if is_pink_fire:
|
| 1065 |
+
ik_joint_positions = self._compute_ik_solutions()
|
| 1066 |
+
if self.hand_joint_dim > 0:
|
| 1067 |
+
all_joint_positions = torch.cat(
|
| 1068 |
+
(ik_joint_positions, self._target_hand_joint_positions), dim=1
|
| 1069 |
+
)
|
| 1070 |
+
else:
|
| 1071 |
+
all_joint_positions = ik_joint_positions
|
| 1072 |
+
self._processed_actions[self._env_ids] = all_joint_positions
|
| 1073 |
+
|
| 1074 |
+
if self.cfg.enable_gravity_compensation:
|
| 1075 |
+
self._apply_gravity_compensation()
|
| 1076 |
+
|
| 1077 |
+
self._asset.set_joint_position_target(
|
| 1078 |
+
self._processed_actions[self._env_ids],
|
| 1079 |
+
self._controlled_joint_ids,
|
| 1080 |
+
self._env_ids,
|
| 1081 |
+
)
|
| 1082 |
+
else:
|
| 1083 |
+
self._apply_dual_diff_ik()
|
| 1084 |
+
|
| 1085 |
+
def _apply_dual_diff_ik(self) -> None:
|
| 1086 |
+
"""Per-arm Jacobian tracking toward the stored Pink pose target."""
|
| 1087 |
+
raw = self._raw_actions[self._env_ids]
|
| 1088 |
+
right_cmd = raw[:, : self.pose_dim]
|
| 1089 |
+
left_cmd = raw[:, self.pose_dim : 2 * self.pose_dim]
|
| 1090 |
+
|
| 1091 |
+
# Pink interprets actions in env-local world frame when relative_to_base is False.
|
| 1092 |
+
if not self.cfg.relative_to_base:
|
| 1093 |
+
right_cmd = self._transform_command_to_ref(
|
| 1094 |
+
right_cmd, self._env_ids, self._right_ref_idx
|
| 1095 |
+
)
|
| 1096 |
+
left_cmd = self._transform_command_to_ref(
|
| 1097 |
+
left_cmd, self._env_ids, self._left_ref_idx
|
| 1098 |
+
)
|
| 1099 |
+
|
| 1100 |
+
r_pos, r_quat = self._arm_pose_in_ref(
|
| 1101 |
+
self._env_ids,
|
| 1102 |
+
self._right_body_idx,
|
| 1103 |
+
self._right_ref_idx,
|
| 1104 |
+
self._right_offset_pos,
|
| 1105 |
+
self._right_offset_rot,
|
| 1106 |
+
)
|
| 1107 |
+
l_pos, l_quat = self._arm_pose_in_ref(
|
| 1108 |
+
self._env_ids,
|
| 1109 |
+
self._left_body_idx,
|
| 1110 |
+
self._left_ref_idx,
|
| 1111 |
+
self._left_offset_pos,
|
| 1112 |
+
self._left_offset_rot,
|
| 1113 |
+
)
|
| 1114 |
+
|
| 1115 |
+
self._right_diff_ik.set_command(right_cmd, r_pos, r_quat)
|
| 1116 |
+
self._left_diff_ik.set_command(left_cmd, l_pos, l_quat)
|
| 1117 |
+
|
| 1118 |
+
r_q = self._asset.data.joint_pos[
|
| 1119 |
+
self._env_ids.unsqueeze(1), self._right_joint_ids
|
| 1120 |
+
]
|
| 1121 |
+
l_q = self._asset.data.joint_pos[
|
| 1122 |
+
self._env_ids.unsqueeze(1), self._left_joint_ids
|
| 1123 |
+
]
|
| 1124 |
+
r_jac = self._arm_jacobian(
|
| 1125 |
+
self._env_ids,
|
| 1126 |
+
self._right_jacobi_body_idx,
|
| 1127 |
+
self._right_jacobi_joint_ids,
|
| 1128 |
+
self._right_ref_idx,
|
| 1129 |
+
self._right_offset_pos,
|
| 1130 |
+
self._right_offset_rot,
|
| 1131 |
+
)
|
| 1132 |
+
l_jac = self._arm_jacobian(
|
| 1133 |
+
self._env_ids,
|
| 1134 |
+
self._left_jacobi_body_idx,
|
| 1135 |
+
self._left_jacobi_joint_ids,
|
| 1136 |
+
self._left_ref_idx,
|
| 1137 |
+
self._left_offset_pos,
|
| 1138 |
+
self._left_offset_rot,
|
| 1139 |
+
)
|
| 1140 |
+
|
| 1141 |
+
r_q_des = self._right_diff_ik.compute(r_pos, r_quat, r_jac, r_q)
|
| 1142 |
+
l_q_des = self._left_diff_ik.compute(l_pos, l_quat, l_jac, l_q)
|
| 1143 |
+
|
| 1144 |
+
r_lo = self._asset.data.joint_pos_limits[0, self._right_joint_ids, 0]
|
| 1145 |
+
r_hi = self._asset.data.joint_pos_limits[0, self._right_joint_ids, 1]
|
| 1146 |
+
l_lo = self._asset.data.joint_pos_limits[0, self._left_joint_ids, 0]
|
| 1147 |
+
l_hi = self._asset.data.joint_pos_limits[0, self._left_joint_ids, 1]
|
| 1148 |
+
r_q_des = torch.clamp(r_q_des, min=r_lo, max=r_hi)
|
| 1149 |
+
l_q_des = torch.clamp(l_q_des, min=l_lo, max=l_hi)
|
| 1150 |
+
|
| 1151 |
+
if self.cfg.enable_gravity_compensation:
|
| 1152 |
+
self._apply_gravity_compensation()
|
| 1153 |
+
|
| 1154 |
+
self._asset.set_joint_position_target(
|
| 1155 |
+
r_q_des, self._right_joint_ids, self._env_ids
|
| 1156 |
+
)
|
| 1157 |
+
self._asset.set_joint_position_target(
|
| 1158 |
+
l_q_des, self._left_joint_ids, self._env_ids
|
| 1159 |
+
)
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinkana.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys, re, csv, math
|
| 2 |
+
log, csvf = sys.argv[1], sys.argv[2]
|
| 3 |
+
t0, t1 = int(sys.argv[3]), int(sys.argv[4])
|
| 4 |
+
step = int(sys.argv[5]) if len(sys.argv) > 5 else 1
|
| 5 |
+
fl = lambda s: [float(x) for x in s.split(',')] if s.strip() else []
|
| 6 |
+
ins = []; outs = {}
|
| 7 |
+
for line in open(log):
|
| 8 |
+
if line.startswith('IN '):
|
| 9 |
+
m = re.match(r'IN (\d+) raw=\[(.*?)\] valid=\[(.*?)\] envs=\[(.*?)\]', line)
|
| 10 |
+
ins.append((int(m.group(1)), fl(m.group(2)), m.group(3)))
|
| 11 |
+
elif line.startswith('OUT '):
|
| 12 |
+
m = re.match(r'OUT (\d+) q=\[(.*?)\] sol=\[(.*?)\]', line)
|
| 13 |
+
outs[int(m.group(1))] = (fl(m.group(2)), fl(m.group(3)))
|
| 14 |
+
rows = list(csv.DictReader(open(csvf)))
|
| 15 |
+
J = ['right_j%d' % i for i in range(7)]
|
| 16 |
+
def qcsv(r, p='q_'): return [float(r[p + j]) for j in J]
|
| 17 |
+
# align: for each csv row find OUT index whose q matches best (search window)
|
| 18 |
+
okeys = sorted(outs)
|
| 19 |
+
def best(qc, lo, hi):
|
| 20 |
+
b = None
|
| 21 |
+
for k in range(max(1, lo), min(hi, okeys[-1]) + 1):
|
| 22 |
+
if k not in outs: continue
|
| 23 |
+
d = max(abs(a - c) for a, c in zip(outs[k][0], qc))
|
| 24 |
+
if b is None or d < b[1]: b = (k, d)
|
| 25 |
+
return b
|
| 26 |
+
r0 = rows[0]
|
| 27 |
+
b = best(qcsv(r0), 1, okeys[-1])
|
| 28 |
+
off = b[0] - 4 * int(r0['tick'])
|
| 29 |
+
print('align first csv tick', r0['tick'], '-> OUT', b, 'offset(OUT-4*tick)=', off)
|
| 30 |
+
for r in rows[::200]:
|
| 31 |
+
t = int(r['tick']); k = 4 * t + off
|
| 32 |
+
bb = best(qcsv(r), k - 40, k + 40)
|
| 33 |
+
print(' check tick', t, 'pred OUT', k, 'best', bb)
|
| 34 |
+
nan_ticks = [k for k, raw, e in ins if any(math.isnan(x) for x in raw)]
|
| 35 |
+
print('NaN IN at OUT idx:', nan_ticks[:5], '...', nan_ticks[-5:], 'n=', len(nan_ticks))
|
| 36 |
+
inmap = {k: (raw, e) for k, raw, e in ins}
|
| 37 |
+
prev = None
|
| 38 |
+
print('tick phase | IN raw pos (xyz) quat | dRaw_pos_mm | eef csv | base xy yaw | sol-q max(rad) | qtgt_csv - sol(last) max | per-joint sol delta vs prev tick')
|
| 39 |
+
psol = None
|
| 40 |
+
for r in rows:
|
| 41 |
+
t = int(r['tick'])
|
| 42 |
+
if t < t0 or t > t1 or (t - t0) % step: continue
|
| 43 |
+
k = 4 * t + off
|
| 44 |
+
kin = max([kk for kk in inmap if kk <= k + 4] or [0])
|
| 45 |
+
raw, e = inmap.get(kin, ([float('nan')] * 7, '?'))
|
| 46 |
+
d = '' if prev is None else '%.2f' % (1000 * math.dist(raw[:3], prev[:3])) if not any(math.isnan(x) for x in raw[:3] + prev[:3]) else 'nan'
|
| 47 |
+
prev = raw
|
| 48 |
+
sl = outs.get(k + 3) or outs.get(k)
|
| 49 |
+
sm = max(abs(a - c) for a, c in zip(sl[1], sl[0])) if sl else float('nan')
|
| 50 |
+
qt = qcsv(r, 'qtgt_')
|
| 51 |
+
dq = max(abs(a - c) for a, c in zip(qt, sl[1])) if sl else float('nan')
|
| 52 |
+
jd = '' if psol is None or not sl else ' '.join('%+.4f' % (a - c) for a, c in zip(sl[1], psol))
|
| 53 |
+
psol = sl[1] if sl else None
|
| 54 |
+
print('%d %-16s | %s %s | %s | eef %.3f %.3f %.3f | base %.3f %.3f %.3f | %.4f | %.4f | %s' % (
|
| 55 |
+
t, r['phase'][-16:], ' '.join('%.4f' % x for x in raw[:3]), ' '.join('%.3f' % x for x in raw[3:]), d,
|
| 56 |
+
float(r['eef_x']), float(r['eef_y']), float(r['eef_z']), float(r['base_x']), float(r['base_y']), float(r['base_yaw']), sm, dq, jd))
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinkj.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys, re, csv
|
| 2 |
+
log, csvf, t0, t1 = sys.argv[1], sys.argv[2], int(sys.argv[3]), int(sys.argv[4])
|
| 3 |
+
off = -1907
|
| 4 |
+
fl = lambda s: [float(x) for x in s.split(',')]
|
| 5 |
+
outs = {}
|
| 6 |
+
for line in open(log):
|
| 7 |
+
if line.startswith('OUT '):
|
| 8 |
+
m = re.match(r'OUT (\d+) q=\[(.*?)\] sol=\[(.*?)\]', line)
|
| 9 |
+
outs[int(m.group(1))] = (fl(m.group(2)), fl(m.group(3)))
|
| 10 |
+
J = ['right_j%d' % i for i in range(7)]
|
| 11 |
+
for r in csv.DictReader(open(csvf)):
|
| 12 |
+
t = int(r['tick'])
|
| 13 |
+
if t < t0 or t > t1: continue
|
| 14 |
+
k = 4 * t + off
|
| 15 |
+
q = [float(r['q_' + j]) for j in J]; qt = [float(r['qtgt_' + j]) for j in J]
|
| 16 |
+
print(t, r['phase'][-6:])
|
| 17 |
+
for kk in range(k, k + 4):
|
| 18 |
+
if kk in outs:
|
| 19 |
+
print(' OUT%d q ' % kk, ' '.join('%+.4f' % x for x in outs[kk][0]))
|
| 20 |
+
print(' OUT%d sol' % kk, ' '.join('%+.4f' % x for x in outs[kk][1]))
|
| 21 |
+
print(' csv q ', ' '.join('%+.4f' % x for x in q))
|
| 22 |
+
print(' csv qtgt ', ' '.join('%+.4f' % x for x in qt))
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinklog_close_per_tick.txt
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
align first csv tick 2838 -> OUT (9445, 4.484291076689573e-06) offset(OUT-4*tick)= -1907
|
| 2 |
+
check tick 2838 pred OUT 9445 best (9445, 4.484291076689573e-06)
|
| 3 |
+
check tick 3038 pred OUT 10245 best (10245, 4.548530578629695e-06)
|
| 4 |
+
check tick 3238 pred OUT 11045 best (11045, 4.772872924885263e-06)
|
| 5 |
+
check tick 3438 pred OUT 11845 best (11845, 4.700317382866359e-06)
|
| 6 |
+
check tick 3638 pred OUT 12645 best (12645, 4.18144226088657e-06)
|
| 7 |
+
NaN IN at OUT idx: [5424, 5428, 5432, 5436, 5440] ... [14996, 15000, 15004, 15008, 15012] n= 81
|
| 8 |
+
tick phase | IN raw pos (xyz) quat | dRaw_pos_mm | eef csv | base xy yaw | sol-q max(rad) | qtgt_csv - sol(last) max | per-joint sol delta vs prev tick
|
| 9 |
+
2905 take_item:down:0 | -0.1119 1.1007 0.7490 -0.490 0.500 -0.503 -0.507 | | eef -0.112 1.101 0.760 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 |
|
| 10 |
+
2906 take_item:down:0 | -0.1119 1.1006 0.7475 -0.491 0.500 -0.502 -0.506 | 1.49 | eef -0.112 1.101 0.758 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0013 -0.0000 +0.0037 +0.0019 -0.0012 -0.0015 +0.0020
|
| 11 |
+
2907 take_item:down:0 | -0.1119 1.1005 0.7460 -0.492 0.500 -0.502 -0.505 | 1.49 | eef -0.112 1.101 0.757 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0013 -0.0000 +0.0037 +0.0019 -0.0012 -0.0015 +0.0019
|
| 12 |
+
2908 take_item:down:0 | -0.1119 1.1005 0.7445 -0.493 0.500 -0.502 -0.505 | 1.49 | eef -0.112 1.101 0.755 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0013 -0.0000 +0.0037 +0.0019 -0.0011 -0.0015 +0.0019
|
| 13 |
+
2909 take_item:down:0 | -0.1120 1.1004 0.7430 -0.494 0.500 -0.502 -0.504 | 1.49 | eef -0.112 1.101 0.754 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0013 +0.0000 +0.0037 +0.0019 -0.0011 -0.0015 +0.0019
|
| 14 |
+
2910 take_item:down:0 | -0.1120 1.1003 0.7415 -0.495 0.500 -0.501 -0.503 | 1.49 | eef -0.112 1.101 0.752 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0013 +0.0000 +0.0037 +0.0019 -0.0011 -0.0015 +0.0019
|
| 15 |
+
2911 take_item:down:0 | -0.1120 1.1003 0.7401 -0.496 0.500 -0.501 -0.503 | 1.49 | eef -0.112 1.101 0.751 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0013 +0.0000 +0.0037 +0.0019 -0.0011 -0.0015 +0.0019
|
| 16 |
+
2912 take_item:down:0 | -0.1120 1.1002 0.7386 -0.497 0.500 -0.501 -0.502 | 1.49 | eef -0.112 1.101 0.749 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0013 +0.0000 +0.0037 +0.0019 -0.0011 -0.0015 +0.0019
|
| 17 |
+
2913 take_item:down:0 | -0.1121 1.1001 0.7371 -0.498 0.500 -0.501 -0.501 | 1.49 | eef -0.112 1.101 0.748 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0014 +0.0000 +0.0037 +0.0019 -0.0011 -0.0015 +0.0019
|
| 18 |
+
2914 take_item:down:0 | -0.1121 1.1001 0.7356 -0.499 0.500 -0.500 -0.501 | 1.49 | eef -0.112 1.101 0.746 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0014 +0.0000 +0.0037 +0.0019 -0.0011 -0.0015 +0.0019
|
| 19 |
+
2915 take_item:down:0 | -0.1121 1.1000 0.7341 -0.500 0.500 -0.500 -0.500 | 1.49 | eef -0.112 1.101 0.745 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0014 +0.0000 +0.0037 +0.0019 -0.0011 -0.0015 +0.0019
|
| 20 |
+
2916 take_item:down:0 | -0.1121 1.1000 0.7341 -0.500 0.500 -0.500 -0.500 | 0.00 | eef -0.112 1.100 0.743 | base 0.091 2.079 -1.573 | 0.0098 | 0.0037 | -0.0014 +0.0001 +0.0037 +0.0018 -0.0011 -0.0015 +0.0019
|
| 21 |
+
2917 take_item:down:0 | nan nan nan nan nan nan nan | nan | eef -0.112 1.100 0.742 | base 0.091 2.079 -1.573 | 0.0098 | 0.0038 | -0.0014 -0.0009 +0.0038 +0.0011 -0.0022 -0.0009 +0.0018
|
| 22 |
+
2918 | nan nan nan nan nan nan nan | nan | eef -0.112 1.100 0.740 | base 0.091 2.079 -1.573 | 0.0098 | 0.0038 | -0.0015 -0.0010 +0.0039 +0.0010 -0.0024 -0.0008 +0.0018
|
| 23 |
+
2919 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.112 1.100 0.739 | base 0.091 2.079 -1.573 | 0.0098 | 0.0039 | -0.0015 -0.0011 +0.0039 +0.0009 -0.0026 -0.0007 +0.0018
|
| 24 |
+
2920 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.112 1.100 0.738 | base 0.091 2.079 -1.573 | 0.0098 | 0.0039 | -0.0015 -0.0012 +0.0039 +0.0008 -0.0027 -0.0006 +0.0018
|
| 25 |
+
2921 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.112 1.100 0.736 | base 0.091 2.079 -1.573 | 0.0098 | 0.0039 | -0.0015 -0.0013 +0.0040 +0.0007 -0.0028 -0.0006 +0.0018
|
| 26 |
+
2922 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.112 1.100 0.736 | base 0.091 2.079 -1.573 | 0.0098 | 0.0038 | -0.0010 -0.0009 +0.0012 +0.0014 -0.0038 +0.0017 +0.0015
|
| 27 |
+
2923 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.113 1.103 0.734 | base 0.091 2.079 -1.573 | 0.0098 | 0.0034 | -0.0004 -0.0000 -0.0029 +0.0034 -0.0028 +0.0025 +0.0005
|
| 28 |
+
2924 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.116 1.107 0.732 | base 0.091 2.079 -1.573 | 0.0098 | 0.0044 | -0.0007 +0.0006 -0.0044 +0.0036 -0.0015 +0.0024 -0.0001
|
| 29 |
+
2925 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.119 1.112 0.730 | base 0.091 2.079 -1.573 | 0.0098 | 0.0054 | -0.0009 +0.0010 -0.0054 +0.0036 -0.0004 +0.0021 -0.0007
|
| 30 |
+
2926 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.124 1.117 0.728 | base 0.091 2.079 -1.573 | 0.0150 | 0.0065 | -0.0004 +0.0003 -0.0065 +0.0064 +0.0011 +0.0001 -0.0021
|
| 31 |
+
2927 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.129 1.123 0.726 | base 0.091 2.079 -1.573 | 0.0174 | 0.0211 | -0.0035 -0.0040 -0.0211 +0.0203 -0.0201 +0.0167 -0.0079
|
| 32 |
+
2928 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.139 1.143 0.717 | base 0.091 2.079 -1.573 | 0.0184 | 0.0522 | -0.0086 +0.0040 -0.0384 +0.0400 -0.0522 +0.0357 -0.0114
|
| 33 |
+
2929 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.155 1.176 0.703 | base 0.091 2.079 -1.573 | 0.0227 | 0.0624 | -0.0169 +0.0046 -0.0403 +0.0407 -0.0624 +0.0422 -0.0098
|
| 34 |
+
2930 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.173 1.215 0.691 | base 0.091 2.079 -1.573 | 0.0227 | 0.0635 | -0.0223 +0.0040 -0.0405 +0.0407 -0.0635 +0.0414 -0.0064
|
| 35 |
+
2931 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.192 1.257 0.683 | base 0.091 2.079 -1.573 | 0.0227 | 0.0640 | -0.0253 -0.0001 -0.0407 +0.0406 -0.0640 +0.0426 -0.0065
|
| 36 |
+
2932 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.207 1.300 0.680 | base 0.091 2.079 -1.573 | 0.0227 | 0.0645 | -0.0263 -0.0044 -0.0408 +0.0403 -0.0645 +0.0412 -0.0065
|
| 37 |
+
2933 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.220 1.345 0.680 | base 0.091 2.080 -1.573 | 0.0227 | 0.0653 | -0.0257 -0.0075 -0.0410 +0.0399 -0.0653 +0.0472 -0.0064
|
| 38 |
+
2934 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.227 1.389 0.684 | base 0.091 2.080 -1.573 | 0.0227 | 0.0639 | -0.0220 -0.0076 -0.0408 +0.0395 -0.0639 +0.0472 -0.0065
|
| 39 |
+
2935 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.228 1.432 0.689 | base 0.091 2.080 -1.573 | 0.0227 | 0.0629 | -0.0189 -0.0079 -0.0407 +0.0363 -0.0628 +0.0494 -0.0067
|
| 40 |
+
2936 take_item:close | nan nan nan nan nan nan nan | nan | eef -0.226 1.470 0.697 | base 0.091 2.080 -1.573 | 0.0227 | 0.0603 | -0.0148 -0.0084 -0.0404 +0.0314 -0.0603 +0.0432 -0.0067
|
| 41 |
+
2937 take_item:close | -0.2129 1.5288 0.7202 -0.841 0.052 -0.234 -0.485 | nan | eef -0.221 1.505 0.707 | base 0.091 2.080 -1.573 | 0.0227 | 0.0593 | -0.0111 -0.0083 -0.0402 +0.0245 -0.0593 +0.0528 -0.0070
|
| 42 |
+
2938 | -0.2117 1.5234 0.7219 -0.839 0.058 -0.238 -0.487 | 5.83 | eef -0.214 1.534 0.719 | base 0.091 2.080 -1.573 | 0.0174 | 0.0582 | -0.0069 +0.0007 -0.0401 +0.0175 -0.0582 +0.0543 +0.0166
|
| 43 |
+
2939 take_item:lift | -0.2104 1.5180 0.7236 -0.836 0.063 -0.242 -0.488 | 5.83 | eef -0.206 1.560 0.732 | base 0.091 2.080 -1.573 | 0.0227 | 0.0564 | -0.0041 -0.0050 -0.0399 +0.0137 -0.0564 +0.0492 -0.0207
|
| 44 |
+
2940 take_item:lift | -0.2091 1.5125 0.7253 -0.834 0.069 -0.246 -0.489 | 5.83 | eef -0.197 1.582 0.746 | base 0.091 2.080 -1.573 | 0.0227 | 0.0315 | -0.0041 -0.0027 -0.0315 +0.0127 -0.0190 +0.0127 -0.0080
|
| 45 |
+
2941 take_item:lift | -0.2078 1.5071 0.7270 -0.831 0.075 -0.250 -0.491 | 5.83 | eef -0.194 1.594 0.752 | base 0.091 2.080 -1.573 | 0.0227 | 0.0119 | -0.0066 -0.0084 -0.0045 -0.0019 +0.0083 -0.0118 -0.0087
|
| 46 |
+
2942 take_item:lift | -0.2066 1.5017 0.7287 -0.829 0.081 -0.254 -0.492 | 5.83 | eef -0.197 1.595 0.754 | base 0.091 2.080 -1.573 | 0.0227 | 0.0087 | -0.0022 -0.0020 +0.0000 -0.0046 +0.0066 -0.0068 -0.0087
|
| 47 |
+
2943 take_item:lift | -0.2053 1.4963 0.7304 -0.826 0.087 -0.258 -0.493 | 5.83 | eef -0.199 1.594 0.754 | base 0.091 2.080 -1.573 | 0.0227 | 0.0084 | +0.0016 +0.0028 -0.0045 -0.0023 -0.0024 +0.0065 -0.0084
|
| 48 |
+
2944 take_item:lift | -0.2040 1.4908 0.7321 -0.824 0.093 -0.262 -0.494 | 5.83 | eef -0.198 1.595 0.756 | base 0.091 2.080 -1.573 | 0.0227 | 0.0087 | +0.0018 +0.0012 -0.0041 +0.0014 +0.0042 -0.0054 -0.0087
|
| 49 |
+
2945 take_item:lift | -0.2027 1.4854 0.7338 -0.821 0.099 -0.266 -0.496 | 5.83 | eef -0.198 1.594 0.756 | base 0.091 2.080 -1.573 | 0.0227 | 0.0088 | +0.0015 +0.0006 +0.0013 -0.0019 +0.0063 -0.0063 -0.0088
|
| 50 |
+
2946 take_item:lift | -0.2015 1.4800 0.7355 -0.818 0.105 -0.270 -0.497 | 5.83 | eef -0.199 1.592 0.756 | base 0.091 2.080 -1.573 | 0.0227 | 0.0082 | +0.0039 +0.0016 -0.0081 +0.0014 -0.0045 +0.0072 -0.0082
|
| 51 |
+
2947 take_item:lift | -0.2002 1.4745 0.7372 -0.815 0.111 -0.274 -0.498 | 5.83 | eef -0.197 1.593 0.757 | base 0.091 2.080 -1.573 | 0.0227 | 0.0088 | +0.0019 -0.0016 +0.0003 -0.0006 +0.0058 -0.0060 -0.0088
|
| 52 |
+
2948 take_item:lift | -0.1989 1.4691 0.7389 -0.812 0.117 -0.278 -0.499 | 5.83 | eef -0.198 1.592 0.756 | base 0.091 2.080 -1.573 | 0.0227 | 0.0082 | +0.0037 +0.0009 -0.0066 +0.0000 -0.0044 +0.0067 -0.0082
|
| 53 |
+
2949 take_item:lift | -0.1976 1.4637 0.7406 -0.810 0.123 -0.282 -0.500 | 5.83 | eef -0.196 1.593 0.758 | base 0.091 2.080 -1.573 | 0.0227 | 0.0088 | +0.0020 -0.0019 -0.0012 +0.0002 +0.0052 -0.0058 -0.0088
|
| 54 |
+
2950 take_item:lift | -0.1964 1.4583 0.7423 -0.807 0.129 -0.286 -0.501 | 5.83 | eef -0.196 1.592 0.758 | base 0.091 2.080 -1.573 | 0.0227 | 0.0084 | +0.0023 -0.0021 +0.0006 -0.0030 -0.0006 +0.0039 -0.0084
|
| 55 |
+
2951 take_item:lift | -0.1951 1.4528 0.7440 -0.803 0.135 -0.290 -0.502 | 5.83 | eef -0.196 1.592 0.760 | base 0.091 2.080 -1.573 | 0.0227 | 0.0085 | +0.0036 +0.0006 -0.0078 +0.0023 +0.0013 -0.0034 -0.0085
|
| 56 |
+
2952 take_item:lift | -0.1938 1.4474 0.7457 -0.800 0.141 -0.294 -0.503 | 5.83 | eef -0.195 1.592 0.760 | base 0.091 2.080 -1.573 | 0.0227 | 0.0088 | +0.0019 -0.0028 +0.0011 -0.0015 +0.0061 -0.0062 -0.0088
|
| 57 |
+
2953 take_item:lift | -0.1925 1.4420 0.7474 -0.797 0.147 -0.298 -0.504 | 5.83 | eef -0.196 1.590 0.760 | base 0.091 2.080 -1.573 | 0.0227 | 0.0082 | +0.0038 +0.0003 -0.0068 -0.0003 -0.0052 +0.0060 -0.0082
|
| 58 |
+
2954 take_item:lift | -0.1912 1.4365 0.7491 -0.794 0.154 -0.302 -0.505 | 5.83 | eef -0.194 1.592 0.762 | base 0.091 2.080 -1.573 | 0.0224 | 0.0084 | +0.0020 -0.0027 -0.0014 +0.0001 +0.0052 -0.0058 -0.0084
|
| 59 |
+
2955 take_item:lift | -0.1900 1.4311 0.7507 -0.791 0.160 -0.305 -0.506 | 5.83 | eef -0.194 1.591 0.763 | base 0.091 2.080 -1.573 | 0.0214 | 0.0073 | +0.0023 -0.0027 +0.0005 -0.0031 -0.0010 +0.0034 -0.0073
|
| 60 |
+
2956 take_item:lift | -0.1887 1.4257 0.7524 -0.787 0.166 -0.309 -0.507 | 5.83 | eef -0.193 1.591 0.765 | base 0.091 2.080 -1.573 | 0.0216 | 0.0083 | +0.0035 +0.0003 -0.0082 +0.0020 +0.0010 -0.0036 -0.0083
|
| 61 |
+
2957 take_item:lift | -0.1874 1.4203 0.7541 -0.784 0.172 -0.313 -0.508 | 5.83 | eef -0.193 1.591 0.766 | base 0.091 2.080 -1.573 | 0.0206 | 0.0073 | +0.0018 -0.0033 +0.0009 -0.0016 +0.0061 -0.0062 -0.0073
|
| 62 |
+
2958 take_item:lift | -0.1861 1.4148 0.7558 -0.780 0.178 -0.317 -0.509 | 5.83 | eef -0.194 1.589 0.766 | base 0.091 2.080 -1.573 | 0.0208 | 0.0076 | +0.0037 +0.0003 -0.0070 -0.0007 -0.0056 +0.0055 -0.0076
|
| 63 |
+
2959 take_item:lift | -0.1849 1.4094 0.7575 -0.777 0.184 -0.321 -0.510 | 5.83 | eef -0.192 1.591 0.768 | base 0.091 2.080 -1.573 | 0.0202 | 0.0074 | +0.0019 -0.0029 -0.0016 -0.0002 +0.0052 -0.0058 -0.0074
|
| 64 |
+
2960 take_item:lift | -0.1836 1.4040 0.7592 -0.773 0.190 -0.325 -0.510 | 5.83 | eef -0.192 1.590 0.769 | base 0.091 2.080 -1.573 | 0.0192 | 0.0068 | +0.0019 -0.0032 +0.0019 -0.0025 +0.0064 -0.0064 -0.0068
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinklog_per_physics_step_2926_2928.txt
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
2926 :close
|
| 2 |
+
OUT9797 q -0.2437 -0.6982 -0.5979 +1.2014 +0.4359 +1.2346 -0.6254
|
| 3 |
+
OUT9797 sol -0.2386 -0.6984 -0.5882 +1.1917 +0.4468 +1.2246 -0.6261
|
| 4 |
+
OUT9798 q -0.2449 -0.6981 -0.5995 +1.2030 +0.4350 +1.2354 -0.6254
|
| 5 |
+
OUT9798 sol -0.2388 -0.6983 -0.5897 +1.1932 +0.4471 +1.2245 -0.6266
|
| 6 |
+
OUT9799 q -0.2460 -0.6980 -0.6011 +1.2046 +0.4342 +1.2362 -0.6254
|
| 7 |
+
OUT9799 sol -0.2389 -0.6982 -0.5913 +1.1948 +0.4475 +1.2244 -0.6271
|
| 8 |
+
OUT9800 q -0.2472 -0.6979 -0.6029 +1.2063 +0.4326 +1.2378 -0.6254
|
| 9 |
+
OUT9800 sol -0.2389 -0.6981 -0.5931 +1.1965 +0.4477 +1.2247 -0.6277
|
| 10 |
+
csv q -0.2437 -0.6982 -0.5979 +1.2014 +0.4359 +1.2346 -0.6254
|
| 11 |
+
csv qtgt -0.2385 -0.6984 -0.5867 +1.1901 +0.4465 +1.2246 -0.6256
|
| 12 |
+
2927 :close
|
| 13 |
+
OUT9801 q -0.2483 -0.6976 -0.6059 +1.2088 +0.4293 +1.2412 -0.6253
|
| 14 |
+
OUT9801 sol -0.2396 -0.6981 -0.5961 +1.1990 +0.4467 +1.2263 -0.6292
|
| 15 |
+
OUT9802 q -0.2492 -0.6973 -0.6105 +1.2129 +0.4244 +1.2460 -0.6254
|
| 16 |
+
OUT9802 sol -0.2405 -0.6989 -0.6007 +1.2031 +0.4419 +1.2287 -0.6308
|
| 17 |
+
OUT9803 q -0.2501 -0.6968 -0.6166 +1.2188 +0.4180 +1.2518 -0.6255
|
| 18 |
+
OUT9803 sol -0.2414 -0.7003 -0.6068 +1.2090 +0.4354 +1.2344 -0.6330
|
| 19 |
+
OUT9804 q -0.2511 -0.6961 -0.6241 +1.2265 +0.4101 +1.2588 -0.6257
|
| 20 |
+
OUT9804 sol -0.2424 -0.7022 -0.6143 +1.2167 +0.4275 +1.2414 -0.6356
|
| 21 |
+
csv q -0.2483 -0.6977 -0.6059 +1.2088 +0.4293 +1.2412 -0.6253
|
| 22 |
+
csv qtgt -0.2390 -0.6981 -0.5932 +1.1965 +0.4477 +1.2247 -0.6277
|
| 23 |
+
2928 :close
|
| 24 |
+
OUT9805 q -0.2524 -0.6953 -0.6329 +1.2360 +0.4008 +1.2667 -0.6261
|
| 25 |
+
OUT9805 sol -0.2437 -0.7019 -0.6231 +1.2262 +0.4182 +1.2493 -0.6386
|
| 26 |
+
OUT9806 q -0.2542 -0.6942 -0.6425 +1.2462 +0.3884 +1.2756 -0.6268
|
| 27 |
+
OUT9806 sol -0.2455 -0.7008 -0.6327 +1.2364 +0.4058 +1.2582 -0.6415
|
| 28 |
+
OUT9807 q -0.2567 -0.6929 -0.6525 +1.2564 +0.3731 +1.2846 -0.6276
|
| 29 |
+
OUT9807 sol -0.2480 -0.6995 -0.6427 +1.2466 +0.3906 +1.2672 -0.6443
|
| 30 |
+
OUT9808 q -0.2597 -0.6915 -0.6625 +1.2665 +0.3579 +1.2945 -0.6286
|
| 31 |
+
OUT9808 sol -0.2510 -0.6982 -0.6527 +1.2567 +0.3753 +1.2771 -0.6470
|
| 32 |
+
csv q -0.2524 -0.6953 -0.6329 +1.2360 +0.4008 +1.2667 -0.6261
|
| 33 |
+
csv qtgt -0.2424 -0.7021 -0.6143 +1.2167 +0.4275 +1.2414 -0.6356
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinklog_s101_pink.log.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:543dafcbd6d2a96107494aaa6d2cf6f9f2cbd0e7baa8341f6e9df38014988944
|
| 3 |
+
size 606493
|
debug/536/n052_sawyer/pinklog_armlock_2026-11-09/pinklog_s101_take_item_ticks.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
debug/536/n052_sawyer/step_2026-11-09/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# N052 sawyer_umi on 536: step-by-step around take_item:close (seed 101, 2026-11-09 19:15 CST)
|
| 2 |
+
|
| 3 |
+
By @nova (536 collector). Files in this folder: `closeup_s101_take_item_ticks.csv` (the per-tick recorder, both UMI fingers + gripper links), `closeup_s101_run.log`, `closeup_s101_grasp_slow4x.mp4` (fixed camera on the scale, 4x slow motion of the grasp), and `step_table_s101.txt` (the table below for every tick).
|
| 4 |
+
|
| 5 |
+
## What the ticks show (rows = control ticks; qtgt = articulation joint position target, q = measured)
|
| 6 |
+
- **Before the hand touches the die:** during the last ticks of `take_item:down` the pose target (`arm_tgt`) is constant, but the joint targets move every tick (right_j2 +0.004 rad/tick). The hand sinks about 1 mm/tick (eef z 0.742 -> 0.735).
|
| 7 |
+
- **`take_item:close` (gripper only, no arm pose sent):** the joint targets keep moving the same way. From the first finger contact (tick 4 of close) the drift speeds up to about 0.04 rad/tick. qtgt stays **ahead** of q by 0.02-0.03 rad, so the controller is driving the arm, and the arm is not being pushed by the die. eef y moves 1.100 -> 1.304 m in 13 ticks, z sinks 4 cm.
|
| 8 |
+
- **The grip:** the left pad is pushed back to its open stop (q 0.0208) and the right pad nearly closes (-0.0035). The die is then clamped between a rigid stop and the other pad, and the contact force rises to about 340-430 N per pad. That force is set by the arm, not by the 20 N gripper drive.
|
| 9 |
+
- **Pink `nan_hold` (forced on through an env switch in a test copy):** the first close tick changes, then the same drift continues, so the moving targets do not come only from the NaN fallback.
|
| 10 |
+
- **Joint limits:** every joint is far from its limit (j0 -0.23..-0.34, j1 -0.69..-0.72, j2 -0.59..-0.80, j3 1.17..1.40, j4 0.47..0.15, j5 1.22..1.43, j6 -0.62..-0.65), so the PINK_JOINT_MARGIN clamp is not the cause.
|
| 11 |
+
|
| 12 |
+
## Suspect
|
| 13 |
+
The arm's joint targets come from the IK (Pink) layer, or from something else writing them, and they keep changing with a fixed or absent pose target. The next check is to log, per tick, the pose that reaches `PinkInverseKinematicsAction.process_actions` (after `_handle_nan_actions`) and the joint targets `_compute_ik_solutions` returns. Note that an all-NaN arm row is skipped (`_env_ids` empty), so `apply_actions` returns early. In that case the targets should stay frozen and gravity compensation is not applied that tick, yet the recorded targets keep moving.
|
debug/536/n052_sawyer/step_2026-11-09/closeup_s101_grasp_slow4x.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e542e486edaff7b9559ed777448ce8116c05f87793b39d967ec526deac169237
|
| 3 |
+
size 3158095
|
debug/536/n052_sawyer/step_2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gpus=2 start 2026-11-09 19:06:06
|
| 2 |
+
0, 2179 MiB, 46068 MiB
|
| 3 |
+
1, 11632 MiB, 46068 MiB
|
| 4 |
+
2, 14968 MiB, 46068 MiB
|
| 5 |
+
[memory] DR spawn jitter: {'seed': 101, 'spawn_jitter': 0.3, 'start': [-3.4252, -2.0984, 0.2512], 'nominal_start': [-3.3, -2.3, 0.0]}
|
| 6 |
+
Warp DeprecationWarning: The namespace `warp.torch` will soon be removed from the public API. It can still be accessed from `warp._src.torch` but might be changed or removed without notice.
|
| 7 |
+
Warp DeprecationWarning: The namespace `warp.context` will soon be removed from the public API. It can still be accessed from `warp._src.context` but might be changed or removed without notice.
|
| 8 |
+
Warp 1.12.1 initialized:
|
| 9 |
+
CUDA Toolkit 12.9, Driver 12.8
|
| 10 |
+
Devices:
|
| 11 |
+
"cpu" : "x86_64"
|
| 12 |
+
"cuda:0" : "NVIDIA L40S" (44 GiB, sm_89, mempool enabled)
|
| 13 |
+
Kernel cache:
|
| 14 |
+
/mnt/scratch/xc536_atomic/n052saw_closeup_s101/xdg/warp
|
| 15 |
+
[WARN][AppLauncher]: There are no arguments attached to the ArgumentParser object. If you have your own arguments, please load your own arguments before calling the `AppLauncher.add_app_launcher_args` method. This allows the method to check the validity of the arguments and perform checks for argument names.
|
| 16 |
+
[INFO][AppLauncher]: Using device: cuda:0
|
| 17 |
+
[INFO][AppLauncher]: Loading experience file: /mnt/scratch/xc536_atomic/n052saw_closeup_s101/ptree/src/magicsim/Launch/magicsim.python.kit
|
| 18 |
+
[Info] [carb] Logging to file: /home/luhr/tactilelab/MagicSim/.venv/lib/python3.11/site-packages/isaacsim/kit/logs/Kit/Isaac-Sim/5.1/kit_20261109_190620.log
|
| 19 |
+
[1.041s] Failed to solve some dependencies locally, syncing with extension registry...
|
| 20 |
+
[1.043s] [ext: omni.kit.async_engine-0.0.3] startup
|
| 21 |
+
[1.058s] [ext: omni.client.lib-1.1.0] startup
|
| 22 |
+
[1.193s] [ext: omni.kit.registry.nucleus-0.0.0] startup
|
| 23 |
+
[6.204s] Pulling extension: `omni.kit.pip_archive-0.0.0` from the registry.
|
| 24 |
+
[12.502s] Extension: `omni.kit.pip_archive-0.0.0` was installed.
|
| 25 |
+
[12.503s] Pulling extension: `isaacsim.asset.importer.urdf-2.4.31` from the registry.
|
| 26 |
+
[15.001s] Extension: `isaacsim.asset.importer.urdf-2.4.31` was installed.
|
| 27 |
+
[15.001s] Pulling extension: `omni.flowusd.ui-107.1.2` from the registry.
|
| 28 |
+
[15.300s] Extension: `omni.flowusd.ui-107.1.2` was installed.
|
| 29 |
+
[15.301s] Pulling extension: `omni.flowusd.bundle-1.1.2` from the registry.
|
| 30 |
+
[15.689s] Extension: `omni.flowusd.bundle-1.1.2` was installed.
|
| 31 |
+
[15.709s] [ext: omni.metrics.core-0.0.3] startup
|
| 32 |
+
[15.714s] [ext: omni.blobkey-1.1.2] startup
|
| 33 |
+
[15.717s] [ext: omni.stats-1.0.1] startup
|
| 34 |
+
[17.463s] [ext: omni.datastore-0.0.0] startup
|
| 35 |
+
[17.520s] [ext: omni.client-1.3.0] startup
|
| 36 |
+
[17.524s] [ext: omni.ujitso.default-1.0.0] startup
|
| 37 |
+
[17.533s] [ext: omni.hsscclient-1.1.2] startup
|
| 38 |
+
[17.606s] [ext: omni.gpu_foundation.shadercache.vulkan-1.0.0] startup
|
| 39 |
+
[17.651s] [ext: omni.assets.plugins-0.0.0] startup
|
| 40 |
+
[17.665s] [ext: omni.gpu_foundation-0.0.0] startup
|
| 41 |
+
[17.800s] [ext: carb.windowing.plugins-1.0.0] startup
|
| 42 |
+
2026-11-10T00:06:38Z [17,458ms] [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
|
| 43 |
+
2026-11-10T00:06:38Z [17,458ms] [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.5]) (impl: carb.windowing-glfw.plugin)
|
| 44 |
+
[17.808s] [ext: omni.kit.renderer.init-0.0.0] startup
|
| 45 |
+
2026-11-10T00:06:38Z [17,500ms] [Warning] [omni.platforminfo.plugin] failed to open the default display. Can't verify X Server version.
|
| 46 |
+
2026-11-10T00:06:38Z [17,510ms] [Warning] [carb.cudainterop.plugin] CUDA_VISIBLE_DEVICES environment variable is set.
|
| 47 |
+
2026-11-10T00:06:38Z [17,510ms] [Warning] [carb.cudainterop.plugin] Note CUDA device enumeration and Omniverse device enumeration are different.
|
| 48 |
+
2026-11-10T00:06:38Z [17,510ms] [Warning] [carb.cudainterop.plugin] Setting CUDA_VISIBLE_DEVICES can lead to undesired behavior or crashes.
|
| 49 |
+
|
| 50 |
+
|---------------------------------------------------------------------------------------------|
|
| 51 |
+
| Driver Version: 570.148.08 | Graphics API: Vulkan
|
| 52 |
+
|=============================================================================================|
|
| 53 |
+
| GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID |
|
| 54 |
+
| | | | | | Device-ID | UUID |
|
| 55 |
+
| | | | | | Bus-ID | |
|
| 56 |
+
| 0 | NVIDIA L40S | Yes: 0 | | 46068 MB | 10de | 0 |
|
| 57 |
+
| | | | | | 26b9 | 62e0bf1f.. |
|
| 58 |
+
| | | | | | ab | |
|
| 59 |
+
| OS: 24.04.2 LTS (Noble Numbat) ubuntu, Version: 24.04.2, Kernel: 5.14.0-570.134.1.el9_6.x86_64
|
| 60 |
+
| Processor: INTEL(R) XEON(R) GOLD 6526Y
|
| 61 |
+
| Cores: 32 | Logical Cores: 32
|
| 62 |
+
| Total Memory (MB): 515701 | Free Memory: 341338
|
| 63 |
+
| Total Page/Swap (MB): 0 | Free Page/Swap: 0
|
| 64 |
+
2026-11-10T00:06:39Z [19,157ms] [Warning] [gpu.foundation.plugin] ECC is enabled on physical device 0
|
| 65 |
+
[20.141s] [ext: omni.kit.pipapi-0.0.0] startup
|
| 66 |
+
[20.189s] [ext: omni.materialx.libs-1.0.7] startup
|
| 67 |
+
[20.248s] [ext: omni.kit.pip_archive-0.0.0] startup
|
| 68 |
+
[20.249s] [ext: omni.usd.config-1.0.6] startup
|
| 69 |
+
[20.281s] [ext: omni.gpucompute.plugins-0.0.0] startup
|
| 70 |
+
[20.286s] [ext: omni.usd.libs-1.0.1] startup
|
| 71 |
+
[20.735s] [ext: omni.mdl-56.0.3] startup
|
| 72 |
+
[20.894s] [ext: omni.iray.libs-0.0.0] startup
|
| 73 |
+
[21.108s] [ext: omni.mdl.neuraylib-0.2.12] startup
|
| 74 |
+
[21.123s] [ext: omni.kit.usd.mdl-1.1.5] startup
|
| 75 |
+
[21.427s] [ext: omni.kit.loop-isaac-1.3.7] startup
|
| 76 |
+
[21.518s] [ext: omni.kit.test-2.0.1] startup
|
| 77 |
+
[21.898s] [ext: omni.services.pip_archive-0.16.0] startup
|
| 78 |
+
[21.900s] [ext: omni.kit.telemetry-0.5.2] startup
|
| 79 |
+
[22.034s] [ext: omni.appwindow-1.1.10] startup
|
| 80 |
+
2026-11-10T00:06:42Z [21,701ms] [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
|
| 81 |
+
2026-11-10T00:06:42Z [21,704ms] [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.5]) (impl: carb.windowing-glfw.plugin)
|
| 82 |
+
[22.070s] [ext: omni.kit.renderer.core-1.1.0] startup
|
| 83 |
+
[22.269s] [ext: omni.kit.renderer.capture-0.0.0] startup
|
| 84 |
+
[22.285s] [ext: omni.kit.renderer.imgui-2.0.5] startup
|
| 85 |
+
[23.007s] [ext: omni.ui-2.27.1] startup
|
| 86 |
+
[23.054s] [ext: omni.kit.mainwindow-1.0.3] startup
|
| 87 |
+
[23.063s] [ext: carb.audio-0.1.0] startup
|
| 88 |
+
[23.081s] [ext: omni.uiaudio-1.0.0] startup
|
| 89 |
+
[23.086s] [ext: omni.kit.uiapp-0.0.0] startup
|
| 90 |
+
[23.087s] [ext: omni.usd.schema.metrics.assembler-107.3.1] startup
|
| 91 |
+
[23.108s] [ext: omni.usd.schema.audio-0.0.0] startup
|
| 92 |
+
[23.420s] [ext: omni.usd.schema.omnigraph-1.0.0] startup
|
| 93 |
+
[23.461s] [ext: omni.usd_resolver-1.0.0] startup
|
| 94 |
+
[23.475s] [ext: omni.usd.core-1.5.3] startup
|
| 95 |
+
[23.489s] [ext: omni.usd.schema.render_settings.rtx-0.0.0] startup
|
| 96 |
+
[23.554s] [ext: omni.usd.schema.omni_lens_distortion-0.0.0] startup
|
| 97 |
+
[23.556s] [ext: omni.usd.schema.omniscripting-1.0.0] startup
|
| 98 |
+
[23.567s] [ext: omni.usd.schema.anim-0.0.0] startup
|
| 99 |
+
[23.630s] [ext: omni.usd.schema.physx-107.3.26] startup
|
| 100 |
+
[23.711s] [ext: isaacsim.robot.schema-3.6.0] startup
|
| 101 |
+
[23.733s] [ext: omni.anim.navigation.schema-107.3.3] startup
|
| 102 |
+
[23.743s] [ext: omni.usd.schema.scene.visualization-2.0.2] startup
|
| 103 |
+
[23.746s] [ext: omni.anim.behavior.schema-107.3.0] startup
|
| 104 |
+
[23.756s] [ext: omni.usd.schema.semantics-0.0.0] startup
|
| 105 |
+
[23.764s] [ext: omni.usd.schema.geospatial-0.0.0] startup
|
| 106 |
+
[23.771s] [ext: omni.usd.schema.omni_sensors-0.0.0] startup
|
| 107 |
+
[23.773s] [ext: omni.anim.graph.schema-107.3.3] startup
|
| 108 |
+
[23.789s] [ext: omni.activity.core-1.0.3] startup
|
| 109 |
+
[23.795s] [ext: omni.graph.exec-0.9.6] startup
|
| 110 |
+
[23.797s] [ext: omni.kit.actions.core-1.0.0] startup
|
| 111 |
+
[23.807s] [ext: omni.kit.exec.core-0.13.4] startup
|
| 112 |
+
[23.815s] [ext: omni.kit.commands-1.4.10] startup
|
| 113 |
+
[23.835s] [ext: usdrt.scenegraph-7.6.1] startup
|
| 114 |
+
[23.963s] [ext: omni.resourcemonitor-107.0.1] startup
|
| 115 |
+
[23.973s] [ext: omni.kit.audiodeviceenum-1.0.2] startup
|
| 116 |
+
[23.980s] [ext: omni.hydra.usdrt_delegate-7.5.1] startup
|
| 117 |
+
[24.011s] [ext: omni.kit.window.popup_dialog-2.0.24] startup
|
| 118 |
+
[24.033s] [ext: omni.timeline-1.0.14] startup
|
| 119 |
+
[24.042s] [ext: omni.kit.widget.nucleus_connector-2.0.1] startup
|
| 120 |
+
[24.054s] [ext: omni.kit.usd_undo-0.1.8] startup
|
| 121 |
+
[24.058s] [ext: omni.hydra.scene_delegate-0.3.4] startup
|
| 122 |
+
[24.072s] [ext: omni.usd-1.13.10] startup
|
| 123 |
+
[24.172s] [ext: omni.kit.asset_converter-5.0.17] startup
|
| 124 |
+
[24.523s] [ext: omni.usd.schema.flow-107.1.1] startup
|
| 125 |
+
[24.554s] [ext: omni.index.libs-380600.8087.0] startup
|
| 126 |
+
[24.554s] [ext: omni.kit.clipboard-1.0.5] startup
|
| 127 |
+
[24.572s] [ext: omni.index-1.0.1] startup
|
| 128 |
+
[24.586s] [ext: omni.kit.helper.file_utils-0.1.9] startup
|
| 129 |
+
[24.631s] [ext: omni.kit.menu.core-1.1.2] startup
|
| 130 |
+
[24.668s] [ext: omni.kit.widget.path_field-2.0.11] startup
|
| 131 |
+
[24.706s] [ext: omni.kit.widget.options_menu-1.1.6] startup
|
| 132 |
+
[24.741s] [ext: omni.kit.widget.filebrowser-2.12.3] startup
|
| 133 |
+
[24.781s] [ext: omni.kit.widget.context_menu-1.2.5] startup
|
| 134 |
+
[24.789s] [ext: omni.kit.widget.browser_bar-2.0.10] startup
|
| 135 |
+
[24.794s] [ext: omni.ui.scene-1.11.5] startup
|
| 136 |
+
[24.815s] [ext: omni.kit.widget.options_button-1.0.3] startup
|
| 137 |
+
[24.820s] [ext: omni.kit.notification_manager-1.0.10] startup
|
| 138 |
+
[24.830s] [ext: omni.hydra.rtx.shadercache.vulkan-1.0.0] startup
|
| 139 |
+
[25.024s] [ext: omni.kit.window.filepicker-2.13.4] startup
|
| 140 |
+
[25.126s] [ext: omni.volume-0.5.2] startup
|
| 141 |
+
[25.155s] [ext: omni.ujitso.client-0.0.0] startup
|
| 142 |
+
[25.157s] [ext: omni.kit.usd.layers-2.2.11] startup
|
| 143 |
+
[25.208s] [ext: omni.hydra.rtx-1.0.0] startup
|
| 144 |
+
2026-11-10T00:06:45Z [25,104ms] [Warning] [omni.log] Source: omni.hydra was already registered.
|
| 145 |
+
[25.614s] [ext: omni.kit.window.file_importer-1.1.18] startup
|
| 146 |
+
[25.623s] [ext: omni.kit.menu.utils-2.0.5] startup
|
| 147 |
+
[25.668s] [ext: omni.kit.context_menu-1.8.6] startup
|
| 148 |
+
[25.682s] [ext: omni.kit.raycast.query-1.1.0] startup
|
| 149 |
+
[25.699s] [ext: omni.kit.material.library-2.0.7] startup
|
| 150 |
+
[25.739s] [ext: omni.hydra.engine.stats-1.0.3] startup
|
| 151 |
+
[25.751s] [ext: omni.kit.viewport.scene_camera_model-1.0.6] startup
|
| 152 |
+
[25.765s] [ext: omni.kit.hydra_texture-1.4.6] startup
|
| 153 |
+
[25.778s] [ext: omni.kit.widget.searchable_combobox-1.0.6] startup
|
| 154 |
+
[25.786s] [ext: omni.kit.window.drop_support-1.0.5] startup
|
| 155 |
+
[25.789s] [ext: omni.kit.widget.viewport-107.1.3] startup
|
| 156 |
+
[25.816s] [ext: omni.kit.viewport.registry-104.0.6] startup
|
| 157 |
+
[25.819s] [ext: omni.kit.viewport.legacy_gizmos-1.0.19] startup
|
| 158 |
+
[25.826s] [ext: omni.kit.widget.settings-1.2.6] startup
|
| 159 |
+
[25.843s] [ext: omni.kit.viewport.window-107.2.0] startup
|
| 160 |
+
[25.915s] [ext: omni.kit.window.preferences-1.8.0] startup
|
| 161 |
+
[25.956s] [ext: omni.kit.widget.toolbar-2.0.1] startup
|
| 162 |
+
[25.985s] [ext: omni.kit.viewport.utility-1.1.2] startup
|
| 163 |
+
[25.990s] [ext: omni.kit.manipulator.transform-107.0.0] startup
|
| 164 |
+
[26.024s] [ext: omni.kit.manipulator.tool.snap-1.5.13] startup
|
| 165 |
+
[26.046s] [ext: omni.kit.manipulator.selector-1.1.3] startup
|
| 166 |
+
[26.051s] [ext: omni.kit.viewport.manipulator.transform-107.0.4] startup
|
| 167 |
+
[26.062s] [ext: omni.kit.manipulator.viewport-107.0.1] startup
|
| 168 |
+
[26.067s] [ext: omni.kit.widget.prompt-1.0.7] startup
|
| 169 |
+
[26.072s] [ext: omni.inspect-1.0.2] startup
|
| 170 |
+
[26.079s] [ext: omni.kit.manipulator.prim.core-107.0.8] startup
|
| 171 |
+
[26.113s] [ext: omni.kit.primitive.mesh-1.0.17] startup
|
| 172 |
+
[26.134s] [ext: omni.kit.window.file_exporter-1.0.33] startup
|
| 173 |
+
[26.139s] [ext: omni.fabric.commands-1.1.6] startup
|
| 174 |
+
[26.158s] [ext: omni.rtx.window.settings-0.6.19] startup
|
| 175 |
+
[26.176s] [ext: omni.ocio-0.1.1] startup
|
| 176 |
+
[26.180s] [ext: omni.graph.core-2.184.5] startup
|
| 177 |
+
[26.201s] [ext: omni.kit.manipulator.prim.usd-107.0.3] startup
|
| 178 |
+
[26.207s] [ext: omni.kit.manipulator.prim.fabric-107.0.4] startup
|
| 179 |
+
[26.214s] [ext: omni.rtx.settings.core-0.6.5] startup
|
| 180 |
+
[26.236s] [ext: isaacsim.core.deprecation_manager-0.2.7] startup
|
| 181 |
+
[26.240s] [ext: omni.kit.manipulator.prim-107.0.0] startup
|
| 182 |
+
[26.240s] [ext: omni.debugdraw-0.1.4] startup
|
| 183 |
+
[26.250s] [ext: omni.physics-107.3.26] startup
|
| 184 |
+
[26.263s] [ext: isaacsim.core.version-2.0.6] startup
|
| 185 |
+
[26.266s] [ext: omni.kvdb-107.3.26] startup
|
| 186 |
+
[26.275s] [ext: omni.usdphysics-107.3.26] startup
|
| 187 |
+
[26.283s] [ext: omni.physx.foundation-107.3.26] startup
|
| 188 |
+
[26.298s] [ext: omni.localcache-107.3.26] startup
|
| 189 |
+
[26.305s] [ext: omni.convexdecomposition-107.3.26] startup
|
| 190 |
+
[26.317s] [ext: omni.kit.property.adapter.core-1.0.2] startup
|
| 191 |
+
[26.328s] [ext: omni.physx.cooking-107.3.26] startup
|
| 192 |
+
[26.345s] [ext: omni.kit.property.adapter.usd-1.0.2] startup
|
| 193 |
+
[26.352s] [ext: omni.kit.property.adapter.fabric-1.0.3] startup
|
| 194 |
+
[26.361s] [ext: omni.physx-107.3.26] startup
|
| 195 |
+
[26.416s] [ext: omni.kit.stage_template.core-1.1.22] startup
|
| 196 |
+
[26.422s] [ext: omni.kit.widget.filter-1.1.4] startup
|
| 197 |
+
[26.427s] [ext: omni.kit.widget.searchfield-1.1.8] startup
|
| 198 |
+
[26.436s] [ext: omni.kit.hotkeys.core-1.3.10] startup
|
| 199 |
+
[26.440s] [ext: omni.kit.window.file-2.0.5] startup
|
| 200 |
+
[26.461s] [ext: omni.kit.window.content_browser_registry-0.0.6] startup
|
| 201 |
+
[26.466s] [ext: omni.kit.widget.stage-3.1.4] startup
|
| 202 |
+
[26.534s] [ext: omni.kit.widget.highlight_label-1.0.3] startup
|
| 203 |
+
[26.539s] [ext: omni.kit.window.content_browser-3.1.3] startup
|
| 204 |
+
[26.566s] [ext: omni.kit.viewport.menubar.core-107.2.1] startup
|
| 205 |
+
[26.632s] [ext: omni.kit.viewport.actions-107.0.2] startup
|
| 206 |
+
[26.645s] [ext: omni.kit.window.property-1.12.1] startup
|
| 207 |
+
[26.661s] [ext: omni.kit.widget.layers-1.8.6] startup
|
| 208 |
+
[26.728s] [ext: omni.kit.viewport.menubar.display-107.0.3] startup
|
| 209 |
+
[26.738s] [ext: omni.kit.property.usd-4.5.12] startup
|
| 210 |
+
[26.842s] [ext: omni.kit.manipulator.selection-106.0.1] startup
|
| 211 |
+
[26.865s] [ext: omni.physx.commands-107.3.26] startup
|
| 212 |
+
[26.925s] [ext: omni.usdphysics.ui-107.3.26] startup
|
| 213 |
+
[27.035s] [ext: omni.physics.stageupdate-107.3.26] startup
|
| 214 |
+
[27.043s] [ext: isaacsim.storage.native-1.5.1] startup
|
| 215 |
+
[27.054s] [ext: omni.usd.metrics.assembler-107.3.1] startup
|
| 216 |
+
[27.191s] [ext: omni.physx.ui-107.3.26] startup
|
| 217 |
+
[27.375s] [ext: omni.physics.physx-107.3.26] startup
|
| 218 |
+
2026-11-10T00:06:47Z [27,029ms] [Warning] [carb] Acquiring non optional plugin interface which is not listed as dependency: [omni::physx::IPhysxBenchmarks v1.0] (plugin: <default plugin>), by client: omni.physics.physx.plugin. Add it to CARB_PLUGIN_IMPL_DEPS() macro of a client.
|
| 219 |
+
[27.380s] [ext: omni.kit.numpy.common-0.1.3] startup
|
| 220 |
+
[27.386s] [ext: omni.kit.stagerecorder.core-107.0.3] startup
|
| 221 |
+
[27.397s] [ext: omni.usd.metrics.assembler.physics-107.3.26] startup
|
| 222 |
+
[27.412s] [ext: omni.warp.core-1.8.2] startup
|
| 223 |
+
[27.421s] [ext: omni.isaac.dynamic_control-2.0.7] startup
|
| 224 |
+
2026-11-10T00:06:47Z [27,092ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users.
|
| 225 |
+
[27.444s] [ext: semantics.schema.property-2.0.1] startup
|
| 226 |
+
2026-11-10T00:06:47Z [27,108ms] [Warning] [pxr.Semantics] pxr.Semantics is deprecated - please use Semantics instead
|
| 227 |
+
[27.465s] [ext: omni.kit.stagerecorder.ui-107.0.1] startup
|
| 228 |
+
[27.485s] [ext: omni.physics.tensors-107.3.26] startup
|
| 229 |
+
[27.511s] [ext: omni.kit.stagerecorder.bundle-105.0.2] startup
|
| 230 |
+
[27.511s] [ext: isaacsim.core.utils-3.5.1] startup
|
| 231 |
+
[27.530s] [ext: omni.kit.viewport.menubar.camera-107.0.6] startup
|
| 232 |
+
[27.559s] [ext: isaacsim.app.about-2.0.11] startup
|
| 233 |
+
[27.564s] [ext: omni.physx.tensors-107.3.26] startup
|
| 234 |
+
[27.578s] [ext: omni.kit.manipulator.camera-106.0.4] startup
|
| 235 |
+
[27.606s] [ext: omni.kit.widget.text_editor-1.1.1] startup
|
| 236 |
+
[27.614s] [ext: omni.graph.tools-1.79.2] startup
|
| 237 |
+
[27.782s] [ext: omni.kit.widget.stage_icons-1.0.8] startup
|
| 238 |
+
[27.789s] [ext: omni.ui_query-1.1.8] startup
|
| 239 |
+
[27.794s] [ext: omni.kit.window.extensions-1.4.27] startup
|
| 240 |
+
[27.840s] [ext: omni.graph-1.141.2] startup
|
| 241 |
+
[28.044s] [ext: omni.kit.window.stage-2.6.1] startup
|
| 242 |
+
[28.119s] [ext: omni.graph.ui-1.101.6] startup
|
| 243 |
+
[28.234s] [ext: omni.graph.action_core-1.1.7] startup
|
| 244 |
+
[28.244s] [ext: omni.kit.widget.zoombar-1.0.6] startup
|
| 245 |
+
[28.251s] [ext: omni.kit.menu.stage-1.2.7] startup
|
| 246 |
+
[28.256s] [ext: omni.graph.action_nodes-1.50.4] startup
|
| 247 |
+
[28.273s] [ext: omni.kit.browser.core-2.3.13] startup
|
| 248 |
+
[29.001s] [ext: omni.kit.usd.collect-2.4.5] startup
|
| 249 |
+
[29.024s] [ext: omni.kit.ui_test-1.3.7] startup
|
| 250 |
+
[29.041s] [ext: omni.graph.action-1.130.0] startup
|
| 251 |
+
[29.045s] [ext: omni.kit.browser.folder.core-1.10.9] startup
|
| 252 |
+
[29.084s] [ext: omni.kit.usdz_export-1.0.9] startup
|
| 253 |
+
[29.094s] [ext: omni.graph.visualization.nodes-2.1.3] startup
|
| 254 |
+
[29.117s] [ext: omni.kit.tool.collect-2.2.18] startup
|
| 255 |
+
[29.188s] [ext: omni.kit.tool.asset_importer-4.3.2] startup
|
| 256 |
+
[29.244s] [ext: isaacsim.gui.components-1.2.1] startup
|
| 257 |
+
[29.282s] [ext: isaacsim.examples.browser-0.2.1] startup
|
| 258 |
+
[29.303s] [ext: isaacsim.asset.importer.urdf-2.4.31] startup
|
| 259 |
+
[29.470s] [ext: isaacsim.core.simulation_manager-1.4.4] startup
|
| 260 |
+
[29.685s] [ext: semantics.schema.editor-2.0.2] startup
|
| 261 |
+
[29.702s] [ext: omni.kit.viewport.menubar.render-107.0.10] startup
|
| 262 |
+
[29.718s] [ext: omni.kit.viewport.menubar.settings-107.0.3] startup
|
| 263 |
+
[29.742s] [ext: isaacsim.core.cloner-1.4.10] startup
|
| 264 |
+
[29.752s] [ext: omni.graph.image.core-0.6.1] startup
|
| 265 |
+
[29.757s] [ext: omni.kit.ui.actions-1.0.5] startup
|
| 266 |
+
[29.764s] [ext: omni.graph.image.nodes-1.3.1] startup
|
| 267 |
+
[29.771s] [ext: omni.kit.widget.graph-2.0.0] startup
|
| 268 |
+
[29.820s] [ext: omni.syntheticdata-0.6.13] startup
|
| 269 |
+
[29.884s] [ext: omni.graph.scriptnode-1.50.0] startup
|
| 270 |
+
[29.902s] [ext: isaacsim.core.prims-0.6.1] startup
|
| 271 |
+
[30.341s] [ext: omni.kit.graph.delegate.default-1.2.3] startup
|
| 272 |
+
[30.349s] [ext: omni.graph.ui_nodes-1.50.5] startup
|
| 273 |
+
[30.376s] [ext: omni.graph.nodes-1.170.10] startup
|
| 274 |
+
[30.828s] [ext: omni.kit.browser.sample-1.4.9] startup
|
| 275 |
+
[30.846s] [ext: omni.kit.widget.material_preview-1.0.16] startup
|
| 276 |
+
[30.866s] [ext: omni.kit.graph.usd.commands-1.3.1] startup
|
| 277 |
+
[30.877s] [ext: omni.kit.graph.editor.core-1.5.3] startup
|
| 278 |
+
[30.908s] [ext: omni.kit.stage_templates-2.0.0] startup
|
| 279 |
+
[30.945s] [ext: omni.warp-1.8.2] startup
|
| 280 |
+
[30.969s] [ext: omni.kit.window.material_graph-1.9.1] startup
|
| 281 |
+
[31.083s] [ext: omni.videoencoding-0.1.2] startup
|
| 282 |
+
[31.110s] [ext: isaacsim.core.experimental.utils-0.3.0] startup
|
| 283 |
+
[31.129s] [ext: isaacsim.test.docstring-1.1.0] startup
|
| 284 |
+
[31.210s] [ext: omni.replicator.core-1.12.27] startup
|
| 285 |
+
2026-11-10T00:06:52Z [31,377ms] [Warning] [omni.graph.core.plugin] Found duplicate of category 'Replicator' - was 'Annotators', adding 'Fabric Reader'
|
| 286 |
+
2026-11-10T00:06:52Z [31,377ms] [Warning] [omni.graph.core.plugin] Category 'Replicator' not accepted on node type 'omni.replicator.core.FabricReader' in extension 'omni.replicator.core'
|
| 287 |
+
2026-11-10T00:06:52Z [31,381ms] [Warning] [omni.replicator.core.scripts.extension] No material configuration file, adding configuration to material settings directly.
|
| 288 |
+
[31.734s] [ext: isaacsim.core.api-4.8.0] startup
|
| 289 |
+
[32.080s] [ext: isaacsim.core.experimental.prims-0.8.1] startup
|
| 290 |
+
[32.385s] [ext: isaacsim.core.nodes-3.4.3] startup
|
| 291 |
+
[32.425s] [ext: isaacsim.robot.surface_gripper-3.3.1] startup
|
| 292 |
+
[32.549s] [ext: omni.kit.widget.imageview-1.0.4] startup
|
| 293 |
+
[32.668s] [ext: isaacsim.robot.manipulators-3.3.6] startup
|
| 294 |
+
[32.893s] [ext: omni.kit.window.quicksearch-2.4.4] startup
|
| 295 |
+
[33.190s] [ext: omni.hydra.scene_api-0.1.2] startup
|
| 296 |
+
[33.237s] [ext: omni.kit.property.geometry-2.0.4] startup
|
| 297 |
+
[33.295s] [ext: omni.kit.property.camera-1.0.10] startup
|
| 298 |
+
[33.332s] [ext: omni.kit.property.material-1.11.9] startup
|
| 299 |
+
[33.541s] [ext: omni.kit.property.transform-1.5.13] startup
|
| 300 |
+
[33.595s] [ext: omni.kit.property.render-1.2.1] startup
|
| 301 |
+
[33.606s] [ext: omni.kit.property.light-1.0.12] startup
|
| 302 |
+
[33.713s] [ext: omni.kit.property.audio-1.0.16] startup
|
| 303 |
+
[33.749s] [ext: isaacsim.sensors.physics-0.4.3] startup
|
| 304 |
+
[33.794s] [ext: omni.kit.property.bundle-1.4.1] startup
|
| 305 |
+
[33.915s] [ext: isaacsim.robot.policy.examples-4.1.11] startup
|
| 306 |
+
[34.005s] [ext: isaacsim.robot.wheeled_robots-4.0.24] startup
|
| 307 |
+
[34.172s] [ext: omni.kit.viewport.menubar.lighting-107.3.1] startup
|
| 308 |
+
[34.365s] [ext: omni.kit.window.console-1.1.4] startup
|
| 309 |
+
[34.424s] [ext: omni.anim.asset-107.3.0] startup
|
| 310 |
+
[34.448s] [ext: omni.usd.metrics.assembler.ui-107.3.1] startup
|
| 311 |
+
[34.497s] [ext: omni.kit.menu.create-2.0.1] startup
|
| 312 |
+
[34.503s] [ext: isaacsim.core.throttling-2.2.2] startup
|
| 313 |
+
[34.512s] [ext: omni.kit.window.script_editor-2.0.1] startup
|
| 314 |
+
[34.530s] [ext: isaacsim.gui.property-1.1.3] startup
|
| 315 |
+
[34.542s] [ext: omni.curve.creator-107.0.1] startup
|
| 316 |
+
[34.550s] [ext: omni.scene.visualization.core-107.0.2] startup
|
| 317 |
+
[34.567s] [ext: omni.anim.retarget.core-107.3.3] startup
|
| 318 |
+
[34.594s] [ext: omni.kit.scripting-107.3.2] startup
|
| 319 |
+
[34.619s] [ext: omni.kit.quicklayout-1.0.8] startup
|
| 320 |
+
[34.625s] [ext: omni.anim.navigation.core-107.3.8] startup
|
| 321 |
+
[34.654s] [ext: omni.curve.manipulator-107.0.4] startup
|
| 322 |
+
[34.726s] [ext: omni.anim.graph.core-107.3.4] startup
|
| 323 |
+
[34.766s] [ext: omni.metropolis.utils-0.1.20] startup
|
| 324 |
+
[34.853s] [ext: omni.anim.navigation.ui-107.3.6] startup
|
| 325 |
+
2026-11-10T00:06:55Z [34,711ms] [Warning] [omni.graph.core._impl._registration.register_python_ogn] Python import process in omni.anim.graph.core failed - 'NoneType' object is not subscriptable. Aborting Python node registration
|
| 326 |
+
[35.112s] [ext: omni.flowusd-107.1.8] startup
|
| 327 |
+
2026-11-10T00:06:55Z [34,784ms] [Warning] [omni.stageupdate.plugin] Deprecated: direct use of IStageUpdate callbacks is deprecated. Use IStageUpdate::getStageUpdate instead.
|
| 328 |
+
[35.148s] [ext: omni.sensors.nv.common-3.0.0] startup
|
| 329 |
+
[35.326s] [ext: omni.anim.people-0.7.9] startup
|
| 330 |
+
[35.346s] [ext: omni.anim.navigation.bundle-107.3.3] startup
|
| 331 |
+
[35.355s] [ext: omni.sensors.net-1.0.0] startup
|
| 332 |
+
[35.472s] [ext: omni.sensors.nv.materials-2.0.0] startup
|
| 333 |
+
[35.540s] [ext: isaacsim.anim.robot-0.0.15] startup
|
| 334 |
+
[35.548s] [ext: isaacsim.util.debug_draw-3.1.0] startup
|
| 335 |
+
[35.566s] [ext: isaacsim.replicator.incident-0.1.28] startup
|
| 336 |
+
[35.657s] [ext: omni.kit.mesh.raycast-107.0.1] startup
|
| 337 |
+
[35.674s] [ext: omni.sensors.nv.wpm-3.0.0] startup
|
| 338 |
+
[35.692s] [ext: omni.sensors.nv.ids-2.0.0] startup
|
| 339 |
+
[35.703s] [ext: isaacsim.replicator.behavior-1.1.16] startup
|
| 340 |
+
[35.709s] [ext: isaacsim.sensors.physx-2.3.2] startup
|
| 341 |
+
[35.734s] [ext: omni.kit.window.status_bar-0.1.9] startup
|
| 342 |
+
[35.744s] [ext: omni.sensors.nv.lidar-3.0.0] startup
|
| 343 |
+
[35.809s] [ext: omni.sensors.nv.radar-3.0.0] startup
|
| 344 |
+
[35.834s] [ext: omni.kit.property.physx-107.3.26] startup
|
| 345 |
+
[35.903s] [ext: omni.physx.demos-107.3.26] startup
|
| 346 |
+
[36.066s] [ext: isaacsim.sensors.camera-1.3.6] startup
|
| 347 |
+
[36.097s] [ext: omni.kit.selection-0.1.6] startup
|
| 348 |
+
[36.112s] [ext: isaacsim.sensors.rtx-15.8.4] startup
|
| 349 |
+
[36.142s] [ext: omni.asset_validator.core-1.1.6] startup
|
| 350 |
+
[36.329s] [ext: omni.physx.vehicle-107.3.26] startup
|
| 351 |
+
[36.447s] [ext: isaacsim.asset.browser-1.3.23] startup
|
| 352 |
+
/home/luhr/tactilelab/MagicSim/.venv/lib/python3.11/site-packages/isaacsim/extscache/omni.services.pip_archive-0.16.0+107.0.3.lx64.cp311/pip_prebundle/requests/__init__.py:113: RequestsDependencyWarning: urllib3 (2.5.0) or chardet (7.6.0)/charset_normalizer (3.3.2) doesn't match a supported version!
|
| 353 |
+
warnings.warn(
|
| 354 |
+
[36.695s] [ext: isaacsim.asset.importer.mjcf-2.5.13] startup
|
| 355 |
+
[36.730s] [ext: isaacsim.gui.menu-2.4.4] startup
|
| 356 |
+
[36.765s] [ext: isaacsim.replicator.agent.core-0.7.28] startup
|
| 357 |
+
[36.811s] [ext: omni.physx.asset_validator-107.3.26] startup
|
| 358 |
+
[36.844s] [ext: omni.physx.camera-107.3.26] startup
|
| 359 |
+
[36.871s] [ext: omni.physx.cct-107.3.26] startup
|
| 360 |
+
[36.907s] [ext: omni.physx.graph-107.3.26] startup
|
| 361 |
+
[37.128s] [ext: omni.kit.graph.widget.variables-2.1.0] startup
|
| 362 |
+
[37.579s] [ext: omni.ramp-107.0.1] startup
|
| 363 |
+
[37.712s] [ext: omni.kit.graph.delegate.modern-1.10.9] startup
|
| 364 |
+
[37.877s] [ext: omni.graph.bundle.action-2.30.0] startup
|
| 365 |
+
[37.881s] [ext: omni.graph.io-1.30.1] startup
|
| 366 |
+
2026-11-10T00:06:58Z [37,537ms] [Warning] [omni.graph.io._impl.extension] omni.graph.io is deprecated. Nodes in this extension have been moved to omni.graph.nodes. Update any dependencies accordingly.
|
| 367 |
+
[37.887s] [ext: omni.kit.window.toolbar-2.0.0] startup
|
| 368 |
+
[37.894s] [ext: isaacsim.simulation_app-2.12.2] startup
|
| 369 |
+
[37.896s] [ext: omni.genproc.core-107.0.3] startup
|
| 370 |
+
[37.926s] [ext: omni.flowusd.ui-107.1.2] startup
|
| 371 |
+
2026-11-10T00:06:58Z [37,631ms] [Warning] [omni.flowusd.ui.scripts.widgets] Flow schema not found. Flow properties not ordered
|
| 372 |
+
[37.981s] [ext: isaacsim.asset.gen.omap-2.0.29] startup
|
| 373 |
+
[38.230s] [ext: omni.vdb_timesample_editor-0.2.0] startup
|
| 374 |
+
[38.250s] [ext: omni.physx.supportui-107.3.26] startup
|
| 375 |
+
[38.309s] [ext: omni.physx.telemetry-107.3.26] startup
|
| 376 |
+
[38.318s] [ext: omni.anim.graph.ui-107.3.3] startup
|
| 377 |
+
[38.407s] [ext: isaaclab-0.54.3] startup
|
| 378 |
+
[38.483s] [ext: isaaclab_contrib-0.0.2] startup
|
| 379 |
+
[38.486s] [ext: omni.flowusd.bundle-1.1.2] startup
|
| 380 |
+
[38.487s] [ext: omni.anim.curve.core-1.3.1] startup
|
| 381 |
+
[38.541s] [ext: omni.physx.bundle-107.3.26] startup
|
| 382 |
+
[38.543s] [ext: omni.anim.graph.bundle-107.3.3] startup
|
| 383 |
+
[38.564s] [ext: omni.replicator.replicator_yaml-2.0.11] startup
|
| 384 |
+
[38.590s] [ext: isaaclab_assets-0.2.4] startup
|
| 385 |
+
[39.715s] [ext: isaaclab_tasks-0.11.13] startup
|
| 386 |
+
[40.531s] [ext: isaaclab_rl-0.4.7] startup
|
| 387 |
+
[40.534s] [ext: isaaclab_mimic-1.0.16] startup
|
| 388 |
+
[40.536s] [ext: omni.kit.menu.common-2.0.1] startup
|
| 389 |
+
[40.543s] [ext: magicsim.python-2.3.2] startup
|
| 390 |
+
[40.547s] Simulation App Starting
|
| 391 |
+
Warning: Possible version incompatibility. Attempting to load omni::fabric::IStageReaderWriter with version v0.14 against v0.13.
|
| 392 |
+
2026-11-10T00:07:01Z [41,198ms] [Warning] [carb.audio.device] audio device is misconfigured or broken {deviceIndex = 0, name = 'default'} (The device is likely misconfigured, check your $HOME/.asoundrc)
|
| 393 |
+
2026-11-10T00:07:01Z [41,198ms] [Warning] [carb.audio.output] failed to retrieve the capabilities for device 0 {result = eDeviceLost (2)}
|
| 394 |
+
2026-11-10T00:07:01Z [41,198ms] [Warning] [carb.audio.context] failed to set the requested output during context creation. Using a null streamer instead {result = eDeviceLost (2)}
|
| 395 |
+
2026-11-10T00:07:02Z [41,297ms] [Warning] [omni.fabric.plugin] Warning: attribute viewPickingId not found for bucket id 9
|
| 396 |
+
|
| 397 |
+
[41.764s] app ready
|
| 398 |
+
[47.908s] Simulation App Startup Complete
|
| 399 |
+
2026-11-10T00:07:26Z [65,740ms] [Warning] [matplotlib.font_manager] Matplotlib is building the font cache; this may take a moment.
|
| 400 |
+
2026-11-09 19:07:31.382 | INFO | magicsim.Env.Utils.file:info:52 - MemoryStation: RecordManager output dir: /mnt/scratch/xc536_atomic/n052saw_closeup_s101/rec/memorystage/000
|
| 401 |
+
[32m2026-11-09T19:07:31.382397-0500[0m [1mMemoryStation: RecordManager output dir: /mnt/scratch/xc536_atomic/n052saw_closeup_s101/rec/memorystage/000[0m
|
| 402 |
+
[32m2026-11-09T19:07:31.383139-0500[0m [1mMemoryStation: record: magicsim recorder -> /mnt/scratch/xc536_atomic/n052saw_closeup_s101/rec/memorystage/000/magicsim[0m
|
| 403 |
+
[32m2026-11-09T19:07:31.383250-0500[0m [1mMemoryStation: record: sim_info recorder -> /mnt/scratch/xc536_atomic/n052saw_closeup_s101/rec/memorystage/000/sim_info[0m
|
| 404 |
+
2026-11-09 19:07:31.383 | INFO | magicsim.Env.Utils.file:info:52 - MemoryStation: record: magicsim recorder -> /mnt/scratch/xc536_atomic/n052saw_closeup_s101/rec/memorystage/000/magicsim
|
| 405 |
+
2026-11-09 19:07:31.383 | INFO | magicsim.Env.Utils.file:info:52 - MemoryStation: record: sim_info recorder -> /mnt/scratch/xc536_atomic/n052saw_closeup_s101/rec/memorystage/000/sim_info
|
| 406 |
+
[INFO]: Parsing configuration from: magicsim.Env.Environment.Isaac.IsaacRLEnv:IsaacRLEnvCfg
|
| 407 |
+
|
| 408 |
+
[36m======================================================================================[0m
|
| 409 |
+
[36m[1m[INFO][IsaacLab]: Logging to file: /tmp/isaaclab/logs/isaaclab_2026-11-09_19-07-31.log[0m
|
| 410 |
+
[33m19:07:31 [simulation_context.py] WARNING: The `enable_external_forces_every_iteration` parameter in the PhysxCfg is set to False. If you are experiencing noisy velocities, consider enabling this flag. You may need to slightly increase the number of velocity iterations (setting it to 1 or 2 rather than 0), together with this flag, to improve the accuracy of velocity updates.[0m
|
| 411 |
+
[INFO]: Base environment:
|
| 412 |
+
Environment device : cpu
|
| 413 |
+
Environment seed : 101
|
| 414 |
+
Physics step-size : 0.005
|
| 415 |
+
Rendering step-size : 0.005
|
| 416 |
+
Environment step-size : 0.02
|
| 417 |
+
[33m19:07:31 [direct_rl_env.py] WARNING: The render interval (1) is smaller than the decimation (4). Multiple render calls will happen for each environment step.If this is not intended, set the render interval to be equal to the decimation.[0m
|
| 418 |
+
2026-11-10T00:07:33Z [72,385ms] [Warning] [isaacsim.sensors.camera.camera] 'verticalAperture' (1.5290800094604493) and 'horizontalAperture' (2.0954999923706055) are inconsistent with the pixel resolution aspect ratio (1.3333333333333333). Setting 'verticalAperture' to 1.571624994277954 to ensure square pixels.
|
| 419 |
+
[NavManager] NavMeshVolume @ /NavMeshVolume: center=(0.000, 0.000, 1.250) scale=(30.800, 30.800, 3.500) offsets=(0.0, 0.0, 0)
|
| 420 |
+
[33m19:07:33 [interactive_scene.py] WARNING: Collision filtering can only be automatically enabled when replicate_physics=True and using GPU simulation. Please call scene.filter_collisions(global_prim_paths) to filter collisions across environments.[0m
|
| 421 |
+
[PhysXMonitor] suppressed 5 repeated msgs for [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
|
| 422 |
+
2026-11-10T00:07:33Z [72,644ms] [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
|
| 423 |
+
[PhysXMonitor] suppressed 5 repeated msgs for [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.5]) (impl: carb.windowing-glfw.plugin)
|
| 424 |
+
2026-11-10T00:07:33Z [72,644ms] [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.5]) (impl: carb.windowing-glfw.plugin)
|
| 425 |
+
[NavManager] NavMeshVolume @ /NavMeshVolume: center=(0.000, 0.000, 1.500) scale=(11.000, 11.000, 3.300) offsets=(0.0, 0.0, 0)
|
| 426 |
+
[INFO]: Time taken for scene creation : 1.948619 seconds
|
| 427 |
+
[INFO]: Scene manager: <class InteractiveScene>
|
| 428 |
+
Number of environments: 1
|
| 429 |
+
Environment spacing : 14
|
| 430 |
+
Source prim name : /World/envs/env_0
|
| 431 |
+
Global prim paths : []
|
| 432 |
+
Replicate physics : False
|
| 433 |
+
[INFO]: Starting the simulation. This may take a few seconds. Please wait...
|
| 434 |
+
2026-11-10T00:07:35Z [74,951ms] [Warning] [omni.physx.cooking.plugin] ConvexDecompositionTask: failed to cook GPU-compatible mesh, collision detection will fall back to CPU. Collisions with particles and deformables will not work with this mesh. Prim /__Prototype_2/base_link_collisions_mesh_1/World/mesh
|
| 435 |
+
[INFO]: Time taken for simulation start : 8.526572 seconds
|
| 436 |
+
[INFO]: Completed setting up the environment...
|
| 437 |
+
[INFO] Flow rendering enabled for fire/smoke/fluid effects
|
| 438 |
+
- /rtx/flow/enabled: True
|
| 439 |
+
- /rtx/flow/pathTracingEnabled: True
|
| 440 |
+
- /rtx/flow/rayTracedReflectionsEnabled: True
|
| 441 |
+
- /rtx/flow/rayTracedTranslucencyEnabled: True
|
| 442 |
+
[INFO] effective render cfg: rendering_mode=performance antialiasing_mode=None enable_translucency=False enable_reflections=False enable_global_illumination=False enable_shadows=None enable_ambient_occlusion=None enable_direct_lighting=None enable_dl_denoiser=False enable_dlssg=None dlss_mode=None samples_per_pixel=None
|
| 443 |
+
[INFO] effective render carb: /rtx/rendermode=RaytracedLighting /isaaclab/rendering/rendering_mode= /rtx/post/aa/op=3 /rtx/post/dlss/execMode=0 /rtx/translucency/enabled=False /rtx/reflections/enabled=False /rtx/indirectDiffuse/enabled=False /rtx/directLighting/enabled=True /rtx/directLighting/sampledLighting/enabled=False /rtx/shadows/enabled=True /rtx/ambientOcclusion/enabled=False /rtx-transient/dlssg/enabled=False /rtx-transient/dldenoiser/enabled=False /rtx/flow/enabled=True
|
| 444 |
+
2026-11-10T00:07:42Z [81,520ms] [Warning] [magicsim.Env.Scene.Object.Background] `/omni/replicator/RTSubframes` must be > 3 to avoid blank textures while randomizing dome light texture. RTSubframes has been automatically increased from None to 3
|
| 445 |
+
2026-11-10T00:07:49Z [88,664ms] [Error] [omni.physx.plugin] PhysicsUSD: Parse collision - triangle mesh collision (approximation None/MeshSimplification) cannot be a part of a dynamic body, falling back to convexHull approximation: /World/envs/env_0/dynamic/item_red/item_red_1.For dynamic collision please use approximations : convex hull, convex decomposition, box, sphere or SDF approximation.
|
| 446 |
+
2026-11-10T00:07:49Z [88,888ms] [Error] [omni.physx.plugin] PhysicsUSD: Parse collision - triangle mesh collision (approximation None/MeshSimplification) cannot be a part of a dynamic body, falling back to convexHull approximation: /World/envs/env_0/dynamic/item_blue/item_blue_1.For dynamic collision please use approximations : convex hull, convex decomposition, box, sphere or SDF approximation.
|
| 447 |
+
2026-11-10T00:08:27Z [126,484ms] [Warning] [omni.fabric.plugin] USD->Fabric: Unhandled array type string[]
|
| 448 |
+
2026-11-10T00:08:27Z [126,487ms] [Warning] [usdrt.population.plugin] [UsdNoticeHandler] Unhandled attribute type VtArray<std::string> (prim attribute: omni:rtx:material:db:flattener:reflection_roughness_constant)
|
| 449 |
+
2026-11-10T00:08:27Z [126,490ms] [Warning] [usdrt.population.plugin] [UsdNoticeHandler] Unhandled attribute type VtArray<std::string> (prim attribute: omni:rtx:material:db:flattener:ior_constant)
|
| 450 |
+
2026-11-10T00:08:27Z [126,491ms] [Warning] [usdrt.population.plugin] [UsdNoticeHandler] Unhandled attribute type VtArray<std::string> (prim attribute: omni:rtx:material:db:flattener:transmittance_color)
|
| 451 |
+
2026-11-10T00:08:27Z [126,583ms] [Warning] [omni.fabric.plugin] getAttributeCount called on non-existent path /World/envs/env_0/Robot_0/right_l6/visuals/right_l6_visuals_mesh_0/World
|
| 452 |
+
2026-11-10T00:08:27Z [126,584ms] [Warning] [omni.fabric.plugin] getTypes called on non-existent path /World/envs/env_0/Robot_0/right_l6/visuals/right_l6_visuals_mesh_0/World
|
| 453 |
+
2026-11-10T00:09:24Z [184,080ms] [Warning] [omni.syntheticdata.plugin] OgnSdPostRenderVarToHost : rendervar copy from texture directly to host buffer is counter-performant. Please use copy from texture to device buffer first.
|
| 454 |
+
Scene Reset Finished
|
| 455 |
+
[DualIKInstance 0] Creating LOCKED base IK solver...
|
| 456 |
+
Warp DeprecationWarning: The symbol `warp.torch.device_from_torch` will soon be removed from the public API. Use `warp.device_from_torch` instead.
|
| 457 |
+
[DualIKInstance 0] Creating FREE base IK solver...
|
| 458 |
+
[DualIKServer] Initialized with 1 instance(s), batch_size=1, microbatch_wait_ms=400.0, num_seeds_locked=20, num_seeds_free=50, paired=True, planner_devices=['cuda:0']
|
| 459 |
+
[DualMotionGenInstance 0] Creating LOCKED base MotionPlanner...
|
| 460 |
+
[DualMotionGenInstance 0] Creating FREE base MotionPlanner...
|
| 461 |
+
[DualMotionGenServer] Initialized with 1 instance(s), batch_size=1, microbatch_wait_ms=400.0, planner_devices=['cuda:0']
|
| 462 |
+
pm: <PlannerManager> total_action_dim=16
|
| 463 |
+
+--------------------------------------------------------------------------------+
|
| 464 |
+
| Planner Slots (total input: 16) |
|
| 465 |
+
+--------------------+------+-------------+-----------+-------------+------------+
|
| 466 |
+
| Robot | Slot | Planner | Input Dim | Input Slice | Output Dim |
|
| 467 |
+
| RidgebackSawyerUmi | base | nav | 8 | [0:8] | 3 |
|
| 468 |
+
| RidgebackSawyerUmi | arm | passthrough | 7 | [8:15] | 7 |
|
| 469 |
+
| RidgebackSawyerUmi | eef | passthrough | 1 | [15:16] | 1 |
|
| 470 |
+
[PhysXMonitor] suppressed 1 repeated msgs for
|
| 471 |
+
|
| 472 |
+
[tick-csv] contact reports subscribed for {'gripper_base': '/World/envs/env_0/Robot_0/right_gripper_base', 'electric_gripper_base': '/World/envs/env_0/Robot_0/right_electric_gripper_base', 'left': '/World/envs/env_0/Robot_0/right_gripper_l_finger', 'right': '/World/envs/env_0/Robot_0/right_gripper_r_finger', 'gripper_tip': '/World/envs/env_0/Robot_0/right_gripper_tip'}
|
| 473 |
+
[tick-csv] writing /mnt/scratch/xc536_atomic/n052saw_closeup_s101/out/take_item_ticks.csv (fingers {'gripper_base': 'right_gripper_base', 'gripper_tip': 'right_gripper_tip', 'electric_gripper_base': 'right_electric_gripper_base', 'left': 'right_gripper_l_finger', 'right': 'right_gripper_r_finger'}, finger joints [], tick_dt 0.02)
|
| 474 |
+
2026-11-10T00:10:25Z [244,763ms] [Warning] [carb] Client gpu.foundation.plugin has acquired [gpu::unstable::IMemoryBudgetManagerFactory v0.1] 100 times. Consider accessing this interface with carb::getCachedInterface() (Performance warning)
|
| 475 |
+
Creating atomic skill: NavToPose for env 0
|
| 476 |
+
action: (0, tensor([ 0.0000, -0.5500, 1.5708]))
|
| 477 |
+
[NavTo GP] env=0 robot=RidgebackSawyerUmi _build_nav_path target=[0.0, -0.550000011920929, 1.5707963705062866]
|
| 478 |
+
[memory] tick 100 wall=272s t=2.0s base=(-3.22,-2.07,0.69) station=S skill=NavToPose/0 dwb_cmd=[0.3, -0.194, 0.8] raw_cmd=[0.3, -0.194, 0.8] rootz=0.06 jp=[0.205, -0.021, 0.434] jv=[0.352, -0.052, 0.8] eff=[205.9, 97.4, 6.8] vt=[0.353, -0.051, 0.8] base_quat=[0.666, 0.238, -0.666, 0.238] base_ang_vel=[-0.0, -0.0, 0.8] link_quat=[0.666, 0.238, -0.666, 0.238] eef=[-3.284, -2.246, 0.583] arm_q=[3.0, -1.0, 0.001, 1.999, 0.0, 1.4, 0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=29 path=[[-3.43, -2.1, 1.57], [-2.94, -1.88, 1.57], [-2.55, -1.71, 1.57], [-2.21, -1.56, 1.57], [-1.8, -1.39, 1.57], [-1.53, -1.27, 1.57], [-1.12, -1.09, 1.57], [-0.83, -0.96, 1.57], [-0.44, -0.79, 1.57], [-0.11, -0.65, 1.57], [0.0, -0.55, 1.57]] tgt=[0.0, -0.55, 1.57] public={'demo_running': False, 'demo_done': False}
|
| 479 |
+
[memory] tick 200 wall=303s t=4.0s base=(-2.49,-1.75,1.48) station=S skill=NavToPose/0 dwb_cmd=[0.213, -0.3, 0.102] raw_cmd=[0.213, -0.3, 0.102] rootz=0.06 jp=[0.994, 0.107, 1.231] jv=[0.354, 0.1, 0.102] eff=[-18.7, 38.9, -1.6] vt=[0.354, 0.1, 0.102] base_quat=[0.522, 0.477, -0.522, 0.477] base_ang_vel=[-0.0, -0.0, 0.102] link_quat=[0.522, 0.477, -0.522, 0.477] eef=[-2.406, -1.916, 0.583] arm_q=[3.001, -1.0, 0.0, 2.0, -0.0, 1.4, -0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=29 path=[[-3.43, -2.1, 1.57], [-2.94, -1.88, 1.57], [-2.55, -1.71, 1.57], [-2.21, -1.56, 1.57], [-1.8, -1.39, 1.57], [-1.53, -1.27, 1.57], [-1.12, -1.09, 1.57], [-0.83, -0.96, 1.57], [-0.44, -0.79, 1.57], [-0.11, -0.65, 1.57], [0.0, -0.55, 1.57]] tgt=[0.0, -0.55, 1.57] public={'demo_running': False, 'demo_done': False}
|
| 480 |
+
[memory] tick 300 wall=358s t=6.0s base=(-1.88,-1.43,1.56) station=S skill=NavToPose/0 dwb_cmd=[0.147, -0.3, 0.012] raw_cmd=[0.147, -0.3, 0.012] rootz=0.06 jp=[1.666, 0.263, 1.311] jv=[0.328, 0.065, 0.012] eff=[-1.3, 4.1, -0.1] vt=[0.328, 0.065, 0.012] base_quat=[0.502, 0.498, -0.502, 0.498] base_ang_vel=[-0.0, 0.0, 0.012] link_quat=[0.502, 0.498, -0.502, 0.498] eef=[-1.78, -1.591, 0.583] arm_q=[3.0, -1.0, 0.0, 2.0, 0.0, 1.4, -0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=29 path=[[-3.43, -2.1, 1.57], [-2.94, -1.88, 1.57], [-2.55, -1.71, 1.57], [-2.21, -1.56, 1.57], [-1.8, -1.39, 1.57], [-1.53, -1.27, 1.57], [-1.12, -1.09, 1.57], [-0.83, -0.96, 1.57], [-0.44, -0.79, 1.57], [-0.11, -0.65, 1.57], [0.0, -0.55, 1.57]] tgt=[0.0, -0.55, 1.57] public={'demo_running': False, 'demo_done': False}
|
| 481 |
+
[memory] tick 400 wall=394s t=8.0s base=(-1.28,-1.16,1.57) station=S skill=NavToPose/0 dwb_cmd=[0.129, -0.294, 0.002] raw_cmd=[0.129, -0.294, 0.002] rootz=0.06 jp=[2.313, 0.377, 1.319] jv=[0.317, 0.052, 0.002] eff=[-0.2, 0.8, -0.0] vt=[0.317, 0.052, 0.002] base_quat=[0.5, 0.5, -0.5, 0.5] base_ang_vel=[-0.0, -0.0, 0.002] link_quat=[0.5, 0.5, -0.5, 0.5] eef=[-1.181, -1.319, 0.583] arm_q=[3.0, -1.0, -0.0, 2.0, 0.0, 1.4, -0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=29 path=[[-3.43, -2.1, 1.57], [-2.94, -1.88, 1.57], [-2.55, -1.71, 1.57], [-2.21, -1.56, 1.57], [-1.8, -1.39, 1.57], [-1.53, -1.27, 1.57], [-1.12, -1.09, 1.57], [-0.83, -0.96, 1.57], [-0.44, -0.79, 1.57], [-0.11, -0.65, 1.57], [0.0, -0.55, 1.57]] tgt=[0.0, -0.55, 1.57] public={'demo_running': False, 'demo_done': False}
|
| 482 |
+
[memory] tick 500 wall=424s t=10.0s base=(-0.69,-0.90,1.57) station=S skill=NavToPose/0 dwb_cmd=[0.129, -0.3, 0.002] raw_cmd=[0.129, -0.3, 0.002] rootz=0.06 jp=[2.949, 0.48, 1.322] jv=[0.322, 0.051, 0.002] eff=[137.4, -34.4, 8.7] vt=[0.322, 0.051, 0.002] base_quat=[0.499, 0.501, -0.499, 0.501] base_ang_vel=[-0.0, 0.0, 0.002] link_quat=[0.499, 0.501, -0.499, 0.501] eef=[-0.59, -1.06, 0.583] arm_q=[3.0, -1.0, -0.0, 2.0, -0.0, 1.4, -0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=29 path=[[-3.43, -2.1, 1.57], [-2.94, -1.88, 1.57], [-2.55, -1.71, 1.57], [-2.21, -1.56, 1.57], [-1.8, -1.39, 1.57], [-1.53, -1.27, 1.57], [-1.12, -1.09, 1.57], [-0.83, -0.96, 1.57], [-0.44, -0.79, 1.57], [-0.11, -0.65, 1.57], [0.0, -0.55, 1.57]] tgt=[0.0, -0.55, 1.57] public={'demo_running': False, 'demo_done': False}
|
| 483 |
+
[memory] tick 600 wall=454s t=12.0s base=(-0.16,-0.65,1.57) station=S skill=NavToPose/0 dwb_cmd=[0.076, -0.146, 0.004] raw_cmd=[0.076, -0.146, 0.004] rootz=0.06 jp=[3.52, 0.596, 1.32] jv=[0.161, 0.039, 0.004] eff=[-44.4, -228.2, 0.5] vt=[0.16, 0.037, 0.004] base_quat=[0.5, 0.5, -0.5, 0.5] base_ang_vel=[-0.0, 0.0, 0.004] link_quat=[0.5, 0.5, -0.5, 0.5] eef=[-0.065, -0.806, 0.583] arm_q=[3.001, -1.0, 0.0, 2.0, -0.0, 1.4, -0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=29 path=[[-3.43, -2.1, 1.57], [-2.94, -1.88, 1.57], [-2.55, -1.71, 1.57], [-2.21, -1.56, 1.57], [-1.8, -1.39, 1.57], [-1.53, -1.27, 1.57], [-1.12, -1.09, 1.57], [-0.83, -0.96, 1.57], [-0.44, -0.79, 1.57], [-0.11, -0.65, 1.57], [0.0, -0.55, 1.57]] tgt=[0.0, -0.55, 1.57] public={'demo_running': False, 'demo_done': False}
|
| 484 |
+
Global planner NavTo of env 0 is finished or truncated, truncated: 0
|
| 485 |
+
Atomic skill of env 0 is finished or truncated
|
| 486 |
+
[memory] tick 700 wall=477s t=14.0s base=(-0.08,-0.60,1.57) station=A skill=None/None dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[3.612, 0.619, 1.32] jv=[0.0, 0.0, -0.0] eff=[-0.0, -0.0, 0.0] vt=[0.0, 0.0, 0.0] base_quat=[0.5, 0.5, -0.5, 0.5] base_ang_vel=[-0.0, -0.0, -0.0] link_quat=[0.5, 0.5, -0.5, 0.5] eef=[0.018, -0.761, 0.583] arm_q=[3.001, -1.0, -0.0, 2.001, -0.0, 1.4, -0.0] plan=None/None steps=None locked=None gp=NoneType nseg=0 public={'demo_running': True, 'demo_done': False}
|
| 487 |
+
[memory] tick 800 wall=496s t=16.0s base=(-0.08,-0.60,1.57) station=A skill=None/None dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[3.612, 0.619, 1.32] jv=[0.0, 0.0, -0.0] eff=[-0.0, -0.0, 0.0] vt=[0.0, 0.0, 0.0] base_quat=[0.5, 0.5, -0.5, 0.5] base_ang_vel=[-0.0, -0.0, -0.0] link_quat=[0.5, 0.5, -0.5, 0.5] eef=[0.018, -0.761, 0.583] arm_q=[3.001, -1.0, -0.0, 2.001, -0.0, 1.4, -0.0] plan=None/None steps=None locked=None gp=NoneType nseg=0 public={'demo_running': True, 'demo_done': False}
|
| 488 |
+
[memory] tick 900 wall=517s t=18.0s base=(-0.08,-0.60,1.57) station=A skill=None/None dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[3.612, 0.619, 1.32] jv=[0.0, 0.0, -0.0] eff=[-0.0, -0.0, 0.0] vt=[0.0, 0.0, 0.0] base_quat=[0.5, 0.5, -0.5, 0.5] base_ang_vel=[-0.0, -0.0, -0.0] link_quat=[0.5, 0.5, -0.5, 0.5] eef=[0.018, -0.761, 0.583] arm_q=[3.001, -1.0, -0.0, 2.001, -0.0, 1.4, -0.0] plan=None/None steps=None locked=None gp=NoneType nseg=0 public={'demo_running': True, 'demo_done': False}
|
| 489 |
+
[memory] tick 1000 wall=551s t=20.0s base=(-0.08,-0.60,1.57) station=A skill=None/None dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[3.612, 0.619, 1.32] jv=[0.0, 0.0, -0.0] eff=[-0.0, -0.0, 0.0] vt=[0.0, 0.0, 0.0] base_quat=[0.5, 0.5, -0.5, 0.5] base_ang_vel=[-0.0, -0.0, -0.0] link_quat=[0.5, 0.5, -0.5, 0.5] eef=[0.018, -0.761, 0.583] arm_q=[3.001, -1.0, -0.0, 2.001, -0.0, 1.4, -0.0] plan=None/None steps=None locked=None gp=NoneType nseg=0 public={'demo_running': True, 'demo_done': False}
|
| 490 |
+
Creating atomic skill: NavToPose for env 0
|
| 491 |
+
action: (0, tensor([ 0.0000, 2.0500, -1.5708]))
|
| 492 |
+
[NavTo GP] env=0 robot=RidgebackSawyerUmi _build_nav_path target=[0.0, 2.049999952316284, -1.5707963705062866]
|
| 493 |
+
[memory] tick 1100 wall=589s t=22.0s base=(0.15,-0.64,2.05) station=A skill=NavToPose/0 dwb_cmd=[-0.222, -0.3, 0.8] raw_cmd=[-0.222, -0.3, 0.8] rootz=0.06 jp=[3.822, 0.528, 1.802] jv=[0.341, -0.15, 0.8] eff=[168.1, 307.1, 8.5] vt=[0.342, -0.148, 0.8] base_quat=[0.366, 0.605, -0.366, 0.605] base_ang_vel=[-0.0, 0.0, 0.8] link_quat=[0.366, 0.605, -0.366, 0.605] eef=[0.307, -0.734, 0.583] arm_q=[3.001, -1.001, -0.0, 2.0, -0.0, 1.4, 0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=40 path=[[-0.08, -0.6, -1.57], [0.63, -0.52, -1.57], [1.09, -0.35, -1.57], [1.37, 0.38, -1.57], [1.46, 0.83, -1.57], [1.26, 1.31, -1.57], [1.05, 1.82, -1.57], [0.44, 2.07, -1.57], [0.0, 2.05, -1.57]] tgt=[0.0, 2.05, -1.57] public={'demo_running': False, 'demo_done': True}
|
| 494 |
+
[memory] tick 1200 wall=620s t=24.0s base=(0.83,-0.61,-2.63) station=A skill=NavToPose/0 dwb_cmd=[-0.3, 0.063, 0.8] raw_cmd=[-0.3, 0.063, 0.8] rootz=0.06 jp=[4.493, 0.388, 3.401] jv=[0.307, 0.013, 0.8] eff=[-25.9, 241.8, 7.7] vt=[0.306, 0.015, 0.8] base_quat=[0.178, -0.684, -0.178, -0.684] base_ang_vel=[-0.0, 0.0, 0.8] link_quat=[0.178, -0.684, -0.178, -0.684] eef=[0.922, -0.442, 0.583] arm_q=[3.001, -1.001, -0.0, 2.0, -0.0, 1.4, 0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=40 path=[[-0.08, -0.6, -1.57], [0.63, -0.52, -1.57], [1.09, -0.35, -1.57], [1.37, 0.38, -1.57], [1.46, 0.83, -1.57], [1.26, 1.31, -1.57], [1.05, 1.82, -1.57], [0.44, 2.07, -1.57], [0.0, 2.05, -1.57]] tgt=[0.0, 2.05, -1.57] public={'demo_running': False, 'demo_done': True}
|
| 495 |
+
[memory] tick 1300 wall=650s t=26.0s base=(1.20,-0.14,-1.68) station=A skill=NavToPose/0 dwb_cmd=[-0.3, 0.073, 0.127] raw_cmd=[-0.3, 0.073, 0.127] rootz=0.06 jp=[4.964, 0.744, 4.352] jv=[0.175, 0.255, 0.127] eff=[-17.5, 18.5, -0.1] vt=[0.175, 0.255, 0.127] base_quat=[0.472, -0.527, -0.472, -0.527] base_ang_vel=[-0.0, -0.0, 0.127] link_quat=[0.472, -0.527, -0.472, -0.527] eef=[1.118, 0.026, 0.583] arm_q=[3.001, -1.001, 0.0, 2.001, -0.0, 1.4, 0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=40 path=[[-0.08, -0.6, -1.57], [0.63, -0.52, -1.57], [1.09, -0.35, -1.57], [1.37, 0.38, -1.57], [1.46, 0.83, -1.57], [1.26, 1.31, -1.57], [1.05, 1.82, -1.57], [0.44, 2.07, -1.57], [0.0, 2.05, -1.57]] tgt=[0.0, 2.05, -1.57] public={'demo_running': False, 'demo_done': True}
|
| 496 |
+
[memory] tick 1400 wall=679s t=28.0s base=(1.41,0.45,-1.58) station=A skill=NavToPose/0 dwb_cmd=[-0.3, 0.071, 0.016] raw_cmd=[-0.3, 0.071, 0.016] rootz=0.06 jp=[5.313, 1.265, 4.452] jv=[0.147, 0.271, 0.016] eff=[-231.6, 63.6, 14.7] vt=[0.146, 0.272, 0.016] base_quat=[0.498, -0.502, -0.498, -0.502] base_ang_vel=[-0.0, -0.0, 0.016] link_quat=[0.498, -0.502, -0.498, -0.502] eef=[1.31, 0.609, 0.583] arm_q=[3.0, -1.0, -0.0, 2.001, -0.0, 1.4, 0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=40 path=[[-0.08, -0.6, -1.57], [0.63, -0.52, -1.57], [1.09, -0.35, -1.57], [1.37, 0.38, -1.57], [1.46, 0.83, -1.57], [1.26, 1.31, -1.57], [1.05, 1.82, -1.57], [0.44, 2.07, -1.57], [0.0, 2.05, -1.57]] tgt=[0.0, 2.05, -1.57] public={'demo_running': False, 'demo_done': True}
|
| 497 |
+
[memory] tick 1500 wall=710s t=30.0s base=(1.36,1.01,-1.57) station=A skill=NavToPose/0 dwb_cmd=[-0.3, -0.066, 0.0] raw_cmd=[-0.3, -0.066, 0.0] rootz=0.06 jp=[5.406, 1.822, 4.46] jv=[0.011, 0.307, 0.0] eff=[0.1, 1.1, 0.4] vt=[0.011, 0.307, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[-0.0, 0.0, 0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[1.26, 1.17, 0.583] arm_q=[3.002, -1.002, -0.001, 2.002, -0.0, 1.4, 0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=40 path=[[-0.08, -0.6, -1.57], [0.63, -0.52, -1.57], [1.09, -0.35, -1.57], [1.37, 0.38, -1.57], [1.46, 0.83, -1.57], [1.26, 1.31, -1.57], [1.05, 1.82, -1.57], [0.44, 2.07, -1.57], [0.0, 2.05, -1.57]] tgt=[0.0, 2.05, -1.57] public={'demo_running': False, 'demo_done': True}
|
| 498 |
+
[memory] tick 1600 wall=740s t=32.0s base=(1.13,1.61,-1.57) station=A skill=NavToPose/0 dwb_cmd=[-0.273, -0.119, -0.0] raw_cmd=[-0.273, -0.119, -0.0] rootz=0.06 jp=[5.333, 2.459, 4.46] jv=[-0.048, 0.295, -0.0] eff=[209.5, -130.1, -14.2] vt=[-0.047, 0.294, -0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[1.031, 1.77, 0.583] arm_q=[3.001, -1.0, 0.001, 2.0, 0.0, 1.4, 0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=40 path=[[-0.08, -0.6, -1.57], [0.63, -0.52, -1.57], [1.09, -0.35, -1.57], [1.37, 0.38, -1.57], [1.46, 0.83, -1.57], [1.26, 1.31, -1.57], [1.05, 1.82, -1.57], [0.44, 2.07, -1.57], [0.0, 2.05, -1.57]] tgt=[0.0, 2.05, -1.57] public={'demo_running': False, 'demo_done': True}
|
| 499 |
+
[memory] tick 1700 wall=772s t=34.0s base=(0.63,1.98,-1.57) station=A skill=NavToPose/0 dwb_cmd=[-0.118, -0.3, -0.003] raw_cmd=[-0.118, -0.3, -0.003] rootz=0.06 jp=[4.938, 2.943, 4.46] jv=[-0.261, 0.189, -0.003] eff=[0.7, 0.7, 0.0] vt=[-0.261, 0.189, -0.003] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, 0.0, -0.003] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.528, 2.14, 0.583] arm_q=[3.001, -1.0, 0.0, 2.0, -0.0, 1.4, 0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=40 path=[[-0.08, -0.6, -1.57], [0.63, -0.52, -1.57], [1.09, -0.35, -1.57], [1.37, 0.38, -1.57], [1.46, 0.83, -1.57], [1.26, 1.31, -1.57], [1.05, 1.82, -1.57], [0.44, 2.07, -1.57], [0.0, 2.05, -1.57]] tgt=[0.0, 2.05, -1.57] public={'demo_running': False, 'demo_done': True}
|
| 500 |
+
[memory] tick 1800 wall=803s t=36.0s base=(0.16,2.10,-1.57) station=B skill=NavToPose/0 dwb_cmd=[0.035, -0.154, -0.001] raw_cmd=[0.035, -0.154, -0.001] rootz=0.06 jp=[4.519, 3.172, 4.459] jv=[-0.158, 0.005, -0.001] eff=[0.5, 0.2, -0.7] vt=[-0.158, 0.005, -0.001] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[-0.0, 0.0, -0.001] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.066, 2.257, 0.583] arm_q=[3.001, -1.0, 0.0, 2.0, -0.0, 1.4, 0.0] plan=None/None steps=0 locked=None gp=NavTo nseg=40 path=[[-0.08, -0.6, -1.57], [0.63, -0.52, -1.57], [1.09, -0.35, -1.57], [1.37, 0.38, -1.57], [1.46, 0.83, -1.57], [1.26, 1.31, -1.57], [1.05, 1.82, -1.57], [0.44, 2.07, -1.57], [0.0, 2.05, -1.57]] tgt=[0.0, 2.05, -1.57] public={'demo_running': False, 'demo_done': True}
|
| 501 |
+
Global planner NavTo of env 0 is finished or truncated, truncated: 0
|
| 502 |
+
Atomic skill of env 0 is finished or truncated
|
| 503 |
+
Creating atomic skill: Move for env 0
|
| 504 |
+
Atomic skill of env 0 is finished or truncated
|
| 505 |
+
[memory] event move_target {'label': 'take_item:pre', 'mode': -1, 'pos': [-0.1121, 1.1, 0.8541], 'quat': [0.5, -0.5, 0.5, 0.5], 'base': [0.0914, 2.0792, 0.06, -1.5727]}
|
| 506 |
+
Creating atomic skill: Move for env 0
|
| 507 |
+
Submit IK env_id= 0 robot= RidgebackSawyerUmi target= tensor([[-0.1121, 1.1000, 0.8541, 0.5000, -0.5000, 0.5000, 0.5000]]) lock_base=True (fixed base check)
|
| 508 |
+
[DualIKServer][debug] Instance 0 [locked] Solved batch [0] (G=1) success=[True] goalset_index=[0] pos_err_max=0.0000m rot_err_max=0.0191rad dt=0.2518s
|
| 509 |
+
IK (fixed base) SUCCESS -> using locked base MotionGen env_id= 0 robot= RidgebackSawyerUmi target= tensor([[-0.1121, 1.1000, 0.8541, 0.5000, -0.5000, 0.5000, 0.5000]])
|
| 510 |
+
Submit MotionGen env_id= 0 robot= RidgebackSawyerUmi target= tensor([[-0.1121, 1.1000, 0.8541, 0.5000, -0.5000, 0.5000, 0.5000]]) lock_base=True
|
| 511 |
+
[DualMotionGenServer][debug] Instance 0 [locked] plan_pose envs=[0] success=tensor([True], device='cuda:0') pos_err_max=0.0000m rot_err_max=0.0189rad dt=3.1426s
|
| 512 |
+
MotionGen result success env_id= 0 robot= RidgebackSawyerUmi target= tensor([[-0.1121, 1.1000, 0.8541, 0.5000, -0.5000, 0.5000, 0.5000]])
|
| 513 |
+
[MobileMoveL] waypoint 20/181 waits: eef 0 position off by 0.0625 (limit 0.0500) (cur - target [-0.062, 0.007, -0.004])
|
| 514 |
+
[MobileMoveL] waypoint 21/181 waits: eef 0 position off by 0.0650 (limit 0.0500) (cur - target [-0.064, 0.013, -0.003])
|
| 515 |
+
[MobileMoveL] waypoint 22/181 waits: eef 0 position off by 0.0667 (limit 0.0500) (cur - target [-0.065, 0.016, -0.003])
|
| 516 |
+
[memory] tick 1900 wall=832s t=38.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[0.0, 0.0, -0.0] eff=[-0.3, -0.6, 0.6] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.055, 2.242, 0.59] arm_q=[2.926, -1.01, -0.086, 1.994, 0.018, 1.398, 0.14] arm_tgt=[-0.112, 1.1, 0.854] plan=22/181 steps=38 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 517 |
+
[MobileMoveL] waypoint 23/181 waits: eef 0 position off by 0.0704 (limit 0.0500) (cur - target [-0.067, 0.02, -0.003])
|
| 518 |
+
[MobileMoveL] waypoint 24/181 waits: eef 0 position off by 0.0756 (limit 0.0500) (cur - target [-0.071, 0.025, -0.003])
|
| 519 |
+
[MobileMoveL] waypoint 25/181 waits: eef 0 position off by 0.0817 (limit 0.0500) (cur - target [-0.076, 0.03, -0.003])
|
| 520 |
+
[MobileMoveL] waypoint 26/181 waits: eef 0 position off by 0.0885 (limit 0.0500) (cur - target [-0.08, 0.037, -0.004])
|
| 521 |
+
[MobileMoveL] waypoint 27/181 waits: eef 0 position off by 0.0955 (limit 0.0500) (cur - target [-0.085, 0.044, -0.004])
|
| 522 |
+
[MobileMoveL] waypoint 28/181 waits: eef 0 position off by 0.1025 (limit 0.0500) (cur - target [-0.089, 0.051, -0.004])
|
| 523 |
+
[MobileMoveL] waypoint 29/181 waits: eef 0 position off by 0.1095 (limit 0.0500) (cur - target [-0.092, 0.059, -0.004])
|
| 524 |
+
[MobileMoveL] waypoint 30/181 waits: eef 0 position off by 0.1163 (limit 0.0500) (cur - target [-0.095, 0.067, -0.004])
|
| 525 |
+
[MobileMoveL] waypoint 31/181 waits: eef 0 position off by 0.1231 (limit 0.0500) (cur - target [-0.097, 0.075, -0.004])
|
| 526 |
+
[MobileMoveL] waypoint 32/181 waits: eef 0 position off by 0.1297 (limit 0.0500) (cur - target [-0.099, 0.084, -0.004])
|
| 527 |
+
[MobileMoveL] waypoint 33/181 waits: eef 0 position off by 0.1361 (limit 0.0500) (cur - target [-0.1, 0.092, -0.004])
|
| 528 |
+
[MobileMoveL] waypoint 34/181 waits: eef 0 position off by 0.1424 (limit 0.0500) (cur - target [-0.1, 0.101, -0.004])
|
| 529 |
+
[memory] tick 2000 wall=854s t=40.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[-0.0, -0.0, -0.0] eff=[0.7, 0.7, 1.0] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.28, 2.143, 0.634] arm_q=[2.593, -1.104, -0.458, 2.047, 0.113, 1.308, 0.417] arm_tgt=[-0.112, 1.1, 0.854] plan=34/181 steps=138 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 530 |
+
[MobileMoveL] waypoint 35/181 waits: eef 0 position off by 0.1484 (limit 0.0500) (cur - target [-0.1, 0.11, -0.003])
|
| 531 |
+
[MobileMoveL] waypoint 36/181 waits: eef 0 position off by 0.1543 (limit 0.0500) (cur - target [-0.099, 0.119, -0.003])
|
| 532 |
+
[MobileMoveL] waypoint 37/181 waits: eef 0 position off by 0.1599 (limit 0.0500) (cur - target [-0.097, 0.127, -0.003])
|
| 533 |
+
[MobileMoveL] waypoint 38/181 waits: eef 0 position off by 0.1652 (limit 0.0500) (cur - target [-0.094, 0.136, -0.002])
|
| 534 |
+
[MobileMoveL] waypoint 39/181 waits: eef 0 position off by 0.1702 (limit 0.0500) (cur - target [-0.091, 0.144, -0.001])
|
| 535 |
+
[MobileMoveL] waypoint 40/181 waits: eef 0 position off by 0.1748 (limit 0.0500) (cur - target [-0.087, 0.152, -0.0])
|
| 536 |
+
[MobileMoveL] waypoint 41/181 waits: eef 0 position off by 0.1790 (limit 0.0500) (cur - target [-0.083, 0.159, 0.001])
|
| 537 |
+
[MobileMoveL] waypoint 42/181 waits: eef 0 position off by 0.1826 (limit 0.0500) (cur - target [-0.078, 0.165, 0.002])
|
| 538 |
+
[MobileMoveL] waypoint 43/181 waits: eef 0 position off by 0.1858 (limit 0.0500) (cur - target [-0.072, 0.171, 0.003])
|
| 539 |
+
[MobileMoveL] waypoint 44/181 waits: eef 0 position off by 0.1884 (limit 0.0500) (cur - target [-0.067, 0.176, 0.005])
|
| 540 |
+
[MobileMoveL] waypoint 45/181 waits: eef 0 position off by 0.1903 (limit 0.0500) (cur - target [-0.061, 0.18, 0.006])
|
| 541 |
+
[MobileMoveL] waypoint 46/181 waits: eef 0 position off by 0.1916 (limit 0.0500) (cur - target [-0.054, 0.184, 0.008])
|
| 542 |
+
[MobileMoveL] waypoint 47/181 waits: eef 0 position off by 0.1922 (limit 0.0500) (cur - target [-0.048, 0.186, 0.01])
|
| 543 |
+
[memory] tick 2100 wall=877s t=42.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[0.0, -0.0, -0.0] eff=[-0.2, 0.1, 1.2] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.392, 1.931, 0.715] arm_q=[2.261, -1.309, -0.829, 2.043, 0.081, 1.204, 0.711] arm_tgt=[-0.112, 1.1, 0.854] plan=47/181 steps=238 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 544 |
+
[MobileMoveL] waypoint 48/181 waits: eef 0 position off by 0.1921 (limit 0.0500) (cur - target [-0.042, 0.187, 0.012])
|
| 545 |
+
[MobileMoveL] waypoint 49/181 waits: eef 0 position off by 0.1913 (limit 0.0500) (cur - target [-0.036, 0.187, 0.014])
|
| 546 |
+
[MobileMoveL] waypoint 50/181 waits: eef 0 position off by 0.1899 (limit 0.0500) (cur - target [-0.031, 0.187, 0.016])
|
| 547 |
+
[MobileMoveL] waypoint 51/181 waits: eef 0 position off by 0.1878 (limit 0.0500) (cur - target [-0.026, 0.185, 0.018])
|
| 548 |
+
[MobileMoveL] waypoint 52/181 waits: eef 0 position off by 0.1851 (limit 0.0500) (cur - target [-0.022, 0.183, 0.021])
|
| 549 |
+
[MobileMoveL] waypoint 53/181 waits: eef 0 position off by 0.1818 (limit 0.0500) (cur - target [-0.018, 0.179, 0.023])
|
| 550 |
+
[MobileMoveL] waypoint 54/181 waits: eef 0 position off by 0.1780 (limit 0.0500) (cur - target [-0.016, 0.176, 0.025])
|
| 551 |
+
[MobileMoveL] waypoint 55/181 waits: eef 0 position off by 0.1739 (limit 0.0500) (cur - target [-0.014, 0.171, 0.027])
|
| 552 |
+
[MobileMoveL] waypoint 56/181 waits: eef 0 position off by 0.1696 (limit 0.0500) (cur - target [-0.013, 0.167, 0.029])
|
| 553 |
+
[MobileMoveL] waypoint 57/181 waits: eef 0 position off by 0.1652 (limit 0.0500) (cur - target [-0.014, 0.162, 0.031])
|
| 554 |
+
[MobileMoveL] waypoint 58/181 waits: eef 0 position off by 0.1608 (limit 0.0500) (cur - target [-0.015, 0.157, 0.032])
|
| 555 |
+
[MobileMoveL] waypoint 59/181 waits: eef 0 position off by 0.1566 (limit 0.0500) (cur - target [-0.018, 0.152, 0.033])
|
| 556 |
+
[memory] tick 2200 wall=900s t=44.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[-0.0, -0.0, -0.0] eff=[3.3, 0.8, 4.2] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.319, 1.679, 0.815] arm_q=[1.93, -1.559, -1.2, 1.856, -0.154, 1.238, 0.788] arm_tgt=[-0.112, 1.1, 0.854] plan=59/181 steps=338 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 557 |
+
[MobileMoveL] waypoint 60/181 waits: eef 0 position off by 0.1529 (limit 0.0500) (cur - target [-0.021, 0.148, 0.034])
|
| 558 |
+
[MobileMoveL] waypoint 61/181 waits: eef 0 position off by 0.1498 (limit 0.0500) (cur - target [-0.024, 0.144, 0.034])
|
| 559 |
+
[MobileMoveL] waypoint 62/181 waits: eef 0 position off by 0.1474 (limit 0.0500) (cur - target [-0.025, 0.142, 0.033])
|
| 560 |
+
[MobileMoveL] waypoint 63/181 waits: eef 0 position off by 0.1458 (limit 0.0500) (cur - target [-0.025, 0.14, 0.032])
|
| 561 |
+
[MobileMoveL] waypoint 64/181 waits: eef 0 position off by 0.1446 (limit 0.0500) (cur - target [-0.024, 0.139, 0.031])
|
| 562 |
+
[MobileMoveL] waypoint 65/181 waits: eef 0 position off by 0.1440 (limit 0.0500) (cur - target [-0.023, 0.139, 0.031])
|
| 563 |
+
[MobileMoveL] waypoint 66/181 waits: eef 0 position off by 0.1440 (limit 0.0500) (cur - target [-0.022, 0.139, 0.03])
|
| 564 |
+
[MobileMoveL] waypoint 67/181 waits: eef 0 position off by 0.1444 (limit 0.0500) (cur - target [-0.019, 0.14, 0.029])
|
| 565 |
+
[MobileMoveL] waypoint 68/181 waits: eef 0 position off by 0.1452 (limit 0.0500) (cur - target [-0.014, 0.142, 0.028])
|
| 566 |
+
[MobileMoveL] waypoint 69/181 waits: eef 0 position off by 0.1463 (limit 0.0500) (cur - target [-0.009, 0.144, 0.026])
|
| 567 |
+
[MobileMoveL] waypoint 70/181 waits: eef 0 position off by 0.1475 (limit 0.0500) (cur - target [-0.005, 0.145, 0.025])
|
| 568 |
+
[MobileMoveL] waypoint 71/181 waits: eef 0 position off by 0.1489 (limit 0.0500) (cur - target [-0.001, 0.147, 0.024])
|
| 569 |
+
[MobileMoveL] waypoint 72/181 waits: eef 0 position off by 0.1504 (limit 0.0500) (cur - target [0.003, 0.149, 0.023])
|
| 570 |
+
[memory] tick 2300 wall=923s t=46.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[-0.0, 0.0, -0.0] eff=[0.6, -0.1, 2.0] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.225, 1.561, 0.872] arm_q=[1.597, -1.424, -1.453, 1.75, -0.023, 1.118, 0.532] arm_tgt=[-0.112, 1.1, 0.854] plan=72/181 steps=438 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 571 |
+
[MobileMoveL] waypoint 73/181 waits: eef 0 position off by 0.1520 (limit 0.0500) (cur - target [0.007, 0.15, 0.022])
|
| 572 |
+
[MobileMoveL] waypoint 74/181 waits: eef 0 position off by 0.1537 (limit 0.0500) (cur - target [0.01, 0.152, 0.022])
|
| 573 |
+
[MobileMoveL] waypoint 75/181 waits: eef 0 position off by 0.1555 (limit 0.0500) (cur - target [0.014, 0.153, 0.021])
|
| 574 |
+
[MobileMoveL] waypoint 76/181 waits: eef 0 position off by 0.1574 (limit 0.0500) (cur - target [0.018, 0.155, 0.02])
|
| 575 |
+
[MobileMoveL] waypoint 77/181 waits: eef 0 position off by 0.1593 (limit 0.0500) (cur - target [0.022, 0.157, 0.02])
|
| 576 |
+
[MobileMoveL] waypoint 78/181 waits: eef 0 position off by 0.1614 (limit 0.0500) (cur - target [0.025, 0.158, 0.019])
|
| 577 |
+
[MobileMoveL] waypoint 79/181 waits: eef 0 position off by 0.1634 (limit 0.0500) (cur - target [0.029, 0.16, 0.019])
|
| 578 |
+
[MobileMoveL] waypoint 80/181 waits: eef 0 position off by 0.1655 (limit 0.0500) (cur - target [0.033, 0.161, 0.018])
|
| 579 |
+
[MobileMoveL] waypoint 81/181 waits: eef 0 position off by 0.1675 (limit 0.0500) (cur - target [0.038, 0.162, 0.018])
|
| 580 |
+
[MobileMoveL] waypoint 82/181 waits: eef 0 position off by 0.1695 (limit 0.0500) (cur - target [0.042, 0.163, 0.017])
|
| 581 |
+
[MobileMoveL] waypoint 83/181 waits: eef 0 position off by 0.1715 (limit 0.0500) (cur - target [0.046, 0.164, 0.017])
|
| 582 |
+
[MobileMoveL] waypoint 84/181 waits: eef 0 position off by 0.1734 (limit 0.0500) (cur - target [0.05, 0.165, 0.016])
|
| 583 |
+
[memory] tick 2400 wall=946s t=48.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[-0.0, 0.0, -0.0] eff=[0.4, -0.4, 0.9] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.188, 1.495, 0.903] arm_q=[1.266, -1.303, -1.433, 1.673, 0.033, 1.042, 0.349] arm_tgt=[-0.112, 1.1, 0.854] plan=84/181 steps=538 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 584 |
+
[MobileMoveL] waypoint 85/181 waits: eef 0 position off by 0.1753 (limit 0.0500) (cur - target [0.055, 0.166, 0.016])
|
| 585 |
+
[MobileMoveL] waypoint 86/181 waits: eef 0 position off by 0.1770 (limit 0.0500) (cur - target [0.059, 0.166, 0.015])
|
| 586 |
+
[MobileMoveL] waypoint 87/181 waits: eef 0 position off by 0.1786 (limit 0.0500) (cur - target [0.063, 0.166, 0.015])
|
| 587 |
+
[MobileMoveL] waypoint 88/181 waits: eef 0 position off by 0.1801 (limit 0.0500) (cur - target [0.068, 0.166, 0.014])
|
| 588 |
+
[MobileMoveL] waypoint 89/181 waits: eef 0 position off by 0.1815 (limit 0.0500) (cur - target [0.072, 0.166, 0.013])
|
| 589 |
+
[MobileMoveL] waypoint 90/181 waits: eef 0 position off by 0.1826 (limit 0.0500) (cur - target [0.077, 0.165, 0.013])
|
| 590 |
+
[MobileMoveL] waypoint 91/181 waits: eef 0 position off by 0.1836 (limit 0.0500) (cur - target [0.081, 0.164, 0.012])
|
| 591 |
+
[MobileMoveL] waypoint 92/181 waits: eef 0 position off by 0.1843 (limit 0.0500) (cur - target [0.085, 0.163, 0.011])
|
| 592 |
+
[MobileMoveL] waypoint 93/181 waits: eef 0 position off by 0.1848 (limit 0.0500) (cur - target [0.089, 0.161, 0.011])
|
| 593 |
+
[MobileMoveL] waypoint 94/181 waits: eef 0 position off by 0.1851 (limit 0.0500) (cur - target [0.093, 0.16, 0.01])
|
| 594 |
+
[MobileMoveL] waypoint 95/181 waits: eef 0 position off by 0.1852 (limit 0.0500) (cur - target [0.097, 0.157, 0.009])
|
| 595 |
+
[MobileMoveL] waypoint 96/181 waits: eef 0 position off by 0.1849 (limit 0.0500) (cur - target [0.101, 0.155, 0.008])
|
| 596 |
+
[MobileMoveL] waypoint 97/181 waits: eef 0 position off by 0.1844 (limit 0.0500) (cur - target [0.104, 0.152, 0.007])
|
| 597 |
+
[memory] tick 2500 wall=970s t=50.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[0.0, -0.0, 0.0] eff=[-0.2, 0.0, -0.1] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[-0.0, 0.0, 0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.167, 1.408, 0.899] arm_q=[0.936, -1.074, -1.397, 1.654, 0.265, 0.95, 0.035] arm_tgt=[-0.112, 1.1, 0.854] plan=97/181 steps=638 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 598 |
+
[MobileMoveL] waypoint 98/181 waits: eef 0 position off by 0.1837 (limit 0.0500) (cur - target [0.107, 0.149, 0.006])
|
| 599 |
+
[MobileMoveL] waypoint 99/181 waits: eef 0 position off by 0.1826 (limit 0.0500) (cur - target [0.109, 0.146, 0.005])
|
| 600 |
+
[MobileMoveL] waypoint 100/181 waits: eef 0 position off by 0.1812 (limit 0.0500) (cur - target [0.112, 0.143, 0.004])
|
| 601 |
+
[MobileMoveL] waypoint 101/181 waits: eef 0 position off by 0.1795 (limit 0.0500) (cur - target [0.113, 0.139, 0.003])
|
| 602 |
+
[MobileMoveL] waypoint 102/181 waits: eef 0 position off by 0.1776 (limit 0.0500) (cur - target [0.115, 0.135, 0.002])
|
| 603 |
+
[MobileMoveL] waypoint 103/181 waits: eef 0 position off by 0.1752 (limit 0.0500) (cur - target [0.116, 0.131, 0.001])
|
| 604 |
+
[MobileMoveL] waypoint 104/181 waits: eef 0 position off by 0.1726 (limit 0.0500) (cur - target [0.117, 0.127, 0.0])
|
| 605 |
+
[MobileMoveL] waypoint 105/181 waits: eef 0 position off by 0.1697 (limit 0.0500) (cur - target [0.117, 0.123, -0.001])
|
| 606 |
+
[MobileMoveL] waypoint 106/181 waits: eef 0 position off by 0.1664 (limit 0.0500) (cur - target [0.117, 0.118, -0.002])
|
| 607 |
+
[MobileMoveL] waypoint 107/181 waits: eef 0 position off by 0.1628 (limit 0.0500) (cur - target [0.117, 0.113, -0.003])
|
| 608 |
+
[MobileMoveL] waypoint 108/181 waits: eef 0 position off by 0.1589 (limit 0.0500) (cur - target [0.116, 0.108, -0.004])
|
| 609 |
+
[MobileMoveL] waypoint 109/181 waits: eef 0 position off by 0.1547 (limit 0.0500) (cur - target [0.115, 0.103, -0.006])
|
| 610 |
+
[memory] tick 2600 wall=991s t=52.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[0.0, -0.0, -0.0] eff=[-0.1, 0.1, 0.2] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.107, 1.301, 0.872] arm_q=[0.606, -0.821, -1.35, 1.634, 0.642, 0.92, -0.4] arm_tgt=[-0.112, 1.1, 0.854] plan=109/181 steps=738 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 611 |
+
[MobileMoveL] waypoint 110/181 waits: eef 0 position off by 0.1502 (limit 0.0500) (cur - target [0.113, 0.098, -0.007])
|
| 612 |
+
[MobileMoveL] waypoint 111/181 waits: eef 0 position off by 0.1454 (limit 0.0500) (cur - target [0.111, 0.093, -0.008])
|
| 613 |
+
[MobileMoveL] waypoint 112/181 waits: eef 0 position off by 0.1404 (limit 0.0500) (cur - target [0.109, 0.088, -0.009])
|
| 614 |
+
[MobileMoveL] waypoint 113/181 waits: eef 0 position off by 0.1351 (limit 0.0500) (cur - target [0.106, 0.083, -0.01])
|
| 615 |
+
[MobileMoveL] waypoint 114/181 waits: eef 0 position off by 0.1296 (limit 0.0500) (cur - target [0.103, 0.078, -0.011])
|
| 616 |
+
[MobileMoveL] waypoint 115/181 waits: eef 0 position off by 0.1238 (limit 0.0500) (cur - target [0.099, 0.073, -0.012])
|
| 617 |
+
[MobileMoveL] waypoint 116/181 waits: eef 0 position off by 0.1179 (limit 0.0500) (cur - target [0.096, 0.068, -0.013])
|
| 618 |
+
[MobileMoveL] waypoint 117/181 waits: eef 0 position off by 0.1120 (limit 0.0500) (cur - target [0.092, 0.063, -0.014])
|
| 619 |
+
[MobileMoveL] waypoint 118/181 waits: eef 0 position off by 0.1062 (limit 0.0500) (cur - target [0.087, 0.059, -0.014])
|
| 620 |
+
[MobileMoveL] waypoint 119/181 waits: eef 0 position off by 0.1003 (limit 0.0500) (cur - target [0.083, 0.054, -0.014])
|
| 621 |
+
[MobileMoveL] waypoint 120/181 waits: eef 0 position off by 0.0944 (limit 0.0500) (cur - target [0.079, 0.05, -0.014])
|
| 622 |
+
[MobileMoveL] waypoint 121/181 waits: eef 0 position off by 0.0886 (limit 0.0500) (cur - target [0.074, 0.047, -0.013])
|
| 623 |
+
[MobileMoveL] waypoint 122/181 waits: eef 0 position off by 0.0828 (limit 0.0500) (cur - target [0.07, 0.043, -0.013])
|
| 624 |
+
[memory] tick 2700 wall=1011s t=54.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[-0.0, -0.0, -0.0] eff=[0.0, 0.2, 1.4] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[0.005, 1.206, 0.85] arm_q=[0.276, -0.632, -1.296, 1.485, 0.878, 1.062, -0.745] arm_tgt=[-0.112, 1.1, 0.854] plan=122/181 steps=838 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 625 |
+
[MobileMoveL] waypoint 123/181 waits: eef 0 position off by 0.0770 (limit 0.0500) (cur - target [0.065, 0.039, -0.012])
|
| 626 |
+
[MobileMoveL] waypoint 124/181 waits: eef 0 position off by 0.0713 (limit 0.0500) (cur - target [0.06, 0.036, -0.012])
|
| 627 |
+
[MobileMoveL] waypoint 125/181 waits: eef 0 position off by 0.0656 (limit 0.0500) (cur - target [0.056, 0.033, -0.011])
|
| 628 |
+
[MobileMoveL] waypoint 126/181 waits: eef 0 position off by 0.0600 (limit 0.0500) (cur - target [0.051, 0.029, -0.01])
|
| 629 |
+
[MobileMoveL] waypoint 127/181 waits: eef 0 position off by 0.0544 (limit 0.0500) (cur - target [0.047, 0.026, -0.009])
|
| 630 |
+
[MobileMoveL] waypoint 128/181 waits: eef 0 position off by 0.0511 (limit 0.0500) (cur - target [0.044, 0.025, -0.008])
|
| 631 |
+
[MobileMoveL] waypoint 129/181 waits: eef 0 position off by 0.0509 (limit 0.0500) (cur - target [0.044, 0.025, -0.008])
|
| 632 |
+
[MobileMoveL] waypoint 130/181 waits: eef 0 position off by 0.0504 (limit 0.0500) (cur - target [0.044, 0.024, -0.008])
|
| 633 |
+
[MobileMoveL] waypoint 132/181 waits: eef 0 position off by 0.0501 (limit 0.0500) (cur - target [0.043, 0.024, -0.007])
|
| 634 |
+
[memory] tick 2800 wall=1031s t=56.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[-0.0, -0.0, -0.0] eff=[0.4, 0.5, 1.8] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[-0.092, 1.122, 0.843] arm_q=[-0.055, -0.635, -1.033, 1.164, 0.761, 1.228, -0.906] arm_tgt=[-0.112, 1.1, 0.854] plan=170/181 steps=938 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 635 |
+
Global planner MobileMoveL of env 0 is finished or truncated, truncated: 0
|
| 636 |
+
Atomic skill of env 0 is finished or truncated
|
| 637 |
+
[memory] event move_target {'label': 'take_item:down:0', 'mode': 4, 'pos': [-0.1121, 1.1, 0.7341], 'quat': [0.5, -0.5, 0.5, 0.5], 'base': [0.0914, 2.0792, 0.06, -1.5727]}
|
| 638 |
+
Creating atomic skill: Move for env 0
|
| 639 |
+
[tick-csv] window opens at tick 2837 (phase take_item:down:0)
|
| 640 |
+
[memory] tick 2900 wall=1051s t=58.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.172, 4.459] jv=[-0.0, 0.0, -0.0] eff=[0.0, -0.2, 0.7] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[-0.111, 1.102, 0.766] arm_q=[-0.205, -0.693, -0.662, 1.139, 0.489, 1.247, -0.671] arm_tgt=[-0.112, 1.1, 0.734] plan=0/None steps=64 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 641 |
+
Global planner MobileMoveL of env 0 is finished or truncated, truncated: 0
|
| 642 |
+
Atomic skill of env 0 is finished or truncated
|
| 643 |
+
[memory] event settle_err {'label': 'take_item:down', 'k': 0, 'err_mm': [-0.2, -0.3, -4.6], 'norm_mm': 4.6}
|
| 644 |
+
Creating atomic skill: Move for env 0
|
| 645 |
+
Atomic skill of env 0 is finished or truncated
|
| 646 |
+
[memory] event move_target {'label': 'take_item:lift', 'mode': 4, 'pos': [-0.1121, 1.1, 0.8541], 'quat': [0.5, -0.5, 0.5, 0.5], 'base': [0.0913, 2.0797, 0.06, -1.5728]}
|
| 647 |
+
Creating atomic skill: Move for env 0
|
| 648 |
+
[memory] tick 3000 wall=1072s t=60.0s base=(0.09,2.08,-1.57) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.445, 3.173, 4.459] jv=[0.001, -0.001, 0.004] eff=[-144.6, 94.6, -403.3] vt=[0.0, -0.0, 0.0] base_quat=[0.5, -0.5, -0.5, -0.5] base_ang_vel=[0.0, -0.0, 0.004] link_quat=[0.5, -0.5, -0.5, -0.5] eef=[-0.156, 1.684, 1.026] arm_q=[-0.456, -0.667, -1.708, 1.32, -0.881, 1.925, -1.178] arm_tgt=[-0.112, 1.1, 0.854] plan=0/None steps=62 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 649 |
+
[MobileMoveL] final arrival waits: eef 0 position off by 0.4615 (limit 0.0060) (cur - target [-0.367, -0.034, -0.278])
|
| 650 |
+
[memory] tick 3100 wall=1094s t=62.0s base=(0.09,2.08,-1.58) station=B skill=Move/0 dwb_cmd=[0.0, 0.0, 0.0] raw_cmd=[0.0, 0.0, 0.0] rootz=0.06 jp=[4.449, 3.175, 4.453] jv=[0.004, -0.002, -0.0] eff=[-439.8, 164.5, 40.2] vt=[0.0, -0.0, 0.0] base_quat=[0.498, -0.502, -0.498, -0.502] base_ang_vel=[0.0, -0.0, -0.0] link_quat=[0.498, -0.502, -0.498, -0.502] eef=[-0.44, 2.431, 0.373] arm_q=[-3.05, 0.764, -3.043, 0.598, -2.862, 2.976, -1.056] arm_tgt=[-0.112, 1.1, 0.854] plan=0/None steps=162 locked=True gp=MobileMoveL nseg=0 public={'demo_running': False, 'demo_done': True}
|
| 651 |
+
Resetting env tensor([0]) with seed None and options None
|
| 652 |
+
Global planner MobileMoveL of env 0 is finished or truncated, truncated: 2
|
| 653 |
+
Atomic skill of env 0 is finished or truncated
|
| 654 |
+
Task of env 0 is finished or truncated, state: truncated: env truncated
|
| 655 |
+
[memory] episode 1 done: full_success=False terminated=False reason='item_dropped' t=62.06s
|
| 656 |
+
[chase] video: /mnt/scratch/xc536_atomic/n052saw_closeup_s101/rec/cams/cam1/video.mp4 (1551 frames, every 2 steps)
|
| 657 |
+
MEMORY_RESULT {"task_id": "N052", "config": "/mnt/scratch/xc536_atomic/n052saw_closeup_s101/ptree/src/magicsim/Collect/Task/MemoryStation/Conf/memory_n052_easy.yaml", "success": false, "planner_seeds": "default", "dr": {"seed": 101, "spawn_jitter": 0.3, "start": [-3.4252, -2.0984, 0.2512], "nominal_start": [-3.3, -2.3, 0.0]}, "output_dir": "/mnt/scratch/xc536_atomic/n052saw_closeup_s101/rec/memorystage/000", "chase_video": "/mnt/scratch/xc536_atomic/n052saw_closeup_s101/rec/cams/cam1/video.mp4", "steps": 3103, "elapsed_s": 1115.253, "episodes_run": 1, "episodes_full_success": 0}
|
| 658 |
+
[memory] record finalize: nothing_to_enqueue
|
| 659 |
+
[PhysXMonitor] suppressed 2 repeated msgs for [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
|
| 660 |
+
2026-11-10T00:24:50Z [1,109,388ms] [Warning] [carb.windowing-glfw.plugin] GLFW initialization failed.
|
| 661 |
+
[PhysXMonitor] suppressed 2 repeated msgs for [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.5]) (impl: carb.windowing-glfw.plugin)
|
| 662 |
+
2026-11-10T00:24:50Z [1,109,389ms] [Warning] [carb] Failed to startup plugin carb.windowing-glfw.plugin (interfaces: [carb::windowing::IGLContext v1.0],[carb::windowing::IWindowing v1.5]) (impl: carb.windowing-glfw.plugin)
|
| 663 |
+
2026-11-10T00:24:50Z [1,109,510ms] [Warning] [omni.usd] Unexpected reference count of 2 for UsdStage 'anon:0x55644ad4c2d0:World0.usd' while being closed in UsdContext (this may indicate it is still resident in memory).
|
| 664 |
+
total 62796
|
| 665 |
+
drwxr-xr-x. 2 xc536 xc536 69 Nov 9 19:24 .
|
| 666 |
+
drwxr-xr-x. 11 xc536 xc536 128 Nov 9 19:07 ..
|
| 667 |
+
-rw-r--r--. 1 xc536 xc536 20703 Nov 9 19:24 report.json
|
| 668 |
+
-rw-r--r--. 1 xc536 xc536 697121 Nov 9 19:24 take_item_ticks.csv
|
| 669 |
+
-rw-r--r--. 1 xc536 xc536 63577131 Nov 9 19:24 video.mp4
|
| 670 |
+
INFO: Terminating fuse-overlayfs after timeout
|
| 671 |
+
INFO: Timeouts can be caused by a running background process
|
| 672 |
+
exit 0 2026-11-09 19:24:54
|
debug/536/n052_sawyer/step_2026-11-09/closeup_s101_take_item_ticks.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
debug/536/n052_sawyer/step_2026-11-09/step_table_s101.txt
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
close rows 82 100 gp cols: ['gp_state', 'gp_step_count', 'interp_substep', 'interp_steps', 'planner_mode', 'arm_tgt_x', 'arm_tgt_y', 'arm_tgt_z']
|
| 2 |
+
79 2916 take_item:do running 4 arm_tgt 1.0999 | eef y 1.100 z 0.742 | qtgt-qtgt0: +0.000 +0.000 +0.000 +0.000 +0.000 +0.000 +0.000 | qtgt-q: -0.003 -0.000 +0.009 +0.004 -0.003 -0.003 +0.005 | fingers 0.0208 -0.0208 Ld 0
|
| 3 |
+
80 2917 take_item:do running 4 arm_tgt 1.0999 | eef y 1.100 z 0.740 | qtgt-qtgt0: -0.001 -0.001 +0.004 +0.001 -0.002 -0.001 +0.002 | qtgt-q: -0.003 -0.001 +0.009 +0.004 -0.004 -0.003 +0.004 | fingers 0.0208 -0.0208 Ld 0
|
| 4 |
+
81 2918 arm_tgt | eef y 1.100 z 0.739 | qtgt-qtgt0: -0.003 -0.002 +0.008 +0.002 -0.005 -0.002 +0.004 | qtgt-q: -0.003 -0.002 +0.009 +0.003 -0.004 -0.003 +0.004 | fingers 0.0208 -0.0208 Ld 0
|
| 5 |
+
82 2919 take_item:cl running close arm_tgt | eef y 1.100 z 0.738 | qtgt-qtgt0: -0.004 -0.003 +0.012 +0.003 -0.007 -0.002 +0.005 | qtgt-q: -0.003 -0.003 +0.009 +0.002 -0.005 -0.002 +0.004 | fingers 0.0188 -0.0188 Ld 0
|
| 6 |
+
83 2920 take_item:cl running close arm_tgt | eef y 1.100 z 0.736 | qtgt-qtgt0: -0.006 -0.004 +0.015 +0.004 -0.010 -0.003 +0.007 | qtgt-q: -0.003 -0.003 +0.009 +0.002 -0.005 -0.002 +0.004 | fingers 0.0168 -0.0168 Ld 0
|
| 7 |
+
84 2921 take_item:cl running close arm_tgt | eef y 1.100 z 0.736 | qtgt-qtgt0: -0.007 -0.005 +0.019 +0.005 -0.013 -0.004 +0.009 | qtgt-q: -0.003 -0.004 +0.009 +0.002 -0.006 -0.002 +0.004 | fingers 0.0148 -0.0148 Ld 0
|
| 8 |
+
85 2922 take_item:cl running close arm_tgt | eef y 1.100 z 0.735 | qtgt-qtgt0: -0.009 -0.007 +0.023 +0.005 -0.016 -0.004 +0.011 | qtgt-q: -0.003 -0.004 +0.009 +0.001 -0.006 -0.002 +0.004 | fingers 0.0131 -0.0128 Ld 3
|
| 9 |
+
86 2923 take_item:cl running close arm_tgt | eef y 1.103 z 0.734 | qtgt-qtgt0: -0.010 -0.008 +0.025 +0.006 -0.020 -0.002 +0.012 | qtgt-q: -0.003 -0.004 +0.010 -0.001 -0.003 -0.004 +0.004 | fingers 0.0147 -0.0111 Ld 52
|
| 10 |
+
87 2924 take_item:cl running close arm_tgt | eef y 1.107 z 0.732 | qtgt-qtgt0: -0.010 -0.008 +0.022 +0.010 -0.022 +0.000 +0.013 | qtgt-q: -0.001 -0.002 +0.011 -0.005 +0.002 -0.006 +0.003 | fingers 0.0165 -0.0093 Ld 54
|
| 11 |
+
88 2925 take_item:cl running close arm_tgt | eef y 1.112 z 0.731 | qtgt-qtgt0: -0.011 -0.008 +0.017 +0.013 -0.024 +0.003 +0.013 | qtgt-q: +0.002 -0.001 +0.011 -0.008 +0.006 -0.008 +0.001 | fingers 0.0182 -0.0075 Ld 57
|
| 12 |
+
89 2926 take_item:cl running close arm_tgt | eef y 1.116 z 0.729 | qtgt-qtgt0: -0.012 -0.007 +0.011 +0.016 -0.024 +0.005 +0.012 | qtgt-q: +0.005 +0.001 +0.011 -0.011 +0.010 -0.010 -0.000 | fingers 0.0200 -0.0058 Ld 59
|
| 13 |
+
90 2927 take_item:cl running close arm_tgt | eef y 1.122 z 0.728 | qtgt-qtgt0: -0.012 -0.007 +0.004 +0.022 -0.023 +0.005 +0.010 | qtgt-q: +0.009 +0.001 +0.013 -0.012 +0.018 -0.016 -0.002 | fingers 0.0208 -0.0042 Ld 113
|
| 14 |
+
91 2928 take_item:cl running close arm_tgt | eef y 1.144 z 0.721 | qtgt-qtgt0: -0.016 -0.011 -0.020 +0.041 -0.044 +0.024 +0.002 | qtgt-q: +0.010 -0.003 +0.020 -0.019 +0.027 -0.026 -0.010 | fingers 0.0208 -0.0037 Ld 332
|
| 15 |
+
92 2929 take_item:cl running close arm_tgt | eef y 1.179 z 0.711 | qtgt-qtgt0: -0.027 -0.016 -0.060 +0.080 -0.098 +0.060 -0.011 | qtgt-q: +0.013 -0.006 +0.020 -0.020 +0.033 -0.027 -0.018 | fingers 0.0208 -0.0036 Ld 409
|
| 16 |
+
93 2930 take_item:cl running close arm_tgt | eef y 1.218 z 0.703 | qtgt-qtgt0: -0.045 -0.019 -0.100 +0.121 -0.161 +0.099 -0.020 | qtgt-q: +0.014 -0.006 +0.020 -0.020 +0.033 -0.028 -0.021 | fingers 0.0208 -0.0035 Ld 426
|
| 17 |
+
94 2931 take_item:cl running close arm_tgt | eef y 1.260 z 0.699 | qtgt-qtgt0: -0.069 -0.023 -0.141 +0.161 -0.224 +0.141 -0.026 | qtgt-q: +0.015 -0.005 +0.020 -0.020 +0.033 -0.028 -0.021 | fingers 0.0208 -0.0035 Ld 426
|
| 18 |
+
95 2932 take_item:cl running close arm_tgt | eef y 1.304 z 0.698 | qtgt-qtgt0: -0.096 -0.031 -0.181 +0.202 -0.287 +0.181 -0.032 | qtgt-q: +0.016 -0.004 +0.020 -0.020 +0.033 -0.027 -0.021 | fingers 0.0208 -0.0035 Ld 430
|