UT-Austin-RPL / deoxys_control

A modular, real-time controller library for Franka Emika Panda robots
Apache License 2.0
135 stars 20 forks source link

Robosuite to real arm implementation #7

Closed Soha18 closed 9 months ago

Soha18 commented 10 months ago

Hi,

Thank you for this repository.. I'm trying to deploy a RL model that is trained on robosuite environment to a real Panda arm. my settings: environment: Lift, controller OSC-POSE, is_delta= True, the model gets observations (42,) as input and outputs actions (7,)

Many thanks, and I appreciate any help.

regards

zhuyifengzju commented 10 months ago

Hi, yes everything in deoxys codebase is based on libfranka, which is in the base frame. For getting eef_pos and eef_quat, you can look at : https://github.com/UT-Austin-RPL/deoxys_control/blob/aa5f1aff12ea09b0c2fa3799b7b0b524a6212b0d/deoxys/deoxys/franka_interface/franka_interface.py#L536, which are basically O_T_EE. I think the thing you can check is to set the robot to the same joints as in the simulator, and see the end effector values. This will give you an idea what are the mismatch, and which link is used in robosuite for end effector pose (it's not on top of my head, and I need to take a closer look later).

Can you elaborate more on "extra rotation" you mentioned? It could be that the rotation is not taken care of carefully --- there is this -2pi ~ 2pi discontinuity issue that you need to handle.