openpi icon indicating copy to clipboard operation
openpi copied to clipboard

Question about adapt_to_pi

Open NNNatsuki opened this issue 1 year ago • 3 comments

I'm currently working on our own robot and now I'm configuring it following the aloha_real example. I have some questions about the adapt_to_pi transformation. Could you explain why we need to flip the joint like this?

def _joint_flip_mask() -> np.ndarray:
    """Used to convert between aloha and pi joint angles."""
    return np.array([1, -1, -1, 1, 1, 1, 1, 1, -1, -1, 1, 1, 1, 1])

Your insights would be highly appreciated, and I'm really grateful for your time and effort in providing any clarifications.

NNNatsuki avatar Feb 24 '25 08:02 NNNatsuki

This will help answer you question: https://github.com/Physical-Intelligence/openpi/issues/278

swagh1611 avatar Feb 24 '25 13:02 swagh1611

This will help answer you question: #278

So when I use Aloha to collect data from our own robot for fine-tuning, adapt_to_pi needs to be set to true, is that right?

NNNatsuki avatar Feb 25 '25 01:02 NNNatsuki

That's correct. @swagh1611 thanks for posting the reference.

uzhilinsky avatar Mar 06 '25 03:03 uzhilinsky