Skip to content

Add MyoSuite training configs and configurable max_steps - #336

Open
Denys88 wants to merge 2 commits into
masterfrom
VM/myo_and_mani_v2
Open

Add MyoSuite training configs and configurable max_steps#336
Denys88 wants to merge 2 commits into
masterfrom
VM/myo_and_mani_v2

Conversation

@Denys88

@Denys88 Denys88 commented Mar 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix OldGymWrapper to return gymnasium-compatible tuples: reset()(obs, info), step() → 5-tuple with terminated/truncated
  • Add 6 MyoSuite PPO training configs: elbow, hand pose (LSTM), hand reach, hand reorient, die reorient, leg walk
  • Make player.max_steps configurable via config (was hardcoded to 108000 // 4)

Tested

  • Trained myoElbowPose1D6MRandom-v0 for 1000 epochs — converged to reward ~720 (91% of theoretical max) by epoch 100
  • All 6 configs validated against MyoSuite env registration

Supersedes #312

🤖 Generated with Claude Code

DenSumy and others added 2 commits March 14, 2026 13:54
Port MyoSuite config files from PR #312 and fix them for current master:
- Add 6 MyoSuite YAML configs (elbow, hand pose/reach/reorient, walk)
- Fix env_name from 'myosuite_gym' to 'myo_gym' for compatibility
- Make player max_steps configurable via player config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
reset() now returns (obs, info) and step() returns 5-tuple
(obs, reward, terminated, truncated, info) matching gymnasium API.
This fixes MyoSuite environments which use the old gym API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants