Repository navigation
Implement a tire friction model through plugin? #3569
Replies: 1 comment
|
A passive-force plugin can add your tire forces, but it won't automatically replace the contact solver. The timing matters: passive forces are evaluated before the current constraint forces are solved. You can't read the current normal contact force there as an already-computed input. Your load estimate or coupling scheme needs to account for that. There's also a detail in your XML: the ground uses If your custom model supplies the tire's tangential force, make sure the wheel-ground contact isn't also supplying it. I'd first validate that separation and the normal-load model in a small wheel test. Relevant docs: [pipeline order](https://mujoco.readthedocs.io/en/stable/computation/index.html#stages) and [contact parameter mixing](https://mujoco.readthedocs.io/en/stable/modeling.html#contact-parameters). |
Uh oh!
There was an error while loading. Please reload this page.
Intro
Hi!
I am a graduate at Université de Sherbrooke, I'm investigating the use MuJoCo for my research on car control.
My setup
Latest stable release from PyPI, Ubuntu 22.04, eventually 26.04.
My question
Since the most important part of a car model is the tire model, I want to know if I could write a plugin with the
passivecapability to implement various friction models of tires (e.g. Pacejka's Magic Formula).From what I could understand from the documentation, the friction cone is only used to scale the static friction coefficient and switch to the kinetic friction coefficient once static friction is saturated. I also grasp that the collision detection / contact handling / friction computation is quite core the physics engine of MuJoCo.
I guess I'm wondering if a plugin could only use the contact forces and slip/slip speeds and substitute the friction machinery altogether.
I found this issue from a year ago, unanswered sadly [https://github.com//discussions/2838].
If impossible, what parameters could be used to model "simply" a tire.
Minimal model and/or code that explain my question
For now I have a simple bicycle model to prototype.
scene.xml
bicycle.xml
Confirmations
All reactions