IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

Adds feature to use template generator in non interactive mode

Open klakhi opened this issue 4 months ago • 3 comments

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-commit checks 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.toml file
  • [x] I have added my name to the CONTRIBUTORS.md or my name already exists there

klakhi avatar Aug 20 '25 07:08 klakhi

@Toni-SM @ooctipus - could you please help review this one?

kellyguo11 avatar Aug 22 '25 20:08 kellyguo11

Hi @klakhi

What is this intended for? CI workflows/testing?

Toni-SM avatar Aug 28 '25 14:08 Toni-SM

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']}]})"

image

Toni-SM avatar Sep 10 '25 20:09 Toni-SM