Closed KKSTB closed 1 month ago
Hello, the error you are facing generally suggests that there were NaNs propagated into the training pipeline, which could often be a result of instabilities in simulation. Tuning mimic joints can be tricky and we have observed cases where mimic joints can cause simulation stability issues. We are working on improving the simulation stability for mimic joints for the next release. In the meantime, it could often be helpful to check for NaNs in the observation terms before passing them to the policy and replacing NaNs with some reasonable value. Sometimes clamping the actions to make sure they are not in an extreme range can also help improve simulation stability.
Hi. Thank you for the great work.
Describe the bug
I am trying to train a virtual robot with multiple mimic joints. More specifically like this: https://github.com/KKSTB/isaac_lab_gundam_robot_urdf
I imported the robot URDF using Isaac Sim URDF importer and try to train it by referring to the Unitree G1 as example.
Total number of actuated joints are 39. But with mimic joints the total number of joints becomes 77. So there is a warning:
However rsl-rl randomly crashes with the following call stacks, after running a few tens of iterations:
I tried to ignore these mimic joints by specifying joints excluding mimic joints to the ObservationsCfg, but no luck. I did so with this code in
__post_init__()
in my custom python similar torough_env_cfg.py
of Unitree G1 to override the defaults invelocity_env_cfg.py
:The configuration:
If I edit the URDF so that all mimic joints are set to fixed, it seems there is no crash.
System Info