Skip to content
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

Add QuadrupedAMP task, based on HumanoidAMP method #113

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dtch1997
Copy link

@dtch1997 dtch1997 commented Feb 17, 2023

Continuation of #111

Hello, thank you very much for open-sourcing IsaacGymEnvs.

As part of my research, I have created a draft implementation of AMP for legged quadrupeds.

To test pre-trained model:

cd isaacgymenvs
python train.py task=QuadrupedAMP task.env.motionFile=data/motions/quadruped/dog_trot_hq.txt test=True checkpoint=data/checkpoints/QuadrupedAMP/QuadrupedGait/dog_trot_hq.pth num_envs=32 headless=False

To train a new model:

python train.py task=QuadrupedAMP task.env.motionFile=data/motions/quadruped/dog_trot_hq.txt

Sample trotting example (dog_trot_hq.txt):

trot_viz_ref.mp4

At the moment, there is some unexplained drift in the policy. I am unsure of the cause but I am hopeful that upgrading to better motion-capture will fix this issue.

Motion-capture obtained by:
(i) copies of https://github.com/erwincoumans/motion_imitation/tree/master/motion_imitation/data/motions
(ii) taking trained policies from motion_imitation repo and recording the robot state at every env step. (dog_trot_hq.txt, dog_spin_hq.txt, dog_pace_hq.txt`)

Let me know what you think :)

@ViktorM
Copy link
Collaborator

ViktorM commented Feb 28, 2023

It's very impressive @dtch1997, great work! Need to discuss with @gavrielstate the next steps.

@dtch1997
Copy link
Author

dtch1997 commented Mar 1, 2023

Thanks so much for the kind words @ViktorM ! I look forward to hearing about the next steps.

It is not included in this PR yet but I have much better results now, which can be viewed here: https://drive.google.com/drive/folders/1w0VEceadkjB0cewBJOzVZmT5wg9pLACt?usp=sharing

AIWintermuteAI added a commit to AIWintermuteAI/IsaacGymEnvs that referenced this pull request Aug 27, 2023
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