Skip to content

Reset dataset manager and add head drive properties#369

Open
yhnsu wants to merge 3 commits into
mainfrom
yhn/fix_patch
Open

Reset dataset manager and add head drive properties#369
yhnsu wants to merge 3 commits into
mainfrom
yhn/fix_patch

Conversation

@yhnsu

@yhnsu yhnsu commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR resets the dataset manager during environment reset and adds default drive properties for the head joints.

The dataset manager reset keeps dataset-related state consistent across episodes.
The head drive properties make the DexforceW1 head joints use explicit default stiffness, damping, and effort settings.

No new dependencies are required for this change.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which improves an existing functionality)

Screenshots

Not applicable.

Checklist

  • I have run the black . command to format the code base.
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Dependencies have been updated, if applicable.

Copilot AI review requested due to automatic review settings July 9, 2026 09:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve episode-to-episode consistency by resetting dataset-related state during environment resets, and to improve DexforceW1 joint control stability by adding explicit default drive properties for the head joints.

Changes:

  • Reset DatasetManager state during _initialize_episode() so dataset functors can clear episode-scoped state on reset.
  • Add default stiffness/damping/max-effort drive properties for DexforceW1 head joints (NECK1, NECK2).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
embodichain/lab/sim/robots/dexforce_w1/cfg.py Adds head joint regex and default drive property entries for head joints.
embodichain/lab/gym/envs/embodied_env.py Resets dataset manager during episode initialization/reset to keep dataset state consistent across episodes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +569 to +570
if self.cfg.dataset:
self.dataset_manager.reset(env_ids=env_ids)
Comment on lines +569 to +570
if self.cfg.dataset:
self.dataset_manager.reset(env_ids=env_ids)
Copilot AI review requested due to automatic review settings July 9, 2026 09:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment on lines +569 to +570
if self.cfg.dataset:
self.dataset_manager.reset(env_ids=env_ids)
Comment on lines +569 to +570
if self.cfg.dataset:
self.dataset_manager.reset(env_ids=env_ids)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants