IsaacLab
IsaacLab copied to clipboard
Adds feature to use template generator in non interactive mode
Template generator non interactive mode
Introduced a non-interactive way of generating a template, by passing in the required arguments such as --task-type, --workflow, --rl-algorithm, --rl-library, etc
Fixes #3223
Type of change
- New feature (non-breaking change which adds functionality)
Screenshots
Please attach before and after screenshots of the change if applicable.
Checklist
- [x] I have run the
pre-commitchecks with./isaaclab.sh --format - [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have updated the changelog and the corresponding version in the extension's
config/extension.tomlfile - [x] I have added my name to the
CONTRIBUTORS.mdor my name already exists there
@Toni-SM @ooctipus - could you please help review this one?
Hi @klakhi
What is this intended for? CI workflows/testing?
If the purpose of the implementation is only for CI, a project can be generated using python -c (program passed in as string) without any modification or addition to the current implementation as follows:
cd tools/template
python -c "import generator; generator.generate({'external': True, 'path': '/home/toni/Documents/automation', 'name': 'MyExternalProject', 'workflows': [{'name': 'direct', 'type': 'single-agent'}], 'rl_libraries': [{'name': 'sb3', 'algorithms': ['ppo']}]})"