Repository navigation
Conversation
Signed-off-by: bupeshr <93628947+bupeshr@users.noreply.github.com>
|
Thanks. I tried this with Claude Code and Claude Code says the following. Could you check it? I checked out the branch and reproduced it locally. The success rate reproduces, but every success still has the giver touching the block (item 1 below), so I think the success condition needs fixing before merge. Reproduction (RTX 4060 8GB)
Requests
|
|
@Manas-arumalla Could you review this? |
|
I agree with all of @kou points, especially item 1 (the giver never releases). Reading the code, I found a few more: The receiver starts almost at the target. The task inherits BIMANUAL_LIFT_HOME, which is bimanual lift's held-high pose for both arms, including the right fingers at the squeeze width. So at every reset, the right gripper's jaws are already closed to the block width, centred where bimanual lift's bar end sits: (0.30, -0.16, 0.51). The transferred latch is set inside a reward term. handover_overlap_streak returns a reward and also sets the latch that handed_over reads. This has two side effects in mjlab 1.6: RewardManager.compute skips terms with weight 0. Setting overlap_streak to 0 (e.g. in an ablation) would silently make success impossible. The held-high start has no variation. reset_giver_held_high writes an exact left-arm pose, finger width and block pose, overriding the joint jitter and the block's xy jitter. Half of all episodes therefore start from the same giver state, in training and in eval, since eval loads the training config. Could you add a little jitter here, and quote the headline success rate with probability=0? The test CI failure is not caused by this PR. uv sync picks Python 3.15, mujoco 3.11.0 has no wheel for it, and the source build fails with MUJOCO_PATH environment variable is not set. main has failed the same way since Nov 1 (e6fc666). Only pre-commit (kou's item 3) needs fixing here. (Minor) The viewer uses an ASSET_BODY camera. A tracking camera follows the arm's subtree centre of mass, so recorded videos sway with the arm. The single-arm tasks use a fixed WORLD camera. bimanual_lift also uses ASSET_BODY, so this is consistent with it. @bupeshr check it |
This PR introduces the
OpenArm-Handovertask, a new bimanual RL environment where the left arm (giver) must safely transfer a free object to the right arm (receiver).Key Implementations
solref(0.005, 1.0) and increased simulationnconmaxto 200 to ensure stable contact physics when both grippers manipulate the object._transferredstate latches only after both arms maintain a simultaneous grip for 10 consecutive steps.giver_liftreward pays only before the transfer, whilegiver_releaseandcarry_to_targetactivate only after the overlap latch triggers.reset_giver_held_highinitialization event. This starts 50% of the training episodes with the left arm already holding the block in a raised position, accelerating the right arm's learning process.test_handover_env.pyto verify observation spaces, action dimensions, latch logic, and geometry constants.Reproduce
The policy converges with a 100% success rate on the evaluation batch.
Training:
Play trained checkpoint:
Run Eval:
Evaluation Output: