Skip to content

[Question] How to specify environment's parameters from command line arguments when playing/testing a trained policy with rl_games? #2501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Antonello-Scaldaferri-adi opened this issue May 15, 2025 · 0 comments

Comments

@Antonello-Scaldaferri-adi

When running a training for the Peg Insertion task with rl_games, I can specify the environment's parameters from command line arguments:

./isaaclab.sh -p scripts/reinforcement_learning/rl_games/train.py --task Isaac-Factory-PegInsert-Direct-v0 --num_envs 4 --headless env.task.fixed_asset_init_pos_noise='[0.15, 0.15, 0.05]'

When running the play script to test the trained policy:

./isaaclab.sh -p scripts/reinforcement_learning/rl_games/play.py --task Isaac-Factory-PegInsert-Direct-v0 --num_envs 4 env.task.fixed_asset_init_pos_noise='[0.15, 0.15, 0.05]'

I get:

play.py: error: unrecognized arguments: env.task.fixed_asset_init_pos_noise=[0.15, 0.15, 0.05]

Am I doing it incorrectly, or is it possible to change the environment's parameters from command line arguments for training only and not for playing/testing?

Thanks a lot in advance for any clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant