Deploying policy to from Isaac Lab to Isaac Sim #2530
Replies: 2 comments 2 replies
-
Deploying a trained RL policy from Isaac Lab to Isaac Sim can encounter several issues even when observations and actions appear consistent. Here are some considerations and solutions: 1. Policy Export and Normalization
2. Environment Configuration Mismatches
3. Action Scaling and Clamping
|
Beta Was this translation helpful? Give feedback.
-
Hey @RandomOakForest, I feel like I have a similar case as the original poster of this git issue but with sim2real instead. You're saying "Avoid manual torch.load of .pt files, as this skips critical preprocessing steps" which I believe, however, how should I load my RSL RL policies instead? What I am doing is simply put like this: trained through RSL RL > export policy through play.py > load policy in custom .py file In the .py I have: Where the policy_path ends with "/exported/policy.pt" Some context: Any guidance or sources on how to load trained RSL RL policies for sim2real is hugely appreciated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have trained a robot in Isaac Lab, using the rsl_rl library, to reach some targets and avoid collisions using a depth camera. When I play the environment, the robot seems to behave as expected (reaches target and avoids collision). I am trying deploy the policy (.pt file) in Isaac lab and the robot does not reach the targets. It moves in unexpected ways and gets stuck on obstacles.
The issue is that as far as I can see I have used the same observations in Isaac Sim as I have used in training. The observations are very simple, they are:
The action is scaled to 0.5 - same as in training - and the robot is from the same USD file as in training. The gains are the same - they are the ones defined in the USD, no custom values. I could not find any other suggestions in the article .
Can you give me any other suggestions?
Beta Was this translation helpful? Give feedback.
All reactions