leap-hand / LEAP_Hand_Sim

http://leaphand.com/
MIT License
107 stars 18 forks source link

Deploying pretrained policy, rotation policy not working #12

Closed charliehuang5 closed 7 months ago

charliehuang5 commented 8 months ago

When running deploy.py to deploy the pretrained policy on the hand, it seems to complete the initial grasp task ok (fingers are at least moving in the right direction -- they don't hold onto the cube very well. Then, when the rotation task starts the fingers move for a bit near that initial grasp conformation then all begin bending backwards. It seems that the pretrained policy for rotating the cube is quite sensitive to the initial state/success of the grasp. Do you have any advice on how to troubleshoot this issue? The grasp only loosely grasps onto the cube. If I apply a pressure to the cube to keep in contact with the fingers, the fingers move in a similar fashion like the simulated pretrained policy, but once that pressure is release the fingers drift backwards. I can follow up with more details on the setup.

Lucky7Chess commented 8 months ago

Hi Charlie,

Maybe check your real cube size relative to the simulation cube? If it is too small, the policy will not generalize onto a different size since it was not trained on that size. Also check the mass carefully. Make sure the sim matches the real. You may want to slightly tweak the PID values of the LEAP Hand code if you find that your hand has slightly different characteristics also.

charliehuang5 commented 8 months ago

Did you also test the hand with cubes of different material and mass? I’m using a 3D printed cube which could be smoother and lighter.

On Tue, Mar 26, 2024 at 3:25 PM Kenny Shaw @.***> wrote:

Hi Charlie,

Maybe check your real cube size relative to the simulation cube? If it is too small, the policy will not generalize onto a different size since it was not trained on that size. You may want to slightly tweak the PID values of the LEAP Hand code if you find that your hand has slightly different characteristics also.

— Reply to this email directly, view it on GitHub https://github.com/leap-hand/LEAP_Hand_Sim/issues/12#issuecomment-2020575590, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFAN3SVNPZ7I6BPAMVBXAYLY2GANXAVCNFSM6AAAAABFI7OJROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRQGU3TKNJZGA . You are receiving this because you authored the thread.Message ID: @.***>

Lucky7Chess commented 8 months ago

I used a wooden cube. Match the weight of your cube between sim and real.