google-deepmind / google-deepmind/dm_control

How do we convert the data in an .amc file (from the CMU mocap dataset) as that to be compatible with the cmu_humanoid by dm_control

Open
#446 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.7k
Forks
764
PR merge metrics
No merged PRs in 30d

Description

Hi,

I am a student trying to use the [humanoid_CMU](https://github.com/google-deepmind/dm_control/blob/main/dm_control/suite/humanoid_CMU.xml). I have the mocap data from CMU website in the form of an .amc file. How can I use these values in the humanoid? i.e how do I convert the values as to be compatible with the [humanoid_CMU](https://github.com/google-deepmind/dm_control/blob/main/dm_control/suite/humanoid_CMU.xml)

I have seen the [parse_amc](https://github.com/google-deepmind/dm_control/blob/main/dm_control/suite/utils/parse_amc.py) and feel that I could use that. But I don't get how to use it as a user

I have installed dm_control via pip and don't get how can I use it.

Thank you in advance

Edit: I have somewhat understood the code and have made to work by writing my own function (mainly copy paste from the source). What I have not understood is the interpolation part and how to write that. Again I would prefer to use the dm_control library but can't understand how to use it (mainly because I'm unable to understand the 3rd parameter to the function convert() i.e timestep which is again used in interpolation)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.