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

[Question] How to model MuJoCo's friction loss parameter in Isaac Lab? #1325

Open
SuomiKP31 opened this issue Oct 29, 2024 · 2 comments
Open

Comments

@SuomiKP31
Copy link

Question

I'm trying to reproduce some results from a MuJoCo codebase in Isaac Lab.
While PhysX has a friction parameter which can be set through the ActuatorCfg class in Isaac Lab, it is modelled differently compared to its MuJoCo counterpart.

MuJoCo's friction loss parameter is a load-independent friction, which does not correlate to the normal force. It can be applied to revolute joints or sliders, and it has implicit unit corresponding to the joint type.

In PhysX, the friction parameter present on joints is a unitless coefficient, modelling Coulomb friction which scales with the normal force. Essentially the two simulators modelled the same thing using different approximation models.

Being a newcomer to Isaac Lab, my immediate thought is to calibrate my robot's friction coefficients in Isaac Sim so that it falls in similar fashion under gravity compared to MuJoCo. But I do wonder if there's a way to more quantitively model the friction, so that it is as close to MuJoCo as possible.

Is it possible to obtain the combined force/torque applied to a joint after the actions have been applied to the actuators but before simulation update, so that I can apply this static friction manually?

@StephenWelch
Copy link

Also curious about this!

@SuomiKP31
Copy link
Author

I have previously used Omni-Isaac Gym Envs. I just looked back and found a function under ArticulationView called get_measured_joint_forces which seems to be what I need. However, Isaac Lab doesn't seem to be using this API. Can I use it in conjunction with the isaac.lab.assets.Articulation API?
I'm going to try this tomorrow to see if it leads to anywhere.

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

No branches or pull requests

2 participants