diff --git a/.gitattributes b/.gitattributes index bed0738c7eeb449bca98b5d2f33c89a1ee56349a..85868de6a52426389c82a29f669ffeff02459c82 100644 --- a/.gitattributes +++ b/.gitattributes @@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text # Video files - compressed *.mp4 filter=lfs diff=lfs merge=lfs -text *.webm filter=lfs diff=lfs merge=lfs -text +provenance/lerobot_render8_camera_frames.jsonl filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..9c16f54ff43a6293b8c95c27733ed9944bfa56aa --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +显卡安装 LeRobot 小数据集(用户提前停止扩增后的已完成部分) + +dataset/ 是可独立移动的 LeRobot 数据根目录,使用官方 LeRobotDataset 创建并重新加载验证。 +LeRobot Python 包:0.6.2;数据格式:v3.0。 +共 8 个 episode,10020 帧,15Hz,front+wrist 双相机 RGB 320×240。 +一条动作只有一套视觉画面;没有生成20条或60组,不宣称五阶段扩增已全部完成。 + +observation.state:7个臂关节角(rad)+夹爪闭合度 1-mean(clip(finger_q/.04,0,1))。 +action:源NPZ的干净OSC8命令原样复制:3平移增量、3旋转轴角增量、2手指绝对位置(m)。 +前6维通过对应控制器的比例/滤波解释,不应直接当作末端绝对位姿。 +complementary_info.action_noise:实际施加的加性命令扰动。 +complementary_info.executed_action:action+action_noise;之后仍经过原控制器。 +源NPZ、完整控制器元信息、阶段入口、实际相机内外参和代码快照一起保留。 + +使用: +from lerobot.datasets.lerobot_dataset import LeRobotDataset +ds = LeRobotDataset('local/pc_gpu_data_engine_8_osc_15hz', root='/替换成你的绝对路径/dataset', video_backend='pyav') +print(len(ds), ds[0]['action'], ds[0]['observation.images.front'].shape) + +数据格式可用于LeRobot,但未训练模型。与新RAW OSC8模型更接近;复用模型前仍需核对 +控制器比例/滤波、图像尺寸和相机分布。不能直接用于旧430条的关节目标动作模型。 +本小批次没有划分训练/验证集;meta/stats.json由本数据计算。 + +8条源轨迹均通过在线安装、松手和5秒稳定检查。其中1条从真实运行到插入前的状态开始记录; +其他7条为完整起点。引擎会裁掉部分成功等待尾段,所以保存的视频不一定包含最后5秒保持。 +视频是已记录状态的渲染,不是动作开环回放验证;腕部有正常的显卡局部遮挡。 +相机是本项目声明的视角,不声称与作者历史数据相机完全一致。 +8条是有限样本,不能当作论文或VLA模型成功率。 + +episode_mapping.json:每条数据对应的源轨迹、策略、seed、阶段和控制器。 +validation_report.json:全部数值行对齐,以及官方加载器实际读取双相机的验证。 +source_trajectories/:原始NPZ和元数据。 +provenance/:精确生成代码、日志、渲染参数和逐帧相机记录。 diff --git a/data/chunk-000/file-000.parquet b/data/chunk-000/file-000.parquet new file mode 100644 index 0000000000000000000000000000000000000000..f3159f91e1eaa80d5bfbf22d3cb2780e7afa3ee7 --- /dev/null +++ b/data/chunk-000/file-000.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:368875649cd3ca2b32dbf57e768a6b293ad5191a1a431c2170ee875bff52c2ba +size 1356632 diff --git a/episode_mapping.json b/episode_mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..29dc10d23ae04a3b0ef8df99c8c0986122837dd6 --- /dev/null +++ b/episode_mapping.json @@ -0,0 +1,1010 @@ +[ + { + "episode_index": 0, + "source_episode": "data/h_s0_1/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 101, + "entry": null, + "frames": 1350, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "source_trajectory_sha256": "5b3eb381fd8cae17d2a518056b242dd78b2b95bff631a1e9f8b0b50e9ca0be16", + "perturbed_rows": 0, + "source_split_group": "5b3eb381fd8cae17d2a518056b242dd78b2b95bff631a1e9f8b0b50e9ca0be16", + "success": true, + "replay_checked": false + }, + { + "episode_index": 1, + "source_episode": "data/h_s0_2/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 102, + "entry": null, + "frames": 1350, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "source_trajectory_sha256": "0f6896868d106319c43601979ebbcc6fcab0b52eb5c408c8acdcb15fc1fc933a", + "perturbed_rows": 459, + "source_split_group": "0f6896868d106319c43601979ebbcc6fcab0b52eb5c408c8acdcb15fc1fc933a", + "success": true, + "replay_checked": false + }, + { + "episode_index": 2, + "source_episode": "data/h_s0_3/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 103, + "entry": null, + "frames": 1350, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "source_trajectory_sha256": "3d2bcf5a63959dbd7ad013ad87e2008b9a67ede39886c71be73357e39d30124c", + "perturbed_rows": 462, + "source_split_group": "3d2bcf5a63959dbd7ad013ad87e2008b9a67ede39886c71be73357e39d30124c", + "success": true, + "replay_checked": false + }, + { + "episode_index": 3, + "source_episode": "data/p01_scene/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 100, + "entry": null, + "frames": 1350, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "source_trajectory_sha256": "006656ffd4d6e1310c0f456fb85f45f6ebcc65f2e066a99fefbf97726ae5b663", + "perturbed_rows": 0, + "source_split_group": "006656ffd4d6e1310c0f456fb85f45f6ebcc65f2e066a99fefbf97726ae5b663", + "success": true, + "replay_checked": false + }, + { + "episode_index": 4, + "source_episode": "data/p02_strategy/ep_0000", + "cell": "scene_1/strategy_1", + "seed": 100, + "entry": null, + "frames": 1320, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "source_trajectory_sha256": "542ffe626535ed34a448d1250095ab7fd2502902c18676eb09be00e21a9ac3ef", + "perturbed_rows": 0, + "source_split_group": "542ffe626535ed34a448d1250095ab7fd2502902c18676eb09be00e21a9ac3ef", + "success": true, + "replay_checked": false + }, + { + "episode_index": 5, + "source_episode": "data/p03_dynamics/ep_0000", + "cell": "scene_1/strategy_1", + "seed": 100, + "entry": null, + "frames": 1320, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "source_trajectory_sha256": "22f561b73af4b311e35a1f3c490da9172effa7294ffb31ec2ae1c7f99e5d0153", + "perturbed_rows": 460, + "source_split_group": "22f561b73af4b311e35a1f3c490da9172effa7294ffb31ec2ae1c7f99e5d0153", + "success": true, + "replay_checked": false + }, + { + "episode_index": 6, + "source_episode": "data/p04_phase/ep_0000", + "cell": "scene_1/strategy_1/phase_0", + "seed": 200, + "entry": "preinsert", + "frames": 660, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "source_trajectory_sha256": "d67d6e72cb347ddad8f174c2c87f4e079dc7e923976467e6cccd56bf9818de89", + "perturbed_rows": 0, + "source_split_group": "d67d6e72cb347ddad8f174c2c87f4e079dc7e923976467e6cccd56bf9818de89", + "success": true, + "replay_checked": false + }, + { + "episode_index": 7, + "source_episode": "data/p04_phase/ep_0001", + "cell": "scene_1/strategy_1/phase_0", + "seed": 201, + "entry": "start", + "frames": 1320, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "source_trajectory_sha256": "decaf4c129959bb995cc38f83da702b949014ba604185b183dc1c598cfcf6cdf", + "perturbed_rows": 458, + "source_split_group": "decaf4c129959bb995cc38f83da702b949014ba604185b183dc1c598cfcf6cdf", + "success": true, + "replay_checked": false + } +] \ No newline at end of file diff --git a/meta/episodes/chunk-000/file-000.parquet b/meta/episodes/chunk-000/file-000.parquet new file mode 100644 index 0000000000000000000000000000000000000000..73d80357ead1a3c7660a6b49b030feb4b74242e8 --- /dev/null +++ b/meta/episodes/chunk-000/file-000.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f741a4749bd8ab74f816b88184d7de8c05115bc88ae920fe942d1e702a9012cc +size 303502 diff --git a/meta/info.json b/meta/info.json new file mode 100644 index 0000000000000000000000000000000000000000..fddf7ef375d038f74f7a0e9d6c8d4f99cf6e6afb --- /dev/null +++ b/meta/info.json @@ -0,0 +1,175 @@ +{ + "codebase_version": "v3.0", + "fps": 15, + "features": { + "observation.state": { + "dtype": "float32", + "shape": [ + 8 + ], + "names": [ + "joint_1_rad", + "joint_2_rad", + "joint_3_rad", + "joint_4_rad", + "joint_5_rad", + "joint_6_rad", + "joint_7_rad", + "gripper_closedness" + ] + }, + "action": { + "dtype": "float32", + "shape": [ + 8 + ], + "names": [ + "dx", + "dy", + "dz", + "drot_x", + "drot_y", + "drot_z", + "finger1_m", + "finger2_m" + ] + }, + "complementary_info.action_noise": { + "dtype": "float32", + "shape": [ + 8 + ], + "names": [ + "dx", + "dy", + "dz", + "drot_x", + "drot_y", + "drot_z", + "finger1_m", + "finger2_m" + ] + }, + "complementary_info.executed_action": { + "dtype": "float32", + "shape": [ + 8 + ], + "names": [ + "dx", + "dy", + "dz", + "drot_x", + "drot_y", + "drot_z", + "finger1_m", + "finger2_m" + ] + }, + "observation.images.front": { + "dtype": "video", + "shape": [ + 240, + 320, + 3 + ], + "names": [ + "height", + "width", + "channels" + ], + "info": { + "video.height": 240, + "video.width": 320, + "video.codec": "h264", + "video.pix_fmt": "yuv420p", + "video.fps": 15, + "video.channels": 3, + "has_audio": false, + "video.g": 2, + "video.crf": 18, + "video.preset": "fast", + "video.fast_decode": 0, + "video.video_backend": "pyav", + "video.extra_options": {}, + "is_depth_map": false + } + }, + "observation.images.wrist": { + "dtype": "video", + "shape": [ + 240, + 320, + 3 + ], + "names": [ + "height", + "width", + "channels" + ], + "info": { + "video.height": 240, + "video.width": 320, + "video.codec": "h264", + "video.pix_fmt": "yuv420p", + "video.fps": 15, + "video.channels": 3, + "has_audio": false, + "video.g": 2, + "video.crf": 18, + "video.preset": "fast", + "video.fast_decode": 0, + "video.video_backend": "pyav", + "video.extra_options": {}, + "is_depth_map": false + } + }, + "timestamp": { + "dtype": "float32", + "shape": [ + 1 + ], + "names": null + }, + "frame_index": { + "dtype": "int64", + "shape": [ + 1 + ], + "names": null + }, + "episode_index": { + "dtype": "int64", + "shape": [ + 1 + ], + "names": null + }, + "index": { + "dtype": "int64", + "shape": [ + 1 + ], + "names": null + }, + "task_index": { + "dtype": "int64", + "shape": [ + 1 + ], + "names": null + } + }, + "total_episodes": 8, + "total_frames": 10020, + "total_tasks": 1, + "chunks_size": 1000, + "data_files_size_in_mb": 100, + "video_files_size_in_mb": 200, + "data_path": "data/chunk-{chunk_index:03d}/file-{file_index:03d}.parquet", + "video_path": "videos/{video_key}/chunk-{chunk_index:03d}/file-{file_index:03d}.mp4", + "robot_type": "franka_osc", + "splits": { + "train": "0:8" + } +} \ No newline at end of file diff --git a/meta/stats.json b/meta/stats.json new file mode 100644 index 0000000000000000000000000000000000000000..0844344d7060e50440bc7bd71b5903573caa682d --- /dev/null +++ b/meta/stats.json @@ -0,0 +1,858 @@ +{ + "timestamp": { + "min": [ + 0.0 + ], + "max": [ + 89.93333333333334 + ], + "mean": [ + 43.0564870259481 + ], + "std": [ + 25.71053251281212 + ], + "count": [ + 10020 + ], + "q01": [ + 0.40067199990182406 + ], + "q10": [ + 4.340613333253094 + ], + "q50": [ + 21.94030666666655 + ], + "q90": [ + 80.94000000008 + ], + "q99": [ + 89.06098000009806 + ] + }, + "complementary_info.executed_action": { + "min": [ + -1.192927598953247, + -4.8213653564453125, + -6.9681854248046875, + -27.32980728149414, + -3.53182315826416, + -1.5483593940734863, + 0.01720000058412552, + 0.01720000058412552 + ], + "max": [ + 0.8919456601142883, + 2.040548801422119, + 2.556353807449341, + 7.3572587966918945, + 6.108026504516602, + 2.833026885986328, + 0.03999999910593033, + 0.03999999910593033 + ], + "mean": [ + -0.08648351766169071, + 0.9225108921527863, + 1.1013612490214273, + 4.760189543227236, + 0.43449598979093357, + -0.34911954188775157, + 0.02178150823640966, + 0.02178150823640966 + ], + "std": [ + 0.4510908035211494, + 0.5622081114672041, + 0.6889249583777496, + 2.76173067013162, + 2.6034700000173454, + 0.612278021166472, + 0.00905970509554574, + 0.00905970509554574 + ], + "count": [ + 10020 + ], + "q01": [ + -1.1153079271316528, + -0.07388143539428711, + -0.4089967608451843, + -0.5724983215332031, + -3.51198148727417, + -1.5050480365753174, + 0.01720000058412552, + 0.01720000058412552 + ], + "q10": [ + -0.9509038925170898, + -0.002611324191093445, + -0.3101853132247925, + -0.0019207026647484822, + -3.3569037914276123, + -1.3758057753245037, + 0.01720000058412552, + 0.01720000058412552 + ], + "q50": [ + -0.003383040428161621, + 1.2040990591049194, + 1.371724910206265, + 6.2374587059021, + -3.1989541053771973, + -0.7735692262649536, + 0.01720000058412552, + 0.01720000058412552 + ], + "q90": [ + 0.4375326633453369, + 1.406903346379598, + 1.639123558998108, + 7.244527101516724, + 5.565688133239746, + 0.4603039877755301, + 0.03999782622613631, + 0.03999782622613631 + ], + "q99": [ + 0.8008056044578552, + 1.5939308404922485, + 1.8017842769622803, + 7.326128780841827, + 6.07754921913147, + 2.0114109992980955, + 0.03999978181795093, + 0.03999978181795093 + ] + }, + "task_index": { + "min": [ + 0.0 + ], + "max": [ + 0.0 + ], + "mean": [ + 0.0 + ], + "std": [ + 0.0 + ], + "count": [ + 10020 + ], + "q01": [ + 3.9999999999994176e-16 + ], + "q10": [ + 3.999999999999417e-15 + ], + "q50": [ + 1.9999999999997088e-14 + ], + "q90": [ + 3.599999999999476e-14 + ], + "q99": [ + 3.9599999999994235e-14 + ] + }, + "observation.images.front": { + "min": [ + [ + [ + 0.0 + ] + ], + [ + [ + 0.0 + ] + ], + [ + [ + 0.0 + ] + ] + ], + "max": [ + [ + [ + 0.9843137264251709 + ] + ], + [ + [ + 0.9764705896377563 + ] + ], + [ + [ + 1.0 + ] + ] + ], + "mean": [ + [ + [ + 0.6493919261558327 + ] + ], + [ + [ + 0.6370048792419318 + ] + ], + [ + [ + 0.610055156989012 + ] + ] + ], + "std": [ + [ + [ + 0.13048280371657883 + ] + ], + [ + [ + 0.12629314802150612 + ] + ], + [ + [ + 0.12787877064447073 + ] + ] + ], + "count": [ + 192384000 + ], + "q01": [ + [ + [ + 0.1332446568621464 + ] + ], + [ + [ + 0.1410924551350786 + ] + ], + [ + [ + 0.1411065357151727 + ] + ] + ], + "q10": [ + [ + [ + 0.48218600914454923 + ] + ], + [ + [ + 0.45488677530951216 + ] + ], + [ + [ + 0.3921642684245068 + ] + ] + ], + "q50": [ + [ + [ + 0.6117464392248848 + ] + ], + [ + [ + 0.6001141273586149 + ] + ], + [ + [ + 0.596063307148835 + ] + ] + ], + "q90": [ + [ + [ + 0.8155496688248666 + ] + ], + [ + [ + 0.7881721326515232 + ] + ], + [ + [ + 0.7411037616305317 + ] + ] + ], + "q99": [ + [ + [ + 0.8549452385318386 + ] + ], + [ + [ + 0.8548522205444578 + ] + ], + [ + [ + 0.8549512929696187 + ] + ] + ] + }, + "index": { + "min": [ + 0.0 + ], + "max": [ + 10019.0 + ], + "mean": [ + 5009.5 + ], + "std": [ + 2892.5248342350783 + ], + "count": [ + 10020 + ], + "q01": [ + 13.08529999990194 + ], + "q10": [ + 134.0905999999199 + ], + "q50": [ + 674.2302 + ], + "q90": [ + 9887.10000000008 + ], + "q99": [ + 10006.021040000098 + ] + }, + "episode_index": { + "min": [ + 0.0 + ], + "max": [ + 7.0 + ], + "mean": [ + 3.311377245508982 + ], + "std": [ + 2.269042351525235 + ], + "count": [ + 10020 + ], + "q01": [ + 3.9999999999994176e-16 + ], + "q10": [ + 3.999999999999417e-15 + ], + "q50": [ + 1.9999999999997088e-14 + ], + "q90": [ + 7.0000000000000355 + ], + "q99": [ + 7.00000000000004 + ] + }, + "complementary_info.action_noise": { + "min": [ + -0.10031559318304062, + -0.10328654199838638, + -0.10294100642204285, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "max": [ + 0.09702367335557938, + 0.11048414558172226, + 0.09299086034297943, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "mean": [ + -3.435111983764978e-05, + -6.016886563993249e-05, + 0.00020818806604732667, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "std": [ + 0.012560138812169722, + 0.012419183841902536, + 0.012935385062766171, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "count": [ + 10020 + ], + "q01": [ + -0.05743747055530548, + -0.061476432532072064, + -0.056216320395469664, + 3.9995784462121265e-16, + 3.9995784462121265e-16, + 3.9995784462121265e-16, + 3.9995784462121265e-16, + 3.9995784462121265e-16 + ], + "q10": [ + -0.017193801701068878, + -0.01844063401222229, + -0.017125070095062256, + 3.999578446212126e-15, + 3.999578446212126e-15, + 3.999578446212126e-15, + 3.999578446212126e-15, + 3.999578446212126e-15 + ], + "q50": [ + -1.0532016555468239e-05, + -4.11286776842073e-06, + -1.1912494172641051e-05, + 1.9997892231060632e-14, + 1.9997892231060632e-14, + 1.9997892231060632e-14, + 1.9997892231060632e-14, + 1.9997892231060632e-14 + ], + "q90": [ + 0.016823258250951767, + 0.016254998743534088, + 0.019154630601406097, + 3.599620601590914e-14, + 3.599620601590914e-14, + 3.599620601590914e-14, + 3.599620601590914e-14, + 3.599620601590914e-14 + ], + "q99": [ + 0.05736614018678665, + 0.06242603808641434, + 0.061847159266471864, + 3.959582661750005e-14, + 3.959582661750005e-14, + 3.959582661750005e-14, + 3.959582661750005e-14, + 3.959582661750005e-14 + ] + }, + "observation.images.wrist": { + "min": [ + [ + [ + 0.0 + ] + ], + [ + [ + 0.0 + ] + ], + [ + [ + 0.0 + ] + ] + ], + "max": [ + [ + [ + 1.0 + ] + ], + [ + [ + 1.0 + ] + ], + [ + [ + 1.0 + ] + ] + ], + "mean": [ + [ + [ + 0.31499587284947583 + ] + ], + [ + [ + 0.3270711006518609 + ] + ], + [ + [ + 0.3236432301248619 + ] + ] + ], + "std": [ + [ + [ + 0.2748822970957793 + ] + ], + [ + [ + 0.28017536535171417 + ] + ], + [ + [ + 0.2771328274262199 + ] + ] + ], + "count": [ + 192384000 + ], + "q01": [ + [ + [ + -1.000000013351432e-10 + ] + ], + [ + [ + -1.000000013351432e-10 + ] + ], + [ + [ + -1.000000013351432e-10 + ] + ] + ], + "q10": [ + [ + [ + 0.011738890798701846 + ] + ], + [ + [ + 0.011753173409107868 + ] + ], + [ + [ + 0.011736184418112122 + ] + ] + ], + "q50": [ + [ + [ + 0.1215985151103097 + ] + ], + [ + [ + 0.14110541699477114 + ] + ], + [ + [ + 0.1332753213438322 + ] + ] + ], + "q90": [ + [ + [ + 0.7453828626001331 + ] + ], + [ + [ + 0.7568375626963405 + ] + ], + [ + [ + 0.7529272492661963 + ] + ] + ], + "q99": [ + [ + [ + 0.8548546982560803 + ] + ], + [ + [ + 0.9294141918052381 + ] + ], + [ + [ + 0.9018160922892463 + ] + ] + ] + }, + "frame_index": { + "min": [ + 0.0 + ], + "max": [ + 1349.0 + ], + "mean": [ + 645.8473053892216 + ], + "std": [ + 385.6579876921818 + ], + "count": [ + 10020 + ], + "q01": [ + 6.0100799999018255 + ], + "q10": [ + 65.10919999991977 + ], + "q50": [ + 329.10459999999995 + ], + "q90": [ + 1214.10000000008 + ], + "q99": [ + 1335.914700000098 + ] + }, + "observation.state": { + "min": [ + -2.6629040241241455, + -0.9707443714141846, + -0.00139999995008111, + -2.8248276710510254, + -0.0002800000074785203, + 1.689454197883606, + -1.1979706287384033, + 0.0 + ], + "max": [ + 0.001500000013038516, + -0.19699999690055847, + 1.681524634361267, + -1.9759999513626099, + 1.193623423576355, + 2.7696967124938965, + 0.7860000133514404, + 0.5538171529769897 + ], + "mean": [ + -1.7925470253664577, + -0.6693378328206296, + 1.1522494854327447, + -2.5631897942034785, + 0.7460712785135486, + 2.1421918255126404, + -0.41110926812994264, + 0.4416864119960876 + ], + "std": [ + 0.7203959542248837, + 0.1380222003896954, + 0.3612383707413262, + 0.13529213807797963, + 0.2415116117572613, + 0.2606951023639512, + 0.6166967290569723, + 0.2191681345468733 + ], + "count": [ + 10020 + ], + "q01": [ + -2.6557101011276245, + -0.9695837497711182, + 0.632928803563118, + -2.8137674808502195, + 0.2594849705696106, + 1.6962623000144958, + -1.1632769107818604, + -1.000000013351432e-10 + ], + "q10": [ + -2.6239187717437744, + -0.9069104790687561, + 0.6933579444885254, + -2.783914089202881, + 0.5080643892288208, + 1.7516347765922546, + -1.1190085411071777, + -1.000000013351432e-10 + ], + "q50": [ + -2.571694294611613, + -0.6813251376152039, + 0.9314939975738525, + -2.6141486167907715, + 0.6096886396408081, + 2.1792736053466797, + -1.0438812971115112, + 0.5516015672292865 + ], + "q90": [ + -0.9007295370101929, + -0.4320572018623352, + 1.6176453828811646, + -2.3596347173055015, + 1.0723228454589844, + 2.5126495361328125, + 0.3515126705169678, + 0.5538030751680924 + ], + "q99": [ + -0.856689589364188, + -0.3517526149749756, + 1.6760141849517822, + -2.0552183628082275, + 1.160074770450592, + 2.6160700798034666, + 0.5732506513595581, + 0.5538157451961 + ] + }, + "action": { + "min": [ + -1.1478731632232666, + -4.8213653564453125, + -6.9681854248046875, + -27.32980728149414, + -3.53182315826416, + -1.5483593940734863, + 0.01720000058412552, + 0.01720000058412552 + ], + "max": [ + 0.8919456601142883, + 2.040548801422119, + 2.556353807449341, + 7.3572587966918945, + 6.108026504516602, + 2.833026885986328, + 0.03999999910593033, + 0.03999999910593033 + ], + "mean": [ + -0.08644910675228133, + 0.9225710551895782, + 1.1011530246563301, + 4.760189543227236, + 0.43449598979093357, + -0.34911954188775157, + 0.02178150823640966, + 0.02178150823640966 + ], + "std": [ + 0.4509122991506937, + 0.5622976402943648, + 0.6886866775408784, + 2.76173067013162, + 2.6034700000173454, + 0.612278021166472, + 0.00905970509554574, + 0.00905970509554574 + ], + "count": [ + 10020 + ], + "q01": [ + -1.1225014925003052, + -0.07388143539428711, + -0.4089967608451843, + -0.5724983215332031, + -3.51198148727417, + -1.5050480365753174, + 0.01720000058412552, + 0.01720000058412552 + ], + "q10": [ + -0.9399716258049011, + -0.002611324191093445, + -0.3101853132247925, + -0.0019207026647484822, + -3.3569037914276123, + -1.3758057753245037, + 0.01720000058412552, + 0.01720000058412552 + ], + "q50": [ + -0.003410816192626953, + 1.2040990591049194, + 1.371724910206265, + 6.2374587059021, + -3.1989541053771973, + -0.7735692262649536, + 0.01720000058412552, + 0.01720000058412552 + ], + "q90": [ + 0.4375326633453369, + 1.4080634117126465, + 1.6334465742111206, + 7.244527101516724, + 5.565688133239746, + 0.4603039877755301, + 0.03999782622613631, + 0.03999782622613631 + ], + "q99": [ + 0.8008056044578552, + 1.5859065651893616, + 1.8017842769622803, + 7.326128780841827, + 6.07754921913147, + 2.0114109992980955, + 0.03999978181795093, + 0.03999978181795093 + ] + } +} \ No newline at end of file diff --git a/meta/tasks.parquet b/meta/tasks.parquet new file mode 100644 index 0000000000000000000000000000000000000000..8cb04a6e53548cf1e952471333e3caf3bb25b87a --- /dev/null +++ b/meta/tasks.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3765f664e630606b2c4b9bb9caa5548e067d4d527665fc29f2a1be3117b14920 +size 2399 diff --git a/provenance/camera_audit_hook.py b/provenance/camera_audit_hook.py new file mode 100644 index 0000000000000000000000000000000000000000..f61efb4754222d845e6d65e6f410ba7f50e3b5d3 --- /dev/null +++ b/provenance/camera_audit_hook.py @@ -0,0 +1,76 @@ +"""Render-only camera persistence fix and actual camera/light telemetry.""" +from pathlib import Path +import json, os + +_context={'frame':None,'chunk':-1} +_logged=set() + +def setup(env): + from isaaclab.utils.math import convert_camera_frame_orientation_convention + path=Path(os.environ['PILOT_CAMERA_LOG']) + episodes=json.loads(os.environ['PILOT_RENDER_EPISODES']) + gen=Path(os.environ.get('PILOT_GEN_ROOT',str(Path(__file__).parent/'data_gen/pilot'))) + episodes.sort(key=lambda e:(json.loads((gen/e/'meta.json').read_text())['steps'],str(gen/e))) + lengths=[json.loads((gen/e/'meta.json').read_text())['steps'] for e in episodes] + stream=path.open('x',buffering=1) + origins=env.iscene.env_origins.detach().cpu().tolist() + from pxr import UsdLux + light = UsdLux.LightAPI(env.sim.stage.GetPrimAtPath('/World/light')) + path.with_suffix('.grid.json').write_text(json.dumps({'num_envs':env.num_envs,'origins':origins, + 'actual_light_intensity':float(light.GetIntensityAttr().Get()), + 'pilot_parts_box_prim_present':[bool(env.sim.stage.GetPrimAtPath(f'/World/envs/env_{i}/PilotPartsBox').IsValid()) for i in range(env.num_envs)], + 'episodes_in_render_order':episodes,'pose_source':'Isaac camera XformPrimView after forced update', + 'world_quaternion':'wxyz, +X forward +Z up','ros_quaternion':'wxyz, +Z forward -Y up'},indent=2)) + for name,cam in env.iscene.sensors.items(): + if not hasattr(cam.cfg,'data_types') or 'rgb' not in cam.cfg.data_types:continue + # TiledCamera otherwise returns INITIALIZATION poses even as pixels move. + cam.cfg.update_latest_camera_pose=True + if '/front' in cam.cfg.prim_path: + original_set=cam.set_world_poses + def persistent_set(positions=None,orientations=None,env_ids=None,convention='ros', + _original=original_set,_cam=cam): + _original(positions,orientations,env_ids,convention) + # In this installed Fabric backend, the next sim tick overwrites + # a world-only camera edit from its nominal USD local transform. + # External cameras are direct children of untranslated/identity + # env frames except for the audited env-origin translation. + ids=slice(None) if env_ids is None else env_ids + local=positions-env.iscene.env_origins[ids] if positions is not None else None + gl=convert_camera_frame_orientation_convention(orientations,origin=convention,target='opengl') if orientations is not None else None + _cam._view.set_local_poses(local,gl,env_ids) + _cam._pilot_expected_position=positions.detach().clone() + if convention=='world':_cam._pilot_expected_quat_world=orientations.detach().clone() + cam.set_world_poses=persistent_set + original=cam.update + def update(*a,_original=original,_cam=cam,_name=name,**kw): + result=_original(*a,**kw) + if kw.get('force_recompute') and _context['frame'] is not None: + d=_cam.data + for slot in range(env.num_envs): + j=_context['chunk']*env.num_envs+slot + if j>=len(episodes) or _context['frame']>=lengths[j]:continue + key=(j,_context['frame'],_name) + if key in _logged:continue + row={'episode':episodes[j],'env_slot':slot,'env_origin':origins[slot], + 'frame_index':_context['frame'],'camera':_name, + 'pos_w':d.pos_w[slot].detach().cpu().tolist(), + 'quat_w_world':d.quat_w_world[slot].detach().cpu().tolist(), + 'quat_w_ros':d.quat_w_ros[slot].detach().cpu().tolist(), + 'intrinsic_matrix':d.intrinsic_matrices[slot].detach().cpu().tolist(), + 'size':[_cam.cfg.width,_cam.cfg.height], + 'clipping_range':list(_cam.cfg.spawn.clipping_range)} + if hasattr(_cam,'_pilot_expected_position'): + error=float((d.pos_w[slot]-_cam._pilot_expected_position[slot]).norm()) + if error>.0001:raise RuntimeError(f'Camera pose did not persist: {_name} {error}') + row['requested_pose_error_m']=error + if hasattr(_cam,'_pilot_expected_quat_world'): + qerror=1-abs(float((d.quat_w_world[slot]*_cam._pilot_expected_quat_world[slot]).sum())) + if qerror>.0001:raise RuntimeError(f'Camera rotation did not persist: {_name} {qerror}') + row['requested_rotation_dot_error']=qerror + stream.write(json.dumps(row)+'\n');_logged.add(key) + return result + cam.update=update + +def per_frame(env,t): + if t==0:_context['chunk']+=1 + _context['frame']=int(t) diff --git a/provenance/export_lerobot_completed.py b/provenance/export_lerobot_completed.py new file mode 100644 index 0000000000000000000000000000000000000000..6e79b08f5410a5cea58a1eecffb575a890a2cbfb --- /dev/null +++ b/provenance/export_lerobot_completed.py @@ -0,0 +1,237 @@ +"""Convert only frozen accepted motions with the installed official LeRobot API.""" +from pathlib import Path +import argparse,hashlib,importlib.metadata,json,os,shutil,tarfile,time +os.environ.update(HF_HUB_OFFLINE='1',HF_DATASETS_OFFLINE='1') +import cv2 +import numpy as np +from lerobot.datasets.lerobot_dataset import LeRobotDataset +from lerobot.configs.video import RGBEncoderConfig +from pipeline import ROOT,GEN,write_json,status + +REPO_ID='local/pc_gpu_data_engine_8_osc_15hz' +TASK='Install the graphics card into the motherboard PCIe slot inside the computer case.' +ACTION_NAMES=['dx','dy','dz','drot_x','drot_y','drot_z','finger1_m','finger2_m'] +STATE_NAMES=[f'joint_{i}_rad' for i in range(1,8)]+['gripper_closedness'] + +def sha(p): + h=hashlib.sha256() + with p.open('rb') as f: + for b in iter(lambda:f.read(2**20),b''):h.update(b) + return h.hexdigest() + +def state(q): + q=q.astype(np.float32) + return np.concatenate([q[:,:7],(1-np.clip(q[:,7:9]/.04,0,1).mean(1))[:,None]],axis=1) + +def preflight(selection): + grid=json.loads((ROOT/'evidence/lerobot_render8_camera_frames.grid.json').read_text()) + assert grid['actual_light_intensity']==2500 + assert all(grid['pilot_parts_box_prim_present']) + origins=np.asarray(grid['origins']);dist=np.linalg.norm(origins[:,None]-origins[None,:],axis=-1) + assert np.min(dist+np.eye(len(origins))*1e6)>=49.99 + telemetry={} + for line in (ROOT/'evidence/lerobot_render8_camera_frames.jsonl').open(): + r=json.loads(line);key=(r['episode'],r['camera']) + telemetry.setdefault(key,{}) + assert r['frame_index'] not in telemetry[key] + assert np.isfinite(r['intrinsic_matrix']).all() and np.isfinite(r['pos_w']).all() + assert r['clipping_range'][1]<=40.001 + telemetry[key][r['frame_index']]=r + audits=[] + for item in selection: + ep=GEN/item['episode'];m=json.loads((ep/'meta.json').read_text()) + with np.load(ep/'traj.npz') as d: + a=d['action'];q=d['robot/joint_pos'];n=len(a) + assert a.shape==(m['steps'],8) and q.shape==(n,9) + assert np.isfinite(a).all() and np.isfinite(q).all() + for cam in ('front','wrist'): + name=cam+'_lerobot';r=json.loads((ep/'imgs'/f'render_{name}.json').read_text()) + rows=telemetry[(item['episode'],name)] + assert r['frame_indices']==list(range(n))==sorted(rows) + assert r['fps']==15 and r['size']==[320,240] + audits.append({'episode':item['episode'],'camera':cam,'aligned_frames':n}) + return audits + +def convert(out,selection): + assert not out.exists(),f'Refusing overwrite: {out}' + out.mkdir() + features={ + 'observation.state':{'dtype':'float32','shape':(8,),'names':STATE_NAMES}, + 'action':{'dtype':'float32','shape':(8,),'names':ACTION_NAMES}, + 'complementary_info.action_noise':{'dtype':'float32','shape':(8,),'names':ACTION_NAMES}, + 'complementary_info.executed_action':{'dtype':'float32','shape':(8,),'names':ACTION_NAMES}, + **{f'observation.images.{cam}':{'dtype':'video','shape':(240,320,3), + 'names':['height','width','channels']} for cam in ('front','wrist')}} + ds=LeRobotDataset.create(REPO_ID,15,features,root=out/'dataset',robot_type='franka_osc', + use_videos=True,video_backend='pyav',streaming_encoding=True,encoder_threads=2, + rgb_encoder=RGBEncoderConfig(vcodec='h264',crf=18,preset='fast',g=2), + metadata_buffer_size=1) + mapping=[] + for i,item in enumerate(selection): + ep=GEN/item['episode'];m=json.loads((ep/'meta.json').read_text()) + with np.load(ep/'traj.npz') as d: + action=d['action'].astype(np.float32);s=state(d['robot/joint_pos']) + noise=d['action_noise'].astype(np.float32) if 'action_noise' in d else np.zeros_like(action) + caps={cam:cv2.VideoCapture(str(ep/'imgs'/f'{cam}_lerobot.mp4')) for cam in ('front','wrist')} + for cam,cap in caps.items(): + assert int(cap.get(cv2.CAP_PROP_FRAME_COUNT))==len(action) + assert abs(cap.get(cv2.CAP_PROP_FPS)-15)<.001 + blank=[] + for t in range(len(action)): + frame={'task':TASK,'observation.state':s[t],'action':action[t], + 'complementary_info.action_noise':noise[t], + 'complementary_info.executed_action':(action[t]+noise[t]).astype(np.float32)} + for cam,cap in caps.items(): + ok,img=cap.read();assert ok,(i,cam,t) + gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) + if gray.mean()<2 or gray.std()<1:blank.append([cam,t]) + frame[f'observation.images.{cam}']=cv2.cvtColor(img,cv2.COLOR_BGR2RGB) + ds.add_frame(frame) + assert not blank,blank + for cap in caps.values():cap.release() + ds.save_episode(parallel_encoding=False) + source=out/'source_trajectories'/f'episode_{i:03d}';source.mkdir(parents=True) + shutil.copy2(ep/'traj.npz',source/'traj.npz');shutil.copy2(ep/'meta.json',source/'meta.json') + for cam in caps: + shutil.copy2(ep/'imgs'/f'render_{cam}_lerobot.json',source/f'render_{cam}.json') + mapping.append(dict(episode_index=i,source_episode=item['episode'],cell=item['cell'], + seed=item['seed'],entry=m.get('entry'),frames=len(action),controller=m['controller'], + source_trajectory_sha256=item['trajectory_sha256'],perturbed_rows=int(np.any(noise!=0,axis=1).sum()), + source_split_group=item['trajectory_sha256'],success=True,replay_checked=False)) + write_json(out/'episode_mapping.json',mapping) + status('LEROBOT_CONVERTING',completed_episodes=i+1,total=len(selection)) + print('CONVERTED',i,len(action),flush=True) + ds.finalize() + audit=out/'provenance';audit.mkdir() + for name in ('lerobot_selection.json','evidence/user_stop_20261012.json', + 'evidence/lerobot_render8_camera_frames.jsonl','evidence/lerobot_render8_camera_frames.grid.json', + 'evidence/lerobot_render8_command.json','evidence/lerobot_render8_result.json', + 'evidence/runtime_versions.json','evidence/source_hashes.json'): + shutil.copy2(ROOT/name,audit/Path(name).name) + for name in ('export_lerobot_completed.py','render_completed_for_export.py','pipeline.py','camera_audit_hook.py'): + shutil.copy2(ROOT/name,audit/name) + # Preserve exact code/parameters for accepted batches, excluding assets and unfinished runs. + for batch in sorted({Path(x['episode']).parts[1] for x in selection}): + shutil.copytree(ROOT/'evidence/attempts'/batch,audit/'generation_code'/batch, + ignore=shutil.ignore_patterns('__pycache__')) + shutil.copy2(ROOT/'evidence'/f'{batch}_result.json',audit/f'{batch}_result.json') + shutil.copy2(ROOT/'logs'/f'{batch}.log',audit/f'{batch}.log') + +def validate(out,selection): + ds=LeRobotDataset(REPO_ID,root=out/'dataset',video_backend='pyav',tolerance_s=.005, + return_uint8=True) + assert ds.num_episodes==len(selection)==8 + table=ds.hf_dataset + checks=[];offset=0 + for i,item in enumerate(selection): + ep=GEN/item['episode'] + with np.load(ep/'traj.npz') as d: + a=d['action'].astype(np.float32);s=state(d['robot/joint_pos']) + noise=d['action_noise'].astype(np.float32) if 'action_noise' in d else np.zeros_like(a) + rows=table.select(range(offset,offset+len(a))) + maxima={} + for key,ref in [('action',a),('observation.state',s),('complementary_info.action_noise',noise), + ('complementary_info.executed_action',a+noise)]: + actual=np.asarray(rows[key],dtype=np.float32) + maxima[key]=float(np.max(np.abs(actual-ref))) + assert maxima[key]<=2e-6,(i,key,maxima[key]) + assert np.array_equal(np.asarray(rows['frame_index']),np.arange(len(a))) + assert np.all(np.asarray(rows['episode_index'])==i) + assert np.max(abs(np.asarray(rows['timestamp'])-np.arange(len(a))/15))<.0001 + images=[] + for t in sorted({0,len(a)//4,len(a)//2,3*len(a)//4,len(a)-1}): + sample=ds[offset+t] + for cam in ('front','wrist'): + actual=sample[f'observation.images.{cam}'].numpy().transpose(1,2,0) + assert actual.shape==(240,320,3) + cap=cv2.VideoCapture(str(ep/'imgs'/f'{cam}_lerobot.mp4'));cap.set(cv2.CAP_PROP_POS_FRAMES,t) + ok,ref=cap.read();cap.release();assert ok + ref=cv2.cvtColor(ref,cv2.COLOR_BGR2RGB) + mae=float(np.mean(abs(actual.astype(float)-ref.astype(float)))) + assert mae<12,(i,t,cam,mae) + images.append(dict(frame=t,camera=cam,shape=list(actual.shape),rgb_mean_absolute_error=mae)) + checks.append(dict(episode=i,frames=len(a),all_numeric_rows_max_error=maxima,decoded_image_checks=images)) + offset+=len(a) + print('VALIDATED',i,flush=True) + assert len(ds)==offset + info=json.loads((out/'dataset/meta/info.json').read_text()) + report=dict(passed=True,episodes=len(selection),frames=offset,fps=15, + lerobot_package=importlib.metadata.version('lerobot'),codebase_version=info['codebase_version'], + numeric_alignment='every row checked against source NPZ',camera_render_alignment=preflight(selection), + image_alignment='five times per episode per camera checked through official LeRobotDataset decoder',checks=checks, + all_source_video_frames_read_and_nonblank=True,action_replay_checked=False) + write_json(out/'validation_report.json',report) + return report + +def package(out,report): + selection=json.loads((ROOT/'lerobot_selection.json').read_text())['selected'] + sheet=np.full((8*150,4*320,3),245,np.uint8) + for i,item in enumerate(selection): + ep=GEN/item['episode'] + n=item['steps'] + for j,t in enumerate([0,n//3,2*n//3,n-1]): + for c,cam in enumerate(('front','wrist')): + cap=cv2.VideoCapture(str(ep/'imgs'/f'{cam}_lerobot.mp4'));cap.set(cv2.CAP_PROP_POS_FRAMES,t) + ok,img=cap.read();cap.release();assert ok + x=j*320+c*160;y=i*150+30 + sheet[y:y+120,x:x+160]=cv2.resize(img,(160,120)) + cv2.putText(sheet,f'ep{i} t={t/15:.1f}s front | wrist',(j*320+5,i*150+21), + cv2.FONT_HERSHEY_SIMPLEX,.42,(20,20,20),1,cv2.LINE_AA) + cv2.imwrite(str(out/'preview.jpg'),sheet) + readme=f'''显卡安装 LeRobot 小数据集(用户提前停止扩增后的已完成部分) + +dataset/ 是可独立移动的 LeRobot 数据根目录,使用官方 LeRobotDataset 创建并重新加载验证。 +LeRobot Python 包:{report['lerobot_package']};数据格式:{report['codebase_version']}。 +共 {report['episodes']} 个 episode,{report['frames']} 帧,15Hz,front+wrist 双相机 RGB 320×240。 +一条动作只有一套视觉画面;没有生成20条或60组,不宣称五阶段扩增已全部完成。 + +observation.state:7个臂关节角(rad)+夹爪闭合度 1-mean(clip(finger_q/.04,0,1))。 +action:源NPZ的干净OSC8命令原样复制:3平移增量、3旋转轴角增量、2手指绝对位置(m)。 +前6维通过对应控制器的比例/滤波解释,不应直接当作末端绝对位姿。 +complementary_info.action_noise:实际施加的加性命令扰动。 +complementary_info.executed_action:action+action_noise;之后仍经过原控制器。 +源NPZ、完整控制器元信息、阶段入口、实际相机内外参和代码快照一起保留。 + +使用: +from lerobot.datasets.lerobot_dataset import LeRobotDataset +ds = LeRobotDataset('{REPO_ID}', root='/替换成你的绝对路径/dataset', video_backend='pyav') +print(len(ds), ds[0]['action'], ds[0]['observation.images.front'].shape) + +数据格式可用于LeRobot,但未训练模型。与新RAW OSC8模型更接近;复用模型前仍需核对 +控制器比例/滤波、图像尺寸和相机分布。不能直接用于旧430条的关节目标动作模型。 +本小批次没有划分训练/验证集;meta/stats.json由本数据计算。 + +8条源轨迹均通过在线安装、松手和5秒稳定检查。其中1条从真实运行到插入前的状态开始记录; +其他7条为完整起点。引擎会裁掉部分成功等待尾段,所以保存的视频不一定包含最后5秒保持。 +视频是已记录状态的渲染,不是动作开环回放验证;腕部有正常的显卡局部遮挡。 +相机是本项目声明的视角,不声称与作者历史数据相机完全一致。 +8条是有限样本,不能当作论文或VLA模型成功率。 + +episode_mapping.json:每条数据对应的源轨迹、策略、seed、阶段和控制器。 +validation_report.json:全部数值行对齐,以及官方加载器实际读取双相机的验证。 +source_trajectories/:原始NPZ和元数据。 +provenance/:精确生成代码、日志、渲染参数和逐帧相机记录。 +''' + (out/'README.txt').write_text(readme) + files=[p for p in sorted(out.rglob('*')) if p.is_file()] + assert not any(p.is_symlink() for p in out.rglob('*')) + total=sum(p.stat().st_size for p in files);assert total<10*1024**3,total + write_json(out/'checksums.json',dict(total_bytes_before_manifest=total, + files=[dict(path=str(p.relative_to(out)),bytes=p.stat().st_size,sha256=sha(p)) for p in files])) + archive=out.with_suffix('.tar.gz');assert not archive.exists() + with tarfile.open(archive,'w:gz') as tar:tar.add(out,arcname='pc_gpu_lerobot_20261012') + assert archive.stat().st_size<10*1024**3 + write_json(out.with_suffix('.archive.json'),dict(archive=str(archive),bytes=archive.stat().st_size, + sha256=sha(archive),uncompressed_bytes=sum(p.stat().st_size for p in out.rglob('*') if p.is_file()))) + status('LEROBOT_READY_FOR_MAC',episodes=8,frames=report['frames'],archive=str(archive),bytes=archive.stat().st_size) + print('READY',archive,archive.stat().st_size,flush=True) + +if __name__=='__main__': + ap=argparse.ArgumentParser();ap.add_argument('--output',type=Path,default=ROOT/'lerobot_export_8') + ap.add_argument('--validate-only',action='store_true');args=ap.parse_args() + selection=json.loads((ROOT/'lerobot_selection.json').read_text())['selected'] + assert len(selection)==8 + preflight(selection) + if not args.validate_only:convert(args.output,selection) + report=validate(args.output,selection) + package(args.output,report) diff --git a/provenance/generation_code/h_s0_1/grader.py b/provenance/generation_code/h_s0_1/grader.py new file mode 100644 index 0000000000000000000000000000000000000000..f96305d2b7744b5d7dee62a8d3735c4f160dc251 --- /dev/null +++ b/provenance/generation_code/h_s0_1/grader.py @@ -0,0 +1,89 @@ +"""Grader for the pc_gpu scene: the graphics card seated in the PCIe x16 slot. + +Rubric stages (weights and modes live in RUBRIC): + grasped the card has been taken in the weld-on-closure grip (`scene.grasp_held`) — the + scene's own grasp state; a milestone, latched. Also true once the card is + aligned in the slot (a card in the slot was necessarily carried there), so the + rung nests under `aligned`. Under an embodiment with no gripper (the weld + contract disabled, e.g. robot="null") the grasp state does not exist and the + rung reads from that implication alone + aligned the card lined up on the slot — origin within `align_xy` of the seated point, + up axis within `align_axis_deg` of the slot axis, length axis within + `align_yaw_deg` of the slot heading: the scene's own three non-depth seat gates + pressed tab depth below the slot mouth (`slot_mouth_z`, the scene's own `engaged()`) + as a fraction of `seat_depth`, counted only while aligned — so it is 1.0 iff + the scene calls the card seated +Every stage is per env. The rungs nest (seated => aligned => grasped), so progress reaches +1.0 exactly when the card is seated, and for a grader built after the pick as well as one +that watched it. The rear-panel pass-through is NOT a rung: the cutout's geometry is not in +the scene cfg, so it cannot be read from state without an invented tolerance. Success is +the scene's `seated()` per env — depth, xy, tilt AND heading gates — read when the +delivery finishes. +""" + +from __future__ import annotations + +import math + +from robobench.core import BaseGrader +# baked by data_engine init: grade against the LOCAL scene copy (../scene/scene.py), +# exec'd at most once per process under a fixed module key. +import importlib.util as _ilu +import sys as _sys +from pathlib import Path as _Path + +if "datagen_local_scene" not in _sys.modules: + import robobench as _rb + _rb.discover() + _p = _Path(__file__).resolve().parent.parent / "scene" / "scene.py" + _spec = _ilu.spec_from_file_location("datagen_local_scene", _p) + _m = _ilu.module_from_spec(_spec) + _sys.modules["datagen_local_scene"] = _m + _spec.loader.exec_module(_m) +PcGpuAssemblyScene = _sys.modules["datagen_local_scene"].PcGpuAssemblyScene + + +class PcGpuAssemblyGrader(BaseGrader): + """The card seated in its slot — pressed to depth, centred, upright, heading along the slot. + + Ladder: grasped 0.33 · aligned 0.67 · pressed 1.00 — three equal rungs for the three + steps of the task (take the card, line it up on the slot, press it home); the last rung + is a linear ramp of tab depth from the slot mouth (`slot_mouth_z`) to `seat_depth`. + """ + + SCENE = PcGpuAssemblyScene + RUBRIC = (("grasped", 1, "once"), ("aligned", 1), ("pressed", 1)) + scene: PcGpuAssemblyScene + + def setup(self) -> None: + import torch + + # `grasp_held` exists only while the weld contract is live (a gripper on the stage). + self._has_grasp = hasattr(self.scene, "grasp_held") + self._grasped = torch.zeros(self.num_envs, dtype=torch.bool, + device=self.scene.engaged().device) # latch: card ever held + + def check_success(self): + return self.scene.seated() # (num_envs,) + + def _aligned(self): + """(num_envs,) bool: the scene's xy + tilt + heading seat gates, without depth.""" + c = self.scene.cfg + rel = self.scene._card_offset_in_case() # (n, 3), zero at the seated pose — privileged + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self.scene._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self.scene._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return xy_ok & up_ok & yaw_ok + + # ---- rubric stages — each returns a (num_envs,) value in [0, 1] --------------------- + def grasped(self): + if self._has_grasp: + self._grasped |= self.scene.grasp_held.any(dim=1) + return (self._grasped | self._aligned()).float() + + def aligned(self): + return self._aligned().float() + + def pressed(self): + depth = self.scene.engaged() # (n,) tab depth below the slot mouth (m) + return self._aligned() * (depth / self.scene.cfg.seat_depth).clamp(0.0, 1.0) diff --git a/provenance/generation_code/h_s0_1/scene.py b/provenance/generation_code/h_s0_1/scene.py new file mode 100644 index 0000000000000000000000000000000000000000..6b9875f21af8ba405baed9e6ddbdbce958c004c7 --- /dev/null +++ b/provenance/generation_code/h_s0_1/scene.py @@ -0,0 +1,450 @@ +"""PcGpuAssemblyScene — insert a graphics card into the PC's PCIe slot. + +The same gaming-PC case as `pc_motherboard` lies on its side on the table, opening up, motherboard +facing the ceiling — but here the board's PCIe area is the work site. Beside the case lies a loose +RTX 2060 (extracted from the PC model as its own rigid body, backplate down). Goal (carried here, +no task layer): stand the card upright over the primary x16 slot, line its PCB edge up with the +slot, and press it straight down until it seats. + +The case is one kinematic body that never moves — the PC model stays visual-only; its physics is +an invisible fixture inside the case body: a channel whose walls grip the card's 4 mm PCB tab at +0.15 mm/side (flaring to a 1.2 mm/side funnel mouth — idealizing the real slot's spring +contacts, and capping the unscrewed card's gravity roll at ~2 deg), a floor whose top is the +model's own seated tab height, end stops (~1.6 mm play), a flush board plate so a dropped card +rests on the board face, and a REAR I/O PANEL frame around the expansion-slot cutout — so the +card must be placed inside the case, slid rearward until its bracket/ports pass through the +opening, and only then pressed down (a straight vertical drop is physically blocked by the +panel above the cutout, exactly like a real build). The card's origin is its +PCB-tab bottom CENTRE with axes equal to the case's, so the seated pose is just `seat_pos` + +identity orientation in the case frame, and insertion depth is a z difference. + +Heavy imports (isaaclab, pxr) are deferred so importing this module stays app-free. +""" + +from __future__ import annotations + +import math +from dataclasses import dataclass +from pathlib import Path +from robobench.core.assets import asset_path +from typing import TYPE_CHECKING, Any, ClassVar + +import torch + +from robobench.core import GraspWeldContract, SCENES, BaseCfg, BaseScene, SimCfg + +if TYPE_CHECKING: + from isaaclab.assets import RigidObject + + from robobench.core import BaseEnv + + +@dataclass +class PcGpuAssemblySceneCfg(BaseCfg): + """Config for `PcGpuAssemblyScene`. Nothing is locked — a variant is just a copy with a few + fields changed.""" + + # --- the curriculum / difficulty dials ----------------------------------------------- + # The card is "seated" when — in the case's frame — its tab is >= `seat_depth` below the slot + # mouth, its origin is within `align_xy` of the seated point, and its axes are within + # `align_axis_deg` (tilt) / `align_yaw_deg` (heading along the slot) of the case's. The full + # stroke from the slot mouth to the channel floor is 5 mm, so 4 mm separates "seated" from + # "merely resting in the mouth". + seat_depth: float = 0.004 # min tab depth below the slot mouth (m) to count as seated + align_xy: float = 0.003 # max distance (m) of the card origin from the seated point + align_axis_deg: float = 3.0 # max tilt of the card's up axis off the slot axis (deg) + align_yaw_deg: float = 3.0 # max heading error of the card's length axis (deg) + reset_pos_jitter: float = 0.01 # uniform +/- xy jitter for the loose card at reset (m) + # Part friction (static = dynamic), set on every shape at bind. The moving card runs moderately + # slick against a grippier fixed case, so it slides down the channel but holds seat. + card_friction: float = 0.3 + case_friction: float = 0.75 + # Weld-on-closure grasping (the benchmark's auto-weld contract, PhysX + # form — the grasp-weld machinery at the end of this scene class): + # close the fingers squarely across the card's body slab near its top edge and the card welds + # to the hand; open wide to release. Gripper envs only (no-op under robot="null"). + grasp_weld: bool = True + grasp_weld_dist: float = 0.010 # pinch-point-to-grip-band engage radius (m) + + pilot_jitter_x: float = 0.004 + pilot_jitter_y: float = 0.0007 + + # --- structure, reset layout, masses, asset paths (fixed) ------------------------------- + # Seated card origin (its PCB-tab bottom centre) in the case's local frame; orientation seated + # = the case's own axes (identity). Baked into the committed USDs (keep in sync if they change). + seat_pos: tuple[float, float, float] = (-0.01595, 0.0293, 0.0035) + slot_mouth_z: float = 0.0085 # slot top in the case frame: depth datum (5 mm at full seat) + board_top: float = 0.0 # board face height in the case frame (the asset's own origin) + case_lift: float = 0.0289 # board face above the side panel the case lies on + card_mass: float = 1.0 # dual-fan RTX 2060 (kg) + light_intensity: float = 2500.0 + # Loose card start pose: lying backplate-down on the table beside the case (+x side; the case + # spans x < 0.13 and the lying card's tail reaches origin_x - 0.132). + card_init_xy: tuple[float, float] = (0.28, 0.0) # card start xy (table-rel.) + card_init_z: float = 0.0022 # origin height lying backplate-down (backplate plane -2 mm) + card_init_quat: tuple[float, float, float, float] = (0.70711, 0.70711, 0.0, 0.0) # flat + card_contact_offset: float = 0.0001 # well below the 0.15 mm/side channel grip + case_contact_offset: float = 0.0001 # ditto for the slot fixture's walls + # Optional foam holder (a floor pad + two rails flanking the card's 36 mm body slab) that + # presents the card UPRIGHT for a parallel-jaw grasp. The lying default is ungraspable by a + # Franka gripper: flat on its backplate the card's only sub-80 mm dimension (the 36 mm body + # thickness) points UP, so no top-down or side pinch can straddle it. Enable together with an + # upright `card_init_quat` (identity = the seated orientation) and `card_init_z` = the + # holder's floor top; the rails cap the free card's lean at ~3 deg and the pick pulls + # straight up out of them. + card_stand: bool = False + card_stand_gap: float = 0.0025 # rail clearance per side around the body slab (m) + # Selectable work surface (same presets as the sibling scenes). + table: str = "lab_table" # which work surface: "lab_table" | "packing" + surface_z: float | None = None # table-top height (m); None -> the preset's + workbench_pos: tuple[float, float] | None = None # xy the table sits at; None -> preset + workbench_usd: str = "" # empty -> the preset's vendored USD + TABLES: ClassVar[dict[str, dict[str, Any]]] = { + "lab_table": {"usd": ("lab_table", "table_instanceable.usd"), "scale": 1.0, + "orient": (0.70711, 0.0, 0.0, 0.70711), "surface_z": 0.0, "pos": (0.5, 0.0), + "top_offset": 0.0, "height": 1.05, "kinematic": False}, + "packing": {"usd": ("packing_table", "SM_HeavyDutyPackingTable_C02_01_physics.usd"), "scale": 0.01, + "orient": (1.0, 0.0, 0.0, 0.0), "surface_z": 0.994, "pos": (0.0, 0.0), + "top_offset": 0.994, "height": 0.994, "kinematic": True}, + } + # Asset USDs; empty -> the prebuilt assets committed under `assets/`. + asset_dir: str = "" + case_usd: str = "" + card_usd: str = "" + + def __post_init__(self) -> None: + assets = asset_path(Path(__file__).resolve().parents[1] / "assets") + self.asset_dir = self.asset_dir or str(assets) + self.case_usd = self.case_usd or str(Path(self.asset_dir) / "pc" / "pc_case_gpu_assembly_mb.usd") + self.card_usd = self.card_usd or str(Path(self.asset_dir) / "pc" / "gpu_rtx2060.usd") + preset = self.TABLES[self.table] + if self.surface_z is None: + self.surface_z = preset["surface_z"] + if self.workbench_pos is None: + self.workbench_pos = preset["pos"] + self.workbench_usd = self.workbench_usd or str(assets / "props" / preset["usd"][0] / preset["usd"][1]) + + +@SCENES.register("pc_gpu_local") +class PcGpuAssemblyScene(BaseScene): + cfg: PcGpuAssemblySceneCfg + + # Object physics remains nominal in this pilot; L4 uses the recorded noise channel. + PHYSICAL_PARAMS = {'card_mass': None, 'card_friction': None, 'case_friction': None} + VISUAL_PARAMS = {'light_intensity': {'dist': 'choice', 'options': [1600., 2500., 3400.]}} + CAMERAS = {'front': {'eye': (-.1, -1.06, 1.282), 'target': (.42, -.08, .06), + 'focal': 16., 'bands': { + 'eye_x': {'dist': 'uniform', 'lo': -.125, 'hi': -.075}, + 'eye_y': {'dist': 'uniform', 'lo': -1.085, 'hi': -1.035}, + 'target_x': {'dist': 'uniform', 'lo': .405, 'hi': .435}}}} + + def apply_visual_params(self, env, values): + # Render-only light; never touches geometry, contact, or robot control. + from pxr import UsdLux + if 'light_intensity' in values: + prim = env.sim.stage.GetPrimAtPath('/World/light') + UsdLux.LightAPI(prim).GetIntensityAttr().Set(float(values['light_intensity'])) + + # Card-local y extent of the body collision slab (from gpu_rtx2060.usd `/gpu/collision/body`: + # backplate plane -2 mm, fan-shroud plane +32.8 mm around the PCB-tab-centre origin — the + # collider is trimmed to the VISUAL shell). The stand's rails flank THESE faces — the same + # pair a parallel-jaw grasp pinches. + CARD_BODY_Y: ClassVar[tuple[float, float]] = (-0.002, 0.0328) + + def __init__(self, cfg: PcGpuAssemblySceneCfg | None = None) -> None: + super().__init__(cfg or PcGpuAssemblySceneCfg()) + + # ----- assets ------------------------------------------------------------------------------- + def assets(self) -> dict[str, Any]: + """Floor, dome light, table, the PC case lying on it (kinematic, with the invisible slot + fixture), and one loose graphics card. The card loads with the high solver-iteration count + the snug channel needs.""" + import isaaclab.sim as sim_utils + from isaaclab.assets import AssetBaseCfg, RigidObjectCfg + + c = self.cfg + for usd in (c.case_usd, c.card_usd): + if not Path(usd).is_file(): + raise FileNotFoundError( + f"{usd} not found — the pc-gpu assets ship with the repo under " + f"`suites/assembly/assets/`" + ) + preset = c.TABLES[c.table] + wx, wy = c.workbench_pos + table_z = c.surface_z - preset["top_offset"] + ground_z = c.surface_z - preset["height"] + table_spawn = sim_utils.UsdFileCfg(usd_path=c.workbench_usd, scale=(preset["scale"],) * 3) + if preset["kinematic"]: + table_spawn.rigid_props = sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True) + + cx, cy = c.card_init_xy + assets: dict[str, Any] = { + "ground": AssetBaseCfg( + prim_path="/World/ground", + spawn=sim_utils.GroundPlaneCfg(usd_path=str( + asset_path(Path(__file__).resolve().parents[1] / "assets") / "props" / "ground" / "default_ground.usd")), + init_state=AssetBaseCfg.InitialStateCfg(pos=(0.0, 0.0, ground_z)), + ), + "light": AssetBaseCfg( + prim_path="/World/light", + spawn=sim_utils.DomeLightCfg(intensity=c.light_intensity, color=(0.9, 0.9, 0.9)), + ), + "workbench": AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/Table", + init_state=AssetBaseCfg.InitialStateCfg(pos=(wx, wy, table_z), rot=preset["orient"]), + spawn=table_spawn, + ), + # The case: kinematic; the invisible fixture inside it (slot channel + rear-panel + # cutout frame) is what the card mates with. Fixture contact offsets are set here + # (not just authored in the asset) so the 0.15 mm/side channel grip never fights + # speculative contacts. + "case": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Case", + spawn=sim_utils.UsdFileCfg( + usd_path=c.case_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.case_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True), + ), + init_state=RigidObjectCfg.InitialStateCfg(pos=(wx, wy, c.surface_z + c.case_lift)), + ), + # Card contact offset must stay well below the channel grip (0.15 mm/side) or + # speculative contacts choke the fit. + "card": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Card", + spawn=sim_utils.UsdFileCfg( + usd_path=c.card_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.card_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg( + solver_position_iteration_count=192, + solver_velocity_iteration_count=1, + max_depenetration_velocity=0.02, + linear_damping=2.0, + angular_damping=2.0, + ), + mass_props=sim_utils.MassPropertiesCfg(mass=c.card_mass), + ), + init_state=RigidObjectCfg.InitialStateCfg( + pos=(wx + cx, wy + cy, c.surface_z + c.card_init_z), rot=c.card_init_quat + ), + ), + } + if c.card_stand: + # Foam holder for a gripper env: three STATIC boxes (no rigid body). The floor pad's + # top is the card spawn height (`card_init_z` = the tab-bottom plane), the two rails + # flank the body slab's faces at `card_stand_gap` per side. Rail tops stay 35+ mm + # below the pick grip band, so descending open fingers never meet them. + y0, y1 = self.CARD_BODY_Y + mid_y = wy + cy + 0.5 * (y0 + y1) # body-slab mid-plane (the pinch/rail centre) + half_gap = 0.5 * (y1 - y0) + c.card_stand_gap # rail inner face off the mid-plane + rail_h, rail_t = 0.055, 0.008 + foam = sim_utils.PreviewSurfaceCfg(diffuse_color=(0.17, 0.17, 0.2), roughness=0.9) + for name, size, pos in ( + ("card_stand_floor", (0.11, 0.09, c.card_init_z), + (wx + cx, mid_y, c.surface_z + 0.5 * c.card_init_z)), + ("card_stand_rail_pcb", (0.11, rail_t, rail_h), + (wx + cx, mid_y - half_gap - 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ("card_stand_rail_fan", (0.11, rail_t, rail_h), + (wx + cx, mid_y + half_gap + 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ): + assets[name] = AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/" + "".join(p.capitalize() for p in name.split("_")), + spawn=sim_utils.CuboidCfg( + size=size, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=0.001, rest_offset=0.0 + ), + visual_material=foam, + ), + init_state=AssetBaseCfg.InitialStateCfg(pos=pos), + ) + # Immutable visual-only set dressing, clear of the arm/task swept volume. + assets['pilot_parts_box'] = AssetBaseCfg( + prim_path='{ENV_REGEX_NS}/PilotPartsBox', + spawn=sim_utils.CuboidCfg(size=(.075, .075, .045), + visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(.08, .35, .65), roughness=.8)), + init_state=AssetBaseCfg.InitialStateCfg(pos=(.90, .36, c.surface_z+.0225))) + return assets + + def sim_cfg(self) -> SimCfg: + return SimCfg( + dt=1.0 / 120.0, + physx={ + "solver_type": 1, + "bounce_threshold_velocity": 0.2, + "friction_offset_threshold": 0.01, + "friction_correlation_distance": 0.00625, + "gpu_max_rigid_contact_count": 2**23, + "gpu_max_rigid_patch_count": 2**23, + "gpu_collision_stack_size": 2**28, + "gpu_max_num_partitions": 1, + }, + ) + + # ----- lifecycle ---------------------------------------------------------------------------- + + def __getattr__(self, name: str): + # Legacy surface: the grasp contract's state used to live directly on the scene + # (inline machinery era) and existing solutions read it there — forward to the + # composed contract. `__getattr__` only fires for attributes not found normally. + if name.startswith("_gw_") and "grasp_weld" in self.__dict__: + return getattr(self.grasp_weld, name) + raise AttributeError(name) + + def bind(self, env: BaseEnv) -> None: + """Grab the case + card handles, cache env origins, and set the part frictions.""" + super().bind(env) + self.case: RigidObject = env.iscene["case"] + self.card: RigidObject = env.iscene["card"] + self.env_origins = env.iscene.env_origins + self._set_friction(self.case, self.cfg.case_friction) + self._set_friction(self.card, self.cfg.card_friction) + self.grasp_weld = GraspWeldContract(self) # composed, publishes self.grasp_held + self.grasp_weld.bind() + + def grasp_sites(self) -> list: + """One grip band: across the body slab (faces at CARD_BODY_Y, 34.8 mm wide), along the + card's upper length — band centre 15 mm below the shroud's top edge (z 0.1155).""" + y = 0.5 * (self.CARD_BODY_Y[0] + self.CARD_BODY_Y[1]) + return [("card", self.card, (-0.045, y, 0.1005), (0.045, y, 0.1005), (0.030, 0.039))] + + def post_step(self, env_ids: torch.Tensor | None = None) -> None: + """Reconcile the weld-on-closure grasp contract every physics substep.""" + self.grasp_weld.step() + + def _set_friction(self, asset, value: float) -> None: + """Overwrite the static + dynamic friction on every shape of `asset` (across all envs).""" + mats = asset.root_physx_view.get_material_properties() + mats[..., 0:2] = value # [static, dynamic, restitution] + asset.root_physx_view.set_material_properties(mats, torch.arange(self.env.num_envs, device="cpu")) + + def reset(self, env_ids: torch.Tensor) -> None: + """Fresh, unassembled start: the case pinned at spawn, the card lying backplate-down on + the table beside it, with xy jitter.""" + c = self.cfg + dev = self.env.device + m = len(env_ids) + origin = self.env_origins[env_ids] # (m, 3) + wx, wy = c.workbench_pos + cx, cy = c.card_init_xy + + st = torch.zeros(m, 13, device=dev) + st[:, 0:3] = origin + torch.tensor((wx + cx, wy + cy, c.surface_z + c.card_init_z), device=dev) + st[:, 0:2] += (torch.rand(m, 2, device=dev) * 2 - 1) * c.reset_pos_jitter + # Small in-holder variation: below rail clearance; no case/slot changes. + st[:, :2] += (torch.rand(m, 2, device=dev)*2-1) * torch.tensor( + [c.pilot_jitter_x, c.pilot_jitter_y], device=dev) + st[:, 3:7] = torch.tensor(c.card_init_quat, device=dev) + self.card.write_root_state_to_sim(st, env_ids) + self.grasp_weld.release_all(env_ids) + + # ----- state (full, restorable) ------------------------------------------------------------- + def get_state(self, env_ids: torch.Tensor) -> dict[str, Any]: + """Restorable scene state: world root states (13) of the case and the card, plus the + grasp-weld holds.""" + return { + "case": self.case.data.root_state_w[env_ids].clone(), + "card": self.card.data.root_state_w[env_ids].clone(), + **self.grasp_weld.state(env_ids), + } + + def set_state(self, state: dict[str, Any], env_ids: torch.Tensor) -> None: + """Restore what `get_state` returned. The card's insertion depth is fully captured by its + root state, so the channel holds it on restore.""" + self.case.write_root_pose_to_sim(state["case"][:, 0:7], env_ids) + self.card.write_root_state_to_sim(state["card"], env_ids) + self.grasp_weld.restore(state, env_ids) + + # ----- description -------------------------------------------------------------------------- + def describe(self) -> str: + if self.cfg.card_stand: + card = ( + "Beside the case a loose graphics card stands upright in a foam holder, already " + "in its installation orientation.\nGoal: grip the card by its top edge, lift it " + "straight out of the holder, " + ) + else: + card = ( + "Beside the case lies a loose graphics card, backplate down.\nGoal: lift the " + "card upright (fans toward the case front), " + ) + return ( + "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard " + "facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O " + f"panel has an open expansion-slot cutout. {card}" + "lower it into the case with its I/O bracket just forward of the rear panel, slide " + "it rearward until the bracket and ports pass through the cutout, line its PCB edge " + "connector up with the x16 slot, and press it straight down until it bottoms out. " + "A seated card stays put on its own. The task is complete once the card is fully " + "seated." + + " A fixed blue parts box decorates the far corner, outside the task volume." + + ( + " The card holds in a firm pinch: close the fingers squarely across its body " + "slab near the top edge and the grip locks; open wide to release." + if self.cfg.grasp_weld + else "" + ) + ) + + # ----- progress (public: seated()/engaged(); reads how far the assembly has got) ------------- + def engaged(self) -> torch.Tensor: + """Tab depth below the slot mouth, shape (num_envs,), in metres (negative = still above + the slot). The card bottoms out on the channel floor at 0.005 depth.""" + rel = self._card_offset_in_case() # (n, 3), zero at the seated pose + return (self.cfg.slot_mouth_z - self.cfg.seat_pos[2]) - rel[:, 2] + + def seated(self) -> torch.Tensor: + """Whether the card is seated in the slot, shape (num_envs,): pressed down to `seat_depth` + below the mouth, within `align_xy` of the seated point, and aligned in tilt AND heading.""" + c = self.cfg + rel = self._card_offset_in_case() # (n, 3) + depth_ok = self.engaged() >= c.seat_depth + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return depth_ok & xy_ok & up_ok & yaw_ok + + def success(self) -> torch.Tensor: + """(N,) bool: the card seated in its slot — this scene's assembled state + (scene-level success alias, matching the other suites' surface).""" + return self.seated() + + def _card_offset_in_case(self) -> torch.Tensor: + """The card origin's offset from the seated point, in the case's local frame, shape + (num_envs, 3). Zero means the card origin sits exactly at the seated pose.""" + from isaaclab.utils.math import quat_apply_inverse + + rel = quat_apply_inverse( + self.case.data.root_quat_w, self.card.data.root_pos_w - self.case.data.root_pos_w + ) + return rel - torch.tensor(self.cfg.seat_pos, device=rel.device) + + def _axis_cos(self, axis: int) -> torch.Tensor: + """cos of the angle between the card's and the case's local `axis` (0=x: heading along the + slot, 2=z: insertion axis), shape (num_envs,). Seated orientation = the case's own axes.""" + from isaaclab.utils.math import quat_apply + + e = torch.zeros(3, device=self.env.device) + e[axis] = 1.0 + e = e.expand(self.env.num_envs, 3) + case_ax = quat_apply(self.case.data.root_quat_w, e) + card_ax = quat_apply(self.card.data.root_quat_w, e) + return (card_ax * case_ax).sum(dim=-1) + + # Grasp-weld contract: composed `GraspWeldContract` (robobench.core.grasp_weld), + # created in `bind()`; this scene supplies the part-side `grasp_sites()`. + # Grasp-weld contract constants — the scene's public knobs (solutions read these off the + # scene, e.g. `scene.GRASP_PINCH_OFFSET`); the composed GraspWeldContract consumes them. + GRASP_HAND_BODY: ClassVar[str] = "panda_hand" + GRASP_FINGER_JOINTS: ClassVar[str] = "panda_finger_joint.*" + GRASP_PINCH_OFFSET: ClassVar[float] = 0.1034 # hand origin -> finger-pad centre, along approach + GRASP_POOL: ClassVar[int] = 8 # engages per (env, site) per run; exhausted -> warn, no weld + GRASP_STALL: ClassVar[float] = 0.01 # max |finger vel| sum (m/s): fingers stopped ON the part + GRASP_DEBOUNCE: ClassVar[int] = 8 # consecutive qualifying substeps before the weld engages + GRASP_RELEASE_MARGIN: ClassVar[float] = 0.008 # release at window-top + this (m), hysteresis + diff --git a/provenance/generation_code/h_s0_1/strategy/SUMMARY.txt b/provenance/generation_code/h_s0_1/strategy/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..ccb6cf2dd81a73bd05afac20479db7cab4d69753 --- /dev/null +++ b/provenance/generation_code/h_s0_1/strategy/SUMMARY.txt @@ -0,0 +1 @@ +Base state-feedback program; Original central grasp and direct high transfer. DART offered only during high free-space transport. Initially UNTESTED; see pilot_report.json. diff --git a/provenance/generation_code/h_s0_1/strategy/meta.json b/provenance/generation_code/h_s0_1/strategy/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..34a4c452a7c51f6599f1e12310fa173e8f118bac --- /dev/null +++ b/provenance/generation_code/h_s0_1/strategy/meta.json @@ -0,0 +1,9 @@ +{ + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "batches": [ + "p01_scene" + ], + "refreshed": "2026-10-12T11:18:52+00:00" +} diff --git a/provenance/generation_code/h_s0_1/strategy/parameters.json b/provenance/generation_code/h_s0_1/strategy/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/h_s0_1/strategy/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/h_s0_1/strategy/solve.py b/provenance/generation_code/h_s0_1/strategy/solve.py new file mode 100644 index 0000000000000000000000000000000000000000..08f2e05206e3d9cf1ce2c68c5b1efeec47cfb3a0 --- /dev/null +++ b/provenance/generation_code/h_s0_1/strategy/solve.py @@ -0,0 +1,173 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([0,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/generation_code/h_s0_2/grader.py b/provenance/generation_code/h_s0_2/grader.py new file mode 100644 index 0000000000000000000000000000000000000000..f96305d2b7744b5d7dee62a8d3735c4f160dc251 --- /dev/null +++ b/provenance/generation_code/h_s0_2/grader.py @@ -0,0 +1,89 @@ +"""Grader for the pc_gpu scene: the graphics card seated in the PCIe x16 slot. + +Rubric stages (weights and modes live in RUBRIC): + grasped the card has been taken in the weld-on-closure grip (`scene.grasp_held`) — the + scene's own grasp state; a milestone, latched. Also true once the card is + aligned in the slot (a card in the slot was necessarily carried there), so the + rung nests under `aligned`. Under an embodiment with no gripper (the weld + contract disabled, e.g. robot="null") the grasp state does not exist and the + rung reads from that implication alone + aligned the card lined up on the slot — origin within `align_xy` of the seated point, + up axis within `align_axis_deg` of the slot axis, length axis within + `align_yaw_deg` of the slot heading: the scene's own three non-depth seat gates + pressed tab depth below the slot mouth (`slot_mouth_z`, the scene's own `engaged()`) + as a fraction of `seat_depth`, counted only while aligned — so it is 1.0 iff + the scene calls the card seated +Every stage is per env. The rungs nest (seated => aligned => grasped), so progress reaches +1.0 exactly when the card is seated, and for a grader built after the pick as well as one +that watched it. The rear-panel pass-through is NOT a rung: the cutout's geometry is not in +the scene cfg, so it cannot be read from state without an invented tolerance. Success is +the scene's `seated()` per env — depth, xy, tilt AND heading gates — read when the +delivery finishes. +""" + +from __future__ import annotations + +import math + +from robobench.core import BaseGrader +# baked by data_engine init: grade against the LOCAL scene copy (../scene/scene.py), +# exec'd at most once per process under a fixed module key. +import importlib.util as _ilu +import sys as _sys +from pathlib import Path as _Path + +if "datagen_local_scene" not in _sys.modules: + import robobench as _rb + _rb.discover() + _p = _Path(__file__).resolve().parent.parent / "scene" / "scene.py" + _spec = _ilu.spec_from_file_location("datagen_local_scene", _p) + _m = _ilu.module_from_spec(_spec) + _sys.modules["datagen_local_scene"] = _m + _spec.loader.exec_module(_m) +PcGpuAssemblyScene = _sys.modules["datagen_local_scene"].PcGpuAssemblyScene + + +class PcGpuAssemblyGrader(BaseGrader): + """The card seated in its slot — pressed to depth, centred, upright, heading along the slot. + + Ladder: grasped 0.33 · aligned 0.67 · pressed 1.00 — three equal rungs for the three + steps of the task (take the card, line it up on the slot, press it home); the last rung + is a linear ramp of tab depth from the slot mouth (`slot_mouth_z`) to `seat_depth`. + """ + + SCENE = PcGpuAssemblyScene + RUBRIC = (("grasped", 1, "once"), ("aligned", 1), ("pressed", 1)) + scene: PcGpuAssemblyScene + + def setup(self) -> None: + import torch + + # `grasp_held` exists only while the weld contract is live (a gripper on the stage). + self._has_grasp = hasattr(self.scene, "grasp_held") + self._grasped = torch.zeros(self.num_envs, dtype=torch.bool, + device=self.scene.engaged().device) # latch: card ever held + + def check_success(self): + return self.scene.seated() # (num_envs,) + + def _aligned(self): + """(num_envs,) bool: the scene's xy + tilt + heading seat gates, without depth.""" + c = self.scene.cfg + rel = self.scene._card_offset_in_case() # (n, 3), zero at the seated pose — privileged + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self.scene._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self.scene._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return xy_ok & up_ok & yaw_ok + + # ---- rubric stages — each returns a (num_envs,) value in [0, 1] --------------------- + def grasped(self): + if self._has_grasp: + self._grasped |= self.scene.grasp_held.any(dim=1) + return (self._grasped | self._aligned()).float() + + def aligned(self): + return self._aligned().float() + + def pressed(self): + depth = self.scene.engaged() # (n,) tab depth below the slot mouth (m) + return self._aligned() * (depth / self.scene.cfg.seat_depth).clamp(0.0, 1.0) diff --git a/provenance/generation_code/h_s0_2/scene.py b/provenance/generation_code/h_s0_2/scene.py new file mode 100644 index 0000000000000000000000000000000000000000..6b9875f21af8ba405baed9e6ddbdbce958c004c7 --- /dev/null +++ b/provenance/generation_code/h_s0_2/scene.py @@ -0,0 +1,450 @@ +"""PcGpuAssemblyScene — insert a graphics card into the PC's PCIe slot. + +The same gaming-PC case as `pc_motherboard` lies on its side on the table, opening up, motherboard +facing the ceiling — but here the board's PCIe area is the work site. Beside the case lies a loose +RTX 2060 (extracted from the PC model as its own rigid body, backplate down). Goal (carried here, +no task layer): stand the card upright over the primary x16 slot, line its PCB edge up with the +slot, and press it straight down until it seats. + +The case is one kinematic body that never moves — the PC model stays visual-only; its physics is +an invisible fixture inside the case body: a channel whose walls grip the card's 4 mm PCB tab at +0.15 mm/side (flaring to a 1.2 mm/side funnel mouth — idealizing the real slot's spring +contacts, and capping the unscrewed card's gravity roll at ~2 deg), a floor whose top is the +model's own seated tab height, end stops (~1.6 mm play), a flush board plate so a dropped card +rests on the board face, and a REAR I/O PANEL frame around the expansion-slot cutout — so the +card must be placed inside the case, slid rearward until its bracket/ports pass through the +opening, and only then pressed down (a straight vertical drop is physically blocked by the +panel above the cutout, exactly like a real build). The card's origin is its +PCB-tab bottom CENTRE with axes equal to the case's, so the seated pose is just `seat_pos` + +identity orientation in the case frame, and insertion depth is a z difference. + +Heavy imports (isaaclab, pxr) are deferred so importing this module stays app-free. +""" + +from __future__ import annotations + +import math +from dataclasses import dataclass +from pathlib import Path +from robobench.core.assets import asset_path +from typing import TYPE_CHECKING, Any, ClassVar + +import torch + +from robobench.core import GraspWeldContract, SCENES, BaseCfg, BaseScene, SimCfg + +if TYPE_CHECKING: + from isaaclab.assets import RigidObject + + from robobench.core import BaseEnv + + +@dataclass +class PcGpuAssemblySceneCfg(BaseCfg): + """Config for `PcGpuAssemblyScene`. Nothing is locked — a variant is just a copy with a few + fields changed.""" + + # --- the curriculum / difficulty dials ----------------------------------------------- + # The card is "seated" when — in the case's frame — its tab is >= `seat_depth` below the slot + # mouth, its origin is within `align_xy` of the seated point, and its axes are within + # `align_axis_deg` (tilt) / `align_yaw_deg` (heading along the slot) of the case's. The full + # stroke from the slot mouth to the channel floor is 5 mm, so 4 mm separates "seated" from + # "merely resting in the mouth". + seat_depth: float = 0.004 # min tab depth below the slot mouth (m) to count as seated + align_xy: float = 0.003 # max distance (m) of the card origin from the seated point + align_axis_deg: float = 3.0 # max tilt of the card's up axis off the slot axis (deg) + align_yaw_deg: float = 3.0 # max heading error of the card's length axis (deg) + reset_pos_jitter: float = 0.01 # uniform +/- xy jitter for the loose card at reset (m) + # Part friction (static = dynamic), set on every shape at bind. The moving card runs moderately + # slick against a grippier fixed case, so it slides down the channel but holds seat. + card_friction: float = 0.3 + case_friction: float = 0.75 + # Weld-on-closure grasping (the benchmark's auto-weld contract, PhysX + # form — the grasp-weld machinery at the end of this scene class): + # close the fingers squarely across the card's body slab near its top edge and the card welds + # to the hand; open wide to release. Gripper envs only (no-op under robot="null"). + grasp_weld: bool = True + grasp_weld_dist: float = 0.010 # pinch-point-to-grip-band engage radius (m) + + pilot_jitter_x: float = 0.004 + pilot_jitter_y: float = 0.0007 + + # --- structure, reset layout, masses, asset paths (fixed) ------------------------------- + # Seated card origin (its PCB-tab bottom centre) in the case's local frame; orientation seated + # = the case's own axes (identity). Baked into the committed USDs (keep in sync if they change). + seat_pos: tuple[float, float, float] = (-0.01595, 0.0293, 0.0035) + slot_mouth_z: float = 0.0085 # slot top in the case frame: depth datum (5 mm at full seat) + board_top: float = 0.0 # board face height in the case frame (the asset's own origin) + case_lift: float = 0.0289 # board face above the side panel the case lies on + card_mass: float = 1.0 # dual-fan RTX 2060 (kg) + light_intensity: float = 2500.0 + # Loose card start pose: lying backplate-down on the table beside the case (+x side; the case + # spans x < 0.13 and the lying card's tail reaches origin_x - 0.132). + card_init_xy: tuple[float, float] = (0.28, 0.0) # card start xy (table-rel.) + card_init_z: float = 0.0022 # origin height lying backplate-down (backplate plane -2 mm) + card_init_quat: tuple[float, float, float, float] = (0.70711, 0.70711, 0.0, 0.0) # flat + card_contact_offset: float = 0.0001 # well below the 0.15 mm/side channel grip + case_contact_offset: float = 0.0001 # ditto for the slot fixture's walls + # Optional foam holder (a floor pad + two rails flanking the card's 36 mm body slab) that + # presents the card UPRIGHT for a parallel-jaw grasp. The lying default is ungraspable by a + # Franka gripper: flat on its backplate the card's only sub-80 mm dimension (the 36 mm body + # thickness) points UP, so no top-down or side pinch can straddle it. Enable together with an + # upright `card_init_quat` (identity = the seated orientation) and `card_init_z` = the + # holder's floor top; the rails cap the free card's lean at ~3 deg and the pick pulls + # straight up out of them. + card_stand: bool = False + card_stand_gap: float = 0.0025 # rail clearance per side around the body slab (m) + # Selectable work surface (same presets as the sibling scenes). + table: str = "lab_table" # which work surface: "lab_table" | "packing" + surface_z: float | None = None # table-top height (m); None -> the preset's + workbench_pos: tuple[float, float] | None = None # xy the table sits at; None -> preset + workbench_usd: str = "" # empty -> the preset's vendored USD + TABLES: ClassVar[dict[str, dict[str, Any]]] = { + "lab_table": {"usd": ("lab_table", "table_instanceable.usd"), "scale": 1.0, + "orient": (0.70711, 0.0, 0.0, 0.70711), "surface_z": 0.0, "pos": (0.5, 0.0), + "top_offset": 0.0, "height": 1.05, "kinematic": False}, + "packing": {"usd": ("packing_table", "SM_HeavyDutyPackingTable_C02_01_physics.usd"), "scale": 0.01, + "orient": (1.0, 0.0, 0.0, 0.0), "surface_z": 0.994, "pos": (0.0, 0.0), + "top_offset": 0.994, "height": 0.994, "kinematic": True}, + } + # Asset USDs; empty -> the prebuilt assets committed under `assets/`. + asset_dir: str = "" + case_usd: str = "" + card_usd: str = "" + + def __post_init__(self) -> None: + assets = asset_path(Path(__file__).resolve().parents[1] / "assets") + self.asset_dir = self.asset_dir or str(assets) + self.case_usd = self.case_usd or str(Path(self.asset_dir) / "pc" / "pc_case_gpu_assembly_mb.usd") + self.card_usd = self.card_usd or str(Path(self.asset_dir) / "pc" / "gpu_rtx2060.usd") + preset = self.TABLES[self.table] + if self.surface_z is None: + self.surface_z = preset["surface_z"] + if self.workbench_pos is None: + self.workbench_pos = preset["pos"] + self.workbench_usd = self.workbench_usd or str(assets / "props" / preset["usd"][0] / preset["usd"][1]) + + +@SCENES.register("pc_gpu_local") +class PcGpuAssemblyScene(BaseScene): + cfg: PcGpuAssemblySceneCfg + + # Object physics remains nominal in this pilot; L4 uses the recorded noise channel. + PHYSICAL_PARAMS = {'card_mass': None, 'card_friction': None, 'case_friction': None} + VISUAL_PARAMS = {'light_intensity': {'dist': 'choice', 'options': [1600., 2500., 3400.]}} + CAMERAS = {'front': {'eye': (-.1, -1.06, 1.282), 'target': (.42, -.08, .06), + 'focal': 16., 'bands': { + 'eye_x': {'dist': 'uniform', 'lo': -.125, 'hi': -.075}, + 'eye_y': {'dist': 'uniform', 'lo': -1.085, 'hi': -1.035}, + 'target_x': {'dist': 'uniform', 'lo': .405, 'hi': .435}}}} + + def apply_visual_params(self, env, values): + # Render-only light; never touches geometry, contact, or robot control. + from pxr import UsdLux + if 'light_intensity' in values: + prim = env.sim.stage.GetPrimAtPath('/World/light') + UsdLux.LightAPI(prim).GetIntensityAttr().Set(float(values['light_intensity'])) + + # Card-local y extent of the body collision slab (from gpu_rtx2060.usd `/gpu/collision/body`: + # backplate plane -2 mm, fan-shroud plane +32.8 mm around the PCB-tab-centre origin — the + # collider is trimmed to the VISUAL shell). The stand's rails flank THESE faces — the same + # pair a parallel-jaw grasp pinches. + CARD_BODY_Y: ClassVar[tuple[float, float]] = (-0.002, 0.0328) + + def __init__(self, cfg: PcGpuAssemblySceneCfg | None = None) -> None: + super().__init__(cfg or PcGpuAssemblySceneCfg()) + + # ----- assets ------------------------------------------------------------------------------- + def assets(self) -> dict[str, Any]: + """Floor, dome light, table, the PC case lying on it (kinematic, with the invisible slot + fixture), and one loose graphics card. The card loads with the high solver-iteration count + the snug channel needs.""" + import isaaclab.sim as sim_utils + from isaaclab.assets import AssetBaseCfg, RigidObjectCfg + + c = self.cfg + for usd in (c.case_usd, c.card_usd): + if not Path(usd).is_file(): + raise FileNotFoundError( + f"{usd} not found — the pc-gpu assets ship with the repo under " + f"`suites/assembly/assets/`" + ) + preset = c.TABLES[c.table] + wx, wy = c.workbench_pos + table_z = c.surface_z - preset["top_offset"] + ground_z = c.surface_z - preset["height"] + table_spawn = sim_utils.UsdFileCfg(usd_path=c.workbench_usd, scale=(preset["scale"],) * 3) + if preset["kinematic"]: + table_spawn.rigid_props = sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True) + + cx, cy = c.card_init_xy + assets: dict[str, Any] = { + "ground": AssetBaseCfg( + prim_path="/World/ground", + spawn=sim_utils.GroundPlaneCfg(usd_path=str( + asset_path(Path(__file__).resolve().parents[1] / "assets") / "props" / "ground" / "default_ground.usd")), + init_state=AssetBaseCfg.InitialStateCfg(pos=(0.0, 0.0, ground_z)), + ), + "light": AssetBaseCfg( + prim_path="/World/light", + spawn=sim_utils.DomeLightCfg(intensity=c.light_intensity, color=(0.9, 0.9, 0.9)), + ), + "workbench": AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/Table", + init_state=AssetBaseCfg.InitialStateCfg(pos=(wx, wy, table_z), rot=preset["orient"]), + spawn=table_spawn, + ), + # The case: kinematic; the invisible fixture inside it (slot channel + rear-panel + # cutout frame) is what the card mates with. Fixture contact offsets are set here + # (not just authored in the asset) so the 0.15 mm/side channel grip never fights + # speculative contacts. + "case": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Case", + spawn=sim_utils.UsdFileCfg( + usd_path=c.case_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.case_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True), + ), + init_state=RigidObjectCfg.InitialStateCfg(pos=(wx, wy, c.surface_z + c.case_lift)), + ), + # Card contact offset must stay well below the channel grip (0.15 mm/side) or + # speculative contacts choke the fit. + "card": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Card", + spawn=sim_utils.UsdFileCfg( + usd_path=c.card_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.card_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg( + solver_position_iteration_count=192, + solver_velocity_iteration_count=1, + max_depenetration_velocity=0.02, + linear_damping=2.0, + angular_damping=2.0, + ), + mass_props=sim_utils.MassPropertiesCfg(mass=c.card_mass), + ), + init_state=RigidObjectCfg.InitialStateCfg( + pos=(wx + cx, wy + cy, c.surface_z + c.card_init_z), rot=c.card_init_quat + ), + ), + } + if c.card_stand: + # Foam holder for a gripper env: three STATIC boxes (no rigid body). The floor pad's + # top is the card spawn height (`card_init_z` = the tab-bottom plane), the two rails + # flank the body slab's faces at `card_stand_gap` per side. Rail tops stay 35+ mm + # below the pick grip band, so descending open fingers never meet them. + y0, y1 = self.CARD_BODY_Y + mid_y = wy + cy + 0.5 * (y0 + y1) # body-slab mid-plane (the pinch/rail centre) + half_gap = 0.5 * (y1 - y0) + c.card_stand_gap # rail inner face off the mid-plane + rail_h, rail_t = 0.055, 0.008 + foam = sim_utils.PreviewSurfaceCfg(diffuse_color=(0.17, 0.17, 0.2), roughness=0.9) + for name, size, pos in ( + ("card_stand_floor", (0.11, 0.09, c.card_init_z), + (wx + cx, mid_y, c.surface_z + 0.5 * c.card_init_z)), + ("card_stand_rail_pcb", (0.11, rail_t, rail_h), + (wx + cx, mid_y - half_gap - 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ("card_stand_rail_fan", (0.11, rail_t, rail_h), + (wx + cx, mid_y + half_gap + 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ): + assets[name] = AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/" + "".join(p.capitalize() for p in name.split("_")), + spawn=sim_utils.CuboidCfg( + size=size, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=0.001, rest_offset=0.0 + ), + visual_material=foam, + ), + init_state=AssetBaseCfg.InitialStateCfg(pos=pos), + ) + # Immutable visual-only set dressing, clear of the arm/task swept volume. + assets['pilot_parts_box'] = AssetBaseCfg( + prim_path='{ENV_REGEX_NS}/PilotPartsBox', + spawn=sim_utils.CuboidCfg(size=(.075, .075, .045), + visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(.08, .35, .65), roughness=.8)), + init_state=AssetBaseCfg.InitialStateCfg(pos=(.90, .36, c.surface_z+.0225))) + return assets + + def sim_cfg(self) -> SimCfg: + return SimCfg( + dt=1.0 / 120.0, + physx={ + "solver_type": 1, + "bounce_threshold_velocity": 0.2, + "friction_offset_threshold": 0.01, + "friction_correlation_distance": 0.00625, + "gpu_max_rigid_contact_count": 2**23, + "gpu_max_rigid_patch_count": 2**23, + "gpu_collision_stack_size": 2**28, + "gpu_max_num_partitions": 1, + }, + ) + + # ----- lifecycle ---------------------------------------------------------------------------- + + def __getattr__(self, name: str): + # Legacy surface: the grasp contract's state used to live directly on the scene + # (inline machinery era) and existing solutions read it there — forward to the + # composed contract. `__getattr__` only fires for attributes not found normally. + if name.startswith("_gw_") and "grasp_weld" in self.__dict__: + return getattr(self.grasp_weld, name) + raise AttributeError(name) + + def bind(self, env: BaseEnv) -> None: + """Grab the case + card handles, cache env origins, and set the part frictions.""" + super().bind(env) + self.case: RigidObject = env.iscene["case"] + self.card: RigidObject = env.iscene["card"] + self.env_origins = env.iscene.env_origins + self._set_friction(self.case, self.cfg.case_friction) + self._set_friction(self.card, self.cfg.card_friction) + self.grasp_weld = GraspWeldContract(self) # composed, publishes self.grasp_held + self.grasp_weld.bind() + + def grasp_sites(self) -> list: + """One grip band: across the body slab (faces at CARD_BODY_Y, 34.8 mm wide), along the + card's upper length — band centre 15 mm below the shroud's top edge (z 0.1155).""" + y = 0.5 * (self.CARD_BODY_Y[0] + self.CARD_BODY_Y[1]) + return [("card", self.card, (-0.045, y, 0.1005), (0.045, y, 0.1005), (0.030, 0.039))] + + def post_step(self, env_ids: torch.Tensor | None = None) -> None: + """Reconcile the weld-on-closure grasp contract every physics substep.""" + self.grasp_weld.step() + + def _set_friction(self, asset, value: float) -> None: + """Overwrite the static + dynamic friction on every shape of `asset` (across all envs).""" + mats = asset.root_physx_view.get_material_properties() + mats[..., 0:2] = value # [static, dynamic, restitution] + asset.root_physx_view.set_material_properties(mats, torch.arange(self.env.num_envs, device="cpu")) + + def reset(self, env_ids: torch.Tensor) -> None: + """Fresh, unassembled start: the case pinned at spawn, the card lying backplate-down on + the table beside it, with xy jitter.""" + c = self.cfg + dev = self.env.device + m = len(env_ids) + origin = self.env_origins[env_ids] # (m, 3) + wx, wy = c.workbench_pos + cx, cy = c.card_init_xy + + st = torch.zeros(m, 13, device=dev) + st[:, 0:3] = origin + torch.tensor((wx + cx, wy + cy, c.surface_z + c.card_init_z), device=dev) + st[:, 0:2] += (torch.rand(m, 2, device=dev) * 2 - 1) * c.reset_pos_jitter + # Small in-holder variation: below rail clearance; no case/slot changes. + st[:, :2] += (torch.rand(m, 2, device=dev)*2-1) * torch.tensor( + [c.pilot_jitter_x, c.pilot_jitter_y], device=dev) + st[:, 3:7] = torch.tensor(c.card_init_quat, device=dev) + self.card.write_root_state_to_sim(st, env_ids) + self.grasp_weld.release_all(env_ids) + + # ----- state (full, restorable) ------------------------------------------------------------- + def get_state(self, env_ids: torch.Tensor) -> dict[str, Any]: + """Restorable scene state: world root states (13) of the case and the card, plus the + grasp-weld holds.""" + return { + "case": self.case.data.root_state_w[env_ids].clone(), + "card": self.card.data.root_state_w[env_ids].clone(), + **self.grasp_weld.state(env_ids), + } + + def set_state(self, state: dict[str, Any], env_ids: torch.Tensor) -> None: + """Restore what `get_state` returned. The card's insertion depth is fully captured by its + root state, so the channel holds it on restore.""" + self.case.write_root_pose_to_sim(state["case"][:, 0:7], env_ids) + self.card.write_root_state_to_sim(state["card"], env_ids) + self.grasp_weld.restore(state, env_ids) + + # ----- description -------------------------------------------------------------------------- + def describe(self) -> str: + if self.cfg.card_stand: + card = ( + "Beside the case a loose graphics card stands upright in a foam holder, already " + "in its installation orientation.\nGoal: grip the card by its top edge, lift it " + "straight out of the holder, " + ) + else: + card = ( + "Beside the case lies a loose graphics card, backplate down.\nGoal: lift the " + "card upright (fans toward the case front), " + ) + return ( + "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard " + "facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O " + f"panel has an open expansion-slot cutout. {card}" + "lower it into the case with its I/O bracket just forward of the rear panel, slide " + "it rearward until the bracket and ports pass through the cutout, line its PCB edge " + "connector up with the x16 slot, and press it straight down until it bottoms out. " + "A seated card stays put on its own. The task is complete once the card is fully " + "seated." + + " A fixed blue parts box decorates the far corner, outside the task volume." + + ( + " The card holds in a firm pinch: close the fingers squarely across its body " + "slab near the top edge and the grip locks; open wide to release." + if self.cfg.grasp_weld + else "" + ) + ) + + # ----- progress (public: seated()/engaged(); reads how far the assembly has got) ------------- + def engaged(self) -> torch.Tensor: + """Tab depth below the slot mouth, shape (num_envs,), in metres (negative = still above + the slot). The card bottoms out on the channel floor at 0.005 depth.""" + rel = self._card_offset_in_case() # (n, 3), zero at the seated pose + return (self.cfg.slot_mouth_z - self.cfg.seat_pos[2]) - rel[:, 2] + + def seated(self) -> torch.Tensor: + """Whether the card is seated in the slot, shape (num_envs,): pressed down to `seat_depth` + below the mouth, within `align_xy` of the seated point, and aligned in tilt AND heading.""" + c = self.cfg + rel = self._card_offset_in_case() # (n, 3) + depth_ok = self.engaged() >= c.seat_depth + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return depth_ok & xy_ok & up_ok & yaw_ok + + def success(self) -> torch.Tensor: + """(N,) bool: the card seated in its slot — this scene's assembled state + (scene-level success alias, matching the other suites' surface).""" + return self.seated() + + def _card_offset_in_case(self) -> torch.Tensor: + """The card origin's offset from the seated point, in the case's local frame, shape + (num_envs, 3). Zero means the card origin sits exactly at the seated pose.""" + from isaaclab.utils.math import quat_apply_inverse + + rel = quat_apply_inverse( + self.case.data.root_quat_w, self.card.data.root_pos_w - self.case.data.root_pos_w + ) + return rel - torch.tensor(self.cfg.seat_pos, device=rel.device) + + def _axis_cos(self, axis: int) -> torch.Tensor: + """cos of the angle between the card's and the case's local `axis` (0=x: heading along the + slot, 2=z: insertion axis), shape (num_envs,). Seated orientation = the case's own axes.""" + from isaaclab.utils.math import quat_apply + + e = torch.zeros(3, device=self.env.device) + e[axis] = 1.0 + e = e.expand(self.env.num_envs, 3) + case_ax = quat_apply(self.case.data.root_quat_w, e) + card_ax = quat_apply(self.card.data.root_quat_w, e) + return (card_ax * case_ax).sum(dim=-1) + + # Grasp-weld contract: composed `GraspWeldContract` (robobench.core.grasp_weld), + # created in `bind()`; this scene supplies the part-side `grasp_sites()`. + # Grasp-weld contract constants — the scene's public knobs (solutions read these off the + # scene, e.g. `scene.GRASP_PINCH_OFFSET`); the composed GraspWeldContract consumes them. + GRASP_HAND_BODY: ClassVar[str] = "panda_hand" + GRASP_FINGER_JOINTS: ClassVar[str] = "panda_finger_joint.*" + GRASP_PINCH_OFFSET: ClassVar[float] = 0.1034 # hand origin -> finger-pad centre, along approach + GRASP_POOL: ClassVar[int] = 8 # engages per (env, site) per run; exhausted -> warn, no weld + GRASP_STALL: ClassVar[float] = 0.01 # max |finger vel| sum (m/s): fingers stopped ON the part + GRASP_DEBOUNCE: ClassVar[int] = 8 # consecutive qualifying substeps before the weld engages + GRASP_RELEASE_MARGIN: ClassVar[float] = 0.008 # release at window-top + this (m), hysteresis + diff --git a/provenance/generation_code/h_s0_2/strategy/SUMMARY.txt b/provenance/generation_code/h_s0_2/strategy/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..ccb6cf2dd81a73bd05afac20479db7cab4d69753 --- /dev/null +++ b/provenance/generation_code/h_s0_2/strategy/SUMMARY.txt @@ -0,0 +1 @@ +Base state-feedback program; Original central grasp and direct high transfer. DART offered only during high free-space transport. Initially UNTESTED; see pilot_report.json. diff --git a/provenance/generation_code/h_s0_2/strategy/meta.json b/provenance/generation_code/h_s0_2/strategy/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..34a4c452a7c51f6599f1e12310fa173e8f118bac --- /dev/null +++ b/provenance/generation_code/h_s0_2/strategy/meta.json @@ -0,0 +1,9 @@ +{ + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "batches": [ + "p01_scene" + ], + "refreshed": "2026-10-12T11:18:52+00:00" +} diff --git a/provenance/generation_code/h_s0_2/strategy/parameters.json b/provenance/generation_code/h_s0_2/strategy/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/h_s0_2/strategy/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/h_s0_2/strategy/solve.py b/provenance/generation_code/h_s0_2/strategy/solve.py new file mode 100644 index 0000000000000000000000000000000000000000..08f2e05206e3d9cf1ce2c68c5b1efeec47cfb3a0 --- /dev/null +++ b/provenance/generation_code/h_s0_2/strategy/solve.py @@ -0,0 +1,173 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([0,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/generation_code/h_s0_3/grader.py b/provenance/generation_code/h_s0_3/grader.py new file mode 100644 index 0000000000000000000000000000000000000000..f96305d2b7744b5d7dee62a8d3735c4f160dc251 --- /dev/null +++ b/provenance/generation_code/h_s0_3/grader.py @@ -0,0 +1,89 @@ +"""Grader for the pc_gpu scene: the graphics card seated in the PCIe x16 slot. + +Rubric stages (weights and modes live in RUBRIC): + grasped the card has been taken in the weld-on-closure grip (`scene.grasp_held`) — the + scene's own grasp state; a milestone, latched. Also true once the card is + aligned in the slot (a card in the slot was necessarily carried there), so the + rung nests under `aligned`. Under an embodiment with no gripper (the weld + contract disabled, e.g. robot="null") the grasp state does not exist and the + rung reads from that implication alone + aligned the card lined up on the slot — origin within `align_xy` of the seated point, + up axis within `align_axis_deg` of the slot axis, length axis within + `align_yaw_deg` of the slot heading: the scene's own three non-depth seat gates + pressed tab depth below the slot mouth (`slot_mouth_z`, the scene's own `engaged()`) + as a fraction of `seat_depth`, counted only while aligned — so it is 1.0 iff + the scene calls the card seated +Every stage is per env. The rungs nest (seated => aligned => grasped), so progress reaches +1.0 exactly when the card is seated, and for a grader built after the pick as well as one +that watched it. The rear-panel pass-through is NOT a rung: the cutout's geometry is not in +the scene cfg, so it cannot be read from state without an invented tolerance. Success is +the scene's `seated()` per env — depth, xy, tilt AND heading gates — read when the +delivery finishes. +""" + +from __future__ import annotations + +import math + +from robobench.core import BaseGrader +# baked by data_engine init: grade against the LOCAL scene copy (../scene/scene.py), +# exec'd at most once per process under a fixed module key. +import importlib.util as _ilu +import sys as _sys +from pathlib import Path as _Path + +if "datagen_local_scene" not in _sys.modules: + import robobench as _rb + _rb.discover() + _p = _Path(__file__).resolve().parent.parent / "scene" / "scene.py" + _spec = _ilu.spec_from_file_location("datagen_local_scene", _p) + _m = _ilu.module_from_spec(_spec) + _sys.modules["datagen_local_scene"] = _m + _spec.loader.exec_module(_m) +PcGpuAssemblyScene = _sys.modules["datagen_local_scene"].PcGpuAssemblyScene + + +class PcGpuAssemblyGrader(BaseGrader): + """The card seated in its slot — pressed to depth, centred, upright, heading along the slot. + + Ladder: grasped 0.33 · aligned 0.67 · pressed 1.00 — three equal rungs for the three + steps of the task (take the card, line it up on the slot, press it home); the last rung + is a linear ramp of tab depth from the slot mouth (`slot_mouth_z`) to `seat_depth`. + """ + + SCENE = PcGpuAssemblyScene + RUBRIC = (("grasped", 1, "once"), ("aligned", 1), ("pressed", 1)) + scene: PcGpuAssemblyScene + + def setup(self) -> None: + import torch + + # `grasp_held` exists only while the weld contract is live (a gripper on the stage). + self._has_grasp = hasattr(self.scene, "grasp_held") + self._grasped = torch.zeros(self.num_envs, dtype=torch.bool, + device=self.scene.engaged().device) # latch: card ever held + + def check_success(self): + return self.scene.seated() # (num_envs,) + + def _aligned(self): + """(num_envs,) bool: the scene's xy + tilt + heading seat gates, without depth.""" + c = self.scene.cfg + rel = self.scene._card_offset_in_case() # (n, 3), zero at the seated pose — privileged + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self.scene._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self.scene._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return xy_ok & up_ok & yaw_ok + + # ---- rubric stages — each returns a (num_envs,) value in [0, 1] --------------------- + def grasped(self): + if self._has_grasp: + self._grasped |= self.scene.grasp_held.any(dim=1) + return (self._grasped | self._aligned()).float() + + def aligned(self): + return self._aligned().float() + + def pressed(self): + depth = self.scene.engaged() # (n,) tab depth below the slot mouth (m) + return self._aligned() * (depth / self.scene.cfg.seat_depth).clamp(0.0, 1.0) diff --git a/provenance/generation_code/h_s0_3/scene.py b/provenance/generation_code/h_s0_3/scene.py new file mode 100644 index 0000000000000000000000000000000000000000..6b9875f21af8ba405baed9e6ddbdbce958c004c7 --- /dev/null +++ b/provenance/generation_code/h_s0_3/scene.py @@ -0,0 +1,450 @@ +"""PcGpuAssemblyScene — insert a graphics card into the PC's PCIe slot. + +The same gaming-PC case as `pc_motherboard` lies on its side on the table, opening up, motherboard +facing the ceiling — but here the board's PCIe area is the work site. Beside the case lies a loose +RTX 2060 (extracted from the PC model as its own rigid body, backplate down). Goal (carried here, +no task layer): stand the card upright over the primary x16 slot, line its PCB edge up with the +slot, and press it straight down until it seats. + +The case is one kinematic body that never moves — the PC model stays visual-only; its physics is +an invisible fixture inside the case body: a channel whose walls grip the card's 4 mm PCB tab at +0.15 mm/side (flaring to a 1.2 mm/side funnel mouth — idealizing the real slot's spring +contacts, and capping the unscrewed card's gravity roll at ~2 deg), a floor whose top is the +model's own seated tab height, end stops (~1.6 mm play), a flush board plate so a dropped card +rests on the board face, and a REAR I/O PANEL frame around the expansion-slot cutout — so the +card must be placed inside the case, slid rearward until its bracket/ports pass through the +opening, and only then pressed down (a straight vertical drop is physically blocked by the +panel above the cutout, exactly like a real build). The card's origin is its +PCB-tab bottom CENTRE with axes equal to the case's, so the seated pose is just `seat_pos` + +identity orientation in the case frame, and insertion depth is a z difference. + +Heavy imports (isaaclab, pxr) are deferred so importing this module stays app-free. +""" + +from __future__ import annotations + +import math +from dataclasses import dataclass +from pathlib import Path +from robobench.core.assets import asset_path +from typing import TYPE_CHECKING, Any, ClassVar + +import torch + +from robobench.core import GraspWeldContract, SCENES, BaseCfg, BaseScene, SimCfg + +if TYPE_CHECKING: + from isaaclab.assets import RigidObject + + from robobench.core import BaseEnv + + +@dataclass +class PcGpuAssemblySceneCfg(BaseCfg): + """Config for `PcGpuAssemblyScene`. Nothing is locked — a variant is just a copy with a few + fields changed.""" + + # --- the curriculum / difficulty dials ----------------------------------------------- + # The card is "seated" when — in the case's frame — its tab is >= `seat_depth` below the slot + # mouth, its origin is within `align_xy` of the seated point, and its axes are within + # `align_axis_deg` (tilt) / `align_yaw_deg` (heading along the slot) of the case's. The full + # stroke from the slot mouth to the channel floor is 5 mm, so 4 mm separates "seated" from + # "merely resting in the mouth". + seat_depth: float = 0.004 # min tab depth below the slot mouth (m) to count as seated + align_xy: float = 0.003 # max distance (m) of the card origin from the seated point + align_axis_deg: float = 3.0 # max tilt of the card's up axis off the slot axis (deg) + align_yaw_deg: float = 3.0 # max heading error of the card's length axis (deg) + reset_pos_jitter: float = 0.01 # uniform +/- xy jitter for the loose card at reset (m) + # Part friction (static = dynamic), set on every shape at bind. The moving card runs moderately + # slick against a grippier fixed case, so it slides down the channel but holds seat. + card_friction: float = 0.3 + case_friction: float = 0.75 + # Weld-on-closure grasping (the benchmark's auto-weld contract, PhysX + # form — the grasp-weld machinery at the end of this scene class): + # close the fingers squarely across the card's body slab near its top edge and the card welds + # to the hand; open wide to release. Gripper envs only (no-op under robot="null"). + grasp_weld: bool = True + grasp_weld_dist: float = 0.010 # pinch-point-to-grip-band engage radius (m) + + pilot_jitter_x: float = 0.004 + pilot_jitter_y: float = 0.0007 + + # --- structure, reset layout, masses, asset paths (fixed) ------------------------------- + # Seated card origin (its PCB-tab bottom centre) in the case's local frame; orientation seated + # = the case's own axes (identity). Baked into the committed USDs (keep in sync if they change). + seat_pos: tuple[float, float, float] = (-0.01595, 0.0293, 0.0035) + slot_mouth_z: float = 0.0085 # slot top in the case frame: depth datum (5 mm at full seat) + board_top: float = 0.0 # board face height in the case frame (the asset's own origin) + case_lift: float = 0.0289 # board face above the side panel the case lies on + card_mass: float = 1.0 # dual-fan RTX 2060 (kg) + light_intensity: float = 2500.0 + # Loose card start pose: lying backplate-down on the table beside the case (+x side; the case + # spans x < 0.13 and the lying card's tail reaches origin_x - 0.132). + card_init_xy: tuple[float, float] = (0.28, 0.0) # card start xy (table-rel.) + card_init_z: float = 0.0022 # origin height lying backplate-down (backplate plane -2 mm) + card_init_quat: tuple[float, float, float, float] = (0.70711, 0.70711, 0.0, 0.0) # flat + card_contact_offset: float = 0.0001 # well below the 0.15 mm/side channel grip + case_contact_offset: float = 0.0001 # ditto for the slot fixture's walls + # Optional foam holder (a floor pad + two rails flanking the card's 36 mm body slab) that + # presents the card UPRIGHT for a parallel-jaw grasp. The lying default is ungraspable by a + # Franka gripper: flat on its backplate the card's only sub-80 mm dimension (the 36 mm body + # thickness) points UP, so no top-down or side pinch can straddle it. Enable together with an + # upright `card_init_quat` (identity = the seated orientation) and `card_init_z` = the + # holder's floor top; the rails cap the free card's lean at ~3 deg and the pick pulls + # straight up out of them. + card_stand: bool = False + card_stand_gap: float = 0.0025 # rail clearance per side around the body slab (m) + # Selectable work surface (same presets as the sibling scenes). + table: str = "lab_table" # which work surface: "lab_table" | "packing" + surface_z: float | None = None # table-top height (m); None -> the preset's + workbench_pos: tuple[float, float] | None = None # xy the table sits at; None -> preset + workbench_usd: str = "" # empty -> the preset's vendored USD + TABLES: ClassVar[dict[str, dict[str, Any]]] = { + "lab_table": {"usd": ("lab_table", "table_instanceable.usd"), "scale": 1.0, + "orient": (0.70711, 0.0, 0.0, 0.70711), "surface_z": 0.0, "pos": (0.5, 0.0), + "top_offset": 0.0, "height": 1.05, "kinematic": False}, + "packing": {"usd": ("packing_table", "SM_HeavyDutyPackingTable_C02_01_physics.usd"), "scale": 0.01, + "orient": (1.0, 0.0, 0.0, 0.0), "surface_z": 0.994, "pos": (0.0, 0.0), + "top_offset": 0.994, "height": 0.994, "kinematic": True}, + } + # Asset USDs; empty -> the prebuilt assets committed under `assets/`. + asset_dir: str = "" + case_usd: str = "" + card_usd: str = "" + + def __post_init__(self) -> None: + assets = asset_path(Path(__file__).resolve().parents[1] / "assets") + self.asset_dir = self.asset_dir or str(assets) + self.case_usd = self.case_usd or str(Path(self.asset_dir) / "pc" / "pc_case_gpu_assembly_mb.usd") + self.card_usd = self.card_usd or str(Path(self.asset_dir) / "pc" / "gpu_rtx2060.usd") + preset = self.TABLES[self.table] + if self.surface_z is None: + self.surface_z = preset["surface_z"] + if self.workbench_pos is None: + self.workbench_pos = preset["pos"] + self.workbench_usd = self.workbench_usd or str(assets / "props" / preset["usd"][0] / preset["usd"][1]) + + +@SCENES.register("pc_gpu_local") +class PcGpuAssemblyScene(BaseScene): + cfg: PcGpuAssemblySceneCfg + + # Object physics remains nominal in this pilot; L4 uses the recorded noise channel. + PHYSICAL_PARAMS = {'card_mass': None, 'card_friction': None, 'case_friction': None} + VISUAL_PARAMS = {'light_intensity': {'dist': 'choice', 'options': [1600., 2500., 3400.]}} + CAMERAS = {'front': {'eye': (-.1, -1.06, 1.282), 'target': (.42, -.08, .06), + 'focal': 16., 'bands': { + 'eye_x': {'dist': 'uniform', 'lo': -.125, 'hi': -.075}, + 'eye_y': {'dist': 'uniform', 'lo': -1.085, 'hi': -1.035}, + 'target_x': {'dist': 'uniform', 'lo': .405, 'hi': .435}}}} + + def apply_visual_params(self, env, values): + # Render-only light; never touches geometry, contact, or robot control. + from pxr import UsdLux + if 'light_intensity' in values: + prim = env.sim.stage.GetPrimAtPath('/World/light') + UsdLux.LightAPI(prim).GetIntensityAttr().Set(float(values['light_intensity'])) + + # Card-local y extent of the body collision slab (from gpu_rtx2060.usd `/gpu/collision/body`: + # backplate plane -2 mm, fan-shroud plane +32.8 mm around the PCB-tab-centre origin — the + # collider is trimmed to the VISUAL shell). The stand's rails flank THESE faces — the same + # pair a parallel-jaw grasp pinches. + CARD_BODY_Y: ClassVar[tuple[float, float]] = (-0.002, 0.0328) + + def __init__(self, cfg: PcGpuAssemblySceneCfg | None = None) -> None: + super().__init__(cfg or PcGpuAssemblySceneCfg()) + + # ----- assets ------------------------------------------------------------------------------- + def assets(self) -> dict[str, Any]: + """Floor, dome light, table, the PC case lying on it (kinematic, with the invisible slot + fixture), and one loose graphics card. The card loads with the high solver-iteration count + the snug channel needs.""" + import isaaclab.sim as sim_utils + from isaaclab.assets import AssetBaseCfg, RigidObjectCfg + + c = self.cfg + for usd in (c.case_usd, c.card_usd): + if not Path(usd).is_file(): + raise FileNotFoundError( + f"{usd} not found — the pc-gpu assets ship with the repo under " + f"`suites/assembly/assets/`" + ) + preset = c.TABLES[c.table] + wx, wy = c.workbench_pos + table_z = c.surface_z - preset["top_offset"] + ground_z = c.surface_z - preset["height"] + table_spawn = sim_utils.UsdFileCfg(usd_path=c.workbench_usd, scale=(preset["scale"],) * 3) + if preset["kinematic"]: + table_spawn.rigid_props = sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True) + + cx, cy = c.card_init_xy + assets: dict[str, Any] = { + "ground": AssetBaseCfg( + prim_path="/World/ground", + spawn=sim_utils.GroundPlaneCfg(usd_path=str( + asset_path(Path(__file__).resolve().parents[1] / "assets") / "props" / "ground" / "default_ground.usd")), + init_state=AssetBaseCfg.InitialStateCfg(pos=(0.0, 0.0, ground_z)), + ), + "light": AssetBaseCfg( + prim_path="/World/light", + spawn=sim_utils.DomeLightCfg(intensity=c.light_intensity, color=(0.9, 0.9, 0.9)), + ), + "workbench": AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/Table", + init_state=AssetBaseCfg.InitialStateCfg(pos=(wx, wy, table_z), rot=preset["orient"]), + spawn=table_spawn, + ), + # The case: kinematic; the invisible fixture inside it (slot channel + rear-panel + # cutout frame) is what the card mates with. Fixture contact offsets are set here + # (not just authored in the asset) so the 0.15 mm/side channel grip never fights + # speculative contacts. + "case": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Case", + spawn=sim_utils.UsdFileCfg( + usd_path=c.case_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.case_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True), + ), + init_state=RigidObjectCfg.InitialStateCfg(pos=(wx, wy, c.surface_z + c.case_lift)), + ), + # Card contact offset must stay well below the channel grip (0.15 mm/side) or + # speculative contacts choke the fit. + "card": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Card", + spawn=sim_utils.UsdFileCfg( + usd_path=c.card_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.card_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg( + solver_position_iteration_count=192, + solver_velocity_iteration_count=1, + max_depenetration_velocity=0.02, + linear_damping=2.0, + angular_damping=2.0, + ), + mass_props=sim_utils.MassPropertiesCfg(mass=c.card_mass), + ), + init_state=RigidObjectCfg.InitialStateCfg( + pos=(wx + cx, wy + cy, c.surface_z + c.card_init_z), rot=c.card_init_quat + ), + ), + } + if c.card_stand: + # Foam holder for a gripper env: three STATIC boxes (no rigid body). The floor pad's + # top is the card spawn height (`card_init_z` = the tab-bottom plane), the two rails + # flank the body slab's faces at `card_stand_gap` per side. Rail tops stay 35+ mm + # below the pick grip band, so descending open fingers never meet them. + y0, y1 = self.CARD_BODY_Y + mid_y = wy + cy + 0.5 * (y0 + y1) # body-slab mid-plane (the pinch/rail centre) + half_gap = 0.5 * (y1 - y0) + c.card_stand_gap # rail inner face off the mid-plane + rail_h, rail_t = 0.055, 0.008 + foam = sim_utils.PreviewSurfaceCfg(diffuse_color=(0.17, 0.17, 0.2), roughness=0.9) + for name, size, pos in ( + ("card_stand_floor", (0.11, 0.09, c.card_init_z), + (wx + cx, mid_y, c.surface_z + 0.5 * c.card_init_z)), + ("card_stand_rail_pcb", (0.11, rail_t, rail_h), + (wx + cx, mid_y - half_gap - 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ("card_stand_rail_fan", (0.11, rail_t, rail_h), + (wx + cx, mid_y + half_gap + 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ): + assets[name] = AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/" + "".join(p.capitalize() for p in name.split("_")), + spawn=sim_utils.CuboidCfg( + size=size, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=0.001, rest_offset=0.0 + ), + visual_material=foam, + ), + init_state=AssetBaseCfg.InitialStateCfg(pos=pos), + ) + # Immutable visual-only set dressing, clear of the arm/task swept volume. + assets['pilot_parts_box'] = AssetBaseCfg( + prim_path='{ENV_REGEX_NS}/PilotPartsBox', + spawn=sim_utils.CuboidCfg(size=(.075, .075, .045), + visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(.08, .35, .65), roughness=.8)), + init_state=AssetBaseCfg.InitialStateCfg(pos=(.90, .36, c.surface_z+.0225))) + return assets + + def sim_cfg(self) -> SimCfg: + return SimCfg( + dt=1.0 / 120.0, + physx={ + "solver_type": 1, + "bounce_threshold_velocity": 0.2, + "friction_offset_threshold": 0.01, + "friction_correlation_distance": 0.00625, + "gpu_max_rigid_contact_count": 2**23, + "gpu_max_rigid_patch_count": 2**23, + "gpu_collision_stack_size": 2**28, + "gpu_max_num_partitions": 1, + }, + ) + + # ----- lifecycle ---------------------------------------------------------------------------- + + def __getattr__(self, name: str): + # Legacy surface: the grasp contract's state used to live directly on the scene + # (inline machinery era) and existing solutions read it there — forward to the + # composed contract. `__getattr__` only fires for attributes not found normally. + if name.startswith("_gw_") and "grasp_weld" in self.__dict__: + return getattr(self.grasp_weld, name) + raise AttributeError(name) + + def bind(self, env: BaseEnv) -> None: + """Grab the case + card handles, cache env origins, and set the part frictions.""" + super().bind(env) + self.case: RigidObject = env.iscene["case"] + self.card: RigidObject = env.iscene["card"] + self.env_origins = env.iscene.env_origins + self._set_friction(self.case, self.cfg.case_friction) + self._set_friction(self.card, self.cfg.card_friction) + self.grasp_weld = GraspWeldContract(self) # composed, publishes self.grasp_held + self.grasp_weld.bind() + + def grasp_sites(self) -> list: + """One grip band: across the body slab (faces at CARD_BODY_Y, 34.8 mm wide), along the + card's upper length — band centre 15 mm below the shroud's top edge (z 0.1155).""" + y = 0.5 * (self.CARD_BODY_Y[0] + self.CARD_BODY_Y[1]) + return [("card", self.card, (-0.045, y, 0.1005), (0.045, y, 0.1005), (0.030, 0.039))] + + def post_step(self, env_ids: torch.Tensor | None = None) -> None: + """Reconcile the weld-on-closure grasp contract every physics substep.""" + self.grasp_weld.step() + + def _set_friction(self, asset, value: float) -> None: + """Overwrite the static + dynamic friction on every shape of `asset` (across all envs).""" + mats = asset.root_physx_view.get_material_properties() + mats[..., 0:2] = value # [static, dynamic, restitution] + asset.root_physx_view.set_material_properties(mats, torch.arange(self.env.num_envs, device="cpu")) + + def reset(self, env_ids: torch.Tensor) -> None: + """Fresh, unassembled start: the case pinned at spawn, the card lying backplate-down on + the table beside it, with xy jitter.""" + c = self.cfg + dev = self.env.device + m = len(env_ids) + origin = self.env_origins[env_ids] # (m, 3) + wx, wy = c.workbench_pos + cx, cy = c.card_init_xy + + st = torch.zeros(m, 13, device=dev) + st[:, 0:3] = origin + torch.tensor((wx + cx, wy + cy, c.surface_z + c.card_init_z), device=dev) + st[:, 0:2] += (torch.rand(m, 2, device=dev) * 2 - 1) * c.reset_pos_jitter + # Small in-holder variation: below rail clearance; no case/slot changes. + st[:, :2] += (torch.rand(m, 2, device=dev)*2-1) * torch.tensor( + [c.pilot_jitter_x, c.pilot_jitter_y], device=dev) + st[:, 3:7] = torch.tensor(c.card_init_quat, device=dev) + self.card.write_root_state_to_sim(st, env_ids) + self.grasp_weld.release_all(env_ids) + + # ----- state (full, restorable) ------------------------------------------------------------- + def get_state(self, env_ids: torch.Tensor) -> dict[str, Any]: + """Restorable scene state: world root states (13) of the case and the card, plus the + grasp-weld holds.""" + return { + "case": self.case.data.root_state_w[env_ids].clone(), + "card": self.card.data.root_state_w[env_ids].clone(), + **self.grasp_weld.state(env_ids), + } + + def set_state(self, state: dict[str, Any], env_ids: torch.Tensor) -> None: + """Restore what `get_state` returned. The card's insertion depth is fully captured by its + root state, so the channel holds it on restore.""" + self.case.write_root_pose_to_sim(state["case"][:, 0:7], env_ids) + self.card.write_root_state_to_sim(state["card"], env_ids) + self.grasp_weld.restore(state, env_ids) + + # ----- description -------------------------------------------------------------------------- + def describe(self) -> str: + if self.cfg.card_stand: + card = ( + "Beside the case a loose graphics card stands upright in a foam holder, already " + "in its installation orientation.\nGoal: grip the card by its top edge, lift it " + "straight out of the holder, " + ) + else: + card = ( + "Beside the case lies a loose graphics card, backplate down.\nGoal: lift the " + "card upright (fans toward the case front), " + ) + return ( + "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard " + "facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O " + f"panel has an open expansion-slot cutout. {card}" + "lower it into the case with its I/O bracket just forward of the rear panel, slide " + "it rearward until the bracket and ports pass through the cutout, line its PCB edge " + "connector up with the x16 slot, and press it straight down until it bottoms out. " + "A seated card stays put on its own. The task is complete once the card is fully " + "seated." + + " A fixed blue parts box decorates the far corner, outside the task volume." + + ( + " The card holds in a firm pinch: close the fingers squarely across its body " + "slab near the top edge and the grip locks; open wide to release." + if self.cfg.grasp_weld + else "" + ) + ) + + # ----- progress (public: seated()/engaged(); reads how far the assembly has got) ------------- + def engaged(self) -> torch.Tensor: + """Tab depth below the slot mouth, shape (num_envs,), in metres (negative = still above + the slot). The card bottoms out on the channel floor at 0.005 depth.""" + rel = self._card_offset_in_case() # (n, 3), zero at the seated pose + return (self.cfg.slot_mouth_z - self.cfg.seat_pos[2]) - rel[:, 2] + + def seated(self) -> torch.Tensor: + """Whether the card is seated in the slot, shape (num_envs,): pressed down to `seat_depth` + below the mouth, within `align_xy` of the seated point, and aligned in tilt AND heading.""" + c = self.cfg + rel = self._card_offset_in_case() # (n, 3) + depth_ok = self.engaged() >= c.seat_depth + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return depth_ok & xy_ok & up_ok & yaw_ok + + def success(self) -> torch.Tensor: + """(N,) bool: the card seated in its slot — this scene's assembled state + (scene-level success alias, matching the other suites' surface).""" + return self.seated() + + def _card_offset_in_case(self) -> torch.Tensor: + """The card origin's offset from the seated point, in the case's local frame, shape + (num_envs, 3). Zero means the card origin sits exactly at the seated pose.""" + from isaaclab.utils.math import quat_apply_inverse + + rel = quat_apply_inverse( + self.case.data.root_quat_w, self.card.data.root_pos_w - self.case.data.root_pos_w + ) + return rel - torch.tensor(self.cfg.seat_pos, device=rel.device) + + def _axis_cos(self, axis: int) -> torch.Tensor: + """cos of the angle between the card's and the case's local `axis` (0=x: heading along the + slot, 2=z: insertion axis), shape (num_envs,). Seated orientation = the case's own axes.""" + from isaaclab.utils.math import quat_apply + + e = torch.zeros(3, device=self.env.device) + e[axis] = 1.0 + e = e.expand(self.env.num_envs, 3) + case_ax = quat_apply(self.case.data.root_quat_w, e) + card_ax = quat_apply(self.card.data.root_quat_w, e) + return (card_ax * case_ax).sum(dim=-1) + + # Grasp-weld contract: composed `GraspWeldContract` (robobench.core.grasp_weld), + # created in `bind()`; this scene supplies the part-side `grasp_sites()`. + # Grasp-weld contract constants — the scene's public knobs (solutions read these off the + # scene, e.g. `scene.GRASP_PINCH_OFFSET`); the composed GraspWeldContract consumes them. + GRASP_HAND_BODY: ClassVar[str] = "panda_hand" + GRASP_FINGER_JOINTS: ClassVar[str] = "panda_finger_joint.*" + GRASP_PINCH_OFFSET: ClassVar[float] = 0.1034 # hand origin -> finger-pad centre, along approach + GRASP_POOL: ClassVar[int] = 8 # engages per (env, site) per run; exhausted -> warn, no weld + GRASP_STALL: ClassVar[float] = 0.01 # max |finger vel| sum (m/s): fingers stopped ON the part + GRASP_DEBOUNCE: ClassVar[int] = 8 # consecutive qualifying substeps before the weld engages + GRASP_RELEASE_MARGIN: ClassVar[float] = 0.008 # release at window-top + this (m), hysteresis + diff --git a/provenance/generation_code/h_s0_3/strategy/SUMMARY.txt b/provenance/generation_code/h_s0_3/strategy/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..ccb6cf2dd81a73bd05afac20479db7cab4d69753 --- /dev/null +++ b/provenance/generation_code/h_s0_3/strategy/SUMMARY.txt @@ -0,0 +1 @@ +Base state-feedback program; Original central grasp and direct high transfer. DART offered only during high free-space transport. Initially UNTESTED; see pilot_report.json. diff --git a/provenance/generation_code/h_s0_3/strategy/meta.json b/provenance/generation_code/h_s0_3/strategy/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..e364b8053041e06bf63d78768de31fa2fdc744d2 --- /dev/null +++ b/provenance/generation_code/h_s0_3/strategy/meta.json @@ -0,0 +1,10 @@ +{ + "episodes": 2, + "successes": 2, + "success_rate": 1.0, + "batches": [ + "h_s0_1", + "p01_scene" + ], + "refreshed": "2026-10-12T11:34:11+00:00" +} diff --git a/provenance/generation_code/h_s0_3/strategy/parameters.json b/provenance/generation_code/h_s0_3/strategy/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/h_s0_3/strategy/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/h_s0_3/strategy/solve.py b/provenance/generation_code/h_s0_3/strategy/solve.py new file mode 100644 index 0000000000000000000000000000000000000000..08f2e05206e3d9cf1ce2c68c5b1efeec47cfb3a0 --- /dev/null +++ b/provenance/generation_code/h_s0_3/strategy/solve.py @@ -0,0 +1,173 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([0,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/generation_code/p01_scene/grader.py b/provenance/generation_code/p01_scene/grader.py new file mode 100644 index 0000000000000000000000000000000000000000..f96305d2b7744b5d7dee62a8d3735c4f160dc251 --- /dev/null +++ b/provenance/generation_code/p01_scene/grader.py @@ -0,0 +1,89 @@ +"""Grader for the pc_gpu scene: the graphics card seated in the PCIe x16 slot. + +Rubric stages (weights and modes live in RUBRIC): + grasped the card has been taken in the weld-on-closure grip (`scene.grasp_held`) — the + scene's own grasp state; a milestone, latched. Also true once the card is + aligned in the slot (a card in the slot was necessarily carried there), so the + rung nests under `aligned`. Under an embodiment with no gripper (the weld + contract disabled, e.g. robot="null") the grasp state does not exist and the + rung reads from that implication alone + aligned the card lined up on the slot — origin within `align_xy` of the seated point, + up axis within `align_axis_deg` of the slot axis, length axis within + `align_yaw_deg` of the slot heading: the scene's own three non-depth seat gates + pressed tab depth below the slot mouth (`slot_mouth_z`, the scene's own `engaged()`) + as a fraction of `seat_depth`, counted only while aligned — so it is 1.0 iff + the scene calls the card seated +Every stage is per env. The rungs nest (seated => aligned => grasped), so progress reaches +1.0 exactly when the card is seated, and for a grader built after the pick as well as one +that watched it. The rear-panel pass-through is NOT a rung: the cutout's geometry is not in +the scene cfg, so it cannot be read from state without an invented tolerance. Success is +the scene's `seated()` per env — depth, xy, tilt AND heading gates — read when the +delivery finishes. +""" + +from __future__ import annotations + +import math + +from robobench.core import BaseGrader +# baked by data_engine init: grade against the LOCAL scene copy (../scene/scene.py), +# exec'd at most once per process under a fixed module key. +import importlib.util as _ilu +import sys as _sys +from pathlib import Path as _Path + +if "datagen_local_scene" not in _sys.modules: + import robobench as _rb + _rb.discover() + _p = _Path(__file__).resolve().parent.parent / "scene" / "scene.py" + _spec = _ilu.spec_from_file_location("datagen_local_scene", _p) + _m = _ilu.module_from_spec(_spec) + _sys.modules["datagen_local_scene"] = _m + _spec.loader.exec_module(_m) +PcGpuAssemblyScene = _sys.modules["datagen_local_scene"].PcGpuAssemblyScene + + +class PcGpuAssemblyGrader(BaseGrader): + """The card seated in its slot — pressed to depth, centred, upright, heading along the slot. + + Ladder: grasped 0.33 · aligned 0.67 · pressed 1.00 — three equal rungs for the three + steps of the task (take the card, line it up on the slot, press it home); the last rung + is a linear ramp of tab depth from the slot mouth (`slot_mouth_z`) to `seat_depth`. + """ + + SCENE = PcGpuAssemblyScene + RUBRIC = (("grasped", 1, "once"), ("aligned", 1), ("pressed", 1)) + scene: PcGpuAssemblyScene + + def setup(self) -> None: + import torch + + # `grasp_held` exists only while the weld contract is live (a gripper on the stage). + self._has_grasp = hasattr(self.scene, "grasp_held") + self._grasped = torch.zeros(self.num_envs, dtype=torch.bool, + device=self.scene.engaged().device) # latch: card ever held + + def check_success(self): + return self.scene.seated() # (num_envs,) + + def _aligned(self): + """(num_envs,) bool: the scene's xy + tilt + heading seat gates, without depth.""" + c = self.scene.cfg + rel = self.scene._card_offset_in_case() # (n, 3), zero at the seated pose — privileged + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self.scene._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self.scene._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return xy_ok & up_ok & yaw_ok + + # ---- rubric stages — each returns a (num_envs,) value in [0, 1] --------------------- + def grasped(self): + if self._has_grasp: + self._grasped |= self.scene.grasp_held.any(dim=1) + return (self._grasped | self._aligned()).float() + + def aligned(self): + return self._aligned().float() + + def pressed(self): + depth = self.scene.engaged() # (n,) tab depth below the slot mouth (m) + return self._aligned() * (depth / self.scene.cfg.seat_depth).clamp(0.0, 1.0) diff --git a/provenance/generation_code/p01_scene/scene.py b/provenance/generation_code/p01_scene/scene.py new file mode 100644 index 0000000000000000000000000000000000000000..6b9875f21af8ba405baed9e6ddbdbce958c004c7 --- /dev/null +++ b/provenance/generation_code/p01_scene/scene.py @@ -0,0 +1,450 @@ +"""PcGpuAssemblyScene — insert a graphics card into the PC's PCIe slot. + +The same gaming-PC case as `pc_motherboard` lies on its side on the table, opening up, motherboard +facing the ceiling — but here the board's PCIe area is the work site. Beside the case lies a loose +RTX 2060 (extracted from the PC model as its own rigid body, backplate down). Goal (carried here, +no task layer): stand the card upright over the primary x16 slot, line its PCB edge up with the +slot, and press it straight down until it seats. + +The case is one kinematic body that never moves — the PC model stays visual-only; its physics is +an invisible fixture inside the case body: a channel whose walls grip the card's 4 mm PCB tab at +0.15 mm/side (flaring to a 1.2 mm/side funnel mouth — idealizing the real slot's spring +contacts, and capping the unscrewed card's gravity roll at ~2 deg), a floor whose top is the +model's own seated tab height, end stops (~1.6 mm play), a flush board plate so a dropped card +rests on the board face, and a REAR I/O PANEL frame around the expansion-slot cutout — so the +card must be placed inside the case, slid rearward until its bracket/ports pass through the +opening, and only then pressed down (a straight vertical drop is physically blocked by the +panel above the cutout, exactly like a real build). The card's origin is its +PCB-tab bottom CENTRE with axes equal to the case's, so the seated pose is just `seat_pos` + +identity orientation in the case frame, and insertion depth is a z difference. + +Heavy imports (isaaclab, pxr) are deferred so importing this module stays app-free. +""" + +from __future__ import annotations + +import math +from dataclasses import dataclass +from pathlib import Path +from robobench.core.assets import asset_path +from typing import TYPE_CHECKING, Any, ClassVar + +import torch + +from robobench.core import GraspWeldContract, SCENES, BaseCfg, BaseScene, SimCfg + +if TYPE_CHECKING: + from isaaclab.assets import RigidObject + + from robobench.core import BaseEnv + + +@dataclass +class PcGpuAssemblySceneCfg(BaseCfg): + """Config for `PcGpuAssemblyScene`. Nothing is locked — a variant is just a copy with a few + fields changed.""" + + # --- the curriculum / difficulty dials ----------------------------------------------- + # The card is "seated" when — in the case's frame — its tab is >= `seat_depth` below the slot + # mouth, its origin is within `align_xy` of the seated point, and its axes are within + # `align_axis_deg` (tilt) / `align_yaw_deg` (heading along the slot) of the case's. The full + # stroke from the slot mouth to the channel floor is 5 mm, so 4 mm separates "seated" from + # "merely resting in the mouth". + seat_depth: float = 0.004 # min tab depth below the slot mouth (m) to count as seated + align_xy: float = 0.003 # max distance (m) of the card origin from the seated point + align_axis_deg: float = 3.0 # max tilt of the card's up axis off the slot axis (deg) + align_yaw_deg: float = 3.0 # max heading error of the card's length axis (deg) + reset_pos_jitter: float = 0.01 # uniform +/- xy jitter for the loose card at reset (m) + # Part friction (static = dynamic), set on every shape at bind. The moving card runs moderately + # slick against a grippier fixed case, so it slides down the channel but holds seat. + card_friction: float = 0.3 + case_friction: float = 0.75 + # Weld-on-closure grasping (the benchmark's auto-weld contract, PhysX + # form — the grasp-weld machinery at the end of this scene class): + # close the fingers squarely across the card's body slab near its top edge and the card welds + # to the hand; open wide to release. Gripper envs only (no-op under robot="null"). + grasp_weld: bool = True + grasp_weld_dist: float = 0.010 # pinch-point-to-grip-band engage radius (m) + + pilot_jitter_x: float = 0.004 + pilot_jitter_y: float = 0.0007 + + # --- structure, reset layout, masses, asset paths (fixed) ------------------------------- + # Seated card origin (its PCB-tab bottom centre) in the case's local frame; orientation seated + # = the case's own axes (identity). Baked into the committed USDs (keep in sync if they change). + seat_pos: tuple[float, float, float] = (-0.01595, 0.0293, 0.0035) + slot_mouth_z: float = 0.0085 # slot top in the case frame: depth datum (5 mm at full seat) + board_top: float = 0.0 # board face height in the case frame (the asset's own origin) + case_lift: float = 0.0289 # board face above the side panel the case lies on + card_mass: float = 1.0 # dual-fan RTX 2060 (kg) + light_intensity: float = 2500.0 + # Loose card start pose: lying backplate-down on the table beside the case (+x side; the case + # spans x < 0.13 and the lying card's tail reaches origin_x - 0.132). + card_init_xy: tuple[float, float] = (0.28, 0.0) # card start xy (table-rel.) + card_init_z: float = 0.0022 # origin height lying backplate-down (backplate plane -2 mm) + card_init_quat: tuple[float, float, float, float] = (0.70711, 0.70711, 0.0, 0.0) # flat + card_contact_offset: float = 0.0001 # well below the 0.15 mm/side channel grip + case_contact_offset: float = 0.0001 # ditto for the slot fixture's walls + # Optional foam holder (a floor pad + two rails flanking the card's 36 mm body slab) that + # presents the card UPRIGHT for a parallel-jaw grasp. The lying default is ungraspable by a + # Franka gripper: flat on its backplate the card's only sub-80 mm dimension (the 36 mm body + # thickness) points UP, so no top-down or side pinch can straddle it. Enable together with an + # upright `card_init_quat` (identity = the seated orientation) and `card_init_z` = the + # holder's floor top; the rails cap the free card's lean at ~3 deg and the pick pulls + # straight up out of them. + card_stand: bool = False + card_stand_gap: float = 0.0025 # rail clearance per side around the body slab (m) + # Selectable work surface (same presets as the sibling scenes). + table: str = "lab_table" # which work surface: "lab_table" | "packing" + surface_z: float | None = None # table-top height (m); None -> the preset's + workbench_pos: tuple[float, float] | None = None # xy the table sits at; None -> preset + workbench_usd: str = "" # empty -> the preset's vendored USD + TABLES: ClassVar[dict[str, dict[str, Any]]] = { + "lab_table": {"usd": ("lab_table", "table_instanceable.usd"), "scale": 1.0, + "orient": (0.70711, 0.0, 0.0, 0.70711), "surface_z": 0.0, "pos": (0.5, 0.0), + "top_offset": 0.0, "height": 1.05, "kinematic": False}, + "packing": {"usd": ("packing_table", "SM_HeavyDutyPackingTable_C02_01_physics.usd"), "scale": 0.01, + "orient": (1.0, 0.0, 0.0, 0.0), "surface_z": 0.994, "pos": (0.0, 0.0), + "top_offset": 0.994, "height": 0.994, "kinematic": True}, + } + # Asset USDs; empty -> the prebuilt assets committed under `assets/`. + asset_dir: str = "" + case_usd: str = "" + card_usd: str = "" + + def __post_init__(self) -> None: + assets = asset_path(Path(__file__).resolve().parents[1] / "assets") + self.asset_dir = self.asset_dir or str(assets) + self.case_usd = self.case_usd or str(Path(self.asset_dir) / "pc" / "pc_case_gpu_assembly_mb.usd") + self.card_usd = self.card_usd or str(Path(self.asset_dir) / "pc" / "gpu_rtx2060.usd") + preset = self.TABLES[self.table] + if self.surface_z is None: + self.surface_z = preset["surface_z"] + if self.workbench_pos is None: + self.workbench_pos = preset["pos"] + self.workbench_usd = self.workbench_usd or str(assets / "props" / preset["usd"][0] / preset["usd"][1]) + + +@SCENES.register("pc_gpu_local") +class PcGpuAssemblyScene(BaseScene): + cfg: PcGpuAssemblySceneCfg + + # Object physics remains nominal in this pilot; L4 uses the recorded noise channel. + PHYSICAL_PARAMS = {'card_mass': None, 'card_friction': None, 'case_friction': None} + VISUAL_PARAMS = {'light_intensity': {'dist': 'choice', 'options': [1600., 2500., 3400.]}} + CAMERAS = {'front': {'eye': (-.1, -1.06, 1.282), 'target': (.42, -.08, .06), + 'focal': 16., 'bands': { + 'eye_x': {'dist': 'uniform', 'lo': -.125, 'hi': -.075}, + 'eye_y': {'dist': 'uniform', 'lo': -1.085, 'hi': -1.035}, + 'target_x': {'dist': 'uniform', 'lo': .405, 'hi': .435}}}} + + def apply_visual_params(self, env, values): + # Render-only light; never touches geometry, contact, or robot control. + from pxr import UsdLux + if 'light_intensity' in values: + prim = env.sim.stage.GetPrimAtPath('/World/light') + UsdLux.LightAPI(prim).GetIntensityAttr().Set(float(values['light_intensity'])) + + # Card-local y extent of the body collision slab (from gpu_rtx2060.usd `/gpu/collision/body`: + # backplate plane -2 mm, fan-shroud plane +32.8 mm around the PCB-tab-centre origin — the + # collider is trimmed to the VISUAL shell). The stand's rails flank THESE faces — the same + # pair a parallel-jaw grasp pinches. + CARD_BODY_Y: ClassVar[tuple[float, float]] = (-0.002, 0.0328) + + def __init__(self, cfg: PcGpuAssemblySceneCfg | None = None) -> None: + super().__init__(cfg or PcGpuAssemblySceneCfg()) + + # ----- assets ------------------------------------------------------------------------------- + def assets(self) -> dict[str, Any]: + """Floor, dome light, table, the PC case lying on it (kinematic, with the invisible slot + fixture), and one loose graphics card. The card loads with the high solver-iteration count + the snug channel needs.""" + import isaaclab.sim as sim_utils + from isaaclab.assets import AssetBaseCfg, RigidObjectCfg + + c = self.cfg + for usd in (c.case_usd, c.card_usd): + if not Path(usd).is_file(): + raise FileNotFoundError( + f"{usd} not found — the pc-gpu assets ship with the repo under " + f"`suites/assembly/assets/`" + ) + preset = c.TABLES[c.table] + wx, wy = c.workbench_pos + table_z = c.surface_z - preset["top_offset"] + ground_z = c.surface_z - preset["height"] + table_spawn = sim_utils.UsdFileCfg(usd_path=c.workbench_usd, scale=(preset["scale"],) * 3) + if preset["kinematic"]: + table_spawn.rigid_props = sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True) + + cx, cy = c.card_init_xy + assets: dict[str, Any] = { + "ground": AssetBaseCfg( + prim_path="/World/ground", + spawn=sim_utils.GroundPlaneCfg(usd_path=str( + asset_path(Path(__file__).resolve().parents[1] / "assets") / "props" / "ground" / "default_ground.usd")), + init_state=AssetBaseCfg.InitialStateCfg(pos=(0.0, 0.0, ground_z)), + ), + "light": AssetBaseCfg( + prim_path="/World/light", + spawn=sim_utils.DomeLightCfg(intensity=c.light_intensity, color=(0.9, 0.9, 0.9)), + ), + "workbench": AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/Table", + init_state=AssetBaseCfg.InitialStateCfg(pos=(wx, wy, table_z), rot=preset["orient"]), + spawn=table_spawn, + ), + # The case: kinematic; the invisible fixture inside it (slot channel + rear-panel + # cutout frame) is what the card mates with. Fixture contact offsets are set here + # (not just authored in the asset) so the 0.15 mm/side channel grip never fights + # speculative contacts. + "case": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Case", + spawn=sim_utils.UsdFileCfg( + usd_path=c.case_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.case_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True), + ), + init_state=RigidObjectCfg.InitialStateCfg(pos=(wx, wy, c.surface_z + c.case_lift)), + ), + # Card contact offset must stay well below the channel grip (0.15 mm/side) or + # speculative contacts choke the fit. + "card": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Card", + spawn=sim_utils.UsdFileCfg( + usd_path=c.card_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.card_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg( + solver_position_iteration_count=192, + solver_velocity_iteration_count=1, + max_depenetration_velocity=0.02, + linear_damping=2.0, + angular_damping=2.0, + ), + mass_props=sim_utils.MassPropertiesCfg(mass=c.card_mass), + ), + init_state=RigidObjectCfg.InitialStateCfg( + pos=(wx + cx, wy + cy, c.surface_z + c.card_init_z), rot=c.card_init_quat + ), + ), + } + if c.card_stand: + # Foam holder for a gripper env: three STATIC boxes (no rigid body). The floor pad's + # top is the card spawn height (`card_init_z` = the tab-bottom plane), the two rails + # flank the body slab's faces at `card_stand_gap` per side. Rail tops stay 35+ mm + # below the pick grip band, so descending open fingers never meet them. + y0, y1 = self.CARD_BODY_Y + mid_y = wy + cy + 0.5 * (y0 + y1) # body-slab mid-plane (the pinch/rail centre) + half_gap = 0.5 * (y1 - y0) + c.card_stand_gap # rail inner face off the mid-plane + rail_h, rail_t = 0.055, 0.008 + foam = sim_utils.PreviewSurfaceCfg(diffuse_color=(0.17, 0.17, 0.2), roughness=0.9) + for name, size, pos in ( + ("card_stand_floor", (0.11, 0.09, c.card_init_z), + (wx + cx, mid_y, c.surface_z + 0.5 * c.card_init_z)), + ("card_stand_rail_pcb", (0.11, rail_t, rail_h), + (wx + cx, mid_y - half_gap - 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ("card_stand_rail_fan", (0.11, rail_t, rail_h), + (wx + cx, mid_y + half_gap + 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ): + assets[name] = AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/" + "".join(p.capitalize() for p in name.split("_")), + spawn=sim_utils.CuboidCfg( + size=size, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=0.001, rest_offset=0.0 + ), + visual_material=foam, + ), + init_state=AssetBaseCfg.InitialStateCfg(pos=pos), + ) + # Immutable visual-only set dressing, clear of the arm/task swept volume. + assets['pilot_parts_box'] = AssetBaseCfg( + prim_path='{ENV_REGEX_NS}/PilotPartsBox', + spawn=sim_utils.CuboidCfg(size=(.075, .075, .045), + visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(.08, .35, .65), roughness=.8)), + init_state=AssetBaseCfg.InitialStateCfg(pos=(.90, .36, c.surface_z+.0225))) + return assets + + def sim_cfg(self) -> SimCfg: + return SimCfg( + dt=1.0 / 120.0, + physx={ + "solver_type": 1, + "bounce_threshold_velocity": 0.2, + "friction_offset_threshold": 0.01, + "friction_correlation_distance": 0.00625, + "gpu_max_rigid_contact_count": 2**23, + "gpu_max_rigid_patch_count": 2**23, + "gpu_collision_stack_size": 2**28, + "gpu_max_num_partitions": 1, + }, + ) + + # ----- lifecycle ---------------------------------------------------------------------------- + + def __getattr__(self, name: str): + # Legacy surface: the grasp contract's state used to live directly on the scene + # (inline machinery era) and existing solutions read it there — forward to the + # composed contract. `__getattr__` only fires for attributes not found normally. + if name.startswith("_gw_") and "grasp_weld" in self.__dict__: + return getattr(self.grasp_weld, name) + raise AttributeError(name) + + def bind(self, env: BaseEnv) -> None: + """Grab the case + card handles, cache env origins, and set the part frictions.""" + super().bind(env) + self.case: RigidObject = env.iscene["case"] + self.card: RigidObject = env.iscene["card"] + self.env_origins = env.iscene.env_origins + self._set_friction(self.case, self.cfg.case_friction) + self._set_friction(self.card, self.cfg.card_friction) + self.grasp_weld = GraspWeldContract(self) # composed, publishes self.grasp_held + self.grasp_weld.bind() + + def grasp_sites(self) -> list: + """One grip band: across the body slab (faces at CARD_BODY_Y, 34.8 mm wide), along the + card's upper length — band centre 15 mm below the shroud's top edge (z 0.1155).""" + y = 0.5 * (self.CARD_BODY_Y[0] + self.CARD_BODY_Y[1]) + return [("card", self.card, (-0.045, y, 0.1005), (0.045, y, 0.1005), (0.030, 0.039))] + + def post_step(self, env_ids: torch.Tensor | None = None) -> None: + """Reconcile the weld-on-closure grasp contract every physics substep.""" + self.grasp_weld.step() + + def _set_friction(self, asset, value: float) -> None: + """Overwrite the static + dynamic friction on every shape of `asset` (across all envs).""" + mats = asset.root_physx_view.get_material_properties() + mats[..., 0:2] = value # [static, dynamic, restitution] + asset.root_physx_view.set_material_properties(mats, torch.arange(self.env.num_envs, device="cpu")) + + def reset(self, env_ids: torch.Tensor) -> None: + """Fresh, unassembled start: the case pinned at spawn, the card lying backplate-down on + the table beside it, with xy jitter.""" + c = self.cfg + dev = self.env.device + m = len(env_ids) + origin = self.env_origins[env_ids] # (m, 3) + wx, wy = c.workbench_pos + cx, cy = c.card_init_xy + + st = torch.zeros(m, 13, device=dev) + st[:, 0:3] = origin + torch.tensor((wx + cx, wy + cy, c.surface_z + c.card_init_z), device=dev) + st[:, 0:2] += (torch.rand(m, 2, device=dev) * 2 - 1) * c.reset_pos_jitter + # Small in-holder variation: below rail clearance; no case/slot changes. + st[:, :2] += (torch.rand(m, 2, device=dev)*2-1) * torch.tensor( + [c.pilot_jitter_x, c.pilot_jitter_y], device=dev) + st[:, 3:7] = torch.tensor(c.card_init_quat, device=dev) + self.card.write_root_state_to_sim(st, env_ids) + self.grasp_weld.release_all(env_ids) + + # ----- state (full, restorable) ------------------------------------------------------------- + def get_state(self, env_ids: torch.Tensor) -> dict[str, Any]: + """Restorable scene state: world root states (13) of the case and the card, plus the + grasp-weld holds.""" + return { + "case": self.case.data.root_state_w[env_ids].clone(), + "card": self.card.data.root_state_w[env_ids].clone(), + **self.grasp_weld.state(env_ids), + } + + def set_state(self, state: dict[str, Any], env_ids: torch.Tensor) -> None: + """Restore what `get_state` returned. The card's insertion depth is fully captured by its + root state, so the channel holds it on restore.""" + self.case.write_root_pose_to_sim(state["case"][:, 0:7], env_ids) + self.card.write_root_state_to_sim(state["card"], env_ids) + self.grasp_weld.restore(state, env_ids) + + # ----- description -------------------------------------------------------------------------- + def describe(self) -> str: + if self.cfg.card_stand: + card = ( + "Beside the case a loose graphics card stands upright in a foam holder, already " + "in its installation orientation.\nGoal: grip the card by its top edge, lift it " + "straight out of the holder, " + ) + else: + card = ( + "Beside the case lies a loose graphics card, backplate down.\nGoal: lift the " + "card upright (fans toward the case front), " + ) + return ( + "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard " + "facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O " + f"panel has an open expansion-slot cutout. {card}" + "lower it into the case with its I/O bracket just forward of the rear panel, slide " + "it rearward until the bracket and ports pass through the cutout, line its PCB edge " + "connector up with the x16 slot, and press it straight down until it bottoms out. " + "A seated card stays put on its own. The task is complete once the card is fully " + "seated." + + " A fixed blue parts box decorates the far corner, outside the task volume." + + ( + " The card holds in a firm pinch: close the fingers squarely across its body " + "slab near the top edge and the grip locks; open wide to release." + if self.cfg.grasp_weld + else "" + ) + ) + + # ----- progress (public: seated()/engaged(); reads how far the assembly has got) ------------- + def engaged(self) -> torch.Tensor: + """Tab depth below the slot mouth, shape (num_envs,), in metres (negative = still above + the slot). The card bottoms out on the channel floor at 0.005 depth.""" + rel = self._card_offset_in_case() # (n, 3), zero at the seated pose + return (self.cfg.slot_mouth_z - self.cfg.seat_pos[2]) - rel[:, 2] + + def seated(self) -> torch.Tensor: + """Whether the card is seated in the slot, shape (num_envs,): pressed down to `seat_depth` + below the mouth, within `align_xy` of the seated point, and aligned in tilt AND heading.""" + c = self.cfg + rel = self._card_offset_in_case() # (n, 3) + depth_ok = self.engaged() >= c.seat_depth + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return depth_ok & xy_ok & up_ok & yaw_ok + + def success(self) -> torch.Tensor: + """(N,) bool: the card seated in its slot — this scene's assembled state + (scene-level success alias, matching the other suites' surface).""" + return self.seated() + + def _card_offset_in_case(self) -> torch.Tensor: + """The card origin's offset from the seated point, in the case's local frame, shape + (num_envs, 3). Zero means the card origin sits exactly at the seated pose.""" + from isaaclab.utils.math import quat_apply_inverse + + rel = quat_apply_inverse( + self.case.data.root_quat_w, self.card.data.root_pos_w - self.case.data.root_pos_w + ) + return rel - torch.tensor(self.cfg.seat_pos, device=rel.device) + + def _axis_cos(self, axis: int) -> torch.Tensor: + """cos of the angle between the card's and the case's local `axis` (0=x: heading along the + slot, 2=z: insertion axis), shape (num_envs,). Seated orientation = the case's own axes.""" + from isaaclab.utils.math import quat_apply + + e = torch.zeros(3, device=self.env.device) + e[axis] = 1.0 + e = e.expand(self.env.num_envs, 3) + case_ax = quat_apply(self.case.data.root_quat_w, e) + card_ax = quat_apply(self.card.data.root_quat_w, e) + return (card_ax * case_ax).sum(dim=-1) + + # Grasp-weld contract: composed `GraspWeldContract` (robobench.core.grasp_weld), + # created in `bind()`; this scene supplies the part-side `grasp_sites()`. + # Grasp-weld contract constants — the scene's public knobs (solutions read these off the + # scene, e.g. `scene.GRASP_PINCH_OFFSET`); the composed GraspWeldContract consumes them. + GRASP_HAND_BODY: ClassVar[str] = "panda_hand" + GRASP_FINGER_JOINTS: ClassVar[str] = "panda_finger_joint.*" + GRASP_PINCH_OFFSET: ClassVar[float] = 0.1034 # hand origin -> finger-pad centre, along approach + GRASP_POOL: ClassVar[int] = 8 # engages per (env, site) per run; exhausted -> warn, no weld + GRASP_STALL: ClassVar[float] = 0.01 # max |finger vel| sum (m/s): fingers stopped ON the part + GRASP_DEBOUNCE: ClassVar[int] = 8 # consecutive qualifying substeps before the weld engages + GRASP_RELEASE_MARGIN: ClassVar[float] = 0.008 # release at window-top + this (m), hysteresis + diff --git a/provenance/generation_code/p01_scene/strategy/SUMMARY.txt b/provenance/generation_code/p01_scene/strategy/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..ccb6cf2dd81a73bd05afac20479db7cab4d69753 --- /dev/null +++ b/provenance/generation_code/p01_scene/strategy/SUMMARY.txt @@ -0,0 +1 @@ +Base state-feedback program; Original central grasp and direct high transfer. DART offered only during high free-space transport. Initially UNTESTED; see pilot_report.json. diff --git a/provenance/generation_code/p01_scene/strategy/meta.json b/provenance/generation_code/p01_scene/strategy/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..b757d286fd3093f00473b2d326eb66b2db3a1293 --- /dev/null +++ b/provenance/generation_code/p01_scene/strategy/meta.json @@ -0,0 +1,7 @@ +{ + "episodes": 0, + "successes": 0, + "success_rate": null, + "batches": [], + "refreshed": null +} diff --git a/provenance/generation_code/p01_scene/strategy/parameters.json b/provenance/generation_code/p01_scene/strategy/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/p01_scene/strategy/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/p01_scene/strategy/solve.py b/provenance/generation_code/p01_scene/strategy/solve.py new file mode 100644 index 0000000000000000000000000000000000000000..08f2e05206e3d9cf1ce2c68c5b1efeec47cfb3a0 --- /dev/null +++ b/provenance/generation_code/p01_scene/strategy/solve.py @@ -0,0 +1,173 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([0,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/generation_code/p02_strategy/grader.py b/provenance/generation_code/p02_strategy/grader.py new file mode 100644 index 0000000000000000000000000000000000000000..f96305d2b7744b5d7dee62a8d3735c4f160dc251 --- /dev/null +++ b/provenance/generation_code/p02_strategy/grader.py @@ -0,0 +1,89 @@ +"""Grader for the pc_gpu scene: the graphics card seated in the PCIe x16 slot. + +Rubric stages (weights and modes live in RUBRIC): + grasped the card has been taken in the weld-on-closure grip (`scene.grasp_held`) — the + scene's own grasp state; a milestone, latched. Also true once the card is + aligned in the slot (a card in the slot was necessarily carried there), so the + rung nests under `aligned`. Under an embodiment with no gripper (the weld + contract disabled, e.g. robot="null") the grasp state does not exist and the + rung reads from that implication alone + aligned the card lined up on the slot — origin within `align_xy` of the seated point, + up axis within `align_axis_deg` of the slot axis, length axis within + `align_yaw_deg` of the slot heading: the scene's own three non-depth seat gates + pressed tab depth below the slot mouth (`slot_mouth_z`, the scene's own `engaged()`) + as a fraction of `seat_depth`, counted only while aligned — so it is 1.0 iff + the scene calls the card seated +Every stage is per env. The rungs nest (seated => aligned => grasped), so progress reaches +1.0 exactly when the card is seated, and for a grader built after the pick as well as one +that watched it. The rear-panel pass-through is NOT a rung: the cutout's geometry is not in +the scene cfg, so it cannot be read from state without an invented tolerance. Success is +the scene's `seated()` per env — depth, xy, tilt AND heading gates — read when the +delivery finishes. +""" + +from __future__ import annotations + +import math + +from robobench.core import BaseGrader +# baked by data_engine init: grade against the LOCAL scene copy (../scene/scene.py), +# exec'd at most once per process under a fixed module key. +import importlib.util as _ilu +import sys as _sys +from pathlib import Path as _Path + +if "datagen_local_scene" not in _sys.modules: + import robobench as _rb + _rb.discover() + _p = _Path(__file__).resolve().parent.parent / "scene" / "scene.py" + _spec = _ilu.spec_from_file_location("datagen_local_scene", _p) + _m = _ilu.module_from_spec(_spec) + _sys.modules["datagen_local_scene"] = _m + _spec.loader.exec_module(_m) +PcGpuAssemblyScene = _sys.modules["datagen_local_scene"].PcGpuAssemblyScene + + +class PcGpuAssemblyGrader(BaseGrader): + """The card seated in its slot — pressed to depth, centred, upright, heading along the slot. + + Ladder: grasped 0.33 · aligned 0.67 · pressed 1.00 — three equal rungs for the three + steps of the task (take the card, line it up on the slot, press it home); the last rung + is a linear ramp of tab depth from the slot mouth (`slot_mouth_z`) to `seat_depth`. + """ + + SCENE = PcGpuAssemblyScene + RUBRIC = (("grasped", 1, "once"), ("aligned", 1), ("pressed", 1)) + scene: PcGpuAssemblyScene + + def setup(self) -> None: + import torch + + # `grasp_held` exists only while the weld contract is live (a gripper on the stage). + self._has_grasp = hasattr(self.scene, "grasp_held") + self._grasped = torch.zeros(self.num_envs, dtype=torch.bool, + device=self.scene.engaged().device) # latch: card ever held + + def check_success(self): + return self.scene.seated() # (num_envs,) + + def _aligned(self): + """(num_envs,) bool: the scene's xy + tilt + heading seat gates, without depth.""" + c = self.scene.cfg + rel = self.scene._card_offset_in_case() # (n, 3), zero at the seated pose — privileged + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self.scene._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self.scene._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return xy_ok & up_ok & yaw_ok + + # ---- rubric stages — each returns a (num_envs,) value in [0, 1] --------------------- + def grasped(self): + if self._has_grasp: + self._grasped |= self.scene.grasp_held.any(dim=1) + return (self._grasped | self._aligned()).float() + + def aligned(self): + return self._aligned().float() + + def pressed(self): + depth = self.scene.engaged() # (n,) tab depth below the slot mouth (m) + return self._aligned() * (depth / self.scene.cfg.seat_depth).clamp(0.0, 1.0) diff --git a/provenance/generation_code/p02_strategy/scene.py b/provenance/generation_code/p02_strategy/scene.py new file mode 100644 index 0000000000000000000000000000000000000000..6b9875f21af8ba405baed9e6ddbdbce958c004c7 --- /dev/null +++ b/provenance/generation_code/p02_strategy/scene.py @@ -0,0 +1,450 @@ +"""PcGpuAssemblyScene — insert a graphics card into the PC's PCIe slot. + +The same gaming-PC case as `pc_motherboard` lies on its side on the table, opening up, motherboard +facing the ceiling — but here the board's PCIe area is the work site. Beside the case lies a loose +RTX 2060 (extracted from the PC model as its own rigid body, backplate down). Goal (carried here, +no task layer): stand the card upright over the primary x16 slot, line its PCB edge up with the +slot, and press it straight down until it seats. + +The case is one kinematic body that never moves — the PC model stays visual-only; its physics is +an invisible fixture inside the case body: a channel whose walls grip the card's 4 mm PCB tab at +0.15 mm/side (flaring to a 1.2 mm/side funnel mouth — idealizing the real slot's spring +contacts, and capping the unscrewed card's gravity roll at ~2 deg), a floor whose top is the +model's own seated tab height, end stops (~1.6 mm play), a flush board plate so a dropped card +rests on the board face, and a REAR I/O PANEL frame around the expansion-slot cutout — so the +card must be placed inside the case, slid rearward until its bracket/ports pass through the +opening, and only then pressed down (a straight vertical drop is physically blocked by the +panel above the cutout, exactly like a real build). The card's origin is its +PCB-tab bottom CENTRE with axes equal to the case's, so the seated pose is just `seat_pos` + +identity orientation in the case frame, and insertion depth is a z difference. + +Heavy imports (isaaclab, pxr) are deferred so importing this module stays app-free. +""" + +from __future__ import annotations + +import math +from dataclasses import dataclass +from pathlib import Path +from robobench.core.assets import asset_path +from typing import TYPE_CHECKING, Any, ClassVar + +import torch + +from robobench.core import GraspWeldContract, SCENES, BaseCfg, BaseScene, SimCfg + +if TYPE_CHECKING: + from isaaclab.assets import RigidObject + + from robobench.core import BaseEnv + + +@dataclass +class PcGpuAssemblySceneCfg(BaseCfg): + """Config for `PcGpuAssemblyScene`. Nothing is locked — a variant is just a copy with a few + fields changed.""" + + # --- the curriculum / difficulty dials ----------------------------------------------- + # The card is "seated" when — in the case's frame — its tab is >= `seat_depth` below the slot + # mouth, its origin is within `align_xy` of the seated point, and its axes are within + # `align_axis_deg` (tilt) / `align_yaw_deg` (heading along the slot) of the case's. The full + # stroke from the slot mouth to the channel floor is 5 mm, so 4 mm separates "seated" from + # "merely resting in the mouth". + seat_depth: float = 0.004 # min tab depth below the slot mouth (m) to count as seated + align_xy: float = 0.003 # max distance (m) of the card origin from the seated point + align_axis_deg: float = 3.0 # max tilt of the card's up axis off the slot axis (deg) + align_yaw_deg: float = 3.0 # max heading error of the card's length axis (deg) + reset_pos_jitter: float = 0.01 # uniform +/- xy jitter for the loose card at reset (m) + # Part friction (static = dynamic), set on every shape at bind. The moving card runs moderately + # slick against a grippier fixed case, so it slides down the channel but holds seat. + card_friction: float = 0.3 + case_friction: float = 0.75 + # Weld-on-closure grasping (the benchmark's auto-weld contract, PhysX + # form — the grasp-weld machinery at the end of this scene class): + # close the fingers squarely across the card's body slab near its top edge and the card welds + # to the hand; open wide to release. Gripper envs only (no-op under robot="null"). + grasp_weld: bool = True + grasp_weld_dist: float = 0.010 # pinch-point-to-grip-band engage radius (m) + + pilot_jitter_x: float = 0.004 + pilot_jitter_y: float = 0.0007 + + # --- structure, reset layout, masses, asset paths (fixed) ------------------------------- + # Seated card origin (its PCB-tab bottom centre) in the case's local frame; orientation seated + # = the case's own axes (identity). Baked into the committed USDs (keep in sync if they change). + seat_pos: tuple[float, float, float] = (-0.01595, 0.0293, 0.0035) + slot_mouth_z: float = 0.0085 # slot top in the case frame: depth datum (5 mm at full seat) + board_top: float = 0.0 # board face height in the case frame (the asset's own origin) + case_lift: float = 0.0289 # board face above the side panel the case lies on + card_mass: float = 1.0 # dual-fan RTX 2060 (kg) + light_intensity: float = 2500.0 + # Loose card start pose: lying backplate-down on the table beside the case (+x side; the case + # spans x < 0.13 and the lying card's tail reaches origin_x - 0.132). + card_init_xy: tuple[float, float] = (0.28, 0.0) # card start xy (table-rel.) + card_init_z: float = 0.0022 # origin height lying backplate-down (backplate plane -2 mm) + card_init_quat: tuple[float, float, float, float] = (0.70711, 0.70711, 0.0, 0.0) # flat + card_contact_offset: float = 0.0001 # well below the 0.15 mm/side channel grip + case_contact_offset: float = 0.0001 # ditto for the slot fixture's walls + # Optional foam holder (a floor pad + two rails flanking the card's 36 mm body slab) that + # presents the card UPRIGHT for a parallel-jaw grasp. The lying default is ungraspable by a + # Franka gripper: flat on its backplate the card's only sub-80 mm dimension (the 36 mm body + # thickness) points UP, so no top-down or side pinch can straddle it. Enable together with an + # upright `card_init_quat` (identity = the seated orientation) and `card_init_z` = the + # holder's floor top; the rails cap the free card's lean at ~3 deg and the pick pulls + # straight up out of them. + card_stand: bool = False + card_stand_gap: float = 0.0025 # rail clearance per side around the body slab (m) + # Selectable work surface (same presets as the sibling scenes). + table: str = "lab_table" # which work surface: "lab_table" | "packing" + surface_z: float | None = None # table-top height (m); None -> the preset's + workbench_pos: tuple[float, float] | None = None # xy the table sits at; None -> preset + workbench_usd: str = "" # empty -> the preset's vendored USD + TABLES: ClassVar[dict[str, dict[str, Any]]] = { + "lab_table": {"usd": ("lab_table", "table_instanceable.usd"), "scale": 1.0, + "orient": (0.70711, 0.0, 0.0, 0.70711), "surface_z": 0.0, "pos": (0.5, 0.0), + "top_offset": 0.0, "height": 1.05, "kinematic": False}, + "packing": {"usd": ("packing_table", "SM_HeavyDutyPackingTable_C02_01_physics.usd"), "scale": 0.01, + "orient": (1.0, 0.0, 0.0, 0.0), "surface_z": 0.994, "pos": (0.0, 0.0), + "top_offset": 0.994, "height": 0.994, "kinematic": True}, + } + # Asset USDs; empty -> the prebuilt assets committed under `assets/`. + asset_dir: str = "" + case_usd: str = "" + card_usd: str = "" + + def __post_init__(self) -> None: + assets = asset_path(Path(__file__).resolve().parents[1] / "assets") + self.asset_dir = self.asset_dir or str(assets) + self.case_usd = self.case_usd or str(Path(self.asset_dir) / "pc" / "pc_case_gpu_assembly_mb.usd") + self.card_usd = self.card_usd or str(Path(self.asset_dir) / "pc" / "gpu_rtx2060.usd") + preset = self.TABLES[self.table] + if self.surface_z is None: + self.surface_z = preset["surface_z"] + if self.workbench_pos is None: + self.workbench_pos = preset["pos"] + self.workbench_usd = self.workbench_usd or str(assets / "props" / preset["usd"][0] / preset["usd"][1]) + + +@SCENES.register("pc_gpu_local") +class PcGpuAssemblyScene(BaseScene): + cfg: PcGpuAssemblySceneCfg + + # Object physics remains nominal in this pilot; L4 uses the recorded noise channel. + PHYSICAL_PARAMS = {'card_mass': None, 'card_friction': None, 'case_friction': None} + VISUAL_PARAMS = {'light_intensity': {'dist': 'choice', 'options': [1600., 2500., 3400.]}} + CAMERAS = {'front': {'eye': (-.1, -1.06, 1.282), 'target': (.42, -.08, .06), + 'focal': 16., 'bands': { + 'eye_x': {'dist': 'uniform', 'lo': -.125, 'hi': -.075}, + 'eye_y': {'dist': 'uniform', 'lo': -1.085, 'hi': -1.035}, + 'target_x': {'dist': 'uniform', 'lo': .405, 'hi': .435}}}} + + def apply_visual_params(self, env, values): + # Render-only light; never touches geometry, contact, or robot control. + from pxr import UsdLux + if 'light_intensity' in values: + prim = env.sim.stage.GetPrimAtPath('/World/light') + UsdLux.LightAPI(prim).GetIntensityAttr().Set(float(values['light_intensity'])) + + # Card-local y extent of the body collision slab (from gpu_rtx2060.usd `/gpu/collision/body`: + # backplate plane -2 mm, fan-shroud plane +32.8 mm around the PCB-tab-centre origin — the + # collider is trimmed to the VISUAL shell). The stand's rails flank THESE faces — the same + # pair a parallel-jaw grasp pinches. + CARD_BODY_Y: ClassVar[tuple[float, float]] = (-0.002, 0.0328) + + def __init__(self, cfg: PcGpuAssemblySceneCfg | None = None) -> None: + super().__init__(cfg or PcGpuAssemblySceneCfg()) + + # ----- assets ------------------------------------------------------------------------------- + def assets(self) -> dict[str, Any]: + """Floor, dome light, table, the PC case lying on it (kinematic, with the invisible slot + fixture), and one loose graphics card. The card loads with the high solver-iteration count + the snug channel needs.""" + import isaaclab.sim as sim_utils + from isaaclab.assets import AssetBaseCfg, RigidObjectCfg + + c = self.cfg + for usd in (c.case_usd, c.card_usd): + if not Path(usd).is_file(): + raise FileNotFoundError( + f"{usd} not found — the pc-gpu assets ship with the repo under " + f"`suites/assembly/assets/`" + ) + preset = c.TABLES[c.table] + wx, wy = c.workbench_pos + table_z = c.surface_z - preset["top_offset"] + ground_z = c.surface_z - preset["height"] + table_spawn = sim_utils.UsdFileCfg(usd_path=c.workbench_usd, scale=(preset["scale"],) * 3) + if preset["kinematic"]: + table_spawn.rigid_props = sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True) + + cx, cy = c.card_init_xy + assets: dict[str, Any] = { + "ground": AssetBaseCfg( + prim_path="/World/ground", + spawn=sim_utils.GroundPlaneCfg(usd_path=str( + asset_path(Path(__file__).resolve().parents[1] / "assets") / "props" / "ground" / "default_ground.usd")), + init_state=AssetBaseCfg.InitialStateCfg(pos=(0.0, 0.0, ground_z)), + ), + "light": AssetBaseCfg( + prim_path="/World/light", + spawn=sim_utils.DomeLightCfg(intensity=c.light_intensity, color=(0.9, 0.9, 0.9)), + ), + "workbench": AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/Table", + init_state=AssetBaseCfg.InitialStateCfg(pos=(wx, wy, table_z), rot=preset["orient"]), + spawn=table_spawn, + ), + # The case: kinematic; the invisible fixture inside it (slot channel + rear-panel + # cutout frame) is what the card mates with. Fixture contact offsets are set here + # (not just authored in the asset) so the 0.15 mm/side channel grip never fights + # speculative contacts. + "case": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Case", + spawn=sim_utils.UsdFileCfg( + usd_path=c.case_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.case_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True), + ), + init_state=RigidObjectCfg.InitialStateCfg(pos=(wx, wy, c.surface_z + c.case_lift)), + ), + # Card contact offset must stay well below the channel grip (0.15 mm/side) or + # speculative contacts choke the fit. + "card": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Card", + spawn=sim_utils.UsdFileCfg( + usd_path=c.card_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.card_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg( + solver_position_iteration_count=192, + solver_velocity_iteration_count=1, + max_depenetration_velocity=0.02, + linear_damping=2.0, + angular_damping=2.0, + ), + mass_props=sim_utils.MassPropertiesCfg(mass=c.card_mass), + ), + init_state=RigidObjectCfg.InitialStateCfg( + pos=(wx + cx, wy + cy, c.surface_z + c.card_init_z), rot=c.card_init_quat + ), + ), + } + if c.card_stand: + # Foam holder for a gripper env: three STATIC boxes (no rigid body). The floor pad's + # top is the card spawn height (`card_init_z` = the tab-bottom plane), the two rails + # flank the body slab's faces at `card_stand_gap` per side. Rail tops stay 35+ mm + # below the pick grip band, so descending open fingers never meet them. + y0, y1 = self.CARD_BODY_Y + mid_y = wy + cy + 0.5 * (y0 + y1) # body-slab mid-plane (the pinch/rail centre) + half_gap = 0.5 * (y1 - y0) + c.card_stand_gap # rail inner face off the mid-plane + rail_h, rail_t = 0.055, 0.008 + foam = sim_utils.PreviewSurfaceCfg(diffuse_color=(0.17, 0.17, 0.2), roughness=0.9) + for name, size, pos in ( + ("card_stand_floor", (0.11, 0.09, c.card_init_z), + (wx + cx, mid_y, c.surface_z + 0.5 * c.card_init_z)), + ("card_stand_rail_pcb", (0.11, rail_t, rail_h), + (wx + cx, mid_y - half_gap - 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ("card_stand_rail_fan", (0.11, rail_t, rail_h), + (wx + cx, mid_y + half_gap + 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ): + assets[name] = AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/" + "".join(p.capitalize() for p in name.split("_")), + spawn=sim_utils.CuboidCfg( + size=size, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=0.001, rest_offset=0.0 + ), + visual_material=foam, + ), + init_state=AssetBaseCfg.InitialStateCfg(pos=pos), + ) + # Immutable visual-only set dressing, clear of the arm/task swept volume. + assets['pilot_parts_box'] = AssetBaseCfg( + prim_path='{ENV_REGEX_NS}/PilotPartsBox', + spawn=sim_utils.CuboidCfg(size=(.075, .075, .045), + visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(.08, .35, .65), roughness=.8)), + init_state=AssetBaseCfg.InitialStateCfg(pos=(.90, .36, c.surface_z+.0225))) + return assets + + def sim_cfg(self) -> SimCfg: + return SimCfg( + dt=1.0 / 120.0, + physx={ + "solver_type": 1, + "bounce_threshold_velocity": 0.2, + "friction_offset_threshold": 0.01, + "friction_correlation_distance": 0.00625, + "gpu_max_rigid_contact_count": 2**23, + "gpu_max_rigid_patch_count": 2**23, + "gpu_collision_stack_size": 2**28, + "gpu_max_num_partitions": 1, + }, + ) + + # ----- lifecycle ---------------------------------------------------------------------------- + + def __getattr__(self, name: str): + # Legacy surface: the grasp contract's state used to live directly on the scene + # (inline machinery era) and existing solutions read it there — forward to the + # composed contract. `__getattr__` only fires for attributes not found normally. + if name.startswith("_gw_") and "grasp_weld" in self.__dict__: + return getattr(self.grasp_weld, name) + raise AttributeError(name) + + def bind(self, env: BaseEnv) -> None: + """Grab the case + card handles, cache env origins, and set the part frictions.""" + super().bind(env) + self.case: RigidObject = env.iscene["case"] + self.card: RigidObject = env.iscene["card"] + self.env_origins = env.iscene.env_origins + self._set_friction(self.case, self.cfg.case_friction) + self._set_friction(self.card, self.cfg.card_friction) + self.grasp_weld = GraspWeldContract(self) # composed, publishes self.grasp_held + self.grasp_weld.bind() + + def grasp_sites(self) -> list: + """One grip band: across the body slab (faces at CARD_BODY_Y, 34.8 mm wide), along the + card's upper length — band centre 15 mm below the shroud's top edge (z 0.1155).""" + y = 0.5 * (self.CARD_BODY_Y[0] + self.CARD_BODY_Y[1]) + return [("card", self.card, (-0.045, y, 0.1005), (0.045, y, 0.1005), (0.030, 0.039))] + + def post_step(self, env_ids: torch.Tensor | None = None) -> None: + """Reconcile the weld-on-closure grasp contract every physics substep.""" + self.grasp_weld.step() + + def _set_friction(self, asset, value: float) -> None: + """Overwrite the static + dynamic friction on every shape of `asset` (across all envs).""" + mats = asset.root_physx_view.get_material_properties() + mats[..., 0:2] = value # [static, dynamic, restitution] + asset.root_physx_view.set_material_properties(mats, torch.arange(self.env.num_envs, device="cpu")) + + def reset(self, env_ids: torch.Tensor) -> None: + """Fresh, unassembled start: the case pinned at spawn, the card lying backplate-down on + the table beside it, with xy jitter.""" + c = self.cfg + dev = self.env.device + m = len(env_ids) + origin = self.env_origins[env_ids] # (m, 3) + wx, wy = c.workbench_pos + cx, cy = c.card_init_xy + + st = torch.zeros(m, 13, device=dev) + st[:, 0:3] = origin + torch.tensor((wx + cx, wy + cy, c.surface_z + c.card_init_z), device=dev) + st[:, 0:2] += (torch.rand(m, 2, device=dev) * 2 - 1) * c.reset_pos_jitter + # Small in-holder variation: below rail clearance; no case/slot changes. + st[:, :2] += (torch.rand(m, 2, device=dev)*2-1) * torch.tensor( + [c.pilot_jitter_x, c.pilot_jitter_y], device=dev) + st[:, 3:7] = torch.tensor(c.card_init_quat, device=dev) + self.card.write_root_state_to_sim(st, env_ids) + self.grasp_weld.release_all(env_ids) + + # ----- state (full, restorable) ------------------------------------------------------------- + def get_state(self, env_ids: torch.Tensor) -> dict[str, Any]: + """Restorable scene state: world root states (13) of the case and the card, plus the + grasp-weld holds.""" + return { + "case": self.case.data.root_state_w[env_ids].clone(), + "card": self.card.data.root_state_w[env_ids].clone(), + **self.grasp_weld.state(env_ids), + } + + def set_state(self, state: dict[str, Any], env_ids: torch.Tensor) -> None: + """Restore what `get_state` returned. The card's insertion depth is fully captured by its + root state, so the channel holds it on restore.""" + self.case.write_root_pose_to_sim(state["case"][:, 0:7], env_ids) + self.card.write_root_state_to_sim(state["card"], env_ids) + self.grasp_weld.restore(state, env_ids) + + # ----- description -------------------------------------------------------------------------- + def describe(self) -> str: + if self.cfg.card_stand: + card = ( + "Beside the case a loose graphics card stands upright in a foam holder, already " + "in its installation orientation.\nGoal: grip the card by its top edge, lift it " + "straight out of the holder, " + ) + else: + card = ( + "Beside the case lies a loose graphics card, backplate down.\nGoal: lift the " + "card upright (fans toward the case front), " + ) + return ( + "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard " + "facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O " + f"panel has an open expansion-slot cutout. {card}" + "lower it into the case with its I/O bracket just forward of the rear panel, slide " + "it rearward until the bracket and ports pass through the cutout, line its PCB edge " + "connector up with the x16 slot, and press it straight down until it bottoms out. " + "A seated card stays put on its own. The task is complete once the card is fully " + "seated." + + " A fixed blue parts box decorates the far corner, outside the task volume." + + ( + " The card holds in a firm pinch: close the fingers squarely across its body " + "slab near the top edge and the grip locks; open wide to release." + if self.cfg.grasp_weld + else "" + ) + ) + + # ----- progress (public: seated()/engaged(); reads how far the assembly has got) ------------- + def engaged(self) -> torch.Tensor: + """Tab depth below the slot mouth, shape (num_envs,), in metres (negative = still above + the slot). The card bottoms out on the channel floor at 0.005 depth.""" + rel = self._card_offset_in_case() # (n, 3), zero at the seated pose + return (self.cfg.slot_mouth_z - self.cfg.seat_pos[2]) - rel[:, 2] + + def seated(self) -> torch.Tensor: + """Whether the card is seated in the slot, shape (num_envs,): pressed down to `seat_depth` + below the mouth, within `align_xy` of the seated point, and aligned in tilt AND heading.""" + c = self.cfg + rel = self._card_offset_in_case() # (n, 3) + depth_ok = self.engaged() >= c.seat_depth + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return depth_ok & xy_ok & up_ok & yaw_ok + + def success(self) -> torch.Tensor: + """(N,) bool: the card seated in its slot — this scene's assembled state + (scene-level success alias, matching the other suites' surface).""" + return self.seated() + + def _card_offset_in_case(self) -> torch.Tensor: + """The card origin's offset from the seated point, in the case's local frame, shape + (num_envs, 3). Zero means the card origin sits exactly at the seated pose.""" + from isaaclab.utils.math import quat_apply_inverse + + rel = quat_apply_inverse( + self.case.data.root_quat_w, self.card.data.root_pos_w - self.case.data.root_pos_w + ) + return rel - torch.tensor(self.cfg.seat_pos, device=rel.device) + + def _axis_cos(self, axis: int) -> torch.Tensor: + """cos of the angle between the card's and the case's local `axis` (0=x: heading along the + slot, 2=z: insertion axis), shape (num_envs,). Seated orientation = the case's own axes.""" + from isaaclab.utils.math import quat_apply + + e = torch.zeros(3, device=self.env.device) + e[axis] = 1.0 + e = e.expand(self.env.num_envs, 3) + case_ax = quat_apply(self.case.data.root_quat_w, e) + card_ax = quat_apply(self.card.data.root_quat_w, e) + return (card_ax * case_ax).sum(dim=-1) + + # Grasp-weld contract: composed `GraspWeldContract` (robobench.core.grasp_weld), + # created in `bind()`; this scene supplies the part-side `grasp_sites()`. + # Grasp-weld contract constants — the scene's public knobs (solutions read these off the + # scene, e.g. `scene.GRASP_PINCH_OFFSET`); the composed GraspWeldContract consumes them. + GRASP_HAND_BODY: ClassVar[str] = "panda_hand" + GRASP_FINGER_JOINTS: ClassVar[str] = "panda_finger_joint.*" + GRASP_PINCH_OFFSET: ClassVar[float] = 0.1034 # hand origin -> finger-pad centre, along approach + GRASP_POOL: ClassVar[int] = 8 # engages per (env, site) per run; exhausted -> warn, no weld + GRASP_STALL: ClassVar[float] = 0.01 # max |finger vel| sum (m/s): fingers stopped ON the part + GRASP_DEBOUNCE: ClassVar[int] = 8 # consecutive qualifying substeps before the weld engages + GRASP_RELEASE_MARGIN: ClassVar[float] = 0.008 # release at window-top + this (m), hysteresis + diff --git a/provenance/generation_code/p02_strategy/strategy/SUMMARY.txt b/provenance/generation_code/p02_strategy/strategy/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..c1a1b7aa3d0951b2611c7774eb697c651a8c0bb1 --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/SUMMARY.txt @@ -0,0 +1 @@ +Base state-feedback program; 20 mm off-centre grasp plus side staging waypoint at (0.34,-0.14), then normal insertion. DART offered only during high free-space transport. Initially UNTESTED; see pilot_report.json. diff --git a/provenance/generation_code/p02_strategy/strategy/meta.json b/provenance/generation_code/p02_strategy/strategy/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..c60fcb856868a7664aff23b94bf6ead519be9a3d --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/meta.json @@ -0,0 +1,7 @@ +{ + "episodes": 0, + "successes": 0, + "success_rate": null, + "batches": [], + "refreshed": "2026-10-12T10:47:21+00:00" +} diff --git a/provenance/generation_code/p02_strategy/strategy/parameters.json b/provenance/generation_code/p02_strategy/strategy/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/p02_strategy/strategy/phases/phase_0/SUMMARY.txt b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..0deb0f41e5dc2831c3b75210abd880042280de79 --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/SUMMARY.txt @@ -0,0 +1 @@ +start: normal scene reset. preinsert: own physical prefix to above-case stop before recording. Suffix observes grasp transform afresh; PI integrators restart at zero. No dataset/teleport. UNTESTED. diff --git a/provenance/generation_code/p02_strategy/strategy/phases/phase_0/meta.json b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..c60fcb856868a7664aff23b94bf6ead519be9a3d --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/meta.json @@ -0,0 +1,7 @@ +{ + "episodes": 0, + "successes": 0, + "success_rate": null, + "batches": [], + "refreshed": "2026-10-12T10:47:21+00:00" +} diff --git a/provenance/generation_code/p02_strategy/strategy/phases/phase_0/parameters.json b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/p02_strategy/strategy/phases/phase_0/reset/preinsert.py b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/reset/preinsert.py new file mode 100644 index 0000000000000000000000000000000000000000..831799540ba57524bb101c849b77cce67f234254 --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/reset/preinsert.py @@ -0,0 +1,15 @@ +"""Physical entry: run own strategy prefix before recording, never teleport.""" +from pathlib import Path +import importlib.util + +def reset_0(env): + p=Path(__file__).resolve().parents[1]/'solve_by_phase.py' + spec=importlib.util.spec_from_file_location('pilot_entry_prefix',p) + m=importlib.util.module_from_spec(spec);spec.loader.exec_module(m) + class CleanPrefix: + def __getattr__(self,n): return getattr(env,n) + def step(self,action,noise=None): return env.step(action) + m.solve(CleanPrefix(),entry='start',stop_after='above_case') + assert bool(env.scene.grasp_held[0].any()) + assert not bool(env.scene.seated()[0]) + assert float(env.scene.card.data.root_pos_w[0,2]) > float(env.scene.cfg.surface_z)+.24 diff --git a/provenance/generation_code/p02_strategy/strategy/phases/phase_0/reset/start.py b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/reset/start.py new file mode 100644 index 0000000000000000000000000000000000000000..24ebd64d151ee8d7422608f711bc258028263758 --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/reset/start.py @@ -0,0 +1,12 @@ +"""Natural-start entry builder. + +Rename/add files so each filename matches one solve_by_phase.ENTRIES key. +Each batch sweeps every reset file. +""" + +from __future__ import annotations + + +def reset_0(env) -> None: + """The scene reset already satisfies the natural-start precondition.""" + return diff --git a/provenance/generation_code/p02_strategy/strategy/phases/phase_0/solve_by_phase.py b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/solve_by_phase.py new file mode 100644 index 0000000000000000000000000000000000000000..a7dfdbc543edc6779e2fc7aa58f0dd1a22a1f369 --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/phases/phase_0/solve_by_phase.py @@ -0,0 +1,178 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([-.020,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Different plan: side staging stop, then transfer to the case entry. + waypoint=cp(); waypoint[0]=.34; waypoint[1]=-.14 + waypoint[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(waypoint,case_q),.0172,30,'transport_waypoint',tol=.003) + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/generation_code/p02_strategy/strategy/solve.py b/provenance/generation_code/p02_strategy/strategy/solve.py new file mode 100644 index 0000000000000000000000000000000000000000..a7dfdbc543edc6779e2fc7aa58f0dd1a22a1f369 --- /dev/null +++ b/provenance/generation_code/p02_strategy/strategy/solve.py @@ -0,0 +1,178 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([-.020,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Different plan: side staging stop, then transfer to the case entry. + waypoint=cp(); waypoint[0]=.34; waypoint[1]=-.14 + waypoint[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(waypoint,case_q),.0172,30,'transport_waypoint',tol=.003) + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/generation_code/p03_dynamics/grader.py b/provenance/generation_code/p03_dynamics/grader.py new file mode 100644 index 0000000000000000000000000000000000000000..f96305d2b7744b5d7dee62a8d3735c4f160dc251 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/grader.py @@ -0,0 +1,89 @@ +"""Grader for the pc_gpu scene: the graphics card seated in the PCIe x16 slot. + +Rubric stages (weights and modes live in RUBRIC): + grasped the card has been taken in the weld-on-closure grip (`scene.grasp_held`) — the + scene's own grasp state; a milestone, latched. Also true once the card is + aligned in the slot (a card in the slot was necessarily carried there), so the + rung nests under `aligned`. Under an embodiment with no gripper (the weld + contract disabled, e.g. robot="null") the grasp state does not exist and the + rung reads from that implication alone + aligned the card lined up on the slot — origin within `align_xy` of the seated point, + up axis within `align_axis_deg` of the slot axis, length axis within + `align_yaw_deg` of the slot heading: the scene's own three non-depth seat gates + pressed tab depth below the slot mouth (`slot_mouth_z`, the scene's own `engaged()`) + as a fraction of `seat_depth`, counted only while aligned — so it is 1.0 iff + the scene calls the card seated +Every stage is per env. The rungs nest (seated => aligned => grasped), so progress reaches +1.0 exactly when the card is seated, and for a grader built after the pick as well as one +that watched it. The rear-panel pass-through is NOT a rung: the cutout's geometry is not in +the scene cfg, so it cannot be read from state without an invented tolerance. Success is +the scene's `seated()` per env — depth, xy, tilt AND heading gates — read when the +delivery finishes. +""" + +from __future__ import annotations + +import math + +from robobench.core import BaseGrader +# baked by data_engine init: grade against the LOCAL scene copy (../scene/scene.py), +# exec'd at most once per process under a fixed module key. +import importlib.util as _ilu +import sys as _sys +from pathlib import Path as _Path + +if "datagen_local_scene" not in _sys.modules: + import robobench as _rb + _rb.discover() + _p = _Path(__file__).resolve().parent.parent / "scene" / "scene.py" + _spec = _ilu.spec_from_file_location("datagen_local_scene", _p) + _m = _ilu.module_from_spec(_spec) + _sys.modules["datagen_local_scene"] = _m + _spec.loader.exec_module(_m) +PcGpuAssemblyScene = _sys.modules["datagen_local_scene"].PcGpuAssemblyScene + + +class PcGpuAssemblyGrader(BaseGrader): + """The card seated in its slot — pressed to depth, centred, upright, heading along the slot. + + Ladder: grasped 0.33 · aligned 0.67 · pressed 1.00 — three equal rungs for the three + steps of the task (take the card, line it up on the slot, press it home); the last rung + is a linear ramp of tab depth from the slot mouth (`slot_mouth_z`) to `seat_depth`. + """ + + SCENE = PcGpuAssemblyScene + RUBRIC = (("grasped", 1, "once"), ("aligned", 1), ("pressed", 1)) + scene: PcGpuAssemblyScene + + def setup(self) -> None: + import torch + + # `grasp_held` exists only while the weld contract is live (a gripper on the stage). + self._has_grasp = hasattr(self.scene, "grasp_held") + self._grasped = torch.zeros(self.num_envs, dtype=torch.bool, + device=self.scene.engaged().device) # latch: card ever held + + def check_success(self): + return self.scene.seated() # (num_envs,) + + def _aligned(self): + """(num_envs,) bool: the scene's xy + tilt + heading seat gates, without depth.""" + c = self.scene.cfg + rel = self.scene._card_offset_in_case() # (n, 3), zero at the seated pose — privileged + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self.scene._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self.scene._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return xy_ok & up_ok & yaw_ok + + # ---- rubric stages — each returns a (num_envs,) value in [0, 1] --------------------- + def grasped(self): + if self._has_grasp: + self._grasped |= self.scene.grasp_held.any(dim=1) + return (self._grasped | self._aligned()).float() + + def aligned(self): + return self._aligned().float() + + def pressed(self): + depth = self.scene.engaged() # (n,) tab depth below the slot mouth (m) + return self._aligned() * (depth / self.scene.cfg.seat_depth).clamp(0.0, 1.0) diff --git a/provenance/generation_code/p03_dynamics/scene.py b/provenance/generation_code/p03_dynamics/scene.py new file mode 100644 index 0000000000000000000000000000000000000000..6b9875f21af8ba405baed9e6ddbdbce958c004c7 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/scene.py @@ -0,0 +1,450 @@ +"""PcGpuAssemblyScene — insert a graphics card into the PC's PCIe slot. + +The same gaming-PC case as `pc_motherboard` lies on its side on the table, opening up, motherboard +facing the ceiling — but here the board's PCIe area is the work site. Beside the case lies a loose +RTX 2060 (extracted from the PC model as its own rigid body, backplate down). Goal (carried here, +no task layer): stand the card upright over the primary x16 slot, line its PCB edge up with the +slot, and press it straight down until it seats. + +The case is one kinematic body that never moves — the PC model stays visual-only; its physics is +an invisible fixture inside the case body: a channel whose walls grip the card's 4 mm PCB tab at +0.15 mm/side (flaring to a 1.2 mm/side funnel mouth — idealizing the real slot's spring +contacts, and capping the unscrewed card's gravity roll at ~2 deg), a floor whose top is the +model's own seated tab height, end stops (~1.6 mm play), a flush board plate so a dropped card +rests on the board face, and a REAR I/O PANEL frame around the expansion-slot cutout — so the +card must be placed inside the case, slid rearward until its bracket/ports pass through the +opening, and only then pressed down (a straight vertical drop is physically blocked by the +panel above the cutout, exactly like a real build). The card's origin is its +PCB-tab bottom CENTRE with axes equal to the case's, so the seated pose is just `seat_pos` + +identity orientation in the case frame, and insertion depth is a z difference. + +Heavy imports (isaaclab, pxr) are deferred so importing this module stays app-free. +""" + +from __future__ import annotations + +import math +from dataclasses import dataclass +from pathlib import Path +from robobench.core.assets import asset_path +from typing import TYPE_CHECKING, Any, ClassVar + +import torch + +from robobench.core import GraspWeldContract, SCENES, BaseCfg, BaseScene, SimCfg + +if TYPE_CHECKING: + from isaaclab.assets import RigidObject + + from robobench.core import BaseEnv + + +@dataclass +class PcGpuAssemblySceneCfg(BaseCfg): + """Config for `PcGpuAssemblyScene`. Nothing is locked — a variant is just a copy with a few + fields changed.""" + + # --- the curriculum / difficulty dials ----------------------------------------------- + # The card is "seated" when — in the case's frame — its tab is >= `seat_depth` below the slot + # mouth, its origin is within `align_xy` of the seated point, and its axes are within + # `align_axis_deg` (tilt) / `align_yaw_deg` (heading along the slot) of the case's. The full + # stroke from the slot mouth to the channel floor is 5 mm, so 4 mm separates "seated" from + # "merely resting in the mouth". + seat_depth: float = 0.004 # min tab depth below the slot mouth (m) to count as seated + align_xy: float = 0.003 # max distance (m) of the card origin from the seated point + align_axis_deg: float = 3.0 # max tilt of the card's up axis off the slot axis (deg) + align_yaw_deg: float = 3.0 # max heading error of the card's length axis (deg) + reset_pos_jitter: float = 0.01 # uniform +/- xy jitter for the loose card at reset (m) + # Part friction (static = dynamic), set on every shape at bind. The moving card runs moderately + # slick against a grippier fixed case, so it slides down the channel but holds seat. + card_friction: float = 0.3 + case_friction: float = 0.75 + # Weld-on-closure grasping (the benchmark's auto-weld contract, PhysX + # form — the grasp-weld machinery at the end of this scene class): + # close the fingers squarely across the card's body slab near its top edge and the card welds + # to the hand; open wide to release. Gripper envs only (no-op under robot="null"). + grasp_weld: bool = True + grasp_weld_dist: float = 0.010 # pinch-point-to-grip-band engage radius (m) + + pilot_jitter_x: float = 0.004 + pilot_jitter_y: float = 0.0007 + + # --- structure, reset layout, masses, asset paths (fixed) ------------------------------- + # Seated card origin (its PCB-tab bottom centre) in the case's local frame; orientation seated + # = the case's own axes (identity). Baked into the committed USDs (keep in sync if they change). + seat_pos: tuple[float, float, float] = (-0.01595, 0.0293, 0.0035) + slot_mouth_z: float = 0.0085 # slot top in the case frame: depth datum (5 mm at full seat) + board_top: float = 0.0 # board face height in the case frame (the asset's own origin) + case_lift: float = 0.0289 # board face above the side panel the case lies on + card_mass: float = 1.0 # dual-fan RTX 2060 (kg) + light_intensity: float = 2500.0 + # Loose card start pose: lying backplate-down on the table beside the case (+x side; the case + # spans x < 0.13 and the lying card's tail reaches origin_x - 0.132). + card_init_xy: tuple[float, float] = (0.28, 0.0) # card start xy (table-rel.) + card_init_z: float = 0.0022 # origin height lying backplate-down (backplate plane -2 mm) + card_init_quat: tuple[float, float, float, float] = (0.70711, 0.70711, 0.0, 0.0) # flat + card_contact_offset: float = 0.0001 # well below the 0.15 mm/side channel grip + case_contact_offset: float = 0.0001 # ditto for the slot fixture's walls + # Optional foam holder (a floor pad + two rails flanking the card's 36 mm body slab) that + # presents the card UPRIGHT for a parallel-jaw grasp. The lying default is ungraspable by a + # Franka gripper: flat on its backplate the card's only sub-80 mm dimension (the 36 mm body + # thickness) points UP, so no top-down or side pinch can straddle it. Enable together with an + # upright `card_init_quat` (identity = the seated orientation) and `card_init_z` = the + # holder's floor top; the rails cap the free card's lean at ~3 deg and the pick pulls + # straight up out of them. + card_stand: bool = False + card_stand_gap: float = 0.0025 # rail clearance per side around the body slab (m) + # Selectable work surface (same presets as the sibling scenes). + table: str = "lab_table" # which work surface: "lab_table" | "packing" + surface_z: float | None = None # table-top height (m); None -> the preset's + workbench_pos: tuple[float, float] | None = None # xy the table sits at; None -> preset + workbench_usd: str = "" # empty -> the preset's vendored USD + TABLES: ClassVar[dict[str, dict[str, Any]]] = { + "lab_table": {"usd": ("lab_table", "table_instanceable.usd"), "scale": 1.0, + "orient": (0.70711, 0.0, 0.0, 0.70711), "surface_z": 0.0, "pos": (0.5, 0.0), + "top_offset": 0.0, "height": 1.05, "kinematic": False}, + "packing": {"usd": ("packing_table", "SM_HeavyDutyPackingTable_C02_01_physics.usd"), "scale": 0.01, + "orient": (1.0, 0.0, 0.0, 0.0), "surface_z": 0.994, "pos": (0.0, 0.0), + "top_offset": 0.994, "height": 0.994, "kinematic": True}, + } + # Asset USDs; empty -> the prebuilt assets committed under `assets/`. + asset_dir: str = "" + case_usd: str = "" + card_usd: str = "" + + def __post_init__(self) -> None: + assets = asset_path(Path(__file__).resolve().parents[1] / "assets") + self.asset_dir = self.asset_dir or str(assets) + self.case_usd = self.case_usd or str(Path(self.asset_dir) / "pc" / "pc_case_gpu_assembly_mb.usd") + self.card_usd = self.card_usd or str(Path(self.asset_dir) / "pc" / "gpu_rtx2060.usd") + preset = self.TABLES[self.table] + if self.surface_z is None: + self.surface_z = preset["surface_z"] + if self.workbench_pos is None: + self.workbench_pos = preset["pos"] + self.workbench_usd = self.workbench_usd or str(assets / "props" / preset["usd"][0] / preset["usd"][1]) + + +@SCENES.register("pc_gpu_local") +class PcGpuAssemblyScene(BaseScene): + cfg: PcGpuAssemblySceneCfg + + # Object physics remains nominal in this pilot; L4 uses the recorded noise channel. + PHYSICAL_PARAMS = {'card_mass': None, 'card_friction': None, 'case_friction': None} + VISUAL_PARAMS = {'light_intensity': {'dist': 'choice', 'options': [1600., 2500., 3400.]}} + CAMERAS = {'front': {'eye': (-.1, -1.06, 1.282), 'target': (.42, -.08, .06), + 'focal': 16., 'bands': { + 'eye_x': {'dist': 'uniform', 'lo': -.125, 'hi': -.075}, + 'eye_y': {'dist': 'uniform', 'lo': -1.085, 'hi': -1.035}, + 'target_x': {'dist': 'uniform', 'lo': .405, 'hi': .435}}}} + + def apply_visual_params(self, env, values): + # Render-only light; never touches geometry, contact, or robot control. + from pxr import UsdLux + if 'light_intensity' in values: + prim = env.sim.stage.GetPrimAtPath('/World/light') + UsdLux.LightAPI(prim).GetIntensityAttr().Set(float(values['light_intensity'])) + + # Card-local y extent of the body collision slab (from gpu_rtx2060.usd `/gpu/collision/body`: + # backplate plane -2 mm, fan-shroud plane +32.8 mm around the PCB-tab-centre origin — the + # collider is trimmed to the VISUAL shell). The stand's rails flank THESE faces — the same + # pair a parallel-jaw grasp pinches. + CARD_BODY_Y: ClassVar[tuple[float, float]] = (-0.002, 0.0328) + + def __init__(self, cfg: PcGpuAssemblySceneCfg | None = None) -> None: + super().__init__(cfg or PcGpuAssemblySceneCfg()) + + # ----- assets ------------------------------------------------------------------------------- + def assets(self) -> dict[str, Any]: + """Floor, dome light, table, the PC case lying on it (kinematic, with the invisible slot + fixture), and one loose graphics card. The card loads with the high solver-iteration count + the snug channel needs.""" + import isaaclab.sim as sim_utils + from isaaclab.assets import AssetBaseCfg, RigidObjectCfg + + c = self.cfg + for usd in (c.case_usd, c.card_usd): + if not Path(usd).is_file(): + raise FileNotFoundError( + f"{usd} not found — the pc-gpu assets ship with the repo under " + f"`suites/assembly/assets/`" + ) + preset = c.TABLES[c.table] + wx, wy = c.workbench_pos + table_z = c.surface_z - preset["top_offset"] + ground_z = c.surface_z - preset["height"] + table_spawn = sim_utils.UsdFileCfg(usd_path=c.workbench_usd, scale=(preset["scale"],) * 3) + if preset["kinematic"]: + table_spawn.rigid_props = sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True) + + cx, cy = c.card_init_xy + assets: dict[str, Any] = { + "ground": AssetBaseCfg( + prim_path="/World/ground", + spawn=sim_utils.GroundPlaneCfg(usd_path=str( + asset_path(Path(__file__).resolve().parents[1] / "assets") / "props" / "ground" / "default_ground.usd")), + init_state=AssetBaseCfg.InitialStateCfg(pos=(0.0, 0.0, ground_z)), + ), + "light": AssetBaseCfg( + prim_path="/World/light", + spawn=sim_utils.DomeLightCfg(intensity=c.light_intensity, color=(0.9, 0.9, 0.9)), + ), + "workbench": AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/Table", + init_state=AssetBaseCfg.InitialStateCfg(pos=(wx, wy, table_z), rot=preset["orient"]), + spawn=table_spawn, + ), + # The case: kinematic; the invisible fixture inside it (slot channel + rear-panel + # cutout frame) is what the card mates with. Fixture contact offsets are set here + # (not just authored in the asset) so the 0.15 mm/side channel grip never fights + # speculative contacts. + "case": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Case", + spawn=sim_utils.UsdFileCfg( + usd_path=c.case_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.case_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True), + ), + init_state=RigidObjectCfg.InitialStateCfg(pos=(wx, wy, c.surface_z + c.case_lift)), + ), + # Card contact offset must stay well below the channel grip (0.15 mm/side) or + # speculative contacts choke the fit. + "card": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Card", + spawn=sim_utils.UsdFileCfg( + usd_path=c.card_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.card_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg( + solver_position_iteration_count=192, + solver_velocity_iteration_count=1, + max_depenetration_velocity=0.02, + linear_damping=2.0, + angular_damping=2.0, + ), + mass_props=sim_utils.MassPropertiesCfg(mass=c.card_mass), + ), + init_state=RigidObjectCfg.InitialStateCfg( + pos=(wx + cx, wy + cy, c.surface_z + c.card_init_z), rot=c.card_init_quat + ), + ), + } + if c.card_stand: + # Foam holder for a gripper env: three STATIC boxes (no rigid body). The floor pad's + # top is the card spawn height (`card_init_z` = the tab-bottom plane), the two rails + # flank the body slab's faces at `card_stand_gap` per side. Rail tops stay 35+ mm + # below the pick grip band, so descending open fingers never meet them. + y0, y1 = self.CARD_BODY_Y + mid_y = wy + cy + 0.5 * (y0 + y1) # body-slab mid-plane (the pinch/rail centre) + half_gap = 0.5 * (y1 - y0) + c.card_stand_gap # rail inner face off the mid-plane + rail_h, rail_t = 0.055, 0.008 + foam = sim_utils.PreviewSurfaceCfg(diffuse_color=(0.17, 0.17, 0.2), roughness=0.9) + for name, size, pos in ( + ("card_stand_floor", (0.11, 0.09, c.card_init_z), + (wx + cx, mid_y, c.surface_z + 0.5 * c.card_init_z)), + ("card_stand_rail_pcb", (0.11, rail_t, rail_h), + (wx + cx, mid_y - half_gap - 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ("card_stand_rail_fan", (0.11, rail_t, rail_h), + (wx + cx, mid_y + half_gap + 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ): + assets[name] = AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/" + "".join(p.capitalize() for p in name.split("_")), + spawn=sim_utils.CuboidCfg( + size=size, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=0.001, rest_offset=0.0 + ), + visual_material=foam, + ), + init_state=AssetBaseCfg.InitialStateCfg(pos=pos), + ) + # Immutable visual-only set dressing, clear of the arm/task swept volume. + assets['pilot_parts_box'] = AssetBaseCfg( + prim_path='{ENV_REGEX_NS}/PilotPartsBox', + spawn=sim_utils.CuboidCfg(size=(.075, .075, .045), + visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(.08, .35, .65), roughness=.8)), + init_state=AssetBaseCfg.InitialStateCfg(pos=(.90, .36, c.surface_z+.0225))) + return assets + + def sim_cfg(self) -> SimCfg: + return SimCfg( + dt=1.0 / 120.0, + physx={ + "solver_type": 1, + "bounce_threshold_velocity": 0.2, + "friction_offset_threshold": 0.01, + "friction_correlation_distance": 0.00625, + "gpu_max_rigid_contact_count": 2**23, + "gpu_max_rigid_patch_count": 2**23, + "gpu_collision_stack_size": 2**28, + "gpu_max_num_partitions": 1, + }, + ) + + # ----- lifecycle ---------------------------------------------------------------------------- + + def __getattr__(self, name: str): + # Legacy surface: the grasp contract's state used to live directly on the scene + # (inline machinery era) and existing solutions read it there — forward to the + # composed contract. `__getattr__` only fires for attributes not found normally. + if name.startswith("_gw_") and "grasp_weld" in self.__dict__: + return getattr(self.grasp_weld, name) + raise AttributeError(name) + + def bind(self, env: BaseEnv) -> None: + """Grab the case + card handles, cache env origins, and set the part frictions.""" + super().bind(env) + self.case: RigidObject = env.iscene["case"] + self.card: RigidObject = env.iscene["card"] + self.env_origins = env.iscene.env_origins + self._set_friction(self.case, self.cfg.case_friction) + self._set_friction(self.card, self.cfg.card_friction) + self.grasp_weld = GraspWeldContract(self) # composed, publishes self.grasp_held + self.grasp_weld.bind() + + def grasp_sites(self) -> list: + """One grip band: across the body slab (faces at CARD_BODY_Y, 34.8 mm wide), along the + card's upper length — band centre 15 mm below the shroud's top edge (z 0.1155).""" + y = 0.5 * (self.CARD_BODY_Y[0] + self.CARD_BODY_Y[1]) + return [("card", self.card, (-0.045, y, 0.1005), (0.045, y, 0.1005), (0.030, 0.039))] + + def post_step(self, env_ids: torch.Tensor | None = None) -> None: + """Reconcile the weld-on-closure grasp contract every physics substep.""" + self.grasp_weld.step() + + def _set_friction(self, asset, value: float) -> None: + """Overwrite the static + dynamic friction on every shape of `asset` (across all envs).""" + mats = asset.root_physx_view.get_material_properties() + mats[..., 0:2] = value # [static, dynamic, restitution] + asset.root_physx_view.set_material_properties(mats, torch.arange(self.env.num_envs, device="cpu")) + + def reset(self, env_ids: torch.Tensor) -> None: + """Fresh, unassembled start: the case pinned at spawn, the card lying backplate-down on + the table beside it, with xy jitter.""" + c = self.cfg + dev = self.env.device + m = len(env_ids) + origin = self.env_origins[env_ids] # (m, 3) + wx, wy = c.workbench_pos + cx, cy = c.card_init_xy + + st = torch.zeros(m, 13, device=dev) + st[:, 0:3] = origin + torch.tensor((wx + cx, wy + cy, c.surface_z + c.card_init_z), device=dev) + st[:, 0:2] += (torch.rand(m, 2, device=dev) * 2 - 1) * c.reset_pos_jitter + # Small in-holder variation: below rail clearance; no case/slot changes. + st[:, :2] += (torch.rand(m, 2, device=dev)*2-1) * torch.tensor( + [c.pilot_jitter_x, c.pilot_jitter_y], device=dev) + st[:, 3:7] = torch.tensor(c.card_init_quat, device=dev) + self.card.write_root_state_to_sim(st, env_ids) + self.grasp_weld.release_all(env_ids) + + # ----- state (full, restorable) ------------------------------------------------------------- + def get_state(self, env_ids: torch.Tensor) -> dict[str, Any]: + """Restorable scene state: world root states (13) of the case and the card, plus the + grasp-weld holds.""" + return { + "case": self.case.data.root_state_w[env_ids].clone(), + "card": self.card.data.root_state_w[env_ids].clone(), + **self.grasp_weld.state(env_ids), + } + + def set_state(self, state: dict[str, Any], env_ids: torch.Tensor) -> None: + """Restore what `get_state` returned. The card's insertion depth is fully captured by its + root state, so the channel holds it on restore.""" + self.case.write_root_pose_to_sim(state["case"][:, 0:7], env_ids) + self.card.write_root_state_to_sim(state["card"], env_ids) + self.grasp_weld.restore(state, env_ids) + + # ----- description -------------------------------------------------------------------------- + def describe(self) -> str: + if self.cfg.card_stand: + card = ( + "Beside the case a loose graphics card stands upright in a foam holder, already " + "in its installation orientation.\nGoal: grip the card by its top edge, lift it " + "straight out of the holder, " + ) + else: + card = ( + "Beside the case lies a loose graphics card, backplate down.\nGoal: lift the " + "card upright (fans toward the case front), " + ) + return ( + "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard " + "facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O " + f"panel has an open expansion-slot cutout. {card}" + "lower it into the case with its I/O bracket just forward of the rear panel, slide " + "it rearward until the bracket and ports pass through the cutout, line its PCB edge " + "connector up with the x16 slot, and press it straight down until it bottoms out. " + "A seated card stays put on its own. The task is complete once the card is fully " + "seated." + + " A fixed blue parts box decorates the far corner, outside the task volume." + + ( + " The card holds in a firm pinch: close the fingers squarely across its body " + "slab near the top edge and the grip locks; open wide to release." + if self.cfg.grasp_weld + else "" + ) + ) + + # ----- progress (public: seated()/engaged(); reads how far the assembly has got) ------------- + def engaged(self) -> torch.Tensor: + """Tab depth below the slot mouth, shape (num_envs,), in metres (negative = still above + the slot). The card bottoms out on the channel floor at 0.005 depth.""" + rel = self._card_offset_in_case() # (n, 3), zero at the seated pose + return (self.cfg.slot_mouth_z - self.cfg.seat_pos[2]) - rel[:, 2] + + def seated(self) -> torch.Tensor: + """Whether the card is seated in the slot, shape (num_envs,): pressed down to `seat_depth` + below the mouth, within `align_xy` of the seated point, and aligned in tilt AND heading.""" + c = self.cfg + rel = self._card_offset_in_case() # (n, 3) + depth_ok = self.engaged() >= c.seat_depth + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return depth_ok & xy_ok & up_ok & yaw_ok + + def success(self) -> torch.Tensor: + """(N,) bool: the card seated in its slot — this scene's assembled state + (scene-level success alias, matching the other suites' surface).""" + return self.seated() + + def _card_offset_in_case(self) -> torch.Tensor: + """The card origin's offset from the seated point, in the case's local frame, shape + (num_envs, 3). Zero means the card origin sits exactly at the seated pose.""" + from isaaclab.utils.math import quat_apply_inverse + + rel = quat_apply_inverse( + self.case.data.root_quat_w, self.card.data.root_pos_w - self.case.data.root_pos_w + ) + return rel - torch.tensor(self.cfg.seat_pos, device=rel.device) + + def _axis_cos(self, axis: int) -> torch.Tensor: + """cos of the angle between the card's and the case's local `axis` (0=x: heading along the + slot, 2=z: insertion axis), shape (num_envs,). Seated orientation = the case's own axes.""" + from isaaclab.utils.math import quat_apply + + e = torch.zeros(3, device=self.env.device) + e[axis] = 1.0 + e = e.expand(self.env.num_envs, 3) + case_ax = quat_apply(self.case.data.root_quat_w, e) + card_ax = quat_apply(self.card.data.root_quat_w, e) + return (card_ax * case_ax).sum(dim=-1) + + # Grasp-weld contract: composed `GraspWeldContract` (robobench.core.grasp_weld), + # created in `bind()`; this scene supplies the part-side `grasp_sites()`. + # Grasp-weld contract constants — the scene's public knobs (solutions read these off the + # scene, e.g. `scene.GRASP_PINCH_OFFSET`); the composed GraspWeldContract consumes them. + GRASP_HAND_BODY: ClassVar[str] = "panda_hand" + GRASP_FINGER_JOINTS: ClassVar[str] = "panda_finger_joint.*" + GRASP_PINCH_OFFSET: ClassVar[float] = 0.1034 # hand origin -> finger-pad centre, along approach + GRASP_POOL: ClassVar[int] = 8 # engages per (env, site) per run; exhausted -> warn, no weld + GRASP_STALL: ClassVar[float] = 0.01 # max |finger vel| sum (m/s): fingers stopped ON the part + GRASP_DEBOUNCE: ClassVar[int] = 8 # consecutive qualifying substeps before the weld engages + GRASP_RELEASE_MARGIN: ClassVar[float] = 0.008 # release at window-top + this (m), hysteresis + diff --git a/provenance/generation_code/p03_dynamics/strategy/SUMMARY.txt b/provenance/generation_code/p03_dynamics/strategy/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..c1a1b7aa3d0951b2611c7774eb697c651a8c0bb1 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/SUMMARY.txt @@ -0,0 +1 @@ +Base state-feedback program; 20 mm off-centre grasp plus side staging waypoint at (0.34,-0.14), then normal insertion. DART offered only during high free-space transport. Initially UNTESTED; see pilot_report.json. diff --git a/provenance/generation_code/p03_dynamics/strategy/meta.json b/provenance/generation_code/p03_dynamics/strategy/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..c60fcb856868a7664aff23b94bf6ead519be9a3d --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/meta.json @@ -0,0 +1,7 @@ +{ + "episodes": 0, + "successes": 0, + "success_rate": null, + "batches": [], + "refreshed": "2026-10-12T10:47:21+00:00" +} diff --git a/provenance/generation_code/p03_dynamics/strategy/parameters.json b/provenance/generation_code/p03_dynamics/strategy/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/SUMMARY.txt b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..0deb0f41e5dc2831c3b75210abd880042280de79 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/SUMMARY.txt @@ -0,0 +1 @@ +start: normal scene reset. preinsert: own physical prefix to above-case stop before recording. Suffix observes grasp transform afresh; PI integrators restart at zero. No dataset/teleport. UNTESTED. diff --git a/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/meta.json b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..c60fcb856868a7664aff23b94bf6ead519be9a3d --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/meta.json @@ -0,0 +1,7 @@ +{ + "episodes": 0, + "successes": 0, + "success_rate": null, + "batches": [], + "refreshed": "2026-10-12T10:47:21+00:00" +} diff --git a/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/parameters.json b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/reset/preinsert.py b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/reset/preinsert.py new file mode 100644 index 0000000000000000000000000000000000000000..831799540ba57524bb101c849b77cce67f234254 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/reset/preinsert.py @@ -0,0 +1,15 @@ +"""Physical entry: run own strategy prefix before recording, never teleport.""" +from pathlib import Path +import importlib.util + +def reset_0(env): + p=Path(__file__).resolve().parents[1]/'solve_by_phase.py' + spec=importlib.util.spec_from_file_location('pilot_entry_prefix',p) + m=importlib.util.module_from_spec(spec);spec.loader.exec_module(m) + class CleanPrefix: + def __getattr__(self,n): return getattr(env,n) + def step(self,action,noise=None): return env.step(action) + m.solve(CleanPrefix(),entry='start',stop_after='above_case') + assert bool(env.scene.grasp_held[0].any()) + assert not bool(env.scene.seated()[0]) + assert float(env.scene.card.data.root_pos_w[0,2]) > float(env.scene.cfg.surface_z)+.24 diff --git a/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/reset/start.py b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/reset/start.py new file mode 100644 index 0000000000000000000000000000000000000000..24ebd64d151ee8d7422608f711bc258028263758 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/reset/start.py @@ -0,0 +1,12 @@ +"""Natural-start entry builder. + +Rename/add files so each filename matches one solve_by_phase.ENTRIES key. +Each batch sweeps every reset file. +""" + +from __future__ import annotations + + +def reset_0(env) -> None: + """The scene reset already satisfies the natural-start precondition.""" + return diff --git a/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/solve_by_phase.py b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/solve_by_phase.py new file mode 100644 index 0000000000000000000000000000000000000000..a7dfdbc543edc6779e2fc7aa58f0dd1a22a1f369 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/phases/phase_0/solve_by_phase.py @@ -0,0 +1,178 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([-.020,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Different plan: side staging stop, then transfer to the case entry. + waypoint=cp(); waypoint[0]=.34; waypoint[1]=-.14 + waypoint[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(waypoint,case_q),.0172,30,'transport_waypoint',tol=.003) + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/generation_code/p03_dynamics/strategy/solve.py b/provenance/generation_code/p03_dynamics/strategy/solve.py new file mode 100644 index 0000000000000000000000000000000000000000..a7dfdbc543edc6779e2fc7aa58f0dd1a22a1f369 --- /dev/null +++ b/provenance/generation_code/p03_dynamics/strategy/solve.py @@ -0,0 +1,178 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([-.020,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Different plan: side staging stop, then transfer to the case entry. + waypoint=cp(); waypoint[0]=.34; waypoint[1]=-.14 + waypoint[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(waypoint,case_q),.0172,30,'transport_waypoint',tol=.003) + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/generation_code/p04_phase/grader.py b/provenance/generation_code/p04_phase/grader.py new file mode 100644 index 0000000000000000000000000000000000000000..f96305d2b7744b5d7dee62a8d3735c4f160dc251 --- /dev/null +++ b/provenance/generation_code/p04_phase/grader.py @@ -0,0 +1,89 @@ +"""Grader for the pc_gpu scene: the graphics card seated in the PCIe x16 slot. + +Rubric stages (weights and modes live in RUBRIC): + grasped the card has been taken in the weld-on-closure grip (`scene.grasp_held`) — the + scene's own grasp state; a milestone, latched. Also true once the card is + aligned in the slot (a card in the slot was necessarily carried there), so the + rung nests under `aligned`. Under an embodiment with no gripper (the weld + contract disabled, e.g. robot="null") the grasp state does not exist and the + rung reads from that implication alone + aligned the card lined up on the slot — origin within `align_xy` of the seated point, + up axis within `align_axis_deg` of the slot axis, length axis within + `align_yaw_deg` of the slot heading: the scene's own three non-depth seat gates + pressed tab depth below the slot mouth (`slot_mouth_z`, the scene's own `engaged()`) + as a fraction of `seat_depth`, counted only while aligned — so it is 1.0 iff + the scene calls the card seated +Every stage is per env. The rungs nest (seated => aligned => grasped), so progress reaches +1.0 exactly when the card is seated, and for a grader built after the pick as well as one +that watched it. The rear-panel pass-through is NOT a rung: the cutout's geometry is not in +the scene cfg, so it cannot be read from state without an invented tolerance. Success is +the scene's `seated()` per env — depth, xy, tilt AND heading gates — read when the +delivery finishes. +""" + +from __future__ import annotations + +import math + +from robobench.core import BaseGrader +# baked by data_engine init: grade against the LOCAL scene copy (../scene/scene.py), +# exec'd at most once per process under a fixed module key. +import importlib.util as _ilu +import sys as _sys +from pathlib import Path as _Path + +if "datagen_local_scene" not in _sys.modules: + import robobench as _rb + _rb.discover() + _p = _Path(__file__).resolve().parent.parent / "scene" / "scene.py" + _spec = _ilu.spec_from_file_location("datagen_local_scene", _p) + _m = _ilu.module_from_spec(_spec) + _sys.modules["datagen_local_scene"] = _m + _spec.loader.exec_module(_m) +PcGpuAssemblyScene = _sys.modules["datagen_local_scene"].PcGpuAssemblyScene + + +class PcGpuAssemblyGrader(BaseGrader): + """The card seated in its slot — pressed to depth, centred, upright, heading along the slot. + + Ladder: grasped 0.33 · aligned 0.67 · pressed 1.00 — three equal rungs for the three + steps of the task (take the card, line it up on the slot, press it home); the last rung + is a linear ramp of tab depth from the slot mouth (`slot_mouth_z`) to `seat_depth`. + """ + + SCENE = PcGpuAssemblyScene + RUBRIC = (("grasped", 1, "once"), ("aligned", 1), ("pressed", 1)) + scene: PcGpuAssemblyScene + + def setup(self) -> None: + import torch + + # `grasp_held` exists only while the weld contract is live (a gripper on the stage). + self._has_grasp = hasattr(self.scene, "grasp_held") + self._grasped = torch.zeros(self.num_envs, dtype=torch.bool, + device=self.scene.engaged().device) # latch: card ever held + + def check_success(self): + return self.scene.seated() # (num_envs,) + + def _aligned(self): + """(num_envs,) bool: the scene's xy + tilt + heading seat gates, without depth.""" + c = self.scene.cfg + rel = self.scene._card_offset_in_case() # (n, 3), zero at the seated pose — privileged + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self.scene._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self.scene._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return xy_ok & up_ok & yaw_ok + + # ---- rubric stages — each returns a (num_envs,) value in [0, 1] --------------------- + def grasped(self): + if self._has_grasp: + self._grasped |= self.scene.grasp_held.any(dim=1) + return (self._grasped | self._aligned()).float() + + def aligned(self): + return self._aligned().float() + + def pressed(self): + depth = self.scene.engaged() # (n,) tab depth below the slot mouth (m) + return self._aligned() * (depth / self.scene.cfg.seat_depth).clamp(0.0, 1.0) diff --git a/provenance/generation_code/p04_phase/scene.py b/provenance/generation_code/p04_phase/scene.py new file mode 100644 index 0000000000000000000000000000000000000000..6b9875f21af8ba405baed9e6ddbdbce958c004c7 --- /dev/null +++ b/provenance/generation_code/p04_phase/scene.py @@ -0,0 +1,450 @@ +"""PcGpuAssemblyScene — insert a graphics card into the PC's PCIe slot. + +The same gaming-PC case as `pc_motherboard` lies on its side on the table, opening up, motherboard +facing the ceiling — but here the board's PCIe area is the work site. Beside the case lies a loose +RTX 2060 (extracted from the PC model as its own rigid body, backplate down). Goal (carried here, +no task layer): stand the card upright over the primary x16 slot, line its PCB edge up with the +slot, and press it straight down until it seats. + +The case is one kinematic body that never moves — the PC model stays visual-only; its physics is +an invisible fixture inside the case body: a channel whose walls grip the card's 4 mm PCB tab at +0.15 mm/side (flaring to a 1.2 mm/side funnel mouth — idealizing the real slot's spring +contacts, and capping the unscrewed card's gravity roll at ~2 deg), a floor whose top is the +model's own seated tab height, end stops (~1.6 mm play), a flush board plate so a dropped card +rests on the board face, and a REAR I/O PANEL frame around the expansion-slot cutout — so the +card must be placed inside the case, slid rearward until its bracket/ports pass through the +opening, and only then pressed down (a straight vertical drop is physically blocked by the +panel above the cutout, exactly like a real build). The card's origin is its +PCB-tab bottom CENTRE with axes equal to the case's, so the seated pose is just `seat_pos` + +identity orientation in the case frame, and insertion depth is a z difference. + +Heavy imports (isaaclab, pxr) are deferred so importing this module stays app-free. +""" + +from __future__ import annotations + +import math +from dataclasses import dataclass +from pathlib import Path +from robobench.core.assets import asset_path +from typing import TYPE_CHECKING, Any, ClassVar + +import torch + +from robobench.core import GraspWeldContract, SCENES, BaseCfg, BaseScene, SimCfg + +if TYPE_CHECKING: + from isaaclab.assets import RigidObject + + from robobench.core import BaseEnv + + +@dataclass +class PcGpuAssemblySceneCfg(BaseCfg): + """Config for `PcGpuAssemblyScene`. Nothing is locked — a variant is just a copy with a few + fields changed.""" + + # --- the curriculum / difficulty dials ----------------------------------------------- + # The card is "seated" when — in the case's frame — its tab is >= `seat_depth` below the slot + # mouth, its origin is within `align_xy` of the seated point, and its axes are within + # `align_axis_deg` (tilt) / `align_yaw_deg` (heading along the slot) of the case's. The full + # stroke from the slot mouth to the channel floor is 5 mm, so 4 mm separates "seated" from + # "merely resting in the mouth". + seat_depth: float = 0.004 # min tab depth below the slot mouth (m) to count as seated + align_xy: float = 0.003 # max distance (m) of the card origin from the seated point + align_axis_deg: float = 3.0 # max tilt of the card's up axis off the slot axis (deg) + align_yaw_deg: float = 3.0 # max heading error of the card's length axis (deg) + reset_pos_jitter: float = 0.01 # uniform +/- xy jitter for the loose card at reset (m) + # Part friction (static = dynamic), set on every shape at bind. The moving card runs moderately + # slick against a grippier fixed case, so it slides down the channel but holds seat. + card_friction: float = 0.3 + case_friction: float = 0.75 + # Weld-on-closure grasping (the benchmark's auto-weld contract, PhysX + # form — the grasp-weld machinery at the end of this scene class): + # close the fingers squarely across the card's body slab near its top edge and the card welds + # to the hand; open wide to release. Gripper envs only (no-op under robot="null"). + grasp_weld: bool = True + grasp_weld_dist: float = 0.010 # pinch-point-to-grip-band engage radius (m) + + pilot_jitter_x: float = 0.004 + pilot_jitter_y: float = 0.0007 + + # --- structure, reset layout, masses, asset paths (fixed) ------------------------------- + # Seated card origin (its PCB-tab bottom centre) in the case's local frame; orientation seated + # = the case's own axes (identity). Baked into the committed USDs (keep in sync if they change). + seat_pos: tuple[float, float, float] = (-0.01595, 0.0293, 0.0035) + slot_mouth_z: float = 0.0085 # slot top in the case frame: depth datum (5 mm at full seat) + board_top: float = 0.0 # board face height in the case frame (the asset's own origin) + case_lift: float = 0.0289 # board face above the side panel the case lies on + card_mass: float = 1.0 # dual-fan RTX 2060 (kg) + light_intensity: float = 2500.0 + # Loose card start pose: lying backplate-down on the table beside the case (+x side; the case + # spans x < 0.13 and the lying card's tail reaches origin_x - 0.132). + card_init_xy: tuple[float, float] = (0.28, 0.0) # card start xy (table-rel.) + card_init_z: float = 0.0022 # origin height lying backplate-down (backplate plane -2 mm) + card_init_quat: tuple[float, float, float, float] = (0.70711, 0.70711, 0.0, 0.0) # flat + card_contact_offset: float = 0.0001 # well below the 0.15 mm/side channel grip + case_contact_offset: float = 0.0001 # ditto for the slot fixture's walls + # Optional foam holder (a floor pad + two rails flanking the card's 36 mm body slab) that + # presents the card UPRIGHT for a parallel-jaw grasp. The lying default is ungraspable by a + # Franka gripper: flat on its backplate the card's only sub-80 mm dimension (the 36 mm body + # thickness) points UP, so no top-down or side pinch can straddle it. Enable together with an + # upright `card_init_quat` (identity = the seated orientation) and `card_init_z` = the + # holder's floor top; the rails cap the free card's lean at ~3 deg and the pick pulls + # straight up out of them. + card_stand: bool = False + card_stand_gap: float = 0.0025 # rail clearance per side around the body slab (m) + # Selectable work surface (same presets as the sibling scenes). + table: str = "lab_table" # which work surface: "lab_table" | "packing" + surface_z: float | None = None # table-top height (m); None -> the preset's + workbench_pos: tuple[float, float] | None = None # xy the table sits at; None -> preset + workbench_usd: str = "" # empty -> the preset's vendored USD + TABLES: ClassVar[dict[str, dict[str, Any]]] = { + "lab_table": {"usd": ("lab_table", "table_instanceable.usd"), "scale": 1.0, + "orient": (0.70711, 0.0, 0.0, 0.70711), "surface_z": 0.0, "pos": (0.5, 0.0), + "top_offset": 0.0, "height": 1.05, "kinematic": False}, + "packing": {"usd": ("packing_table", "SM_HeavyDutyPackingTable_C02_01_physics.usd"), "scale": 0.01, + "orient": (1.0, 0.0, 0.0, 0.0), "surface_z": 0.994, "pos": (0.0, 0.0), + "top_offset": 0.994, "height": 0.994, "kinematic": True}, + } + # Asset USDs; empty -> the prebuilt assets committed under `assets/`. + asset_dir: str = "" + case_usd: str = "" + card_usd: str = "" + + def __post_init__(self) -> None: + assets = asset_path(Path(__file__).resolve().parents[1] / "assets") + self.asset_dir = self.asset_dir or str(assets) + self.case_usd = self.case_usd or str(Path(self.asset_dir) / "pc" / "pc_case_gpu_assembly_mb.usd") + self.card_usd = self.card_usd or str(Path(self.asset_dir) / "pc" / "gpu_rtx2060.usd") + preset = self.TABLES[self.table] + if self.surface_z is None: + self.surface_z = preset["surface_z"] + if self.workbench_pos is None: + self.workbench_pos = preset["pos"] + self.workbench_usd = self.workbench_usd or str(assets / "props" / preset["usd"][0] / preset["usd"][1]) + + +@SCENES.register("pc_gpu_local") +class PcGpuAssemblyScene(BaseScene): + cfg: PcGpuAssemblySceneCfg + + # Object physics remains nominal in this pilot; L4 uses the recorded noise channel. + PHYSICAL_PARAMS = {'card_mass': None, 'card_friction': None, 'case_friction': None} + VISUAL_PARAMS = {'light_intensity': {'dist': 'choice', 'options': [1600., 2500., 3400.]}} + CAMERAS = {'front': {'eye': (-.1, -1.06, 1.282), 'target': (.42, -.08, .06), + 'focal': 16., 'bands': { + 'eye_x': {'dist': 'uniform', 'lo': -.125, 'hi': -.075}, + 'eye_y': {'dist': 'uniform', 'lo': -1.085, 'hi': -1.035}, + 'target_x': {'dist': 'uniform', 'lo': .405, 'hi': .435}}}} + + def apply_visual_params(self, env, values): + # Render-only light; never touches geometry, contact, or robot control. + from pxr import UsdLux + if 'light_intensity' in values: + prim = env.sim.stage.GetPrimAtPath('/World/light') + UsdLux.LightAPI(prim).GetIntensityAttr().Set(float(values['light_intensity'])) + + # Card-local y extent of the body collision slab (from gpu_rtx2060.usd `/gpu/collision/body`: + # backplate plane -2 mm, fan-shroud plane +32.8 mm around the PCB-tab-centre origin — the + # collider is trimmed to the VISUAL shell). The stand's rails flank THESE faces — the same + # pair a parallel-jaw grasp pinches. + CARD_BODY_Y: ClassVar[tuple[float, float]] = (-0.002, 0.0328) + + def __init__(self, cfg: PcGpuAssemblySceneCfg | None = None) -> None: + super().__init__(cfg or PcGpuAssemblySceneCfg()) + + # ----- assets ------------------------------------------------------------------------------- + def assets(self) -> dict[str, Any]: + """Floor, dome light, table, the PC case lying on it (kinematic, with the invisible slot + fixture), and one loose graphics card. The card loads with the high solver-iteration count + the snug channel needs.""" + import isaaclab.sim as sim_utils + from isaaclab.assets import AssetBaseCfg, RigidObjectCfg + + c = self.cfg + for usd in (c.case_usd, c.card_usd): + if not Path(usd).is_file(): + raise FileNotFoundError( + f"{usd} not found — the pc-gpu assets ship with the repo under " + f"`suites/assembly/assets/`" + ) + preset = c.TABLES[c.table] + wx, wy = c.workbench_pos + table_z = c.surface_z - preset["top_offset"] + ground_z = c.surface_z - preset["height"] + table_spawn = sim_utils.UsdFileCfg(usd_path=c.workbench_usd, scale=(preset["scale"],) * 3) + if preset["kinematic"]: + table_spawn.rigid_props = sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True) + + cx, cy = c.card_init_xy + assets: dict[str, Any] = { + "ground": AssetBaseCfg( + prim_path="/World/ground", + spawn=sim_utils.GroundPlaneCfg(usd_path=str( + asset_path(Path(__file__).resolve().parents[1] / "assets") / "props" / "ground" / "default_ground.usd")), + init_state=AssetBaseCfg.InitialStateCfg(pos=(0.0, 0.0, ground_z)), + ), + "light": AssetBaseCfg( + prim_path="/World/light", + spawn=sim_utils.DomeLightCfg(intensity=c.light_intensity, color=(0.9, 0.9, 0.9)), + ), + "workbench": AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/Table", + init_state=AssetBaseCfg.InitialStateCfg(pos=(wx, wy, table_z), rot=preset["orient"]), + spawn=table_spawn, + ), + # The case: kinematic; the invisible fixture inside it (slot channel + rear-panel + # cutout frame) is what the card mates with. Fixture contact offsets are set here + # (not just authored in the asset) so the 0.15 mm/side channel grip never fights + # speculative contacts. + "case": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Case", + spawn=sim_utils.UsdFileCfg( + usd_path=c.case_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.case_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg(kinematic_enabled=True), + ), + init_state=RigidObjectCfg.InitialStateCfg(pos=(wx, wy, c.surface_z + c.case_lift)), + ), + # Card contact offset must stay well below the channel grip (0.15 mm/side) or + # speculative contacts choke the fit. + "card": RigidObjectCfg( + prim_path="{ENV_REGEX_NS}/Card", + spawn=sim_utils.UsdFileCfg( + usd_path=c.card_usd, + activate_contact_sensors=True, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=c.card_contact_offset, rest_offset=0.0 + ), + rigid_props=sim_utils.RigidBodyPropertiesCfg( + solver_position_iteration_count=192, + solver_velocity_iteration_count=1, + max_depenetration_velocity=0.02, + linear_damping=2.0, + angular_damping=2.0, + ), + mass_props=sim_utils.MassPropertiesCfg(mass=c.card_mass), + ), + init_state=RigidObjectCfg.InitialStateCfg( + pos=(wx + cx, wy + cy, c.surface_z + c.card_init_z), rot=c.card_init_quat + ), + ), + } + if c.card_stand: + # Foam holder for a gripper env: three STATIC boxes (no rigid body). The floor pad's + # top is the card spawn height (`card_init_z` = the tab-bottom plane), the two rails + # flank the body slab's faces at `card_stand_gap` per side. Rail tops stay 35+ mm + # below the pick grip band, so descending open fingers never meet them. + y0, y1 = self.CARD_BODY_Y + mid_y = wy + cy + 0.5 * (y0 + y1) # body-slab mid-plane (the pinch/rail centre) + half_gap = 0.5 * (y1 - y0) + c.card_stand_gap # rail inner face off the mid-plane + rail_h, rail_t = 0.055, 0.008 + foam = sim_utils.PreviewSurfaceCfg(diffuse_color=(0.17, 0.17, 0.2), roughness=0.9) + for name, size, pos in ( + ("card_stand_floor", (0.11, 0.09, c.card_init_z), + (wx + cx, mid_y, c.surface_z + 0.5 * c.card_init_z)), + ("card_stand_rail_pcb", (0.11, rail_t, rail_h), + (wx + cx, mid_y - half_gap - 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ("card_stand_rail_fan", (0.11, rail_t, rail_h), + (wx + cx, mid_y + half_gap + 0.5 * rail_t, c.surface_z + c.card_init_z + 0.5 * rail_h)), + ): + assets[name] = AssetBaseCfg( + prim_path="{ENV_REGEX_NS}/" + "".join(p.capitalize() for p in name.split("_")), + spawn=sim_utils.CuboidCfg( + size=size, + collision_props=sim_utils.CollisionPropertiesCfg( + contact_offset=0.001, rest_offset=0.0 + ), + visual_material=foam, + ), + init_state=AssetBaseCfg.InitialStateCfg(pos=pos), + ) + # Immutable visual-only set dressing, clear of the arm/task swept volume. + assets['pilot_parts_box'] = AssetBaseCfg( + prim_path='{ENV_REGEX_NS}/PilotPartsBox', + spawn=sim_utils.CuboidCfg(size=(.075, .075, .045), + visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(.08, .35, .65), roughness=.8)), + init_state=AssetBaseCfg.InitialStateCfg(pos=(.90, .36, c.surface_z+.0225))) + return assets + + def sim_cfg(self) -> SimCfg: + return SimCfg( + dt=1.0 / 120.0, + physx={ + "solver_type": 1, + "bounce_threshold_velocity": 0.2, + "friction_offset_threshold": 0.01, + "friction_correlation_distance": 0.00625, + "gpu_max_rigid_contact_count": 2**23, + "gpu_max_rigid_patch_count": 2**23, + "gpu_collision_stack_size": 2**28, + "gpu_max_num_partitions": 1, + }, + ) + + # ----- lifecycle ---------------------------------------------------------------------------- + + def __getattr__(self, name: str): + # Legacy surface: the grasp contract's state used to live directly on the scene + # (inline machinery era) and existing solutions read it there — forward to the + # composed contract. `__getattr__` only fires for attributes not found normally. + if name.startswith("_gw_") and "grasp_weld" in self.__dict__: + return getattr(self.grasp_weld, name) + raise AttributeError(name) + + def bind(self, env: BaseEnv) -> None: + """Grab the case + card handles, cache env origins, and set the part frictions.""" + super().bind(env) + self.case: RigidObject = env.iscene["case"] + self.card: RigidObject = env.iscene["card"] + self.env_origins = env.iscene.env_origins + self._set_friction(self.case, self.cfg.case_friction) + self._set_friction(self.card, self.cfg.card_friction) + self.grasp_weld = GraspWeldContract(self) # composed, publishes self.grasp_held + self.grasp_weld.bind() + + def grasp_sites(self) -> list: + """One grip band: across the body slab (faces at CARD_BODY_Y, 34.8 mm wide), along the + card's upper length — band centre 15 mm below the shroud's top edge (z 0.1155).""" + y = 0.5 * (self.CARD_BODY_Y[0] + self.CARD_BODY_Y[1]) + return [("card", self.card, (-0.045, y, 0.1005), (0.045, y, 0.1005), (0.030, 0.039))] + + def post_step(self, env_ids: torch.Tensor | None = None) -> None: + """Reconcile the weld-on-closure grasp contract every physics substep.""" + self.grasp_weld.step() + + def _set_friction(self, asset, value: float) -> None: + """Overwrite the static + dynamic friction on every shape of `asset` (across all envs).""" + mats = asset.root_physx_view.get_material_properties() + mats[..., 0:2] = value # [static, dynamic, restitution] + asset.root_physx_view.set_material_properties(mats, torch.arange(self.env.num_envs, device="cpu")) + + def reset(self, env_ids: torch.Tensor) -> None: + """Fresh, unassembled start: the case pinned at spawn, the card lying backplate-down on + the table beside it, with xy jitter.""" + c = self.cfg + dev = self.env.device + m = len(env_ids) + origin = self.env_origins[env_ids] # (m, 3) + wx, wy = c.workbench_pos + cx, cy = c.card_init_xy + + st = torch.zeros(m, 13, device=dev) + st[:, 0:3] = origin + torch.tensor((wx + cx, wy + cy, c.surface_z + c.card_init_z), device=dev) + st[:, 0:2] += (torch.rand(m, 2, device=dev) * 2 - 1) * c.reset_pos_jitter + # Small in-holder variation: below rail clearance; no case/slot changes. + st[:, :2] += (torch.rand(m, 2, device=dev)*2-1) * torch.tensor( + [c.pilot_jitter_x, c.pilot_jitter_y], device=dev) + st[:, 3:7] = torch.tensor(c.card_init_quat, device=dev) + self.card.write_root_state_to_sim(st, env_ids) + self.grasp_weld.release_all(env_ids) + + # ----- state (full, restorable) ------------------------------------------------------------- + def get_state(self, env_ids: torch.Tensor) -> dict[str, Any]: + """Restorable scene state: world root states (13) of the case and the card, plus the + grasp-weld holds.""" + return { + "case": self.case.data.root_state_w[env_ids].clone(), + "card": self.card.data.root_state_w[env_ids].clone(), + **self.grasp_weld.state(env_ids), + } + + def set_state(self, state: dict[str, Any], env_ids: torch.Tensor) -> None: + """Restore what `get_state` returned. The card's insertion depth is fully captured by its + root state, so the channel holds it on restore.""" + self.case.write_root_pose_to_sim(state["case"][:, 0:7], env_ids) + self.card.write_root_state_to_sim(state["card"], env_ids) + self.grasp_weld.restore(state, env_ids) + + # ----- description -------------------------------------------------------------------------- + def describe(self) -> str: + if self.cfg.card_stand: + card = ( + "Beside the case a loose graphics card stands upright in a foam holder, already " + "in its installation orientation.\nGoal: grip the card by its top edge, lift it " + "straight out of the holder, " + ) + else: + card = ( + "Beside the case lies a loose graphics card, backplate down.\nGoal: lift the " + "card upright (fans toward the case front), " + ) + return ( + "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard " + "facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O " + f"panel has an open expansion-slot cutout. {card}" + "lower it into the case with its I/O bracket just forward of the rear panel, slide " + "it rearward until the bracket and ports pass through the cutout, line its PCB edge " + "connector up with the x16 slot, and press it straight down until it bottoms out. " + "A seated card stays put on its own. The task is complete once the card is fully " + "seated." + + " A fixed blue parts box decorates the far corner, outside the task volume." + + ( + " The card holds in a firm pinch: close the fingers squarely across its body " + "slab near the top edge and the grip locks; open wide to release." + if self.cfg.grasp_weld + else "" + ) + ) + + # ----- progress (public: seated()/engaged(); reads how far the assembly has got) ------------- + def engaged(self) -> torch.Tensor: + """Tab depth below the slot mouth, shape (num_envs,), in metres (negative = still above + the slot). The card bottoms out on the channel floor at 0.005 depth.""" + rel = self._card_offset_in_case() # (n, 3), zero at the seated pose + return (self.cfg.slot_mouth_z - self.cfg.seat_pos[2]) - rel[:, 2] + + def seated(self) -> torch.Tensor: + """Whether the card is seated in the slot, shape (num_envs,): pressed down to `seat_depth` + below the mouth, within `align_xy` of the seated point, and aligned in tilt AND heading.""" + c = self.cfg + rel = self._card_offset_in_case() # (n, 3) + depth_ok = self.engaged() >= c.seat_depth + xy_ok = rel[:, :2].norm(dim=-1) <= c.align_xy + up_ok = self._axis_cos(2) >= math.cos(math.radians(c.align_axis_deg)) + yaw_ok = self._axis_cos(0) >= math.cos(math.radians(c.align_yaw_deg)) + return depth_ok & xy_ok & up_ok & yaw_ok + + def success(self) -> torch.Tensor: + """(N,) bool: the card seated in its slot — this scene's assembled state + (scene-level success alias, matching the other suites' surface).""" + return self.seated() + + def _card_offset_in_case(self) -> torch.Tensor: + """The card origin's offset from the seated point, in the case's local frame, shape + (num_envs, 3). Zero means the card origin sits exactly at the seated pose.""" + from isaaclab.utils.math import quat_apply_inverse + + rel = quat_apply_inverse( + self.case.data.root_quat_w, self.card.data.root_pos_w - self.case.data.root_pos_w + ) + return rel - torch.tensor(self.cfg.seat_pos, device=rel.device) + + def _axis_cos(self, axis: int) -> torch.Tensor: + """cos of the angle between the card's and the case's local `axis` (0=x: heading along the + slot, 2=z: insertion axis), shape (num_envs,). Seated orientation = the case's own axes.""" + from isaaclab.utils.math import quat_apply + + e = torch.zeros(3, device=self.env.device) + e[axis] = 1.0 + e = e.expand(self.env.num_envs, 3) + case_ax = quat_apply(self.case.data.root_quat_w, e) + card_ax = quat_apply(self.card.data.root_quat_w, e) + return (card_ax * case_ax).sum(dim=-1) + + # Grasp-weld contract: composed `GraspWeldContract` (robobench.core.grasp_weld), + # created in `bind()`; this scene supplies the part-side `grasp_sites()`. + # Grasp-weld contract constants — the scene's public knobs (solutions read these off the + # scene, e.g. `scene.GRASP_PINCH_OFFSET`); the composed GraspWeldContract consumes them. + GRASP_HAND_BODY: ClassVar[str] = "panda_hand" + GRASP_FINGER_JOINTS: ClassVar[str] = "panda_finger_joint.*" + GRASP_PINCH_OFFSET: ClassVar[float] = 0.1034 # hand origin -> finger-pad centre, along approach + GRASP_POOL: ClassVar[int] = 8 # engages per (env, site) per run; exhausted -> warn, no weld + GRASP_STALL: ClassVar[float] = 0.01 # max |finger vel| sum (m/s): fingers stopped ON the part + GRASP_DEBOUNCE: ClassVar[int] = 8 # consecutive qualifying substeps before the weld engages + GRASP_RELEASE_MARGIN: ClassVar[float] = 0.008 # release at window-top + this (m), hysteresis + diff --git a/provenance/generation_code/p04_phase/strategy/SUMMARY.txt b/provenance/generation_code/p04_phase/strategy/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..c1a1b7aa3d0951b2611c7774eb697c651a8c0bb1 --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/SUMMARY.txt @@ -0,0 +1 @@ +Base state-feedback program; 20 mm off-centre grasp plus side staging waypoint at (0.34,-0.14), then normal insertion. DART offered only during high free-space transport. Initially UNTESTED; see pilot_report.json. diff --git a/provenance/generation_code/p04_phase/strategy/meta.json b/provenance/generation_code/p04_phase/strategy/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..b909e013f400927e84679c5dd9f689ab8d6eeb3c --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/meta.json @@ -0,0 +1,10 @@ +{ + "episodes": 2, + "successes": 2, + "success_rate": 1.0, + "batches": [ + "p02_strategy", + "p03_dynamics" + ], + "refreshed": "2026-10-12T10:57:22+00:00" +} diff --git a/provenance/generation_code/p04_phase/strategy/parameters.json b/provenance/generation_code/p04_phase/strategy/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/p04_phase/strategy/phases/.agent/20261012_105116_phase/condition.yaml b/provenance/generation_code/p04_phase/strategy/phases/.agent/20261012_105116_phase/condition.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6ceb17e1574d50a68c947bac080f2cab6b8e984d --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/phases/.agent/20261012_105116_phase/condition.yaml @@ -0,0 +1,14 @@ +scene: scene_1 +strategy: strategy_1 +prompts: +- levels/phase +- rules/autonomous_operation +cli: +- create_cell +- generate +agent: codex +model: not-recorded +image: rb-diversify:2.1.216 +gpu: '0' +budget_min: 240 +level: phase diff --git a/provenance/generation_code/p04_phase/strategy/phases/.agent/20261012_105116_phase/instructions.md b/provenance/generation_code/p04_phase/strategy/phases/.agent/20261012_105116_phase/instructions.md new file mode 100644 index 0000000000000000000000000000000000000000..afabe538f47dcc316da9179a56be199419d9a6a5 --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/phases/.agent/20261012_105116_phase/instructions.md @@ -0,0 +1,394 @@ +# Diversify — authoring session + +You are working inside a **data_gen campaign**: a folder that multiplies one +verified robobench solve into a large, diverse, per-episode-verified +demonstration dataset. Your session authors NEW cells at ONE level — scene, +strategy, or phase. This contract covers what is common to every session; +refer to the level instructions further down this briefing for the details of +how to work at YOUR level, and to the facts at the end for which level it is +and where to start. + +## Your environment + +- **Your cwd is the campaign root** — the only place you write; everything + you make lives here. (Container sessions mount it at `/workspace` and add + read-only `/reference` — the eval run this campaign multiplies, usually the + read that pays off most — and `/repo`, the CoSiGen sources. Host sessions + have neither mount; the campaign's `gen.yaml` records the solve's + provenance instead.) +- Your **start point** inside the campaign is read-only by contract — copy it + with `create_cell`, never edit its behaviour in place. The ONE permitted edit + to the start scene (`scenes/scene_0/scene/scene.py`) is adding the + declarations every shipped scene must carry — `PHYSICAL_PARAMS`, + `VISUAL_PARAMS`, `CAMERAS` — when it lacks them; nothing else. +- A GPU is available; `python` has Isaac Sim + Isaac Lab. It is ONE 24 GB GPU + and ~60 GB of RAM shared with the orchestrator's own runs: run at most TWO + Isaac processes of your own at a time (a third slows every run 3x and a + 512-env run near 20k steps is killed by the OOM killer at save time). + +## The campaign + + . (the campaign root, your cwd) + ├─ gen.yaml the env preset + provenance of the solve + ├─ scenes// one world + its judge + │ ├─ scene/scene.py full standalone scene — edits take effect + │ ├─ assets/ -> … read-only links into the suite's assets + │ ├─ grader/grader.py the judge, bound to THIS scene + │ └─ strategies// one way to solve it + │ ├─ solve.py a delivered, verified solution + │ └─ phases// optional entry points into the solve + └─ data//ep_NNNN/ the episode pool: traj.npz (full restorable + states) + meta.json (verdict, lineage, seed) + +## Your cli (on PATH) + +- `create_cell [--count N]` — new cell(s) of this session's level, from this + session's start point. One cell per distinct idea; run it as often as you + have ideas. +- `generate --headless . --scene [--strategy ] [--phase

] + --num_envs --seed 0` — test-launch a cell: batched rollouts, every episode + graded, yield written to the batch meta under `data/`. The batch's `meta.json` + (and every episode's) is written only when the whole batch finishes; a batch + directory without `meta.json` is still running or died. + +Probe your cells at a SMALL width — `--num_envs 8` to `32`. The gate verifies +episodes by replaying their whole batch, and Isaac's cost is per step whatever +the width: a 512-env batch costs the same hour to generate and another hour to +replay whether the gate needs 3 episodes from it or 300. The orchestrator runs +the wide (`DGEN_NUM_ENVS`) batches itself. + +Solves may author DART-style disturbances through the recorder's noise +channel — `env.step(action, noise=perturbation)` — which executes +`action + NOISE_SCALE * perturbation` while recording the clean `action` as +the label. `NOISE_SCALE` is pipeline-controlled (`generate --noise_scale`, +default 0), so authored noise is inert in normal testing. + +## The replay rule (every episode, mechanically enforced) + +An episode is training data only if the robot's RECORDED ACTIONS cause its +success: the orchestrator rebuilds the episode's batch, feeds the recorded +actions back open-loop, and the grader must pass again. Episodes that do not +replay are discarded, and an episode counts only while the code of its cell is +unchanged since it was recorded — after your last edit, re-run the cell. +Contact-rich behaviour (threading, insertion, pushing) replays far less often +at width than at 1 env; a strategy whose successes only replay alone is worth +little here — prefer motions whose outcome does not hinge on a millimetre. So a solve may act on the world ONLY through the robot — +through `env.step(action)`. Writing scene drive inputs (`scene.*_drive`), +external forces, or sim state (`write_root_state*`, `set_states`, teleports) +from a solve produces episodes whose actions do not explain their success; the +pre-check rejects such a solve before anything is farmed from it. + +Controller and articulation parameters a solve sets — gains (`_kp`/`_kd`, +`kp_null`/`kd_null`), `control_period`, `rot_scale`/`pos_scale`, the nullspace +posture, gripper joint stiffness/damping — are recorded into every episode +(`controller` in its meta, plus `controller_changes` for anything changed +mid-solve) and re-applied by the replay before the actions are fed back. Tune +them as the task needs; they are part of what the episode carries. + +## How you work + +1. **Study first**: the start point's code (the working scene, grader and + solve you build on); the pool's batch metas (existing yields are your + baselines); and, where mounted, `/reference` — the experience of solving + this task: what worked and what failed on the way to the delivered solve. +2. **Propose many**: each distinct variant gets its own cell via `create_cell`. +3. **Author** inside your cells only. +4. **Prove**: use `generate` to prove your ideas, and iterate on it as many + times as you need. A cell whose tests never yield a successful episode must + not ship: fix it, or delete it. +5. **Document**: for each idea you tried, `SUMMARY.md` records what you + thought, what you changed, whether it succeeded (when you launched + generate), and what you learned (below). + +## Practical notes + +Generation boots Isaac (~3 min) and rolls out full episodes. Author independent +ideas before waiting on one test, and keep working while batches run — but never +end your turn to "wait" for a job: everything you started is killed when the +session ends, and the session ends when your budget (top of this brief) runs +out or you stop. Poll running jobs from the foreground with a single `sleep` +loop, not one tool call per minute. If the session ends before a cell is +tested, mark it `UNTESTED` in `SUMMARY.md`; never imply an untested cell is +proven, and never leave a cell whose tests never yielded — delete it. + +## Leave behind + +- **Your cells** — every variant you shipped, proven working, in place under + `scenes/`: they are the session's product, ready for future generation. +- **The batches** you generated under `data/` — real graded episodes; they + stay in the pool, and the level metas carry their yields. +- **`SUMMARY.md`** at the root of each cell you ship — one entry per idea you + tried: what you thought, what you changed, whether it succeeded when you + launched generate (yield vs. the baseline), and what you learned. Ideas + that failed belong in the summary too; they are what the next session + learns from. + + +# This level: phase + +A **phase** is an entry point into strategy strategy_1's solve: instead of always +starting from the scene's reset, an episode can begin mid-task — from a +prepared entry state — and still run to task-done, where the grader judges it +as usual. Phases buy state coverage the from-scratch solve rarely visits, and +they make the hard, rare segments of the task cheap to generate. + +## Deliverables + +Create, explicitly: + +1. `phases/phase_N/` — one cell PER proposal of how to divide/enter the solve + (via `create_cell`). The command creates a runnable natural-start scaffold; + replace or extend it with the entry design you prove: + - `solve_by_phase.py` — THIS cell's port: `solve(env, entry=)` runs + from any phase of the division to task-done; `ENTRIES` documents the + phases and their preconditions. Each `phase_N` is a different division + strategy of the solve — in most cases `phase_0` is all you need. + - `reset/` — one file per phase, named exactly as the phase (one per + `ENTRIES` key). Each batch sweeps ALL the files, one rollout per file: a + file chooses the entry and builds its state via `reset_0(env)`, + `reset_1(env)`, … — all applied, the rollout's envs divided evenly among + them. + +At generation time the runner builds the entry state from the rollout's reset +FIRST, then calls your port. Entry states are the reset builders' job — your +port only steps (`reset`/`set_states` are not blocked, but teleported state +becomes part of the recorded demonstration). The phases are not given to you: +**you determine them by studying `solve.py`** — the points that can safely +accept a mid-task start. + +## Instructions: solve_by_phase.py + +Base solves may be explicit state machines or linear/procedural programs. For +an FSM, the port makes selected states entry points: +`solve(env, entry="")` starts there and runs to task-done. For example: + + def solve(env): + ... + st = fresh_state() # {"phase": "hover", "grip_w": None, …} + for each control tick: + if st["phase"] == "hover": + ... + elif st["phase"] == "grasp": + ... + st["grip_w"] = fpos # measured HERE + st["phase"] = "lift" + elif st["phase"] == "insert": + grip = st["grip_w"] - N / KP # read LATER + +The port is a copy of `solve.py` with four edits — everything else identical: + +1. `def solve(env, entry=None)`; an unknown entry raises with the valid names. +2. at module top: + + ENTRIES = {"": "", ...} + + (the runner never reads it — each rollout's entry is the NAME of its reset + file; keep one reset file per ENTRIES key) +3. `fresh_state()` starts at `st["phase"] = entry or ""`. +4. `entry_calibrate(...)` on the first tick: fill what the skipped phases + would have measured, from observation — e.g. entering at "insert" above, + `st["grip_w"]` = the observed finger joint position. + +**Which phases qualify as entries**: those whose every read value can be +re-derived at entry from observation (grip widths ← finger joints; offsets ← +observed poses; heights ← known geometry) or safely defaulted (counters ← 0). +If a value cannot be reconstructed (e.g. something integrated over motion), +that phase is not an entry — do not force it; note the rejection and why in +the port's docstring. + +Phases that re-measure everything on entry require the least calibration. +`solve.py` is never touched. For a procedural solve, wrap natural step groups +as functions, dispatch from the requested entry, and re-derive earlier locals. + +If you cannot decide how to divide, one phase is fine: keep +`solve_by_phase.py` with a single entry — the solve's natural start — and +propose different reset builders for it (varied initial conditions instead of +mid-task entries). + +## Instructions: reset/ (entry-state builders) + +One file per phase, named exactly as the phase (one per `ENTRIES` key). Each +holds one or more builders `reset_0(env)`, `reset_1(env)`, … — a builder shapes +the whole batch's worlds into that phase's entry states, one draw per env, and +must satisfy the phase's precondition as documented in `ENTRIES`. + +### Where entry states come from + +- **Built by hand**: when you know what the entry state looks like + geometrically, write it directly instead of restoring a recording. Often + three lines: set the part's pose at a known relation to the observed + fixture; mind that a written state includes velocities — set them + deliberately (zeros for at rest; stale copied values send the part flying); + then step the sim briefly with a hold action so the part comes to genuine + resting contact — a computed pose is never contact-perfect. How to build depends + on the nature of the phase: entering mid-carry (part in hand) the state is + object-centric — place the object first, derive the arm pose from the grasp + relation (via IK); at a hand-free phase, object and arm are independent — + set the arm freely, or just leave it where the scene reset put it. + +- **The pool** (the campaign's `data/`), when batches exist there — and your own + test batches add to it: every episode's `traj.npz` stores full restorable + sim states, `env.set_states(...)` any recorded step. Successes give mid-task + boundary states (e.g. "part placed, hand free"), perturbed with jitter for + coverage; failures give recovery starts that from-scratch data cannot + contain. Recoverable means some phase of your division can redo the work + from there — a part dropped beside the goal is a valid entry to the pick + phase, with the dropped pose as the initial condition. An unrecoverable + mess is not an entry state. + +### Practice + +- randomize PER ENV: each of the `env.num_envs` worlds gets its own draw + (poses, sources, jitters) — a builder that sets every env identically wastes + the batch. +- locate the campaign relative to YOUR OWN FILE, never a mount path: builders + also run outside the container. Walk upward to the first parent containing + `gen.yaml`, then join `data/`; do not encode a fixed parent depth. +- the arm: the scene's own reset already ran — leaving the arm where it is + often IS the precondition ("hand free and clear"). Only pose the arm if the + phase genuinely needs it. +- different builders in one file = different state families for the same phase + (e.g. `reset_0` built-by-hand nominal, `reset_1` restored-from-failures); + each rollout runs them all, its envs divided evenly among them. +- many anchor poses INSIDE ONE BUILDER, each with small jitter: cover the + precondition's feasible region with anchors (approach side, position on the + workspace, orientation), recorded or hardcoded, and draw one per env with a + little perturbation. One anchor + jitter replays the same episode over and + over; many anchors is what makes the data diverse. Keep the NUMBER OF RESET + FILES small (one or two): each reset file is a separate, sequential rollout + of the full episode length — a 4-file phase cell costs 4 full episodes per + batch (an 8 h batch at 16 envs in one v2 run), and the same anchors inside + one builder cost one. +- entry states restored from recorded mid-episode poses replay far worse than + states built by hand and settled: a part already in contact (a thread half + engaged, a peg half inserted) diverges from the first step. Build entries at + the phase's approach — settled, clear of contact — not inside the contact. +- check your own precondition: settling can knock a part out of the intended + state in some envs. After the settle, verify the precondition per env (poses + are observable) and re-draw just the envs that missed — a dead entry state + burns a full episode at generation time. + +A builder follows this task-independent pattern. Resolve actual state keys, +geometry, controller targets, and settling conditions from this campaign's +scene and robot; the placeholders below are deliberately schematic: + + import torch + + def reset_0(env) -> None: + E = env.num_envs + st = env.get_states() + # 1. derive each env's entry state from its own observed fixture/task state + # 2. sample small per-env perturbations inside the entry precondition + # 3. write object and, only when needed, robot state + controller targets + # 4. set every velocity deliberately + env.set_states(st) + hold = torch.zeros(E, env.robot.action_dim, device=env.device) + # If the entry requires settled contact, step `hold` until the + # observable precondition is stable; derive the bound from this scene. + +## Verification + + generate --headless . --scene --strategy strategy_1 \ + --phase phase_N --num_envs --seed 0 + +The batch sweeps ALL your reset files, one rollout of `--num_envs` episodes +per file, the envs divided evenly among the file's builders — a single batch +already exercises every entry and every builder; each episode's meta records +its (file, builder) lineage. +This generates one batch of data using your proposed `phase_N` and its initial +conditions, under `data//`: one `ep_NNNN/` folder per +episode, success/fail in each episode's `meta.json`, and the batch summary +(yield) in `data//meta.json`. Physical parameters are sampled +automatically (env 0 always keeps the plain, unsampled world); add +`--nominal` to turn sampling off while you debug entries. Judge by success +only. A mid-task entry may begin with a higher rubric score; that does not +make the episode successful. + + +# Rule: autonomous operation + +You are running autonomously. No one reads your messages or answers questions +during this session — your final message ends the session, and so does the +session budget stated at the top of this brief (a hard kill at the stated +time; the orchestrator then grades whatever is on disk). + +- Stopping — replying without taking further actions — ends the session for + good, not pauses it. Never stop to "wait" for a watcher, a background job, + or a reply that will never come. +- Poll long-running work (a `generate` batch) to completion before you stop; + background processes die with the session, and anything unfinished is lost. +- When something fails, diagnose and retry yourself — there is no one to ask. + If a direction is truly stuck, write what you tried and why it failed into + the summary, and move to your next idea. +- Budget your time: verification runs are the slow part. Author while batches + run; leave untested cells clearly marked UNTESTED rather than half-done. + + +## This session + +- your workspace: /data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot (the campaign; your cwd; work only in here) +- your reference: /data/yichenzhao/projects/pc_gpu_five_stage_20261012 (read-only — the eval run this campaign multiplies) +- the repo: /data/yichenzhao/EmbodiedSWE-vla (read-only — optional background) +- your start point is READ-ONLY — copy it with create_cell, never edit it in place +- level: phase — start from: scene_1/strategy_1 +- your cli, on PATH (create each cell yourself, one per proposed variant): + - `create_cell [--count N]` — new cell(s) from your start point + - `generate --headless /data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot --scene … [--strategy …] --num_envs ` — test-launch a cell + +### gen.yaml +```yaml +preset: assembly.pc_gpu.franka.osc +stage: phase1-success +source_run: ../.. # the eval run this campaign multiplies +solution: workspace/solution # what strategy_0 was ported from +scene_source: robobench/suites/assembly/scenes/pc_gpu_assembly.py # live repo: one tree with grader + core +grader_source: robobench/suites/assembly/grader/pc_gpu_assembly.py +created: 2026-10-12T10:34:46+00:00 +git_sha: 1489552 +``` + +### current yields (baselines) + +- scenes/scene_0: { + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "batches": [ + "p00_control" + ], + "refreshed": "2026-10-12T10:47:21+00:00" +} +- scenes/scene_1: { + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "batches": [ + "p01_scene" + ], + "refreshed": "2026-10-12T10:47:21+00:00" +} +- scenes/scene_0/strategies/strategy_0: { + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "batches": [ + "p00_control" + ], + "refreshed": "2026-10-12T10:47:21+00:00" +} +- scenes/scene_1/strategies/strategy_0: { + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "batches": [ + "p01_scene" + ], + "refreshed": "2026-10-12T10:47:21+00:00" +} +- scenes/scene_1/strategies/strategy_1: { + "episodes": 0, + "successes": 0, + "success_rate": null, + "batches": [], + "refreshed": "2026-10-12T10:47:21+00:00" +} diff --git a/provenance/generation_code/p04_phase/strategy/phases/.agent/meta.json b/provenance/generation_code/p04_phase/strategy/phases/.agent/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..7613e5b6a3357b9b92c18160292c78588bde323a --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/phases/.agent/meta.json @@ -0,0 +1,7 @@ +{ + "episodes": 0, + "successes": 0, + "success_rate": null, + "batches": [], + "refreshed": "2026-10-12T10:57:22+00:00" +} diff --git a/provenance/generation_code/p04_phase/strategy/phases/phase_0/SUMMARY.txt b/provenance/generation_code/p04_phase/strategy/phases/phase_0/SUMMARY.txt new file mode 100644 index 0000000000000000000000000000000000000000..0deb0f41e5dc2831c3b75210abd880042280de79 --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/phases/phase_0/SUMMARY.txt @@ -0,0 +1 @@ +start: normal scene reset. preinsert: own physical prefix to above-case stop before recording. Suffix observes grasp transform afresh; PI integrators restart at zero. No dataset/teleport. UNTESTED. diff --git a/provenance/generation_code/p04_phase/strategy/phases/phase_0/meta.json b/provenance/generation_code/p04_phase/strategy/phases/phase_0/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..7613e5b6a3357b9b92c18160292c78588bde323a --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/phases/phase_0/meta.json @@ -0,0 +1,7 @@ +{ + "episodes": 0, + "successes": 0, + "success_rate": null, + "batches": [], + "refreshed": "2026-10-12T10:57:22+00:00" +} diff --git a/provenance/generation_code/p04_phase/strategy/phases/phase_0/parameters.json b/provenance/generation_code/p04_phase/strategy/phases/phase_0/parameters.json new file mode 100644 index 0000000000000000000000000000000000000000..117b6ca68e7f52981e3eaa97dc02158d9d94e217 --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/phases/phase_0/parameters.json @@ -0,0 +1,10 @@ +{ + "compensate_action_filter": true, + "integral_position": 0.8, + "integral_rotation": 0.5, + "speed": 0.03, + "carry_height": 0.26, + "forward_clearance": -0.045, + "slide_height": 0.018, + "press_speed": 0.003 +} diff --git a/provenance/generation_code/p04_phase/strategy/phases/phase_0/reset/preinsert.py b/provenance/generation_code/p04_phase/strategy/phases/phase_0/reset/preinsert.py new file mode 100644 index 0000000000000000000000000000000000000000..831799540ba57524bb101c849b77cce67f234254 --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/phases/phase_0/reset/preinsert.py @@ -0,0 +1,15 @@ +"""Physical entry: run own strategy prefix before recording, never teleport.""" +from pathlib import Path +import importlib.util + +def reset_0(env): + p=Path(__file__).resolve().parents[1]/'solve_by_phase.py' + spec=importlib.util.spec_from_file_location('pilot_entry_prefix',p) + m=importlib.util.module_from_spec(spec);spec.loader.exec_module(m) + class CleanPrefix: + def __getattr__(self,n): return getattr(env,n) + def step(self,action,noise=None): return env.step(action) + m.solve(CleanPrefix(),entry='start',stop_after='above_case') + assert bool(env.scene.grasp_held[0].any()) + assert not bool(env.scene.seated()[0]) + assert float(env.scene.card.data.root_pos_w[0,2]) > float(env.scene.cfg.surface_z)+.24 diff --git a/provenance/generation_code/p04_phase/strategy/phases/phase_0/reset/start.py b/provenance/generation_code/p04_phase/strategy/phases/phase_0/reset/start.py new file mode 100644 index 0000000000000000000000000000000000000000..24ebd64d151ee8d7422608f711bc258028263758 --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/phases/phase_0/reset/start.py @@ -0,0 +1,12 @@ +"""Natural-start entry builder. + +Rename/add files so each filename matches one solve_by_phase.ENTRIES key. +Each batch sweeps every reset file. +""" + +from __future__ import annotations + + +def reset_0(env) -> None: + """The scene reset already satisfies the natural-start precondition.""" + return diff --git a/provenance/generation_code/p04_phase/strategy/phases/phase_0/solve_by_phase.py b/provenance/generation_code/p04_phase/strategy/phases/phase_0/solve_by_phase.py new file mode 100644 index 0000000000000000000000000000000000000000..a7dfdbc543edc6779e2fc7aa58f0dd1a22a1f369 --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/phases/phase_0/solve_by_phase.py @@ -0,0 +1,178 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([-.020,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Different plan: side staging stop, then transfer to the case entry. + waypoint=cp(); waypoint[0]=.34; waypoint[1]=-.14 + waypoint[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(waypoint,case_q),.0172,30,'transport_waypoint',tol=.003) + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/generation_code/p04_phase/strategy/solve.py b/provenance/generation_code/p04_phase/strategy/solve.py new file mode 100644 index 0000000000000000000000000000000000000000..a7dfdbc543edc6779e2fc7aa58f0dd1a22a1f369 --- /dev/null +++ b/provenance/generation_code/p04_phase/strategy/solve.py @@ -0,0 +1,178 @@ +# plan: [stages 1-3] card held; card aligned above slot; card seated and released +# origin=fresh +"""A state-feedback program for the registered Franka/OSC GPU-install task. + +Only env.step(action) changes the world. No dataset, checkpoint, reset, state +restoration, controller replacement, or scene-parameter writes are used. +""" +import json +import math +from pathlib import Path + + +DART_SIGMA = 0.03 +SOLVE_PARAMS = {'DART_SIGMA': None} +ENTRIES = {'start': 'unassembled card upright in holder, hand free', + 'preinsert': 'card genuinely held, above front entry, clear of all contacts'} + +def solve(env, entry=None, stop_after=None) -> None: + import torch + from isaaclab.utils.math import ( + axis_angle_from_quat, quat_apply, quat_conjugate, quat_mul, + ) + + params = json.loads(Path(__file__).with_name('parameters.json').read_text()) + scene, robot = env.scene, env.robot + art = robot.articulation + dev, n = env.device, env.num_envs + assert n == 1, 'This initial phase-1 delivery handles one environment per process' + osc = robot.controller.controllers[0] + assert type(osc).__name__ == 'OperationalSpaceController' + assert robot.action_dim == 8 + hand = art.body_names.index('panda_hand') + dt = env.dt * robot.control_period + offset = float(scene.GRASP_PINCH_OFFSET) + zero = torch.zeros(3, device=dev) + integral_p, integral_r = zero.clone(), zero.clone() + steps = 0 + active_phase = 'start' + if entry not in (None, 'start', 'preinsert'): raise ValueError(entry) + + def v(values): return torch.tensor(values, device=dev, dtype=torch.float32) + def mul(a,b): return quat_mul(a[None],b[None])[0] + def inv(q): return quat_conjugate(q[None])[0] + def rotate(q,x): return quat_apply(q[None],x[None])[0] + def orientation_error(goal,current): + if float(torch.dot(goal,current)) < 0: goal = -goal + return axis_angle_from_quat(mul(goal, inv(current))[None])[0] + def hp(): return art.data.body_pos_w[0,hand].clone() + def hq(): return art.data.body_quat_w[0,hand].clone() + def cp(): return scene.card.data.root_pos_w[0].clone() + def cq(): return scene.card.data.root_quat_w[0].clone() + def held(): return bool(scene.grasp_held[0].any()) + def pinch(): return hp() + rotate(hq(),v([0,0,offset])) + def band(): return cp()+rotate(cq(),v([-.020,sum(scene.CARD_BODY_Y)/2,.1005])) + + def log(phase,**extra): + print('PHASE1 '+json.dumps(dict(phase=phase,steps=steps,seconds=steps*dt, + held=held(),card=cp().tolist(),hand=hp().tolist(), + offset=scene._card_offset_in_case()[0].tolist(), + depth=float(scene.engaged()[0]),integral_position=integral_p.tolist(), + integral_rotation=integral_r.tolist(),**extra)),flush=True) + + def tick(goal,quat,finger): + nonlocal integral_p, integral_r, steps + ep, er = goal-hp(), orientation_error(quat,hq()) + integral_p=(integral_p+ep*dt).clamp(-.10,.10) + integral_r=(integral_r+er*dt).clamp(-4.0,4.0) + dp=ep+params['integral_position']*integral_p + dr=er+params['integral_rotation']*integral_r + dr=dr*min(1,2.5/max(float(dr.norm()),1e-9)) + action=torch.zeros((1,8),device=dev) + action[0,:3]=(dp/osc.cfg.pos_scale).clamp(-6,6) + action[0,3:6]=(dr/osc.cfg.rot_scale).clamp(-20,20) + action[0,6:]=finger + # The preset smooths pose DELTAS, rather than absolute targets. Account + # for its documented filter in the command; never write controller state. + if params.get('compensate_action_filter',False) and osc._prev_action is not None: + alpha=float(osc.cfg.ema_factor) + action[0,:6]=(action[0,:6]-(1-alpha)*osc._prev_action[0])/alpha + assert torch.isfinite(action).all() + # Noise offered independently of noise_scale. Recorder keeps labels clean. + disturbance = torch.zeros_like(action) + if active_phase in ('lift_clear', 'transport_waypoint', 'above_case') and float(hp()[2]) > .38: + disturbance[0, :3] = DART_SIGMA * torch.randn(3, device=dev) + env.step(action, noise=disturbance) + steps+=1 + + def move(goal_fn,grip,timeout,tag,tol=.002,rot_tol=.035,card_check=None): + nonlocal active_phase + active_phase = tag + ref=hp(); good=0 + for _ in range(max(1,math.ceil(timeout/dt))): + goal,quat=goal_fn() + delta=goal-ref; length=float(delta.norm()) + ref=ref+delta*min(1,params['speed']*dt/max(length,1e-9)) + tick(ref,quat,grip) + goal,quat=goal_fn() + ok=float((hp()-goal).norm())=8:log(tag,result='reached');return + log(tag,result='timeout',position_error=float((hp()-goal).norm()),rotation_error=float(orientation_error(quat,hq()).norm())) + raise RuntimeError('Stage did not reach its measured gate: '+tag) + + def hold(goal_fn,finger,seconds): + nonlocal active_phase + active_phase = 'hold' + for _ in range(math.ceil(seconds/dt)): + goal,quat=goal_fn();tick(goal,quat,finger) + + log('start') + if entry != 'preinsert': + # Stage 1: acquire the top band and verify a real grasp. + down=[mul(cq(),v([0,0,1,0])),mul(cq(),v([0,1,0,0]))] + pick_q=max(down,key=lambda q:abs(float(torch.dot(q,hq())))).clone() + def pick_goal(height=0): + return band()-rotate(pick_q,v([0,0,offset]))+v([0,0,height]),pick_q + move(lambda:pick_goal(.10),.04,18,'above_card',tol=.004,rot_tol=.05) + move(pick_goal,.04,16,'pinch_aligned',tol=.0025) + for k in range(math.ceil(2/dt)): + goal,quat=pick_goal() + tick(goal,quat,.04+(.0172-.04)*min(1,(k+1)*dt/1.5)) + hold(pick_goal,.0172,1) + if not held():log('grasp_failed');raise RuntimeError('No grasp after controlled closure') + log('card_held') + elif not held(): + raise RuntimeError('preinsert entry requires an actual grasp') + rel_p=rotate(inv(hq()),cp()-hp()) + rel_q=mul(inv(hq()),cq()) + def card_goal(position,quat): + # The grasp joint fixes this measured card-in-hand transform. A fixed + # world-frame hand goal avoids moving the goal in response to its own lag. + target_q=mul(quat,inv(rel_q)) + return position-rotate(target_q,rel_p),target_q + def case_point(local): + return scene.case.data.root_pos_w[0]+rotate(scene.case.data.root_quat_w[0],v(local)) + case_q=scene.case.data.root_quat_w[0].clone() + seat=list(scene.cfg.seat_pos) + forward=seat[0]+params['forward_clearance'] + if entry != 'preinsert': + lift=cp();lift[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(lift,case_q),.0172,25,'lift_clear',tol=.003) + if not held():raise RuntimeError('Grasp lost during lift') + + # Different plan: side staging stop, then transfer to the case entry. + waypoint=cp(); waypoint[0]=.34; waypoint[1]=-.14 + waypoint[2]=float(scene.cfg.surface_z)+params['carry_height'] + move(lambda:card_goal(waypoint,case_q),.0172,30,'transport_waypoint',tol=.003) + + # Stage 2: enter forward of the rear panel, then slide through its cutout. + high=[forward,seat[1],params['carry_height']-float(scene.cfg.case_lift)] + move(lambda:card_goal(case_point(high),case_q),.0172,40,'above_case',tol=.003) + if stop_after == 'above_case': return + above=[forward,seat[1],float(scene.cfg.slot_mouth_z)+params['slide_height']] + move(lambda:card_goal(case_point(above),case_q),.0172,20,'inside_case',tol=.002) + aligned=[seat[0],seat[1],above[2]] + def card_aligned(): + return float((cp()-case_point(aligned)).norm())<.0007 and float(orientation_error(case_q,cq()).norm())<.004 + move(lambda:card_goal(case_point(aligned),case_q),.0172,30,'slot_aligned',tol=.0004,rot_tol=.003,card_check=card_aligned) + + # Stage 3: press, release, retract, then leave the installed card unsupported. + pressed=[seat[0],seat[1],seat[2]-.001] + active_phase='press' + press_z=aligned[2] + for _ in range(math.ceil(25/dt)): + press_z=max(pressed[2],press_z-params['press_speed']*dt) + target,quat=card_goal(case_point([seat[0],seat[1],press_z]),case_q) + tick(target,quat,.0172) + if bool(scene.seated()[0]):break + if not bool(scene.seated()[0]):log('press_failed');raise RuntimeError('Card did not seat') + log('seated_before_release') + keep=hp(); keep_q=hq() + hold(lambda:(keep,keep_q),.04,2) + up=keep+v([0,0,.14]) + move(lambda:(up,keep_q),.04,16,'hand_clear',tol=.004,rot_tol=.06) + hold(lambda:(up,keep_q),.04,5) + log('finished',seated=bool(scene.seated()[0])) + if held() or not bool(scene.seated()[0]):raise RuntimeError('Card did not remain seated after release') diff --git a/provenance/h_s0_1.log b/provenance/h_s0_1.log new file mode 100644 index 0000000000000000000000000000000000000000..5277307de73c5518090334c817f502185079be75 --- /dev/null +++ b/provenance/h_s0_1.log @@ -0,0 +1,130 @@ +[INFO][AppLauncher]: Using device: cuda:0 +[INFO][AppLauncher]: Loading experience file: /data1/yichenzhao/EmbodiedSWE/.venv/lib/python3.11/site-packages/isaaclab/apps/isaaclab.python.headless.kit +[Info] [carb] Logging to file: /data/yichenzhao/projects/pc_gpu_five_stage_20261012/runtime/h_s0_1/logs/Kit/Isaac-Sim/5.1/kit_20261012_112410.log +2026-10-12T11:24:10Z [211ms] [Warning] [omni.usd_config.extension] Enable omni.materialx.libs extension to use MaterialX +2026-10-12T11:24:10Z [667ms] [Warning] [omni.platforminfo.plugin] failed to open the default display. Can't verify X Server version. +2026-10-12T11:24:10Z [835ms] [Warning] [carb] Acquiring non optional plugin interface which is not listed as dependency: [omni::physx::IPhysxBenchmarks v1.0] (plugin: ), by client: omni.physics.physx.plugin. Add it to CARB_PLUGIN_IMPL_DEPS() macro of a client. +2026-10-12T11:24:10Z [845ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users. +2026-10-12T11:24:18Z [8,512ms] [Warning] [carb.cudainterop.plugin] CUDA_VISIBLE_DEVICES environment variable is set. +2026-10-12T11:24:18Z [8,512ms] [Warning] [carb.cudainterop.plugin] Note CUDA device enumeration and Omniverse device enumeration are different. +2026-10-12T11:24:18Z [8,512ms] [Warning] [carb.cudainterop.plugin] Setting CUDA_VISIBLE_DEVICES can lead to undesired behavior or crashes. +2026-10-12T11:24:27Z [16,910ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,911ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,917ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,917ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,930ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,931ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,942ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,942ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,948ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,949ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,955ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,955ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,976ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,976ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:27Z [16,977ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. + +|---------------------------------------------------------------------------------------------| +| Driver Version: 580.178.04 | Graphics API: Vulkan +|=============================================================================================| +| GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID | +| | | | | | Device-ID | UUID | +| | | | | | Bus-ID | | +|---------------------------------------------------------------------------------------------| +| 0 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 4e989f5e.. | +| | | | | | 1 | | +|---------------------------------------------------------------------------------------------| +| 1 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | c632e727.. | +| | | | | | 21 | | +|---------------------------------------------------------------------------------------------| +| 2 | NVIDIA GeForce RTX 4090 | Yes: 0 | | 24810 MB | 10de | 0 | +| | | | | | 2684 | b85c9630.. | +| | | | | | 41 | | +|---------------------------------------------------------------------------------------------| +| 3 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 6e3f099e.. | +| | | | | | 61 | | +|---------------------------------------------------------------------------------------------| +| 4 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | e07ca849.. | +| | | | | | 81 | | +|---------------------------------------------------------------------------------------------| +| 5 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 3c662b7c.. | +| | | | | | a1 | | +|---------------------------------------------------------------------------------------------| +| 6 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 8c7e8f09.. | +| | | | | | c1 | | +|---------------------------------------------------------------------------------------------| +| 7 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 9785c2f4.. | +| | | | | | e1 | | +|=============================================================================================| +| OS: 22.04.5 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.5, Kernel: 5.15.0-191-generic +| Processor: AMD EPYC 9554 64-Core Processor +| Cores: 128 | Logical Cores: 256 +|---------------------------------------------------------------------------------------------| +| Total Memory (MB): 773675 | Free Memory: 422598 +| Total Page/Swap (MB): 69631 | Free Page/Swap: 66059 +|---------------------------------------------------------------------------------------------| +2026-10-12T11:24:27Z [17,882ms] [Warning] [gpu.foundation.plugin] IOMMU is enabled. +2026-10-12T11:24:27Z [17,882ms] [Warning] [gpu.foundation.plugin] Detected IOMMU is enabled. Running CUDA peer-to-peer bandwidth and latency validation. +Unidirectional P2P=Enabled Bandwidth (P2P Writes) Matrix (GB/s) + D\D 0 + 0 916.96 +P2P=Enabled Latency (P2P Writes) Matrix (us) + GPU 0 + 0 1.48 + + CPU 0 + 0 2.66 +[simgen suite] no task corpus under /data/yichenzhao/EmbodiedSWE-vla/sim_gen; suite empty + +====================================================================================================== +[INFO][IsaacLab]: Logging to file: /data/yichenzhao/tmp/isaaclab/logs/isaaclab_2026-10-12_11-24-29.log +====================================================================================================== + +11:24:29 [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. +[room] pc_gpu_local: 1 room(s), zero physics prims +[batch h_s0_1] rollout 1/1: solve on 1 envs … +PHASE1 {"phase": "start", "steps": 0, "seconds": 0.0, "held": false, "card": [0.2786571681499481, -0.3596828877925873, 0.029999999329447746], "hand": [0.14007863402366638, -0.3399790823459625, 0.5534675717353821], "offset": [-0.20539283752441406, -0.388982892036438, -0.002400000113993883], "depth": 0.007400000002235174, "integral_position": [0.0, 0.0, 0.0], "integral_rotation": [0.0, 0.0, 0.0]} +2026-10-12T11:24:35Z [25,502ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +2026-10-12T11:24:35Z [25,502ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_1 +2026-10-12T11:24:35Z [25,502ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_2 +2026-10-12T11:24:35Z [25,502ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_3 +2026-10-12T11:24:35Z [25,502ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_4 +2026-10-12T11:24:35Z [25,502ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_5 +2026-10-12T11:24:35Z [25,502ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_6 +2026-10-12T11:24:35Z [25,502ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_7 +PHASE1 {"phase": "above_card", "steps": 151, "seconds": 10.066666666666666, "held": false, "card": [0.2787282168865204, -0.35993847250938416, 0.030090607702732086], "hand": [0.2801249027252197, -0.34012362360954285, 0.3309791684150696], "offset": [-0.2053217887878418, -0.38923847675323486, -0.0023093917407095432], "depth": 0.007309391628950834, "integral_position": [0.0014951961347833276, 6.289085285970941e-05, -0.0022988333366811275], "integral_rotation": [0.00011470762547105551, -0.0006263157119974494, -0.0003741531982086599], "result": "reached"} +PHASE1 {"phase": "pinch_aligned", "steps": 228, "seconds": 15.2, "held": false, "card": [0.2787635624408722, -0.3599380850791931, 0.030090615153312683], "hand": [0.27837276458740234, -0.34021076560020447, 0.23194089531898499], "offset": [-0.20528644323349, -0.3892380893230438, -0.0023093842901289463], "depth": 0.007309384178370237, "integral_position": [0.0001066722979885526, 5.5088592489482835e-05, -0.0016802301397547126], "integral_rotation": [0.00027714038151316345, -0.0003780514816753566, -0.0003535047871991992], "result": "reached"} +[grasp-weld] env 0: GRIPPED card (aperture 35.7 mm) +2026-10-12T11:25:55Z [105,662ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "card_held", "steps": 273, "seconds": 18.2, "held": true, "card": [0.2787848114967346, -0.3599548637866974, 0.030091505497694016], "hand": [0.27862828969955444, -0.3401121497154236, 0.2329956293106079], "offset": [-0.20526519417762756, -0.3892548680305481, -0.002308493945747614], "depth": 0.007308493833988905, "integral_position": [0.000710075895767659, 8.455911302007735e-05, -0.0003514242125675082], "integral_rotation": [0.0004747856000903994, -0.005999633111059666, -0.0022682142443954945]} +PHASE1 {"phase": "lift_clear", "steps": 513, "seconds": 34.2, "held": true, "card": [0.28434357047080994, -0.36329197883605957, 0.2598898410797119], "hand": [0.27908065915107727, -0.3492860198020935, 0.4632161557674408], "offset": [-0.19970643520355225, -0.3925919830799103, 0.22748984396457672], "depth": -0.2224898487329483, "integral_position": [-0.02699780836701393, 0.017812876030802727, 0.040126584470272064], "integral_rotation": [0.8390500545501709, 1.12288498878479, -0.16486388444900513], "result": "reached"} +PHASE1 {"phase": "above_case", "steps": 808, "seconds": 53.86666666666667, "held": true, "card": [0.4324905276298523, 0.028239913284778595, 0.26004186272621155], "hand": [0.4386381506919861, 0.04019046947360039, 0.4634782671928406], "offset": [-0.05155947059392929, -0.0010600872337818146, 0.22764186561107635], "depth": -0.22264187037944794, "integral_position": [-0.006750371307134628, 0.03082028217613697, 0.038500674068927765], "integral_rotation": [1.3477200269699097, 0.3859975039958954, -0.22435663640499115], "result": "reached"} +PHASE1 {"phase": "inside_case", "steps": 966, "seconds": 64.4, "held": true, "card": [0.43273407220840454, 0.028895553201436996, 0.05508749186992645], "hand": [0.4387001395225525, 0.040098752826452255, 0.2585676908493042], "offset": [-0.051315926015377045, -0.0004044473171234131, 0.02268749289214611], "depth": -0.017687492072582245, "integral_position": [0.002206044038757682, 0.032922640442848206, 0.033655814826488495], "integral_rotation": [1.378029227256775, -0.0090821273624897, -0.2157982587814331], "result": "reached"} +PHASE1 {"phase": "slot_aligned", "steps": 1202, "seconds": 80.13333333333333, "held": true, "card": [0.48358896374702454, 0.029384629800915718, 0.055383145809173584], "hand": [0.48388683795928955, 0.04016875475645065, 0.2589666545391083], "offset": [-0.0004610363394021988, 8.462928235530853e-05, 0.022983146831393242], "depth": -0.017983146011829376, "integral_position": [0.0063233086839318275, 0.03332183137536049, 0.03452584147453308], "integral_rotation": [1.3414462804794312, -0.2730288803577423, -0.1195112094283104], "result": "reached"} +PHASE1 {"phase": "seated_before_release", "steps": 1312, "seconds": 87.46666666666667, "held": true, "card": [0.4824490249156952, 0.02944817952811718, 0.03324441611766815], "hand": [0.4837944209575653, 0.04023947939276695, 0.23682397603988647], "offset": [-0.0016009751707315445, 0.00014817900955677032, 0.0008444166742265224], "depth": 0.004155583214014769, "integral_position": [0.006930897943675518, 0.03285139426589012, 0.03332854434847832], "integral_rotation": [1.3359202146530151, -0.31431785225868225, -0.11932247877120972]} +[grasp-weld] env 0: RELEASED card +2026-10-12T11:32:56Z [526,763ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "hand_clear", "steps": 1430, "seconds": 95.33333333333333, "held": false, "card": [0.48247626423835754, 0.029148412868380547, 0.03246729448437691], "hand": [0.4837772250175476, 0.04006960988044739, 0.3792823553085327], "offset": [-0.001573735848069191, -0.00015158765017986298, 6.729504093527794e-05], "depth": 0.004932704847306013, "integral_position": [-7.349017687374726e-05, -0.00021845502487849444, 0.0027273385785520077], "integral_rotation": [0.04664098098874092, -0.007762468885630369, -0.0031763152219355106], "result": "reached"} +PHASE1 {"phase": "finished", "steps": 1505, "seconds": 100.33333333333333, "held": false, "card": [0.4824990928173065, 0.029149411246180534, 0.032467253506183624], "hand": [0.483781635761261, 0.04022147133946419, 0.3768434226512909], "offset": [-0.0015509072691202164, -0.00015058927237987518, 6.725406274199486e-05], "depth": 0.004932745825499296, "integral_position": [-1.0180096069234423e-05, 0.0002660180034581572, 0.0002760895004030317], "integral_rotation": [0.0014919392997398973, 0.0012320360401645303, -0.0006371323834173381], "seated": true} +[batch h_s0_1] rollout 1/1: 1/1 succeeded, 1505 steps +[batch h_s0_1] DONE: 1/1 -> /data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/h_s0_1 diff --git a/provenance/h_s0_1_result.json b/provenance/h_s0_1_result.json new file mode 100644 index 0000000000000000000000000000000000000000..142dd0af453ea6e5f088de4039dd8ebf778e23e1 --- /dev/null +++ b/provenance/h_s0_1_result.json @@ -0,0 +1,223 @@ +{ + "returncode": 0, + "wall_seconds": 612.4886214733124, + "log": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/logs/h_s0_1.log", + "job": { + "name": "h_s0_1", + "strategy": "strategy_0", + "seed": 101, + "noise": 0, + "phase": null, + "scene": "scene_1" + }, + "episodes": [ + { + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 101, + "steps": 1350, + "batch_steps": 1505, + "success_step": 1320, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": {}, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_0", + "git_sha": "1489552" + } + ], + "batch_meta": { + "batch": "h_s0_1", + "cell": "scene_1/strategy_0", + "cell_fingerprint": "fa82ab0cdcbb", + "preset": "assembly.pc_gpu.franka.osc", + "num_envs": 1, + "seed": 101, + "noise": {}, + "uniform_noise": {}, + "params": { + "physical_params": {}, + "env_draw": 0, + "nominal": true, + "per_env": [], + "solve_params": {}, + "solve_draw": 0, + "solve_drawn": {} + }, + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "verdicts": [ + { + "episode": 0, + "env": 0, + "success": true, + "score": 1.0 + } + ], + "created": "2026-10-12T11:34:11+00:00", + "git_sha": "1489552" + }, + "accepted": true, + "released_hold_passed": true, + "finished": [ + { + "phase": "finished", + "steps": 1505, + "seconds": 100.33333333333333, + "held": false, + "card": [ + 0.4824990928173065, + 0.029149411246180534, + 0.032467253506183624 + ], + "hand": [ + 0.483781635761261, + 0.04022147133946419, + 0.3768434226512909 + ], + "offset": [ + -0.0015509072691202164, + -0.00015058927237987518, + 6.725406274199486e-05 + ], + "depth": 0.004932745825499296, + "integral_position": [ + -1.0180096069234423e-05, + 0.0002660180034581572, + 0.0002760895004030317 + ], + "integral_rotation": [ + 0.0014919392997398973, + 0.0012320360401645303, + -0.0006371323834173381 + ], + "seated": true + } + ], + "replay_checked": false +} \ No newline at end of file diff --git a/provenance/h_s0_2.log b/provenance/h_s0_2.log new file mode 100644 index 0000000000000000000000000000000000000000..035c5791fde5d389cde15043cd09def3ef72cf7e --- /dev/null +++ b/provenance/h_s0_2.log @@ -0,0 +1,131 @@ +[INFO][AppLauncher]: Using device: cuda:0 +[INFO][AppLauncher]: Loading experience file: /data1/yichenzhao/EmbodiedSWE/.venv/lib/python3.11/site-packages/isaaclab/apps/isaaclab.python.headless.kit +[Info] [carb] Logging to file: /data/yichenzhao/projects/pc_gpu_five_stage_20261012/runtime/h_s0_2/logs/Kit/Isaac-Sim/5.1/kit_20261012_112410.log +2026-10-12T11:24:10Z [178ms] [Warning] [omni.usd_config.extension] Enable omni.materialx.libs extension to use MaterialX +2026-10-12T11:24:10Z [650ms] [Warning] [omni.platforminfo.plugin] failed to open the default display. Can't verify X Server version. +2026-10-12T11:24:10Z [813ms] [Warning] [carb] Acquiring non optional plugin interface which is not listed as dependency: [omni::physx::IPhysxBenchmarks v1.0] (plugin: ), by client: omni.physics.physx.plugin. Add it to CARB_PLUGIN_IMPL_DEPS() macro of a client. +2026-10-12T11:24:10Z [822ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users. +2026-10-12T11:24:18Z [8,203ms] [Warning] [carb.cudainterop.plugin] CUDA_VISIBLE_DEVICES environment variable is set. +2026-10-12T11:24:18Z [8,203ms] [Warning] [carb.cudainterop.plugin] Note CUDA device enumeration and Omniverse device enumeration are different. +2026-10-12T11:24:18Z [8,203ms] [Warning] [carb.cudainterop.plugin] Setting CUDA_VISIBLE_DEVICES can lead to undesired behavior or crashes. +2026-10-12T11:24:26Z [16,346ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,347ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,349ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,421ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,424ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,424ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,426ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,426ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,427ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,427ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,429ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,429ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,430ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,430ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:24:26Z [16,433ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. + +|---------------------------------------------------------------------------------------------| +| Driver Version: 580.178.04 | Graphics API: Vulkan +|=============================================================================================| +| GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID | +| | | | | | Device-ID | UUID | +| | | | | | Bus-ID | | +|---------------------------------------------------------------------------------------------| +| 0 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 4e989f5e.. | +| | | | | | 1 | | +|---------------------------------------------------------------------------------------------| +| 1 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | c632e727.. | +| | | | | | 21 | | +|---------------------------------------------------------------------------------------------| +| 2 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | b85c9630.. | +| | | | | | 41 | | +|---------------------------------------------------------------------------------------------| +| 3 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 6e3f099e.. | +| | | | | | 61 | | +|---------------------------------------------------------------------------------------------| +| 4 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | e07ca849.. | +| | | | | | 81 | | +|---------------------------------------------------------------------------------------------| +| 5 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 3c662b7c.. | +| | | | | | a1 | | +|---------------------------------------------------------------------------------------------| +| 6 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 8c7e8f09.. | +| | | | | | c1 | | +|---------------------------------------------------------------------------------------------| +| 7 | NVIDIA GeForce RTX 4090 | Yes: 0 | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 9785c2f4.. | +| | | | | | e1 | | +|=============================================================================================| +| OS: 22.04.5 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.5, Kernel: 5.15.0-191-generic +| Processor: AMD EPYC 9554 64-Core Processor +| Cores: 128 | Logical Cores: 256 +|---------------------------------------------------------------------------------------------| +| Total Memory (MB): 773675 | Free Memory: 420871 +| Total Page/Swap (MB): 69631 | Free Page/Swap: 66059 +|---------------------------------------------------------------------------------------------| +2026-10-12T11:24:27Z [17,644ms] [Warning] [gpu.foundation.plugin] PCIe link width current (8) and maximum (16) for device 7 don't match. +2026-10-12T11:24:27Z [17,644ms] [Warning] [gpu.foundation.plugin] IOMMU is enabled. +2026-10-12T11:24:27Z [17,644ms] [Warning] [gpu.foundation.plugin] Detected IOMMU is enabled. Running CUDA peer-to-peer bandwidth and latency validation. +Unidirectional P2P=Enabled Bandwidth (P2P Writes) Matrix (GB/s) + D\D 0 + 0 923.46 +P2P=Enabled Latency (P2P Writes) Matrix (us) + GPU 0 + 0 1.45 + + CPU 0 + 0 3.72 +[simgen suite] no task corpus under /data/yichenzhao/EmbodiedSWE-vla/sim_gen; suite empty + +====================================================================================================== +[INFO][IsaacLab]: Logging to file: /data/yichenzhao/tmp/isaaclab/logs/isaaclab_2026-10-12_11-24-29.log +====================================================================================================== + +11:24:29 [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. +[room] pc_gpu_local: 1 room(s), zero physics prims +[batch h_s0_2] rollout 1/1: solve on 1 envs, noise_scale=1.0 … +PHASE1 {"phase": "start", "steps": 0, "seconds": 0.0, "held": false, "card": [0.2786101698875427, -0.3595951199531555, 0.029999999329447746], "hand": [0.14007863402366638, -0.3399790823459625, 0.5534675717353821], "offset": [-0.20543983578681946, -0.3888951241970062, -0.002400000113993883], "depth": 0.007400000002235174, "integral_position": [0.0, 0.0, 0.0], "integral_rotation": [0.0, 0.0, 0.0]} +2026-10-12T11:24:35Z [25,757ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +2026-10-12T11:24:35Z [25,757ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_1 +2026-10-12T11:24:35Z [25,757ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_2 +2026-10-12T11:24:35Z [25,757ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_3 +2026-10-12T11:24:35Z [25,757ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_4 +2026-10-12T11:24:35Z [25,757ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_5 +2026-10-12T11:24:35Z [25,757ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_6 +2026-10-12T11:24:35Z [25,757ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_7 +PHASE1 {"phase": "above_card", "steps": 151, "seconds": 10.066666666666666, "held": false, "card": [0.2786816954612732, -0.3599274158477783, 0.030091021209955215], "hand": [0.2800637483596802, -0.3401378095149994, 0.3309954106807709], "offset": [-0.205368310213089, -0.38922742009162903, -0.002308978233486414], "depth": 0.007308978121727705, "integral_position": [0.0014898123918101192, 6.033181125530973e-05, -0.0022936800960451365], "integral_rotation": [0.00013063076767139137, -0.000599598977714777, -0.0003461152082309127], "result": "reached"} +PHASE1 {"phase": "pinch_aligned", "steps": 227, "seconds": 15.133333333333333, "held": false, "card": [0.2787138819694519, -0.35992807149887085, 0.030091021209955215], "hand": [0.2783280611038208, -0.34021610021591187, 0.23185071349143982], "offset": [-0.20533612370491028, -0.38922807574272156, -0.002308978233486414], "depth": 0.007308978121727705, "integral_position": [0.00011004014231730253, 7.024008664302528e-05, -0.0017895218916237354], "integral_rotation": [0.000320804218063131, -0.0003439031424932182, -0.00038149504689499736], "result": "reached"} +[grasp-weld] env 0: GRIPPED card (aperture 35.7 mm) +2026-10-12T11:26:30Z [140,841ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "card_held", "steps": 272, "seconds": 18.133333333333333, "held": true, "card": [0.27873706817626953, -0.3599473536014557, 0.030092056840658188], "hand": [0.278554230928421, -0.34016063809394836, 0.23298220336437225], "offset": [-0.20531293749809265, -0.3892473578453064, -0.0023079426027834415], "depth": 0.007307942491024733, "integral_position": [0.000736409449018538, 0.00016237099771387875, -0.00034319228143431246], "integral_rotation": [-9.15007694857195e-05, -0.005930355750024319, -0.0020205341279506683]} +PHASE1 {"phase": "lift_clear", "steps": 512, "seconds": 34.13333333333333, "held": true, "card": [0.2843019962310791, -0.3632695972919464, 0.2598995268344879], "hand": [0.2790336608886719, -0.3492608368396759, 0.4632064700126648], "offset": [-0.19974800944328308, -0.3925696015357971, 0.22749952971935272], "depth": -0.2224995344877243, "integral_position": [-0.027011210098862648, 0.017853908240795135, 0.040149495005607605], "integral_rotation": [0.8399694561958313, 1.122739315032959, -0.16503871977329254], "result": "reached"} +PHASE1 {"phase": "above_case", "steps": 805, "seconds": 53.666666666666664, "held": true, "card": [0.4323034882545471, 0.028169110417366028, 0.2599753737449646], "hand": [0.4384530782699585, 0.04011321812868118, 0.46338725090026855], "offset": [-0.05174650996923447, -0.0011308901011943817, 0.2275753766298294], "depth": -0.222575381398201, "integral_position": [-0.006644660606980324, 0.03105088882148266, 0.038617536425590515], "integral_rotation": [1.3482304811477661, 0.39040783047676086, -0.22657924890518188], "result": "reached"} +PHASE1 {"phase": "inside_case", "steps": 963, "seconds": 64.2, "held": true, "card": [0.4327046573162079, 0.028895903378725052, 0.05508799105882645], "hand": [0.43867847323417664, 0.04006965458393097, 0.25855010747909546], "offset": [-0.0513453409075737, -0.00040409713983535767, 0.022687992081046104], "depth": -0.01768799126148224, "integral_position": [0.0022110636346042156, 0.032937049865722656, 0.03366876393556595], "integral_rotation": [1.3791142702102661, -0.008798579685389996, -0.21694450080394745], "result": "reached"} +PHASE1 {"phase": "slot_aligned", "steps": 1199, "seconds": 79.93333333333334, "held": true, "card": [0.4835900068283081, 0.02938510850071907, 0.05538322776556015], "hand": [0.4838647246360779, 0.04014074429869652, 0.25894832611083984], "offset": [-0.00045999325811862946, 8.510798215866089e-05, 0.022983228787779808], "depth": -0.017983227968215942, "integral_position": [0.006331996060907841, 0.03334081545472145, 0.03454358130693436], "integral_rotation": [1.3426908254623413, -0.2734130620956421, -0.12016675621271133], "result": "reached"} +PHASE1 {"phase": "seated_before_release", "steps": 1309, "seconds": 87.26666666666667, "held": true, "card": [0.48245131969451904, 0.02944902703166008, 0.03324577957391739], "hand": [0.483769029378891, 0.04020996391773224, 0.23680731654167175], "offset": [-0.001598680391907692, 0.0001490265130996704, 0.0008457801304757595], "depth": 0.0041542197577655315, "integral_position": [0.006939761806279421, 0.03287041559815407, 0.03334692865610123], "integral_rotation": [1.3371772766113281, -0.31472906470298767, -0.11996704339981079]} +[grasp-weld] env 0: RELEASED card +2026-10-12T11:33:55Z [585,050ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "hand_clear", "steps": 1427, "seconds": 95.13333333333333, "held": false, "card": [0.48248136043548584, 0.02914956770837307, 0.03246695175766945], "hand": [0.4837173521518707, 0.04000641033053398, 0.37923941016197205], "offset": [-0.001568639650940895, -0.00015043281018733978, 6.695231422781944e-05], "depth": 0.004933047574013472, "integral_position": [-5.220752791501582e-05, -0.00022126304975245148, 0.0027093873359262943], "integral_rotation": [0.04727877676486969, -0.00776718882843852, -0.003320656018331647], "result": "reached"} +PHASE1 {"phase": "finished", "steps": 1502, "seconds": 100.13333333333333, "held": false, "card": [0.48250484466552734, 0.029150651767849922, 0.03246524930000305], "hand": [0.4837323725223541, 0.04018745198845863, 0.3768370747566223], "offset": [-0.0015451554208993912, -0.00014934875071048737, 6.524985656142235e-05], "depth": 0.004934750031679869, "integral_position": [-1.4177770935930312e-05, 0.00026963918935507536, 0.00028312462382018566], "integral_rotation": [0.0014967008028179407, 0.0012488744687289, -0.0006941909086890519], "seated": true} +[batch h_s0_2] rollout 1/1: 1/1 succeeded, 1502 steps +[batch h_s0_2] DONE: 1/1 -> /data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/h_s0_2 diff --git a/provenance/h_s0_2_result.json b/provenance/h_s0_2_result.json new file mode 100644 index 0000000000000000000000000000000000000000..eb142d5f8cc2f2007b1fc094ff297ca72a2a1efa --- /dev/null +++ b/provenance/h_s0_2_result.json @@ -0,0 +1,231 @@ +{ + "returncode": 0, + "wall_seconds": 652.7651994228363, + "log": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/logs/h_s0_2.log", + "job": { + "name": "h_s0_2", + "strategy": "strategy_0", + "seed": 102, + "noise": 1, + "phase": null, + "scene": "scene_1" + }, + "episodes": [ + { + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 102, + "steps": 1350, + "batch_steps": 1502, + "success_step": 1320, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": true + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_0", + "git_sha": "1489552" + } + ], + "batch_meta": { + "batch": "h_s0_2", + "cell": "scene_1/strategy_0", + "cell_fingerprint": "fa82ab0cdcbb", + "preset": "assembly.pc_gpu.franka.osc", + "num_envs": 1, + "seed": 102, + "noise": { + "scale": 1.0, + "perturbed_row_frac": 0.3056, + "mean_abs": 0.002683, + "max_abs": 0.110484 + }, + "uniform_noise": {}, + "params": { + "physical_params": {}, + "env_draw": 0, + "nominal": true, + "per_env": [], + "solve_params": {}, + "solve_draw": 0, + "solve_drawn": {} + }, + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "verdicts": [ + { + "episode": 0, + "env": 0, + "success": true, + "score": 1.0 + } + ], + "created": "2026-10-12T11:34:52+00:00", + "git_sha": "1489552" + }, + "accepted": true, + "released_hold_passed": true, + "finished": [ + { + "phase": "finished", + "steps": 1502, + "seconds": 100.13333333333333, + "held": false, + "card": [ + 0.48250484466552734, + 0.029150651767849922, + 0.03246524930000305 + ], + "hand": [ + 0.4837323725223541, + 0.04018745198845863, + 0.3768370747566223 + ], + "offset": [ + -0.0015451554208993912, + -0.00014934875071048737, + 6.524985656142235e-05 + ], + "depth": 0.004934750031679869, + "integral_position": [ + -1.4177770935930312e-05, + 0.00026963918935507536, + 0.00028312462382018566 + ], + "integral_rotation": [ + 0.0014967008028179407, + 0.0012488744687289, + -0.0006941909086890519 + ], + "seated": true + } + ], + "replay_checked": false +} \ No newline at end of file diff --git a/provenance/h_s0_3.log b/provenance/h_s0_3.log new file mode 100644 index 0000000000000000000000000000000000000000..672ef11918e5c27a6dbdf9171460c0cdfa683600 --- /dev/null +++ b/provenance/h_s0_3.log @@ -0,0 +1,130 @@ +[INFO][AppLauncher]: Using device: cuda:0 +[INFO][AppLauncher]: Loading experience file: /data1/yichenzhao/EmbodiedSWE/.venv/lib/python3.11/site-packages/isaaclab/apps/isaaclab.python.headless.kit +[Info] [carb] Logging to file: /data/yichenzhao/projects/pc_gpu_five_stage_20261012/runtime/h_s0_3/logs/Kit/Isaac-Sim/5.1/kit_20261012_113422.log +2026-10-12T11:34:22Z [113ms] [Warning] [omni.usd_config.extension] Enable omni.materialx.libs extension to use MaterialX +2026-10-12T11:34:23Z [482ms] [Warning] [omni.platforminfo.plugin] failed to open the default display. Can't verify X Server version. +2026-10-12T11:34:23Z [589ms] [Warning] [carb] Acquiring non optional plugin interface which is not listed as dependency: [omni::physx::IPhysxBenchmarks v1.0] (plugin: ), by client: omni.physics.physx.plugin. Add it to CARB_PLUGIN_IMPL_DEPS() macro of a client. +2026-10-12T11:34:23Z [597ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users. +2026-10-12T11:34:25Z [3,283ms] [Warning] [carb.cudainterop.plugin] CUDA_VISIBLE_DEVICES environment variable is set. +2026-10-12T11:34:25Z [3,283ms] [Warning] [carb.cudainterop.plugin] Note CUDA device enumeration and Omniverse device enumeration are different. +2026-10-12T11:34:25Z [3,283ms] [Warning] [carb.cudainterop.plugin] Setting CUDA_VISIBLE_DEVICES can lead to undesired behavior or crashes. +2026-10-12T11:34:26Z [3,933ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,933ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,935ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,935ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,937ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,937ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,938ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,938ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,939ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,939ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,940ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,940ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T11:34:26Z [3,942ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. + +|---------------------------------------------------------------------------------------------| +| Driver Version: 580.178.04 | Graphics API: Vulkan +|=============================================================================================| +| GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID | +| | | | | | Device-ID | UUID | +| | | | | | Bus-ID | | +|---------------------------------------------------------------------------------------------| +| 0 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 4e989f5e.. | +| | | | | | 1 | | +|---------------------------------------------------------------------------------------------| +| 1 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | c632e727.. | +| | | | | | 21 | | +|---------------------------------------------------------------------------------------------| +| 2 | NVIDIA GeForce RTX 4090 | Yes: 0 | | 24810 MB | 10de | 0 | +| | | | | | 2684 | b85c9630.. | +| | | | | | 41 | | +|---------------------------------------------------------------------------------------------| +| 3 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 6e3f099e.. | +| | | | | | 61 | | +|---------------------------------------------------------------------------------------------| +| 4 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | e07ca849.. | +| | | | | | 81 | | +|---------------------------------------------------------------------------------------------| +| 5 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 3c662b7c.. | +| | | | | | a1 | | +|---------------------------------------------------------------------------------------------| +| 6 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 8c7e8f09.. | +| | | | | | c1 | | +|---------------------------------------------------------------------------------------------| +| 7 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 9785c2f4.. | +| | | | | | e1 | | +|=============================================================================================| +| OS: 22.04.5 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.5, Kernel: 5.15.0-191-generic +| Processor: AMD EPYC 9554 64-Core Processor +| Cores: 128 | Logical Cores: 256 +|---------------------------------------------------------------------------------------------| +| Total Memory (MB): 773675 | Free Memory: 480491 +| Total Page/Swap (MB): 69631 | Free Page/Swap: 66059 +|---------------------------------------------------------------------------------------------| +2026-10-12T11:34:27Z [4,513ms] [Warning] [gpu.foundation.plugin] IOMMU is enabled. +2026-10-12T11:34:27Z [4,513ms] [Warning] [gpu.foundation.plugin] Detected IOMMU is enabled. Running CUDA peer-to-peer bandwidth and latency validation. +Unidirectional P2P=Enabled Bandwidth (P2P Writes) Matrix (GB/s) + D\D 0 + 0 915.82 +P2P=Enabled Latency (P2P Writes) Matrix (us) + GPU 0 + 0 1.48 + + CPU 0 + 0 4.73 +[simgen suite] no task corpus under /data/yichenzhao/EmbodiedSWE-vla/sim_gen; suite empty + +====================================================================================================== +[INFO][IsaacLab]: Logging to file: /data/yichenzhao/tmp/isaaclab/logs/isaaclab_2026-10-12_11-34-28.log +====================================================================================================== + +11:34:28 [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. +[room] pc_gpu_local: 1 room(s), zero physics prims +[batch h_s0_3] rollout 1/1: solve on 1 envs, noise_scale=1.0 … +PHASE1 {"phase": "start", "steps": 0, "seconds": 0.0, "held": false, "card": [0.2764739394187927, -0.3597249686717987, 0.029999999329447746], "hand": [0.14007863402366638, -0.3399790823459625, 0.5534675717353821], "offset": [-0.20757606625556946, -0.3890249729156494, -0.002400000113993883], "depth": 0.007400000002235174, "integral_position": [0.0, 0.0, 0.0], "integral_rotation": [0.0, 0.0, 0.0]} +2026-10-12T11:34:32Z [10,152ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +2026-10-12T11:34:32Z [10,152ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_1 +2026-10-12T11:34:32Z [10,152ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_2 +2026-10-12T11:34:32Z [10,152ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_3 +2026-10-12T11:34:32Z [10,152ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_4 +2026-10-12T11:34:32Z [10,152ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_5 +2026-10-12T11:34:32Z [10,152ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_6 +2026-10-12T11:34:32Z [10,152ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_7 +PHASE1 {"phase": "above_card", "steps": 150, "seconds": 10.0, "held": false, "card": [0.2764592468738556, -0.36036884784698486, 0.030103307217359543], "hand": [0.27787524461746216, -0.33981525897979736, 0.3307708203792572], "offset": [-0.2075907588005066, -0.38966885209083557, -0.0022966922260820866], "depth": 0.007296692114323378, "integral_position": [0.0015081758610904217, 4.92334584123455e-05, -0.0023753424175083637], "integral_rotation": [0.00011871662718476728, -0.0006576427258551121, -0.00017386383842676878], "result": "reached"} +PHASE1 {"phase": "pinch_aligned", "steps": 227, "seconds": 15.133333333333333, "held": false, "card": [0.276447594165802, -0.3603689968585968, 0.030103299766778946], "hand": [0.27609431743621826, -0.33985182642936707, 0.23178885877132416], "offset": [-0.20760241150856018, -0.3896690011024475, -0.0022966996766626835], "depth": 0.0072966995649039745, "integral_position": [7.816488505341113e-05, 3.457267666817643e-05, -0.0016631362959742546], "integral_rotation": [0.00022404133051168174, -0.00032649110653437674, -0.0002624902408570051], "result": "reached"} +[grasp-weld] env 0: GRIPPED card (aperture 35.8 mm) +2026-10-12T11:35:37Z [75,347ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "card_held", "steps": 272, "seconds": 18.133333333333333, "held": true, "card": [0.27643507719039917, -0.3603908121585846, 0.03010428324341774], "hand": [0.2762519121170044, -0.33979320526123047, 0.23286548256874084], "offset": [-0.207614928483963, -0.3896908164024353, -0.0022957162000238895], "depth": 0.007295716088265181, "integral_position": [0.0007473898585885763, 0.000109430133306887, -0.0003698882646858692], "integral_rotation": [7.781748718116432e-05, -0.006244424730539322, -0.0022843198385089636]} +PHASE1 {"phase": "lift_clear", "steps": 512, "seconds": 34.13333333333333, "held": true, "card": [0.2820185422897339, -0.36377865076065063, 0.26004889607429504], "hand": [0.2766733467578888, -0.35060548782348633, 0.463360995054245], "offset": [-0.2020314633846283, -0.39307865500450134, 0.22764889895915985], "depth": -0.22264890372753143, "integral_position": [-0.027281662449240685, 0.017971618101000786, 0.04050145670771599], "integral_rotation": [0.8589888215065002, 1.1296080350875854, -0.17769941687583923], "result": "reached"} +PHASE1 {"phase": "above_case", "steps": 808, "seconds": 53.86666666666667, "held": true, "card": [0.4324180781841278, 0.028156191110610962, 0.2600782811641693], "hand": [0.4384903013706207, 0.039397213608026505, 0.4634852707386017], "offset": [-0.05163192003965378, -0.0011438094079494476, 0.22767828404903412], "depth": -0.2226782888174057, "integral_position": [-0.006905573885887861, 0.03157784789800644, 0.039188336580991745], "integral_rotation": [1.3813670873641968, 0.3960752487182617, -0.24715659022331238], "result": "reached"} +PHASE1 {"phase": "inside_case", "steps": 970, "seconds": 64.66666666666667, "held": true, "card": [0.4330040216445923, 0.028807058930397034, 0.05516199767589569], "hand": [0.43870899081230164, 0.03929423168301582, 0.2586214244365692], "offset": [-0.0510459765791893, -0.0004929415881633759, 0.02276199869811535], "depth": -0.017761997878551483, "integral_position": [0.0023204998578876257, 0.03347335755825043, 0.03427843004465103], "integral_rotation": [1.4161142110824585, -0.012746080756187439, -0.24097147583961487], "result": "reached"} +PHASE1 {"phase": "slot_aligned", "steps": 1205, "seconds": 80.33333333333333, "held": true, "card": [0.4836152493953705, 0.02936616726219654, 0.055381886661052704], "hand": [0.48385754227638245, 0.0393601655960083, 0.25893840193748474], "offset": [-0.0004347506910562515, 6.616674363613129e-05, 0.022981887683272362], "depth": -0.017981886863708496, "integral_position": [0.006397569086402655, 0.033861011266708374, 0.03506050258874893], "integral_rotation": [1.382535457611084, -0.2730748653411865, -0.14470599591732025], "result": "reached"} +PHASE1 {"phase": "seated_before_release", "steps": 1315, "seconds": 87.66666666666667, "held": true, "card": [0.48245108127593994, 0.02944810874760151, 0.03324641287326813], "hand": [0.4837678074836731, 0.03943812847137451, 0.23680037260055542], "offset": [-0.0015989188104867935, 0.00014810822904109955, 0.000846413429826498], "depth": 0.004153586458414793, "integral_position": [0.007046863902360201, 0.03340328484773636, 0.033876728266477585], "integral_rotation": [1.3772774934768677, -0.31481146812438965, -0.14585144817829132]} +[grasp-weld] env 0: RELEASED card +2026-10-12T11:41:53Z [451,211ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "hand_clear", "steps": 1433, "seconds": 95.53333333333333, "held": false, "card": [0.4824846684932709, 0.029149102047085762, 0.03246738389134407], "hand": [0.4837057590484619, 0.039236392825841904, 0.37925416231155396], "offset": [-0.001565331593155861, -0.00015089847147464752, 6.738444790244102e-05], "depth": 0.00493261544033885, "integral_position": [-2.905436667788308e-05, -0.0002208096848335117, 0.002704782411456108], "integral_rotation": [0.04925350099802017, -0.00786655768752098, -0.004605972673743963], "result": "reached"} +PHASE1 {"phase": "finished", "steps": 1508, "seconds": 100.53333333333333, "held": false, "card": [0.48251092433929443, 0.029149793088436127, 0.032466888427734375], "hand": [0.4837465286254883, 0.03942174091935158, 0.3768291771411896], "offset": [-0.0015390757471323013, -0.00015020743012428284, 6.688898429274559e-05], "depth": 0.0049331109039485455, "integral_position": [-1.1461052054073662e-05, 0.0002689138927962631, 0.00027810398023575544], "integral_rotation": [0.0016256680246442556, 0.001209697569720447, -0.0007144960109144449], "seated": true} +[batch h_s0_3] rollout 1/1: 1/1 succeeded, 1508 steps +[batch h_s0_3] DONE: 1/1 -> /data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/h_s0_3 diff --git a/provenance/h_s0_3_result.json b/provenance/h_s0_3_result.json new file mode 100644 index 0000000000000000000000000000000000000000..343be6e690fbe5c6c0f21ff1845db518cb9b5729 --- /dev/null +++ b/provenance/h_s0_3_result.json @@ -0,0 +1,231 @@ +{ + "returncode": 0, + "wall_seconds": 525.5503447055817, + "log": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/logs/h_s0_3.log", + "job": { + "name": "h_s0_3", + "strategy": "strategy_0", + "seed": 103, + "noise": 1, + "phase": null, + "scene": "scene_1" + }, + "episodes": [ + { + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 103, + "steps": 1350, + "batch_steps": 1508, + "success_step": 1320, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": true + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_0", + "git_sha": "1489552" + } + ], + "batch_meta": { + "batch": "h_s0_3", + "cell": "scene_1/strategy_0", + "cell_fingerprint": "fa82ab0cdcbb", + "preset": "assembly.pc_gpu.franka.osc", + "num_envs": 1, + "seed": 103, + "noise": { + "scale": 1.0, + "perturbed_row_frac": 0.3064, + "mean_abs": 0.00272, + "max_abs": 0.092991 + }, + "uniform_noise": {}, + "params": { + "physical_params": {}, + "env_draw": 0, + "nominal": true, + "per_env": [], + "solve_params": {}, + "solve_draw": 0, + "solve_drawn": {} + }, + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "verdicts": [ + { + "episode": 0, + "env": 0, + "success": true, + "score": 1.0 + } + ], + "created": "2026-10-12T11:42:57+00:00", + "git_sha": "1489552" + }, + "accepted": true, + "released_hold_passed": true, + "finished": [ + { + "phase": "finished", + "steps": 1508, + "seconds": 100.53333333333333, + "held": false, + "card": [ + 0.48251092433929443, + 0.029149793088436127, + 0.032466888427734375 + ], + "hand": [ + 0.4837465286254883, + 0.03942174091935158, + 0.3768291771411896 + ], + "offset": [ + -0.0015390757471323013, + -0.00015020743012428284, + 6.688898429274559e-05 + ], + "depth": 0.0049331109039485455, + "integral_position": [ + -1.1461052054073662e-05, + 0.0002689138927962631, + 0.00027810398023575544 + ], + "integral_rotation": [ + 0.0016256680246442556, + 0.001209697569720447, + -0.0007144960109144449 + ], + "seated": true + } + ], + "replay_checked": false +} \ No newline at end of file diff --git a/provenance/lerobot_render8_camera_frames.grid.json b/provenance/lerobot_render8_camera_frames.grid.json new file mode 100644 index 0000000000000000000000000000000000000000..cfca0eaebed5fe20e34345216f721a927e19ba4b --- /dev/null +++ b/provenance/lerobot_render8_camera_frames.grid.json @@ -0,0 +1,45 @@ +{ + "num_envs": 4, + "origins": [ + [ + 25.0, + -25.0, + 0.0 + ], + [ + 25.0, + 25.0, + 0.0 + ], + [ + -25.0, + -25.0, + 0.0 + ], + [ + -25.0, + 25.0, + 0.0 + ] + ], + "actual_light_intensity": 2500.0, + "pilot_parts_box_prim_present": [ + true, + true, + true, + true + ], + "episodes_in_render_order": [ + "data/p04_phase/ep_0000", + "data/p02_strategy/ep_0000", + "data/p03_dynamics/ep_0000", + "data/p04_phase/ep_0001", + "data/h_s0_1/ep_0000", + "data/h_s0_2/ep_0000", + "data/h_s0_3/ep_0000", + "data/p01_scene/ep_0000" + ], + "pose_source": "Isaac camera XformPrimView after forced update", + "world_quaternion": "wxyz, +X forward +Z up", + "ros_quaternion": "wxyz, +Z forward -Y up" +} \ No newline at end of file diff --git a/provenance/lerobot_render8_camera_frames.jsonl b/provenance/lerobot_render8_camera_frames.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..fe460a9338bdb4b85aea236eefc5984e210d792c --- /dev/null +++ b/provenance/lerobot_render8_camera_frames.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32125450ee3e31406eb6e4d63b9d76be93d088a1e863fe5b1d0a128d7fc10ebf +size 12080204 diff --git a/provenance/lerobot_render8_command.json b/provenance/lerobot_render8_command.json new file mode 100644 index 0000000000000000000000000000000000000000..d95944c96a9be05949c0b069f86f6f842c2f6388 --- /dev/null +++ b/provenance/lerobot_render8_command.json @@ -0,0 +1,39 @@ +{ + "cmd": [ + "/data/yichenzhao/pc_gpu_eval_tools/pc_gpu_runtime.sh", + "/data1/yichenzhao/EmbodiedSWE/.venv/bin/python", + "/data/yichenzhao/EmbodiedSWE-vla/data_engine/scripts/render.py", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot", + "--episodes", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/h_s0_1/ep_0000", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/h_s0_2/ep_0000", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/h_s0_3/ep_0000", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/p01_scene/ep_0000", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/p02_strategy/ep_0000", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/p03_dynamics/ep_0000", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/p04_phase/ep_0000", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/p04_phase/ep_0001", + "--num_envs", + "4", + "--size", + "320", + "240", + "--env-spacing", + "50", + "--cams", + "front", + "wrist", + "--visual_draw", + "1", + "--view-suffix", + "_lerobot", + "--max-frames", + "0", + "--visual", + "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "--headless", + "--kit_args=--portable-root /data/yichenzhao/projects/pc_gpu_five_stage_20261012/runtime/lerobot_render8 --/app/userConfigPath=/data/yichenzhao/projects/pc_gpu_five_stage_20261012/runtime/lerobot_render8/isaac.json --/renderer/multiGpu/enabled=false --/renderer/activeGpu=2 --/physics/cudaDevice=0" + ], + "gpu": 2, + "home_readonly": true +} \ No newline at end of file diff --git a/provenance/lerobot_render8_result.json b/provenance/lerobot_render8_result.json new file mode 100644 index 0000000000000000000000000000000000000000..4fdbad17db0cbb7a9a2a00c9a6f18694643a3c87 --- /dev/null +++ b/provenance/lerobot_render8_result.json @@ -0,0 +1,18 @@ +{ + "returncode": 0, + "wall_seconds": 330.46759247779846, + "log": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/logs/lerobot_render8.log", + "episodes": [ + "data/h_s0_1/ep_0000", + "data/h_s0_2/ep_0000", + "data/h_s0_3/ep_0000", + "data/p01_scene/ep_0000", + "data/p02_strategy/ep_0000", + "data/p03_dynamics/ep_0000", + "data/p04_phase/ep_0000", + "data/p04_phase/ep_0001" + ], + "draw": 1, + "max_frames": 0, + "camera_frames": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_frames.jsonl" +} \ No newline at end of file diff --git a/provenance/lerobot_selection.json b/provenance/lerobot_selection.json new file mode 100644 index 0000000000000000000000000000000000000000..f3bef974f27c8a9baf4ddb19de02860877424c63 --- /dev/null +++ b/provenance/lerobot_selection.json @@ -0,0 +1,341 @@ +{ + "target": 20, + "selected": [ + { + "episode": "data/h_s0_1/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 101, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "5b3eb381fd8cae17d2a518056b242dd78b2b95bff631a1e9f8b0b50e9ca0be16", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/h_s0_2/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 102, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "0f6896868d106319c43601979ebbcc6fcab0b52eb5c408c8acdcb15fc1fc933a", + "noise": { + "perturbed_rows": 459, + "max_abs": 0.11048414558172226 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/h_s0_3/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 103, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "3d2bcf5a63959dbd7ad013ad87e2008b9a67ede39886c71be73357e39d30124c", + "noise": { + "perturbed_rows": 462, + "max_abs": 0.09299086034297943 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p01_scene/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 100, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "006656ffd4d6e1310c0f456fb85f45f6ebcc65f2e066a99fefbf97726ae5b663", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p02_strategy/ep_0000", + "cell": "scene_1/strategy_1", + "seed": 100, + "steps": 1320, + "action_shape": [ + 1320, + 8 + ], + "trajectory_sha256": "542ffe626535ed34a448d1250095ab7fd2502902c18676eb09be00e21a9ac3ef", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p03_dynamics/ep_0000", + "cell": "scene_1/strategy_1", + "seed": 100, + "steps": 1320, + "action_shape": [ + 1320, + 8 + ], + "trajectory_sha256": "22f561b73af4b311e35a1f3c490da9172effa7294ffb31ec2ae1c7f99e5d0153", + "noise": { + "perturbed_rows": 460, + "max_abs": 0.10294100642204285 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p04_phase/ep_0000", + "cell": "scene_1/strategy_1/phase_0", + "seed": 200, + "steps": 660, + "action_shape": [ + 660, + 8 + ], + "trajectory_sha256": "d67d6e72cb347ddad8f174c2c87f4e079dc7e923976467e6cccd56bf9818de89", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p04_phase/ep_0001", + "cell": "scene_1/strategy_1/phase_0", + "seed": 201, + "steps": 1320, + "action_shape": [ + 1320, + 8 + ], + "trajectory_sha256": "decaf4c129959bb995cc38f83da702b949014ba604185b183dc1c598cfcf6cdf", + "noise": { + "perturbed_rows": 458, + "max_abs": 0.10328654199838638 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + } + ], + "controls": [ + { + "episode": "data/p00_control/ep_0000", + "cell": "scene_0/strategy_0", + "seed": 900, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "e8a91ef892ccf02611d09b3523ce0e281a7b67c449222c5bf21caa536c2ecb7d", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + } + ], + "all_successes": [ + { + "episode": "data/h_s0_1/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 101, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "5b3eb381fd8cae17d2a518056b242dd78b2b95bff631a1e9f8b0b50e9ca0be16", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/h_s0_2/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 102, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "0f6896868d106319c43601979ebbcc6fcab0b52eb5c408c8acdcb15fc1fc933a", + "noise": { + "perturbed_rows": 459, + "max_abs": 0.11048414558172226 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/h_s0_3/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 103, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "3d2bcf5a63959dbd7ad013ad87e2008b9a67ede39886c71be73357e39d30124c", + "noise": { + "perturbed_rows": 462, + "max_abs": 0.09299086034297943 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p00_control/ep_0000", + "cell": "scene_0/strategy_0", + "seed": 900, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "e8a91ef892ccf02611d09b3523ce0e281a7b67c449222c5bf21caa536c2ecb7d", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p01_scene/ep_0000", + "cell": "scene_1/strategy_0", + "seed": 100, + "steps": 1350, + "action_shape": [ + 1350, + 8 + ], + "trajectory_sha256": "006656ffd4d6e1310c0f456fb85f45f6ebcc65f2e066a99fefbf97726ae5b663", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p02_strategy/ep_0000", + "cell": "scene_1/strategy_1", + "seed": 100, + "steps": 1320, + "action_shape": [ + 1320, + 8 + ], + "trajectory_sha256": "542ffe626535ed34a448d1250095ab7fd2502902c18676eb09be00e21a9ac3ef", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p03_dynamics/ep_0000", + "cell": "scene_1/strategy_1", + "seed": 100, + "steps": 1320, + "action_shape": [ + 1320, + 8 + ], + "trajectory_sha256": "22f561b73af4b311e35a1f3c490da9172effa7294ffb31ec2ae1c7f99e5d0153", + "noise": { + "perturbed_rows": 460, + "max_abs": 0.10294100642204285 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p04_phase/ep_0000", + "cell": "scene_1/strategy_1/phase_0", + "seed": 200, + "steps": 660, + "action_shape": [ + 660, + 8 + ], + "trajectory_sha256": "d67d6e72cb347ddad8f174c2c87f4e079dc7e923976467e6cccd56bf9818de89", + "noise": { + "perturbed_rows": 0, + "max_abs": 0.0 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + }, + { + "episode": "data/p04_phase/ep_0001", + "cell": "scene_1/strategy_1/phase_0", + "seed": 201, + "steps": 1320, + "action_shape": [ + 1320, + 8 + ], + "trajectory_sha256": "decaf4c129959bb995cc38f83da702b949014ba604185b183dc1c598cfcf6cdf", + "noise": { + "perturbed_rows": 458, + "max_abs": 0.10328654199838638 + }, + "replay_checked": false, + "source": "own generated solve", + "accepted_batch": true + } + ], + "failures": [], + "unique_selected": 8, + "render_expected_samples": 24, + "failed_batches": [ + "h_s0_4" + ], + "scope": "Single-env five-level pilot; no paper-scale orchestrator/replay certification", + "train_test_split": "Not assigned; all looks of an underlying trajectory must stay together" +} \ No newline at end of file diff --git a/provenance/p01_scene.log b/provenance/p01_scene.log new file mode 100644 index 0000000000000000000000000000000000000000..99c16d648f7e7e753ddb051a82b8c9498353c017 --- /dev/null +++ b/provenance/p01_scene.log @@ -0,0 +1,132 @@ +[INFO][AppLauncher]: Using device: cuda:0 +[INFO][AppLauncher]: Loading experience file: /data1/yichenzhao/EmbodiedSWE/.venv/lib/python3.11/site-packages/isaaclab/apps/isaaclab.python.headless.kit +[Info] [carb] Logging to file: /data/yichenzhao/projects/pc_gpu_five_stage_20261012/runtime/p01_scene/logs/Kit/Isaac-Sim/5.1/kit_20261012_103621.log +2026-10-12T10:36:22Z [334ms] [Warning] [carb.omniclient.plugin] 1919140: OmniHub: ThreadId(03) Hub encountered error. Trying to reconnect to Hub. retry_reason="Hub failed to launch: Io(\"Resource temporarily unavailable (os error 11)\")" +2026-10-12T10:36:22Z [461ms] [Warning] [omni.usd_config.extension] Enable omni.materialx.libs extension to use MaterialX +2026-10-12T10:36:22Z [930ms] [Warning] [omni.platforminfo.plugin] failed to open the default display. Can't verify X Server version. +2026-10-12T10:36:23Z [1,162ms] [Warning] [carb] Acquiring non optional plugin interface which is not listed as dependency: [omni::physx::IPhysxBenchmarks v1.0] (plugin: ), by client: omni.physics.physx.plugin. Add it to CARB_PLUGIN_IMPL_DEPS() macro of a client. +2026-10-12T10:36:23Z [1,202ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users. +2026-10-12T10:36:28Z [6,312ms] [Warning] [carb.cudainterop.plugin] CUDA_VISIBLE_DEVICES environment variable is set. +2026-10-12T10:36:28Z [6,313ms] [Warning] [carb.cudainterop.plugin] Note CUDA device enumeration and Omniverse device enumeration are different. +2026-10-12T10:36:28Z [6,313ms] [Warning] [carb.cudainterop.plugin] Setting CUDA_VISIBLE_DEVICES can lead to undesired behavior or crashes. +2026-10-12T10:36:29Z [7,898ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,898ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,899ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,899ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,899ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,899ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,900ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,900ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,901ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,901ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,902ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,902ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,903ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,903ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:36:29Z [7,904ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. + +|---------------------------------------------------------------------------------------------| +| Driver Version: 580.178.04 | Graphics API: Vulkan +|=============================================================================================| +| GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID | +| | | | | | Device-ID | UUID | +| | | | | | Bus-ID | | +|---------------------------------------------------------------------------------------------| +| 0 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 4e989f5e.. | +| | | | | | 1 | | +|---------------------------------------------------------------------------------------------| +| 1 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | c632e727.. | +| | | | | | 21 | | +|---------------------------------------------------------------------------------------------| +| 2 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | b85c9630.. | +| | | | | | 41 | | +|---------------------------------------------------------------------------------------------| +| 3 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 6e3f099e.. | +| | | | | | 61 | | +|---------------------------------------------------------------------------------------------| +| 4 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | e07ca849.. | +| | | | | | 81 | | +|---------------------------------------------------------------------------------------------| +| 5 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 3c662b7c.. | +| | | | | | a1 | | +|---------------------------------------------------------------------------------------------| +| 6 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 8c7e8f09.. | +| | | | | | c1 | | +|---------------------------------------------------------------------------------------------| +| 7 | NVIDIA GeForce RTX 4090 | Yes: 0 | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 9785c2f4.. | +| | | | | | e1 | | +|=============================================================================================| +| OS: 22.04.5 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.5, Kernel: 5.15.0-191-generic +| Processor: AMD EPYC 9554 64-Core Processor +| Cores: 128 | Logical Cores: 256 +|---------------------------------------------------------------------------------------------| +| Total Memory (MB): 773675 | Free Memory: 485040 +| Total Page/Swap (MB): 69631 | Free Page/Swap: 66059 +|---------------------------------------------------------------------------------------------| +2026-10-12T10:36:30Z [8,501ms] [Warning] [gpu.foundation.plugin] PCIe link width current (8) and maximum (16) for device 7 don't match. +2026-10-12T10:36:30Z [8,501ms] [Warning] [gpu.foundation.plugin] IOMMU is enabled. +2026-10-12T10:36:30Z [8,501ms] [Warning] [gpu.foundation.plugin] Detected IOMMU is enabled. Running CUDA peer-to-peer bandwidth and latency validation. +Unidirectional P2P=Enabled Bandwidth (P2P Writes) Matrix (GB/s) + D\D 0 + 0 918.04 +P2P=Enabled Latency (P2P Writes) Matrix (us) + GPU 0 + 0 1.42 + + CPU 0 + 0 2.08 +[simgen suite] no task corpus under /data/yichenzhao/EmbodiedSWE-vla/sim_gen; suite empty + +====================================================================================================== +[INFO][IsaacLab]: Logging to file: /data/yichenzhao/tmp/isaaclab/logs/isaaclab_2026-10-12_10-36-37.log +====================================================================================================== + +10:36:37 [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. +[room] pc_gpu_local: 1 room(s), zero physics prims +[batch p01_scene] rollout 1/1: solve on 1 envs … +PHASE1 {"phase": "start", "steps": 0, "seconds": 0.0, "held": false, "card": [0.2826751172542572, -0.3597199022769928, 0.029999999329447746], "hand": [0.14007863402366638, -0.3399790823459625, 0.5534675717353821], "offset": [-0.20137488842010498, -0.3890199065208435, -0.002400000113993883], "depth": 0.007400000002235174, "integral_position": [0.0, 0.0, 0.0], "integral_rotation": [0.0, 0.0, 0.0]} +2026-10-12T10:36:42Z [20,150ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +2026-10-12T10:36:42Z [20,150ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_1 +2026-10-12T10:36:42Z [20,150ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_2 +2026-10-12T10:36:42Z [20,150ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_3 +2026-10-12T10:36:42Z [20,150ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_4 +2026-10-12T10:36:42Z [20,150ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_5 +2026-10-12T10:36:42Z [20,150ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_6 +2026-10-12T10:36:42Z [20,150ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_7 +PHASE1 {"phase": "above_card", "steps": 152, "seconds": 10.133333333333333, "held": false, "card": [0.28266340494155884, -0.3603738248348236, 0.030103549361228943], "hand": [0.28408676385879517, -0.3397461771965027, 0.3308429718017578], "offset": [-0.20138660073280334, -0.3896738290786743, -0.0022964500822126865], "depth": 0.007296449970453978, "integral_position": [0.0015363858547061682, 9.871127258520573e-05, -0.002303143497556448], "integral_rotation": [8.428836008533835e-05, -0.0007093559252098203, -0.0005039431853219867], "result": "reached"} +PHASE1 {"phase": "pinch_aligned", "steps": 228, "seconds": 15.2, "held": false, "card": [0.2826544940471649, -0.3603709936141968, 0.030103489756584167], "hand": [0.2823433578014374, -0.33983996510505676, 0.23165827989578247], "offset": [-0.20139551162719727, -0.3896709978580475, -0.002296509686857462], "depth": 0.007296509575098753, "integral_position": [0.00017441761156078428, 7.540783553849906e-05, -0.0018390046898275614], "integral_rotation": [0.00034285394940525293, -0.0006900355801917613, -0.00040539377368986607], "result": "reached"} +[grasp-weld] env 0: GRIPPED card (aperture 35.8 mm) +2026-10-12T10:37:47Z [85,930ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "card_held", "steps": 273, "seconds": 18.2, "held": true, "card": [0.2826434075832367, -0.36039504408836365, 0.030104488134384155], "hand": [0.28246963024139404, -0.3397686779499054, 0.23285487294197083], "offset": [-0.2014065980911255, -0.38969504833221436, -0.002295511309057474], "depth": 0.007295511197298765, "integral_position": [0.0007544005056843162, 0.00012658839114010334, -0.000380995508749038], "integral_rotation": [0.0006006363546475768, -0.00649244524538517, -0.0027230277191847563]} +PHASE1 {"phase": "lift_clear", "steps": 514, "seconds": 34.266666666666666, "held": true, "card": [0.2881632447242737, -0.36377134919166565, 0.25987398624420166], "hand": [0.2829028367996216, -0.3505253791809082, 0.463175892829895], "offset": [-0.1958867609500885, -0.39307135343551636, 0.22747398912906647], "depth": -0.22247399389743805, "integral_position": [-0.02695193514227867, 0.01824553683400154, 0.040526557713747025], "integral_rotation": [0.8692886829376221, 1.1237566471099854, -0.17657692730426788], "result": "reached"} +PHASE1 {"phase": "above_case", "steps": 808, "seconds": 53.86666666666667, "held": true, "card": [0.4325268864631653, 0.028160719200968742, 0.2600366473197937], "hand": [0.43861138820648193, 0.039393674582242966, 0.46344029903411865], "offset": [-0.0515231117606163, -0.0011392813175916672, 0.2276366502046585], "depth": -0.2226366549730301, "integral_position": [-0.006886857561767101, 0.03141482174396515, 0.039015647023916245], "integral_rotation": [1.3808280229568481, 0.3965442478656769, -0.2481003999710083], "result": "reached"} +PHASE1 {"phase": "inside_case", "steps": 970, "seconds": 64.66666666666667, "held": true, "card": [0.4329996705055237, 0.028806054964661598, 0.055161409080028534], "hand": [0.43871641159057617, 0.039306964725255966, 0.25861144065856934], "offset": [-0.051050327718257904, -0.0004939455538988113, 0.022761410102248192], "depth": -0.017761409282684326, "integral_position": [0.002316504716873169, 0.03346090391278267, 0.034265268594026566], "integral_rotation": [1.415365219116211, -0.01267815288156271, -0.24049268662929535], "result": "reached"} +PHASE1 {"phase": "slot_aligned", "steps": 1205, "seconds": 80.33333333333333, "held": true, "card": [0.4836157560348511, 0.029367761686444283, 0.055382534861564636], "hand": [0.4838685989379883, 0.03937539830803871, 0.2589303255081177], "offset": [-0.0004342440515756607, 6.776116788387299e-05, 0.022982535883784294], "depth": -0.01798253506422043, "integral_position": [0.006391522940248251, 0.033841993659734726, 0.03504281863570213], "integral_rotation": [1.3815898895263672, -0.272988498210907, -0.14417538046836853], "result": "reached"} +PHASE1 {"phase": "seated_before_release", "steps": 1315, "seconds": 87.66666666666667, "held": true, "card": [0.4824505150318146, 0.02944919653236866, 0.033248282968997955], "hand": [0.48378786444664, 0.0394541434943676, 0.23679305613040924], "offset": [-0.0015994850546121597, 0.00014919601380825043, 0.0008482835255563259], "depth": 0.004151716362684965, "integral_position": [0.007043675985187292, 0.033388346433639526, 0.03386048972606659], "integral_rotation": [1.3763021230697632, -0.31468677520751953, -0.14533540606498718]} +[grasp-weld] env 0: RELEASED card +2026-10-12T10:45:42Z [560,948ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "hand_clear", "steps": 1433, "seconds": 95.53333333333333, "held": false, "card": [0.48248347640037537, 0.029145367443561554, 0.03246776759624481], "hand": [0.48375415802001953, 0.03924807533621788, 0.37922635674476624], "offset": [-0.0015665236860513687, -0.0001546330749988556, 6.77681528031826e-05], "depth": 0.0049322317354381084, "integral_position": [-2.5874775019474328e-05, -0.00022264775179792196, 0.0026979194954037666], "integral_rotation": [0.04908222705125809, -0.008053276687860489, -0.004369904287159443], "result": "reached"} +PHASE1 {"phase": "finished", "steps": 1508, "seconds": 100.53333333333333, "held": false, "card": [0.48250439763069153, 0.02915000542998314, 0.032467152923345566], "hand": [0.4837587773799896, 0.039429161697626114, 0.3768157660961151], "offset": [-0.0015456024557352066, -0.0001499950885772705, 6.715347990393639e-05], "depth": 0.004932846408337355, "integral_position": [-1.0606059731799178e-05, 0.00026982201961800456, 0.0002797789347823709], "integral_rotation": [0.001590328523889184, 0.0012099427403882146, -0.0006967930239625275], "seated": true} +[batch p01_scene] rollout 1/1: 1/1 succeeded, 1508 steps +[batch p01_scene] DONE: 1/1 -> /data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/p01_scene diff --git a/provenance/p01_scene_result.json b/provenance/p01_scene_result.json new file mode 100644 index 0000000000000000000000000000000000000000..938d643eee190a2930cd1bf63189bd29634e2faa --- /dev/null +++ b/provenance/p01_scene_result.json @@ -0,0 +1,187 @@ +{ + "returncode": 0, + "wall_seconds": 670.6502726078033, + "log": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/logs/p01_scene.log", + "job": { + "name": "p01_scene", + "strategy": "strategy_0", + "seed": 100, + "noise": 0, + "phase": null, + "scene": "scene_1" + }, + "episodes": [ + { + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 100, + "steps": 1350, + "batch_steps": 1508, + "success_step": 1320, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": {}, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_0", + "git_sha": "1489552" + } + ], + "batch_meta": { + "batch": "p01_scene", + "cell": "scene_1/strategy_0", + "cell_fingerprint": "fa82ab0cdcbb", + "preset": "assembly.pc_gpu.franka.osc", + "num_envs": 1, + "seed": 100, + "noise": {}, + "uniform_noise": {}, + "params": { + "physical_params": {}, + "env_draw": 0, + "nominal": true, + "per_env": [], + "solve_params": {}, + "solve_draw": 0, + "solve_drawn": {} + }, + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "verdicts": [ + { + "episode": 0, + "env": 0, + "success": true, + "score": 1.0 + } + ], + "created": "2026-10-12T10:47:21+00:00", + "git_sha": "1489552" + }, + "accepted": true, + "replay_checked": false +} \ No newline at end of file diff --git a/provenance/p02_strategy.log b/provenance/p02_strategy.log new file mode 100644 index 0000000000000000000000000000000000000000..f77e5dc9ab91ca58bf46ca376a783f7285725f0d --- /dev/null +++ b/provenance/p02_strategy.log @@ -0,0 +1,131 @@ +[INFO][AppLauncher]: Using device: cuda:0 +[INFO][AppLauncher]: Loading experience file: /data1/yichenzhao/EmbodiedSWE/.venv/lib/python3.11/site-packages/isaaclab/apps/isaaclab.python.headless.kit +[Info] [carb] Logging to file: /data/yichenzhao/projects/pc_gpu_five_stage_20261012/runtime/p02_strategy/logs/Kit/Isaac-Sim/5.1/kit_20261012_104732.log +2026-10-12T10:47:32Z [132ms] [Warning] [omni.usd_config.extension] Enable omni.materialx.libs extension to use MaterialX +2026-10-12T10:47:33Z [596ms] [Warning] [omni.platforminfo.plugin] failed to open the default display. Can't verify X Server version. +2026-10-12T10:47:33Z [721ms] [Warning] [carb] Acquiring non optional plugin interface which is not listed as dependency: [omni::physx::IPhysxBenchmarks v1.0] (plugin: ), by client: omni.physics.physx.plugin. Add it to CARB_PLUGIN_IMPL_DEPS() macro of a client. +2026-10-12T10:47:33Z [778ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users. +2026-10-12T10:47:37Z [5,115ms] [Warning] [carb.cudainterop.plugin] CUDA_VISIBLE_DEVICES environment variable is set. +2026-10-12T10:47:37Z [5,115ms] [Warning] [carb.cudainterop.plugin] Note CUDA device enumeration and Omniverse device enumeration are different. +2026-10-12T10:47:37Z [5,115ms] [Warning] [carb.cudainterop.plugin] Setting CUDA_VISIBLE_DEVICES can lead to undesired behavior or crashes. +2026-10-12T10:47:44Z [12,164ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:44Z [12,165ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:44Z [12,237ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:44Z [12,237ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:44Z [12,373ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:44Z [12,373ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:44Z [12,391ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:44Z [12,391ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:44Z [12,430ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:44Z [12,430ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:45Z [12,494ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:45Z [12,505ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:45Z [12,590ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:45Z [12,590ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:45Z [12,591ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. + +|---------------------------------------------------------------------------------------------| +| Driver Version: 580.178.04 | Graphics API: Vulkan +|=============================================================================================| +| GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID | +| | | | | | Device-ID | UUID | +| | | | | | Bus-ID | | +|---------------------------------------------------------------------------------------------| +| 0 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 4e989f5e.. | +| | | | | | 1 | | +|---------------------------------------------------------------------------------------------| +| 1 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | c632e727.. | +| | | | | | 21 | | +|---------------------------------------------------------------------------------------------| +| 2 | NVIDIA GeForce RTX 4090 | Yes: 0 | | 24810 MB | 10de | 0 | +| | | | | | 2684 | b85c9630.. | +| | | | | | 41 | | +|---------------------------------------------------------------------------------------------| +| 3 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 6e3f099e.. | +| | | | | | 61 | | +|---------------------------------------------------------------------------------------------| +| 4 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | e07ca849.. | +| | | | | | 81 | | +|---------------------------------------------------------------------------------------------| +| 5 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 3c662b7c.. | +| | | | | | a1 | | +|---------------------------------------------------------------------------------------------| +| 6 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 8c7e8f09.. | +| | | | | | c1 | | +|---------------------------------------------------------------------------------------------| +| 7 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 9785c2f4.. | +| | | | | | e1 | | +|=============================================================================================| +| OS: 22.04.5 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.5, Kernel: 5.15.0-191-generic +| Processor: AMD EPYC 9554 64-Core Processor +| Cores: 128 | Logical Cores: 256 +|---------------------------------------------------------------------------------------------| +| Total Memory (MB): 773675 | Free Memory: 403957 +| Total Page/Swap (MB): 69631 | Free Page/Swap: 66059 +|---------------------------------------------------------------------------------------------| +2026-10-12T10:47:47Z [15,002ms] [Warning] [gpu.foundation.plugin] IOMMU is enabled. +2026-10-12T10:47:47Z [15,002ms] [Warning] [gpu.foundation.plugin] Detected IOMMU is enabled. Running CUDA peer-to-peer bandwidth and latency validation. +Unidirectional P2P=Enabled Bandwidth (P2P Writes) Matrix (GB/s) + D\D 0 + 0 923.86 +P2P=Enabled Latency (P2P Writes) Matrix (us) + GPU 0 + 0 1.46 + + CPU 0 + 0 3.52 +[simgen suite] no task corpus under /data/yichenzhao/EmbodiedSWE-vla/sim_gen; suite empty + +====================================================================================================== +[INFO][IsaacLab]: Logging to file: /data/yichenzhao/tmp/isaaclab/logs/isaaclab_2026-10-12_10-47-49.log +====================================================================================================== + +10:47:50 [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. +[room] pc_gpu_local: 1 room(s), zero physics prims +[batch p02_strategy] rollout 1/1: solve on 1 envs … +PHASE1 {"phase": "start", "steps": 0, "seconds": 0.0, "held": false, "card": [0.2826751172542572, -0.3597199022769928, 0.029999999329447746], "hand": [0.14007863402366638, -0.3399790823459625, 0.5534675717353821], "offset": [-0.20137488842010498, -0.3890199065208435, -0.002400000113993883], "depth": 0.007400000002235174, "integral_position": [0.0, 0.0, 0.0], "integral_rotation": [0.0, 0.0, 0.0]} +2026-10-12T10:47:58Z [25,735ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +2026-10-12T10:47:58Z [25,735ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_1 +2026-10-12T10:47:58Z [25,735ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_2 +2026-10-12T10:47:58Z [25,735ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_3 +2026-10-12T10:47:58Z [25,735ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_4 +2026-10-12T10:47:58Z [25,735ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_5 +2026-10-12T10:47:58Z [25,735ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_6 +2026-10-12T10:47:58Z [25,735ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_7 +PHASE1 {"phase": "above_card", "steps": 147, "seconds": 9.8, "held": false, "card": [0.28266459703445435, -0.36037346720695496, 0.030103519558906555], "hand": [0.26397985219955444, -0.3397948145866394, 0.33075976371765137], "offset": [-0.20138540863990784, -0.38967347145080566, -0.0022964798845350742], "depth": 0.007296479772776365, "integral_position": [0.0013616480864584446, 6.76552444929257e-05, -0.0023908813018351793], "integral_rotation": [3.8063531974330544e-05, -0.0008289479301311076, -0.0003664244432002306], "result": "reached"} +PHASE1 {"phase": "pinch_aligned", "steps": 225, "seconds": 15.0, "held": false, "card": [0.2826547920703888, -0.3603712022304535, 0.03010345622897148], "hand": [0.26265209913253784, -0.3397793173789978, 0.23166218400001526], "offset": [-0.2013952136039734, -0.3896712064743042, -0.002296543214470148], "depth": 0.007296543102711439, "integral_position": [-0.00029127992456778884, -0.0001561979588586837, -0.0013201468391343951], "integral_rotation": [-0.00036425533471629024, 0.0006501086754724383, 0.0005378146888688207], "result": "reached"} +[grasp-weld] env 0: GRIPPED card (aperture 35.8 mm) +2026-10-12T10:49:21Z [109,253ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "card_held", "steps": 270, "seconds": 18.0, "held": true, "card": [0.28264638781547546, -0.3603985011577606, 0.03010459616780281], "hand": [0.26243487000465393, -0.3397873640060425, 0.23291529715061188], "offset": [-0.20140361785888672, -0.38969850540161133, -0.0022954032756388187], "depth": 0.00729540316388011, "integral_position": [0.00018925276526715606, -0.00010806919453898445, -2.2499043552670628e-05], "integral_rotation": [-0.0004820163594558835, -0.002491098130121827, -0.0006809180486015975]} +PHASE1 {"phase": "lift_clear", "steps": 464, "seconds": 30.933333333333334, "held": true, "card": [0.2864869236946106, -0.36629173159599304, 0.2603951394557953], "hand": [0.2627807855606079, -0.35072264075279236, 0.46328121423721313], "offset": [-0.1975630819797516, -0.39559173583984375, 0.2279951423406601], "depth": -0.22299514710903168, "integral_position": [-0.015794381499290466, 0.01681903749704361, 0.03687412664294243], "integral_rotation": [0.8326210975646973, 0.5815631747245789, -0.0392620675265789], "result": "reached"} +PHASE1 {"phase": "transport_waypoint", "steps": 628, "seconds": 41.86666666666667, "held": true, "card": [0.3344343900680542, -0.1435490995645523, 0.25962331891059875], "hand": [0.3195740282535553, -0.1297343224287033, 0.4634731411933899], "offset": [-0.14961561560630798, -0.17284910380840302, 0.22722332179546356], "depth": -0.22222332656383514, "integral_position": [-0.009991716593503952, 0.02672705613076687, 0.03943970054388046], "integral_rotation": [1.1872475147247314, 0.3556215465068817, -0.09891882538795471], "result": "reached"} +PHASE1 {"phase": "above_case", "steps": 803, "seconds": 53.53333333333333, "held": true, "card": [0.43269482254981995, 0.028849732130765915, 0.25942426919937134], "hand": [0.41863566637039185, 0.039456404745578766, 0.4635242819786072], "offset": [-0.05135517567396164, -0.00045026838779449463, 0.22702427208423615], "depth": -0.22202427685260773, "integral_position": [0.001497546792961657, 0.030223412439227104, 0.04011865705251694], "integral_rotation": [1.3237942457199097, -0.16236312687397003, -0.027462156489491463], "result": "reached"} +PHASE1 {"phase": "inside_case", "steps": 939, "seconds": 62.6, "held": true, "card": [0.43270277976989746, 0.02872636541724205, 0.05386587232351303], "hand": [0.4183350205421448, 0.03944067284464836, 0.2579415440559387], "offset": [-0.051347218453884125, -0.0005736351013183594, 0.02146587334573269], "depth": -0.016465872526168823, "integral_position": [0.0066093262284994125, 0.03436632826924324, 0.0350973941385746], "integral_rotation": [1.3488178253173828, -0.3958706557750702, 0.0023545860312879086], "result": "reached"} +PHASE1 {"phase": "slot_aligned", "steps": 1160, "seconds": 77.33333333333333, "held": true, "card": [0.4835662245750427, 0.029243402183055878, 0.05534239113330841], "hand": [0.46382302045822144, 0.03934163600206375, 0.2589901387691498], "offset": [-0.0004837755113840103, -5.659833550453186e-05, 0.02294239215552807], "depth": -0.017942391335964203, "integral_position": [0.010364876128733158, 0.035100143402814865, 0.037143874913454056], "integral_rotation": [1.3450322151184082, -0.6295621395111084, 0.08764626830816269], "result": "reached"} +PHASE1 {"phase": "seated_before_release", "steps": 1269, "seconds": 84.6, "held": true, "card": [0.48246440291404724, 0.029446974396705627, 0.0333004891872406], "hand": [0.46366754174232483, 0.03940019756555557, 0.23704233765602112], "offset": [-0.0015855971723794937, 0.0001469738781452179, 0.0009004897437989712], "depth": 0.00409951014444232, "integral_position": [0.011161340400576591, 0.03492601215839386, 0.03620853275060654], "integral_rotation": [1.3443928956985474, -0.6662217378616333, 0.08804888278245926]} +[grasp-weld] env 0: RELEASED card +2026-10-12T10:55:57Z [504,643ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "hand_clear", "steps": 1387, "seconds": 92.46666666666667, "held": false, "card": [0.4824827015399933, 0.02914837747812271, 0.032467249780893326], "hand": [0.46373608708381653, 0.03928646817803383, 0.37944063544273376], "offset": [-0.0015672985464334488, -0.00015162304043769836, 6.72503374516964e-05], "depth": 0.004932749550789595, "integral_position": [-0.00018175516743212938, -0.00023143076396081597, 0.0026620198041200638], "integral_rotation": [0.0458136610686779, -0.011449125595390797, 0.00984545610845089], "result": "reached"} +PHASE1 {"phase": "finished", "steps": 1462, "seconds": 97.46666666666667, "held": false, "card": [0.4825111925601959, 0.029149938374757767, 0.03246711194515228], "hand": [0.4636538624763489, 0.039381396025419235, 0.37706464529037476], "offset": [-0.001538807526230812, -0.00015006214380264282, 6.71125017106533e-05], "depth": 0.004932887386530638, "integral_position": [-0.00012392073404043913, 0.00022880475444253534, 0.00021386033040471375], "integral_rotation": [0.0010741493897512555, 0.0006374718504957855, 0.0007675282540731132], "seated": true} +[batch p02_strategy] rollout 1/1: 1/1 succeeded, 1462 steps +[batch p02_strategy] DONE: 1/1 -> /data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/p02_strategy diff --git a/provenance/p02_strategy_result.json b/provenance/p02_strategy_result.json new file mode 100644 index 0000000000000000000000000000000000000000..884b1b5d127a5298898aafe1de314672feb9a627 --- /dev/null +++ b/provenance/p02_strategy_result.json @@ -0,0 +1,187 @@ +{ + "returncode": 0, + "wall_seconds": 578.0021991729736, + "log": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/logs/p02_strategy.log", + "job": { + "name": "p02_strategy", + "strategy": "strategy_1", + "seed": 100, + "noise": 0, + "phase": null, + "scene": "scene_1" + }, + "episodes": [ + { + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 100, + "steps": 1320, + "batch_steps": 1462, + "success_step": 1290, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": {}, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_1", + "git_sha": "1489552" + } + ], + "batch_meta": { + "batch": "p02_strategy", + "cell": "scene_1/strategy_1", + "cell_fingerprint": "0c3f43ba5fa9", + "preset": "assembly.pc_gpu.franka.osc", + "num_envs": 1, + "seed": 100, + "noise": {}, + "uniform_noise": {}, + "params": { + "physical_params": {}, + "env_draw": 0, + "nominal": true, + "per_env": [], + "solve_params": {}, + "solve_draw": 0, + "solve_drawn": {} + }, + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "verdicts": [ + { + "episode": 0, + "env": 0, + "success": true, + "score": 1.0 + } + ], + "created": "2026-10-12T10:56:59+00:00", + "git_sha": "1489552" + }, + "accepted": true, + "replay_checked": false +} \ No newline at end of file diff --git a/provenance/p03_dynamics.log b/provenance/p03_dynamics.log new file mode 100644 index 0000000000000000000000000000000000000000..21d73f0ef19364b6fa96addc589f5f6b5741821d --- /dev/null +++ b/provenance/p03_dynamics.log @@ -0,0 +1,132 @@ +[INFO][AppLauncher]: Using device: cuda:0 +[INFO][AppLauncher]: Loading experience file: /data1/yichenzhao/EmbodiedSWE/.venv/lib/python3.11/site-packages/isaaclab/apps/isaaclab.python.headless.kit +[Info] [carb] Logging to file: /data/yichenzhao/projects/pc_gpu_five_stage_20261012/runtime/p03_dynamics/logs/Kit/Isaac-Sim/5.1/kit_20261012_104732.log +2026-10-12T10:47:32Z [133ms] [Warning] [omni.usd_config.extension] Enable omni.materialx.libs extension to use MaterialX +2026-10-12T10:47:33Z [596ms] [Warning] [omni.platforminfo.plugin] failed to open the default display. Can't verify X Server version. +2026-10-12T10:47:33Z [861ms] [Warning] [carb] Acquiring non optional plugin interface which is not listed as dependency: [omni::physx::IPhysxBenchmarks v1.0] (plugin: ), by client: omni.physics.physx.plugin. Add it to CARB_PLUGIN_IMPL_DEPS() macro of a client. +2026-10-12T10:47:33Z [875ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users. +2026-10-12T10:47:39Z [6,811ms] [Warning] [carb.cudainterop.plugin] CUDA_VISIBLE_DEVICES environment variable is set. +2026-10-12T10:47:39Z [6,811ms] [Warning] [carb.cudainterop.plugin] Note CUDA device enumeration and Omniverse device enumeration are different. +2026-10-12T10:47:39Z [6,811ms] [Warning] [carb.cudainterop.plugin] Setting CUDA_VISIBLE_DEVICES can lead to undesired behavior or crashes. +2026-10-12T10:47:47Z [14,986ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [14,986ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,004ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,008ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,046ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,046ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,066ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,066ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,095ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,095ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,117ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,117ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,128ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,128ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,145ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,145ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,145ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,145ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,145ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,145ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,146ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,146ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,146ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,146ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,146ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,146ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:47:47Z [15,146ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:47:47Z [15,146ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. + +|---------------------------------------------------------------------------------------------| +| Driver Version: 580.178.04 | Graphics API: Vulkan +|=============================================================================================| +| GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID | +| | | | | | Device-ID | UUID | +| | | | | | Bus-ID | | +|---------------------------------------------------------------------------------------------| +| 0 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 4e989f5e.. | +| | | | | | 1 | | +|---------------------------------------------------------------------------------------------| +| 1 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | c632e727.. | +| | | | | | 21 | | +|---------------------------------------------------------------------------------------------| +| 2 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | b85c9630.. | +| | | | | | 41 | | +|---------------------------------------------------------------------------------------------| +| 3 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 6e3f099e.. | +| | | | | | 61 | | +|---------------------------------------------------------------------------------------------| +| 4 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | e07ca849.. | +| | | | | | 81 | | +|---------------------------------------------------------------------------------------------| +| 5 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 3c662b7c.. | +| | | | | | a1 | | +|---------------------------------------------------------------------------------------------| +| 6 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 8c7e8f09.. | +| | | | | | c1 | | +|---------------------------------------------------------------------------------------------| +| 7 | NVIDIA GeForce RTX 4090 | Yes: 0 | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 9785c2f4.. | +| | | | | | e1 | | +|=============================================================================================| +| OS: 22.04.5 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.5, Kernel: 5.15.0-191-generic +| Processor: AMD EPYC 9554 64-Core Processor +| Cores: 128 | Logical Cores: 256 +|---------------------------------------------------------------------------------------------| +| Total Memory (MB): 773675 | Free Memory: 415300 +| Total Page/Swap (MB): 69631 | Free Page/Swap: 66059 +|---------------------------------------------------------------------------------------------| +2026-10-12T10:47:48Z [15,864ms] [Warning] [gpu.foundation.plugin] PCIe link width current (8) and maximum (16) for device 7 don't match. +2026-10-12T10:47:48Z [15,864ms] [Warning] [gpu.foundation.plugin] IOMMU is enabled. +2026-10-12T10:47:48Z [15,864ms] [Warning] [gpu.foundation.plugin] Detected IOMMU is enabled. Running CUDA peer-to-peer bandwidth and latency validation. +Unidirectional P2P=Enabled Bandwidth (P2P Writes) Matrix (GB/s) + D\D 0 + 0 915.28 +P2P=Enabled Latency (P2P Writes) Matrix (us) + GPU 0 + 0 1.38 + + CPU 0 + 0 2.33 +[simgen suite] no task corpus under /data/yichenzhao/EmbodiedSWE-vla/sim_gen; suite empty + +====================================================================================================== +[INFO][IsaacLab]: Logging to file: /data/yichenzhao/tmp/isaaclab/logs/isaaclab_2026-10-12_10-47-50.log +====================================================================================================== + +10:47:51 [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. +[room] pc_gpu_local: 1 room(s), zero physics prims +[batch p03_dynamics] rollout 1/1: solve on 1 envs, noise_scale=1.0 … +PHASE1 {"phase": "start", "steps": 0, "seconds": 0.0, "held": false, "card": [0.2826751172542572, -0.3597199022769928, 0.029999999329447746], "hand": [0.14007863402366638, -0.3399790823459625, 0.5534675717353821], "offset": [-0.20137488842010498, -0.3890199065208435, -0.002400000113993883], "depth": 0.007400000002235174, "integral_position": [0.0, 0.0, 0.0], "integral_rotation": [0.0, 0.0, 0.0]} +2026-10-12T10:47:59Z [27,144ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +2026-10-12T10:47:59Z [27,144ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_1 +2026-10-12T10:47:59Z [27,144ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_2 +2026-10-12T10:47:59Z [27,144ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_3 +2026-10-12T10:47:59Z [27,145ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_4 +2026-10-12T10:47:59Z [27,145ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_5 +2026-10-12T10:47:59Z [27,145ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_6 +2026-10-12T10:47:59Z [27,145ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_7 +PHASE1 {"phase": "above_card", "steps": 147, "seconds": 9.8, "held": false, "card": [0.28266459703445435, -0.36037346720695496, 0.030103519558906555], "hand": [0.26397985219955444, -0.3397948145866394, 0.33075976371765137], "offset": [-0.20138540863990784, -0.38967347145080566, -0.0022964798845350742], "depth": 0.007296479772776365, "integral_position": [0.0013616480864584446, 6.76552444929257e-05, -0.0023908813018351793], "integral_rotation": [3.8063531974330544e-05, -0.0008289479301311076, -0.0003664244432002306], "result": "reached"} +PHASE1 {"phase": "pinch_aligned", "steps": 225, "seconds": 15.0, "held": false, "card": [0.2826547920703888, -0.3603712022304535, 0.03010345622897148], "hand": [0.26265209913253784, -0.3397793173789978, 0.23166218400001526], "offset": [-0.2013952136039734, -0.3896712064743042, -0.002296543214470148], "depth": 0.007296543102711439, "integral_position": [-0.00029127992456778884, -0.0001561979588586837, -0.0013201468391343951], "integral_rotation": [-0.00036425533471629024, 0.0006501086754724383, 0.0005378146888688207], "result": "reached"} +[grasp-weld] env 0: GRIPPED card (aperture 35.8 mm) +2026-10-12T10:49:23Z [110,590ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "card_held", "steps": 270, "seconds": 18.0, "held": true, "card": [0.28264638781547546, -0.3603985011577606, 0.03010459616780281], "hand": [0.26243487000465393, -0.3397873640060425, 0.23291529715061188], "offset": [-0.20140361785888672, -0.38969850540161133, -0.0022954032756388187], "depth": 0.00729540316388011, "integral_position": [0.00018925276526715606, -0.00010806919453898445, -2.2499043552670628e-05], "integral_rotation": [-0.0004820163594558835, -0.002491098130121827, -0.0006809180486015975]} +PHASE1 {"phase": "lift_clear", "steps": 464, "seconds": 30.933333333333334, "held": true, "card": [0.2865605056285858, -0.3663475811481476, 0.26048144698143005], "hand": [0.26280081272125244, -0.3507598638534546, 0.46335747838020325], "offset": [-0.19748950004577637, -0.3956475853919983, 0.22808144986629486], "depth": -0.22308145463466644, "integral_position": [-0.015844950452446938, 0.016780110076069832, 0.03701086714863777], "integral_rotation": [0.8324224948883057, 0.5815691351890564, -0.03897186368703842], "result": "reached"} +PHASE1 {"phase": "transport_waypoint", "steps": 629, "seconds": 41.93333333333333, "held": true, "card": [0.33446502685546875, -0.14347389340400696, 0.2597214877605438], "hand": [0.3195803761482239, -0.12973155081272125, 0.46357500553131104], "offset": [-0.14958497881889343, -0.17277389764785767, 0.22732149064540863], "depth": -0.2223214954137802, "integral_position": [-0.01007119007408619, 0.02669704519212246, 0.039533860981464386], "integral_rotation": [1.188778281211853, 0.3537570834159851, -0.09734345227479935], "result": "reached"} +PHASE1 {"phase": "above_case", "steps": 804, "seconds": 53.6, "held": true, "card": [0.43268921971321106, 0.028786135837435722, 0.25927358865737915], "hand": [0.41857674717903137, 0.03938547521829605, 0.46336787939071655], "offset": [-0.051360778510570526, -0.0005138646811246872, 0.22687359154224396], "depth": -0.22187359631061554, "integral_position": [0.0015508721116930246, 0.03042256273329258, 0.04024091735482216], "integral_rotation": [1.3239099979400635, -0.16217848658561707, -0.028053440153598785], "result": "reached"} +PHASE1 {"phase": "inside_case", "steps": 940, "seconds": 62.666666666666664, "held": true, "card": [0.43271124362945557, 0.02872653491795063, 0.053870052099227905], "hand": [0.4183415174484253, 0.039439283311367035, 0.25794559717178345], "offset": [-0.05133875459432602, -0.0005734656006097794, 0.021470053121447563], "depth": -0.016470052301883698, "integral_position": [0.006611474324017763, 0.03436369076371193, 0.03510059416294098], "integral_rotation": [1.3488658666610718, -0.39593231678009033, 0.002332143485546112], "result": "reached"} +PHASE1 {"phase": "slot_aligned", "steps": 1161, "seconds": 77.4, "held": true, "card": [0.4835664629936218, 0.029244232922792435, 0.05534318834543228], "hand": [0.46382278203964233, 0.039341818541288376, 0.258990615606308], "offset": [-0.00048353709280490875, -5.5767595767974854e-05, 0.02294318936765194], "depth": -0.017943188548088074, "integral_position": [0.010366123169660568, 0.03509966656565666, 0.03714287281036377], "integral_rotation": [1.3450835943222046, -0.6295866370201111, 0.08768665790557861], "result": "reached"} +PHASE1 {"phase": "seated_before_release", "steps": 1270, "seconds": 84.66666666666667, "held": true, "card": [0.48246097564697266, 0.029448967427015305, 0.03329945355653763], "hand": [0.46367451548576355, 0.03940374776721001, 0.2370424121618271], "offset": [-0.0015890244394540787, 0.00014896690845489502, 0.0008994541130959988], "depth": 0.004100545775145292, "integral_position": [0.011158288456499577, 0.03492402285337448, 0.036208201199769974], "integral_rotation": [1.3444006443023682, -0.6662351489067078, 0.08805803209543228]} +[grasp-weld] env 0: RELEASED card +2026-10-12T10:56:14Z [521,709ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "hand_clear", "steps": 1388, "seconds": 92.53333333333333, "held": false, "card": [0.482480525970459, 0.02915038727223873, 0.03246711567044258], "hand": [0.4637082517147064, 0.03928408399224281, 0.3794489800930023], "offset": [-0.0015694741159677505, -0.00014961324632167816, 6.711622700095177e-05], "depth": 0.004932883661240339, "integral_position": [-0.00017631724767852575, -0.00022195906785782427, 0.0026711872778832912], "integral_rotation": [0.04575168341398239, -0.011443937197327614, 0.009761524386703968], "result": "reached"} +PHASE1 {"phase": "finished", "steps": 1463, "seconds": 97.53333333333333, "held": false, "card": [0.4825052320957184, 0.02914954163134098, 0.03246718645095825], "hand": [0.4636756181716919, 0.039384856820106506, 0.37705695629119873], "offset": [-0.0015447679907083511, -0.00015045888721942902, 6.718700751662254e-05], "depth": 0.0049328128807246685, "integral_position": [-0.0001312561216764152, 0.00022917406749911606, 0.00021675344032701105], "integral_rotation": [0.0011045937426388264, 0.0006554411957040429, 0.0008204290643334389], "seated": true} +[batch p03_dynamics] rollout 1/1: 1/1 succeeded, 1463 steps +[batch p03_dynamics] DONE: 1/1 -> /data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/p03_dynamics diff --git a/provenance/p03_dynamics_result.json b/provenance/p03_dynamics_result.json new file mode 100644 index 0000000000000000000000000000000000000000..c530eb494cecfaaf08d7cbe66b651a72a6fb6b3e --- /dev/null +++ b/provenance/p03_dynamics_result.json @@ -0,0 +1,195 @@ +{ + "returncode": 0, + "wall_seconds": 600.7438952922821, + "log": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/logs/p03_dynamics.log", + "job": { + "name": "p03_dynamics", + "strategy": "strategy_1", + "seed": 100, + "noise": 1, + "phase": null, + "scene": "scene_1" + }, + "episodes": [ + { + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 100, + "steps": 1320, + "batch_steps": 1463, + "success_step": 1290, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": true + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_1", + "git_sha": "1489552" + } + ], + "batch_meta": { + "batch": "p03_dynamics", + "cell": "scene_1/strategy_1", + "cell_fingerprint": "0c3f43ba5fa9", + "preset": "assembly.pc_gpu.franka.osc", + "num_envs": 1, + "seed": 100, + "noise": { + "scale": 1.0, + "perturbed_row_frac": 0.3144, + "mean_abs": 0.002745, + "max_abs": 0.102941 + }, + "uniform_noise": {}, + "params": { + "physical_params": {}, + "env_draw": 0, + "nominal": true, + "per_env": [], + "solve_params": {}, + "solve_draw": 0, + "solve_drawn": {} + }, + "episodes": 1, + "successes": 1, + "success_rate": 1.0, + "verdicts": [ + { + "episode": 0, + "env": 0, + "success": true, + "score": 1.0 + } + ], + "created": "2026-10-12T10:57:22+00:00", + "git_sha": "1489552" + }, + "accepted": true, + "replay_checked": false +} \ No newline at end of file diff --git a/provenance/p04_phase.log b/provenance/p04_phase.log new file mode 100644 index 0000000000000000000000000000000000000000..7a9309409c5de3052098b084dd094d070c29e96b --- /dev/null +++ b/provenance/p04_phase.log @@ -0,0 +1,150 @@ +[INFO][AppLauncher]: Using device: cuda:0 +[INFO][AppLauncher]: Loading experience file: /data1/yichenzhao/EmbodiedSWE/.venv/lib/python3.11/site-packages/isaaclab/apps/isaaclab.python.headless.kit +[Info] [carb] Logging to file: /data/yichenzhao/projects/pc_gpu_five_stage_20261012/runtime/p04_phase/logs/Kit/Isaac-Sim/5.1/kit_20261012_105733.log +2026-10-12T10:57:33Z [132ms] [Warning] [omni.usd_config.extension] Enable omni.materialx.libs extension to use MaterialX +2026-10-12T10:57:33Z [567ms] [Warning] [omni.platforminfo.plugin] failed to open the default display. Can't verify X Server version. +2026-10-12T10:57:34Z [1,271ms] [Warning] [carb] Acquiring non optional plugin interface which is not listed as dependency: [omni::physx::IPhysxBenchmarks v1.0] (plugin: ), by client: omni.physics.physx.plugin. Add it to CARB_PLUGIN_IMPL_DEPS() macro of a client. +2026-10-12T10:57:34Z [1,285ms] [Warning] [omni.isaac.dynamic_control] omni.isaac.dynamic_control is deprecated as of Isaac Sim 4.5. No action is needed from end-users. +2026-10-12T10:57:38Z [5,620ms] [Warning] [carb.cudainterop.plugin] CUDA_VISIBLE_DEVICES environment variable is set. +2026-10-12T10:57:38Z [5,620ms] [Warning] [carb.cudainterop.plugin] Note CUDA device enumeration and Omniverse device enumeration are different. +2026-10-12T10:57:38Z [5,620ms] [Warning] [carb.cudainterop.plugin] Setting CUDA_VISIBLE_DEVICES can lead to undesired behavior or crashes. +2026-10-12T10:57:43Z [9,828ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [9,828ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [9,911ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [9,911ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [9,993ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [9,994ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,015ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,015ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,035ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,035ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,047ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,047ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,059ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,060ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Skipping NVIDIA GPU due CUDA being in bad state: NVIDIA GeForce RTX 4090 +2026-10-12T10:57:43Z [10,061ms] [Warning] [gpu.foundation.plugin] Please restart your system if CUDA is known to work in your system. + +|---------------------------------------------------------------------------------------------| +| Driver Version: 580.178.04 | Graphics API: Vulkan +|=============================================================================================| +| GPU | Name | Active | LDA | GPU Memory | Vendor-ID | LUID | +| | | | | | Device-ID | UUID | +| | | | | | Bus-ID | | +|---------------------------------------------------------------------------------------------| +| 0 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 4e989f5e.. | +| | | | | | 1 | | +|---------------------------------------------------------------------------------------------| +| 1 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | c632e727.. | +| | | | | | 21 | | +|---------------------------------------------------------------------------------------------| +| 2 | NVIDIA GeForce RTX 4090 | Yes: 0 | | 24810 MB | 10de | 0 | +| | | | | | 2684 | b85c9630.. | +| | | | | | 41 | | +|---------------------------------------------------------------------------------------------| +| 3 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 6e3f099e.. | +| | | | | | 61 | | +|---------------------------------------------------------------------------------------------| +| 4 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | e07ca849.. | +| | | | | | 81 | | +|---------------------------------------------------------------------------------------------| +| 5 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 3c662b7c.. | +| | | | | | a1 | | +|---------------------------------------------------------------------------------------------| +| 6 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 8c7e8f09.. | +| | | | | | c1 | | +|---------------------------------------------------------------------------------------------| +| 7 | NVIDIA GeForce RTX 4090 | | | 24810 MB | 10de | 0 | +| | | | | | 2684 | 9785c2f4.. | +| | | | | | e1 | | +|=============================================================================================| +| OS: 22.04.5 LTS (Jammy Jellyfish) ubuntu, Version: 22.04.5, Kernel: 5.15.0-191-generic +| Processor: AMD EPYC 9554 64-Core Processor +| Cores: 128 | Logical Cores: 256 +|---------------------------------------------------------------------------------------------| +| Total Memory (MB): 773675 | Free Memory: 405503 +| Total Page/Swap (MB): 69631 | Free Page/Swap: 66059 +|---------------------------------------------------------------------------------------------| +2026-10-12T10:57:45Z [12,046ms] [Warning] [gpu.foundation.plugin] IOMMU is enabled. +2026-10-12T10:57:45Z [12,046ms] [Warning] [gpu.foundation.plugin] Detected IOMMU is enabled. Running CUDA peer-to-peer bandwidth and latency validation. +Unidirectional P2P=Enabled Bandwidth (P2P Writes) Matrix (GB/s) + D\D 0 + 0 922.37 +P2P=Enabled Latency (P2P Writes) Matrix (us) + GPU 0 + 0 1.59 + + CPU 0 + 0 4.26 +[simgen suite] no task corpus under /data/yichenzhao/EmbodiedSWE-vla/sim_gen; suite empty + +====================================================================================================== +[INFO][IsaacLab]: Logging to file: /data/yichenzhao/tmp/isaaclab/logs/isaaclab_2026-10-12_10-57-46.log +====================================================================================================== + +10:57:47 [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. +[room] pc_gpu_local: 1 room(s), zero physics prims +PHASE1 {"phase": "start", "steps": 0, "seconds": 0.0, "held": false, "card": [0.27666714787483215, -0.3597267270088196, 0.029999999329447746], "hand": [0.14007863402366638, -0.3399790823459625, 0.5534675717353821], "offset": [-0.20738285779953003, -0.3890267312526703, -0.002400000113993883], "depth": 0.007400000002235174, "integral_position": [0.0, 0.0, 0.0], "integral_rotation": [0.0, 0.0, 0.0]} +2026-10-12T10:57:53Z [19,812ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +2026-10-12T10:57:53Z [19,813ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_1 +2026-10-12T10:57:53Z [19,813ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_2 +2026-10-12T10:57:53Z [19,813ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_3 +2026-10-12T10:57:53Z [19,813ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_4 +2026-10-12T10:57:53Z [19,813ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_5 +2026-10-12T10:57:53Z [19,813ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_6 +2026-10-12T10:57:53Z [19,813ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_7 +PHASE1 {"phase": "above_card", "steps": 146, "seconds": 9.733333333333333, "held": false, "card": [0.2766558527946472, -0.3603944480419159, 0.030104294419288635], "hand": [0.25788936018943787, -0.33980751037597656, 0.33079856634140015], "offset": [-0.20739415287971497, -0.3896944522857666, -0.002295705024152994], "depth": 0.007295704912394285, "integral_position": [0.0012781990226358175, 6.237029447220266e-05, -0.0023499762173742056], "integral_rotation": [-5.17534717801027e-05, -0.000804475974291563, -0.00045468489406630397], "result": "reached"} +PHASE1 {"phase": "pinch_aligned", "steps": 224, "seconds": 14.933333333333334, "held": false, "card": [0.27664443850517273, -0.3603942096233368, 0.030104298144578934], "hand": [0.25669312477111816, -0.3397051990032196, 0.23162005841732025], "offset": [-0.20740556716918945, -0.3896942138671875, -0.0022957012988626957], "depth": 0.007295701187103987, "integral_position": [-0.00039462134009227157, -0.0001766781060723588, -0.0012484302278608084], "integral_rotation": [-0.00030247264658100903, 0.001255718758329749, 0.0006256067426875234], "result": "reached"} +[grasp-weld] env 0: GRIPPED card (aperture 35.9 mm) +2026-10-12T10:59:11Z [98,468ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "card_held", "steps": 269, "seconds": 17.933333333333334, "held": true, "card": [0.2766353189945221, -0.3604221045970917, 0.030105527490377426], "hand": [0.25644370913505554, -0.33978569507598877, 0.23285755515098572], "offset": [-0.2074146866798401, -0.3897221088409424, -0.0022944719530642033], "depth": 0.007294471841305494, "integral_position": [5.7358640333404765e-05, -0.00015178720059338957, 0.00011615069524850696], "integral_rotation": [-0.000648720539174974, -0.001637371489778161, 0.0005321541684679687]} +PHASE1 {"phase": "lift_clear", "steps": 462, "seconds": 30.8, "held": true, "card": [0.28054460883140564, -0.3663047254085541, 0.2604023516178131], "hand": [0.2567934989929199, -0.35080692172050476, 0.46323293447494507], "offset": [-0.20350539684295654, -0.3956047296524048, 0.22800235450267792], "depth": -0.2230023592710495, "integral_position": [-0.01606839708983898, 0.016652802005410194, 0.03680755943059921], "integral_rotation": [0.8246439099311829, 0.5872715711593628, -0.03956190124154091], "result": "reached"} +PHASE1 {"phase": "transport_waypoint", "steps": 629, "seconds": 41.93333333333333, "held": true, "card": [0.33449023962020874, -0.14359045028686523, 0.25962087512016296], "hand": [0.31961289048194885, -0.12982645630836487, 0.4634193480014801], "offset": [-0.14955976605415344, -0.17289045453071594, 0.22722087800502777], "depth": -0.22222088277339935, "integral_position": [-0.010012880899012089, 0.02668563835322857, 0.03946342319250107], "integral_rotation": [1.189490556716919, 0.3546415865421295, -0.09785277396440506], "result": "reached"} +PHASE1 {"phase": "above_case", "steps": 804, "seconds": 53.6, "held": true, "card": [0.43271109461784363, 0.02884981781244278, 0.2594223618507385], "hand": [0.41865289211273193, 0.03939865902066231, 0.4634712338447571], "offset": [-0.05133890360593796, -0.00045018270611763, 0.22702236473560333], "depth": -0.22202236950397491, "integral_position": [0.0014840189833194017, 0.030266571789979935, 0.04015446454286575], "integral_rotation": [1.3262699842453003, -0.16187702119350433, -0.02706889435648918], "result": "reached"} +[batch p04_phase] rollout 1/2 (preinsert): solve on 1 envs, noise_scale=1.0 … +PHASE1 {"phase": "start", "steps": 0, "seconds": 0.0, "held": true, "card": [0.43271109461784363, 0.02884981781244278, 0.2594223618507385], "hand": [0.41865289211273193, 0.03939865902066231, 0.4634712338447571], "offset": [-0.05133890360593796, -0.00045018270611763, 0.22702236473560333], "depth": -0.22202236950397491, "integral_position": [0.0, 0.0, 0.0], "integral_rotation": [0.0, 0.0, 0.0]} +PHASE1 {"phase": "inside_case", "steps": 211, "seconds": 14.066666666666666, "held": true, "card": [0.4373706877231598, 0.02269081398844719, 0.055272623896598816], "hand": [0.41883188486099243, 0.03886903449892998, 0.25859534740448], "offset": [-0.046679310500621796, -0.00660918653011322, 0.022872624918818474], "depth": -0.017872624099254608, "integral_position": [0.007347235921770334, 0.031239047646522522, 0.03411106765270233], "integral_rotation": [1.123977541923523, -0.5152649879455566, 0.014162546955049038], "result": "reached"} +PHASE1 {"phase": "slot_aligned", "steps": 500, "seconds": 33.333333333333336, "held": true, "card": [0.48396360874176025, 0.028627069666981697, 0.05537400394678116], "hand": [0.4638098478317261, 0.03921091556549072, 0.25890836119651794], "offset": [-8.639134466648102e-05, -0.0006729308515787125, 0.022974004969000816], "depth": -0.01797400414943695, "integral_position": [0.0106452452018857, 0.03465871512889862, 0.03675110638141632], "integral_rotation": [1.3277031183242798, -0.6390000581741333, 0.08876872062683105], "result": "reached"} +PHASE1 {"phase": "seated_before_release", "steps": 609, "seconds": 40.6, "held": true, "card": [0.4824647903442383, 0.02927231602370739, 0.033305443823337555], "hand": [0.46369120478630066, 0.039343707263469696, 0.23698905110359192], "offset": [-0.0015852097421884537, -2.7684494853019714e-05, 0.0009054443798959255], "depth": 0.0040945555083453655, "integral_position": [0.011194241233170033, 0.03486979752779007, 0.03617330640554428], "integral_rotation": [1.3389133214950562, -0.6688885688781738, 0.08859515190124512]} +[grasp-weld] env 0: RELEASED card +2026-10-12T11:07:57Z [623,715ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_0 +PHASE1 {"phase": "hand_clear", "steps": 727, "seconds": 48.46666666666667, "held": false, "card": [0.4824539124965668, 0.02914947085082531, 0.032466959208250046], "hand": [0.4637153148651123, 0.039204150438308716, 0.3793734610080719], "offset": [-0.0015960875898599625, -0.0001505296677350998, 6.695976480841637e-05], "depth": 0.004933040123432875, "integral_position": [-0.00017867522547021508, -0.0002217791770817712, 0.0026623508892953396], "integral_rotation": [0.04567151889204979, -0.011377341113984585, 0.009771340526640415], "result": "reached"} +PHASE1 {"phase": "finished", "steps": 802, "seconds": 53.46666666666667, "held": false, "card": [0.4824499487876892, 0.029148852452635765, 0.03246711567044258], "hand": [0.46366533637046814, 0.03931974992156029, 0.37701401114463806], "offset": [-0.001600051298737526, -0.00015114806592464447, 6.711622700095177e-05], "depth": 0.004932883661240339, "integral_position": [-0.00013383464829530567, 0.0002248021773993969, 0.00021564180497080088], "integral_rotation": [0.0010733454255387187, 0.0006510922685265541, 0.000844681344460696], "seated": true} +[batch p04_phase] rollout 1/2: 1/1 succeeded, 802 steps +[batch p04_phase] rollout 2/2 (start): solve on 1 envs, noise_scale=1.0 … +PHASE1 {"phase": "start", "steps": 0, "seconds": 0.0, "held": false, "card": [0.2821423411369324, -0.35989144444465637, 0.029999999329447746], "hand": [0.14007863402366638, -0.3399790823459625, 0.5534675717353821], "offset": [-0.2019076645374298, -0.3891914486885071, -0.002400000113993883], "depth": 0.007400000002235174, "integral_position": [0.0, 0.0, 0.0], "integral_rotation": [0.0, 0.0, 0.0]} +PHASE1 {"phase": "above_card", "steps": 147, "seconds": 9.8, "held": false, "card": [0.28213006258010864, -0.36035725474357605, 0.030102424323558807], "hand": [0.26343026757240295, -0.3398202955722809, 0.3307821750640869], "offset": [-0.20191994309425354, -0.38965725898742676, -0.002297575119882822], "depth": 0.007297575008124113, "integral_position": [0.0013514452148228884, 6.934206612640992e-05, -0.002375955693423748], "integral_rotation": [4.465643723960966e-05, -0.0008358721970580518, -0.0003849499917123467], "result": "reached"} +PHASE1 {"phase": "pinch_aligned", "steps": 225, "seconds": 15.0, "held": false, "card": [0.282123863697052, -0.3603532612323761, 0.03010224923491478], "hand": [0.2621873617172241, -0.3397490084171295, 0.23162692785263062], "offset": [-0.20192614197731018, -0.3896532654762268, -0.0022977502085268497], "depth": 0.007297750096768141, "integral_position": [-0.00033164903288707137, -0.0001701136789051816, -0.0012928792275488377], "integral_rotation": [-0.00045788477291353047, 0.0007071096915751696, 0.0005665718344971538], "result": "reached"} +[grasp-weld] env 0: GRIPPED card (aperture 35.9 mm) +2026-10-12T11:10:41Z [788,090ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_1 +PHASE1 {"phase": "card_held", "steps": 270, "seconds": 18.0, "held": true, "card": [0.2821163833141327, -0.360378623008728, 0.030103210359811783], "hand": [0.2619286775588989, -0.33983084559440613, 0.23286713659763336], "offset": [-0.2019336223602295, -0.38967862725257874, -0.0022967890836298466], "depth": 0.007296788971871138, "integral_position": [7.203143468359485e-05, -0.00013083226804155856, 0.00010521816147956997], "integral_rotation": [-0.0008338951738551259, -0.0018401207635179162, -2.390377630945295e-05]} +PHASE1 {"phase": "lift_clear", "steps": 464, "seconds": 30.933333333333334, "held": true, "card": [0.28601622581481934, -0.36616742610931396, 0.26023706793785095], "hand": [0.2623165249824524, -0.3505443334579468, 0.4630599617958069], "offset": [-0.19803377985954285, -0.3954674303531647, 0.22783707082271576], "depth": -0.22283707559108734, "integral_position": [-0.01587035320699215, 0.01680919900536537, 0.03690531849861145], "integral_rotation": [0.8313427567481995, 0.5824742913246155, -0.03947507590055466], "result": "reached"} +PHASE1 {"phase": "transport_waypoint", "steps": 628, "seconds": 41.86666666666667, "held": true, "card": [0.33449164032936096, -0.1436488926410675, 0.2596074938774109], "hand": [0.3196425437927246, -0.12981699407100677, 0.46340063214302063], "offset": [-0.14955836534500122, -0.1729488968849182, 0.2272074967622757], "depth": -0.22220750153064728, "integral_position": [-0.010031456127762794, 0.02670981176197529, 0.03942558914422989], "integral_rotation": [1.1867214441299438, 0.35585230588912964, -0.09895208477973938], "result": "reached"} +PHASE1 {"phase": "above_case", "steps": 802, "seconds": 53.46666666666667, "held": true, "card": [0.43257415294647217, 0.028806988149881363, 0.2592999339103699], "hand": [0.41852474212646484, 0.03939608111977577, 0.4633401334285736], "offset": [-0.05147584527730942, -0.0004930123686790466, 0.22689993679523468], "depth": -0.22189994156360626, "integral_position": [0.0015457096742466092, 0.030484681949019432, 0.040223319083452225], "integral_rotation": [1.323229432106018, -0.1597045361995697, -0.02918793447315693], "result": "reached"} +PHASE1 {"phase": "inside_case", "steps": 938, "seconds": 62.53333333333333, "held": true, "card": [0.4326896071434021, 0.028727378696203232, 0.05387008190155029], "hand": [0.41835835576057434, 0.039451174437999725, 0.2578936517238617], "offset": [-0.051360391080379486, -0.0005726218223571777, 0.02147008292376995], "depth": -0.016470082104206085, "integral_position": [0.006604273337870836, 0.03435720503330231, 0.03509099781513214], "integral_rotation": [1.3484258651733398, -0.39520928263664246, 0.00185434112790972], "result": "reached"} +PHASE1 {"phase": "slot_aligned", "steps": 1159, "seconds": 77.26666666666667, "held": true, "card": [0.48356595635414124, 0.02924562245607376, 0.055341221392154694], "hand": [0.4638456702232361, 0.03935258090496063, 0.25893688201904297], "offset": [-0.00048404373228549957, -5.437806248664856e-05, 0.02294122241437435], "depth": -0.017941221594810486, "integral_position": [0.010362132452428341, 0.03509194776415825, 0.03713467717170715], "integral_rotation": [1.3446629047393799, -0.6292994022369385, 0.08739302307367325], "result": "reached"} +PHASE1 {"phase": "seated_before_release", "steps": 1268, "seconds": 84.53333333333333, "held": true, "card": [0.48246192932128906, 0.029442062601447105, 0.03329796344041824], "hand": [0.46369338035583496, 0.03941109776496887, 0.23698748648166656], "offset": [-0.0015880707651376724, 0.00014206208288669586, 0.000897963996976614], "depth": 0.004102035891264677, "integral_position": [0.011156530119478703, 0.03492040932178497, 0.03620340675115585], "integral_rotation": [1.3439748287200928, -0.6659384369850159, 0.08780668675899506]} +[grasp-weld] env 0: RELEASED card +2026-10-12T11:17:50Z [1,217,069ms] [Warning] [omni.physx.plugin] PhysicsUSD: CreateJoint - found a joint with disjointed body transforms, the simulation will most likely snap objects together: /World/envs/env_0/gweld_card_1 +PHASE1 {"phase": "hand_clear", "steps": 1386, "seconds": 92.4, "held": false, "card": [0.48248329758644104, 0.029149478301405907, 0.032467085868120193], "hand": [0.4637404680252075, 0.03930080309510231, 0.37940382957458496], "offset": [-0.0015667024999856949, -0.00015052221715450287, 6.708642467856407e-05], "depth": 0.004932913463562727, "integral_position": [-0.00018291029846295714, -0.0002296248567290604, 0.002663130173459649], "integral_rotation": [0.04594193398952484, -0.011413254775106907, 0.009784284047782421], "result": "reached"} +PHASE1 {"phase": "finished", "steps": 1461, "seconds": 97.4, "held": false, "card": [0.4825069010257721, 0.02915109321475029, 0.03246484696865082], "hand": [0.46369293332099915, 0.03938915953040123, 0.3770071268081665], "offset": [-0.0015430990606546402, -0.00014890730381011963, 6.484752520918846e-05], "depth": 0.004935152363032103, "integral_position": [-0.00012519916344899684, 0.0002273622085340321, 0.0002133773814421147], "integral_rotation": [0.001114934217184782, 0.0006345813744701445, 0.0007460255292244256], "seated": true} +[batch p04_phase] rollout 2/2: 1/1 succeeded, 1461 steps +[batch p04_phase] DONE: 2/2 -> /data/yichenzhao/projects/pc_gpu_five_stage_20261012/data_gen/pilot/data/p04_phase diff --git a/provenance/p04_phase_result.json b/provenance/p04_phase_result.json new file mode 100644 index 0000000000000000000000000000000000000000..233340b94a307268997dbf545dfba406370325c9 --- /dev/null +++ b/provenance/p04_phase_result.json @@ -0,0 +1,342 @@ +{ + "returncode": 0, + "wall_seconds": 1290.2407186031342, + "log": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/logs/p04_phase.log", + "job": { + "name": "p04_phase", + "strategy": "strategy_1", + "seed": 200, + "noise": 1, + "phase": "phase_0", + "scene": "scene_1" + }, + "episodes": [ + { + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": "preinsert", + "reset_fn": "reset_0", + "entry": "preinsert", + "seed": 200, + "steps": 660, + "batch_steps": 802, + "success_step": 630, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": false + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_1/phase_0", + "git_sha": "1489552" + }, + { + "episode": 1, + "rollout": 1, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": "start", + "reset_fn": "reset_0", + "entry": "start", + "seed": 201, + "steps": 1320, + "batch_steps": 1461, + "success_step": 1290, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": true + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_1/phase_0", + "git_sha": "1489552" + } + ], + "batch_meta": { + "batch": "p04_phase", + "cell": "scene_1/strategy_1/phase_0", + "cell_fingerprint": "54bbc41783e5", + "preset": "assembly.pc_gpu.franka.osc", + "num_envs": 1, + "seed": 200, + "noise": { + "scale": 1.0, + "perturbed_row_frac": 0.2024, + "mean_abs": 0.001792, + "max_abs": 0.103287 + }, + "uniform_noise": {}, + "params": { + "physical_params": {}, + "env_draw": 0, + "nominal": true, + "per_env": [], + "solve_params": {}, + "solve_draw": 0, + "solve_drawn": {} + }, + "episodes": 2, + "successes": 2, + "success_rate": 1.0, + "verdicts": [ + { + "episode": 0, + "env": 0, + "success": true, + "score": 1.0 + }, + { + "episode": 1, + "env": 0, + "success": true, + "score": 1.0 + } + ], + "created": "2026-10-12T11:18:52+00:00", + "git_sha": "1489552" + }, + "accepted": true, + "replay_checked": false +} \ No newline at end of file diff --git a/provenance/pipeline.py b/provenance/pipeline.py new file mode 100644 index 0000000000000000000000000000000000000000..9ff3ca042b9c4a08f6313a258d6600376570c7b3 --- /dev/null +++ b/provenance/pipeline.py @@ -0,0 +1,173 @@ +"""Resumable, append-only single-env pilot using official generation/render CLIs.""" +from pathlib import Path +import argparse, concurrent.futures, hashlib, json, os, shutil, subprocess, time + +ROOT=Path('/data/yichenzhao/projects/pc_gpu_five_stage_20261012') +REPO=Path('/data/yichenzhao/EmbodiedSWE-vla') +GEN=ROOT/'data_gen/pilot' +RUNTIME=Path('/data/yichenzhao/pc_gpu_eval_tools/pc_gpu_runtime.sh') +PY=Path('/data1/yichenzhao/EmbodiedSWE/.venv/bin/python') +GPU=[2,7] +def write_json(p,d): + tmp=p.with_suffix(p.suffix+'.tmp');tmp.write_text(json.dumps(d,indent=2));tmp.replace(p) +def status(stage,**kw): + write_json(ROOT/'pipeline_status.json',dict(stage=stage,utc=time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime()),**kw)) +def environment(gpu): + e=os.environ.copy();e.update(CUDA_VISIBLE_DEVICES=str(gpu),PYTHONPATH=str(REPO),OMP_NUM_THREADS='2') + return e +def run_cli(name,args,gpu,timeout=3600,extra_env=None): + kit=ROOT/'runtime'/name;kit.mkdir(parents=True,exist_ok=True) + cmd=[str(RUNTIME),str(PY),*args,'--headless', + '--kit_args='+f'--portable-root {kit} --/app/userConfigPath={kit}/isaac.json --/renderer/multiGpu/enabled=false --/renderer/activeGpu={gpu} --/physics/cudaDevice=0'] + log=ROOT/'logs'/f'{name}.log' + # Never clobber evidence from a prior invocation. + if log.exists():raise RuntimeError(f'Existing log without completed ledger: {log}; inspect before retry') + write_json(ROOT/'evidence'/f'{name}_command.json',{'cmd':cmd,'gpu':gpu,'home_readonly':True}) + started=time.time() + child_env=environment(gpu) + child_env.update(extra_env or {}) + with log.open('w') as f: + try:r=subprocess.run(cmd,stdout=f,stderr=subprocess.STDOUT,env=child_env,timeout=timeout) + except subprocess.TimeoutExpired: + return {'returncode':124,'wall_seconds':time.time()-started,'log':str(log)} + return {'returncode':r.returncode,'wall_seconds':time.time()-started,'log':str(log)} + +def job(name,strategy='strategy_0',seed=100,noise=0,phase=None,scene='scene_1'): + return dict(name=name,strategy=strategy,seed=seed,noise=noise,phase=phase,scene=scene) +PILOT=[job('p00_control',scene='scene_0',seed=900),job('p01_scene',seed=100), + job('p02_strategy',strategy='strategy_1',seed=100), + job('p03_dynamics',strategy='strategy_1',seed=100,noise=1), + job('p04_phase',strategy='strategy_1',seed=200,noise=1,phase='phase_0')] +HARVEST=[job(f'h_s0_{i}',seed=100+i,noise=1 if i>1 else 0) for i in range(1,6)] + \ + [job(f'h_s1_{i}',strategy='strategy_1',seed=110+i,noise=1) for i in range(1,5)] + \ + [job(f'h_phase_{i}',strategy='strategy_1',seed=200+10*i,noise=1,phase='phase_0') for i in range(1,4)] + +def generate(j,gpu): + name=j['name']; ledger=ROOT/'evidence'/f'{name}_result.json' + if ledger.is_file():return json.loads(ledger.read_text()) + snapshot=ROOT/'evidence/attempts'/name;snapshot.mkdir(parents=True) + scene=GEN/'scenes'/j['scene'];sd=scene/'strategies'/j['strategy'] + shutil.copy2(scene/'scene/scene.py',snapshot/'scene.py') + shutil.copy2(scene/'grader/grader.py',snapshot/'grader.py') + shutil.copytree(sd,snapshot/'strategy',ignore=shutil.ignore_patterns('__pycache__')) + args=[str(REPO/'data_engine/scripts/generate.py'),str(GEN),'--scene',j['scene'], + '--strategy',j['strategy'],'--num_envs','1','--seed',str(j['seed']), + '--nominal','--noise_scale',str(j['noise']),'--batch',name] + if j['phase']:args += ['--phase',j['phase']] + r=run_cli(name,args,gpu) + meta=GEN/'data'/name/'meta.json' + eps=[json.loads(p.read_text()) for p in sorted((GEN/'data'/name).glob('ep_*/meta.json'))] + finished=[] + for line in Path(r['log']).read_text(errors='replace').splitlines(): + if 'PHASE1 ' in line: + try:row=json.loads(line.split('PHASE1 ',1)[1]) + except json.JSONDecodeError:continue + if row.get('phase')=='finished':finished.append(row) + released=bool(len(finished)==len(eps) and finished and + all(not x['held'] and x.get('seated') for x in finished)) + r.update(job=j,episodes=eps,batch_meta=json.loads(meta.read_text()) if meta.exists() else None, + accepted=bool(r['returncode']==0 and eps and all(x.get('success') for x in eps) and released), + released_hold_passed=released,finished=finished, + replay_checked=False) + write_json(ledger,r) + return r + +def queue(jobs): + # Two workers, one Isaac process per worker; no other user's job is interrupted. + result=[] + def worker(k): + return [generate(j,GPU[k]) for j in jobs[k::len(GPU)]] + with concurrent.futures.ThreadPoolExecutor(max_workers=2) as pool: + for items in pool.map(worker,range(2)):result.extend(items) + return result + +def collect(): + import numpy as np + entries=[];seen={};failures=[] + attempts=[json.loads(p.read_text()) for p in (ROOT/'evidence').glob('*_result.json')] + accepted_batches={x['job']['name'] for x in attempts if 'job' in x and x.get('accepted')} + for p in sorted((GEN/'data').glob('*/ep_*/meta.json')): + m=json.loads(p.read_text()); ep=p.parent + if not m.get('success'):failures.append(str(ep.relative_to(GEN)));continue + with np.load(ep/'traj.npz') as tr: + h=hashlib.sha256() + for key in sorted(tr.files): + a=tr[key];h.update(key.encode());h.update(str(a.shape).encode());h.update(a.tobytes()) + digest=h.hexdigest();rows=len(tr['action']); shape=list(tr['action'].shape) + noise=tr['action_noise'] if 'action_noise' in tr.files else None + stat={'perturbed_rows':int(np.any(noise!=0,axis=-1).sum()) if noise is not None else 0, + 'max_abs':float(np.abs(noise).max()) if noise is not None else 0.} + item=dict(episode=str(ep.relative_to(GEN)),cell=m['cell'],seed=m['seed'], + steps=rows,action_shape=shape,trajectory_sha256=digest,noise=stat, + replay_checked=bool(m.get('replay',{}).get('success')),source='own generated solve', + accepted_batch=ep.parent.name in accepted_batches) + if item['accepted_batch']: + if digest in seen:item['duplicate_of']=seen[digest] + else:seen[digest]=item['episode'] + entries.append(item) + controls=[e for e in entries if e['cell'].startswith('scene_0/') and e['accepted_batch']] + selected=[e for e in entries if e['cell'].startswith('scene_1/') and e['accepted_batch'] and 'duplicate_of' not in e] + manifest=dict(target=20,selected=selected,controls=controls,all_successes=entries,failures=failures, + unique_selected=len(selected),render_expected_samples=3*len(selected), + failed_batches=[x['job']['name'] for x in attempts if 'job' in x and not x.get('accepted')], + scope='Single-env five-level pilot; no paper-scale orchestrator/replay certification', + train_test_split='Not assigned; all looks of an underlying trajectory must stay together') + write_json(ROOT/'dataset_manifest.json',manifest) + return manifest + +def render(name,episodes,gpu,draw=0,max_frames=0,suffix=None,num_envs=1,fps=None,band_seed=0): + ledger=ROOT/'evidence'/f'{name}_result.json' + if ledger.exists():return json.loads(ledger.read_text()) + hook_snapshot=ROOT/'evidence'/f'{name}_camera_hook.py' + if hook_snapshot.exists():raise RuntimeError('Existing unfinished render hook snapshot '+str(hook_snapshot)) + shutil.copy2(ROOT/'camera_audit_hook.py',hook_snapshot) + args=[str(REPO/'data_engine/scripts/render.py'),str(GEN),'--episodes',*[str(GEN/e) for e in episodes], + '--num_envs',str(num_envs),'--size','320','240','--env-spacing','50', + '--cams','front','wrist','--visual_draw',str(draw), + '--view-suffix',suffix if suffix is not None else f'_draw{draw}', + '--max-frames',str(max_frames),'--visual',str(hook_snapshot)] + if fps is not None:args += ['--fps',str(fps)] + if band_seed:args += ['--pose-jitter-seed',str(band_seed)] + camera_log=ROOT/'evidence'/f'{name}_camera_frames.jsonl' + r=run_cli(name,args,gpu,timeout=14400,extra_env={ + 'PILOT_CAMERA_LOG':str(camera_log),'PILOT_RENDER_EPISODES':json.dumps(episodes), + 'PILOT_GEN_ROOT':str(GEN)}) + r.update(episodes=episodes,draw=draw,max_frames=max_frames,camera_frames=str(camera_log)) + write_json(ledger,r);return r + +def main(): + ap=argparse.ArgumentParser();ap.add_argument('--mode',choices=['pilot','harvest','render','audit'],required=True);a=ap.parse_args() + if a.mode=='pilot': + status('PILOT_RUNNING') + for pair in [PILOT[:2],PILOT[2:4],PILOT[4:]]: + r=queue(pair) + if not all(x['accepted'] for x in r):status('PILOT_FAILED',results=r);return + m=collect();status('PILOT_GENERATION_PASSED',unique=m['unique_selected']) + r=render('pilot_render',['data/p01_scene/ep_0000'],GPU[0],draw=1,suffix='_pilot_review',fps=3) + status('PILOT_READY_FOR_REVIEW' if r['returncode']==0 else 'PILOT_RENDER_FAILED',result=r) + elif a.mode=='harvest': + if not all(json.loads((ROOT/'evidence'/f"{j['name']}_result.json").read_text())['accepted'] for j in PILOT): + raise RuntimeError('Pilot gates not passed') + status('HARVEST_RUNNING');r=queue(HARVEST);m=collect() + status('HARVEST_DONE' if all(x['accepted'] for x in r) else 'HARVEST_PARTIAL',unique=m['unique_selected']) + elif a.mode=='render': + m=collect() + if m['unique_selected']<20:raise RuntimeError(f"Only {m['unique_selected']} unique successes; inspect before render") + eps=[x['episode'] for x in m['selected']] + status('VISUAL_RUNNING',episodes=len(eps),looks=3) + r=[] + with concurrent.futures.ThreadPoolExecutor(max_workers=2) as pool: + f0=pool.submit(render,'visual_draw0',eps,GPU[0],0,num_envs=4) + f1=pool.submit(render,'visual_draw1',eps,GPU[1],1,num_envs=4) + r += [f0.result(),f1.result()] + if any(x['returncode'] for x in r):status('VISUAL_PARTIAL',results=r);return + ordered=sorted(eps,key=lambda e:(json.loads((GEN/e/'meta.json').read_text())['steps'],str(GEN/e))) + ref_index=ordered.index('data/p01_scene/ep_0000') + with concurrent.futures.ThreadPoolExecutor(max_workers=2) as pool: + f2=pool.submit(render,'visual_draw2',eps,GPU[0],2,num_envs=4) + fc=pool.submit(render,'control_render',[m['controls'][0]['episode']],GPU[1],1,suffix='_control',band_seed=ref_index) + r += [f2.result(),fc.result()] + status('READY_FOR_FINAL_AUDIT' if all(x['returncode']==0 for x in r) else 'VISUAL_PARTIAL',results=r) + else:print(json.dumps(collect(),indent=2)) + +if __name__=='__main__':main() diff --git a/provenance/render_completed_for_export.py b/provenance/render_completed_for_export.py new file mode 100644 index 0000000000000000000000000000000000000000..93241a1d7e31aaa8566b7938d4079a33ad5f20b4 --- /dev/null +++ b/provenance/render_completed_for_export.py @@ -0,0 +1,10 @@ +"""Only render the frozen, completed motions; never generate more motions.""" +import json +from pipeline import ROOT,render,status +m=json.loads((ROOT/'lerobot_selection.json').read_text()) +episodes=[x['episode'] for x in m['selected']] +assert len(episodes)==8 +status('LEROBOT_RENDER_RUNNING',episodes=len(episodes),looks=1) +r=render('lerobot_render8',episodes,2,draw=1,suffix='_lerobot',num_envs=4) +assert r['returncode']==0,r +status('LEROBOT_RENDER_COMPLETE',episodes=len(episodes),looks=1) diff --git a/provenance/runtime_versions.json b/provenance/runtime_versions.json new file mode 100644 index 0000000000000000000000000000000000000000..1f28119fae6e2d7e45dbfc7a3252d87c4b22d8d8 --- /dev/null +++ b/provenance/runtime_versions.json @@ -0,0 +1,5 @@ +{ + "isaacsim": "5.1.0.0", + "isaaclab": "2.3.2", + "torch": "2.7.0+cu128" +} \ No newline at end of file diff --git a/provenance/source_hashes.json b/provenance/source_hashes.json new file mode 100644 index 0000000000000000000000000000000000000000..2d7588a877901770ebb995460f54164479b682c3 --- /dev/null +++ b/provenance/source_hashes.json @@ -0,0 +1,46 @@ +{ + "git_head": "14895523bf2cd81f5f593f50ee71a39602cd4aa3", + "files": { + "data_engine/scripts/orchestrate.py": "f007a73175510c5f4503206cd3def41aa12c9bbe99f233b946fbcd95fccae20b", + "data_engine/scripts/generate.py": "1ba4aea865b04d050cb3277070a8123448c1332329220697591302196e13fde9", + "data_engine/scripts/init_gen.py": "fc11949e68d6e74aa9dfedb53360a627619d9340dbfb0b4cdee70a04b40c77c1", + "data_engine/scripts/aggregate_dataset.py": "436e87b7c5d6726191519261de685f3015ac44f62e5744ef348db12c6a6e51d9", + "data_engine/scripts/stage_seeds.py": "1edcd3cf41256bca5b1f03e072e242ab5a7940b3009e2f9c2041115d96475240", + "data_engine/scripts/mirror.py": "02d8b87bb95c33634cfe5d92571e063623322ac0c7c711b1a9343372fe3f8824", + "data_engine/scripts/claude_agent_loop.py": "c6402abc718e9b2b7ad4359049c4a846befb445690c1c2edeff67f2fe52182cc", + "data_engine/scripts/replay_check.py": "5f07481746f2065f2f61940789d73f82b9cbafd0700c209a8d0336f6d80c72f2", + "data_engine/scripts/render.py": "7539506a2a12f2a72df84f7d82c7c0688bb22a425a416e504a962691f767baa8", + "data_engine/scripts/diversify.py": "6453b3ec2b235822d7310fd54b18dab7255386468093f6d2f435206bfa921ead", + "data_engine/engine/meta.py": "cdad304bcf78079d03b8a832c9d54e77fe73f5ae1081439a91b583384bb03bd4", + "data_engine/engine/generation.py": "6180dd109a927bb479de5e20e7ce3c54b1937d2a55e4fdb316c6fc29e4eedb1e", + "data_engine/engine/replay.py": "97e08bc14d8c9e4b93a98083b618b0982e9c215730b3528bf23f4118911ba3f2", + "data_engine/engine/contract.py": "bcc922766b03dd228ba5c9f337404eadb75c397edabf676a9ddde20cecf17b02", + "data_engine/engine/initialization.py": "ba39ecc123682961c37d8a370efdd0f802b024151b3161ea74c3711c9c0b777a", + "data_engine/engine/cells.py": "66176eb943410681fe58626e16ecb1f22dce3daa7d2e2b51aa82db50282fe438", + "data_engine/engine/noise.py": "50802081da66b88b062a88c6a044df06c92c1116c63bd499515b42f349eca2c8", + "data_engine/engine/replay_check.py": "e594643f870fed655c263145b2494736ba88995900242ce888a725b1d92da906", + "data_engine/engine/__init__.py": "fb2fbb1197a3585e937ad4485cd728922196155b3b2d1d9cc4ab3dff89895b09", + "data_engine/engine/sampler.py": "b83716a6ae13da669ff4ea77c7e01b8e318ec80baefbc17ced43e064b06119c1", + "data_engine/agent/cli/create_cell.py": "bc008aa5916e2ffd1108b9f7759bf1d3b9ad901267c748c50e42a8701fec381f", + "data_engine/agent/prompts/visual_params.md": "50f0140aa0a258230a76cbe092d4c293efc01fc38b908bc5bd1e1ccaea9f4908", + "data_engine/agent/prompts/repair.md": "f50f95e02f9d6eeb5de62188bbd66d1ad5142d55893eb712469885b2e07b291d", + "data_engine/agent/prompts/_contract.md": "af5dcc51a107600dd97a8d08065c47939419393db01cbb0e3c77aa175f724fcf", + "data_engine/agent/prompts/noise.md": "247c3a3f53162d35f1ba3210c1e84f1e0efeb81b50ce0fb388da4245df994360", + "data_engine/agent/prompts/vectorize.md": "dd3bfb7451fe281306d62c36b66a735a6ae385006aad4fcc34a8acfd07282e8e", + "data_engine/agent/prompts/levels/scene.md": "2ae64f9ab54208784a0884dc8162ab38ac98b1bb9a469ff03a8d5829d6521f4c", + "data_engine/agent/prompts/levels/strategy.md": "ce4073af2d14206afdbfa43fabc93dce9b04bd7832229d2cde02cdf9482a7214", + "data_engine/agent/prompts/levels/phase.md": "44ed26d255393ae4e476a937a9ba6ab3fcec977ef079d763a6eed2f0db23d84b", + "data_engine/agent/prompts/rules/autonomous_operation.md": "9d8c196a58c314108b81064d9674f75f83f1e592e30d3ee9ac0be3ec0963c74f", + "data_engine/configs/phase_default.yaml": "4ad9e5456e33241285c82c02d28ca387ecd33775eb675d698bd0f0c1e1ce0bda", + "data_engine/configs/scene_default.yaml": "54cc34d0b17548f9563ff4dcae0225a8428d66c128e737d1de42866d3a954783", + "data_engine/configs/strategy_default.yaml": "0489c15d9271d7f051b2896e354712b9379691ba1b310ed86b3e00a0e65535b5", + "data_engine/README.html": "526b616cb3ffb5f38269da96c31ba7ce9723c91b915a5155c3068ce6246da9f9", + "robobench/robots/franka.py": "a52095ce0979d3a61a6d70c1fbc6520e7c66e782388e53ae0f42f4c025308969", + "robobench/suites/assembly/scenes/pc_gpu_assembly.py": "92637e7e230ccc500434d9679eae105480c495bc16b3a0ac165a2c8bc1553631", + "robobench/suites/assembly/grader/pc_gpu_assembly.py": "423a5157fd21f946fff4f5189eb471b58d6917507d856310ed0b0c461957c511" + }, + "original_solution_matches_start_copy": { + "parameters.json": true, + "solve.py": true + } +} \ No newline at end of file diff --git a/provenance/user_stop_20261012.json b/provenance/user_stop_20261012.json new file mode 100644 index 0000000000000000000000000000000000000000..c9795a24cc974dfa0362e97bf21361c811e7c5e4 --- /dev/null +++ b/provenance/user_stop_20261012.json @@ -0,0 +1,9 @@ +{ + "utc": "2026-10-12T11:47:41Z", + "accepted": 8, + "reason": "User requested stop augmentation; convert completed successful trajectories to LeRobot and deliver on Mac", + "prior_status": { + "stage": "HARVEST_RUNNING", + "utc": "2026-10-12T11:24:09Z" + } +} \ No newline at end of file diff --git a/source_trajectories/episode_000/meta.json b/source_trajectories/episode_000/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..fbd8533c746f21e4e338360c0ebe362468a992c3 --- /dev/null +++ b/source_trajectories/episode_000/meta.json @@ -0,0 +1,138 @@ +{ + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 101, + "steps": 1350, + "batch_steps": 1505, + "success_step": 1320, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": {}, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_0", + "git_sha": "1489552" +} diff --git a/source_trajectories/episode_000/render_front.json b/source_trajectories/episode_000/render_front.json new file mode 100644 index 0000000000000000000000000000000000000000..fc9cd512982d247a1c4f738c8514b28c65ef357e --- /dev/null +++ b/source_trajectories/episode_000/render_front.json @@ -0,0 +1,1399 @@ +{ + "camera": "front_lerobot", + "video": "front_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319, + 1320, + 1321, + 1322, + 1323, + 1324, + 1325, + 1326, + 1327, + 1328, + 1329, + 1330, + 1331, + 1332, + 1333, + 1334, + 1335, + 1336, + 1337, + 1338, + 1339, + 1340, + 1341, + 1342, + 1343, + 1344, + 1345, + 1346, + 1347, + 1348, + 1349 + ], + "eye": [ + -0.09375, + -1.046111111111111, + 1.282 + ], + "target": [ + 0.4062, + -0.08, + 0.06 + ], + "focal": 16.0, + "link": null, + "cam_draw": 4, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:52:51+00:00" +} diff --git a/source_trajectories/episode_000/render_wrist.json b/source_trajectories/episode_000/render_wrist.json new file mode 100644 index 0000000000000000000000000000000000000000..5ba76610575a5b8d5f1b24c073817d3648e5cffd --- /dev/null +++ b/source_trajectories/episode_000/render_wrist.json @@ -0,0 +1,1399 @@ +{ + "camera": "wrist_lerobot", + "video": "wrist_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319, + 1320, + 1321, + 1322, + 1323, + 1324, + 1325, + 1326, + 1327, + 1328, + 1329, + 1330, + 1331, + 1332, + 1333, + 1334, + 1335, + 1336, + 1337, + 1338, + 1339, + 1340, + 1341, + 1342, + 1343, + 1344, + 1345, + 1346, + 1347, + 1348, + 1349 + ], + "eye": [ + 0.0465, + -0.02, + 0.036 + ], + "target": [ + 0.0465, + -0.02, + 0.3 + ], + "focal": 10.5, + "link": "panda_hand", + "cam_draw": null, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:52:51+00:00" +} diff --git a/source_trajectories/episode_000/traj.npz b/source_trajectories/episode_000/traj.npz new file mode 100644 index 0000000000000000000000000000000000000000..cd8ca9642bbde38c7fd8cf9ace9c5d25a0283a04 --- /dev/null +++ b/source_trajectories/episode_000/traj.npz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1561a9ef0d689e339779125bc8da0bb371185e16ad7111b2e1cab64b2f1a3584 +size 246785 diff --git a/source_trajectories/episode_001/meta.json b/source_trajectories/episode_001/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..c10767ade1a86a7c7a63b499fafb4a8de5ddabdd --- /dev/null +++ b/source_trajectories/episode_001/meta.json @@ -0,0 +1,141 @@ +{ + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 102, + "steps": 1350, + "batch_steps": 1502, + "success_step": 1320, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": true + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_0", + "git_sha": "1489552" +} diff --git a/source_trajectories/episode_001/render_front.json b/source_trajectories/episode_001/render_front.json new file mode 100644 index 0000000000000000000000000000000000000000..e1e03d336c425a337e2b6915f9e936ed1c9872e4 --- /dev/null +++ b/source_trajectories/episode_001/render_front.json @@ -0,0 +1,1399 @@ +{ + "camera": "front_lerobot", + "video": "front_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319, + 1320, + 1321, + 1322, + 1323, + 1324, + 1325, + 1326, + 1327, + 1328, + 1329, + 1330, + 1331, + 1332, + 1333, + 1334, + 1335, + 1336, + 1337, + 1338, + 1339, + 1340, + 1341, + 1342, + 1343, + 1344, + 1345, + 1346, + 1347, + 1348, + 1349 + ], + "eye": [ + -0.10625, + -1.073888888888889, + 1.282 + ], + "target": [ + 0.4122, + -0.08, + 0.06 + ], + "focal": 16.0, + "link": null, + "cam_draw": 5, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:52:51+00:00" +} diff --git a/source_trajectories/episode_001/render_wrist.json b/source_trajectories/episode_001/render_wrist.json new file mode 100644 index 0000000000000000000000000000000000000000..5ba76610575a5b8d5f1b24c073817d3648e5cffd --- /dev/null +++ b/source_trajectories/episode_001/render_wrist.json @@ -0,0 +1,1399 @@ +{ + "camera": "wrist_lerobot", + "video": "wrist_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319, + 1320, + 1321, + 1322, + 1323, + 1324, + 1325, + 1326, + 1327, + 1328, + 1329, + 1330, + 1331, + 1332, + 1333, + 1334, + 1335, + 1336, + 1337, + 1338, + 1339, + 1340, + 1341, + 1342, + 1343, + 1344, + 1345, + 1346, + 1347, + 1348, + 1349 + ], + "eye": [ + 0.0465, + -0.02, + 0.036 + ], + "target": [ + 0.0465, + -0.02, + 0.3 + ], + "focal": 10.5, + "link": "panda_hand", + "cam_draw": null, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:52:51+00:00" +} diff --git a/source_trajectories/episode_001/traj.npz b/source_trajectories/episode_001/traj.npz new file mode 100644 index 0000000000000000000000000000000000000000..576c6c0128adbf026be9d808441fbe909975a6fa --- /dev/null +++ b/source_trajectories/episode_001/traj.npz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00bc38a3a214aa0ce581a906892bd32256b00ab406842e4b34d470c5cd493fd8 +size 252919 diff --git a/source_trajectories/episode_002/meta.json b/source_trajectories/episode_002/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..dd4ac237b9bbe6218cc9d5bea5133ecfb7a9ce0f --- /dev/null +++ b/source_trajectories/episode_002/meta.json @@ -0,0 +1,141 @@ +{ + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 103, + "steps": 1350, + "batch_steps": 1508, + "success_step": 1320, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": true + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_0", + "git_sha": "1489552" +} diff --git a/source_trajectories/episode_002/render_front.json b/source_trajectories/episode_002/render_front.json new file mode 100644 index 0000000000000000000000000000000000000000..bb47ae6566357cf96cbafb18f9bda92dadb2c0f6 --- /dev/null +++ b/source_trajectories/episode_002/render_front.json @@ -0,0 +1,1399 @@ +{ + "camera": "front_lerobot", + "video": "front_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319, + 1320, + 1321, + 1322, + 1323, + 1324, + 1325, + 1326, + 1327, + 1328, + 1329, + 1330, + 1331, + 1332, + 1333, + 1334, + 1335, + 1336, + 1337, + 1338, + 1339, + 1340, + 1341, + 1342, + 1343, + 1344, + 1345, + 1346, + 1347, + 1348, + 1349 + ], + "eye": [ + -0.08124999999999999, + -1.057222222222222, + 1.282 + ], + "target": [ + 0.4182, + -0.08, + 0.06 + ], + "focal": 16.0, + "link": null, + "cam_draw": 6, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:52:51+00:00" +} diff --git a/source_trajectories/episode_002/render_wrist.json b/source_trajectories/episode_002/render_wrist.json new file mode 100644 index 0000000000000000000000000000000000000000..5ba76610575a5b8d5f1b24c073817d3648e5cffd --- /dev/null +++ b/source_trajectories/episode_002/render_wrist.json @@ -0,0 +1,1399 @@ +{ + "camera": "wrist_lerobot", + "video": "wrist_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319, + 1320, + 1321, + 1322, + 1323, + 1324, + 1325, + 1326, + 1327, + 1328, + 1329, + 1330, + 1331, + 1332, + 1333, + 1334, + 1335, + 1336, + 1337, + 1338, + 1339, + 1340, + 1341, + 1342, + 1343, + 1344, + 1345, + 1346, + 1347, + 1348, + 1349 + ], + "eye": [ + 0.0465, + -0.02, + 0.036 + ], + "target": [ + 0.0465, + -0.02, + 0.3 + ], + "focal": 10.5, + "link": "panda_hand", + "cam_draw": null, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:52:51+00:00" +} diff --git a/source_trajectories/episode_002/traj.npz b/source_trajectories/episode_002/traj.npz new file mode 100644 index 0000000000000000000000000000000000000000..782d84ecdc5c046d8e8c26805cbc4beda1eb6a8f --- /dev/null +++ b/source_trajectories/episode_002/traj.npz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b6e11c21a8e45895ecff5bdd209ac8d88e9e83353423a996950b135dfde679d +size 252686 diff --git a/source_trajectories/episode_003/meta.json b/source_trajectories/episode_003/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..376698f21cf5814629635f6e4b48fdc44d5713a2 --- /dev/null +++ b/source_trajectories/episode_003/meta.json @@ -0,0 +1,138 @@ +{ + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 100, + "steps": 1350, + "batch_steps": 1508, + "success_step": 1320, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": {}, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_0", + "git_sha": "1489552" +} diff --git a/source_trajectories/episode_003/render_front.json b/source_trajectories/episode_003/render_front.json new file mode 100644 index 0000000000000000000000000000000000000000..936665161a8b3ec7a7e9a80da9e9545b7d18b608 --- /dev/null +++ b/source_trajectories/episode_003/render_front.json @@ -0,0 +1,1399 @@ +{ + "camera": "front_lerobot", + "video": "front_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319, + 1320, + 1321, + 1322, + 1323, + 1324, + 1325, + 1326, + 1327, + 1328, + 1329, + 1330, + 1331, + 1332, + 1333, + 1334, + 1335, + 1336, + 1337, + 1338, + 1339, + 1340, + 1341, + 1342, + 1343, + 1344, + 1345, + 1346, + 1347, + 1348, + 1349 + ], + "eye": [ + -0.121875, + -1.0405555555555555, + 1.282 + ], + "target": [ + 0.4242, + -0.08, + 0.06 + ], + "focal": 16.0, + "link": null, + "cam_draw": 7, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:52:51+00:00" +} diff --git a/source_trajectories/episode_003/render_wrist.json b/source_trajectories/episode_003/render_wrist.json new file mode 100644 index 0000000000000000000000000000000000000000..5ba76610575a5b8d5f1b24c073817d3648e5cffd --- /dev/null +++ b/source_trajectories/episode_003/render_wrist.json @@ -0,0 +1,1399 @@ +{ + "camera": "wrist_lerobot", + "video": "wrist_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319, + 1320, + 1321, + 1322, + 1323, + 1324, + 1325, + 1326, + 1327, + 1328, + 1329, + 1330, + 1331, + 1332, + 1333, + 1334, + 1335, + 1336, + 1337, + 1338, + 1339, + 1340, + 1341, + 1342, + 1343, + 1344, + 1345, + 1346, + 1347, + 1348, + 1349 + ], + "eye": [ + 0.0465, + -0.02, + 0.036 + ], + "target": [ + 0.0465, + -0.02, + 0.3 + ], + "focal": 10.5, + "link": "panda_hand", + "cam_draw": null, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:52:51+00:00" +} diff --git a/source_trajectories/episode_003/traj.npz b/source_trajectories/episode_003/traj.npz new file mode 100644 index 0000000000000000000000000000000000000000..50732f9764ee90d4ab5957392a882df1bba200c7 --- /dev/null +++ b/source_trajectories/episode_003/traj.npz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:386431c115a260138b315c6b05f372ef65edd1b216e21bbf407b240731232051 +size 246699 diff --git a/source_trajectories/episode_004/meta.json b/source_trajectories/episode_004/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..2eb457ad272b5c63e7f30de245887ef88e6996b2 --- /dev/null +++ b/source_trajectories/episode_004/meta.json @@ -0,0 +1,138 @@ +{ + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 100, + "steps": 1320, + "batch_steps": 1462, + "success_step": 1290, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": {}, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_1", + "git_sha": "1489552" +} diff --git a/source_trajectories/episode_004/render_front.json b/source_trajectories/episode_004/render_front.json new file mode 100644 index 0000000000000000000000000000000000000000..13cf5e474c7a76b6ce3c414dc8c35ff365c99348 --- /dev/null +++ b/source_trajectories/episode_004/render_front.json @@ -0,0 +1,1369 @@ +{ + "camera": "front_lerobot", + "video": "front_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319 + ], + "eye": [ + -0.1125, + -1.0516666666666665, + 1.282 + ], + "target": [ + 0.41700000000000004, + -0.08, + 0.06 + ], + "focal": 16.0, + "link": null, + "cam_draw": 1, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_1", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:51:33+00:00" +} diff --git a/source_trajectories/episode_004/render_wrist.json b/source_trajectories/episode_004/render_wrist.json new file mode 100644 index 0000000000000000000000000000000000000000..935863a7d4df62c2ab28c3de326214472a297a52 --- /dev/null +++ b/source_trajectories/episode_004/render_wrist.json @@ -0,0 +1,1369 @@ +{ + "camera": "wrist_lerobot", + "video": "wrist_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319 + ], + "eye": [ + 0.0465, + -0.02, + 0.036 + ], + "target": [ + 0.0465, + -0.02, + 0.3 + ], + "focal": 10.5, + "link": "panda_hand", + "cam_draw": null, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_1", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:51:33+00:00" +} diff --git a/source_trajectories/episode_004/traj.npz b/source_trajectories/episode_004/traj.npz new file mode 100644 index 0000000000000000000000000000000000000000..a3d7dc2c1cf56f302dc041bd763e47559065f23a --- /dev/null +++ b/source_trajectories/episode_004/traj.npz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2cd399b0b885bc7b1729176ebc56c24e14987aa7dbb23ed96a3fc227da3d48b0 +size 241746 diff --git a/source_trajectories/episode_005/meta.json b/source_trajectories/episode_005/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..7c1741fbceb93741be1479e7a995177c63f39ec7 --- /dev/null +++ b/source_trajectories/episode_005/meta.json @@ -0,0 +1,141 @@ +{ + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": null, + "reset_fn": null, + "entry": null, + "seed": 100, + "steps": 1320, + "batch_steps": 1463, + "success_step": 1290, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": true + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_1", + "git_sha": "1489552" +} diff --git a/source_trajectories/episode_005/render_front.json b/source_trajectories/episode_005/render_front.json new file mode 100644 index 0000000000000000000000000000000000000000..a5c5616471b034e68992ea219669a1d58d203253 --- /dev/null +++ b/source_trajectories/episode_005/render_front.json @@ -0,0 +1,1369 @@ +{ + "camera": "front_lerobot", + "video": "front_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319 + ], + "eye": [ + -0.0875, + -1.0794444444444444, + 1.282 + ], + "target": [ + 0.423, + -0.08, + 0.06 + ], + "focal": 16.0, + "link": null, + "cam_draw": 2, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_1", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:51:33+00:00" +} diff --git a/source_trajectories/episode_005/render_wrist.json b/source_trajectories/episode_005/render_wrist.json new file mode 100644 index 0000000000000000000000000000000000000000..935863a7d4df62c2ab28c3de326214472a297a52 --- /dev/null +++ b/source_trajectories/episode_005/render_wrist.json @@ -0,0 +1,1369 @@ +{ + "camera": "wrist_lerobot", + "video": "wrist_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319 + ], + "eye": [ + 0.0465, + -0.02, + 0.036 + ], + "target": [ + 0.0465, + -0.02, + 0.3 + ], + "focal": 10.5, + "link": "panda_hand", + "cam_draw": null, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_1", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:51:33+00:00" +} diff --git a/source_trajectories/episode_005/traj.npz b/source_trajectories/episode_005/traj.npz new file mode 100644 index 0000000000000000000000000000000000000000..17635e8e650638d1621045801bc8bae599f2f6dc --- /dev/null +++ b/source_trajectories/episode_005/traj.npz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:417c8cd858853f703cb255717d330a3a7d8f7345924c53782f7cfa2e28251c10 +size 248147 diff --git a/source_trajectories/episode_006/meta.json b/source_trajectories/episode_006/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..2f9a257b1326d45bd0c2615e5f27646b56fd0ae8 --- /dev/null +++ b/source_trajectories/episode_006/meta.json @@ -0,0 +1,141 @@ +{ + "episode": 0, + "rollout": 0, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": "preinsert", + "reset_fn": "reset_0", + "entry": "preinsert", + "seed": 200, + "steps": 660, + "batch_steps": 802, + "success_step": 630, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": false + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_1/phase_0", + "git_sha": "1489552" +} diff --git a/source_trajectories/episode_006/render_front.json b/source_trajectories/episode_006/render_front.json new file mode 100644 index 0000000000000000000000000000000000000000..bdaf0ab2998ede460e6f25f98e30bd09225a494b --- /dev/null +++ b/source_trajectories/episode_006/render_front.json @@ -0,0 +1,709 @@ +{ + "camera": "front_lerobot", + "video": "front_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659 + ], + "eye": [ + -0.1, + -1.0683333333333334, + 1.282 + ], + "target": [ + 0.41100000000000003, + -0.08, + 0.06 + ], + "focal": 16.0, + "link": null, + "cam_draw": 0, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_1/phase_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:51:33+00:00" +} diff --git a/source_trajectories/episode_006/render_wrist.json b/source_trajectories/episode_006/render_wrist.json new file mode 100644 index 0000000000000000000000000000000000000000..be690add850b9a21e84565832d4c5248700f2c96 --- /dev/null +++ b/source_trajectories/episode_006/render_wrist.json @@ -0,0 +1,709 @@ +{ + "camera": "wrist_lerobot", + "video": "wrist_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659 + ], + "eye": [ + 0.0465, + -0.02, + 0.036 + ], + "target": [ + 0.0465, + -0.02, + 0.3 + ], + "focal": 10.5, + "link": "panda_hand", + "cam_draw": null, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_1/phase_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:51:33+00:00" +} diff --git a/source_trajectories/episode_006/traj.npz b/source_trajectories/episode_006/traj.npz new file mode 100644 index 0000000000000000000000000000000000000000..ed087d97626135e9a6bf41ee264ad20f8d961dda --- /dev/null +++ b/source_trajectories/episode_006/traj.npz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:949a676cafceea54ffbbf1751a5766cc719f9bc617d26e0ce40c83e8ab3d3d34 +size 122173 diff --git a/source_trajectories/episode_007/meta.json b/source_trajectories/episode_007/meta.json new file mode 100644 index 0000000000000000000000000000000000000000..b5dab9c9e39b4bf4b2b3c28403fe955872879d6f --- /dev/null +++ b/source_trajectories/episode_007/meta.json @@ -0,0 +1,141 @@ +{ + "episode": 1, + "rollout": 1, + "env_index": 0, + "success": true, + "score": 1.0, + "parameters": { + "physical": {}, + "solve": {} + }, + "reset": "start", + "reset_fn": "reset_0", + "entry": "start", + "seed": 201, + "steps": 1320, + "batch_steps": 1461, + "success_step": 1290, + "sim_dt": 0.004166666666666667, + "decimation": 16, + "controller": { + "class": "FrankaRobot", + "leaves": [ + { + "class": "OperationalSpaceController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "ee_body": "panda_hand", + "arm_joint_names": [ + "panda_joint[1-7]" + ], + "task_prop_gains": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "task_deriv_gains": [], + "pos_scale": 0.02, + "rot_scale": 0.097, + "unidirectional_rot": false, + "ema_factor": 0.2, + "nullspace_dof_pos": [ + -1.3003, + -0.4015, + 1.1791, + -2.1493, + 0.4001, + 1.9425, + 0.4754 + ], + "kp_null": 10.0, + "kd_null": 6.3246, + "torque_limit": 100.0 + }, + "kp": [ + 100.0, + 100.0, + 100.0, + 30.0, + 30.0, + 30.0 + ], + "kd": [ + 20.0, + 20.0, + 20.0, + 10.954451560974121, + 10.954451560974121, + 10.954451560974121 + ], + "q_default": [ + -1.3003000020980835, + -0.40149998664855957, + 1.1791000366210938, + -2.1493000984191895, + 0.4000999927520752, + 1.9424999952316284, + 0.47540000081062317 + ] + }, + { + "class": "JointController", + "control_period": 16, + "control_dt": 0.06666666666666667, + "cfg": { + "dt": 0.06666666666666667, + "joint_names": [ + "panda_finger_joint.*" + ], + "scale": 1.0, + "offset": 0.0 + } + } + ], + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "joint_stiffness": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 2000.0, + 2000.0 + ], + "joint_damping": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 100.0, + 100.0 + ] + }, + "controller_changes": [], + "noise": { + "scale": 1.0, + "perturbed": true + }, + "preset": "assembly.pc_gpu.franka.osc", + "cell": "scene_1/strategy_1/phase_0", + "git_sha": "1489552" +} diff --git a/source_trajectories/episode_007/render_front.json b/source_trajectories/episode_007/render_front.json new file mode 100644 index 0000000000000000000000000000000000000000..53254bb98cfeeb1c5c54a2926acc0b13454869cd --- /dev/null +++ b/source_trajectories/episode_007/render_front.json @@ -0,0 +1,1369 @@ +{ + "camera": "front_lerobot", + "video": "front_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319 + ], + "eye": [ + -0.11875, + -1.0627777777777778, + 1.282 + ], + "target": [ + 0.429, + -0.08, + 0.06 + ], + "focal": 16.0, + "link": null, + "cam_draw": 3, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_1/phase_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:51:33+00:00" +} diff --git a/source_trajectories/episode_007/render_wrist.json b/source_trajectories/episode_007/render_wrist.json new file mode 100644 index 0000000000000000000000000000000000000000..e0cdbb9102df64337f116f48001a26223fdc3f74 --- /dev/null +++ b/source_trajectories/episode_007/render_wrist.json @@ -0,0 +1,1369 @@ +{ + "camera": "wrist_lerobot", + "video": "wrist_lerobot.mp4", + "video_crf": 18, + "size": [ + 320, + 240 + ], + "fps": 15, + "stride": 1, + "sim_dt": 0.004166666666666667, + "step_dt": 0.06666666666666667, + "frame_indices": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91, + 92, + 93, + 94, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + 102, + 103, + 104, + 105, + 106, + 107, + 108, + 109, + 110, + 111, + 112, + 113, + 114, + 115, + 116, + 117, + 118, + 119, + 120, + 121, + 122, + 123, + 124, + 125, + 126, + 127, + 128, + 129, + 130, + 131, + 132, + 133, + 134, + 135, + 136, + 137, + 138, + 139, + 140, + 141, + 142, + 143, + 144, + 145, + 146, + 147, + 148, + 149, + 150, + 151, + 152, + 153, + 154, + 155, + 156, + 157, + 158, + 159, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 174, + 175, + 176, + 177, + 178, + 179, + 180, + 181, + 182, + 183, + 184, + 185, + 186, + 187, + 188, + 189, + 190, + 191, + 192, + 193, + 194, + 195, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 210, + 211, + 212, + 213, + 214, + 215, + 216, + 217, + 218, + 219, + 220, + 221, + 222, + 223, + 224, + 225, + 226, + 227, + 228, + 229, + 230, + 231, + 232, + 233, + 234, + 235, + 236, + 237, + 238, + 239, + 240, + 241, + 242, + 243, + 244, + 245, + 246, + 247, + 248, + 249, + 250, + 251, + 252, + 253, + 254, + 255, + 256, + 257, + 258, + 259, + 260, + 261, + 262, + 263, + 264, + 265, + 266, + 267, + 268, + 269, + 270, + 271, + 272, + 273, + 274, + 275, + 276, + 277, + 278, + 279, + 280, + 281, + 282, + 283, + 284, + 285, + 286, + 287, + 288, + 289, + 290, + 291, + 292, + 293, + 294, + 295, + 296, + 297, + 298, + 299, + 300, + 301, + 302, + 303, + 304, + 305, + 306, + 307, + 308, + 309, + 310, + 311, + 312, + 313, + 314, + 315, + 316, + 317, + 318, + 319, + 320, + 321, + 322, + 323, + 324, + 325, + 326, + 327, + 328, + 329, + 330, + 331, + 332, + 333, + 334, + 335, + 336, + 337, + 338, + 339, + 340, + 341, + 342, + 343, + 344, + 345, + 346, + 347, + 348, + 349, + 350, + 351, + 352, + 353, + 354, + 355, + 356, + 357, + 358, + 359, + 360, + 361, + 362, + 363, + 364, + 365, + 366, + 367, + 368, + 369, + 370, + 371, + 372, + 373, + 374, + 375, + 376, + 377, + 378, + 379, + 380, + 381, + 382, + 383, + 384, + 385, + 386, + 387, + 388, + 389, + 390, + 391, + 392, + 393, + 394, + 395, + 396, + 397, + 398, + 399, + 400, + 401, + 402, + 403, + 404, + 405, + 406, + 407, + 408, + 409, + 410, + 411, + 412, + 413, + 414, + 415, + 416, + 417, + 418, + 419, + 420, + 421, + 422, + 423, + 424, + 425, + 426, + 427, + 428, + 429, + 430, + 431, + 432, + 433, + 434, + 435, + 436, + 437, + 438, + 439, + 440, + 441, + 442, + 443, + 444, + 445, + 446, + 447, + 448, + 449, + 450, + 451, + 452, + 453, + 454, + 455, + 456, + 457, + 458, + 459, + 460, + 461, + 462, + 463, + 464, + 465, + 466, + 467, + 468, + 469, + 470, + 471, + 472, + 473, + 474, + 475, + 476, + 477, + 478, + 479, + 480, + 481, + 482, + 483, + 484, + 485, + 486, + 487, + 488, + 489, + 490, + 491, + 492, + 493, + 494, + 495, + 496, + 497, + 498, + 499, + 500, + 501, + 502, + 503, + 504, + 505, + 506, + 507, + 508, + 509, + 510, + 511, + 512, + 513, + 514, + 515, + 516, + 517, + 518, + 519, + 520, + 521, + 522, + 523, + 524, + 525, + 526, + 527, + 528, + 529, + 530, + 531, + 532, + 533, + 534, + 535, + 536, + 537, + 538, + 539, + 540, + 541, + 542, + 543, + 544, + 545, + 546, + 547, + 548, + 549, + 550, + 551, + 552, + 553, + 554, + 555, + 556, + 557, + 558, + 559, + 560, + 561, + 562, + 563, + 564, + 565, + 566, + 567, + 568, + 569, + 570, + 571, + 572, + 573, + 574, + 575, + 576, + 577, + 578, + 579, + 580, + 581, + 582, + 583, + 584, + 585, + 586, + 587, + 588, + 589, + 590, + 591, + 592, + 593, + 594, + 595, + 596, + 597, + 598, + 599, + 600, + 601, + 602, + 603, + 604, + 605, + 606, + 607, + 608, + 609, + 610, + 611, + 612, + 613, + 614, + 615, + 616, + 617, + 618, + 619, + 620, + 621, + 622, + 623, + 624, + 625, + 626, + 627, + 628, + 629, + 630, + 631, + 632, + 633, + 634, + 635, + 636, + 637, + 638, + 639, + 640, + 641, + 642, + 643, + 644, + 645, + 646, + 647, + 648, + 649, + 650, + 651, + 652, + 653, + 654, + 655, + 656, + 657, + 658, + 659, + 660, + 661, + 662, + 663, + 664, + 665, + 666, + 667, + 668, + 669, + 670, + 671, + 672, + 673, + 674, + 675, + 676, + 677, + 678, + 679, + 680, + 681, + 682, + 683, + 684, + 685, + 686, + 687, + 688, + 689, + 690, + 691, + 692, + 693, + 694, + 695, + 696, + 697, + 698, + 699, + 700, + 701, + 702, + 703, + 704, + 705, + 706, + 707, + 708, + 709, + 710, + 711, + 712, + 713, + 714, + 715, + 716, + 717, + 718, + 719, + 720, + 721, + 722, + 723, + 724, + 725, + 726, + 727, + 728, + 729, + 730, + 731, + 732, + 733, + 734, + 735, + 736, + 737, + 738, + 739, + 740, + 741, + 742, + 743, + 744, + 745, + 746, + 747, + 748, + 749, + 750, + 751, + 752, + 753, + 754, + 755, + 756, + 757, + 758, + 759, + 760, + 761, + 762, + 763, + 764, + 765, + 766, + 767, + 768, + 769, + 770, + 771, + 772, + 773, + 774, + 775, + 776, + 777, + 778, + 779, + 780, + 781, + 782, + 783, + 784, + 785, + 786, + 787, + 788, + 789, + 790, + 791, + 792, + 793, + 794, + 795, + 796, + 797, + 798, + 799, + 800, + 801, + 802, + 803, + 804, + 805, + 806, + 807, + 808, + 809, + 810, + 811, + 812, + 813, + 814, + 815, + 816, + 817, + 818, + 819, + 820, + 821, + 822, + 823, + 824, + 825, + 826, + 827, + 828, + 829, + 830, + 831, + 832, + 833, + 834, + 835, + 836, + 837, + 838, + 839, + 840, + 841, + 842, + 843, + 844, + 845, + 846, + 847, + 848, + 849, + 850, + 851, + 852, + 853, + 854, + 855, + 856, + 857, + 858, + 859, + 860, + 861, + 862, + 863, + 864, + 865, + 866, + 867, + 868, + 869, + 870, + 871, + 872, + 873, + 874, + 875, + 876, + 877, + 878, + 879, + 880, + 881, + 882, + 883, + 884, + 885, + 886, + 887, + 888, + 889, + 890, + 891, + 892, + 893, + 894, + 895, + 896, + 897, + 898, + 899, + 900, + 901, + 902, + 903, + 904, + 905, + 906, + 907, + 908, + 909, + 910, + 911, + 912, + 913, + 914, + 915, + 916, + 917, + 918, + 919, + 920, + 921, + 922, + 923, + 924, + 925, + 926, + 927, + 928, + 929, + 930, + 931, + 932, + 933, + 934, + 935, + 936, + 937, + 938, + 939, + 940, + 941, + 942, + 943, + 944, + 945, + 946, + 947, + 948, + 949, + 950, + 951, + 952, + 953, + 954, + 955, + 956, + 957, + 958, + 959, + 960, + 961, + 962, + 963, + 964, + 965, + 966, + 967, + 968, + 969, + 970, + 971, + 972, + 973, + 974, + 975, + 976, + 977, + 978, + 979, + 980, + 981, + 982, + 983, + 984, + 985, + 986, + 987, + 988, + 989, + 990, + 991, + 992, + 993, + 994, + 995, + 996, + 997, + 998, + 999, + 1000, + 1001, + 1002, + 1003, + 1004, + 1005, + 1006, + 1007, + 1008, + 1009, + 1010, + 1011, + 1012, + 1013, + 1014, + 1015, + 1016, + 1017, + 1018, + 1019, + 1020, + 1021, + 1022, + 1023, + 1024, + 1025, + 1026, + 1027, + 1028, + 1029, + 1030, + 1031, + 1032, + 1033, + 1034, + 1035, + 1036, + 1037, + 1038, + 1039, + 1040, + 1041, + 1042, + 1043, + 1044, + 1045, + 1046, + 1047, + 1048, + 1049, + 1050, + 1051, + 1052, + 1053, + 1054, + 1055, + 1056, + 1057, + 1058, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1067, + 1068, + 1069, + 1070, + 1071, + 1072, + 1073, + 1074, + 1075, + 1076, + 1077, + 1078, + 1079, + 1080, + 1081, + 1082, + 1083, + 1084, + 1085, + 1086, + 1087, + 1088, + 1089, + 1090, + 1091, + 1092, + 1093, + 1094, + 1095, + 1096, + 1097, + 1098, + 1099, + 1100, + 1101, + 1102, + 1103, + 1104, + 1105, + 1106, + 1107, + 1108, + 1109, + 1110, + 1111, + 1112, + 1113, + 1114, + 1115, + 1116, + 1117, + 1118, + 1119, + 1120, + 1121, + 1122, + 1123, + 1124, + 1125, + 1126, + 1127, + 1128, + 1129, + 1130, + 1131, + 1132, + 1133, + 1134, + 1135, + 1136, + 1137, + 1138, + 1139, + 1140, + 1141, + 1142, + 1143, + 1144, + 1145, + 1146, + 1147, + 1148, + 1149, + 1150, + 1151, + 1152, + 1153, + 1154, + 1155, + 1156, + 1157, + 1158, + 1159, + 1160, + 1161, + 1162, + 1163, + 1164, + 1165, + 1166, + 1167, + 1168, + 1169, + 1170, + 1171, + 1172, + 1173, + 1174, + 1175, + 1176, + 1177, + 1178, + 1179, + 1180, + 1181, + 1182, + 1183, + 1184, + 1185, + 1186, + 1187, + 1188, + 1189, + 1190, + 1191, + 1192, + 1193, + 1194, + 1195, + 1196, + 1197, + 1198, + 1199, + 1200, + 1201, + 1202, + 1203, + 1204, + 1205, + 1206, + 1207, + 1208, + 1209, + 1210, + 1211, + 1212, + 1213, + 1214, + 1215, + 1216, + 1217, + 1218, + 1219, + 1220, + 1221, + 1222, + 1223, + 1224, + 1225, + 1226, + 1227, + 1228, + 1229, + 1230, + 1231, + 1232, + 1233, + 1234, + 1235, + 1236, + 1237, + 1238, + 1239, + 1240, + 1241, + 1242, + 1243, + 1244, + 1245, + 1246, + 1247, + 1248, + 1249, + 1250, + 1251, + 1252, + 1253, + 1254, + 1255, + 1256, + 1257, + 1258, + 1259, + 1260, + 1261, + 1262, + 1263, + 1264, + 1265, + 1266, + 1267, + 1268, + 1269, + 1270, + 1271, + 1272, + 1273, + 1274, + 1275, + 1276, + 1277, + 1278, + 1279, + 1280, + 1281, + 1282, + 1283, + 1284, + 1285, + 1286, + 1287, + 1288, + 1289, + 1290, + 1291, + 1292, + 1293, + 1294, + 1295, + 1296, + 1297, + 1298, + 1299, + 1300, + 1301, + 1302, + 1303, + 1304, + 1305, + 1306, + 1307, + 1308, + 1309, + 1310, + 1311, + 1312, + 1313, + 1314, + 1315, + 1316, + 1317, + 1318, + 1319 + ], + "eye": [ + 0.0465, + -0.02, + 0.036 + ], + "target": [ + 0.0465, + -0.02, + 0.3 + ], + "focal": 10.5, + "link": "panda_hand", + "cam_draw": null, + "env_spacing": 50.0, + "joint_names": [ + "panda_joint1", + "panda_joint2", + "panda_joint3", + "panda_joint4", + "panda_joint5", + "panda_joint6", + "panda_joint7", + "panda_finger_joint1", + "panda_finger_joint2" + ], + "scene_description": "A gaming-PC case lying on its side on a sturdy table, opening up, its motherboard facing the ceiling. The board's primary PCIe x16 slot is empty, and the rear I/O panel has an open expansion-slot cutout. Beside the case a loose graphics card stands upright in a foam holder, already in its installation orientation.\nGoal: grip the card by its top edge, lift it straight out of the holder, lower it into the case with its I/O bracket just forward of the rear panel, slide it rearward until the bracket and ports pass through the cutout, line its PCB edge connector up with the x16 slot, and press it straight down until it bottoms out. A seated card stays put on its own. The task is complete once the card is fully seated. A fixed blue parts box decorates the far corner, outside the task volume. The card holds in a firm pinch: close the fingers squarely across its body slab near the top edge and the grip locks; open wide to release.", + "success": true, + "cell": "scene_1/strategy_1/phase_0", + "visual_hook": "/data/yichenzhao/projects/pc_gpu_five_stage_20261012/evidence/lerobot_render8_camera_hook.py", + "visual_draw": 1, + "visual_values": { + "light_intensity": 2500.0 + }, + "created": "2026-10-12T11:51:34+00:00" +} diff --git a/source_trajectories/episode_007/traj.npz b/source_trajectories/episode_007/traj.npz new file mode 100644 index 0000000000000000000000000000000000000000..db43c09d4166704e31ecac0ed2fca2270b0f7226 --- /dev/null +++ b/source_trajectories/episode_007/traj.npz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53ae73433de3b0b73d791c55b61f262175b441b49c5d0315c8b4a9073a8eb97b +size 248148 diff --git a/validation_report.json b/validation_report.json new file mode 100644 index 0000000000000000000000000000000000000000..6348b14addc8b88b73622b016f1ed8e0e51c8849 --- /dev/null +++ b/validation_report.json @@ -0,0 +1,992 @@ +{ + "passed": true, + "episodes": 8, + "frames": 10020, + "fps": 15, + "lerobot_package": "0.6.2", + "codebase_version": "v3.0", + "numeric_alignment": "every row checked against source NPZ", + "camera_render_alignment": [ + { + "episode": "data/h_s0_1/ep_0000", + "camera": "front", + "aligned_frames": 1350 + }, + { + "episode": "data/h_s0_1/ep_0000", + "camera": "wrist", + "aligned_frames": 1350 + }, + { + "episode": "data/h_s0_2/ep_0000", + "camera": "front", + "aligned_frames": 1350 + }, + { + "episode": "data/h_s0_2/ep_0000", + "camera": "wrist", + "aligned_frames": 1350 + }, + { + "episode": "data/h_s0_3/ep_0000", + "camera": "front", + "aligned_frames": 1350 + }, + { + "episode": "data/h_s0_3/ep_0000", + "camera": "wrist", + "aligned_frames": 1350 + }, + { + "episode": "data/p01_scene/ep_0000", + "camera": "front", + "aligned_frames": 1350 + }, + { + "episode": "data/p01_scene/ep_0000", + "camera": "wrist", + "aligned_frames": 1350 + }, + { + "episode": "data/p02_strategy/ep_0000", + "camera": "front", + "aligned_frames": 1320 + }, + { + "episode": "data/p02_strategy/ep_0000", + "camera": "wrist", + "aligned_frames": 1320 + }, + { + "episode": "data/p03_dynamics/ep_0000", + "camera": "front", + "aligned_frames": 1320 + }, + { + "episode": "data/p03_dynamics/ep_0000", + "camera": "wrist", + "aligned_frames": 1320 + }, + { + "episode": "data/p04_phase/ep_0000", + "camera": "front", + "aligned_frames": 660 + }, + { + "episode": "data/p04_phase/ep_0000", + "camera": "wrist", + "aligned_frames": 660 + }, + { + "episode": "data/p04_phase/ep_0001", + "camera": "front", + "aligned_frames": 1320 + }, + { + "episode": "data/p04_phase/ep_0001", + "camera": "wrist", + "aligned_frames": 1320 + } + ], + "image_alignment": "five times per episode per camera checked through official LeRobotDataset decoder", + "checks": [ + { + "episode": 0, + "frames": 1350, + "all_numeric_rows_max_error": { + "action": 0.0, + "observation.state": 0.0, + "complementary_info.action_noise": 0.0, + "complementary_info.executed_action": 0.0 + }, + "decoded_image_checks": [ + { + "frame": 0, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2265581597222222 + }, + { + "frame": 0, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8687326388888889 + }, + { + "frame": 337, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2577734375 + }, + { + "frame": 337, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8384027777777778 + }, + { + "frame": 675, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2875434027777777 + }, + { + "frame": 675, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1912934027777777 + }, + { + "frame": 1012, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1641883680555556 + }, + { + "frame": 1012, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.3674001736111112 + }, + { + "frame": 1349, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2517881944444444 + }, + { + "frame": 1349, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.5449479166666666 + } + ] + }, + { + "episode": 1, + "frames": 1350, + "all_numeric_rows_max_error": { + "action": 0.0, + "observation.state": 0.0, + "complementary_info.action_noise": 0.0, + "complementary_info.executed_action": 0.0 + }, + "decoded_image_checks": [ + { + "frame": 0, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1841536458333333 + }, + { + "frame": 0, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8106510416666667 + }, + { + "frame": 337, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2801519097222223 + }, + { + "frame": 337, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.9134982638888889 + }, + { + "frame": 675, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2916449652777777 + }, + { + "frame": 675, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.0935720486111111 + }, + { + "frame": 1012, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1332421875 + }, + { + "frame": 1012, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.3822178819444444 + }, + { + "frame": 1349, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2434505208333333 + }, + { + "frame": 1349, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.5769010416666667 + } + ] + }, + { + "episode": 2, + "frames": 1350, + "all_numeric_rows_max_error": { + "action": 0.0, + "observation.state": 0.0, + "complementary_info.action_noise": 0.0, + "complementary_info.executed_action": 0.0 + }, + "decoded_image_checks": [ + { + "frame": 0, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2480642361111112 + }, + { + "frame": 0, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8513628472222222 + }, + { + "frame": 337, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2036241319444445 + }, + { + "frame": 337, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8955295138888889 + }, + { + "frame": 675, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.223224826388889 + }, + { + "frame": 675, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1187239583333333 + }, + { + "frame": 1012, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1025347222222222 + }, + { + "frame": 1012, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.3326519097222222 + }, + { + "frame": 1349, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2094140625 + }, + { + "frame": 1349, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2518359375 + } + ] + }, + { + "episode": 3, + "frames": 1350, + "all_numeric_rows_max_error": { + "action": 0.0, + "observation.state": 0.0, + "complementary_info.action_noise": 0.0, + "complementary_info.executed_action": 0.0 + }, + "decoded_image_checks": [ + { + "frame": 0, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1787630208333333 + }, + { + "frame": 0, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8510546875 + }, + { + "frame": 337, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.3162760416666666 + }, + { + "frame": 337, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.9040842013888889 + }, + { + "frame": 675, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2300564236111111 + }, + { + "frame": 675, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1363020833333333 + }, + { + "frame": 1012, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1303342013888888 + }, + { + "frame": 1012, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.317265625 + }, + { + "frame": 1349, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2296180555555556 + }, + { + "frame": 1349, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.3235460069444445 + } + ] + }, + { + "episode": 4, + "frames": 1320, + "all_numeric_rows_max_error": { + "action": 0.0, + "observation.state": 0.0, + "complementary_info.action_noise": 0.0, + "complementary_info.executed_action": 0.0 + }, + "decoded_image_checks": [ + { + "frame": 0, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2457421875 + }, + { + "frame": 0, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8456423611111111 + }, + { + "frame": 330, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1901996527777778 + }, + { + "frame": 330, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8461631944444444 + }, + { + "frame": 660, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1881336805555556 + }, + { + "frame": 660, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.9535112847222222 + }, + { + "frame": 990, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1686935763888888 + }, + { + "frame": 990, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.390295138888889 + }, + { + "frame": 1319, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2189192708333334 + }, + { + "frame": 1319, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.9639756944444444 + } + ] + }, + { + "episode": 5, + "frames": 1320, + "all_numeric_rows_max_error": { + "action": 0.0, + "observation.state": 0.0, + "complementary_info.action_noise": 0.0, + "complementary_info.executed_action": 0.0 + }, + "decoded_image_checks": [ + { + "frame": 0, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2055034722222222 + }, + { + "frame": 0, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8133984375 + }, + { + "frame": 330, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1695182291666666 + }, + { + "frame": 330, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.81921875 + }, + { + "frame": 660, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2129123263888888 + }, + { + "frame": 660, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.9845572916666666 + }, + { + "frame": 990, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.203185763888889 + }, + { + "frame": 990, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.4035677083333333 + }, + { + "frame": 1319, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2280642361111112 + }, + { + "frame": 1319, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.9411328125 + } + ] + }, + { + "episode": 6, + "frames": 660, + "all_numeric_rows_max_error": { + "action": 0.0, + "observation.state": 0.0, + "complementary_info.action_noise": 0.0, + "complementary_info.executed_action": 0.0 + }, + "decoded_image_checks": [ + { + "frame": 0, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2451432291666666 + }, + { + "frame": 0, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.9042144097222222 + }, + { + "frame": 165, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.185217013888889 + }, + { + "frame": 165, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.5405598958333333 + }, + { + "frame": 330, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.178515625 + }, + { + "frame": 330, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.4184678819444445 + }, + { + "frame": 495, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.187092013888889 + }, + { + "frame": 495, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.4574435763888889 + }, + { + "frame": 659, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2686762152777777 + }, + { + "frame": 659, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.124765625 + } + ] + }, + { + "episode": 7, + "frames": 1320, + "all_numeric_rows_max_error": { + "action": 0.0, + "observation.state": 0.0, + "complementary_info.action_noise": 0.0, + "complementary_info.executed_action": 0.0 + }, + "decoded_image_checks": [ + { + "frame": 0, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1981119791666666 + }, + { + "frame": 0, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.8150260416666667 + }, + { + "frame": 330, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.189357638888889 + }, + { + "frame": 330, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.7922612847222222 + }, + { + "frame": 660, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2192404513888888 + }, + { + "frame": 660, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.9333550347222223 + }, + { + "frame": 990, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.1743229166666667 + }, + { + "frame": 990, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.3416710069444444 + }, + { + "frame": 1319, + "camera": "front", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 1.2228949652777779 + }, + { + "frame": 1319, + "camera": "wrist", + "shape": [ + 240, + 320, + 3 + ], + "rgb_mean_absolute_error": 0.97765625 + } + ] + } + ], + "all_source_video_frames_read_and_nonblank": true, + "action_replay_checked": false +} \ No newline at end of file diff --git a/videos/observation.images.front/chunk-000/file-000.mp4 b/videos/observation.images.front/chunk-000/file-000.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..a5a572cf2c526f646f130a9dc522e47db207f8a1 --- /dev/null +++ b/videos/observation.images.front/chunk-000/file-000.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67d6136746584ff7fe5c814d03cfd5d7e01e7758ec00644da344372a3f96aa93 +size 57107010 diff --git a/videos/observation.images.wrist/chunk-000/file-000.mp4 b/videos/observation.images.wrist/chunk-000/file-000.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..66f3eb7fca445747f97dbdf0a42b7c4b865e9a14 --- /dev/null +++ b/videos/observation.images.wrist/chunk-000/file-000.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f015ab9b43341015584e60321ecae918371d21e91bfb5991cd46b69b2568897 +size 45862587