Research/arm payload carry#118
Open
JKLover0909 wants to merge 3 commits into
Open
Conversation
Author
|
ok |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a "G1 arm-hold" locomotion variant where the policy still emits 29 actions, but 14 arm DOFs are held at fixed positions via a new FixedJointPositionActionTerm. New robot/action/experiment presets wire this up, plus two markdown handoff docs.
Changes:
- Introduce
FixedJointPositionActionTermthat overrides processed actions for a configured set of joints. - Add
g1_29dof_arm_holdaction/robot/experiment presets and register them in the defaults dictionaries. - Add
AGENT.mdandUseme.mdrunbooks documenting the workflow.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/holosoma/holosoma/managers/action/terms/joint_control.py | New FixedJointPositionActionTerm overriding processed and post-delay actions. |
| src/holosoma/holosoma/managers/action/terms/init.py | Exports the new action term. |
| src/holosoma/holosoma/config_values/robot.py | Adds G1_ARM_HOLD_JOINT_ANGLES and g1_29dof_arm_hold robot config. |
| src/holosoma/holosoma/config_values/loco/g1/action.py | Adds arm-hold action manager preset duplicating the angle dict. |
| src/holosoma/holosoma/config_values/loco/g1/experiment.py | Adds PPO experiment preset for arm-hold. |
| src/holosoma/holosoma/config_values/experiment.py | Registers experiment preset in defaults. |
| src/holosoma/holosoma/config_values/action.py | Registers new action preset in defaults. |
| AGENT.md | New agent handoff notes with environment-specific paths. |
| Useme.md | New runbook with environment-specific paths. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+5
to
+20
| ARM_HOLD_JOINT_ANGLES = { | ||
| "left_shoulder_pitch_joint": -0.75, | ||
| "left_shoulder_roll_joint": 0.35, | ||
| "left_shoulder_yaw_joint": 0.08, | ||
| "left_elbow_joint": 0.60, | ||
| "left_wrist_roll_joint": 0.00, | ||
| "left_wrist_pitch_joint": 0.20, | ||
| "left_wrist_yaw_joint": 0.0, | ||
| "right_shoulder_pitch_joint": -0.75, | ||
| "right_shoulder_roll_joint": -0.40, | ||
| "right_shoulder_yaw_joint": 0.35, | ||
| "right_elbow_joint": 0.65, | ||
| "right_wrist_roll_joint": 0.00, | ||
| "right_wrist_pitch_joint": -0.10, | ||
| "right_wrist_yaw_joint": 0.0, | ||
| } |
| fixed_default = self.env.default_dof_pos[:, self._fixed_joint_indices] | ||
| fixed_action_scales = self.action_scales[self._fixed_joint_indices].unsqueeze(0) | ||
| fixed_offsets = self._fixed_joint_targets.unsqueeze(0) - fixed_default | ||
| fixed_actions = fixed_offsets / torch.clamp(fixed_action_scales, min=1.0e-6) |
Comment on lines
+371
to
+377
| def process_actions(self, actions: torch.Tensor) -> None: | ||
| super().process_actions(actions) | ||
| self._apply_fixed_joint_targets() | ||
|
|
||
| def _apply_action_delay(self) -> None: | ||
| super()._apply_action_delay() | ||
| self._apply_fixed_joint_targets() |
Comment on lines
+355
to
+358
| name_to_idx = {name: i for i, name in enumerate(env.dof_names)} | ||
| missing = [name for name in fixed_joint_angles if name not in name_to_idx] | ||
| if missing: | ||
| raise ValueError(f"Fixed joint target(s) not found in robot DOFs: {missing}") |
Comment on lines
+217
to
+221
| cd /home/jkl0909/Code/rl/holosoma | ||
| unset CONDA_ENV_NAME | ||
| unset LD_LIBRARY_PATH | ||
| unset DISPLAY | ||
| source scripts/source_isaacsim_setup.sh |
Comment on lines
8
to
13
| DEFAULTS = { | ||
| "none": none, | ||
| "t1_29dof_joint_pos": t1_29dof_joint_pos, | ||
| "g1_29dof_arm_hold_joint_pos": g1_29dof_arm_hold_joint_pos, | ||
| "g1_29dof_joint_pos": g1_29dof_joint_pos, | ||
| } |
1554d4b to
5d95ede
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.