Closed marcoojer closed 2 years ago
Hi @marcoojer ,
I haven't tested this out for grasping purposes, but you could look into something in Unity called Physic Material, with this you can adjust the static and dynamic friction for individual game objects (in this case the grippers/fingers) by setting this Physic material to the desired object's collider component.
Here is Unity's documentation and a video on how to set this up.
If you don't want to use physics, during the collision of the gripper with the object (grasping) you could parent the object to the gripper, this would then have the object move with the gripper (its new parent) until you remove it as the parent later on
I hope this helps. I'm curious if the physic material will help, I assume it will take some time to tinker with and adjust as there are multiple properties that can be set on the physic material.
Hi @marcoojer, the answer above should be what you're looking for--thanks again, @A-Ivan!
A couple additional comments about getting more accurate physics in your simulation--here are some of the Physics Settings you'll want to look into:
Physics Solver Type
to Temporal Gauss Seidel will reduce erratic behaviors that might be seen with the default solver.Friction Type
to Two Directional Friction Type for applying friction in both tangent directions.
Default Solver Iterations
, for example to a value like 12
.Hope this helps!
I'll close out this issue as the answer has been provided, but feel free to open it again if you have further follow-up. Thanks!
Hi, I'm new in Unity and I was trying to increase the friction of the fingers of a gripper to facilitate grasping, but when I load the urdf I can not see in the inspector dialog where to set the friction of just the fingers. Thus, anyone knows how to set it? It would be nice if it could be set in the own urdf.
Thanks in advance