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

Inverse dynamics tutorial #263

Open
alco24 opened this issue Oct 30, 2024 · 2 comments
Open

Inverse dynamics tutorial #263

alco24 opened this issue Oct 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@alco24
Copy link

alco24 commented Oct 30, 2024

Hi MyoSuite team,
I'm learning how to use MyoSuite for biomechanical studies and musculoskeletal simulations and I was trying to adapt the Inverse dynamics tutorial to the MyoLeg model. I have problems in computing the generalized force and I think it's because the number of generalized coordinates (dim(qpos) = 35) does not match the number of degrees of freedom (dim(qvel) = 34), because of the presence of a free joint ('root') in the myoleg model. I am using joint positions stored from another simulation done using the DepRL baseline, so I have checked that the structure of the data is the same as the .csv file provided for the tutorial, but with the right number of joints for the leg model. Am I missing something? How can I overcome this problem? Thank you very much for your job here!

@Beanpow
Copy link

Beanpow commented Nov 4, 2024

Please refer to google-deepmind/mujoco#645

@andreh1111
Copy link
Collaborator

Hi @alco24, you are right to note that the problem is related to the presence of the free joint root, the handling of which is indeed not supported by the current version of inverse dynamics in the tutorial. However, the main problem is not the different dimensionality resulting from the use of quaternions in qpos, which can indeed be addressed in multiple ways, but rather the zero actuator_moment for the free joint, since the muscle actuators do not act directly on it.

@andreh1111 andreh1111 added the enhancement New feature or request label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants