Repository navigation
Adds Arena G1 locomanipulation retargeters - #4140
Conversation
Greptile OverviewGreptile SummaryThis PR adds Key changes:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User as VR User
participant Controllers as VR Controllers
participant Retargeter as G1TriHandUpperBodyMotionControllerGripperRetargeter
participant Device as DeviceBase
participant Robot as G1 Robot
User->>Controllers: Press triggers & move controllers
Controllers->>Device: Raw controller data (pose + inputs)
Device->>Retargeter: retarget(data)
Note over Retargeter: Extract controller data
Retargeter->>Retargeter: _extract_hand_state(left_controller, prev_state)
Note over Retargeter: Apply hysteresis logic<br/>trigger > 0.6 → close<br/>trigger < 0.4 → open
Retargeter->>Retargeter: _extract_hand_state(right_controller, prev_state)
Retargeter->>Retargeter: _extract_wrist_pose(left_controller)
Retargeter->>Retargeter: _retarget_abs(left_wrist)
Note over Retargeter: Apply -75° Y + 90° Z rotation<br/>Transform to robot frame
Retargeter->>Retargeter: _extract_wrist_pose(right_controller)
Retargeter->>Retargeter: _retarget_abs(right_wrist)
Note over Retargeter: Concatenate outputs:<br/>[gripper_states(2), left_wrist(7), right_wrist(7)]
Retargeter-->>Device: torch.Tensor (16 elements)
Device-->>Robot: Gripper commands + wrist poses
Robot->>Robot: Execute gripper open/close + move wrists
|
peterd-NV
left a comment
There was a problem hiding this comment.
Thanks @rwiltz @hougantc-nvda for helping get teleop for G1 Arena.
I recall trying out the full body teleop with Quest on the Arena G1 env during the onsite. Was that setup using this upper body retargeting?
Yes, in the demo we had implemented the retargeting in Arena, this MR essentially moves it from Arena to Isaac Lab. |
|
LGTM. One comment that we can refactor to extract some common functionality at some point, but doesn't have to be now. |
fe362ca to
30a470c
Compare
There was a problem hiding this comment.
Additional Comments (1)
-
source/isaaclab/isaaclab/devices/openxr/retargeters/humanoid/unitree/trihand/g1_upper_body_motion_ctrl_gripper.py, line 51 (link)syntax: quaternion format in docstring is
[qw, qx, qy, qz]but should be[x, y, z, qw, qx, qy, qz]to match the actual format used
5 files reviewed, 1 comment
hougantc-nvda
left a comment
There was a problem hiding this comment.
LGTM. Added minor comment that can be done in a later PR to extract common functionality.
ooctipus
left a comment
There was a problem hiding this comment.
looks good to me, maybe you can consider using configclass instead of dataclass, but I am good with either choice
Signed-off-by: Kelly Guo <[email protected]>
# Description Added a retargeter for G1 upper body which takes in controller input and outputs a bool for hand open/close in addition to the left and right EE targets based on the controller position. Fixes # (issue) ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
# Description Added a retargeter for G1 upper body which takes in controller input and outputs a bool for hand open/close in addition to the left and right EE targets based on the controller position. Fixes # (issue) ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
# Description Added a retargeter for G1 upper body which takes in controller input and outputs a bool for hand open/close in addition to the left and right EE targets based on the controller position. Fixes # (issue) ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
# Description Added a retargeter for G1 upper body which takes in controller input and outputs a bool for hand open/close in addition to the left and right EE targets based on the controller position. Fixes # (issue) ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - New feature (non-breaking change which adds functionality) ## Checklist - [x] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [x] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [x] I have added my name to the `CONTRIBUTORS.md` or my name already exists there Signed-off-by: Kelly Guo <[email protected]> Co-authored-by: Kelly Guo <[email protected]>
Description
Added a retargeter for G1 upper body which takes in controller input and outputs a bool for hand open/close in addition to the left and right EE targets based on the controller position.
Fixes # (issue)
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there