Skip to content

Loco actionspace fix #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Sep 21, 2024
Merged

Loco actionspace fix #230

merged 12 commits into from
Sep 21, 2024

Conversation

vikashplus
Copy link
Collaborator

Landed the fix. There are two high level changes

  1. New naming and randomization conversion
  • we resort to fixed and random envs
  • removed all duplicate files
  1. Fix the env action space to remove the uncontrollable dims.

TODOs:

  • Ensure that myoChallengeOslRunFixed-v0 is adjusted properly to ensure that terrain randomization doesn't change during reset.

@raku-slyu - ensure that the docs are updating properly as per the changes here.

… extra control on top of theaction space. Normalization is handled while appending OSL values. This ensure that robot class can appropriately handle the action space normalization while rolling the sim/hardware
@P-Schumacher
Copy link
Collaborator

Fixed the flat terrain in 59a26ba

Copy link
Collaborator

@Vittorio-Caggiano Vittorio-Caggiano left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@elladyr elladyr left a comment

Choose a reason for hiding this comment

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

LGTM

@elladyr
Copy link
Collaborator

elladyr commented Sep 19, 2024

I have finished my changes and it is ready to be merged.

@@ -506,7 +517,7 @@ def get_internal_qpos(self):
to_remove = [self.sim.model.joint('osl_knee_angle_r').qposadr[0].copy(), self.sim.model.joint('osl_ankle_angle_r').qposadr[0].copy()]

temp_qpos[to_remove] = 100
temp_qpos[temp_qpos != 100]
temp_qpos = temp_qpos[temp_qpos != 100]
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this condition needed?

Copy link
Collaborator

Choose a reason for hiding this comment

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

All the OSL joint observations need to be removed. This is just to filter and shorten the final array

Copy link
Collaborator

Choose a reason for hiding this comment

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

would it be possible to add the number of physiological joints as variable instead of hardcode the number?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes. I can do that. Give me a moment

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok done. I have also done the same for the muscles as well.

Copy link
Collaborator

@Vittorio-Caggiano Vittorio-Caggiano left a comment

Choose a reason for hiding this comment

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

lgtm

@elladyr elladyr merged commit f2fb894 into dev Sep 21, 2024
3 checks passed
ttktjmt pushed a commit to ttktjmt/myosuite that referenced this pull request Feb 12, 2025
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.

4 participants